docs(openapi): document card pending auth state#591
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
✱ Stainless preview builds for gridThis PR will update the cli csharp go kotlin openapi php python ruby typescript ✅ grid-ruby studio · code
|
Greptile SummaryThis PR documents the new
Confidence Score: 5/5Documentation-only change with no runtime code; all four files are internally consistent and the new state is accurately described. The change adds a new enum value and accompanying prose to OpenAPI schema and generated YAML files. The lifecycle description, state table, 201 response description, and webhook note are all mutually consistent. The two generated files match each other and the source exactly. No files require special attention.
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/cards/CardState.yaml | Adds PENDING_AUTH to the enum and the description table with an accurate, consistent explanation. Enum ordering is logical (KYC → AUTH → PROCESSING → ACTIVE → FROZEN → CLOSED). |
| openapi/paths/cards/cards.yaml | Adds two paragraphs explaining PENDING_AUTH and the delegated-key flow; updates the 201 response description and the webhook note. Content is accurate to the described lifecycle. |
| openapi.yaml | Generated file, identical changes to the source — enum entry added, description table row added, POST /cards description and 201 response updated correctly. |
| mintlify/openapi.yaml | Generated file, mirrors openapi.yaml changes exactly — no drift between the two generated outputs. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A([POST /cards]) --> B{Embedded Wallet\nfunding source?}
B -- Yes --> C[PENDING_AUTH\nCannot transact]
B -- No --> E[PROCESSING\nIssuer provisioning]
C -- POST /auth/delegated-keys\ncompletes --> E
E -- Issuer approves --> F[ACTIVE\nCan transact]
E -- Issuer rejects --> G[CLOSED\nstateReason: ISSUER_REJECTED]
F -- Platform freezes --> H[FROZEN\nTemporarily disabled]
H -- Platform unfreezes --> F
F -- Platform closes --> G
H -- Platform closes --> G
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A([POST /cards]) --> B{Embedded Wallet\nfunding source?}
B -- Yes --> C[PENDING_AUTH\nCannot transact]
B -- No --> E[PROCESSING\nIssuer provisioning]
C -- POST /auth/delegated-keys\ncompletes --> E
E -- Issuer approves --> F[ACTIVE\nCan transact]
E -- Issuer rejects --> G[CLOSED\nstateReason: ISSUER_REJECTED]
F -- Platform freezes --> H[FROZEN\nTemporarily disabled]
H -- Platform unfreezes --> F
F -- Platform closes --> G
H -- Platform closes --> G
Reviews (7): Last reviewed commit: "docs(openapi): document card pending aut..." | Re-trigger Greptile
a6e46b4 to
1c1d631
Compare
951aca3 to
a5a89b7
Compare
808855c to
f450dee
Compare
a5a89b7 to
b8e1af2
Compare
b8e1af2 to
f0d1d07
Compare
f450dee to
4d3da23
Compare
bdc0231 to
8897e44
Compare
4d3da23 to
3f2648c
Compare
3f2648c to
014201d
Compare
8897e44 to
ea40e01
Compare
Add PENDING_AUTH to CardState and explain how cards funded by Embedded Wallet internal accounts remain pending until delegated signing authorization is completed via POST /auth/delegated-keys.
014201d to
2eb6cd5
Compare
Merge activity
|

Reason
Cards funded by Embedded Wallet internal accounts need card-specific delegated signing authorization before they can transact. The card issuance docs should expose the interim state that occurs after
POST /cardsbut beforePOST /auth/delegated-keyscompletes for that card.Overview
PENDING_AUTHtoCardState.POST /cardsmay return cards inPENDING_AUTHwhen an Embedded Wallet internal account is used as a funding source.PENDING_AUTH→PROCESSING→ACTIVEfor cards that complete delegated auth before issuer processing finishes.openapi.yamlandmintlify/openapi.yamlfrom the OpenAPI source.Test Plan
make buildmake lint-openapi