@andco/protocol 0.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.
Files changed (126) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +44 -0
  3. package/dist/authorization-preparation.d.ts +754 -0
  4. package/dist/authorization-preparation.d.ts.map +1 -0
  5. package/dist/authorization-preparation.js +187 -0
  6. package/dist/authorization.d.ts +99 -0
  7. package/dist/authorization.d.ts.map +1 -0
  8. package/dist/authorization.js +227 -0
  9. package/dist/automatic-charge.d.ts +314 -0
  10. package/dist/automatic-charge.d.ts.map +1 -0
  11. package/dist/automatic-charge.js +126 -0
  12. package/dist/bank-account-authorization.d.ts +6 -0
  13. package/dist/bank-account-authorization.d.ts.map +1 -0
  14. package/dist/bank-account-authorization.js +13 -0
  15. package/dist/callback-state.d.ts +10 -0
  16. package/dist/callback-state.d.ts.map +1 -0
  17. package/dist/callback-state.js +28 -0
  18. package/dist/consent.d.ts +48 -0
  19. package/dist/consent.d.ts.map +1 -0
  20. package/dist/consent.js +110 -0
  21. package/dist/constants.d.ts +17 -0
  22. package/dist/constants.d.ts.map +1 -0
  23. package/dist/constants.js +20 -0
  24. package/dist/errors.d.ts +70 -0
  25. package/dist/errors.d.ts.map +1 -0
  26. package/dist/errors.js +80 -0
  27. package/dist/index.d.ts +33 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +32 -0
  30. package/dist/intent-input.d.ts +637 -0
  31. package/dist/intent-input.d.ts.map +1 -0
  32. package/dist/intent-input.js +101 -0
  33. package/dist/messages/authorization-response.d.ts +12 -0
  34. package/dist/messages/authorization-response.d.ts.map +1 -0
  35. package/dist/messages/authorization-response.js +9 -0
  36. package/dist/messages/base.d.ts +31 -0
  37. package/dist/messages/base.d.ts.map +1 -0
  38. package/dist/messages/base.js +30 -0
  39. package/dist/messages/click.d.ts +11 -0
  40. package/dist/messages/click.d.ts.map +1 -0
  41. package/dist/messages/click.js +8 -0
  42. package/dist/messages/error.d.ts +13 -0
  43. package/dist/messages/error.d.ts.map +1 -0
  44. package/dist/messages/error.js +9 -0
  45. package/dist/messages/index.d.ts +75 -0
  46. package/dist/messages/index.d.ts.map +1 -0
  47. package/dist/messages/index.js +27 -0
  48. package/dist/messages/init.d.ts +9 -0
  49. package/dist/messages/init.d.ts.map +1 -0
  50. package/dist/messages/init.js +6 -0
  51. package/dist/messages/popup.d.ts +108 -0
  52. package/dist/messages/popup.d.ts.map +1 -0
  53. package/dist/messages/popup.js +62 -0
  54. package/dist/messages/ready.d.ts +9 -0
  55. package/dist/messages/ready.d.ts.map +1 -0
  56. package/dist/messages/ready.js +6 -0
  57. package/dist/messages/set-preferences.d.ts +16 -0
  58. package/dist/messages/set-preferences.d.ts.map +1 -0
  59. package/dist/messages/set-preferences.js +20 -0
  60. package/dist/miniapp-icon.d.ts +4 -0
  61. package/dist/miniapp-icon.d.ts.map +1 -0
  62. package/dist/miniapp-icon.js +68 -0
  63. package/dist/miniapp-manifest.d.ts +71 -0
  64. package/dist/miniapp-manifest.d.ts.map +1 -0
  65. package/dist/miniapp-manifest.js +46 -0
  66. package/dist/native-copy.d.ts +7 -0
  67. package/dist/native-copy.d.ts.map +1 -0
  68. package/dist/native-copy.js +436 -0
  69. package/dist/native-intent.d.ts +402 -0
  70. package/dist/native-intent.d.ts.map +1 -0
  71. package/dist/native-intent.js +410 -0
  72. package/dist/native.d.ts +55 -0
  73. package/dist/native.d.ts.map +1 -0
  74. package/dist/native.js +53 -0
  75. package/dist/oauth.d.ts +4 -0
  76. package/dist/oauth.d.ts.map +1 -0
  77. package/dist/oauth.js +3 -0
  78. package/dist/release.d.ts +3 -0
  79. package/dist/release.d.ts.map +1 -0
  80. package/dist/release.js +2 -0
  81. package/dist/scopes.d.ts +35 -0
  82. package/dist/scopes.d.ts.map +1 -0
  83. package/dist/scopes.js +15 -0
  84. package/dist/server.d.ts +9 -0
  85. package/dist/server.d.ts.map +1 -0
  86. package/dist/server.js +14 -0
  87. package/dist/transport/financial-events.d.ts +134 -0
  88. package/dist/transport/financial-events.d.ts.map +1 -0
  89. package/dist/transport/financial-events.js +120 -0
  90. package/dist/transport/generated/oauth-api.d.ts +1685 -0
  91. package/dist/transport/generated/oauth-api.d.ts.map +1 -0
  92. package/dist/transport/generated/oauth-api.js +5 -0
  93. package/dist/transport/index.d.ts +6 -0
  94. package/dist/transport/index.d.ts.map +1 -0
  95. package/dist/transport/index.js +5 -0
  96. package/dist/transport/intents.d.ts +81 -0
  97. package/dist/transport/intents.d.ts.map +1 -0
  98. package/dist/transport/intents.js +286 -0
  99. package/dist/transport/rest.d.ts +76 -0
  100. package/dist/transport/rest.d.ts.map +1 -0
  101. package/dist/transport/rest.js +48 -0
  102. package/dist/transport/runtime.d.ts +8 -0
  103. package/dist/transport/runtime.d.ts.map +1 -0
  104. package/dist/transport/runtime.js +16 -0
  105. package/dist/transport/webhooks.d.ts +27 -0
  106. package/dist/transport/webhooks.d.ts.map +1 -0
  107. package/dist/transport/webhooks.js +68 -0
  108. package/dist/urls.d.ts +71 -0
  109. package/dist/urls.d.ts.map +1 -0
  110. package/dist/urls.js +132 -0
  111. package/dist/userinfo.d.ts +11 -0
  112. package/dist/userinfo.d.ts.map +1 -0
  113. package/dist/userinfo.js +9 -0
  114. package/dist/utils.d.ts +20 -0
  115. package/dist/utils.d.ts.map +1 -0
  116. package/dist/utils.js +45 -0
  117. package/dist/webhook-input.d.ts +22 -0
  118. package/dist/webhook-input.d.ts.map +1 -0
  119. package/dist/webhook-input.js +11 -0
  120. package/dist/webhook-signature.d.ts +54 -0
  121. package/dist/webhook-signature.d.ts.map +1 -0
  122. package/dist/webhook-signature.js +74 -0
  123. package/dist/window-features.d.ts +28 -0
  124. package/dist/window-features.d.ts.map +1 -0
  125. package/dist/window-features.js +55 -0
  126. package/package.json +63 -0
@@ -0,0 +1,1685 @@
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
+ "/event-subscriptions": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get?: never;
14
+ put?: never;
15
+ /**
16
+ * Register one explicit subject for verified durable backend delivery
17
+ * @description Requires the exact live Grant with subject read permission. Replays retained matching facts after ownership verification. The signing secret is a canonical base64url-encoded 32-byte key and is never returned.
18
+ */
19
+ post: operations["createWebhookSubscription"];
20
+ delete?: never;
21
+ options?: never;
22
+ head?: never;
23
+ patch?: never;
24
+ trace?: never;
25
+ };
26
+ "/event-subscriptions/{subscription_id}": {
27
+ parameters: {
28
+ query?: never;
29
+ header?: never;
30
+ path: {
31
+ subscription_id: string;
32
+ };
33
+ cookie?: never;
34
+ };
35
+ /** Inspect verification status under the original exact Grant */
36
+ get: operations["getWebhookSubscription"];
37
+ put?: never;
38
+ post?: never;
39
+ delete?: never;
40
+ options?: never;
41
+ head?: never;
42
+ patch?: never;
43
+ trace?: never;
44
+ };
45
+ "/event-subscriptions/{subscription_id}/deliveries": {
46
+ parameters: {
47
+ query?: never;
48
+ header?: never;
49
+ path: {
50
+ subscription_id: string;
51
+ };
52
+ cookie?: never;
53
+ };
54
+ /** Read retained delivery status in event publication order */
55
+ get: operations["getWebhookDeliveries"];
56
+ put?: never;
57
+ post?: never;
58
+ delete?: never;
59
+ options?: never;
60
+ head?: never;
61
+ patch?: never;
62
+ trace?: never;
63
+ };
64
+ "/event-subscriptions/{subscription_id}/deliveries/{delivery_id}/attempts": {
65
+ parameters: {
66
+ query?: never;
67
+ header?: never;
68
+ path: {
69
+ subscription_id: string;
70
+ delivery_id: string;
71
+ };
72
+ cookie?: never;
73
+ };
74
+ /** Read all retained dispatch attempts in attempt order */
75
+ get: operations["getWebhookAttempts"];
76
+ put?: never;
77
+ post?: never;
78
+ delete?: never;
79
+ options?: never;
80
+ head?: never;
81
+ patch?: never;
82
+ trace?: never;
83
+ };
84
+ "/event-subscriptions/{subscription_id}/deliveries/{delivery_id}/redrive": {
85
+ parameters: {
86
+ query?: never;
87
+ header?: never;
88
+ path: {
89
+ subscription_id: string;
90
+ delivery_id: string;
91
+ };
92
+ cookie?: never;
93
+ };
94
+ get?: never;
95
+ put?: never;
96
+ /** Queue a failed delivery without changing its immutable event identity */
97
+ post: operations["redriveWebhookDelivery"];
98
+ delete?: never;
99
+ options?: never;
100
+ head?: never;
101
+ patch?: never;
102
+ trace?: never;
103
+ };
104
+ "/authorization": {
105
+ parameters: {
106
+ query?: never;
107
+ header?: never;
108
+ path?: never;
109
+ cookie?: never;
110
+ };
111
+ /** Get the active Grant carried by the bearer token */
112
+ get: operations["getGrantAuthorization"];
113
+ put?: never;
114
+ post?: never;
115
+ delete?: never;
116
+ options?: never;
117
+ head?: never;
118
+ patch?: never;
119
+ trace?: never;
120
+ };
121
+ "/organization-directory": {
122
+ parameters: {
123
+ query?: never;
124
+ header?: never;
125
+ path?: never;
126
+ cookie?: never;
127
+ };
128
+ /** List organization IDs and names for personal discovery */
129
+ get: operations["getOrganizationDirectory"];
130
+ put?: never;
131
+ post?: never;
132
+ delete?: never;
133
+ options?: never;
134
+ head?: never;
135
+ patch?: never;
136
+ trace?: never;
137
+ };
138
+ "/company-identity": {
139
+ parameters: {
140
+ query?: never;
141
+ header?: never;
142
+ path?: never;
143
+ cookie?: never;
144
+ };
145
+ /** Get the legal identity selected by a Company data Grant */
146
+ get: operations["getCompanyIdentity"];
147
+ put?: never;
148
+ post?: never;
149
+ delete?: never;
150
+ options?: never;
151
+ head?: never;
152
+ patch?: never;
153
+ trace?: never;
154
+ };
155
+ "/company-addresses": {
156
+ parameters: {
157
+ query?: never;
158
+ header?: never;
159
+ path?: never;
160
+ cookie?: never;
161
+ };
162
+ /** List addresses selected by a Company data Grant */
163
+ get: operations["getCompanyAddresses"];
164
+ put?: never;
165
+ post?: never;
166
+ delete?: never;
167
+ options?: never;
168
+ head?: never;
169
+ patch?: never;
170
+ trace?: never;
171
+ };
172
+ "/catalog/permissions": {
173
+ parameters: {
174
+ query?: never;
175
+ header?: never;
176
+ path?: never;
177
+ cookie?: never;
178
+ };
179
+ /**
180
+ * List the public Permission Catalog
181
+ * @description The reference of the OAuth Scopes and Detailed Authorization types that live providers publish, with their actions, restrictions and request examples. It describes requestable capabilities, never a Profile, Company or Grant, and is the only resource in this API that requires no authorization.
182
+ */
183
+ get: operations["getPermissionCatalog"];
184
+ put?: never;
185
+ post?: never;
186
+ delete?: never;
187
+ options?: never;
188
+ head?: never;
189
+ patch?: never;
190
+ trace?: never;
191
+ };
192
+ "/userinfo": {
193
+ parameters: {
194
+ query?: never;
195
+ header?: never;
196
+ path?: never;
197
+ cookie?: never;
198
+ };
199
+ /** Get the authenticated user's standard identity claims */
200
+ get: operations["getUserInfo"];
201
+ put?: never;
202
+ post?: never;
203
+ delete?: never;
204
+ options?: never;
205
+ head?: never;
206
+ patch?: never;
207
+ trace?: never;
208
+ };
209
+ "/identities": {
210
+ parameters: {
211
+ query?: never;
212
+ header?: never;
213
+ path?: never;
214
+ cookie?: never;
215
+ };
216
+ /** List personal identities */
217
+ get: operations["listIdentities"];
218
+ put?: never;
219
+ post?: never;
220
+ delete?: never;
221
+ options?: never;
222
+ head?: never;
223
+ patch?: never;
224
+ trace?: never;
225
+ };
226
+ "/addresses": {
227
+ parameters: {
228
+ query?: never;
229
+ header?: never;
230
+ path?: never;
231
+ cookie?: never;
232
+ };
233
+ /** List personal addresses */
234
+ get: operations["listAddresses"];
235
+ put?: never;
236
+ /** Create a personal address */
237
+ post: operations["createAddress"];
238
+ delete?: never;
239
+ options?: never;
240
+ head?: never;
241
+ patch?: never;
242
+ trace?: never;
243
+ };
244
+ "/addresses/{address_id}": {
245
+ parameters: {
246
+ query?: never;
247
+ header?: never;
248
+ path: {
249
+ address_id: string;
250
+ };
251
+ cookie?: never;
252
+ };
253
+ get?: never;
254
+ put?: never;
255
+ post?: never;
256
+ /** Soft-delete one personal address */
257
+ delete: operations["deleteAddress"];
258
+ options?: never;
259
+ head?: never;
260
+ /** Update one personal address */
261
+ patch: operations["updateAddress"];
262
+ trace?: never;
263
+ };
264
+ "/accounts": {
265
+ parameters: {
266
+ query?: never;
267
+ header?: never;
268
+ path?: never;
269
+ cookie?: never;
270
+ };
271
+ /** List personal bank accounts and balances */
272
+ get: operations["listAccounts"];
273
+ put?: never;
274
+ post?: never;
275
+ delete?: never;
276
+ options?: never;
277
+ head?: never;
278
+ patch?: never;
279
+ trace?: never;
280
+ };
281
+ "/intents": {
282
+ parameters: {
283
+ query?: never;
284
+ header?: never;
285
+ path?: never;
286
+ cookie?: never;
287
+ };
288
+ get?: never;
289
+ put?: never;
290
+ /** Create an intent under the exact OAuth Grant */
291
+ post: operations["createIntent"];
292
+ delete?: never;
293
+ options?: never;
294
+ head?: never;
295
+ patch?: never;
296
+ trace?: never;
297
+ };
298
+ "/accounts/{bank_account_id}/events": {
299
+ parameters: {
300
+ query?: never;
301
+ header?: never;
302
+ path?: never;
303
+ cookie?: never;
304
+ };
305
+ /** Replay bank facts with account movement read permission */
306
+ get: operations["readAccountEvents"];
307
+ put?: never;
308
+ post?: never;
309
+ delete?: never;
310
+ options?: never;
311
+ head?: never;
312
+ patch?: never;
313
+ trace?: never;
314
+ };
315
+ "/intents/{intent_id}/events": {
316
+ parameters: {
317
+ query?: never;
318
+ header?: never;
319
+ path?: never;
320
+ cookie?: never;
321
+ };
322
+ /** Replay durable facts for one authorized Intent */
323
+ get: operations["readIntentEvents"];
324
+ put?: never;
325
+ post?: never;
326
+ delete?: never;
327
+ options?: never;
328
+ head?: never;
329
+ patch?: never;
330
+ trace?: never;
331
+ };
332
+ "/intents/{intent_id}": {
333
+ parameters: {
334
+ query?: never;
335
+ header?: never;
336
+ path: {
337
+ intent_id: string;
338
+ };
339
+ cookie?: never;
340
+ };
341
+ /** Read one intent created under the same exact OAuth Grant */
342
+ get: operations["getIntent"];
343
+ put?: never;
344
+ post?: never;
345
+ delete?: never;
346
+ options?: never;
347
+ head?: never;
348
+ patch?: never;
349
+ trace?: never;
350
+ };
351
+ "/intents/{intent_id}/close": {
352
+ parameters: {
353
+ query?: never;
354
+ header?: never;
355
+ path: {
356
+ intent_id: string;
357
+ };
358
+ cookie?: never;
359
+ };
360
+ get?: never;
361
+ put?: never;
362
+ /**
363
+ * Close this application's no-target deposit collection with an explicit close Grant action
364
+ * @description Idempotent. Preserves existing terminal outcomes. Does not move funds, cancel accepted bank commands, or grant account movement access.
365
+ */
366
+ post: operations["closeDeposit"];
367
+ delete?: never;
368
+ options?: never;
369
+ head?: never;
370
+ patch?: never;
371
+ trace?: never;
372
+ };
373
+ "/intents/{intent_id}/execute": {
374
+ parameters: {
375
+ query?: never;
376
+ header?: never;
377
+ path: {
378
+ intent_id: string;
379
+ };
380
+ cookie?: never;
381
+ };
382
+ get?: never;
383
+ put?: never;
384
+ /** Execute a withdrawal when its exact OAuth Grant permits non-interactive execution */
385
+ post: operations["executeWithdrawal"];
386
+ delete?: never;
387
+ options?: never;
388
+ head?: never;
389
+ patch?: never;
390
+ trace?: never;
391
+ };
392
+ }
393
+ export type webhooks = Record<string, never>;
394
+ export interface components {
395
+ schemas: {
396
+ WebhookDelivery: {
397
+ /** Format: uuid */
398
+ id: string;
399
+ /** Format: uuid */
400
+ subscription_id: string;
401
+ /** Format: uuid */
402
+ event_id: string;
403
+ event_type: string;
404
+ /** Format: date-time */
405
+ occurred_at: string;
406
+ /** @enum {string} */
407
+ status: "pending" | "retrying" | "exhausted" | "succeeded";
408
+ attempts: number;
409
+ total_attempts: number;
410
+ /** Format: date-time */
411
+ next_attempt_at: string;
412
+ /** Format: date-time */
413
+ last_attempt_at: string | null;
414
+ /** Format: date-time */
415
+ delivered_at: string | null;
416
+ last_status_code: number | null;
417
+ last_error: string | null;
418
+ redrive_count: number;
419
+ /** Format: date-time */
420
+ redriven_at: string | null;
421
+ cursor: string;
422
+ };
423
+ WebhookDeliveryPage: {
424
+ items: components["schemas"]["WebhookDelivery"][];
425
+ has_more: boolean;
426
+ next_cursor: string;
427
+ };
428
+ WebhookAttempt: {
429
+ /** Format: uuid */
430
+ id: string;
431
+ /** Format: uuid */
432
+ delivery_id: string;
433
+ number: number;
434
+ /** Format: date-time */
435
+ started_at: string;
436
+ /** Format: date-time */
437
+ finished_at: string | null;
438
+ status_code: number | null;
439
+ error: string | null;
440
+ cursor: string;
441
+ };
442
+ WebhookAttemptPage: {
443
+ items: components["schemas"]["WebhookAttempt"][];
444
+ has_more: boolean;
445
+ next_cursor: string;
446
+ };
447
+ WebhookSubscriptionCreate: {
448
+ subject: {
449
+ /** @enum {string} */
450
+ kind: "intent" | "account";
451
+ /** Format: uuid */
452
+ id: string;
453
+ };
454
+ /** Format: uri */
455
+ url: string;
456
+ event_types: string[];
457
+ signing_secret: string;
458
+ };
459
+ WebhookSubscription: {
460
+ /** Format: uuid */
461
+ id: string;
462
+ /** @enum {string} */
463
+ subject_kind: "intent" | "account";
464
+ /** Format: uuid */
465
+ subject_id: string;
466
+ url: string;
467
+ event_types: string[];
468
+ /** @enum {string} */
469
+ verification_status: "pending" | "verified" | "failed" | "disabled";
470
+ /** Format: date-time */
471
+ created_at: string;
472
+ /** Format: date-time */
473
+ verified_at: string | null;
474
+ verification_attempts: number;
475
+ verification_error: string | null;
476
+ };
477
+ ApiError: {
478
+ error: string;
479
+ required_scope?: string;
480
+ required_action?: string;
481
+ code?: string;
482
+ message?: string;
483
+ };
484
+ GrantAuthorization: {
485
+ /** @constant */
486
+ active: true;
487
+ actor: components["schemas"]["GrantActor"];
488
+ authorizationDetails: {
489
+ [key: string]: unknown;
490
+ }[];
491
+ orgId?: string | null;
492
+ /** Format: uuid */
493
+ clientId: string;
494
+ /** Format: uuid */
495
+ grantId: string;
496
+ /** Format: uri */
497
+ resource: string;
498
+ /** Format: uuid */
499
+ consumerInstallationId: string | null;
500
+ scopes: string[];
501
+ subject: components["schemas"]["GrantSubject"];
502
+ };
503
+ GrantActor: {
504
+ /** @constant */
505
+ type: "profile";
506
+ /** Format: uuid */
507
+ id: string;
508
+ };
509
+ GrantSubject: components["schemas"]["ProfileGrantSubject"] | components["schemas"]["ApplicationGrantSubject"];
510
+ ProfileGrantSubject: {
511
+ /** @constant */
512
+ type: "profile";
513
+ /** Format: uuid */
514
+ id: string;
515
+ };
516
+ ApplicationGrantSubject: {
517
+ /** @constant */
518
+ type: "application";
519
+ /** Format: uuid */
520
+ id: string;
521
+ };
522
+ UserInfo: {
523
+ /** Format: uuid */
524
+ sub: string;
525
+ /** Format: email */
526
+ email?: string;
527
+ email_verified?: boolean;
528
+ name?: string;
529
+ /** Format: uri */
530
+ picture?: string;
531
+ };
532
+ Identity: {
533
+ /** Format: uuid */
534
+ id: string;
535
+ country: string;
536
+ level1: string | null;
537
+ level2: string | null;
538
+ level3: string | null;
539
+ street_address: string | null;
540
+ nationality: string | null;
541
+ /** Format: date */
542
+ born_date: string | null;
543
+ gender: ("male" | "female" | "other") | null;
544
+ /** @enum {string} */
545
+ document_kind: "nin" | "passport";
546
+ document_value: string;
547
+ given_names: string | null;
548
+ family_names: string | null;
549
+ };
550
+ IdentityPage: {
551
+ data: components["schemas"]["Identity"][];
552
+ next_cursor: string | null;
553
+ has_more: boolean;
554
+ };
555
+ Address: {
556
+ /** Format: uuid */
557
+ id: string;
558
+ country: string;
559
+ level1: string | null;
560
+ level2: string | null;
561
+ level3: string | null;
562
+ street_address: string | null;
563
+ /** @enum {string} */
564
+ label_kind: "home" | "work" | "vacation" | "other";
565
+ label_name: string | null;
566
+ /** Format: int32 */
567
+ priority: number;
568
+ };
569
+ AddressPage: {
570
+ data: components["schemas"]["Address"][];
571
+ next_cursor: string | null;
572
+ has_more: boolean;
573
+ };
574
+ AddressCreate: {
575
+ country: string;
576
+ level1?: string | null;
577
+ level2?: string | null;
578
+ level3?: string | null;
579
+ street_address?: string | null;
580
+ /** @enum {string} */
581
+ label_kind: "home" | "work" | "vacation" | "other";
582
+ label_name?: string | null;
583
+ /** Format: int32 */
584
+ priority?: number;
585
+ };
586
+ AddressUpdate: {
587
+ country?: string;
588
+ level1?: string | null;
589
+ level2?: string | null;
590
+ level3?: string | null;
591
+ street_address?: string | null;
592
+ /** @enum {string} */
593
+ label_kind?: "home" | "work" | "vacation" | "other";
594
+ label_name?: string | null;
595
+ /** Format: int32 */
596
+ priority?: number;
597
+ };
598
+ AddressMutationResult: {
599
+ /** Format: uuid */
600
+ id: string;
601
+ };
602
+ CompanyIdentity: {
603
+ companyId: string;
604
+ legalName: string;
605
+ countryCode: string;
606
+ legalIdentifier: components["schemas"]["LegalIdentifier"];
607
+ };
608
+ CompanyAddresses: {
609
+ companyId: string;
610
+ addresses: components["schemas"]["CompanyAddress"][];
611
+ };
612
+ LegalIdentifier: {
613
+ /** @constant */
614
+ kind: "rut";
615
+ value: string;
616
+ };
617
+ PermissionCatalogPage: {
618
+ data: components["schemas"]["PermissionCatalogEntry"][];
619
+ nextCursor: string | null;
620
+ hasMore: boolean;
621
+ };
622
+ PermissionCatalogEntry: {
623
+ /** Format: uuid */
624
+ providerId: string;
625
+ /** Format: uuid */
626
+ providerProjectId: string;
627
+ providerName: string;
628
+ resource: string;
629
+ /** @enum {string} */
630
+ kind: "scope" | "authorization_details";
631
+ identifier: string;
632
+ name: string;
633
+ description: string;
634
+ actions: {
635
+ [key: string]: string;
636
+ };
637
+ restrictions: string;
638
+ schema: {
639
+ [key: string]: unknown;
640
+ };
641
+ examples: unknown[];
642
+ };
643
+ CompanyAddress: {
644
+ /** Format: uuid */
645
+ addressId: string;
646
+ countryCode: string;
647
+ level1?: string;
648
+ level2?: string;
649
+ level3?: string;
650
+ streetAddress?: string;
651
+ /** @enum {string} */
652
+ labelKind: "home" | "work" | "other";
653
+ labelName?: string;
654
+ /** Format: int32 */
655
+ priority: number;
656
+ };
657
+ BankAccount: {
658
+ /** Format: uuid */
659
+ id: string;
660
+ name: string;
661
+ number: string;
662
+ type: string;
663
+ currency: string;
664
+ balance: string;
665
+ };
666
+ BankAccountReference: {
667
+ bank_id: string;
668
+ /** @constant */
669
+ country: "CL";
670
+ account_number: string;
671
+ /** @enum {string} */
672
+ account_kind: "checking" | "debit" | "savings";
673
+ account_holder_id: string;
674
+ account_holder_name: string;
675
+ };
676
+ WithdrawalBeneficiary: components["schemas"]["BankAccountReference"] & {
677
+ editable?: boolean;
678
+ };
679
+ WithdrawalAmount: {
680
+ /** @constant */
681
+ currency: "CLP";
682
+ suggested: string;
683
+ editable?: boolean;
684
+ };
685
+ WithdrawalAmountResolved: {
686
+ /** @constant */
687
+ currency: "CLP";
688
+ suggested: string;
689
+ editable: boolean;
690
+ };
691
+ DepositTarget: {
692
+ /** @constant */
693
+ currency: "CLP";
694
+ /** @description Immutable application suggestion from the creation request. */
695
+ suggested: string;
696
+ editable: boolean;
697
+ /** @description Explicitly confirmed target; the suggestion applies until confirmation. */
698
+ confirmed: string | null;
699
+ /**
700
+ * Format: date-time
701
+ * @description First funding confirmation or attribution freezes the target permanently.
702
+ */
703
+ frozen_at: string | null;
704
+ };
705
+ FinancialEvent: {
706
+ /** Format: uuid */
707
+ id: string;
708
+ type: string;
709
+ payload: {
710
+ [key: string]: unknown;
711
+ };
712
+ /** @constant */
713
+ version: 1;
714
+ /** Format: date-time */
715
+ occurred_at: string;
716
+ /** @description Opaque checkpoint bound to the authorized subject. */
717
+ cursor: string;
718
+ };
719
+ FinancialEventPage: {
720
+ events: components["schemas"]["FinancialEvent"][];
721
+ next_cursor: string;
722
+ has_more: boolean;
723
+ /** Format: date-time */
724
+ server_time: string;
725
+ };
726
+ /** @description Common suggestion; each bank operation freezes its own final note at confirmation. */
727
+ IntentNote: {
728
+ /** @description Trimmed bank reference suggestion. An empty reference is allowed. */
729
+ suggested: string;
730
+ /** @description Defaults to false when omitted. */
731
+ editable?: boolean;
732
+ };
733
+ DepositIntentCreate: ({
734
+ /** @description Positive fixed duration, anchored once when the operation is first created. */
735
+ expires_in?: string;
736
+ /**
737
+ * Format: date-time
738
+ * @description Absolute deadline with an explicit timezone; null is allowed only when amount is omitted. Exactly one expiration field is required.
739
+ */
740
+ expires_at?: string | null;
741
+ /** @constant */
742
+ type: "deposit";
743
+ amount?: components["schemas"]["WithdrawalAmount"];
744
+ note?: components["schemas"]["IntentNote"];
745
+ metadata?: {
746
+ [key: string]: unknown;
747
+ };
748
+ } & unknown) & (unknown | unknown);
749
+ DepositDestination: components["schemas"]["BankAccountReference"] & {
750
+ /** Format: uuid */
751
+ bank_account_id: string;
752
+ };
753
+ DepositProgress: {
754
+ credited: string;
755
+ remaining: string | null;
756
+ };
757
+ DepositTransaction: {
758
+ /** Format: uuid */
759
+ id: string;
760
+ /** Format: date-time */
761
+ received_at: string;
762
+ note: string | null;
763
+ /** @enum {string} */
764
+ outcome: "credited" | "reversed";
765
+ /** @enum {string} */
766
+ receipt_time_source: "bank_timestamp" | "unknown";
767
+ bank_id: string | null;
768
+ account_number_masked: string;
769
+ account_holder_name_masked: string;
770
+ /** @enum {string|null} */
771
+ account_type: "checking" | "debit" | "savings" | null;
772
+ /** @constant */
773
+ currency: "CLP";
774
+ amount: string;
775
+ transaction_id?: string;
776
+ };
777
+ DepositCloseResult: {
778
+ /** Format: uuid */
779
+ id: string;
780
+ /** @description Existing terminal outcome is preserved, including expired. */
781
+ status: string;
782
+ /** Format: date-time */
783
+ server_time: string;
784
+ closure: {
785
+ /** Format: date-time */
786
+ closed_at: string;
787
+ total: string;
788
+ } | null;
789
+ };
790
+ DepositIntent: {
791
+ /** Format: uuid */
792
+ id: string;
793
+ /** Format: uri */
794
+ resource_server: string;
795
+ /** @constant */
796
+ type: "deposit";
797
+ /** @enum {string} */
798
+ status: "requires_action" | "completed" | "closed" | "expired" | "cancelled" | "failed";
799
+ attribution_version: number;
800
+ closure: null | {
801
+ /** Format: date-time */
802
+ closed_at: string;
803
+ total: string;
804
+ };
805
+ /** @description First terminal state and total, unchanged by later attribution corrections. Legacy unknown totals remain null. */
806
+ termination?: null | {
807
+ status: string;
808
+ /** Format: date-time */
809
+ at: string | null;
810
+ total: string | null;
811
+ };
812
+ completion: null | {
813
+ /** Format: date-time */
814
+ completed_at: string;
815
+ total: string;
816
+ };
817
+ destination: components["schemas"]["DepositDestination"];
818
+ amount: null | components["schemas"]["DepositTarget"];
819
+ progress: components["schemas"]["DepositProgress"];
820
+ transactions: components["schemas"]["DepositTransaction"][];
821
+ fee: {
822
+ /** @constant */
823
+ currency: "CLP";
824
+ /** @constant */
825
+ amount: "0";
826
+ };
827
+ note?: components["schemas"]["IntentNote"];
828
+ metadata: {
829
+ [key: string]: unknown;
830
+ };
831
+ /** Format: date-time */
832
+ server_time: string;
833
+ /** @description Remaining actionable lifetime at server_time; zero for finite terminal Intents. */
834
+ expires_in_seconds: number | null;
835
+ /** Format: date-time */
836
+ expires_at: string | null;
837
+ /** Format: date-time */
838
+ created_at: string;
839
+ /** Format: uri */
840
+ authorization_url: string;
841
+ };
842
+ WithdrawalIntentCreate: {
843
+ /** @description Positive fixed duration, anchored once when the operation is first created. */
844
+ expires_in?: string;
845
+ /**
846
+ * Format: date-time
847
+ * @description Absolute deadline with an explicit timezone. Exactly one expiration field is required.
848
+ */
849
+ expires_at?: string;
850
+ /** @constant */
851
+ type: "withdrawal";
852
+ source?: null | {
853
+ /** Format: uuid */
854
+ bank_account_id: string;
855
+ } | components["schemas"]["BankAccountReference"];
856
+ beneficiary: components["schemas"]["WithdrawalBeneficiary"] | components["schemas"]["InternalBankAccountReference"];
857
+ amount: components["schemas"]["WithdrawalAmount"];
858
+ note?: components["schemas"]["IntentNote"];
859
+ metadata?: {
860
+ [key: string]: unknown;
861
+ };
862
+ } & (unknown | unknown);
863
+ /** @enum {string} */
864
+ IntentStatus: "requires_action" | "processing.confirmed" | "processing.settling" | "processing.reversing" | "processing.reconciling" | "succeeded" | "failed" | "failed.insufficient_funds" | "cancelled" | "expired";
865
+ WithdrawalIntent: {
866
+ /** Format: uuid */
867
+ id: string;
868
+ /** Format: uri */
869
+ resource_server: string;
870
+ /** @constant */
871
+ type: "withdrawal";
872
+ status: components["schemas"]["IntentStatus"];
873
+ source?: {
874
+ /** Format: uuid */
875
+ bank_account_id: string;
876
+ } | components["schemas"]["BankAccountReference"];
877
+ beneficiary: components["schemas"]["WithdrawalBeneficiary"];
878
+ amount: components["schemas"]["WithdrawalAmountResolved"];
879
+ fee: {
880
+ /** @constant */
881
+ currency: "CLP";
882
+ /** @constant */
883
+ amount: "0";
884
+ };
885
+ note?: components["schemas"]["IntentNote"];
886
+ metadata: {
887
+ [key: string]: unknown;
888
+ };
889
+ /** Format: date-time */
890
+ server_time: string;
891
+ /** @description Remaining actionable lifetime at server_time; zero for finite terminal Intents. */
892
+ expires_in_seconds: number;
893
+ /** Format: date-time */
894
+ expires_at: string;
895
+ /** Format: date-time */
896
+ created_at: string;
897
+ /** Format: uri */
898
+ authorization_url: string;
899
+ };
900
+ AutomaticChargeIntentCreate: {
901
+ /** @description Positive fixed duration, anchored once when the operation is first created. */
902
+ expires_in?: string;
903
+ /**
904
+ * Format: date-time
905
+ * @description Absolute deadline with an explicit timezone. Exactly one expiration field is required.
906
+ */
907
+ expires_at?: string;
908
+ /** @constant */
909
+ type: "automatic_charge";
910
+ source?: null | components["schemas"]["InternalBankAccountReference"];
911
+ beneficiary: components["schemas"]["InternalBankAccountReference"];
912
+ amount: {
913
+ /** @constant */
914
+ currency: "CLP";
915
+ suggested: string;
916
+ /** @constant */
917
+ editable?: false;
918
+ };
919
+ note?: components["schemas"]["IntentNote"];
920
+ metadata?: {
921
+ [key: string]: unknown;
922
+ };
923
+ } & (unknown | unknown);
924
+ InternalBankAccountReference: {
925
+ /** Format: uuid */
926
+ bank_account_id: string;
927
+ };
928
+ AutomaticChargeIntent: {
929
+ /** Format: uuid */
930
+ id: string;
931
+ /** Format: uri */
932
+ resource_server: string;
933
+ /** @constant */
934
+ type: "automatic_charge";
935
+ status: components["schemas"]["IntentStatus"];
936
+ source?: {
937
+ /** Format: uuid */
938
+ bank_account_id: string;
939
+ } | components["schemas"]["BankAccountReference"];
940
+ beneficiary: components["schemas"]["WithdrawalBeneficiary"];
941
+ amount: components["schemas"]["WithdrawalAmountResolved"];
942
+ fee: {
943
+ /** @constant */
944
+ currency: "CLP";
945
+ /** @constant */
946
+ amount: "0";
947
+ };
948
+ note?: components["schemas"]["IntentNote"];
949
+ metadata: {
950
+ [key: string]: unknown;
951
+ };
952
+ /** Format: date-time */
953
+ server_time: string;
954
+ /** @description Remaining actionable lifetime at server_time; zero for finite terminal Intents. */
955
+ expires_in_seconds: number;
956
+ /** Format: date-time */
957
+ expires_at: string;
958
+ /** Format: date-time */
959
+ created_at: string;
960
+ /** Format: uri */
961
+ authorization_url: string;
962
+ };
963
+ DirectoryOrganization: {
964
+ id: string;
965
+ name: string;
966
+ };
967
+ };
968
+ responses: {
969
+ /** @description The OAuth bearer token is missing, invalid, expired, or revoked */
970
+ InvalidToken: {
971
+ headers: {
972
+ [name: string]: unknown;
973
+ };
974
+ content: {
975
+ "application/json": components["schemas"]["ApiError"];
976
+ };
977
+ };
978
+ /** @description The browser origin is not allowed or the token does not grant the resource's required scope */
979
+ Forbidden: {
980
+ headers: {
981
+ [name: string]: unknown;
982
+ };
983
+ content: {
984
+ "application/json": components["schemas"]["ApiError"];
985
+ };
986
+ };
987
+ /** @description The request body or headers are invalid */
988
+ InvalidRequest: {
989
+ headers: {
990
+ [name: string]: unknown;
991
+ };
992
+ content: {
993
+ "application/json": components["schemas"]["ApiError"];
994
+ };
995
+ };
996
+ /** @description The idempotency key was already used with a different request */
997
+ Conflict: {
998
+ headers: {
999
+ [name: string]: unknown;
1000
+ };
1001
+ content: {
1002
+ "application/json": components["schemas"]["ApiError"];
1003
+ };
1004
+ };
1005
+ /** @description The request is valid but exceeds the effective amount limits */
1006
+ UnprocessableEntity: {
1007
+ headers: {
1008
+ [name: string]: unknown;
1009
+ };
1010
+ content: {
1011
+ "application/json": components["schemas"]["ApiError"];
1012
+ };
1013
+ };
1014
+ /** @description The requested transfer rail or source is intentionally unavailable */
1015
+ NotImplemented: {
1016
+ headers: {
1017
+ [name: string]: unknown;
1018
+ };
1019
+ content: {
1020
+ "application/json": components["schemas"]["ApiError"];
1021
+ };
1022
+ };
1023
+ /** @description The intent does not exist under the presented Grant */
1024
+ NotFound: {
1025
+ headers: {
1026
+ [name: string]: unknown;
1027
+ };
1028
+ content: {
1029
+ "application/json": components["schemas"]["ApiError"];
1030
+ };
1031
+ };
1032
+ /** @description The requested API version is not supported */
1033
+ UnsupportedVersion: {
1034
+ headers: {
1035
+ [name: string]: unknown;
1036
+ };
1037
+ content: {
1038
+ "application/json": components["schemas"]["ApiError"];
1039
+ };
1040
+ };
1041
+ /** @description A required upstream service is temporarily unavailable */
1042
+ TemporarilyUnavailable: {
1043
+ headers: {
1044
+ [name: string]: unknown;
1045
+ };
1046
+ content: {
1047
+ "application/json": components["schemas"]["ApiError"];
1048
+ };
1049
+ };
1050
+ };
1051
+ parameters: never;
1052
+ requestBodies: never;
1053
+ headers: never;
1054
+ pathItems: never;
1055
+ }
1056
+ export type $defs = Record<string, never>;
1057
+ export interface operations {
1058
+ createWebhookSubscription: {
1059
+ parameters: {
1060
+ query?: never;
1061
+ header: {
1062
+ "Idempotency-Key": string;
1063
+ };
1064
+ path?: never;
1065
+ cookie?: never;
1066
+ };
1067
+ requestBody: {
1068
+ content: {
1069
+ "application/json": components["schemas"]["WebhookSubscriptionCreate"];
1070
+ };
1071
+ };
1072
+ responses: {
1073
+ /** @description Registered endpoint awaiting verification, or the existing idempotent registration */
1074
+ 201: {
1075
+ headers: {
1076
+ [name: string]: unknown;
1077
+ };
1078
+ content: {
1079
+ "application/json": components["schemas"]["WebhookSubscription"];
1080
+ };
1081
+ };
1082
+ 400: components["responses"]["InvalidRequest"];
1083
+ 401: components["responses"]["InvalidToken"];
1084
+ 403: components["responses"]["Forbidden"];
1085
+ 409: components["responses"]["Conflict"];
1086
+ 503: components["responses"]["TemporarilyUnavailable"];
1087
+ };
1088
+ };
1089
+ getWebhookSubscription: {
1090
+ parameters: {
1091
+ query?: never;
1092
+ header?: never;
1093
+ path: {
1094
+ subscription_id: string;
1095
+ };
1096
+ cookie?: never;
1097
+ };
1098
+ requestBody?: never;
1099
+ responses: {
1100
+ /** @description Safe subscription details without credentials or verification challenge */
1101
+ 200: {
1102
+ headers: {
1103
+ [name: string]: unknown;
1104
+ };
1105
+ content: {
1106
+ "application/json": components["schemas"]["WebhookSubscription"];
1107
+ };
1108
+ };
1109
+ 401: components["responses"]["InvalidToken"];
1110
+ 403: components["responses"]["Forbidden"];
1111
+ 503: components["responses"]["TemporarilyUnavailable"];
1112
+ };
1113
+ };
1114
+ getWebhookDeliveries: {
1115
+ parameters: {
1116
+ query?: {
1117
+ after?: string;
1118
+ limit?: number;
1119
+ };
1120
+ header?: never;
1121
+ path: {
1122
+ subscription_id: string;
1123
+ };
1124
+ cookie?: never;
1125
+ };
1126
+ requestBody?: never;
1127
+ responses: {
1128
+ /** @description Authorized retained delivery information */
1129
+ 200: {
1130
+ headers: {
1131
+ [name: string]: unknown;
1132
+ };
1133
+ content: {
1134
+ "application/json": components["schemas"]["WebhookDeliveryPage"];
1135
+ };
1136
+ };
1137
+ 400: components["responses"]["InvalidRequest"];
1138
+ 401: components["responses"]["InvalidToken"];
1139
+ 403: components["responses"]["Forbidden"];
1140
+ 409: components["responses"]["Conflict"];
1141
+ 503: components["responses"]["TemporarilyUnavailable"];
1142
+ };
1143
+ };
1144
+ getWebhookAttempts: {
1145
+ parameters: {
1146
+ query?: {
1147
+ after?: string;
1148
+ limit?: number;
1149
+ };
1150
+ header?: never;
1151
+ path: {
1152
+ subscription_id: string;
1153
+ delivery_id: string;
1154
+ };
1155
+ cookie?: never;
1156
+ };
1157
+ requestBody?: never;
1158
+ responses: {
1159
+ /** @description Authorized retained delivery information */
1160
+ 200: {
1161
+ headers: {
1162
+ [name: string]: unknown;
1163
+ };
1164
+ content: {
1165
+ "application/json": components["schemas"]["WebhookAttemptPage"];
1166
+ };
1167
+ };
1168
+ 400: components["responses"]["InvalidRequest"];
1169
+ 401: components["responses"]["InvalidToken"];
1170
+ 403: components["responses"]["Forbidden"];
1171
+ 409: components["responses"]["Conflict"];
1172
+ 503: components["responses"]["TemporarilyUnavailable"];
1173
+ };
1174
+ };
1175
+ redriveWebhookDelivery: {
1176
+ parameters: {
1177
+ query?: never;
1178
+ header?: never;
1179
+ path: {
1180
+ subscription_id: string;
1181
+ delivery_id: string;
1182
+ };
1183
+ cookie?: never;
1184
+ };
1185
+ requestBody?: never;
1186
+ responses: {
1187
+ /** @description Authorized retained delivery information */
1188
+ 200: {
1189
+ headers: {
1190
+ [name: string]: unknown;
1191
+ };
1192
+ content: {
1193
+ "application/json": components["schemas"]["WebhookDelivery"];
1194
+ };
1195
+ };
1196
+ 400: components["responses"]["InvalidRequest"];
1197
+ 401: components["responses"]["InvalidToken"];
1198
+ 403: components["responses"]["Forbidden"];
1199
+ 409: components["responses"]["Conflict"];
1200
+ 503: components["responses"]["TemporarilyUnavailable"];
1201
+ };
1202
+ };
1203
+ getGrantAuthorization: {
1204
+ parameters: {
1205
+ query?: never;
1206
+ header?: never;
1207
+ path?: never;
1208
+ cookie?: never;
1209
+ };
1210
+ requestBody?: never;
1211
+ responses: {
1212
+ /** @description Active Grant context for a Resource Server */
1213
+ 200: {
1214
+ headers: {
1215
+ [name: string]: unknown;
1216
+ };
1217
+ content: {
1218
+ "application/json": components["schemas"]["GrantAuthorization"];
1219
+ };
1220
+ };
1221
+ 401: components["responses"]["InvalidToken"];
1222
+ 404: components["responses"]["UnsupportedVersion"];
1223
+ 503: components["responses"]["TemporarilyUnavailable"];
1224
+ };
1225
+ };
1226
+ getOrganizationDirectory: {
1227
+ parameters: {
1228
+ query?: never;
1229
+ header?: never;
1230
+ path?: never;
1231
+ cookie?: never;
1232
+ };
1233
+ requestBody?: never;
1234
+ responses: {
1235
+ /** @description Basic discovery data; no business-resource authority */
1236
+ 200: {
1237
+ headers: {
1238
+ [name: string]: unknown;
1239
+ };
1240
+ content: {
1241
+ "application/json": components["schemas"]["DirectoryOrganization"][];
1242
+ };
1243
+ };
1244
+ 401: components["responses"]["InvalidToken"];
1245
+ 403: components["responses"]["Forbidden"];
1246
+ 503: components["responses"]["TemporarilyUnavailable"];
1247
+ };
1248
+ };
1249
+ getCompanyIdentity: {
1250
+ parameters: {
1251
+ query?: never;
1252
+ header?: never;
1253
+ path?: never;
1254
+ cookie?: never;
1255
+ };
1256
+ requestBody?: never;
1257
+ responses: {
1258
+ /** @description Legal identity granted for the selected Company */
1259
+ 200: {
1260
+ headers: {
1261
+ [name: string]: unknown;
1262
+ };
1263
+ content: {
1264
+ "application/json": components["schemas"]["CompanyIdentity"];
1265
+ };
1266
+ };
1267
+ 401: components["responses"]["InvalidToken"];
1268
+ 403: components["responses"]["Forbidden"];
1269
+ 404: components["responses"]["NotFound"];
1270
+ 503: components["responses"]["TemporarilyUnavailable"];
1271
+ };
1272
+ };
1273
+ getCompanyAddresses: {
1274
+ parameters: {
1275
+ query?: never;
1276
+ header?: never;
1277
+ path?: never;
1278
+ cookie?: never;
1279
+ };
1280
+ requestBody?: never;
1281
+ responses: {
1282
+ /** @description Addresses granted for the selected Company */
1283
+ 200: {
1284
+ headers: {
1285
+ [name: string]: unknown;
1286
+ };
1287
+ content: {
1288
+ "application/json": components["schemas"]["CompanyAddresses"];
1289
+ };
1290
+ };
1291
+ 401: components["responses"]["InvalidToken"];
1292
+ 403: components["responses"]["Forbidden"];
1293
+ 404: components["responses"]["NotFound"];
1294
+ 503: components["responses"]["TemporarilyUnavailable"];
1295
+ };
1296
+ };
1297
+ getPermissionCatalog: {
1298
+ parameters: {
1299
+ query?: {
1300
+ limit?: number;
1301
+ cursor?: string;
1302
+ };
1303
+ header?: never;
1304
+ path?: never;
1305
+ cookie?: never;
1306
+ };
1307
+ requestBody?: never;
1308
+ responses: {
1309
+ /** @description One page of the public Permission Catalog */
1310
+ 200: {
1311
+ headers: {
1312
+ [name: string]: unknown;
1313
+ };
1314
+ content: {
1315
+ "application/json": components["schemas"]["PermissionCatalogPage"];
1316
+ };
1317
+ };
1318
+ 400: components["responses"]["InvalidRequest"];
1319
+ 404: components["responses"]["NotFound"];
1320
+ 503: components["responses"]["TemporarilyUnavailable"];
1321
+ };
1322
+ };
1323
+ getUserInfo: {
1324
+ parameters: {
1325
+ query?: never;
1326
+ header?: never;
1327
+ path?: never;
1328
+ cookie?: never;
1329
+ };
1330
+ requestBody?: never;
1331
+ responses: {
1332
+ /** @description Scope-filtered OpenID-style claims */
1333
+ 200: {
1334
+ headers: {
1335
+ [name: string]: unknown;
1336
+ };
1337
+ content: {
1338
+ "application/json": components["schemas"]["UserInfo"];
1339
+ };
1340
+ };
1341
+ 401: components["responses"]["InvalidToken"];
1342
+ 403: components["responses"]["Forbidden"];
1343
+ 404: components["responses"]["UnsupportedVersion"];
1344
+ 503: components["responses"]["TemporarilyUnavailable"];
1345
+ };
1346
+ };
1347
+ listIdentities: {
1348
+ parameters: {
1349
+ query?: {
1350
+ after?: string;
1351
+ limit?: number;
1352
+ };
1353
+ header?: never;
1354
+ path?: never;
1355
+ cookie?: never;
1356
+ };
1357
+ requestBody?: never;
1358
+ responses: {
1359
+ /** @description One page of active identities granted by identities:read */
1360
+ 200: {
1361
+ headers: {
1362
+ [name: string]: unknown;
1363
+ };
1364
+ content: {
1365
+ "application/json": components["schemas"]["IdentityPage"];
1366
+ };
1367
+ };
1368
+ 400: components["responses"]["InvalidRequest"];
1369
+ 401: components["responses"]["InvalidToken"];
1370
+ 403: components["responses"]["Forbidden"];
1371
+ 404: components["responses"]["UnsupportedVersion"];
1372
+ 503: components["responses"]["TemporarilyUnavailable"];
1373
+ };
1374
+ };
1375
+ listAddresses: {
1376
+ parameters: {
1377
+ query?: {
1378
+ after?: string;
1379
+ limit?: number;
1380
+ };
1381
+ header?: never;
1382
+ path?: never;
1383
+ cookie?: never;
1384
+ };
1385
+ requestBody?: never;
1386
+ responses: {
1387
+ /** @description One page of active addresses granted by addresses:read */
1388
+ 200: {
1389
+ headers: {
1390
+ [name: string]: unknown;
1391
+ };
1392
+ content: {
1393
+ "application/json": components["schemas"]["AddressPage"];
1394
+ };
1395
+ };
1396
+ 400: components["responses"]["InvalidRequest"];
1397
+ 401: components["responses"]["InvalidToken"];
1398
+ 403: components["responses"]["Forbidden"];
1399
+ 404: components["responses"]["UnsupportedVersion"];
1400
+ 503: components["responses"]["TemporarilyUnavailable"];
1401
+ };
1402
+ };
1403
+ createAddress: {
1404
+ parameters: {
1405
+ query?: never;
1406
+ header?: never;
1407
+ path?: never;
1408
+ cookie?: never;
1409
+ };
1410
+ requestBody: {
1411
+ content: {
1412
+ "application/json": components["schemas"]["AddressCreate"];
1413
+ };
1414
+ };
1415
+ responses: {
1416
+ /** @description Address created with addresses:write */
1417
+ 201: {
1418
+ headers: {
1419
+ [name: string]: unknown;
1420
+ };
1421
+ content: {
1422
+ "application/json": components["schemas"]["AddressMutationResult"];
1423
+ };
1424
+ };
1425
+ 400: components["responses"]["InvalidRequest"];
1426
+ 401: components["responses"]["InvalidToken"];
1427
+ 403: components["responses"]["Forbidden"];
1428
+ 422: components["responses"]["UnprocessableEntity"];
1429
+ 503: components["responses"]["TemporarilyUnavailable"];
1430
+ };
1431
+ };
1432
+ deleteAddress: {
1433
+ parameters: {
1434
+ query?: never;
1435
+ header?: never;
1436
+ path: {
1437
+ address_id: string;
1438
+ };
1439
+ cookie?: never;
1440
+ };
1441
+ requestBody?: never;
1442
+ responses: {
1443
+ /** @description Address deleted with addresses:write */
1444
+ 204: {
1445
+ headers: {
1446
+ [name: string]: unknown;
1447
+ };
1448
+ content?: never;
1449
+ };
1450
+ 400: components["responses"]["InvalidRequest"];
1451
+ 401: components["responses"]["InvalidToken"];
1452
+ 403: components["responses"]["Forbidden"];
1453
+ 404: components["responses"]["NotFound"];
1454
+ 503: components["responses"]["TemporarilyUnavailable"];
1455
+ };
1456
+ };
1457
+ updateAddress: {
1458
+ parameters: {
1459
+ query?: never;
1460
+ header?: never;
1461
+ path: {
1462
+ address_id: string;
1463
+ };
1464
+ cookie?: never;
1465
+ };
1466
+ requestBody: {
1467
+ content: {
1468
+ "application/json": components["schemas"]["AddressUpdate"];
1469
+ };
1470
+ };
1471
+ responses: {
1472
+ /** @description Address updated with addresses:write */
1473
+ 200: {
1474
+ headers: {
1475
+ [name: string]: unknown;
1476
+ };
1477
+ content: {
1478
+ "application/json": components["schemas"]["AddressMutationResult"];
1479
+ };
1480
+ };
1481
+ 400: components["responses"]["InvalidRequest"];
1482
+ 401: components["responses"]["InvalidToken"];
1483
+ 403: components["responses"]["Forbidden"];
1484
+ 404: components["responses"]["NotFound"];
1485
+ 422: components["responses"]["UnprocessableEntity"];
1486
+ 503: components["responses"]["TemporarilyUnavailable"];
1487
+ };
1488
+ };
1489
+ listAccounts: {
1490
+ parameters: {
1491
+ query?: never;
1492
+ header?: never;
1493
+ path?: never;
1494
+ cookie?: never;
1495
+ };
1496
+ requestBody?: never;
1497
+ responses: {
1498
+ /** @description Active bank accounts granted by bank_accounts:read */
1499
+ 200: {
1500
+ headers: {
1501
+ [name: string]: unknown;
1502
+ };
1503
+ content: {
1504
+ "application/json": {
1505
+ data: components["schemas"]["BankAccount"][];
1506
+ };
1507
+ };
1508
+ };
1509
+ 401: components["responses"]["InvalidToken"];
1510
+ 403: components["responses"]["Forbidden"];
1511
+ 404: components["responses"]["UnsupportedVersion"];
1512
+ 503: components["responses"]["TemporarilyUnavailable"];
1513
+ };
1514
+ };
1515
+ createIntent: {
1516
+ parameters: {
1517
+ query?: never;
1518
+ header: {
1519
+ "Idempotency-Key": string;
1520
+ };
1521
+ path?: never;
1522
+ cookie?: never;
1523
+ };
1524
+ requestBody: {
1525
+ content: {
1526
+ "application/json": components["schemas"]["DepositIntentCreate"] | components["schemas"]["WithdrawalIntentCreate"] | components["schemas"]["AutomaticChargeIntentCreate"];
1527
+ };
1528
+ };
1529
+ responses: {
1530
+ /** @description Intent created or returned from an idempotent retry */
1531
+ 201: {
1532
+ headers: {
1533
+ [name: string]: unknown;
1534
+ };
1535
+ content: {
1536
+ "application/json": components["schemas"]["DepositIntent"] | components["schemas"]["WithdrawalIntent"] | components["schemas"]["AutomaticChargeIntent"];
1537
+ };
1538
+ };
1539
+ 400: components["responses"]["InvalidRequest"];
1540
+ 401: components["responses"]["InvalidToken"];
1541
+ 403: components["responses"]["Forbidden"];
1542
+ 409: components["responses"]["Conflict"];
1543
+ 422: components["responses"]["UnprocessableEntity"];
1544
+ 501: components["responses"]["NotImplemented"];
1545
+ 503: components["responses"]["TemporarilyUnavailable"];
1546
+ };
1547
+ };
1548
+ readAccountEvents: {
1549
+ parameters: {
1550
+ query?: {
1551
+ after?: string;
1552
+ limit?: number;
1553
+ };
1554
+ header?: never;
1555
+ path: {
1556
+ bank_account_id: string;
1557
+ };
1558
+ cookie?: never;
1559
+ };
1560
+ requestBody?: never;
1561
+ responses: {
1562
+ /** @description Authorized event page in publication order */
1563
+ 200: {
1564
+ headers: {
1565
+ [name: string]: unknown;
1566
+ };
1567
+ content: {
1568
+ "application/json": components["schemas"]["FinancialEventPage"];
1569
+ };
1570
+ };
1571
+ 400: components["responses"]["InvalidRequest"];
1572
+ 401: components["responses"]["InvalidToken"];
1573
+ 404: components["responses"]["NotFound"];
1574
+ 503: components["responses"]["TemporarilyUnavailable"];
1575
+ };
1576
+ };
1577
+ readIntentEvents: {
1578
+ parameters: {
1579
+ query?: {
1580
+ after?: string;
1581
+ limit?: number;
1582
+ };
1583
+ header?: never;
1584
+ path: {
1585
+ intent_id: string;
1586
+ };
1587
+ cookie?: never;
1588
+ };
1589
+ requestBody?: never;
1590
+ responses: {
1591
+ /** @description Authorized event page in publication order */
1592
+ 200: {
1593
+ headers: {
1594
+ [name: string]: unknown;
1595
+ };
1596
+ content: {
1597
+ "application/json": components["schemas"]["FinancialEventPage"];
1598
+ };
1599
+ };
1600
+ 400: components["responses"]["InvalidRequest"];
1601
+ 401: components["responses"]["InvalidToken"];
1602
+ 404: components["responses"]["NotFound"];
1603
+ 503: components["responses"]["TemporarilyUnavailable"];
1604
+ };
1605
+ };
1606
+ getIntent: {
1607
+ parameters: {
1608
+ query?: never;
1609
+ header?: never;
1610
+ path: {
1611
+ intent_id: string;
1612
+ };
1613
+ cookie?: never;
1614
+ };
1615
+ requestBody?: never;
1616
+ responses: {
1617
+ /** @description Masked Project-facing intent */
1618
+ 200: {
1619
+ headers: {
1620
+ [name: string]: unknown;
1621
+ };
1622
+ content: {
1623
+ "application/json": components["schemas"]["DepositIntent"] | components["schemas"]["WithdrawalIntent"] | components["schemas"]["AutomaticChargeIntent"];
1624
+ };
1625
+ };
1626
+ 401: components["responses"]["InvalidToken"];
1627
+ 403: components["responses"]["Forbidden"];
1628
+ 404: components["responses"]["NotFound"];
1629
+ 503: components["responses"]["TemporarilyUnavailable"];
1630
+ };
1631
+ };
1632
+ closeDeposit: {
1633
+ parameters: {
1634
+ query?: never;
1635
+ header?: never;
1636
+ path: {
1637
+ intent_id: string;
1638
+ };
1639
+ cookie?: never;
1640
+ };
1641
+ requestBody?: never;
1642
+ responses: {
1643
+ /** @description Current terminal state and historical manual closure, if any */
1644
+ 200: {
1645
+ headers: {
1646
+ [name: string]: unknown;
1647
+ };
1648
+ content: {
1649
+ "application/json": components["schemas"]["DepositCloseResult"];
1650
+ };
1651
+ };
1652
+ 401: components["responses"]["InvalidToken"];
1653
+ 403: components["responses"]["Forbidden"];
1654
+ 404: components["responses"]["NotFound"];
1655
+ 409: components["responses"]["Conflict"];
1656
+ 503: components["responses"]["TemporarilyUnavailable"];
1657
+ };
1658
+ };
1659
+ executeWithdrawal: {
1660
+ parameters: {
1661
+ query?: never;
1662
+ header?: never;
1663
+ path: {
1664
+ intent_id: string;
1665
+ };
1666
+ cookie?: never;
1667
+ };
1668
+ requestBody?: never;
1669
+ responses: {
1670
+ /** @description Withdrawal execution accepted */
1671
+ 202: {
1672
+ headers: {
1673
+ [name: string]: unknown;
1674
+ };
1675
+ content?: never;
1676
+ };
1677
+ 401: components["responses"]["InvalidToken"];
1678
+ 403: components["responses"]["Forbidden"];
1679
+ 404: components["responses"]["NotFound"];
1680
+ 409: components["responses"]["Conflict"];
1681
+ 503: components["responses"]["TemporarilyUnavailable"];
1682
+ };
1683
+ };
1684
+ }
1685
+ //# sourceMappingURL=oauth-api.d.ts.map