Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 25 additions & 31 deletions UPSTREAM_DIFF.md
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).
4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"prepublishOnly": "bun run typecheck && bun run build"
},
"devDependencies": {
"@photon-ai/dashboard-api": "1.6.12",
"@photon-ai/dashboard-api": "1.6.17",
"@types/bun": "latest",
"@types/node": "^25.6.2",
"@types/semver": "^7.7.1",
Expand Down
3 changes: 3 additions & 0 deletions src/commands/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)],

Copy link
Copy Markdown
Contributor Author

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 show now reads plan, platforms, and userCount, but the mock fallback fixture project.show.json still lacks those fields. For unknown ids the mock returns that fixture, so human-readable show hits platforms.length and throws.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 863193f. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale show fixture after sync

Low Severity

photon projects show now reads plan, platforms, and userCount, but tests/fixtures/project.show.json still omits them. The mock GET /api/projects/:id fallback returns that fixture for unknown ids, so show crashes on platforms.length there even though list rows already include the fields.

Fix in Cursor Fix in Web

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"],
Expand Down
Loading