Align signed request id examples#453
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
✱ Stainless preview builds for gridThis PR will update the kotlin openapi python typescript
|
ace7e81 to
b30fdb8
Compare
Greptile SummaryThis PR updates all
Confidence Score: 5/5This is a documentation-only change updating example values and descriptions; no runtime logic is modified. All changed files are OpenAPI YAML spec sources and their regenerated bundles. The update is purely cosmetic — renaming example strings from bare UUIDs to the No files require special attention.
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/common/SignedRequestChallenge.yaml | Updated requestId description and example to Request:<uuid> LSID format; consistent and accurate. |
| openapi/components/schemas/auth/PasskeyAuthChallenge.yaml | Updated passkey requestId description and example to Request:<uuid> format; aligns with shared schema change. |
| openapi/paths/auth/auth_credentials.yaml | Updated Request-Id header example and all challenge response examples (EMAIL_OTP payloadToSign + top-level requestId, OAUTH, PASSKEY) to Request:<uuid> format. |
| openapi/paths/auth/auth_credentials_{id}.yaml | Updated Request-Id header example for credential deletion signed retry to Request:<uuid> format. |
| openapi/paths/auth/auth_credentials_{id}_challenge.yaml | Updated passkey challenge response requestId example to Request:<uuid> format. |
| openapi/paths/auth/auth_credentials_{id}_verify.yaml | Updated Request-Id header example for passkey verify signed retry to Request:<uuid> format. |
| openapi/paths/auth/auth_sessions_{id}.yaml | Updated Request-Id header example for session deletion signed retry to Request:<uuid> format. |
| openapi/paths/internal_accounts/internal_accounts_{id}_export.yaml | Updated Request-Id header example for account export signed retry to Request:<uuid> format. |
| openapi.yaml | Bundled spec regenerated from sources; all requestId examples and descriptions consistently updated to Request:<uuid> format. |
| mintlify/openapi.yaml | Bundled Mintlify spec regenerated; all requestId examples and descriptions consistently updated to Request:<uuid> format, including the payloadToSign JSON string for EMAIL_OTP. |
Sequence Diagram
sequenceDiagram
participant C as Client
participant G as Grid API (Sparkcore)
C->>G: POST /auth/credentials (initial attempt)
G-->>C: "202 Challenge { requestId: "Request:<uuid>", payloadToSign: "..." }"
Note over C: Sign payloadToSign with wallet key
C->>G: "POST /auth/credentials<br/>Request-Id: Request:<uuid><br/>Grid-Wallet-Signature: <sig>"
G-->>C: 200 OK (credential registered)
Reviews (2): Last reviewed commit: "Align signed request id examples" | Re-trigger Greptile
| "payloadToSign": "{\"requestId\":\"7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21\",\"type\":\"EMAIL_OTP\",\"accountId\":\"EmbeddedWallet:019542f5-b3e7-1d02-0000-000000000002\",\"expiresAt\":\"2026-04-08T15:35:00Z\"}", | ||
| "requestId": "7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21", | ||
| "requestId": "Request:7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21", |
There was a problem hiding this comment.
Same
payloadToSign inconsistency as in the OpenAPI source: the requestId embedded inside the JSON string still uses the old plain-UUID format while the surrounding requestId field has been updated to Request:<uuid>. If the backend includes the LSID in the payload, this example will mislead developers comparing the two values.
| "payloadToSign": "{\"requestId\":\"7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21\",\"type\":\"EMAIL_OTP\",\"accountId\":\"EmbeddedWallet:019542f5-b3e7-1d02-0000-000000000002\",\"expiresAt\":\"2026-04-08T15:35:00Z\"}", | |
| "requestId": "7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21", | |
| "requestId": "Request:7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21", | |
| "payloadToSign": "{\"requestId\":\"Request:7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21\",\"type\":\"EMAIL_OTP\",\"accountId\":\"EmbeddedWallet:019542f5-b3e7-1d02-0000-000000000002\",\"expiresAt\":\"2026-04-08T15:35:00Z\"}", | |
| "requestId": "Request:7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21", |
Prompt To Fix With AI
This is a comment left during a code review.
Path: mintlify/snippets/global-accounts/authentication.mdx
Line: 590-591
Comment:
Same `payloadToSign` inconsistency as in the OpenAPI source: the `requestId` embedded inside the JSON string still uses the old plain-UUID format while the surrounding `requestId` field has been updated to `Request:<uuid>`. If the backend includes the LSID in the payload, this example will mislead developers comparing the two values.
```suggestion
"payloadToSign": "{\"requestId\":\"Request:7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21\",\"type\":\"EMAIL_OTP\",\"accountId\":\"EmbeddedWallet:019542f5-b3e7-1d02-0000-000000000002\",\"expiresAt\":\"2026-04-08T15:35:00Z\"}",
"requestId": "Request:7c4a8d09-ca37-4e3e-9e0d-8c2b3e9a1f21",
```
How can I resolve this? If you propose a fix, please make it concise.0ee4aa9 to
9ed479e
Compare
b30fdb8 to
232ef58
Compare
9ed479e to
37e2c1a
Compare
232ef58 to
c5cbba1
Compare
c5cbba1 to
4bd41ea
Compare
37e2c1a to
4adf63f
Compare
4bd41ea to
2ec6b97
Compare
4adf63f to
11ace8c
Compare
11ace8c to
a33fb9a
Compare
2ec6b97 to
1330317
Compare
a12656b to
f6261de
Compare
077755d to
6d01216
Compare
f6261de to
fc07e2b
Compare
6d01216 to
be2d0eb
Compare
fc07e2b to
a267bd2
Compare
13a0501 to
06f82ad
Compare
40628ba to
e0cb501
Compare
e0cb501 to
aedb8db
Compare
06f82ad to
937ecb1
Compare
The base branch was changed.
Merge activity
|

Summary
requestIdexamples with theRequest:<uuid>LSID format returned by Sparkcore handlers.requestIdexactly.Validation
npm run lint:openapigit diff --checkNotes
get_pending_request_lsid(...), so signed retries should use the returnedRequest:<uuid>value inRequest-Id.