-
Notifications
You must be signed in to change notification settings - Fork 9
feat: sync CLI with dashboard@v1.6.17 #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,38 @@ | ||
| # Upstream API Diff | ||
|
|
||
| > Old routes: 36 · New routes: 58 | ||
| > Bumping `@photon-ai/dashboard-api` from 1.6.12 → 1.6.17 (dashboard@v1.6.17). | ||
| > Spans upstream releases v1.6.13, v1.6.14, v1.6.15, v1.6.16, v1.6.17. | ||
|
|
||
| ## Added Routes | ||
|
|
||
| | Route | Method | | ||
| |-------|--------| | ||
| | `api.profile.spectrum-updates` | `PATCH` | | ||
| | `api.projects.:id.members` | `GET` | | ||
| | `api.projects.:id.members` | `POST` | | ||
| | `api.projects.:id.members.:memberUserId` | `DELETE` | | ||
| | `api.projects.:id.slack` | `DELETE` | | ||
| | `api.projects.:id.slack` | `GET` | | ||
| | `api.projects.:id.slack` | `PUT` | | ||
| | `api.projects.:id.slack.installations` | `GET` | | ||
| | `api.projects.:id.slack.installations.:teamId` | `DELETE` | | ||
| | `api.projects.:id.spectrum.avatar` | `DELETE` | | ||
| | `api.projects.:id.spectrum.avatar.commit` | `POST` | | ||
| | `api.projects.:id.spectrum.avatar.upload` | `POST` | | ||
| | `api.projects.:id.voice.imessage-enabled` | `PATCH` | | ||
| | `api.projects.:id.voice.settings` | `GET` | | ||
| | `api.projects.:id.voice.sip-inbound` | `DELETE` | | ||
| | `api.projects.:id.voice.sip-inbound` | `PATCH` | | ||
| | `api.projects.:id.webhooks` | `GET` | | ||
| | `api.projects.:id.webhooks` | `POST` | | ||
| | `api.projects.:id.webhooks.:webhookId` | `DELETE` | | ||
| | `api.projects.:id.whatsapp.templates` | `GET` | | ||
| | `api.projects.:id.whatsapp.templates` | `POST` | | ||
| | `api.projects.:id.whatsapp.templates.:templateId` | `DELETE` | | ||
| | `api.projects.:id.whatsapp.templates.:templateId` | `PATCH` | | ||
| | `api.otp.phone2.send` | `POST` | | ||
|
|
||
| `api.otp.phone2.send` is the real phone-OTP send path (dashboard#259). The | ||
| pre-existing `api.otp.phone.send` remains as a decoy honeypot for scraped | ||
| clients. The CLI does not call either route. | ||
|
|
||
| ## Removed Routes | ||
|
|
||
| | Route | Method | | ||
| |-------|--------| | ||
| | `api.projects.:id.spectrum.avatar-upload-url` | `GET` | | ||
| _(none)_ | ||
|
|
||
| ## Changed Routes | ||
|
|
||
| | Route | Method | Change | | ||
| |-------|--------|--------| | ||
| | `api.projects.:id` | `GET` | Response body adds `avatarUrl: string \| null`, `plan: PlanTier`, `platforms: SpectrumPlatformId[]`, `userCount: number` (dashboard#255). | | ||
|
|
||
| Surfaced in `photon projects show` as new `plan`, `platforms`, `userCount` | ||
| rows between `location` and `owner`. `avatarUrl` is intentionally not printed | ||
| — the CLI can't render images and it's redundant with `spectrum avatar`. | ||
|
|
||
| The `api.otp.phone.send` body field order swapped `code`/`captchaToken` | ||
| cosmetically; both fields are still present and optional/required as before. | ||
|
|
||
| ## Summary | ||
|
|
||
| - **23** added | ||
| - **1** removed | ||
| - **0** changed | ||
| - **35** unchanged | ||
| - **1** added | ||
| - **0** removed | ||
| - **1** changed (additive fields on `GET /api/projects/:id`) | ||
| - Server-side only (no CLI impact): dashboard#250 (>3-dot email local-part signup block, v1.6.13), dashboard#251 phone-OTP suspension (v1.6.14), dashboard#256 suspended-user redirect (v1.6.14), dashboard#257 email-domain OTP abuse controls (v1.6.14), dashboard#258 signup IP suspensions (v1.6.15), dashboard#260 log real phone sends after three OTP failures (v1.6.16), dashboard#261 block suspicious OTP IPs for seven days (v1.6.17). |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,6 +134,9 @@ function registerShowCommand(projects: Command): void { | |
| printKv([ | ||
| ["status", formatStatus(p.status)], | ||
| ["location", p.location], | ||
| ["plan", p.plan], | ||
| ["platforms", p.platforms.length > 0 ? p.platforms.join(", ") : c.dim("—")], | ||
| ["userCount", String(p.userCount)], | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stale show fixture after syncLow Severity
Reviewed by Cursor Bugbot for commit 863193f. Configure here. |
||
| ["owner", p.isOwner ? c.green("yes") : c.dim("no")], | ||
| ["template", p.template ? "yes" : "no"], | ||
| ["observability", p.observability ? "yes" : "no"], | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stale show fixture omits fields
Low Severity
projects shownow readsplan,platforms, anduserCount, but the mock fallback fixtureproject.show.jsonstill lacks those fields. For unknown ids the mock returns that fixture, so human-readableshowhitsplatforms.lengthand throws.Reviewed by Cursor Bugbot for commit 863193f. Configure here.