@0to1pay/fulfillment-sdk 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2712 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/chain/assets": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /** List supported USDC and USDT deployments on configured networks */
14
+ get: operations["listChainAssets"];
15
+ put?: never;
16
+ post?: never;
17
+ delete?: never;
18
+ options?: never;
19
+ head?: never;
20
+ patch?: never;
21
+ trace?: never;
22
+ };
23
+ "/chain/connections": {
24
+ parameters: {
25
+ query?: never;
26
+ header?: never;
27
+ path?: never;
28
+ cookie?: never;
29
+ };
30
+ get?: never;
31
+ put?: never;
32
+ /** Create a watch-only chain connection for the scoped merchant */
33
+ post: operations["createChainConnection"];
34
+ delete?: never;
35
+ options?: never;
36
+ head?: never;
37
+ patch?: never;
38
+ trace?: never;
39
+ };
40
+ "/connections/{connection_id}/chain-recipients": {
41
+ parameters: {
42
+ query?: never;
43
+ header?: never;
44
+ path: {
45
+ connection_id: components["parameters"]["connection_id"];
46
+ };
47
+ cookie?: never;
48
+ };
49
+ get?: never;
50
+ put?: never;
51
+ /** Register merchant-controlled one-use stablecoin recipient addresses */
52
+ post: operations["registerChainRecipients"];
53
+ delete?: never;
54
+ options?: never;
55
+ head?: never;
56
+ patch?: never;
57
+ trace?: never;
58
+ };
59
+ "/payments": {
60
+ parameters: {
61
+ query?: never;
62
+ header?: never;
63
+ path?: never;
64
+ cookie?: never;
65
+ };
66
+ /** List scoped payments */
67
+ get: operations["listPayments"];
68
+ put?: never;
69
+ /**
70
+ * Create immutable order payment obligation
71
+ * @description Same scoped order_ref/order_revision and identical specification returns the existing resource. Changed snapshot requires explicit revision but retains the same business grant identity. A project's monthly quota counts distinct orders first created in the current UTC month, including unpaid orders. When the quota is reached, new orders return HTTP 429 with code QUOTA_REACHED before any checkout is issued. Existing orders can be retried, revised, verified and fulfilled under the usual payment rules.
72
+ */
73
+ post: operations["createPayment"];
74
+ delete?: never;
75
+ options?: never;
76
+ head?: never;
77
+ patch?: never;
78
+ trace?: never;
79
+ };
80
+ "/payments/{payment_id}": {
81
+ parameters: {
82
+ query?: never;
83
+ header?: never;
84
+ path: {
85
+ payment_id: components["parameters"]["payment_id"];
86
+ };
87
+ cookie?: never;
88
+ };
89
+ /** Get payment, decision and fulfillment projections */
90
+ get: operations["getPayment"];
91
+ put?: never;
92
+ post?: never;
93
+ delete?: never;
94
+ options?: never;
95
+ head?: never;
96
+ patch?: never;
97
+ trace?: never;
98
+ };
99
+ "/payments/{payment_id}/quotes": {
100
+ parameters: {
101
+ query?: never;
102
+ header?: never;
103
+ path: {
104
+ payment_id: components["parameters"]["payment_id"];
105
+ };
106
+ cookie?: never;
107
+ };
108
+ get?: never;
109
+ put?: never;
110
+ /**
111
+ * Freeze provider payable terms
112
+ * @description R1 fiat amount is derived from Payment; no caller amount/recipient override. Quote expiry cannot exceed the relevant Payment collection window.
113
+ */
114
+ post: operations["createQuote"];
115
+ delete?: never;
116
+ options?: never;
117
+ head?: never;
118
+ patch?: never;
119
+ trace?: never;
120
+ };
121
+ "/quotes/{quote_id}": {
122
+ parameters: {
123
+ query?: never;
124
+ header?: never;
125
+ path: {
126
+ quote_id: components["parameters"]["quote_id"];
127
+ };
128
+ cookie?: never;
129
+ };
130
+ /** Read a frozen quote */
131
+ get: operations["getQuote"];
132
+ put?: never;
133
+ post?: never;
134
+ delete?: never;
135
+ options?: never;
136
+ head?: never;
137
+ patch?: never;
138
+ trace?: never;
139
+ };
140
+ "/payments/{payment_id}/attempts": {
141
+ parameters: {
142
+ query?: never;
143
+ header?: never;
144
+ path: {
145
+ payment_id: components["parameters"]["payment_id"];
146
+ };
147
+ cookie?: never;
148
+ };
149
+ /** List every payment attempt */
150
+ get: operations["listAttempts"];
151
+ put?: never;
152
+ /**
153
+ * Create a provider checkout through 0to1Pay
154
+ * @description Persist Operation/request hash/provider idempotency key before outbound I/O. Persist external mapping before exposing next_action. A provider failure does not automatically retry a different payment route.
155
+ */
156
+ post: operations["createAttempt"];
157
+ delete?: never;
158
+ options?: never;
159
+ head?: never;
160
+ patch?: never;
161
+ trace?: never;
162
+ };
163
+ "/payments/{payment_id}/external-attempts": {
164
+ parameters: {
165
+ query?: never;
166
+ header?: never;
167
+ path: {
168
+ payment_id: components["parameters"]["payment_id"];
169
+ };
170
+ cookie?: never;
171
+ };
172
+ get?: never;
173
+ put?: never;
174
+ /**
175
+ * Attach merchant-created checkout
176
+ * @description Server only. Verify account/env/order/binding against provider. Bindings from browser-submitted IDs are not accepted. Historical imports are observation-only. Inbox events arriving before attachment are retained and replayed.
177
+ */
178
+ post: operations["attachExternalAttempt"];
179
+ delete?: never;
180
+ options?: never;
181
+ head?: never;
182
+ patch?: never;
183
+ trace?: never;
184
+ };
185
+ "/attempts/{attempt_id}": {
186
+ parameters: {
187
+ query?: never;
188
+ header?: never;
189
+ path: {
190
+ attempt_id: components["parameters"]["attempt_id"];
191
+ };
192
+ cookie?: never;
193
+ };
194
+ /** Get current execution state */
195
+ get: operations["getAttempt"];
196
+ put?: never;
197
+ post?: never;
198
+ delete?: never;
199
+ options?: never;
200
+ head?: never;
201
+ patch?: never;
202
+ trace?: never;
203
+ };
204
+ "/attempts/{attempt_id}/confirm": {
205
+ parameters: {
206
+ query?: never;
207
+ header?: never;
208
+ path: {
209
+ attempt_id: components["parameters"]["attempt_id"];
210
+ };
211
+ cookie?: never;
212
+ };
213
+ get?: never;
214
+ put?: never;
215
+ /**
216
+ * Perform required provider confirmation or capture
217
+ * @description PayPal capture may be required after buyer approval. Adapter capability and initiation permission are checked. Browser return is only a trigger; authoritative state is reloaded. R1 capture is the exact remaining quote obligation, not a client-provided amount.
218
+ */
219
+ post: operations["confirmAttempt"];
220
+ delete?: never;
221
+ options?: never;
222
+ head?: never;
223
+ patch?: never;
224
+ trace?: never;
225
+ };
226
+ "/payments/{payment_id}/verify": {
227
+ parameters: {
228
+ query?: never;
229
+ header?: never;
230
+ path: {
231
+ payment_id: components["parameters"]["payment_id"];
232
+ };
233
+ cookie?: never;
234
+ };
235
+ get?: never;
236
+ put?: never;
237
+ /**
238
+ * Schedule authoritative evidence verification
239
+ * @description Does not accept paid=true or set success. Requesting verification does not allocate unverified evidence.
240
+ */
241
+ post: operations["requestVerification"];
242
+ delete?: never;
243
+ options?: never;
244
+ head?: never;
245
+ patch?: never;
246
+ trace?: never;
247
+ };
248
+ "/payments/{payment_id}/cancel": {
249
+ parameters: {
250
+ query?: never;
251
+ header?: never;
252
+ path: {
253
+ payment_id: components["parameters"]["payment_id"];
254
+ };
255
+ cookie?: never;
256
+ };
257
+ get?: never;
258
+ put?: never;
259
+ /**
260
+ * Stop new collection attempts
261
+ * @description Preserve every in-flight attempt and late payment. Never infer funds returned from local cancellation.
262
+ */
263
+ post: operations["cancelPayment"];
264
+ delete?: never;
265
+ options?: never;
266
+ head?: never;
267
+ patch?: never;
268
+ trace?: never;
269
+ };
270
+ "/payments/{payment_id}/reviews": {
271
+ parameters: {
272
+ query?: never;
273
+ header?: never;
274
+ path: {
275
+ payment_id: components["parameters"]["payment_id"];
276
+ };
277
+ cookie?: never;
278
+ };
279
+ get?: never;
280
+ put?: never;
281
+ /**
282
+ * Record a narrow audited fulfillment decision
283
+ * @description Compare expected_resource_version under lock. accept_late_payment requires independent valid evidence, bound order, correct full amount/asset/payee/account and timing-only hold; all other blockers fail with 409. It does not reopen collection, manufacture money, clear refunds/disputes, change provenance, or reissue an existing grant. keep_on_hold and reject_fulfillment record persistent business restrictions; reconciliation must not silently discard them. If an effect is already claimed/applied/unknown, preserve that fact and return conflict or review without pretending to undo it. Actor comes from auth; reason and prior/new decision are immutable audit data. New command/outbox, if justified, uses the existing order/action grant identity.
284
+ */
285
+ post: operations["reviewPayment"];
286
+ delete?: never;
287
+ options?: never;
288
+ head?: never;
289
+ patch?: never;
290
+ trace?: never;
291
+ };
292
+ "/operations/{operation_id}": {
293
+ parameters: {
294
+ query?: never;
295
+ header?: never;
296
+ path: {
297
+ operation_id: components["parameters"]["operation_id"];
298
+ };
299
+ cookie?: never;
300
+ };
301
+ /** Inspect an operation without repeating it */
302
+ get: operations["getOperation"];
303
+ put?: never;
304
+ post?: never;
305
+ delete?: never;
306
+ options?: never;
307
+ head?: never;
308
+ patch?: never;
309
+ trace?: never;
310
+ };
311
+ "/operations/{operation_id}/recover": {
312
+ parameters: {
313
+ query?: never;
314
+ header?: never;
315
+ path: {
316
+ operation_id: components["parameters"]["operation_id"];
317
+ };
318
+ cookie?: never;
319
+ };
320
+ get?: never;
321
+ put?: never;
322
+ /**
323
+ * Recover the same unknown operation
324
+ * @description Never change provider identity/key just to make unknown work look failed. Recovery consults provider idempotency retention/capabilities and requires review when safety cannot be established.
325
+ */
326
+ post: operations["recoverOperation"];
327
+ delete?: never;
328
+ options?: never;
329
+ head?: never;
330
+ patch?: never;
331
+ trace?: never;
332
+ };
333
+ "/connections": {
334
+ parameters: {
335
+ query?: never;
336
+ header?: never;
337
+ path?: never;
338
+ cookie?: never;
339
+ };
340
+ /** List provider connections */
341
+ get: operations["listConnections"];
342
+ put?: never;
343
+ /**
344
+ * Register provisional merchant provider configuration
345
+ * @description Do not return/log credentials. Creation may persist encrypted provisional configuration WITHOUT reserving canonical provider_accounts identity. Caller expected_provider_account_id alone never reserves another merchant account. No ready/create/attach is allowed before actual identity and remaining readiness checks succeed. Operator-only secret references must already be tenant bound. Canonical account reservation occurs only after credentials and authoritative evidence establish actual account/environment/authority; then identity is shared across the same merchant projects.
346
+ */
347
+ post: operations["createConnection"];
348
+ delete?: never;
349
+ options?: never;
350
+ head?: never;
351
+ patch?: never;
352
+ trace?: never;
353
+ };
354
+ "/connections/{connection_id}": {
355
+ parameters: {
356
+ query?: never;
357
+ header?: never;
358
+ path: {
359
+ connection_id: components["parameters"]["connection_id"];
360
+ };
361
+ cookie?: never;
362
+ };
363
+ /** Get metadata and capabilities, never secrets */
364
+ get: operations["getConnection"];
365
+ put?: never;
366
+ post?: never;
367
+ delete?: never;
368
+ options?: never;
369
+ head?: never;
370
+ patch?: never;
371
+ trace?: never;
372
+ };
373
+ "/connections/{connection_id}/validate": {
374
+ parameters: {
375
+ query?: never;
376
+ header?: never;
377
+ path: {
378
+ connection_id: components["parameters"]["connection_id"];
379
+ };
380
+ cookie?: never;
381
+ };
382
+ get?: never;
383
+ put?: never;
384
+ /**
385
+ * Validate actual account/environment and permissions
386
+ * @description Use official allowlisted endpoints. Optional identity_evidence references a controlled merchant-created PayPal Order/Capture retrieved with these credentials. Verify authoritative payee against expected identity and these credentials seller context/default payee or independently established provider authority; a caller string or arbitrary readable order is insufficient. Reserve canonical provider account only after verified identity, under uniqueness/ownership transaction. No automatic real payment/capture is made for validation. Unavailable/insufficient evidence leaves identity_verified=false and no canonical reservation.
387
+ */
388
+ post: operations["validateConnection"];
389
+ delete?: never;
390
+ options?: never;
391
+ head?: never;
392
+ patch?: never;
393
+ trace?: never;
394
+ };
395
+ "/connections/{connection_id}/credentials": {
396
+ parameters: {
397
+ query?: never;
398
+ header?: never;
399
+ path: {
400
+ connection_id: components["parameters"]["connection_id"];
401
+ };
402
+ cookie?: never;
403
+ };
404
+ get?: never;
405
+ put?: never;
406
+ /**
407
+ * Rotate encrypted provider credentials
408
+ * @description Old in-flight webhook secret support follows an explicit rotation window. Secrets are never read back.
409
+ */
410
+ post: operations["rotateConnectionCredentials"];
411
+ delete?: never;
412
+ options?: never;
413
+ head?: never;
414
+ patch?: never;
415
+ trace?: never;
416
+ };
417
+ "/connections/{connection_id}/disable": {
418
+ parameters: {
419
+ query?: never;
420
+ header?: never;
421
+ path: {
422
+ connection_id: components["parameters"]["connection_id"];
423
+ };
424
+ cookie?: never;
425
+ };
426
+ get?: never;
427
+ put?: never;
428
+ /**
429
+ * Stop new actions for this connection
430
+ * @description Do not erase pending/unknown operations or delivery work.
431
+ */
432
+ post: operations["disableConnection"];
433
+ delete?: never;
434
+ options?: never;
435
+ head?: never;
436
+ patch?: never;
437
+ trace?: never;
438
+ };
439
+ "/webhook-endpoints": {
440
+ parameters: {
441
+ query?: never;
442
+ header?: never;
443
+ path?: never;
444
+ cookie?: never;
445
+ };
446
+ get?: never;
447
+ put?: never;
448
+ /**
449
+ * Register merchant event destination
450
+ * @description Validate public HTTPS destination, DNS resolution, redirect policy, private networks and tenant ownership rules; localhost only explicit test allowlist. Store one-time creation response encrypted for narrowly scoped idempotent retry; ordinary reads never expose secret.
451
+ */
452
+ post: operations["createWebhookEndpoint"];
453
+ delete?: never;
454
+ options?: never;
455
+ head?: never;
456
+ patch?: never;
457
+ trace?: never;
458
+ };
459
+ "/webhook-endpoints/{endpoint_id}": {
460
+ parameters: {
461
+ query?: never;
462
+ header?: never;
463
+ path: {
464
+ endpoint_id: components["parameters"]["endpoint_id"];
465
+ };
466
+ cookie?: never;
467
+ };
468
+ /** Get merchant event destination metadata */
469
+ get: operations["getWebhookEndpoint"];
470
+ put?: never;
471
+ post?: never;
472
+ delete?: never;
473
+ options?: never;
474
+ head?: never;
475
+ patch?: never;
476
+ trace?: never;
477
+ };
478
+ "/webhook-endpoints/{endpoint_id}/rotate-secret": {
479
+ parameters: {
480
+ query?: never;
481
+ header?: never;
482
+ path: {
483
+ endpoint_id: components["parameters"]["endpoint_id"];
484
+ };
485
+ cookie?: never;
486
+ };
487
+ get?: never;
488
+ put?: never;
489
+ /**
490
+ * Rotate merchant event signing secret
491
+ * @description Different key_id, overlap bounded; sender chooses new key and consumer accepts allowed old key until cutoff.
492
+ */
493
+ post: operations["rotateWebhookSecret"];
494
+ delete?: never;
495
+ options?: never;
496
+ head?: never;
497
+ patch?: never;
498
+ trace?: never;
499
+ };
500
+ "/webhooks/providers/{connection_id}": {
501
+ parameters: {
502
+ query?: never;
503
+ header?: never;
504
+ path: {
505
+ connection_id: components["parameters"]["connection_id"];
506
+ };
507
+ cookie?: never;
508
+ };
509
+ get?: never;
510
+ put?: never;
511
+ /**
512
+ * Receive original provider webhook bytes
513
+ * @description Provider-specific cryptographic authentication is mandatory despite no bearer scheme. Preserve exact raw body; validate signature, canonical account and environment. Stripe-Signature or the PayPal transmission headers are interpreted by the selected adapter. No 0to1Pay Idempotency-Key is required. Return 2xx only after authenticated inbox persistence (including dedup). Do not synchronously fulfill. Never proxy arbitrary certificate URLs.
514
+ */
515
+ post: operations["ingestProviderWebhook"];
516
+ delete?: never;
517
+ options?: never;
518
+ head?: never;
519
+ patch?: never;
520
+ trace?: never;
521
+ };
522
+ "/events": {
523
+ parameters: {
524
+ query?: never;
525
+ header?: never;
526
+ path?: never;
527
+ cookie?: never;
528
+ };
529
+ /**
530
+ * Replay project events by opaque cursor
531
+ * @description Ordered by committed event sequence within this project/environment. Event bodies immutable. Re-reading events does not reissue grants.
532
+ */
533
+ get: operations["listEvents"];
534
+ put?: never;
535
+ post?: never;
536
+ delete?: never;
537
+ options?: never;
538
+ head?: never;
539
+ patch?: never;
540
+ trace?: never;
541
+ };
542
+ "/fulfillments/{command_id}": {
543
+ parameters: {
544
+ query?: never;
545
+ header?: never;
546
+ path: {
547
+ command_id: components["parameters"]["command_id"];
548
+ };
549
+ cookie?: never;
550
+ };
551
+ /** Get command and current execution projections */
552
+ get: operations["getFulfillment"];
553
+ put?: never;
554
+ post?: never;
555
+ delete?: never;
556
+ options?: never;
557
+ head?: never;
558
+ patch?: never;
559
+ trace?: never;
560
+ };
561
+ "/fulfillments/{command_id}/claim": {
562
+ parameters: {
563
+ query?: never;
564
+ header?: never;
565
+ path: {
566
+ command_id: components["parameters"]["command_id"];
567
+ };
568
+ cookie?: never;
569
+ };
570
+ get?: never;
571
+ put?: never;
572
+ /**
573
+ * Request fresh execution permission
574
+ * @description Idempotency binds request/claim identity but bypasses generic cached-success replay. Always recheck claim expiry/revocation, current decision and same grant desired_version. claim validity is time-of-check; later provider changes can require compensation. Same key cannot create a new lease after expiry.
575
+ */
576
+ post: operations["claimFulfillment"];
577
+ delete?: never;
578
+ options?: never;
579
+ head?: never;
580
+ patch?: never;
581
+ trace?: never;
582
+ };
583
+ "/fulfillments/{command_id}/results": {
584
+ parameters: {
585
+ query?: never;
586
+ header?: never;
587
+ path: {
588
+ command_id: components["parameters"]["command_id"];
589
+ };
590
+ cookie?: never;
591
+ };
592
+ get?: never;
593
+ put?: never;
594
+ /**
595
+ * Record the merchant-reported outcome
596
+ * @description A receipt attests the merchant commit; it does not independently prove delivery. Accept late results belonging to a real prior claim, even expired/superseded, and mark review as needed. Conflicting reports append a review record and return conflict; never overwrite silently.
597
+ */
598
+ post: operations["reportFulfillmentResult"];
599
+ delete?: never;
600
+ options?: never;
601
+ head?: never;
602
+ patch?: never;
603
+ trace?: never;
604
+ };
605
+ "/fulfillments/{command_id}/retry-delivery": {
606
+ parameters: {
607
+ query?: never;
608
+ header?: never;
609
+ path: {
610
+ command_id: components["parameters"]["command_id"];
611
+ };
612
+ cookie?: never;
613
+ };
614
+ get?: never;
615
+ put?: never;
616
+ /**
617
+ * Redeliver the same immutable command
618
+ * @description No new grant identity, no reset of applied/unknown side effects.
619
+ */
620
+ post: operations["retryFulfillmentDelivery"];
621
+ delete?: never;
622
+ options?: never;
623
+ head?: never;
624
+ patch?: never;
625
+ trace?: never;
626
+ };
627
+ }
628
+ export interface webhooks {
629
+ stablepayEvent: {
630
+ parameters: {
631
+ query?: never;
632
+ header?: never;
633
+ path?: never;
634
+ cookie?: never;
635
+ };
636
+ get?: never;
637
+ put?: never;
638
+ /**
639
+ * Outbound event delivered to merchant registered endpoint
640
+ * @description Authenticate StablePay-Signature against the endpoint key. Exact signing input is UTF8("stablepay.webhook.v1\n" + event_id + "\n" + delivery_id + "\n" + t + "\n") || raw_body_bytes. HMAC-SHA256 lower hex, t Unix seconds; timing-safe compare; default 300 second clock tolerance. Sender refreshes t/delivery_id each network attempt, event body and command identity unchanged. Durable inbox before ACK. 2xx is receipt only.
641
+ */
642
+ post: operations["receiveStablePayEvent"];
643
+ delete?: never;
644
+ options?: never;
645
+ head?: never;
646
+ patch?: never;
647
+ trace?: never;
648
+ };
649
+ }
650
+ export interface components {
651
+ schemas: {
652
+ /** @enum {string} */
653
+ Environment: "test" | "live";
654
+ EvmAddress: string;
655
+ EvmHash: string;
656
+ /**
657
+ * @description EVM or TRON chain ID, or a local or Solana selector. Use network_id for the network reference.
658
+ * @enum {integer}
659
+ */
660
+ ChainSelectorId: 1 | 999 | 8453 | 42161 | 84532 | 11155111 | 31337 | 31338 | 31339 | 31340 | 900001 | 900002 | 728126428 | 900003;
661
+ /** @description Decimal TRON identifiers are emitted. The hexadecimal TRON mainnet alias is accepted on connection creation. */
662
+ ChainNetworkId: string;
663
+ /** @enum {string} */
664
+ ChainFamily: "evm" | "solana" | "tron";
665
+ /**
666
+ * @description Order denomination, expressed in six decimal places.
667
+ * @enum {string}
668
+ */
669
+ StableDenomination: "stable:USDC" | "stable:USDT";
670
+ /**
671
+ * @description Display ticker. USDT0 is the ASCII display spelling of USD₮0.
672
+ * @enum {string}
673
+ */
674
+ ChainTokenSymbol: "USDC" | "USDT" | "USDT0";
675
+ /**
676
+ * @description Token deployment type. USDT0 and the registered Standard Bridge token settle stable:USDT quotes on their respective networks.
677
+ * @enum {string}
678
+ */
679
+ ChainAssetRepresentation: "native" | "usdt0" | "standard_bridge" | "fixture";
680
+ ChainAddress: components["schemas"]["EvmAddress"] | string;
681
+ ChainQuoteTerms: {
682
+ chain_id: components["schemas"]["ChainSelectorId"];
683
+ network_id?: components["schemas"]["ChainNetworkId"];
684
+ family?: components["schemas"]["ChainFamily"];
685
+ denomination?: components["schemas"]["StableDenomination"];
686
+ symbol?: components["schemas"]["ChainTokenSymbol"];
687
+ representation?: components["schemas"]["ChainAssetRepresentation"];
688
+ token_address: components["schemas"]["ChainAddress"];
689
+ recipient_owner?: components["schemas"]["ChainAddress"];
690
+ /** @description First block or slot eligible for observation. */
691
+ start_block: string;
692
+ anchor_hash: components["schemas"]["EvmHash"];
693
+ /** @description Earliest eligible chain block timestamp, in Unix seconds. Wait until this time before paying against the quote. */
694
+ starts_at_epoch: number;
695
+ };
696
+ ChainAssets: {
697
+ data: {
698
+ asset: string;
699
+ denomination: components["schemas"]["StableDenomination"];
700
+ symbol: components["schemas"]["ChainTokenSymbol"];
701
+ representation: components["schemas"]["ChainAssetRepresentation"];
702
+ token_address: components["schemas"]["ChainAddress"];
703
+ chain_id: components["schemas"]["ChainSelectorId"];
704
+ network_id: components["schemas"]["ChainNetworkId"];
705
+ network_name: string;
706
+ family: components["schemas"]["ChainFamily"];
707
+ /** @constant */
708
+ decimals: 6;
709
+ priority: number;
710
+ /** @constant */
711
+ finality: "finalized";
712
+ }[];
713
+ };
714
+ CreateChainConnection: {
715
+ display_name: string;
716
+ chain_id?: components["schemas"]["ChainSelectorId"];
717
+ network_id?: components["schemas"]["ChainNetworkId"];
718
+ } & (unknown | unknown);
719
+ RegisterChainRecipients: {
720
+ /** @description Determines the denomination for recipient registration. Omission selects USDC on EVM and Solana or USDT on TRON. EVM recipients are shared before a quote is assigned. */
721
+ denomination?: components["schemas"]["StableDenomination"];
722
+ recipients: {
723
+ /** @description Seller wallet address. On Solana the service derives the associated token account for the selected mint. */
724
+ address: components["schemas"]["ChainAddress"];
725
+ /** @description Scoped EIP-191 proof on EVM, TIP-191 personal proof on TRON, or Ed25519 proof on Solana, encoded as hex. */
726
+ signature: string;
727
+ }[];
728
+ };
729
+ ChainRecipients: {
730
+ /** Format: uuid */
731
+ connection_id: string;
732
+ chain_id: components["schemas"]["ChainSelectorId"];
733
+ network_id?: components["schemas"]["ChainNetworkId"];
734
+ /** @description Solana denomination for these mint-specific addresses. */
735
+ denomination?: components["schemas"]["StableDenomination"];
736
+ /** @description Address pool entries. On Solana these are associated token accounts for the selected mint. */
737
+ addresses: components["schemas"]["ChainAddress"][];
738
+ };
739
+ /** @description The asset registry must confirm scale. USD 10.00 is amount_atomic="1000", scale=2. Gross obligation, not net payout. R1 rejects unconfigured assets. */
740
+ Money: {
741
+ /** @description Immutable fiat registry, stable:USDC or stable:USDT denomination, or an exact registered chain asset for a frozen quote. */
742
+ asset: string;
743
+ /** @description Positive integer in the asset minor unit; never a float. */
744
+ amount_atomic: string;
745
+ scale: number;
746
+ };
747
+ NonNegativeMoney: {
748
+ asset: string;
749
+ amount_atomic: string;
750
+ scale: number;
751
+ };
752
+ Error: {
753
+ error: {
754
+ code: string;
755
+ message: string;
756
+ /** Format: uuid */
757
+ request_id: string;
758
+ details?: {
759
+ [key: string]: unknown;
760
+ };
761
+ };
762
+ };
763
+ /** @description R1 has one immutable business action per Payment. Multi-item carts should be one merchant action with an immutable line snapshot; splitting business effects requires explicit independent action identities. */
764
+ FulfillmentSpec: {
765
+ /** @enum {string} */
766
+ mode: "merchant_action" | "webhook_only";
767
+ /** @description Stable per order business effect; reuse across payment/price retries. */
768
+ action_ref: string;
769
+ action: string;
770
+ /** @description Merchant-owned identity fixed before payment. */
771
+ target_ref: string;
772
+ /** Format: uuid */
773
+ endpoint_id: string;
774
+ payload: {
775
+ [key: string]: unknown;
776
+ };
777
+ };
778
+ CreatePayment: {
779
+ order_ref: string;
780
+ order_revision: number;
781
+ customer_ref: string;
782
+ price: components["schemas"]["Money"];
783
+ allowed_connections: string[];
784
+ policy_ref: string;
785
+ /** @default 1800 */
786
+ expires_in_seconds: number;
787
+ fulfillment: components["schemas"]["FulfillmentSpec"];
788
+ metadata?: {
789
+ [key: string]: string;
790
+ };
791
+ };
792
+ Assurance: {
793
+ /** @enum {string} */
794
+ kind: "none" | "provider_authorized" | "provider_capture" | "chain_included" | "chain_finalized" | "merchant_attested";
795
+ reversible: boolean;
796
+ details?: {
797
+ [key: string]: unknown;
798
+ };
799
+ };
800
+ Verification: {
801
+ /** @enum {string} */
802
+ status: "pending" | "valid" | "invalid" | "unavailable";
803
+ basis: ("provider_api" | "provider_signed_event" | "canonical_chain" | "merchant_attestation") | null;
804
+ /** @enum {string} */
805
+ binding: "bound" | "unbound" | "ambiguous";
806
+ assurance: components["schemas"]["Assurance"];
807
+ checked_at: string | null;
808
+ reason_codes: string[];
809
+ };
810
+ Decision: {
811
+ /** Format: uuid */
812
+ id: string;
813
+ version: number;
814
+ /** @enum {string} */
815
+ status: "awaiting" | "eligible" | "held" | "revoked";
816
+ reason_codes: string[];
817
+ policy_ref: string;
818
+ /** Format: date-time */
819
+ observed_at: string;
820
+ evidence_ids: string[];
821
+ };
822
+ FulfillmentSummary: {
823
+ command_id: string | null;
824
+ /** @enum {string} */
825
+ delivery_status: "pending" | "delivered" | "retrying" | "exhausted";
826
+ /** @enum {string} */
827
+ execution_status: "pending" | "applied" | "noop" | "failed" | "unknown";
828
+ };
829
+ Adjustment: {
830
+ /** Format: uuid */
831
+ adjustment_id: string;
832
+ /** @enum {string} */
833
+ kind: "refund" | "dispute" | "reversal" | "reorg" | "manual_review";
834
+ /** @description Provider-specific substate preserved. */
835
+ status: string;
836
+ money: components["schemas"]["NonNegativeMoney"] | null;
837
+ external_ref: string | null;
838
+ /** Format: date-time */
839
+ observed_at: string;
840
+ };
841
+ Payment: {
842
+ /** Format: uuid */
843
+ merchant_id: string;
844
+ /** Format: uuid */
845
+ project_id: string;
846
+ environment: components["schemas"]["Environment"];
847
+ /** Format: uuid */
848
+ payment_id: string;
849
+ order_ref: string;
850
+ order_revision: number;
851
+ customer_ref: string;
852
+ price: components["schemas"]["Money"];
853
+ allowed_connections: string[];
854
+ policy_ref: string;
855
+ /** @enum {string} */
856
+ lifecycle: "open" | "expired" | "canceled" | "closed";
857
+ /** @enum {string} */
858
+ funding_status: "unfunded" | "partial" | "funded" | "excess";
859
+ verification: components["schemas"]["Verification"];
860
+ decision: components["schemas"]["Decision"];
861
+ fulfillment: components["schemas"]["FulfillmentSummary"];
862
+ fulfillment_spec: components["schemas"]["FulfillmentSpec"];
863
+ adjustments: components["schemas"]["Adjustment"][];
864
+ /** Format: date-time */
865
+ expires_at: string;
866
+ /** Format: date-time */
867
+ created_at: string;
868
+ /** Format: date-time */
869
+ updated_at: string;
870
+ resource_version: number;
871
+ };
872
+ CreateQuote: {
873
+ /** Format: uuid */
874
+ connection_id: string;
875
+ /** @description Fiat must equal Payment.price.asset. A chain quote accepts the same stablecoin denomination or the exact registered asset for that denomination and selected network. */
876
+ presentment_asset: string;
877
+ /** @default 900 */
878
+ expires_in_seconds: number;
879
+ };
880
+ /** @description Quote is immutable. Server derives payable and recipient from registered Payment/Connection; callers cannot redirect funds. */
881
+ Quote: {
882
+ /** Format: uuid */
883
+ merchant_id: string;
884
+ /** Format: uuid */
885
+ project_id: string;
886
+ environment: components["schemas"]["Environment"];
887
+ /** Format: uuid */
888
+ quote_id: string;
889
+ /** Format: uuid */
890
+ payment_id: string;
891
+ /** Format: uuid */
892
+ connection_id: string;
893
+ pricing_revision: number;
894
+ payable: components["schemas"]["Money"];
895
+ chain?: components["schemas"]["ChainQuoteTerms"];
896
+ recipient_account: string;
897
+ pricing_terms_hash: string;
898
+ /** Format: date-time */
899
+ expires_at: string;
900
+ /** Format: date-time */
901
+ created_at: string;
902
+ };
903
+ ExternalResource: {
904
+ /** @enum {string} */
905
+ type: "checkout_session" | "payment_intent" | "paypal_order" | "paypal_capture" | "chain_transaction";
906
+ id: string;
907
+ };
908
+ CreateAttempt: {
909
+ /** Format: uuid */
910
+ connection_id: string;
911
+ /** Format: uuid */
912
+ quote_id: string;
913
+ /**
914
+ * Format: uri
915
+ * @description Required for Stripe and PayPal. Omit for an EVM transfer instruction.
916
+ */
917
+ return_url?: string;
918
+ /** Format: uri */
919
+ cancel_url?: string;
920
+ };
921
+ AttachExternalAttempt: {
922
+ /** Format: uuid */
923
+ connection_id: string;
924
+ /** Format: uuid */
925
+ quote_id: string;
926
+ resource: components["schemas"]["ExternalResource"];
927
+ /** @description Merchant backend creation-operation reference; never a standalone proof. */
928
+ binding_ref: string;
929
+ /**
930
+ * @description Historical imports never emit a grant in R1.
931
+ * @enum {string}
932
+ */
933
+ import_mode: "current" | "historical_observe_only";
934
+ };
935
+ RedirectAction: {
936
+ /**
937
+ * @description discriminator enum property added by openapi-typescript
938
+ * @enum {string}
939
+ */
940
+ type: "redirect";
941
+ /** Format: uri */
942
+ url: string;
943
+ expires_at: string | null;
944
+ };
945
+ ProviderClientAction: {
946
+ /**
947
+ * @description discriminator enum property added by openapi-typescript
948
+ * @enum {string}
949
+ */
950
+ type: "provider_client";
951
+ /** @enum {string} */
952
+ provider: "stripe" | "paypal";
953
+ /** @description Scoped provider client secret. Never a server API credential. */
954
+ client_capability: string;
955
+ expires_at: string | null;
956
+ };
957
+ /** @description Reserved for Release 2; R1 adapters must not emit. */
958
+ WalletRequestAction: {
959
+ /**
960
+ * @description discriminator enum property added by openapi-typescript
961
+ * @enum {string}
962
+ */
963
+ type: "wallet_request";
964
+ chain_id: string;
965
+ request: {
966
+ [key: string]: unknown;
967
+ };
968
+ };
969
+ /** @description Watch-only stablecoin payment with the exact registered deployment and permanently assigned recipient in the quote. */
970
+ TransferInstructionAction: {
971
+ /**
972
+ * @description discriminator enum property added by openapi-typescript
973
+ * @enum {string}
974
+ */
975
+ type: "transfer_instruction";
976
+ /** Format: uuid */
977
+ quote_id: string;
978
+ chain_id: components["schemas"]["ChainSelectorId"];
979
+ token_address: components["schemas"]["ChainAddress"];
980
+ network_id?: components["schemas"]["ChainNetworkId"];
981
+ family?: components["schemas"]["ChainFamily"];
982
+ denomination?: components["schemas"]["StableDenomination"];
983
+ symbol?: components["schemas"]["ChainTokenSymbol"];
984
+ representation?: components["schemas"]["ChainAssetRepresentation"];
985
+ recipient_owner?: components["schemas"]["ChainAddress"];
986
+ /** @description Earliest eligible chain block timestamp, in Unix seconds. Broadcast the transfer at or after this time. */
987
+ starts_at_epoch: number;
988
+ /** Format: date-time */
989
+ expires_at: string;
990
+ recipient: string;
991
+ reference: string | null;
992
+ payable: components["schemas"]["Money"];
993
+ };
994
+ NoAction: {
995
+ /**
996
+ * @description discriminator enum property added by openapi-typescript
997
+ * @enum {string}
998
+ */
999
+ type: "none";
1000
+ };
1001
+ NextAction: components["schemas"]["RedirectAction"] | components["schemas"]["ProviderClientAction"] | components["schemas"]["WalletRequestAction"] | components["schemas"]["TransferInstructionAction"] | components["schemas"]["NoAction"];
1002
+ Binding: {
1003
+ /** @enum {string} */
1004
+ status: "bound" | "unbound" | "ambiguous";
1005
+ /** @enum {string} */
1006
+ method: "provider_resource_mapping" | "provider_invoice_reference" | "unique_recipient" | "invoice_event" | "merchant_attestation";
1007
+ reference: string;
1008
+ /** Format: date-time */
1009
+ registered_at: string;
1010
+ verified_at: string | null;
1011
+ };
1012
+ /** @description Unknown attempt must have next_action.type=none. A successful create operation means an external resource was created, not that money was paid. Core verifies payment separately. */
1013
+ Attempt: {
1014
+ /** Format: uuid */
1015
+ merchant_id: string;
1016
+ /** Format: uuid */
1017
+ project_id: string;
1018
+ environment: components["schemas"]["Environment"];
1019
+ /** Format: uuid */
1020
+ attempt_id: string;
1021
+ /** Format: uuid */
1022
+ payment_id: string;
1023
+ /** Format: uuid */
1024
+ quote_id: string;
1025
+ /** Format: uuid */
1026
+ connection_id: string;
1027
+ /** @enum {string} */
1028
+ mode: "managed" | "external";
1029
+ /** @enum {string} */
1030
+ execution_status: "created" | "requires_action" | "processing" | "unknown" | "succeeded" | "failed" | "canceled";
1031
+ operation_id: string | null;
1032
+ external_resources: components["schemas"]["ExternalResource"][];
1033
+ binding: components["schemas"]["Binding"];
1034
+ next_action: components["schemas"]["NextAction"];
1035
+ /** Format: date-time */
1036
+ created_at: string;
1037
+ /** Format: date-time */
1038
+ updated_at: string;
1039
+ resource_version: number;
1040
+ } & unknown;
1041
+ Operation: {
1042
+ /** Format: uuid */
1043
+ merchant_id: string;
1044
+ /** Format: uuid */
1045
+ project_id: string;
1046
+ environment: components["schemas"]["Environment"];
1047
+ /** Format: uuid */
1048
+ operation_id: string;
1049
+ /** @enum {string} */
1050
+ kind: "create_attempt" | "confirm_attempt" | "cancel_payment" | "verify_payment" | "recover_operation" | "validate_connection" | "retry_delivery";
1051
+ /** @enum {string} */
1052
+ status: "prepared" | "running" | "unknown" | "succeeded" | "failed" | "review_required";
1053
+ /** Format: uuid */
1054
+ resource_id: string;
1055
+ request_hash: string;
1056
+ provider_request_ref: string | null;
1057
+ result_ref: string | null;
1058
+ reason_codes: string[];
1059
+ /** Format: date-time */
1060
+ created_at: string;
1061
+ /** Format: date-time */
1062
+ updated_at: string;
1063
+ next_check_at: string | null;
1064
+ };
1065
+ AttemptMutationResult: {
1066
+ attempt: components["schemas"]["Attempt"];
1067
+ operation: components["schemas"]["Operation"] | null;
1068
+ };
1069
+ /** @description Server-only action; the stored provider order and immutable quote determine capture amount/payee. Browser approval callback is only a hint. No arbitrary resource ID or amount is accepted. */
1070
+ ConfirmAttempt: {
1071
+ expected_resource_version: number;
1072
+ };
1073
+ VerifyRequest: {
1074
+ /** Format: uuid */
1075
+ attempt_id?: string;
1076
+ /** @enum {string} */
1077
+ reason: "buyer_return" | "merchant_request" | "reconciliation" | "support_retry";
1078
+ };
1079
+ /** @description Stops new attempts immediately. Provider cancel is separately confirmed; cancellation cannot erase money already sent or guarantee in-flight remote payment cancellation. */
1080
+ CancelPayment: {
1081
+ expected_resource_version: number;
1082
+ reason: string;
1083
+ };
1084
+ /** @description Queries/retries the same logical provider operation only when supported idempotency rules prove that safe. Never issues a new logical payment after an ambiguous result. */
1085
+ RecoverOperation: {
1086
+ reason: string;
1087
+ };
1088
+ /** @description Narrow audited business exception. accept_late_payment only accepts independently valid, bound, correctly funded evidence held for timing; it cannot override amount, payee, account, asset, evidence integrity or duplicate allocation. No paid=true or evidence mutation. */
1089
+ ReviewRequest: {
1090
+ expected_resource_version: number;
1091
+ /** @enum {string} */
1092
+ action: "accept_late_payment" | "keep_on_hold" | "reject_fulfillment";
1093
+ /** @description Required human/business justification; not a replacement payment proof. */
1094
+ reason: string;
1095
+ };
1096
+ /** @description Immutable review/audit record plus resulting decision committed together. review_id may be the audit_events primary key. Existing grant identity is reused; no duplicate grant or automatic compensation is manufactured. */
1097
+ ReviewResult: {
1098
+ /** Format: uuid */
1099
+ review_id: string;
1100
+ /** Format: uuid */
1101
+ payment_id: string;
1102
+ /** @enum {string} */
1103
+ action: "accept_late_payment" | "keep_on_hold" | "reject_fulfillment";
1104
+ /** Format: uuid */
1105
+ previous_decision_id: string;
1106
+ decision: components["schemas"]["Decision"];
1107
+ /** @description Server-derived authenticated principal; caller cannot choose it. */
1108
+ actor_ref: string;
1109
+ reason: string;
1110
+ /** Format: date-time */
1111
+ created_at: string;
1112
+ };
1113
+ Capabilities: {
1114
+ create_checkout: boolean;
1115
+ confirm_payment: boolean;
1116
+ retrieve_evidence: boolean;
1117
+ signed_events: boolean;
1118
+ reconcile_changes: boolean;
1119
+ observe_refunds: boolean;
1120
+ observe_disputes: boolean;
1121
+ enforce_expiry: boolean;
1122
+ binding_methods: string[];
1123
+ };
1124
+ StripeCredentials: {
1125
+ /** @constant */
1126
+ kind: "stripe_secret";
1127
+ /** @description Validated and encrypted before persistence; never logged. */
1128
+ restricted_api_key: string;
1129
+ /** @description For the exact registered 0to1Pay ingress endpoint. May be omitted only at unvalidated bootstrap; ready validation requires it. */
1130
+ webhook_signing_secret?: string;
1131
+ };
1132
+ PayPalCredentials: {
1133
+ /** @constant */
1134
+ kind: "paypal_secret";
1135
+ /** @description PayPal application client ID; returned Connection omits it. */
1136
+ client_id: string;
1137
+ /** @description Encrypted before persistence. */
1138
+ client_secret: string;
1139
+ /** @description Registered PayPal webhook ID. Not a signing key; may be omitted only at unvalidated bootstrap. Ready validation requires it. */
1140
+ webhook_id?: string;
1141
+ };
1142
+ SecretReference: {
1143
+ /** @constant */
1144
+ kind: "preprovisioned_secret_ref";
1145
+ /** @description Operator-only preallocated reference bound to this tenant/project/environment. No arbitrary filesystem or URL lookup. */
1146
+ credential_ref: string;
1147
+ };
1148
+ /** @description Provider/credential kind must agree. Auth key determines tenant/environment. Validation compares actual resource/account/env against expected identity. Preprovisioned reference requires operator permission; regular tenants supply writeOnly credentials. */
1149
+ CreateConnection: {
1150
+ /** @enum {string} */
1151
+ provider: "stripe" | "paypal";
1152
+ display_name: string;
1153
+ /** @enum {string} */
1154
+ mode: "observe" | "initiate";
1155
+ expected_provider_account_id: string;
1156
+ credentials: components["schemas"]["StripeCredentials"] | components["schemas"]["PayPalCredentials"] | components["schemas"]["SecretReference"];
1157
+ return_origins: string[];
1158
+ };
1159
+ /** @description Provisional connections have identity_verified=false and provider_account_id=null and reserve no canonical account. No credentials, webhook secrets or credential references are returned. Only identity-verified and otherwise-ready connections may create/attach attempts. */
1160
+ Connection: {
1161
+ /** Format: uuid */
1162
+ merchant_id: string;
1163
+ /** Format: uuid */
1164
+ project_id: string;
1165
+ environment: components["schemas"]["Environment"];
1166
+ /** Format: uuid */
1167
+ connection_id: string;
1168
+ /** @enum {string} */
1169
+ provider: "stripe" | "paypal" | "evm" | "solana" | "tron";
1170
+ chain_id?: components["schemas"]["ChainSelectorId"];
1171
+ network_id?: components["schemas"]["ChainNetworkId"];
1172
+ network_name?: string;
1173
+ display_name: string;
1174
+ /** @enum {string} */
1175
+ mode: "observe" | "initiate";
1176
+ expected_provider_account_id: string;
1177
+ provider_account_id: string | null;
1178
+ identity_verified: boolean;
1179
+ /** @enum {string} */
1180
+ status: "unvalidated" | "ready" | "disabled" | "error";
1181
+ capabilities: components["schemas"]["Capabilities"];
1182
+ return_origins: string[];
1183
+ webhook_url: string | null;
1184
+ validated_at: string | null;
1185
+ /** Format: date-time */
1186
+ created_at: string;
1187
+ /** Format: date-time */
1188
+ updated_at: string;
1189
+ resource_version: number;
1190
+ } & (unknown & unknown);
1191
+ /** @description Optional controlled merchant-created resource, retrieved with supplied credentials. Must establish these credentials seller context/default payee or independently verified provider authorization; a matching caller string/arbitrary readable order alone is insufficient. No automatic real charge/capture is performed for identity validation. */
1192
+ IdentityEvidence: {
1193
+ /** @enum {string} */
1194
+ type: "paypal_order" | "paypal_capture";
1195
+ id: string;
1196
+ };
1197
+ /** @description Optional PayPal order/capture evidence enables provisional bootstrap. Retrieve authoritative resource and payee with these credentials, compare expected identity and verified seller context before canonical account reservation. Unsupported evidence/provider combinations are rejected. */
1198
+ ConnectionValidation: {
1199
+ reason?: string;
1200
+ identity_evidence?: components["schemas"]["IdentityEvidence"];
1201
+ };
1202
+ RotateConnectionCredentials: {
1203
+ credentials: components["schemas"]["StripeCredentials"] | components["schemas"]["PayPalCredentials"] | components["schemas"]["SecretReference"];
1204
+ expected_resource_version: number;
1205
+ };
1206
+ ConnectionDisable: {
1207
+ reason: string;
1208
+ expected_resource_version: number;
1209
+ };
1210
+ CreateWebhookEndpoint: {
1211
+ /**
1212
+ * Format: uri
1213
+ * @description HTTPS in live. Local test exception only explicit dev allowlist.
1214
+ */
1215
+ url: string;
1216
+ description?: string;
1217
+ event_types: ("fulfillment.requested" | "payment.decision_changed" | "payment.adjusted" | "payment.review_required" | "fulfillment.result_recorded")[];
1218
+ };
1219
+ /** @description Secret is returned only in the one-time creation/rotation envelope, not reads. */
1220
+ WebhookEndpoint: {
1221
+ /** Format: uuid */
1222
+ merchant_id: string;
1223
+ /** Format: uuid */
1224
+ project_id: string;
1225
+ environment: components["schemas"]["Environment"];
1226
+ /** Format: uuid */
1227
+ endpoint_id: string;
1228
+ /** Format: uri */
1229
+ url: string;
1230
+ event_types: string[];
1231
+ /** @enum {string} */
1232
+ status: "active" | "disabled";
1233
+ /** Format: uuid */
1234
+ signing_key_id: string;
1235
+ /** Format: date-time */
1236
+ created_at: string;
1237
+ /** Format: date-time */
1238
+ updated_at: string;
1239
+ };
1240
+ EndpointSecret: {
1241
+ /** Format: uuid */
1242
+ key_id: string;
1243
+ /** @description 32 random bytes, unpadded base64url. Display once and redact. */
1244
+ secret_base64url: string;
1245
+ /** Format: date-time */
1246
+ not_before: string;
1247
+ previous_key_accept_until: string | null;
1248
+ };
1249
+ EndpointCreated: {
1250
+ endpoint: components["schemas"]["WebhookEndpoint"];
1251
+ signing_secret: components["schemas"]["EndpointSecret"];
1252
+ };
1253
+ RotateWebhookSecret: {
1254
+ /** @default 3600 */
1255
+ overlap_seconds: number;
1256
+ };
1257
+ /** @description Immutable semantic fields. desired_version is monotonic across commands targeting the same grant resource. Delivery/execution projections may change. Generic R1 auto-reversal is review; typed compensation requires explicit policy. */
1258
+ FulfillmentCommand: {
1259
+ /** Format: uuid */
1260
+ merchant_id: string;
1261
+ /** Format: uuid */
1262
+ project_id: string;
1263
+ environment: components["schemas"]["Environment"];
1264
+ /** Format: uuid */
1265
+ command_id: string;
1266
+ /** Format: uuid */
1267
+ payment_id: string;
1268
+ order_ref: string;
1269
+ action_ref: string;
1270
+ /** Format: uuid */
1271
+ grant_key: string;
1272
+ /** @enum {string} */
1273
+ kind: "grant" | "revoke" | "adjust" | "reinstate";
1274
+ desired_version: number;
1275
+ /** Format: uuid */
1276
+ decision_id: string;
1277
+ target_ref: string;
1278
+ action: string;
1279
+ payload: {
1280
+ [key: string]: unknown;
1281
+ };
1282
+ /** @description Lowercase SHA256 hex of RFC8785 JCS(payload) UTF8. */
1283
+ payload_hash: string;
1284
+ /** @enum {string} */
1285
+ delivery_status: "pending" | "delivered" | "retrying" | "exhausted";
1286
+ /** @enum {string} */
1287
+ execution_status: "pending" | "applied" | "noop" | "failed" | "unknown";
1288
+ /** Format: date-time */
1289
+ created_at: string;
1290
+ /** Format: date-time */
1291
+ updated_at: string;
1292
+ };
1293
+ /** @description Stable execution identity. Replaying its key preserves claim identity but always re-evaluates current validity; no stale successful cache. */
1294
+ ClaimRequest: {
1295
+ /** Format: uuid */
1296
+ execution_id: string;
1297
+ instance_id: string;
1298
+ expected_desired_version: number;
1299
+ };
1300
+ /** @description valid=true iff decision=execute and current claim is unexpired/not revoked. HTTP 200 can contain valid=false. A claim is not a distributed transaction; later external refunds may require compensation. */
1301
+ Claim: {
1302
+ /** Format: uuid */
1303
+ claim_id: string;
1304
+ /** Format: uuid */
1305
+ command_id: string;
1306
+ /** Format: uuid */
1307
+ execution_id: string;
1308
+ /** @enum {string} */
1309
+ decision: "execute" | "superseded" | "blocked" | "review_required" | "expired";
1310
+ valid: boolean;
1311
+ generation: number;
1312
+ decision_version: number;
1313
+ desired_version: number;
1314
+ /** Format: date-time */
1315
+ issued_at: string;
1316
+ /** Format: date-time */
1317
+ expires_at: string;
1318
+ reason_codes: string[];
1319
+ } & unknown;
1320
+ /** @description applied requires applied_version, applied_at and effect_reference. noop requires reason_code; known-existing-effect metadata is optional only as a complete group, never invented for no effect. Failed requires error_code. The server validates claim ownership but records late results even if lease expired/canceled. Contradictory results are retained as conflicts, not last-write-wins. */
1321
+ FulfillmentResultInput: {
1322
+ /** Format: uuid */
1323
+ execution_id: string;
1324
+ /** Format: uuid */
1325
+ claim_id: string;
1326
+ lease_generation: number;
1327
+ /** @enum {string} */
1328
+ result: "applied" | "noop" | "failed" | "unknown";
1329
+ /** @description Required for noop, e.g. ALREADY_APPLIED, SUPERSEDED, NO_EFFECT_REQUIRED. Explain why no new effect occurred. */
1330
+ reason_code?: string;
1331
+ applied_version?: number;
1332
+ effect_reference?: string;
1333
+ /** Format: date-time */
1334
+ applied_at?: string;
1335
+ error_code?: string;
1336
+ error_message?: string;
1337
+ } & (unknown & unknown & unknown & unknown);
1338
+ FulfillmentResult: {
1339
+ /** Format: uuid */
1340
+ result_id: string;
1341
+ /** Format: uuid */
1342
+ command_id: string;
1343
+ /** Format: uuid */
1344
+ execution_id: string;
1345
+ /** @enum {string} */
1346
+ result: "applied" | "noop" | "failed" | "unknown";
1347
+ reason_code: string | null;
1348
+ applied_version: number | null;
1349
+ effect_reference: string | null;
1350
+ applied_at: string | null;
1351
+ /** Format: date-time */
1352
+ received_at: string;
1353
+ review_required: boolean;
1354
+ reason_codes: string[];
1355
+ } & (unknown & unknown & ({
1356
+ applied_version?: null;
1357
+ effect_reference?: null;
1358
+ applied_at?: null;
1359
+ } | {
1360
+ applied_version?: number;
1361
+ effect_reference?: string;
1362
+ /** Format: date-time */
1363
+ applied_at?: string;
1364
+ }));
1365
+ /** @description Retries the same command/event identity. Does not create another grant or reset an applied/unknown effect to pending. */
1366
+ RetryDelivery: {
1367
+ reason: string;
1368
+ };
1369
+ /** @description Event body is immutable. Delivery ID/timestamp/signature are headers and refreshed per network attempt. Consumers fetch current resource/claim when freshness matters. */
1370
+ EventEnvelope: {
1371
+ /** Format: uuid */
1372
+ merchant_id: string;
1373
+ /** Format: uuid */
1374
+ project_id: string;
1375
+ environment: components["schemas"]["Environment"];
1376
+ /** @constant */
1377
+ schema_type: "stablepay.event.v1";
1378
+ /** Format: uuid */
1379
+ event_id: string;
1380
+ /** @enum {string} */
1381
+ type: "fulfillment.requested" | "payment.decision_changed" | "payment.adjusted" | "payment.review_required" | "fulfillment.result_recorded";
1382
+ /** Format: date-time */
1383
+ occurred_at: string;
1384
+ /** Format: uuid */
1385
+ resource_id: string;
1386
+ resource_version: number;
1387
+ data: components["schemas"]["FulfillmentEventData"] | components["schemas"]["PaymentEventData"] | components["schemas"]["ResultEventData"];
1388
+ } & (unknown & unknown & unknown);
1389
+ FulfillmentEventData: {
1390
+ /** @constant */
1391
+ kind: "fulfillment_command";
1392
+ command: components["schemas"]["FulfillmentCommand"];
1393
+ };
1394
+ PaymentEventData: {
1395
+ /** @constant */
1396
+ kind: "payment_snapshot";
1397
+ payment: components["schemas"]["Payment"];
1398
+ };
1399
+ ResultEventData: {
1400
+ /** @constant */
1401
+ kind: "fulfillment_result";
1402
+ result: components["schemas"]["FulfillmentResult"];
1403
+ };
1404
+ PaymentList: {
1405
+ data: components["schemas"]["Payment"][];
1406
+ next_cursor: string | null;
1407
+ has_more: boolean;
1408
+ };
1409
+ AttemptList: {
1410
+ data: components["schemas"]["Attempt"][];
1411
+ next_cursor: string | null;
1412
+ has_more: boolean;
1413
+ };
1414
+ ConnectionList: {
1415
+ data: components["schemas"]["Connection"][];
1416
+ next_cursor: string | null;
1417
+ has_more: boolean;
1418
+ };
1419
+ EventList: {
1420
+ data: components["schemas"]["EventEnvelope"][];
1421
+ next_cursor: string | null;
1422
+ has_more: boolean;
1423
+ };
1424
+ };
1425
+ responses: {
1426
+ /** @description Malformed input / unsupported asset or action. */
1427
+ BadRequest: {
1428
+ headers: {
1429
+ [name: string]: unknown;
1430
+ };
1431
+ content: {
1432
+ "application/json": components["schemas"]["Error"];
1433
+ };
1434
+ };
1435
+ /** @description Missing/invalid server credential or provider signature. */
1436
+ Unauthorized: {
1437
+ headers: {
1438
+ [name: string]: unknown;
1439
+ };
1440
+ content: {
1441
+ "application/json": components["schemas"]["Error"];
1442
+ };
1443
+ };
1444
+ /** @description Scope, environment, account or resource ownership denied. */
1445
+ Forbidden: {
1446
+ headers: {
1447
+ [name: string]: unknown;
1448
+ };
1449
+ content: {
1450
+ "application/json": components["schemas"]["Error"];
1451
+ };
1452
+ };
1453
+ /** @description Resource not found in caller scope; cross-tenant existence is not disclosed. */
1454
+ NotFound: {
1455
+ headers: {
1456
+ [name: string]: unknown;
1457
+ };
1458
+ content: {
1459
+ "application/json": components["schemas"]["Error"];
1460
+ };
1461
+ };
1462
+ /** @description Idempotency payload mismatch, stale revision, unsafe duplicate operation, binding/allocation conflict or contradictory result. */
1463
+ Conflict: {
1464
+ headers: {
1465
+ [name: string]: unknown;
1466
+ };
1467
+ content: {
1468
+ "application/json": components["schemas"]["Error"];
1469
+ };
1470
+ };
1471
+ /** @description Rate limit. Retry read-only operations after Retry-After; retain logical mutation key. */
1472
+ RateLimited: {
1473
+ headers: {
1474
+ "Retry-After"?: string;
1475
+ [name: string]: unknown;
1476
+ };
1477
+ content: {
1478
+ "application/json": components["schemas"]["Error"];
1479
+ };
1480
+ };
1481
+ /** @description Required service unavailable. An external mutation may still have executed; retain/poll operation ID instead of creating a new payment. */
1482
+ Unavailable: {
1483
+ headers: {
1484
+ [name: string]: unknown;
1485
+ };
1486
+ content: {
1487
+ "application/json": components["schemas"]["Error"];
1488
+ };
1489
+ };
1490
+ };
1491
+ parameters: {
1492
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1493
+ IdempotencyKey: string;
1494
+ Cursor: string;
1495
+ Limit: number;
1496
+ payment_id: string;
1497
+ attempt_id: string;
1498
+ quote_id: string;
1499
+ connection_id: string;
1500
+ operation_id: string;
1501
+ command_id: string;
1502
+ endpoint_id: string;
1503
+ };
1504
+ requestBodies: never;
1505
+ headers: never;
1506
+ pathItems: never;
1507
+ }
1508
+ export type $defs = Record<string, never>;
1509
+ export interface operations {
1510
+ listChainAssets: {
1511
+ parameters: {
1512
+ query?: never;
1513
+ header?: never;
1514
+ path?: never;
1515
+ cookie?: never;
1516
+ };
1517
+ requestBody?: never;
1518
+ responses: {
1519
+ /** @description Allowlisted assets in rollout order */
1520
+ 200: {
1521
+ headers: {
1522
+ [name: string]: unknown;
1523
+ };
1524
+ content: {
1525
+ "application/json": components["schemas"]["ChainAssets"];
1526
+ };
1527
+ };
1528
+ 401: components["responses"]["Unauthorized"];
1529
+ 403: components["responses"]["Forbidden"];
1530
+ };
1531
+ };
1532
+ createChainConnection: {
1533
+ parameters: {
1534
+ query?: never;
1535
+ header: {
1536
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1537
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
1538
+ };
1539
+ path?: never;
1540
+ cookie?: never;
1541
+ };
1542
+ requestBody: {
1543
+ content: {
1544
+ "application/json": components["schemas"]["CreateChainConnection"];
1545
+ };
1546
+ };
1547
+ responses: {
1548
+ /** @description Ready connection for a configured chain */
1549
+ 201: {
1550
+ headers: {
1551
+ [name: string]: unknown;
1552
+ };
1553
+ content: {
1554
+ "application/json": components["schemas"]["Connection"];
1555
+ };
1556
+ };
1557
+ 400: components["responses"]["BadRequest"];
1558
+ 401: components["responses"]["Unauthorized"];
1559
+ 403: components["responses"]["Forbidden"];
1560
+ 409: components["responses"]["Conflict"];
1561
+ 503: components["responses"]["Unavailable"];
1562
+ };
1563
+ };
1564
+ registerChainRecipients: {
1565
+ parameters: {
1566
+ query?: never;
1567
+ header: {
1568
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1569
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
1570
+ };
1571
+ path: {
1572
+ connection_id: components["parameters"]["connection_id"];
1573
+ };
1574
+ cookie?: never;
1575
+ };
1576
+ requestBody: {
1577
+ content: {
1578
+ "application/json": components["schemas"]["RegisterChainRecipients"];
1579
+ };
1580
+ };
1581
+ responses: {
1582
+ /** @description Registered recipients. Signing material is never returned. */
1583
+ 201: {
1584
+ headers: {
1585
+ [name: string]: unknown;
1586
+ };
1587
+ content: {
1588
+ "application/json": components["schemas"]["ChainRecipients"];
1589
+ };
1590
+ };
1591
+ 400: components["responses"]["BadRequest"];
1592
+ 401: components["responses"]["Unauthorized"];
1593
+ 403: components["responses"]["Forbidden"];
1594
+ 404: components["responses"]["NotFound"];
1595
+ 409: components["responses"]["Conflict"];
1596
+ };
1597
+ };
1598
+ listPayments: {
1599
+ parameters: {
1600
+ query?: {
1601
+ cursor?: components["parameters"]["Cursor"];
1602
+ limit?: components["parameters"]["Limit"];
1603
+ };
1604
+ header?: never;
1605
+ path?: never;
1606
+ cookie?: never;
1607
+ };
1608
+ requestBody?: never;
1609
+ responses: {
1610
+ /** @description Success */
1611
+ 200: {
1612
+ headers: {
1613
+ "X-Request-Id"?: string;
1614
+ [name: string]: unknown;
1615
+ };
1616
+ content: {
1617
+ "application/json": components["schemas"]["PaymentList"];
1618
+ };
1619
+ };
1620
+ 400: components["responses"]["BadRequest"];
1621
+ 401: components["responses"]["Unauthorized"];
1622
+ 403: components["responses"]["Forbidden"];
1623
+ 404: components["responses"]["NotFound"];
1624
+ 409: components["responses"]["Conflict"];
1625
+ 429: components["responses"]["RateLimited"];
1626
+ 503: components["responses"]["Unavailable"];
1627
+ };
1628
+ };
1629
+ createPayment: {
1630
+ parameters: {
1631
+ query?: never;
1632
+ header: {
1633
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1634
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
1635
+ };
1636
+ path?: never;
1637
+ cookie?: never;
1638
+ };
1639
+ requestBody: {
1640
+ content: {
1641
+ "application/json": components["schemas"]["CreatePayment"];
1642
+ };
1643
+ };
1644
+ responses: {
1645
+ /** @description Payment persisted. No money has been charged. */
1646
+ 201: {
1647
+ headers: {
1648
+ "X-Request-Id"?: string;
1649
+ [name: string]: unknown;
1650
+ };
1651
+ content: {
1652
+ "application/json": components["schemas"]["Payment"];
1653
+ };
1654
+ };
1655
+ 400: components["responses"]["BadRequest"];
1656
+ 401: components["responses"]["Unauthorized"];
1657
+ 403: components["responses"]["Forbidden"];
1658
+ 404: components["responses"]["NotFound"];
1659
+ 409: components["responses"]["Conflict"];
1660
+ 429: components["responses"]["RateLimited"];
1661
+ 503: components["responses"]["Unavailable"];
1662
+ };
1663
+ };
1664
+ getPayment: {
1665
+ parameters: {
1666
+ query?: never;
1667
+ header?: never;
1668
+ path: {
1669
+ payment_id: components["parameters"]["payment_id"];
1670
+ };
1671
+ cookie?: never;
1672
+ };
1673
+ requestBody?: never;
1674
+ responses: {
1675
+ /** @description Success */
1676
+ 200: {
1677
+ headers: {
1678
+ "X-Request-Id"?: string;
1679
+ [name: string]: unknown;
1680
+ };
1681
+ content: {
1682
+ "application/json": components["schemas"]["Payment"];
1683
+ };
1684
+ };
1685
+ 400: components["responses"]["BadRequest"];
1686
+ 401: components["responses"]["Unauthorized"];
1687
+ 403: components["responses"]["Forbidden"];
1688
+ 404: components["responses"]["NotFound"];
1689
+ 409: components["responses"]["Conflict"];
1690
+ 429: components["responses"]["RateLimited"];
1691
+ 503: components["responses"]["Unavailable"];
1692
+ };
1693
+ };
1694
+ createQuote: {
1695
+ parameters: {
1696
+ query?: never;
1697
+ header: {
1698
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1699
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
1700
+ };
1701
+ path: {
1702
+ payment_id: components["parameters"]["payment_id"];
1703
+ };
1704
+ cookie?: never;
1705
+ };
1706
+ requestBody: {
1707
+ content: {
1708
+ "application/json": components["schemas"]["CreateQuote"];
1709
+ };
1710
+ };
1711
+ responses: {
1712
+ /** @description Immutable quote created. */
1713
+ 201: {
1714
+ headers: {
1715
+ "X-Request-Id"?: string;
1716
+ [name: string]: unknown;
1717
+ };
1718
+ content: {
1719
+ "application/json": components["schemas"]["Quote"];
1720
+ };
1721
+ };
1722
+ 400: components["responses"]["BadRequest"];
1723
+ 401: components["responses"]["Unauthorized"];
1724
+ 403: components["responses"]["Forbidden"];
1725
+ 404: components["responses"]["NotFound"];
1726
+ 409: components["responses"]["Conflict"];
1727
+ 429: components["responses"]["RateLimited"];
1728
+ 503: components["responses"]["Unavailable"];
1729
+ };
1730
+ };
1731
+ getQuote: {
1732
+ parameters: {
1733
+ query?: never;
1734
+ header?: never;
1735
+ path: {
1736
+ quote_id: components["parameters"]["quote_id"];
1737
+ };
1738
+ cookie?: never;
1739
+ };
1740
+ requestBody?: never;
1741
+ responses: {
1742
+ /** @description Success */
1743
+ 200: {
1744
+ headers: {
1745
+ "X-Request-Id"?: string;
1746
+ [name: string]: unknown;
1747
+ };
1748
+ content: {
1749
+ "application/json": components["schemas"]["Quote"];
1750
+ };
1751
+ };
1752
+ 400: components["responses"]["BadRequest"];
1753
+ 401: components["responses"]["Unauthorized"];
1754
+ 403: components["responses"]["Forbidden"];
1755
+ 404: components["responses"]["NotFound"];
1756
+ 409: components["responses"]["Conflict"];
1757
+ 429: components["responses"]["RateLimited"];
1758
+ 503: components["responses"]["Unavailable"];
1759
+ };
1760
+ };
1761
+ listAttempts: {
1762
+ parameters: {
1763
+ query?: {
1764
+ cursor?: components["parameters"]["Cursor"];
1765
+ limit?: components["parameters"]["Limit"];
1766
+ };
1767
+ header?: never;
1768
+ path: {
1769
+ payment_id: components["parameters"]["payment_id"];
1770
+ };
1771
+ cookie?: never;
1772
+ };
1773
+ requestBody?: never;
1774
+ responses: {
1775
+ /** @description Success */
1776
+ 200: {
1777
+ headers: {
1778
+ "X-Request-Id"?: string;
1779
+ [name: string]: unknown;
1780
+ };
1781
+ content: {
1782
+ "application/json": components["schemas"]["AttemptList"];
1783
+ };
1784
+ };
1785
+ 400: components["responses"]["BadRequest"];
1786
+ 401: components["responses"]["Unauthorized"];
1787
+ 403: components["responses"]["Forbidden"];
1788
+ 404: components["responses"]["NotFound"];
1789
+ 409: components["responses"]["Conflict"];
1790
+ 429: components["responses"]["RateLimited"];
1791
+ 503: components["responses"]["Unavailable"];
1792
+ };
1793
+ };
1794
+ createAttempt: {
1795
+ parameters: {
1796
+ query?: never;
1797
+ header: {
1798
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1799
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
1800
+ };
1801
+ path: {
1802
+ payment_id: components["parameters"]["payment_id"];
1803
+ };
1804
+ cookie?: never;
1805
+ };
1806
+ requestBody: {
1807
+ content: {
1808
+ "application/json": components["schemas"]["CreateAttempt"];
1809
+ };
1810
+ };
1811
+ responses: {
1812
+ /** @description Attempt mapping persisted and next action ready. */
1813
+ 201: {
1814
+ headers: {
1815
+ "X-Request-Id"?: string;
1816
+ [name: string]: unknown;
1817
+ };
1818
+ content: {
1819
+ "application/json": components["schemas"]["AttemptMutationResult"];
1820
+ };
1821
+ };
1822
+ /** @description Attempt operation persisted; processing or unknown outcome. Poll same operation. */
1823
+ 202: {
1824
+ headers: {
1825
+ "X-Request-Id"?: string;
1826
+ [name: string]: unknown;
1827
+ };
1828
+ content: {
1829
+ "application/json": components["schemas"]["AttemptMutationResult"];
1830
+ };
1831
+ };
1832
+ 400: components["responses"]["BadRequest"];
1833
+ 401: components["responses"]["Unauthorized"];
1834
+ 403: components["responses"]["Forbidden"];
1835
+ 404: components["responses"]["NotFound"];
1836
+ 409: components["responses"]["Conflict"];
1837
+ 429: components["responses"]["RateLimited"];
1838
+ 503: components["responses"]["Unavailable"];
1839
+ };
1840
+ };
1841
+ attachExternalAttempt: {
1842
+ parameters: {
1843
+ query?: never;
1844
+ header: {
1845
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1846
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
1847
+ };
1848
+ path: {
1849
+ payment_id: components["parameters"]["payment_id"];
1850
+ };
1851
+ cookie?: never;
1852
+ };
1853
+ requestBody: {
1854
+ content: {
1855
+ "application/json": components["schemas"]["AttachExternalAttempt"];
1856
+ };
1857
+ };
1858
+ responses: {
1859
+ /** @description External attempt registered for authoritative verification. */
1860
+ 201: {
1861
+ headers: {
1862
+ "X-Request-Id"?: string;
1863
+ [name: string]: unknown;
1864
+ };
1865
+ content: {
1866
+ "application/json": components["schemas"]["Attempt"];
1867
+ };
1868
+ };
1869
+ 400: components["responses"]["BadRequest"];
1870
+ 401: components["responses"]["Unauthorized"];
1871
+ 403: components["responses"]["Forbidden"];
1872
+ 404: components["responses"]["NotFound"];
1873
+ 409: components["responses"]["Conflict"];
1874
+ 429: components["responses"]["RateLimited"];
1875
+ 503: components["responses"]["Unavailable"];
1876
+ };
1877
+ };
1878
+ getAttempt: {
1879
+ parameters: {
1880
+ query?: never;
1881
+ header?: never;
1882
+ path: {
1883
+ attempt_id: components["parameters"]["attempt_id"];
1884
+ };
1885
+ cookie?: never;
1886
+ };
1887
+ requestBody?: never;
1888
+ responses: {
1889
+ /** @description Success */
1890
+ 200: {
1891
+ headers: {
1892
+ "X-Request-Id"?: string;
1893
+ [name: string]: unknown;
1894
+ };
1895
+ content: {
1896
+ "application/json": components["schemas"]["Attempt"];
1897
+ };
1898
+ };
1899
+ 400: components["responses"]["BadRequest"];
1900
+ 401: components["responses"]["Unauthorized"];
1901
+ 403: components["responses"]["Forbidden"];
1902
+ 404: components["responses"]["NotFound"];
1903
+ 409: components["responses"]["Conflict"];
1904
+ 429: components["responses"]["RateLimited"];
1905
+ 503: components["responses"]["Unavailable"];
1906
+ };
1907
+ };
1908
+ confirmAttempt: {
1909
+ parameters: {
1910
+ query?: never;
1911
+ header: {
1912
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1913
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
1914
+ };
1915
+ path: {
1916
+ attempt_id: components["parameters"]["attempt_id"];
1917
+ };
1918
+ cookie?: never;
1919
+ };
1920
+ requestBody: {
1921
+ content: {
1922
+ "application/json": components["schemas"]["ConfirmAttempt"];
1923
+ };
1924
+ };
1925
+ responses: {
1926
+ /** @description Logical confirm/capture operation durably accepted. */
1927
+ 202: {
1928
+ headers: {
1929
+ "X-Request-Id"?: string;
1930
+ [name: string]: unknown;
1931
+ };
1932
+ content: {
1933
+ "application/json": components["schemas"]["Operation"];
1934
+ };
1935
+ };
1936
+ 400: components["responses"]["BadRequest"];
1937
+ 401: components["responses"]["Unauthorized"];
1938
+ 403: components["responses"]["Forbidden"];
1939
+ 404: components["responses"]["NotFound"];
1940
+ 409: components["responses"]["Conflict"];
1941
+ 429: components["responses"]["RateLimited"];
1942
+ 503: components["responses"]["Unavailable"];
1943
+ };
1944
+ };
1945
+ requestVerification: {
1946
+ parameters: {
1947
+ query?: never;
1948
+ header: {
1949
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1950
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
1951
+ };
1952
+ path: {
1953
+ payment_id: components["parameters"]["payment_id"];
1954
+ };
1955
+ cookie?: never;
1956
+ };
1957
+ requestBody: {
1958
+ content: {
1959
+ "application/json": components["schemas"]["VerifyRequest"];
1960
+ };
1961
+ };
1962
+ responses: {
1963
+ /** @description Verification operation queued. */
1964
+ 202: {
1965
+ headers: {
1966
+ "X-Request-Id"?: string;
1967
+ [name: string]: unknown;
1968
+ };
1969
+ content: {
1970
+ "application/json": components["schemas"]["Operation"];
1971
+ };
1972
+ };
1973
+ 400: components["responses"]["BadRequest"];
1974
+ 401: components["responses"]["Unauthorized"];
1975
+ 403: components["responses"]["Forbidden"];
1976
+ 404: components["responses"]["NotFound"];
1977
+ 409: components["responses"]["Conflict"];
1978
+ 429: components["responses"]["RateLimited"];
1979
+ 503: components["responses"]["Unavailable"];
1980
+ };
1981
+ };
1982
+ cancelPayment: {
1983
+ parameters: {
1984
+ query?: never;
1985
+ header: {
1986
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
1987
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
1988
+ };
1989
+ path: {
1990
+ payment_id: components["parameters"]["payment_id"];
1991
+ };
1992
+ cookie?: never;
1993
+ };
1994
+ requestBody: {
1995
+ content: {
1996
+ "application/json": components["schemas"]["CancelPayment"];
1997
+ };
1998
+ };
1999
+ responses: {
2000
+ /** @description Collection closed locally; any provider cancellation is tracked separately. */
2001
+ 202: {
2002
+ headers: {
2003
+ "X-Request-Id"?: string;
2004
+ [name: string]: unknown;
2005
+ };
2006
+ content: {
2007
+ "application/json": components["schemas"]["Operation"];
2008
+ };
2009
+ };
2010
+ 400: components["responses"]["BadRequest"];
2011
+ 401: components["responses"]["Unauthorized"];
2012
+ 403: components["responses"]["Forbidden"];
2013
+ 404: components["responses"]["NotFound"];
2014
+ 409: components["responses"]["Conflict"];
2015
+ 429: components["responses"]["RateLimited"];
2016
+ 503: components["responses"]["Unavailable"];
2017
+ };
2018
+ };
2019
+ reviewPayment: {
2020
+ parameters: {
2021
+ query?: never;
2022
+ header: {
2023
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2024
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2025
+ };
2026
+ path: {
2027
+ payment_id: components["parameters"]["payment_id"];
2028
+ };
2029
+ cookie?: never;
2030
+ };
2031
+ requestBody: {
2032
+ content: {
2033
+ "application/json": components["schemas"]["ReviewRequest"];
2034
+ };
2035
+ };
2036
+ responses: {
2037
+ /** @description Identical previous review result; no repeated grant. */
2038
+ 200: {
2039
+ headers: {
2040
+ "X-Request-Id"?: string;
2041
+ [name: string]: unknown;
2042
+ };
2043
+ content: {
2044
+ "application/json": components["schemas"]["ReviewResult"];
2045
+ };
2046
+ };
2047
+ /** @description Review audit and resulting decision committed atomically. */
2048
+ 201: {
2049
+ headers: {
2050
+ "X-Request-Id"?: string;
2051
+ [name: string]: unknown;
2052
+ };
2053
+ content: {
2054
+ "application/json": components["schemas"]["ReviewResult"];
2055
+ };
2056
+ };
2057
+ 400: components["responses"]["BadRequest"];
2058
+ 401: components["responses"]["Unauthorized"];
2059
+ 403: components["responses"]["Forbidden"];
2060
+ 404: components["responses"]["NotFound"];
2061
+ 409: components["responses"]["Conflict"];
2062
+ 429: components["responses"]["RateLimited"];
2063
+ 503: components["responses"]["Unavailable"];
2064
+ };
2065
+ };
2066
+ getOperation: {
2067
+ parameters: {
2068
+ query?: never;
2069
+ header?: never;
2070
+ path: {
2071
+ operation_id: components["parameters"]["operation_id"];
2072
+ };
2073
+ cookie?: never;
2074
+ };
2075
+ requestBody?: never;
2076
+ responses: {
2077
+ /** @description Success */
2078
+ 200: {
2079
+ headers: {
2080
+ "X-Request-Id"?: string;
2081
+ [name: string]: unknown;
2082
+ };
2083
+ content: {
2084
+ "application/json": components["schemas"]["Operation"];
2085
+ };
2086
+ };
2087
+ 400: components["responses"]["BadRequest"];
2088
+ 401: components["responses"]["Unauthorized"];
2089
+ 403: components["responses"]["Forbidden"];
2090
+ 404: components["responses"]["NotFound"];
2091
+ 409: components["responses"]["Conflict"];
2092
+ 429: components["responses"]["RateLimited"];
2093
+ 503: components["responses"]["Unavailable"];
2094
+ };
2095
+ };
2096
+ recoverOperation: {
2097
+ parameters: {
2098
+ query?: never;
2099
+ header: {
2100
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2101
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2102
+ };
2103
+ path: {
2104
+ operation_id: components["parameters"]["operation_id"];
2105
+ };
2106
+ cookie?: never;
2107
+ };
2108
+ requestBody: {
2109
+ content: {
2110
+ "application/json": components["schemas"]["RecoverOperation"];
2111
+ };
2112
+ };
2113
+ responses: {
2114
+ /** @description Recovery scheduled; original operation identity retained. */
2115
+ 202: {
2116
+ headers: {
2117
+ "X-Request-Id"?: string;
2118
+ [name: string]: unknown;
2119
+ };
2120
+ content: {
2121
+ "application/json": components["schemas"]["Operation"];
2122
+ };
2123
+ };
2124
+ 400: components["responses"]["BadRequest"];
2125
+ 401: components["responses"]["Unauthorized"];
2126
+ 403: components["responses"]["Forbidden"];
2127
+ 404: components["responses"]["NotFound"];
2128
+ 409: components["responses"]["Conflict"];
2129
+ 429: components["responses"]["RateLimited"];
2130
+ 503: components["responses"]["Unavailable"];
2131
+ };
2132
+ };
2133
+ listConnections: {
2134
+ parameters: {
2135
+ query?: {
2136
+ cursor?: components["parameters"]["Cursor"];
2137
+ limit?: components["parameters"]["Limit"];
2138
+ };
2139
+ header?: never;
2140
+ path?: never;
2141
+ cookie?: never;
2142
+ };
2143
+ requestBody?: never;
2144
+ responses: {
2145
+ /** @description Success */
2146
+ 200: {
2147
+ headers: {
2148
+ "X-Request-Id"?: string;
2149
+ [name: string]: unknown;
2150
+ };
2151
+ content: {
2152
+ "application/json": components["schemas"]["ConnectionList"];
2153
+ };
2154
+ };
2155
+ 400: components["responses"]["BadRequest"];
2156
+ 401: components["responses"]["Unauthorized"];
2157
+ 403: components["responses"]["Forbidden"];
2158
+ 404: components["responses"]["NotFound"];
2159
+ 409: components["responses"]["Conflict"];
2160
+ 429: components["responses"]["RateLimited"];
2161
+ 503: components["responses"]["Unavailable"];
2162
+ };
2163
+ };
2164
+ createConnection: {
2165
+ parameters: {
2166
+ query?: never;
2167
+ header: {
2168
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2169
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2170
+ };
2171
+ path?: never;
2172
+ cookie?: never;
2173
+ };
2174
+ requestBody: {
2175
+ content: {
2176
+ "application/json": components["schemas"]["CreateConnection"];
2177
+ };
2178
+ };
2179
+ responses: {
2180
+ /** @description Encrypted provisional configuration persisted; identity_verified=false, provider_account_id=null until authoritative validation. */
2181
+ 201: {
2182
+ headers: {
2183
+ "X-Request-Id"?: string;
2184
+ [name: string]: unknown;
2185
+ };
2186
+ content: {
2187
+ "application/json": components["schemas"]["Connection"];
2188
+ };
2189
+ };
2190
+ 400: components["responses"]["BadRequest"];
2191
+ 401: components["responses"]["Unauthorized"];
2192
+ 403: components["responses"]["Forbidden"];
2193
+ 404: components["responses"]["NotFound"];
2194
+ 409: components["responses"]["Conflict"];
2195
+ 429: components["responses"]["RateLimited"];
2196
+ 503: components["responses"]["Unavailable"];
2197
+ };
2198
+ };
2199
+ getConnection: {
2200
+ parameters: {
2201
+ query?: never;
2202
+ header?: never;
2203
+ path: {
2204
+ connection_id: components["parameters"]["connection_id"];
2205
+ };
2206
+ cookie?: never;
2207
+ };
2208
+ requestBody?: never;
2209
+ responses: {
2210
+ /** @description Success */
2211
+ 200: {
2212
+ headers: {
2213
+ "X-Request-Id"?: string;
2214
+ [name: string]: unknown;
2215
+ };
2216
+ content: {
2217
+ "application/json": components["schemas"]["Connection"];
2218
+ };
2219
+ };
2220
+ 400: components["responses"]["BadRequest"];
2221
+ 401: components["responses"]["Unauthorized"];
2222
+ 403: components["responses"]["Forbidden"];
2223
+ 404: components["responses"]["NotFound"];
2224
+ 409: components["responses"]["Conflict"];
2225
+ 429: components["responses"]["RateLimited"];
2226
+ 503: components["responses"]["Unavailable"];
2227
+ };
2228
+ };
2229
+ validateConnection: {
2230
+ parameters: {
2231
+ query?: never;
2232
+ header: {
2233
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2234
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2235
+ };
2236
+ path: {
2237
+ connection_id: components["parameters"]["connection_id"];
2238
+ };
2239
+ cookie?: never;
2240
+ };
2241
+ requestBody: {
2242
+ content: {
2243
+ "application/json": components["schemas"]["ConnectionValidation"];
2244
+ };
2245
+ };
2246
+ responses: {
2247
+ /** @description Validation scheduled; provisional connection remains unusable until completed. */
2248
+ 202: {
2249
+ headers: {
2250
+ "X-Request-Id"?: string;
2251
+ [name: string]: unknown;
2252
+ };
2253
+ content: {
2254
+ "application/json": components["schemas"]["Operation"];
2255
+ };
2256
+ };
2257
+ 400: components["responses"]["BadRequest"];
2258
+ 401: components["responses"]["Unauthorized"];
2259
+ 403: components["responses"]["Forbidden"];
2260
+ 404: components["responses"]["NotFound"];
2261
+ 409: components["responses"]["Conflict"];
2262
+ 429: components["responses"]["RateLimited"];
2263
+ 503: components["responses"]["Unavailable"];
2264
+ };
2265
+ };
2266
+ rotateConnectionCredentials: {
2267
+ parameters: {
2268
+ query?: never;
2269
+ header: {
2270
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2271
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2272
+ };
2273
+ path: {
2274
+ connection_id: components["parameters"]["connection_id"];
2275
+ };
2276
+ cookie?: never;
2277
+ };
2278
+ requestBody: {
2279
+ content: {
2280
+ "application/json": components["schemas"]["RotateConnectionCredentials"];
2281
+ };
2282
+ };
2283
+ responses: {
2284
+ /** @description New secret version stored; connection requires validation. */
2285
+ 200: {
2286
+ headers: {
2287
+ "X-Request-Id"?: string;
2288
+ [name: string]: unknown;
2289
+ };
2290
+ content: {
2291
+ "application/json": components["schemas"]["Connection"];
2292
+ };
2293
+ };
2294
+ 400: components["responses"]["BadRequest"];
2295
+ 401: components["responses"]["Unauthorized"];
2296
+ 403: components["responses"]["Forbidden"];
2297
+ 404: components["responses"]["NotFound"];
2298
+ 409: components["responses"]["Conflict"];
2299
+ 429: components["responses"]["RateLimited"];
2300
+ 503: components["responses"]["Unavailable"];
2301
+ };
2302
+ };
2303
+ disableConnection: {
2304
+ parameters: {
2305
+ query?: never;
2306
+ header: {
2307
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2308
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2309
+ };
2310
+ path: {
2311
+ connection_id: components["parameters"]["connection_id"];
2312
+ };
2313
+ cookie?: never;
2314
+ };
2315
+ requestBody: {
2316
+ content: {
2317
+ "application/json": components["schemas"]["ConnectionDisable"];
2318
+ };
2319
+ };
2320
+ responses: {
2321
+ /** @description Connection disabled; historic operations/evidence retained. */
2322
+ 200: {
2323
+ headers: {
2324
+ "X-Request-Id"?: string;
2325
+ [name: string]: unknown;
2326
+ };
2327
+ content: {
2328
+ "application/json": components["schemas"]["Connection"];
2329
+ };
2330
+ };
2331
+ 400: components["responses"]["BadRequest"];
2332
+ 401: components["responses"]["Unauthorized"];
2333
+ 403: components["responses"]["Forbidden"];
2334
+ 404: components["responses"]["NotFound"];
2335
+ 409: components["responses"]["Conflict"];
2336
+ 429: components["responses"]["RateLimited"];
2337
+ 503: components["responses"]["Unavailable"];
2338
+ };
2339
+ };
2340
+ createWebhookEndpoint: {
2341
+ parameters: {
2342
+ query?: never;
2343
+ header: {
2344
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2345
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2346
+ };
2347
+ path?: never;
2348
+ cookie?: never;
2349
+ };
2350
+ requestBody: {
2351
+ content: {
2352
+ "application/json": components["schemas"]["CreateWebhookEndpoint"];
2353
+ };
2354
+ };
2355
+ responses: {
2356
+ /** @description Endpoint and one-time signing secret created. */
2357
+ 201: {
2358
+ headers: {
2359
+ "X-Request-Id"?: string;
2360
+ [name: string]: unknown;
2361
+ };
2362
+ content: {
2363
+ "application/json": components["schemas"]["EndpointCreated"];
2364
+ };
2365
+ };
2366
+ 400: components["responses"]["BadRequest"];
2367
+ 401: components["responses"]["Unauthorized"];
2368
+ 403: components["responses"]["Forbidden"];
2369
+ 404: components["responses"]["NotFound"];
2370
+ 409: components["responses"]["Conflict"];
2371
+ 429: components["responses"]["RateLimited"];
2372
+ 503: components["responses"]["Unavailable"];
2373
+ };
2374
+ };
2375
+ getWebhookEndpoint: {
2376
+ parameters: {
2377
+ query?: never;
2378
+ header?: never;
2379
+ path: {
2380
+ endpoint_id: components["parameters"]["endpoint_id"];
2381
+ };
2382
+ cookie?: never;
2383
+ };
2384
+ requestBody?: never;
2385
+ responses: {
2386
+ /** @description Success */
2387
+ 200: {
2388
+ headers: {
2389
+ "X-Request-Id"?: string;
2390
+ [name: string]: unknown;
2391
+ };
2392
+ content: {
2393
+ "application/json": components["schemas"]["WebhookEndpoint"];
2394
+ };
2395
+ };
2396
+ 400: components["responses"]["BadRequest"];
2397
+ 401: components["responses"]["Unauthorized"];
2398
+ 403: components["responses"]["Forbidden"];
2399
+ 404: components["responses"]["NotFound"];
2400
+ 409: components["responses"]["Conflict"];
2401
+ 429: components["responses"]["RateLimited"];
2402
+ 503: components["responses"]["Unavailable"];
2403
+ };
2404
+ };
2405
+ rotateWebhookSecret: {
2406
+ parameters: {
2407
+ query?: never;
2408
+ header: {
2409
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2410
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2411
+ };
2412
+ path: {
2413
+ endpoint_id: components["parameters"]["endpoint_id"];
2414
+ };
2415
+ cookie?: never;
2416
+ };
2417
+ requestBody: {
2418
+ content: {
2419
+ "application/json": components["schemas"]["RotateWebhookSecret"];
2420
+ };
2421
+ };
2422
+ responses: {
2423
+ /** @description New one-time secret and overlap metadata. */
2424
+ 200: {
2425
+ headers: {
2426
+ "X-Request-Id"?: string;
2427
+ [name: string]: unknown;
2428
+ };
2429
+ content: {
2430
+ "application/json": components["schemas"]["EndpointCreated"];
2431
+ };
2432
+ };
2433
+ 400: components["responses"]["BadRequest"];
2434
+ 401: components["responses"]["Unauthorized"];
2435
+ 403: components["responses"]["Forbidden"];
2436
+ 404: components["responses"]["NotFound"];
2437
+ 409: components["responses"]["Conflict"];
2438
+ 429: components["responses"]["RateLimited"];
2439
+ 503: components["responses"]["Unavailable"];
2440
+ };
2441
+ };
2442
+ ingestProviderWebhook: {
2443
+ parameters: {
2444
+ query?: never;
2445
+ header?: never;
2446
+ path: {
2447
+ connection_id: components["parameters"]["connection_id"];
2448
+ };
2449
+ cookie?: never;
2450
+ };
2451
+ /** @description Schema differs by pinned provider event version. Raw bytes, not parsed/re-serialized JSON, feed signature verification. */
2452
+ requestBody: {
2453
+ content: {
2454
+ "application/json": {
2455
+ [key: string]: unknown;
2456
+ };
2457
+ };
2458
+ };
2459
+ responses: {
2460
+ /** @description Authenticated event persisted or already present; not payment/fulfillment approval. */
2461
+ 202: {
2462
+ headers: {
2463
+ [name: string]: unknown;
2464
+ };
2465
+ content?: never;
2466
+ };
2467
+ 400: components["responses"]["BadRequest"];
2468
+ 401: components["responses"]["Unauthorized"];
2469
+ 403: components["responses"]["Forbidden"];
2470
+ 503: components["responses"]["Unavailable"];
2471
+ };
2472
+ };
2473
+ listEvents: {
2474
+ parameters: {
2475
+ query?: {
2476
+ cursor?: components["parameters"]["Cursor"];
2477
+ limit?: components["parameters"]["Limit"];
2478
+ };
2479
+ header?: never;
2480
+ path?: never;
2481
+ cookie?: never;
2482
+ };
2483
+ requestBody?: never;
2484
+ responses: {
2485
+ /** @description Success */
2486
+ 200: {
2487
+ headers: {
2488
+ "X-Request-Id"?: string;
2489
+ [name: string]: unknown;
2490
+ };
2491
+ content: {
2492
+ "application/json": components["schemas"]["EventList"];
2493
+ };
2494
+ };
2495
+ 400: components["responses"]["BadRequest"];
2496
+ 401: components["responses"]["Unauthorized"];
2497
+ 403: components["responses"]["Forbidden"];
2498
+ 404: components["responses"]["NotFound"];
2499
+ 409: components["responses"]["Conflict"];
2500
+ 429: components["responses"]["RateLimited"];
2501
+ 503: components["responses"]["Unavailable"];
2502
+ };
2503
+ };
2504
+ getFulfillment: {
2505
+ parameters: {
2506
+ query?: never;
2507
+ header?: never;
2508
+ path: {
2509
+ command_id: components["parameters"]["command_id"];
2510
+ };
2511
+ cookie?: never;
2512
+ };
2513
+ requestBody?: never;
2514
+ responses: {
2515
+ /** @description Success */
2516
+ 200: {
2517
+ headers: {
2518
+ "X-Request-Id"?: string;
2519
+ [name: string]: unknown;
2520
+ };
2521
+ content: {
2522
+ "application/json": components["schemas"]["FulfillmentCommand"];
2523
+ };
2524
+ };
2525
+ 400: components["responses"]["BadRequest"];
2526
+ 401: components["responses"]["Unauthorized"];
2527
+ 403: components["responses"]["Forbidden"];
2528
+ 404: components["responses"]["NotFound"];
2529
+ 409: components["responses"]["Conflict"];
2530
+ 429: components["responses"]["RateLimited"];
2531
+ 503: components["responses"]["Unavailable"];
2532
+ };
2533
+ };
2534
+ claimFulfillment: {
2535
+ parameters: {
2536
+ query?: never;
2537
+ header: {
2538
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2539
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2540
+ };
2541
+ path: {
2542
+ command_id: components["parameters"]["command_id"];
2543
+ };
2544
+ cookie?: never;
2545
+ };
2546
+ requestBody: {
2547
+ content: {
2548
+ "application/json": components["schemas"]["ClaimRequest"];
2549
+ };
2550
+ };
2551
+ responses: {
2552
+ /** @description Current decision, possibly valid=false. Never use HTTP success alone as execution permission. */
2553
+ 200: {
2554
+ headers: {
2555
+ "X-Request-Id"?: string;
2556
+ [name: string]: unknown;
2557
+ };
2558
+ content: {
2559
+ "application/json": components["schemas"]["Claim"];
2560
+ };
2561
+ };
2562
+ 400: components["responses"]["BadRequest"];
2563
+ 401: components["responses"]["Unauthorized"];
2564
+ 403: components["responses"]["Forbidden"];
2565
+ 404: components["responses"]["NotFound"];
2566
+ 409: components["responses"]["Conflict"];
2567
+ 429: components["responses"]["RateLimited"];
2568
+ 503: components["responses"]["Unavailable"];
2569
+ };
2570
+ };
2571
+ reportFulfillmentResult: {
2572
+ parameters: {
2573
+ query?: never;
2574
+ header: {
2575
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2576
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2577
+ };
2578
+ path: {
2579
+ command_id: components["parameters"]["command_id"];
2580
+ };
2581
+ cookie?: never;
2582
+ };
2583
+ requestBody: {
2584
+ content: {
2585
+ "application/json": components["schemas"]["FulfillmentResultInput"];
2586
+ };
2587
+ };
2588
+ responses: {
2589
+ /** @description Identical previous outcome returned. */
2590
+ 200: {
2591
+ headers: {
2592
+ "X-Request-Id"?: string;
2593
+ [name: string]: unknown;
2594
+ };
2595
+ content: {
2596
+ "application/json": components["schemas"]["FulfillmentResult"];
2597
+ };
2598
+ };
2599
+ /** @description Outcome durably recorded. */
2600
+ 201: {
2601
+ headers: {
2602
+ "X-Request-Id"?: string;
2603
+ [name: string]: unknown;
2604
+ };
2605
+ content: {
2606
+ "application/json": components["schemas"]["FulfillmentResult"];
2607
+ };
2608
+ };
2609
+ 400: components["responses"]["BadRequest"];
2610
+ 401: components["responses"]["Unauthorized"];
2611
+ 403: components["responses"]["Forbidden"];
2612
+ 404: components["responses"]["NotFound"];
2613
+ 409: components["responses"]["Conflict"];
2614
+ 429: components["responses"]["RateLimited"];
2615
+ 503: components["responses"]["Unavailable"];
2616
+ };
2617
+ };
2618
+ retryFulfillmentDelivery: {
2619
+ parameters: {
2620
+ query?: never;
2621
+ header: {
2622
+ /** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
2623
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
2624
+ };
2625
+ path: {
2626
+ command_id: components["parameters"]["command_id"];
2627
+ };
2628
+ cookie?: never;
2629
+ };
2630
+ requestBody: {
2631
+ content: {
2632
+ "application/json": components["schemas"]["RetryDelivery"];
2633
+ };
2634
+ };
2635
+ responses: {
2636
+ /** @description Same command/event queued for delivery retry. */
2637
+ 202: {
2638
+ headers: {
2639
+ "X-Request-Id"?: string;
2640
+ [name: string]: unknown;
2641
+ };
2642
+ content: {
2643
+ "application/json": components["schemas"]["Operation"];
2644
+ };
2645
+ };
2646
+ 400: components["responses"]["BadRequest"];
2647
+ 401: components["responses"]["Unauthorized"];
2648
+ 403: components["responses"]["Forbidden"];
2649
+ 404: components["responses"]["NotFound"];
2650
+ 409: components["responses"]["Conflict"];
2651
+ 429: components["responses"]["RateLimited"];
2652
+ 503: components["responses"]["Unavailable"];
2653
+ };
2654
+ };
2655
+ receiveStablePayEvent: {
2656
+ parameters: {
2657
+ query?: never;
2658
+ header: {
2659
+ /** @description t=<unix_seconds>,kid=<key_uuid>,v1=<lowercase_hmac_sha256_hex> */
2660
+ "StablePay-Signature": string;
2661
+ /** @description Must equal immutable body.event_id. */
2662
+ "StablePay-Event-Id": string;
2663
+ /** @description New UUID per network delivery attempt; not in immutable event body. */
2664
+ "StablePay-Delivery-Id": string;
2665
+ };
2666
+ path?: never;
2667
+ cookie?: never;
2668
+ };
2669
+ requestBody: {
2670
+ content: {
2671
+ "application/json": components["schemas"]["EventEnvelope"];
2672
+ };
2673
+ };
2674
+ responses: {
2675
+ /** @description Event durably accepted; no implication of completed fulfillment. */
2676
+ 200: {
2677
+ headers: {
2678
+ [name: string]: unknown;
2679
+ };
2680
+ content?: never;
2681
+ };
2682
+ /** @description Durably queued by merchant. */
2683
+ 202: {
2684
+ headers: {
2685
+ [name: string]: unknown;
2686
+ };
2687
+ content?: never;
2688
+ };
2689
+ /** @description Invalid body or conflicting identity. */
2690
+ 400: {
2691
+ headers: {
2692
+ [name: string]: unknown;
2693
+ };
2694
+ content?: never;
2695
+ };
2696
+ /** @description Invalid signature or timestamp. */
2697
+ 401: {
2698
+ headers: {
2699
+ [name: string]: unknown;
2700
+ };
2701
+ content?: never;
2702
+ };
2703
+ /** @description Not durably accepted; retry same event/command. */
2704
+ 503: {
2705
+ headers: {
2706
+ [name: string]: unknown;
2707
+ };
2708
+ content?: never;
2709
+ };
2710
+ };
2711
+ };
2712
+ }