@andco/protocol 0.0.6 → 0.0.8
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.
- package/README.md +22 -71
- package/dist/api-errors.d.ts +5 -5
- package/dist/api-errors.d.ts.map +1 -1
- package/dist/api-errors.js +5 -5
- package/dist/consent.d.ts +2 -2
- package/dist/consent.d.ts.map +1 -1
- package/dist/consent.js +10 -19
- package/dist/errors.d.ts +46 -7
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +51 -8
- package/dist/format-money.d.ts +3 -0
- package/dist/format-money.d.ts.map +1 -0
- package/dist/format-money.js +7 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/intent-input.d.ts +124 -124
- package/dist/intent-input.d.ts.map +1 -1
- package/dist/intent-input.js +14 -14
- package/dist/miniapp-icon.d.ts +2 -2
- package/dist/miniapp-icon.d.ts.map +1 -1
- package/dist/miniapp-icon.js +6 -58
- package/dist/native-intent.d.ts +20 -29
- package/dist/native-intent.d.ts.map +1 -1
- package/dist/native-intent.js +13 -56
- package/dist/pagination.d.ts +71 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +63 -0
- package/dist/rar/account-matchers.d.ts +52 -52
- package/dist/rar/account-matchers.d.ts.map +1 -1
- package/dist/rar/account-matchers.js +81 -72
- package/dist/rar/bank.d.ts +86 -84
- package/dist/rar/bank.d.ts.map +1 -1
- package/dist/rar/bank.js +26 -24
- package/dist/rar/catalog.d.ts +57 -56
- package/dist/rar/catalog.d.ts.map +1 -1
- package/dist/rar/catalog.js +1 -0
- package/dist/rar/detail.d.ts +1 -1
- package/dist/rar/detail.d.ts.map +1 -1
- package/dist/rar/detail.js +1 -1
- package/dist/service-grants.d.ts +6 -3
- package/dist/service-grants.d.ts.map +1 -1
- package/dist/service-grants.js +17 -3
- package/dist/transport/financial-events.d.ts +10 -22
- package/dist/transport/financial-events.d.ts.map +1 -1
- package/dist/transport/financial-events.js +36 -62
- package/dist/transport/generated/oauth-api.d.ts +269 -96
- package/dist/transport/generated/oauth-api.d.ts.map +1 -1
- package/dist/transport/intents.d.ts +11 -10
- package/dist/transport/intents.d.ts.map +1 -1
- package/dist/transport/intents.js +20 -19
- package/dist/transport/rest.d.ts +3 -3
- package/dist/transport/rest.d.ts.map +1 -1
- package/dist/transport/rest.js +1 -1
- package/dist/transport/runtime.js +3 -3
- package/dist/utils.js +3 -3
- package/dist/webhooks.d.ts +92 -12
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +95 -20
- package/package.json +1 -1
- package/dist/native-copy.d.ts +0 -28
- package/dist/native-copy.d.ts.map +0 -1
- package/dist/native-copy.js +0 -400
|
@@ -15,7 +15,7 @@ export interface paths {
|
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* Read the Profiles of the people who use a Project's Clients
|
|
18
|
-
* @description Granted by a `project_users` authorization detail with `read`, held by a Service. Its empty `project_ids`, `client_ids` and `fields` mean all, and the `client_id` and `fields` query parameters can only narrow them. Every field is present in each item; one is null when the person did not disclose it through their consent (`profile` discloses the name and avatar, `email` the email, `phone` the phone, an `identity` or `address` read Grant the identities or addresses) or when the Grant and the request leave it out. Cursor authority is pinned to one exact Grant, Project and filter.
|
|
18
|
+
* @description Granted by a `project_users` authorization detail with `read`, held by a Service. Its empty `project_ids`, `client_ids` and `fields` mean all, and the `client_id` and `fields` query parameters can only narrow them. Every field is present in each item; one is null when the person did not disclose it through their consent (`profile` discloses the name and avatar, `email` the email, `phone` the phone, an `identity` or `address` read Grant the identities or addresses) or when the Grant and the request leave it out. Cursor authority is pinned to one exact Grant, Project and filter. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
19
19
|
*/
|
|
20
20
|
get: operations["listProjectProfiles"];
|
|
21
21
|
put?: never;
|
|
@@ -52,7 +52,7 @@ export interface paths {
|
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
54
|
* List the public Permission Catalog
|
|
55
|
-
* @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, Organization or Grant, and is the only resource in this API that requires no authorization.
|
|
55
|
+
* @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, Organization or Grant, and is the only resource in this API that requires no authorization. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
56
56
|
*/
|
|
57
57
|
get: operations["getPermissionCatalog"];
|
|
58
58
|
put?: never;
|
|
@@ -92,7 +92,7 @@ export interface paths {
|
|
|
92
92
|
};
|
|
93
93
|
/**
|
|
94
94
|
* List a Profile's identities
|
|
95
|
-
* @description Granted by an `identity` authorization detail with `read` whose subject is this Profile. A token whose Grant names another subject answers `403`.
|
|
95
|
+
* @description Granted by an `identity` authorization detail with `read` whose subject is this Profile. A token whose Grant names another subject answers `403`. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
96
96
|
*/
|
|
97
97
|
get: operations["listProfileIdentities"];
|
|
98
98
|
put?: never;
|
|
@@ -115,7 +115,7 @@ export interface paths {
|
|
|
115
115
|
};
|
|
116
116
|
/**
|
|
117
117
|
* List a Profile's addresses
|
|
118
|
-
* @description Granted by an `address` authorization detail with `read` whose subject is this Profile.
|
|
118
|
+
* @description Granted by an `address` authorization detail with `read` whose subject is this Profile. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
119
119
|
*/
|
|
120
120
|
get: operations["listProfileAddresses"];
|
|
121
121
|
put?: never;
|
|
@@ -170,7 +170,7 @@ export interface paths {
|
|
|
170
170
|
};
|
|
171
171
|
/**
|
|
172
172
|
* List the Organizations a Profile belongs to
|
|
173
|
-
* @description Granted by an `organization` authorization detail with `list` whose subject is this Profile. It names each Organization and grants no access to its data: ask for an Organization subject to read it.
|
|
173
|
+
* @description Granted by an `organization` authorization detail with `list` whose subject is this Profile. It names each Organization and grants no access to its data: ask for an Organization subject to read it. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
174
174
|
*/
|
|
175
175
|
get: operations["listProfileOrganizations"];
|
|
176
176
|
put?: never;
|
|
@@ -193,7 +193,7 @@ export interface paths {
|
|
|
193
193
|
};
|
|
194
194
|
/**
|
|
195
195
|
* List an Organization's legal identities
|
|
196
|
-
* @description Granted by an `identity` authorization detail with `read` whose subject is this Organization.
|
|
196
|
+
* @description Granted by an `identity` authorization detail with `read` whose subject is this Organization. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
197
197
|
*/
|
|
198
198
|
get: operations["listOrganizationIdentities"];
|
|
199
199
|
put?: never;
|
|
@@ -216,7 +216,7 @@ export interface paths {
|
|
|
216
216
|
};
|
|
217
217
|
/**
|
|
218
218
|
* List an Organization's addresses
|
|
219
|
-
* @description Granted by an `address` authorization detail with `read` whose subject is this Organization.
|
|
219
|
+
* @description Granted by an `address` authorization detail with `read` whose subject is this Organization. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
220
220
|
*/
|
|
221
221
|
get: operations["listOrganizationAddresses"];
|
|
222
222
|
put?: never;
|
|
@@ -268,7 +268,7 @@ export interface paths {
|
|
|
268
268
|
};
|
|
269
269
|
/**
|
|
270
270
|
* List personal bank accounts and balances
|
|
271
|
-
* @description Paginated by cursor, in publication order. `?
|
|
271
|
+
* @description Paginated by cursor, in publication order. `?accountKey=` switches from walking the collection to addressing one account by the identifier its holder chose: an exact match, not a search, and `after`/`first` are ignored alongside it. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
272
272
|
*/
|
|
273
273
|
get: operations["listAccounts"];
|
|
274
274
|
put?: never;
|
|
@@ -290,7 +290,7 @@ export interface paths {
|
|
|
290
290
|
put?: never;
|
|
291
291
|
/**
|
|
292
292
|
* Create an intent under the exact OAuth Grant
|
|
293
|
-
* @description The same creation has two representations, and the content type picks between them. An `application/json` body is an Intent born waiting for an Approval. An `application/jwt` body is one Signed Instruction, sent as a compact JWS whose verified payload is `SignedTransferIntentClaims`, `SignedAccountOpeningIntentClaims` or `SignedAccountClosureIntentClaims`, and every value the operation uses comes from those claims and none from the envelope carrying them. A signed Intent is born approved when the signing client's Grant holds the family's `approve` action (`bank_transfer` or `bank_account`); otherwise it waits, like a proposal, for the person on the hosted screen or for `POST /intents/{intent_id}/approve` by a Grant that holds it. Opening and closing an account fail synchronously with `403
|
|
293
|
+
* @description The same creation has two representations, and the content type picks between them. An `application/json` body is an Intent born waiting for an Approval. An `application/jwt` body is one Signed Instruction, sent as a compact JWS whose verified payload is `SignedTransferIntentClaims`, `SignedAccountOpeningIntentClaims` or `SignedAccountClosureIntentClaims`, and every value the operation uses comes from those claims and none from the envelope carrying them. A signed Intent is born approved when the signing client's Grant holds the family's `approve` action (`bank_transfer` or `bank_account`); otherwise it waits, like a proposal, for the person on the hosted screen or for `POST /intents/{intent_id}/approve` by a Grant that holds it. Opening and closing an account fail synchronously with `403 account_key_out_of_grant` when the account_key is outside the Grant's `accounts` patterns and with `409 account_key_taken` when the account_key names an account of the subject (always for a closed one; otherwise unless `upsert`). The new account's number arrives in the `account_opening.succeeded` event as `account: { id, accountKey, number, name }`.
|
|
294
294
|
*/
|
|
295
295
|
post: operations["createIntent"];
|
|
296
296
|
delete?: never;
|
|
@@ -308,7 +308,7 @@ export interface paths {
|
|
|
308
308
|
};
|
|
309
309
|
/**
|
|
310
310
|
* Replay every fact the exact Grant covers across the Organization
|
|
311
|
-
* @description One subscription for the whole Organization instead of one per account. Carries the same Intent facts as `/intents/{intent_id}/events` and the same account facts as `/accounts/{bank_account_id}/events`, re-evaluated as the Grant changes, so a Project never opens one subscription per account it may come to hold.
|
|
311
|
+
* @description One subscription for the whole Organization instead of one per account. Carries the same Intent facts as `/intents/{intent_id}/events` and the same account facts as `/accounts/{bank_account_id}/events`, re-evaluated as the Grant changes, so a Project never opens one subscription per account it may come to hold. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
312
312
|
*/
|
|
313
313
|
get: operations["readOrganizationEvents"];
|
|
314
314
|
put?: never;
|
|
@@ -326,7 +326,10 @@ export interface paths {
|
|
|
326
326
|
path?: never;
|
|
327
327
|
cookie?: never;
|
|
328
328
|
};
|
|
329
|
-
/**
|
|
329
|
+
/**
|
|
330
|
+
* Replay bank facts with account transaction read permission
|
|
331
|
+
* @description Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
332
|
+
*/
|
|
330
333
|
get: operations["readAccountEvents"];
|
|
331
334
|
put?: never;
|
|
332
335
|
post?: never;
|
|
@@ -345,7 +348,7 @@ export interface paths {
|
|
|
345
348
|
};
|
|
346
349
|
/**
|
|
347
350
|
* List one account's transactions
|
|
348
|
-
* @description Answers the transactions the account's statement presentation reads, so an integrator sees exactly what a person would see, one page at a time in the same shape as `GET /accounts`: feed `
|
|
351
|
+
* @description Answers the transactions the account's statement presentation reads, so an integrator sees exactly what a person would see, one page at a time in the same shape as `GET /accounts`: feed `pageInfo.endCursor` back as `?after=` while `pageInfo.hasNextPage`. Granted by a `bank_transaction` authorization detail with `read` whose `accounts` reach this account. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed. Backward and offset arguments are forwarded to the banking upstream, whose support remains deferred; only forward traversal is currently verified.
|
|
349
352
|
*/
|
|
350
353
|
get: operations["listAccountTransactions"];
|
|
351
354
|
put?: never;
|
|
@@ -363,7 +366,10 @@ export interface paths {
|
|
|
363
366
|
path?: never;
|
|
364
367
|
cookie?: never;
|
|
365
368
|
};
|
|
366
|
-
/**
|
|
369
|
+
/**
|
|
370
|
+
* Replay durable facts for one authorized Intent
|
|
371
|
+
* @description Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
372
|
+
*/
|
|
367
373
|
get: operations["readIntentEvents"];
|
|
368
374
|
put?: never;
|
|
369
375
|
post?: never;
|
|
@@ -515,10 +521,13 @@ export interface components {
|
|
|
515
521
|
identities: components["schemas"]["ProfileIdentity"][] | null;
|
|
516
522
|
addresses: components["schemas"]["Address"][] | null;
|
|
517
523
|
};
|
|
524
|
+
/** @description A standard connection. Edge cursors remain present on nonempty terminal pages. Reads are live; offset positions can shift under concurrent changes. */
|
|
518
525
|
ProjectProfilePage: {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
526
|
+
edges: {
|
|
527
|
+
cursor: string;
|
|
528
|
+
node: components["schemas"]["ProjectProfile"];
|
|
529
|
+
}[];
|
|
530
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
522
531
|
};
|
|
523
532
|
ApiError: {
|
|
524
533
|
error: string;
|
|
@@ -617,10 +626,13 @@ export interface components {
|
|
|
617
626
|
family_names: string | null;
|
|
618
627
|
business_activity_code: string | null;
|
|
619
628
|
};
|
|
629
|
+
/** @description A standard connection. Edge cursors remain present on nonempty terminal pages. Reads are live; offset positions can shift under concurrent changes. */
|
|
620
630
|
ProfileIdentityPage: {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
631
|
+
edges: {
|
|
632
|
+
cursor: string;
|
|
633
|
+
node: components["schemas"]["ProfileIdentity"];
|
|
634
|
+
}[];
|
|
635
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
624
636
|
};
|
|
625
637
|
OrganizationIdentity: {
|
|
626
638
|
/** Format: uuid */
|
|
@@ -631,10 +643,13 @@ export interface components {
|
|
|
631
643
|
document_kind: "rut";
|
|
632
644
|
document_value: string;
|
|
633
645
|
};
|
|
646
|
+
/** @description A standard connection. Edge cursors remain present on nonempty terminal pages. Reads are live; offset positions can shift under concurrent changes. */
|
|
634
647
|
OrganizationIdentityPage: {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
648
|
+
edges: {
|
|
649
|
+
cursor: string;
|
|
650
|
+
node: components["schemas"]["OrganizationIdentity"];
|
|
651
|
+
}[];
|
|
652
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
638
653
|
};
|
|
639
654
|
Address: {
|
|
640
655
|
/** Format: uuid */
|
|
@@ -650,10 +665,13 @@ export interface components {
|
|
|
650
665
|
/** Format: int32 */
|
|
651
666
|
priority: number;
|
|
652
667
|
};
|
|
668
|
+
/** @description A standard connection. Edge cursors remain present on nonempty terminal pages. Reads are live; offset positions can shift under concurrent changes. */
|
|
653
669
|
AddressPage: {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
670
|
+
edges: {
|
|
671
|
+
cursor: string;
|
|
672
|
+
node: components["schemas"]["Address"];
|
|
673
|
+
}[];
|
|
674
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
657
675
|
};
|
|
658
676
|
AddressCreate: {
|
|
659
677
|
country: string;
|
|
@@ -683,10 +701,13 @@ export interface components {
|
|
|
683
701
|
/** Format: uuid */
|
|
684
702
|
id: string;
|
|
685
703
|
};
|
|
704
|
+
/** @description A standard connection. Edge cursors remain present on nonempty terminal pages. Reads are live; offset positions can shift under concurrent changes. */
|
|
686
705
|
PermissionCatalogPage: {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
706
|
+
edges: {
|
|
707
|
+
cursor: string;
|
|
708
|
+
node: components["schemas"]["PermissionCatalogEntry"];
|
|
709
|
+
}[];
|
|
710
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
690
711
|
};
|
|
691
712
|
PermissionCatalogEntry: {
|
|
692
713
|
/** Format: uuid */
|
|
@@ -712,21 +733,25 @@ export interface components {
|
|
|
712
733
|
BankAccount: {
|
|
713
734
|
/** Format: uuid */
|
|
714
735
|
id: string;
|
|
715
|
-
/** @description The Account
|
|
716
|
-
|
|
717
|
-
/** @description The account's own name, the one `account_opening.succeeded` announces; the product name
|
|
718
|
-
name: string;
|
|
736
|
+
/** @description The Account Key its holder chose, or null for an account opened before account_keys existed. Exact-match input for `GET /accounts?accountKey=`. */
|
|
737
|
+
accountKey: string | null;
|
|
738
|
+
/** @description The account's own name, the one `account_opening.succeeded` announces; the product name for an account nobody named; null for an account nobody named that the balance projection does not know yet. Show the Account Key or a placeholder of your own for null, never made-up text. */
|
|
739
|
+
name: string | null;
|
|
719
740
|
number: string;
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
balance
|
|
723
|
-
|
|
724
|
-
|
|
741
|
+
/** @description Null while the balance projection does not know the account yet. */
|
|
742
|
+
type: string | null;
|
|
743
|
+
/** @description Null while the balance projection does not know the account yet. */
|
|
744
|
+
currency: string | null;
|
|
745
|
+
/** @description The available balance as a decimal string, never a number. Null while the balance projection does not know the account yet, for example right after it is opened; a listing never fails for it and never makes up a zero. */
|
|
746
|
+
balance: string | null;
|
|
747
|
+
};
|
|
748
|
+
/** @description A standard connection. Edge cursors remain present on nonempty terminal pages. Reads are live; offset positions can shift under concurrent changes. */
|
|
725
749
|
AccountPage: {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
750
|
+
edges: {
|
|
751
|
+
cursor: string;
|
|
752
|
+
node: components["schemas"]["BankAccount"];
|
|
753
|
+
}[];
|
|
754
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
730
755
|
};
|
|
731
756
|
/** @description One account transaction, newest first. Keys are camelCase because this schema describes the wire shape the server actually sends here, which differs from the snake_case used by the rest of this contract -- the route answers with its existing internal projection rather than a bespoke public representation. */
|
|
732
757
|
BankTransaction: {
|
|
@@ -746,21 +771,23 @@ export interface components {
|
|
|
746
771
|
reversed: boolean;
|
|
747
772
|
note: string | null;
|
|
748
773
|
};
|
|
749
|
-
/** @description A
|
|
774
|
+
/** @description A standard connection. Edge cursors remain present on nonempty terminal pages. Reads are live; offset positions can shift under concurrent changes. */
|
|
750
775
|
BankTransactionPage: {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
776
|
+
edges: {
|
|
777
|
+
cursor: string;
|
|
778
|
+
node: components["schemas"]["BankTransaction"];
|
|
779
|
+
}[];
|
|
780
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
754
781
|
};
|
|
755
782
|
/** @description The monetary scalar, defined once. It travels as a string because CLP has no minor unit and an exact peso amount does not survive a JSON number. Every envelope carries it as `value`: what a request or a Signed Instruction asks for, what an Intent was asked for, and what a transfer actually moved (`settled.value`). */
|
|
756
783
|
MonetaryValue: string;
|
|
757
|
-
/** @description The Account
|
|
758
|
-
|
|
759
|
-
/** @description One Andco account of the Grant's subject, named by its Account
|
|
760
|
-
|
|
784
|
+
/** @description The Account Key its holder chose for one of its own accounts: unique per holder and immutable. It is resolved on every operation rather than once, so it travels in the body and never in a path segment. */
|
|
785
|
+
AccountKey: string;
|
|
786
|
+
/** @description One Andco account of the Grant's subject, named by its Account Key. */
|
|
787
|
+
IntentAccountKey: {
|
|
761
788
|
/** @constant */
|
|
762
|
-
type: "
|
|
763
|
-
|
|
789
|
+
type: "account_key";
|
|
790
|
+
accountKey: components["schemas"]["AccountKey"];
|
|
764
791
|
};
|
|
765
792
|
/** @description One Andco account, named by its identifier. */
|
|
766
793
|
IntentAccountId: {
|
|
@@ -780,15 +807,15 @@ export interface components {
|
|
|
780
807
|
holder_id: string;
|
|
781
808
|
holder_name: string;
|
|
782
809
|
};
|
|
783
|
-
/** @description One Andco account of the Grant's subject, in the account matcher vocabulary: by Account
|
|
784
|
-
IntentAccount: components["schemas"]["
|
|
785
|
-
/** @description Where a signed transfer's money lands, in the `bank_transfer` matcher vocabulary: an Andco account by
|
|
786
|
-
TransferDestination: components["schemas"]["
|
|
810
|
+
/** @description One Andco account of the Grant's subject, in the account matcher vocabulary: by Account Key (`{ type: "account_key", accountKey }`) or by identifier (`{ type: "account", id }`). It is where a transfer's money leaves from, where a deposit lands and the account a closure closes. An AccountKey is answered back as an AccountKey: it resolves to an account at execution. */
|
|
811
|
+
IntentAccount: components["schemas"]["IntentAccountKey"] | components["schemas"]["IntentAccountId"];
|
|
812
|
+
/** @description Where a signed transfer's money lands, in the `bank_transfer` matcher vocabulary: an Andco account by AccountKey or identifier, or an account at another Chilean bank. */
|
|
813
|
+
TransferDestination: components["schemas"]["IntentAccountKey"] | components["schemas"]["IntentAccountId"] | components["schemas"]["IntentAccountExternal"];
|
|
787
814
|
/** @description Where a proposed transfer's money lands, in the request and in the answered Intent alike. It is always locked on the confirmation screen: `editable` only admits `false`, because redirecting a transfer at confirmation is not implemented yet, and `editable: true` fails at creation with `invalid_request`. Defaults to false in a request; an answered Intent always states it. */
|
|
788
815
|
TransferDestinationProposal: {
|
|
789
816
|
/** @constant */
|
|
790
|
-
type: "
|
|
791
|
-
|
|
817
|
+
type: "account_key";
|
|
818
|
+
accountKey: components["schemas"]["AccountKey"];
|
|
792
819
|
/** @constant */
|
|
793
820
|
editable?: false;
|
|
794
821
|
} | {
|
|
@@ -876,15 +903,14 @@ export interface components {
|
|
|
876
903
|
version: 1;
|
|
877
904
|
/** Format: date-time */
|
|
878
905
|
occurred_at: string;
|
|
879
|
-
/** @description Opaque checkpoint bound to the authorized subject. */
|
|
880
|
-
cursor: string;
|
|
881
906
|
};
|
|
907
|
+
/** @description A standard connection. Edge cursors remain present on nonempty terminal pages. Reads are live; offset positions can shift under concurrent changes. */
|
|
882
908
|
FinancialEventPage: {
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
909
|
+
edges: {
|
|
910
|
+
cursor: string;
|
|
911
|
+
node: components["schemas"]["FinancialEvent"];
|
|
912
|
+
}[];
|
|
913
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
888
914
|
};
|
|
889
915
|
/** @description The bank reference a request asks for. `editable: true` lets the person who confirms change it; each bank operation freezes its own final note at confirmation. */
|
|
890
916
|
IntentNote: {
|
|
@@ -946,11 +972,15 @@ export interface components {
|
|
|
946
972
|
outcome: "credited" | "reversed";
|
|
947
973
|
/** @enum {string} */
|
|
948
974
|
receipt_time_source: "bank_timestamp" | "unknown";
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
975
|
+
/** @description Name of the account holder that sent the money, exactly as the bank reported it. */
|
|
976
|
+
sender_name: string | null;
|
|
977
|
+
/** @description National id (RUT) of the sender, as the bank reported it. */
|
|
978
|
+
sender_national_id: string | null;
|
|
979
|
+
/** @description Display name of the sender's bank. */
|
|
980
|
+
sender_bank_name: string | null;
|
|
952
981
|
/** @enum {string|null} */
|
|
953
|
-
|
|
982
|
+
sender_account_type: "checking" | "debit" | "savings" | null;
|
|
983
|
+
sender_account_number: string | null;
|
|
954
984
|
/** @constant */
|
|
955
985
|
currency: "CLP";
|
|
956
986
|
amount: components["schemas"]["MonetaryValue"];
|
|
@@ -1052,7 +1082,7 @@ export interface components {
|
|
|
1052
1082
|
status: components["schemas"]["IntentStatus"];
|
|
1053
1083
|
/** @description Whether a Signed Instruction created this Intent rather than a plain request. */
|
|
1054
1084
|
signed: boolean;
|
|
1055
|
-
/** @description Null while the person has yet to pick where the money leaves from. An
|
|
1085
|
+
/** @description Null while the person has yet to pick where the money leaves from. An AccountKey is answered back as an AccountKey, because it stays unresolved until execution. */
|
|
1056
1086
|
source: null | components["schemas"]["IntentAccount"];
|
|
1057
1087
|
destination: components["schemas"]["TransferDestinationProposal"];
|
|
1058
1088
|
amount: components["schemas"]["TransferAmount"];
|
|
@@ -1082,11 +1112,11 @@ export interface components {
|
|
|
1082
1112
|
AccountOpeningIntentCreate: {
|
|
1083
1113
|
/** @constant */
|
|
1084
1114
|
type: "account_opening";
|
|
1085
|
-
|
|
1115
|
+
accountKey: components["schemas"]["AccountKey"];
|
|
1086
1116
|
/** @description The display label the account opens with. Mutable afterwards, and read by no permission. */
|
|
1087
1117
|
name?: string;
|
|
1088
1118
|
/**
|
|
1089
|
-
* @description Whether naming an
|
|
1119
|
+
* @description Whether naming an AccountKey that already exists answers with that account instead of failing. It defaults to false, so one name never quietly becomes two accounts.
|
|
1090
1120
|
* @default false
|
|
1091
1121
|
*/
|
|
1092
1122
|
upsert: boolean;
|
|
@@ -1098,7 +1128,7 @@ export interface components {
|
|
|
1098
1128
|
[key: string]: unknown;
|
|
1099
1129
|
};
|
|
1100
1130
|
} & (unknown | unknown);
|
|
1101
|
-
/** @description The verified claims of a Signed Instruction that opens an account. `upsert` lives here and nowhere else: it decides whether naming an
|
|
1131
|
+
/** @description The verified claims of a Signed Instruction that opens an account. `upsert` lives here and nowhere else: it decides whether naming an AccountKey that already exists is a refusal or a request for the account already carrying it, which is a difference in what the instruction *orders*. Carried as a transport option, anybody holding the signed instruction could flip it, and what executed would not be what was signed. */
|
|
1102
1132
|
SignedAccountOpeningIntentClaims: {
|
|
1103
1133
|
iss: string;
|
|
1104
1134
|
/** @constant */
|
|
@@ -1110,7 +1140,7 @@ export interface components {
|
|
|
1110
1140
|
nbf?: number;
|
|
1111
1141
|
/** @constant */
|
|
1112
1142
|
type: "account_opening";
|
|
1113
|
-
|
|
1143
|
+
accountKey: components["schemas"]["AccountKey"];
|
|
1114
1144
|
name?: string;
|
|
1115
1145
|
/** @default false */
|
|
1116
1146
|
upsert: boolean;
|
|
@@ -1133,7 +1163,7 @@ export interface components {
|
|
|
1133
1163
|
/** @description Whether a Signed Instruction created this Intent rather than a plain request. */
|
|
1134
1164
|
signed: boolean;
|
|
1135
1165
|
account: {
|
|
1136
|
-
|
|
1166
|
+
accountKey: components["schemas"]["AccountKey"];
|
|
1137
1167
|
name: string;
|
|
1138
1168
|
upsert: boolean;
|
|
1139
1169
|
/** Format: uuid */
|
|
@@ -1250,10 +1280,19 @@ export interface components {
|
|
|
1250
1280
|
id: string;
|
|
1251
1281
|
name: string;
|
|
1252
1282
|
};
|
|
1283
|
+
/** @description A standard connection. Edge cursors remain present on nonempty terminal pages. Reads are live; offset positions can shift under concurrent changes. */
|
|
1253
1284
|
OrganizationPage: {
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1285
|
+
edges: {
|
|
1286
|
+
cursor: string;
|
|
1287
|
+
node: components["schemas"]["Organization"];
|
|
1288
|
+
}[];
|
|
1289
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
1290
|
+
};
|
|
1291
|
+
PageInfo: {
|
|
1292
|
+
startCursor: string | null;
|
|
1293
|
+
endCursor: string | null;
|
|
1294
|
+
hasPreviousPage: boolean;
|
|
1295
|
+
hasNextPage: boolean;
|
|
1257
1296
|
};
|
|
1258
1297
|
};
|
|
1259
1298
|
responses: {
|
|
@@ -1347,8 +1386,18 @@ export interface components {
|
|
|
1347
1386
|
/** @description The Organization the Grant's subject names. */
|
|
1348
1387
|
OrganizationId: string;
|
|
1349
1388
|
AddressId: string;
|
|
1389
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1350
1390
|
After: string;
|
|
1391
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
1351
1392
|
Limit: number;
|
|
1393
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1394
|
+
Before: string;
|
|
1395
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1396
|
+
First: number;
|
|
1397
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1398
|
+
Last: number;
|
|
1399
|
+
/** @description Nonnegative position in live ordered results. */
|
|
1400
|
+
Offset: number;
|
|
1352
1401
|
};
|
|
1353
1402
|
requestBodies: never;
|
|
1354
1403
|
headers: never;
|
|
@@ -1363,8 +1412,18 @@ export interface operations {
|
|
|
1363
1412
|
client_id?: string;
|
|
1364
1413
|
/** @description A comma-separated subset of the fields the Grant allows, for example `name,email`. */
|
|
1365
1414
|
fields?: string;
|
|
1366
|
-
|
|
1367
|
-
|
|
1415
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1416
|
+
after?: components["parameters"]["After"];
|
|
1417
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1418
|
+
first?: components["parameters"]["First"];
|
|
1419
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1420
|
+
before?: components["parameters"]["Before"];
|
|
1421
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1422
|
+
last?: components["parameters"]["Last"];
|
|
1423
|
+
/** @description Nonnegative position in live ordered results. */
|
|
1424
|
+
offset?: components["parameters"]["Offset"];
|
|
1425
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
1426
|
+
limit?: components["parameters"]["Limit"];
|
|
1368
1427
|
};
|
|
1369
1428
|
header?: never;
|
|
1370
1429
|
path: {
|
|
@@ -1417,8 +1476,18 @@ export interface operations {
|
|
|
1417
1476
|
getPermissionCatalog: {
|
|
1418
1477
|
parameters: {
|
|
1419
1478
|
query?: {
|
|
1479
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1480
|
+
after?: components["parameters"]["After"];
|
|
1481
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1482
|
+
first?: number;
|
|
1483
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1484
|
+
before?: components["parameters"]["Before"];
|
|
1485
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1486
|
+
last?: number;
|
|
1487
|
+
/** @description Nonnegative position in live ordered results. */
|
|
1488
|
+
offset?: components["parameters"]["Offset"];
|
|
1489
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
1420
1490
|
limit?: number;
|
|
1421
|
-
cursor?: string;
|
|
1422
1491
|
};
|
|
1423
1492
|
header?: never;
|
|
1424
1493
|
path?: never;
|
|
@@ -1467,7 +1536,17 @@ export interface operations {
|
|
|
1467
1536
|
listProfileIdentities: {
|
|
1468
1537
|
parameters: {
|
|
1469
1538
|
query?: {
|
|
1539
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1470
1540
|
after?: components["parameters"]["After"];
|
|
1541
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1542
|
+
first?: components["parameters"]["First"];
|
|
1543
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1544
|
+
before?: components["parameters"]["Before"];
|
|
1545
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1546
|
+
last?: components["parameters"]["Last"];
|
|
1547
|
+
/** @description Nonnegative position in live ordered results. */
|
|
1548
|
+
offset?: components["parameters"]["Offset"];
|
|
1549
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
1471
1550
|
limit?: components["parameters"]["Limit"];
|
|
1472
1551
|
};
|
|
1473
1552
|
header?: never;
|
|
@@ -1498,7 +1577,17 @@ export interface operations {
|
|
|
1498
1577
|
listProfileAddresses: {
|
|
1499
1578
|
parameters: {
|
|
1500
1579
|
query?: {
|
|
1580
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1501
1581
|
after?: components["parameters"]["After"];
|
|
1582
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1583
|
+
first?: components["parameters"]["First"];
|
|
1584
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1585
|
+
before?: components["parameters"]["Before"];
|
|
1586
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1587
|
+
last?: components["parameters"]["Last"];
|
|
1588
|
+
/** @description Nonnegative position in live ordered results. */
|
|
1589
|
+
offset?: components["parameters"]["Offset"];
|
|
1590
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
1502
1591
|
limit?: components["parameters"]["Limit"];
|
|
1503
1592
|
};
|
|
1504
1593
|
header?: never;
|
|
@@ -1621,7 +1710,20 @@ export interface operations {
|
|
|
1621
1710
|
};
|
|
1622
1711
|
listProfileOrganizations: {
|
|
1623
1712
|
parameters: {
|
|
1624
|
-
query?:
|
|
1713
|
+
query?: {
|
|
1714
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1715
|
+
after?: components["parameters"]["After"];
|
|
1716
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1717
|
+
first?: components["parameters"]["First"];
|
|
1718
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1719
|
+
before?: components["parameters"]["Before"];
|
|
1720
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1721
|
+
last?: components["parameters"]["Last"];
|
|
1722
|
+
/** @description Nonnegative position in live ordered results. */
|
|
1723
|
+
offset?: components["parameters"]["Offset"];
|
|
1724
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
1725
|
+
limit?: components["parameters"]["Limit"];
|
|
1726
|
+
};
|
|
1625
1727
|
header?: never;
|
|
1626
1728
|
path: {
|
|
1627
1729
|
/** @description The Profile the Grant's subject names. */
|
|
@@ -1649,7 +1751,20 @@ export interface operations {
|
|
|
1649
1751
|
};
|
|
1650
1752
|
listOrganizationIdentities: {
|
|
1651
1753
|
parameters: {
|
|
1652
|
-
query?:
|
|
1754
|
+
query?: {
|
|
1755
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1756
|
+
after?: components["parameters"]["After"];
|
|
1757
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1758
|
+
first?: components["parameters"]["First"];
|
|
1759
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1760
|
+
before?: components["parameters"]["Before"];
|
|
1761
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1762
|
+
last?: components["parameters"]["Last"];
|
|
1763
|
+
/** @description Nonnegative position in live ordered results. */
|
|
1764
|
+
offset?: components["parameters"]["Offset"];
|
|
1765
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
1766
|
+
limit?: components["parameters"]["Limit"];
|
|
1767
|
+
};
|
|
1653
1768
|
header?: never;
|
|
1654
1769
|
path: {
|
|
1655
1770
|
/** @description The Organization the Grant's subject names. */
|
|
@@ -1678,7 +1793,17 @@ export interface operations {
|
|
|
1678
1793
|
listOrganizationAddresses: {
|
|
1679
1794
|
parameters: {
|
|
1680
1795
|
query?: {
|
|
1796
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1681
1797
|
after?: components["parameters"]["After"];
|
|
1798
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1799
|
+
first?: components["parameters"]["First"];
|
|
1800
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1801
|
+
before?: components["parameters"]["Before"];
|
|
1802
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1803
|
+
last?: components["parameters"]["Last"];
|
|
1804
|
+
/** @description Nonnegative position in live ordered results. */
|
|
1805
|
+
offset?: components["parameters"]["Offset"];
|
|
1806
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
1682
1807
|
limit?: components["parameters"]["Limit"];
|
|
1683
1808
|
};
|
|
1684
1809
|
header?: never;
|
|
@@ -1802,11 +1927,20 @@ export interface operations {
|
|
|
1802
1927
|
listAccounts: {
|
|
1803
1928
|
parameters: {
|
|
1804
1929
|
query?: {
|
|
1805
|
-
/** @description
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1930
|
+
/** @description Exact-match lookup by Account Key. Not compatible with `after`/`limit` paging. */
|
|
1931
|
+
accountKey?: string;
|
|
1932
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1933
|
+
after?: components["parameters"]["After"];
|
|
1934
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1935
|
+
first?: components["parameters"]["First"];
|
|
1936
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
1937
|
+
before?: components["parameters"]["Before"];
|
|
1938
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
1939
|
+
last?: components["parameters"]["Last"];
|
|
1940
|
+
/** @description Nonnegative position in live ordered results. */
|
|
1941
|
+
offset?: components["parameters"]["Offset"];
|
|
1942
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
1943
|
+
limit?: components["parameters"]["Limit"];
|
|
1810
1944
|
};
|
|
1811
1945
|
header?: never;
|
|
1812
1946
|
path?: never;
|
|
@@ -1868,8 +2002,18 @@ export interface operations {
|
|
|
1868
2002
|
readOrganizationEvents: {
|
|
1869
2003
|
parameters: {
|
|
1870
2004
|
query?: {
|
|
1871
|
-
|
|
1872
|
-
|
|
2005
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
2006
|
+
after?: components["parameters"]["After"];
|
|
2007
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
2008
|
+
first?: components["parameters"]["First"];
|
|
2009
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
2010
|
+
before?: components["parameters"]["Before"];
|
|
2011
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
2012
|
+
last?: components["parameters"]["Last"];
|
|
2013
|
+
/** @description Nonnegative position in live ordered results. */
|
|
2014
|
+
offset?: components["parameters"]["Offset"];
|
|
2015
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
2016
|
+
limit?: components["parameters"]["Limit"];
|
|
1873
2017
|
};
|
|
1874
2018
|
header?: never;
|
|
1875
2019
|
path?: never;
|
|
@@ -1894,8 +2038,18 @@ export interface operations {
|
|
|
1894
2038
|
readAccountEvents: {
|
|
1895
2039
|
parameters: {
|
|
1896
2040
|
query?: {
|
|
1897
|
-
|
|
1898
|
-
|
|
2041
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
2042
|
+
after?: components["parameters"]["After"];
|
|
2043
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
2044
|
+
first?: components["parameters"]["First"];
|
|
2045
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
2046
|
+
before?: components["parameters"]["Before"];
|
|
2047
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
2048
|
+
last?: components["parameters"]["Last"];
|
|
2049
|
+
/** @description Nonnegative position in live ordered results. */
|
|
2050
|
+
offset?: components["parameters"]["Offset"];
|
|
2051
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
2052
|
+
limit?: components["parameters"]["Limit"];
|
|
1899
2053
|
};
|
|
1900
2054
|
header?: never;
|
|
1901
2055
|
path: {
|
|
@@ -1923,9 +2077,18 @@ export interface operations {
|
|
|
1923
2077
|
listAccountTransactions: {
|
|
1924
2078
|
parameters: {
|
|
1925
2079
|
query?: {
|
|
1926
|
-
/** @description Opaque cursor
|
|
1927
|
-
after?:
|
|
1928
|
-
|
|
2080
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
2081
|
+
after?: components["parameters"]["After"];
|
|
2082
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
2083
|
+
first?: components["parameters"]["First"];
|
|
2084
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
2085
|
+
before?: components["parameters"]["Before"];
|
|
2086
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
2087
|
+
last?: components["parameters"]["Last"];
|
|
2088
|
+
/** @description Nonnegative position in live ordered results. */
|
|
2089
|
+
offset?: components["parameters"]["Offset"];
|
|
2090
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
2091
|
+
limit?: components["parameters"]["Limit"];
|
|
1929
2092
|
};
|
|
1930
2093
|
header?: never;
|
|
1931
2094
|
path: {
|
|
@@ -1954,8 +2117,18 @@ export interface operations {
|
|
|
1954
2117
|
readIntentEvents: {
|
|
1955
2118
|
parameters: {
|
|
1956
2119
|
query?: {
|
|
1957
|
-
|
|
1958
|
-
|
|
2120
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
2121
|
+
after?: components["parameters"]["After"];
|
|
2122
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
2123
|
+
first?: components["parameters"]["First"];
|
|
2124
|
+
/** @description Opaque cursor previously returned by this collection. */
|
|
2125
|
+
before?: components["parameters"]["Before"];
|
|
2126
|
+
/** @description Cursor page size; forward and backward argument families are exclusive. */
|
|
2127
|
+
last?: components["parameters"]["Last"];
|
|
2128
|
+
/** @description Nonnegative position in live ordered results. */
|
|
2129
|
+
offset?: components["parameters"]["Offset"];
|
|
2130
|
+
/** @description Offset page size; do not combine with cursor arguments. */
|
|
2131
|
+
limit?: components["parameters"]["Limit"];
|
|
1959
2132
|
};
|
|
1960
2133
|
header?: never;
|
|
1961
2134
|
path: {
|