@andco/protocol 0.0.13 → 0.0.15
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 +2 -2
- package/dist/api-errors.d.ts +9 -9
- package/dist/api-errors.js +9 -9
- package/dist/authorization-preparation.js +2 -2
- package/dist/authorization.d.ts +1 -1
- package/dist/authorization.js +1 -1
- package/dist/consent.d.ts +2 -2
- package/dist/consent.js +2 -2
- package/dist/constants.d.ts +15 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +17 -3
- package/dist/errors.d.ts +36 -9
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +49 -11
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/intent-input.d.ts +431 -872
- package/dist/intent-input.d.ts.map +1 -1
- package/dist/intent-input.js +142 -121
- package/dist/miniapp-icon.js +1 -1
- package/dist/miniapp-manifest.d.ts +1 -1
- package/dist/native-intent.d.ts +82 -68
- package/dist/native-intent.d.ts.map +1 -1
- package/dist/native-intent.js +134 -84
- package/dist/native.d.ts +1 -1
- package/dist/rar/account-matchers.d.ts +35 -30
- package/dist/rar/account-matchers.d.ts.map +1 -1
- package/dist/rar/account-matchers.js +27 -21
- package/dist/rar/bank.d.ts +81 -81
- package/dist/rar/bank.js +1 -1
- package/dist/rar/catalog.d.ts +48 -48
- package/dist/rar/catalog.js +6 -6
- package/dist/rar/detail.d.ts +1 -1
- package/dist/rar/detail.js +1 -1
- package/dist/rar/json-schemas.generated.d.ts +1 -1
- package/dist/rar/json-schemas.generated.d.ts.map +1 -1
- package/dist/rar/json-schemas.generated.js +25 -21
- package/dist/rar/subject-data.d.ts +1 -1
- package/dist/rar/subject-data.js +1 -1
- package/dist/rar/subject.d.ts +1 -1
- package/dist/rar/subject.js +1 -1
- package/dist/rest/accounts.d.ts +28 -28
- package/dist/rest/accounts.d.ts.map +1 -1
- package/dist/rest/accounts.js +22 -22
- package/dist/rest/api-error.d.ts +1 -1
- package/dist/rest/api-error.js +1 -1
- package/dist/rest/catalog.d.ts +3 -3
- package/dist/rest/catalog.js +2 -2
- package/dist/rest/common.d.ts +3 -3
- package/dist/rest/common.js +3 -3
- package/dist/rest/contract.d.ts +905 -528
- package/dist/rest/contract.d.ts.map +1 -1
- package/dist/rest/contract.js +17 -5
- package/dist/rest/events.d.ts +1 -1
- package/dist/rest/events.d.ts.map +1 -1
- package/dist/rest/events.js +2 -2
- package/dist/rest/identity.d.ts +22 -22
- package/dist/rest/identity.js +5 -5
- package/dist/rest/index.d.ts +1 -0
- package/dist/rest/index.d.ts.map +1 -1
- package/dist/rest/index.js +1 -0
- package/dist/rest/intents.d.ts +787 -716
- package/dist/rest/intents.d.ts.map +1 -1
- package/dist/rest/intents.js +62 -53
- package/dist/rest/signatures.d.ts +11 -5
- package/dist/rest/signatures.d.ts.map +1 -1
- package/dist/rest/signatures.js +10 -0
- package/dist/rest/subjects.d.ts +1 -1
- package/dist/rest/subjects.d.ts.map +1 -1
- package/dist/rest/subjects.js +3 -2
- package/dist/rest/transfers.d.ts +612 -0
- package/dist/rest/transfers.d.ts.map +1 -0
- package/dist/rest/transfers.js +115 -0
- package/dist/scopes.d.ts +1 -1
- package/dist/signing.d.ts +13 -2
- package/dist/signing.d.ts.map +1 -1
- package/dist/signing.js +13 -0
- package/dist/transfer.d.ts +363 -0
- package/dist/transfer.d.ts.map +1 -0
- package/dist/transfer.js +287 -0
- package/dist/transport/financial-events.d.ts +21 -17
- package/dist/transport/financial-events.d.ts.map +1 -1
- package/dist/transport/generated/oauth-api.d.ts +1017 -194
- package/dist/transport/generated/oauth-api.d.ts.map +1 -1
- package/dist/transport/intents.d.ts +28 -12
- package/dist/transport/intents.d.ts.map +1 -1
- package/dist/transport/intents.js +1 -1
- package/dist/transport/rest.d.ts +4 -4
- package/dist/transport/rest.d.ts.map +1 -1
- package/dist/transport/rest.js +33 -4
- package/dist/urls.d.ts +25 -2
- package/dist/urls.d.ts.map +1 -1
- package/dist/urls.js +47 -4
- package/dist/userinfo.d.ts +2 -2
- package/dist/userinfo.js +2 -2
- package/dist/webhooks.d.ts +19 -15
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +17 -15
- package/dist/window-features.d.ts +2 -2
- package/dist/window-features.js +2 -2
- package/package.json +2 -2
|
@@ -110,11 +110,11 @@ export interface paths {
|
|
|
110
110
|
put?: never;
|
|
111
111
|
/**
|
|
112
112
|
* Approve an Intent with a Grant holding the family's approve action
|
|
113
|
-
* @description Approval by a credential, without a person: the Grant behind the token must hold `approve` on the family that releases this Intent type (`bank_transfer` for a transfer) for the same subject, and within that detail's `transactions.maximum`. Above it the call answers `422 amount_out_of_grant` and the Intent stays pending for another approver. A transfer only a person can release answers `409 interaction_required` with `authorization_url` and `reason`, before any approval is recorded and before the bank is called: `bank_verification_required` for a transfer that leaves its holder's own accounts (to another bank or to another
|
|
113
|
+
* @description Approval by a credential, without a person: the Grant behind the token must hold `approve` on the family that releases this Intent type (`bank_transfer` for a transfer) for the same subject, and within that detail's `transactions.maximum`. Above it the call answers `422 amount_out_of_grant` and the Intent stays pending for another approver. A transfer only a person can release answers `409 interaction_required` with `authorization_url` and `reason`, before any approval is recorded and before the bank is called: `bank_verification_required` for a transfer that leaves its holder's own accounts (to another bank or to another AndCo customer), which the bank moves only after that person confirms it with their web AndPass and a code the bank sends to their phone, and also for a transfer created with `receiver: null` that nobody has completed yet; and `source_account_required` when the person still picks the source. Accepted is not moved: wait for `transfer.succeeded` or `transfer.failed`.
|
|
114
114
|
*
|
|
115
115
|
* Two kinds of Intent are released with nobody present. Opening an additional account by Account Key needs `bank_account` `approve`; the answer is the Intent, and the account number never comes back in it: it arrives in the `account_opening.succeeded` event. A transfer between two accounts of the same holder needs `bank_transfer` `approve`; the bank asks no fraud engine and no challenge because the money does not leave the holder, and the answer is the Intent `succeeded`, or `processing.confirmed` (which for this rail begins at release, while for a transfer that leaves its holder it begins when the bank accepts it) when the bank has not answered for good yet, in which case nothing else is needed from the caller: the server asks the bank again under the same key on a bounded schedule and the outcome arrives as `transfer.succeeded` or `transfer.failed`. "Same holder" is decided by the bank: two accounts of one Organization (or of one person's business) qualify, while an account of a person and an account of a Company they represent do not, and that transfer is an ordinary one that leaves its holder.
|
|
116
116
|
*
|
|
117
|
-
* Refusals of such a release: `409 interaction_required` with `intent_id`, `reason` and `interaction_url`, where `reason` is `bank_connection_pin_required`, `bank_connection_reconnect_required` or `bank_representative_replacement_required`; the bank asks no challenge, but the web session that acts for the holder needs its person back (or the Organization must connect another
|
|
117
|
+
* Refusals of such a release: `409 interaction_required` with `intent_id`, `reason` and `interaction_url`, where `reason` is `bank_connection_pin_required`, `bank_connection_reconnect_required` or `bank_representative_replacement_required`; the bank asks no challenge, but the web session that acts for the holder needs its person back (or the Organization must connect another account representative), nothing was opened, frozen or moved, the Intent is untouched and the same request succeeds once the person has acted at `interaction_url`. Also `409 bank_account_quota_exceeded` (with `used` and `quota`), `409 account_key_taken` (with `reason`), `409 intent_expired`, `409 invalid_intent_state` and `403 insufficient_authorization`. `422` with `intent_id` and `error` one of `bank_connection_unavailable` (the subject has no bank connection to a company), `bank_authorization_denied` (the bank does not let that person open accounts for that company), `bank_holder_without_account`, `bank_account_limit_reached`, `bank_refused`, `insufficient_funds`, `bank_rejected` or `bank_review_required`; the Intent is `failed` with the same detail (see `IntentStatus`). `503 temporarily_unavailable` means the bank could not be asked: asking again for the same Intent is safe and answers the same result, because the Intent's id is the bank's idempotency key. Where the bank does not serve the capability, `501 not_implemented` with `account_opening_not_implemented` or `own_account_transfer_not_implemented` and the `intent_id`; the Intent stays as it was. Safe to retry.
|
|
118
118
|
*/
|
|
119
119
|
post: operations["approveIntent"];
|
|
120
120
|
delete?: never;
|
|
@@ -154,7 +154,7 @@ export interface paths {
|
|
|
154
154
|
put?: never;
|
|
155
155
|
/**
|
|
156
156
|
* Close this application's no-target deposit collection with an explicit close Grant action
|
|
157
|
-
* @description Idempotent. Preserves existing terminal outcomes. Does not move funds, cancel
|
|
157
|
+
* @description Idempotent. Preserves existing terminal outcomes. Does not move funds, cancel commands AndCo already accepted, or grant account transaction access.
|
|
158
158
|
*/
|
|
159
159
|
post: operations["closeDeposit"];
|
|
160
160
|
delete?: never;
|
|
@@ -174,7 +174,7 @@ export interface paths {
|
|
|
174
174
|
put?: never;
|
|
175
175
|
/**
|
|
176
176
|
* Create an intent under the exact OAuth Grant
|
|
177
|
-
* @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 `
|
|
177
|
+
* @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 `SignedAccountOpeningIntentClaims` or `SignedAccountClosureIntentClaims`, and every value the operation uses comes from those claims and none from the envelope carrying them. A string body sent as anything but `application/jwt` answers `415 unsupported_media_type`. A Signed Instruction that does not verify answers `400 invalid_signed_instruction` with its `reason`, and one whose `exp` passed `401 expired_signed_instruction`. A signed transfer is not an Intent: it is uploaded to `POST /transfers` as a `SignedTransferEnvelope` (ADR 0093), and transfer claims signed here are refused. A signed Intent is born approved when the signing client's Grant holds the family's `approve` action (`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 }`. Once the request is valid and authorized (a malformed body is still `400 invalid_request` and a Grant without the permission still `403 insufficient_authorization`), an opening and a transfer between two accounts of the same holder work where the bank serves them: the answer is `201` with the Intent `requires_action` and its `authorization_url`, or, for a Signed Instruction whose signer also holds the family's `approve`, the Intent as it is after its release. Where the deployment's bank does not serve one, the same request answers `501 not_implemented` with `code: account_opening_not_implemented` or `code: own_account_transfer_not_implemented`; a closure always answers `501 not_implemented` with `code: account_closure_not_implemented`. Nothing is created in those cases. A subject without a bank connection to a company cannot open an account: `422 bank_connection_unavailable` with the `intent_id`. A released Signed Instruction answers the refusals of `POST /intents/{intent_id}/approve`.
|
|
178
178
|
*/
|
|
179
179
|
post: operations["createIntent"];
|
|
180
180
|
delete?: never;
|
|
@@ -183,6 +183,38 @@ export interface paths {
|
|
|
183
183
|
patch?: never;
|
|
184
184
|
trace?: never;
|
|
185
185
|
};
|
|
186
|
+
"/transfers": {
|
|
187
|
+
parameters: {
|
|
188
|
+
query?: never;
|
|
189
|
+
header?: never;
|
|
190
|
+
path?: never;
|
|
191
|
+
cookie?: never;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* List the Transfers uploaded under the same exact OAuth Grant
|
|
195
|
+
* @description For now it only finds one Transfer by the `jti` of the Signed Instruction that uploaded it, and `jti` is required (`400 invalid_request` when it is missing or is not a UUID); a listing without it can come later in the same shape. The answer is a collection of zero or one Transfer, with the reach of `GET /transfers/{transfer_id}`: only a Transfer uploaded under the same OAuth Grant and the same client, never another's. For any other `jti`, or one that another Grant or client uploaded, the collection is empty, so no answer tells them apart. It finds a Transfer whose `exp` has passed, which is its purpose: after a lost answer to `POST /transfers`, read by `jti` before signing again.
|
|
196
|
+
*/
|
|
197
|
+
get: operations["listTransfers"];
|
|
198
|
+
put?: never;
|
|
199
|
+
/**
|
|
200
|
+
* Upload a signed transfer
|
|
201
|
+
* @description Uploads one Transfer as a Signed Instruction (ADR 0093, ADR 0092): a `SignedTransferEnvelope`, a JWS in the General JSON Serialization sent as `application/jose+json`, whose payload is `SignedTransferClaims`. Every value the operation uses comes from the verified claims; the envelope is kept unchanged, because the same object travels to the core. Any other `Content-Type` answers `415 unsupported_media_type`, and an `Idempotency-Key` header `400 idempotency_key_not_allowed`: the `jti` is the idempotency key.
|
|
202
|
+
*
|
|
203
|
+
* Before anything is stored: the token's Grant must hold `bank_transfer` `create` (`403 insufficient_authorization`). The envelope must have its shape and at least one signature, each with a protected header of `typ` `transfer.v1+jwt` (`400 invalid_signed_instruction` with `reason` `malformed_assertion` and its `issues`, or `missing_signature`). Every signature must verify, each with a key registered under a Project of the holder, the Grant's subject: `unknown_key` (a `kid` that is no key of the holder's Projects, a key of another holder included), `revoked_key`, `expired_key`, `disallowed_algorithm` or `invalid_signature`. The claims must be `SignedTransferClaims` (`invalid_claims` with `issues`) and `iss` the presenting client (`wrong_issuer`); an `exp` that passed answers `401 expired_signed_instruction`, and the `exp` of a new `jti` less than 15 minutes after the upload `400 invalid_signed_instruction` with `reason` `expiration_too_soon` (nothing is stored), so sign with an `exp` at least 15 minutes ahead (`bank-sdk` signs 30 minutes ahead). The floor applies only to a new `jti`: the same instruction sent again (same `jti`, same content) is never refused for it, however little of its `exp` is left, and answers or releases the same Transfer as before. That is how a stored Transfer is released after `409 interaction_required` or `503 temporarily_unavailable`. A client that lost the answer can also read the Transfer with `GET /transfers?jti=`, which finds it even after its `exp`. The `sender` must be an AndCo account of the holder that the Grant's `sources` cover (`422 invalid_source`, found by its `account_number`) and must match it (`422 sender_mismatch`; `422 transfer_sender_identity_unavailable` while AndCo knows no RUT for the holder). The Grant's `destinations` must cover the `receiver` (`422 invalid_destination`) and its limits the amount (`422 amount_out_of_grant`). `approved: true` needs `bank_transfer` `approve` within its maximum: `403 insufficient_authorization` otherwise, never a transfer that waits silently.
|
|
204
|
+
*
|
|
205
|
+
* The same `jti` with the same claims answers the same Transfer and never moves money twice; the same `jti` with any other content, `exp` included, answers `409 idempotency_conflict`. To sign again with a new `exp`, use a new `jti`.
|
|
206
|
+
*
|
|
207
|
+
* Where AndCo's core verifies signatures, every key must also be registered in the core, for any signed transfer (`unsynced_key`).
|
|
208
|
+
*
|
|
209
|
+
* A transfer between two accounts of the same holder works where AndCo serves that rail (otherwise `501 not_implemented` with `code: own_account_transfer_not_implemented`): an approved one is released at once with nobody present and answers `processing.confirmed` or `succeeded`, or the release's refusals of `POST /intents/{intent_id}/approve` (`409 interaction_required` with `bank_connection_*` when the web session that acts for the holder needs its person; sending the same instruction again once they acted releases it). A transfer that leaves its holder answers `501 not_implemented` with `code: signed_outgoing_transfer_not_implemented` where AndCo does not verify signatures, and nothing is created; where it does, an approved one is sent to the core at once with nobody present: no web AndPass and no SMS code, because the core verifies the signature itself. The fraud engine still evaluates it. It answers `processing.confirmed` (or `succeeded`) once the core accepts it, `failed.fraud_rejected` when the engine refuses it, `failed.bank_challenge_required` when the engine asks for a challenge (nobody answers it: send the same transfer as an Intent a person confirms), and `failed.<code>` when the core refuses the signature (`unknown_key`, `revoked_key`, `invalid_signature`, `expired_signed_instruction`, `sender_mismatch`) or the request (`bank_refused`). On either rail, a key that signed it and is revoked or expired when the Transfer executes fails it with `failed.revoked_key` or `failed.expired_key`, even if the key was valid at upload, and nothing is sent; so does a key the core no longer holds, with `failed.unknown_key`, for one that leaves its holder. While the core's answer is not known it stays `requires_action`: read it later, or send the same envelope again, which never moves money twice. `503 temporarily_unavailable` means it was stored and not sent, because the sender account already had two fraud evaluations in the last minute (the `message` says until when): send the same envelope again after that. `409 interaction_required` with `bank_connection_*` means the web session that acts for the holder needs its person, and nothing was created. An unapproved Transfer waits, `requires_action`, for `POST /intents/{intent_id}/approve` with its `id`, or for a member of an Organization who may approve its transfers, and is sent the same way once approved.
|
|
210
|
+
*/
|
|
211
|
+
post: operations["createTransfer"];
|
|
212
|
+
delete?: never;
|
|
213
|
+
options?: never;
|
|
214
|
+
head?: never;
|
|
215
|
+
patch?: never;
|
|
216
|
+
trace?: never;
|
|
217
|
+
};
|
|
186
218
|
"/catalog/banks": {
|
|
187
219
|
parameters: {
|
|
188
220
|
query?: never;
|
|
@@ -192,7 +224,7 @@ export interface paths {
|
|
|
192
224
|
};
|
|
193
225
|
/**
|
|
194
226
|
* List the banks a transfer can be sent to
|
|
195
|
-
* @description The `
|
|
227
|
+
* @description The banks of Core's catalog, each with its four-digit code and its name: the `bank_code` values a Receptor (a `bank_transfer` destination of type `external`) names, so an integrator never guesses one. `@andco/protocol` also exports the known codes as `CHILEAN_BANK_CODES`, which no validation reads; a code Core does not know fails with `unsupported_bank` when the transfer is executed. Granted by a `bank_transfer` authorization detail with `create`. The bank's catalog is read on behalf of the subject, through the web session of one of the accounts that detail reaches, so a subject without any answers `409 interaction_required` like any other read of the bank. It is one bounded list, answered whole as a single page: `pageInfo.hasNextPage` is false, no edge carries a cursor and the pagination parameters do not apply. Returns edges and camelCase pageInfo.
|
|
196
228
|
*/
|
|
197
229
|
get: operations["getBankCatalog"];
|
|
198
230
|
put?: never;
|
|
@@ -260,6 +292,23 @@ export interface paths {
|
|
|
260
292
|
patch?: never;
|
|
261
293
|
trace?: never;
|
|
262
294
|
};
|
|
295
|
+
"/transfers/{transfer_id}": {
|
|
296
|
+
parameters: {
|
|
297
|
+
query?: never;
|
|
298
|
+
header?: never;
|
|
299
|
+
path?: never;
|
|
300
|
+
cookie?: never;
|
|
301
|
+
};
|
|
302
|
+
/** Read one Transfer uploaded under the same exact OAuth Grant */
|
|
303
|
+
get: operations["getTransfer"];
|
|
304
|
+
put?: never;
|
|
305
|
+
post?: never;
|
|
306
|
+
delete?: never;
|
|
307
|
+
options?: never;
|
|
308
|
+
head?: never;
|
|
309
|
+
patch?: never;
|
|
310
|
+
trace?: never;
|
|
311
|
+
};
|
|
263
312
|
"/userinfo": {
|
|
264
313
|
parameters: {
|
|
265
314
|
query?: never;
|
|
@@ -285,7 +334,7 @@ export interface paths {
|
|
|
285
334
|
cookie?: never;
|
|
286
335
|
};
|
|
287
336
|
/**
|
|
288
|
-
* List personal
|
|
337
|
+
* List personal digital accounts and balances
|
|
289
338
|
* @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.
|
|
290
339
|
*/
|
|
291
340
|
get: operations["listAccounts"];
|
|
@@ -306,7 +355,7 @@ export interface paths {
|
|
|
306
355
|
};
|
|
307
356
|
/**
|
|
308
357
|
* List one account's transactions
|
|
309
|
-
* @description Answers the transactions the account's statement presentation reads, so an integrator sees exactly what a person would see, newest first, one page at a time: feed `pageInfo.endCursor` back as `?after=` while `pageInfo.hasNextPage`. Granted by a `bank_transaction` authorization detail with `read` whose `accounts` reach this account. The account is named by its identifier or by its Account Key, whichever the integrator knows: a segment shaped like a UUID is an identifier, any other is an Account Key of the Grant's subject. The permission is the same for both and the key is resolved on this request: an account the Grant does not reach, by identifier or by key, and a key that names no account of the subject answer `404`, as if it did not exist, whether or not the account exists. The page is read from
|
|
358
|
+
* @description Answers the transactions the account's statement presentation reads, so an integrator sees exactly what a person would see, newest first, one page at a time: feed `pageInfo.endCursor` back as `?after=` while `pageInfo.hasNextPage`. Granted by a `bank_transaction` authorization detail with `read` whose `accounts` reach this account. The account is named by its identifier or by its Account Key, whichever the integrator knows: a segment shaped like a UUID is an identifier, any other is an Account Key of the Grant's subject. The permission is the same for both and the key is resolved on this request: an account the Grant does not reach, by identifier or by key, and a key that names no account of the subject answer `404`, as if it did not exist, whether or not the account exists. The page is read from AndCo on behalf of the subject, and its read model walks forward only: `pageInfo.endCursor` is AndCo's own cursor for the next page, handed over untouched, and `after` accepts nothing else (`invalid_cursor` otherwise). There is no cursor per transaction, no backward walk and no offset: `before`, `last`, `offset` and `limit` answer `invalid_request`. Returns edges and camelCase pageInfo.
|
|
310
359
|
*/
|
|
311
360
|
get: operations["listAccountTransactions"];
|
|
312
361
|
put?: never;
|
|
@@ -346,7 +395,7 @@ export interface paths {
|
|
|
346
395
|
};
|
|
347
396
|
/**
|
|
348
397
|
* List a Profile's identities
|
|
349
|
-
* @description Granted by an `identity` authorization detail with `read` whose subject is this Profile. A subject that is not the Grant's answers `404`, as one that does not exist. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed. When the Grant's detail asked for the
|
|
398
|
+
* @description Granted by an `identity` authorization detail with `read` whose subject is this Profile. A subject that is not the Grant's answers `404`, as one that does not exist. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed. When the Grant's detail asked for the Verificación de identidad (`validation` with `required` true), each identity also carries `validation`; without it the field is absent, not `null`.
|
|
350
399
|
*/
|
|
351
400
|
get: operations["listProfileIdentities"];
|
|
352
401
|
put?: never;
|
|
@@ -405,7 +454,7 @@ export interface paths {
|
|
|
405
454
|
cookie?: never;
|
|
406
455
|
};
|
|
407
456
|
/**
|
|
408
|
-
* Replay
|
|
457
|
+
* Replay account facts with account transaction read permission
|
|
409
458
|
* @description Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.
|
|
410
459
|
*/
|
|
411
460
|
get: operations["readAccountEvents"];
|
|
@@ -507,7 +556,6 @@ export interface components {
|
|
|
507
556
|
id: string;
|
|
508
557
|
/** Format: uri */
|
|
509
558
|
resource_server: string;
|
|
510
|
-
note?: components["schemas"]["IntentNote"];
|
|
511
559
|
metadata: {
|
|
512
560
|
[key: string]: unknown;
|
|
513
561
|
};
|
|
@@ -517,6 +565,7 @@ export interface components {
|
|
|
517
565
|
created_at: string;
|
|
518
566
|
/** Format: uri */
|
|
519
567
|
authorization_url: string;
|
|
568
|
+
note?: components["schemas"]["IntentNote"];
|
|
520
569
|
/** @constant */
|
|
521
570
|
type: "account_closure";
|
|
522
571
|
status: components["schemas"]["IntentStatus"];
|
|
@@ -530,7 +579,7 @@ export interface components {
|
|
|
530
579
|
/** @description Remaining actionable lifetime at server_time; zero for finite terminal Intents. */
|
|
531
580
|
expires_in_seconds: number;
|
|
532
581
|
};
|
|
533
|
-
/** @description The `application/json` half of closing a
|
|
582
|
+
/** @description The `application/json` half of closing a cuenta digital: an Intent born waiting for an Approval. `/accounts` has no `DELETE` because everything that changes an account happens through an Intent. It carries no amount, no source and no destination -- only a reference to the account it closes. */
|
|
534
583
|
AccountClosureIntentCreate: {
|
|
535
584
|
note?: components["schemas"]["IntentNote"];
|
|
536
585
|
/** @default {} */
|
|
@@ -560,7 +609,6 @@ export interface components {
|
|
|
560
609
|
id: string;
|
|
561
610
|
/** Format: uri */
|
|
562
611
|
resource_server: string;
|
|
563
|
-
note?: components["schemas"]["IntentNote"];
|
|
564
612
|
metadata: {
|
|
565
613
|
[key: string]: unknown;
|
|
566
614
|
};
|
|
@@ -570,6 +618,7 @@ export interface components {
|
|
|
570
618
|
created_at: string;
|
|
571
619
|
/** Format: uri */
|
|
572
620
|
authorization_url: string;
|
|
621
|
+
note?: components["schemas"]["IntentNote"];
|
|
573
622
|
/** @description The deadline to approve and execute the Intent. `null`: the Intent never expires. */
|
|
574
623
|
expires_at: string | null;
|
|
575
624
|
/** @description Remaining actionable lifetime at server_time; zero for finite terminal Intents, `null` when the Intent never expires. */
|
|
@@ -586,7 +635,7 @@ export interface components {
|
|
|
586
635
|
bank_account_id: string | null;
|
|
587
636
|
};
|
|
588
637
|
};
|
|
589
|
-
/** @description The `application/json` half of opening a
|
|
638
|
+
/** @description The `application/json` half of opening a cuenta digital: an Intent born waiting for an Approval. `/accounts` has no `POST` because everything that changes an account happens through an Intent, and an opening carries no amount, no source and no destination -- only the name the account will answer to. Opening is asynchronous: the answer is the Intent and its status, and the Número de Cuenta arrives on the account's event stream. */
|
|
590
639
|
AccountOpeningIntentCreate: {
|
|
591
640
|
note?: components["schemas"]["IntentNote"];
|
|
592
641
|
/** @default {} */
|
|
@@ -698,11 +747,11 @@ export interface components {
|
|
|
698
747
|
type: string | null;
|
|
699
748
|
/** @description Null while the balance projection does not know the account yet. */
|
|
700
749
|
currency: string | null;
|
|
701
|
-
/** @description The ledger balance
|
|
750
|
+
/** @description The ledger balance AndCo maintains for the account, as a decimal string, never a number. It is what the account holds after its last movement; funds on hold are not subtracted from it. Null while the balance projection does not know the account yet, for example right after it is opened, and null when the Grant lacks `read_balance`; a listing never fails for it and never makes up a zero. */
|
|
702
751
|
balance: string | null;
|
|
703
752
|
};
|
|
704
753
|
BankCatalogEntry: {
|
|
705
|
-
/** @description The `
|
|
754
|
+
/** @description The bank's four-digit code in Core's catalog: the `bank_code` of a Receptor. */
|
|
706
755
|
id: string;
|
|
707
756
|
/** @description The bank's name as the bank lists it. */
|
|
708
757
|
name: string;
|
|
@@ -720,23 +769,23 @@ export interface components {
|
|
|
720
769
|
id: string;
|
|
721
770
|
transactionId: string | null;
|
|
722
771
|
description: string;
|
|
723
|
-
/** @description Issued by
|
|
772
|
+
/** @description Issued by AndCo and republished exactly as AndCo sent it, with none of the digit-count bound of an AndCo-defined amount. What tells an inflow from an outflow is `movement_type`, not a sign: AndCo sends the amount as a positive figure. */
|
|
724
773
|
amount: string;
|
|
725
774
|
/**
|
|
726
|
-
* @description The kind of movement, under
|
|
775
|
+
* @description The kind of movement, under AndCo's own field name and in its own words. `deposit` and `interest` bring money into this account and raise its balance; `withdrawal` takes money out and lowers it. `amount` is always positive, so `movement_type` is what tells an inflow from an outflow.
|
|
727
776
|
* @enum {string}
|
|
728
777
|
*/
|
|
729
778
|
movement_type: "deposit" | "interest" | "withdrawal";
|
|
730
779
|
origin: string | null;
|
|
731
780
|
/** Format: date-time */
|
|
732
781
|
date: string;
|
|
733
|
-
/** @description Same provenance as `amount`: issued by
|
|
782
|
+
/** @description Same provenance as `amount`: issued by AndCo and republished exactly, never normalized. Real balances do go negative, so the sign is not narrowed away. */
|
|
734
783
|
runningBalance: string | null;
|
|
735
784
|
paymentType: string | null;
|
|
736
785
|
reversed: boolean;
|
|
737
786
|
note: string | null;
|
|
738
787
|
};
|
|
739
|
-
/** @description A connection read live from
|
|
788
|
+
/** @description A connection read live from AndCo, which issues one cursor per page and walks forward only. `pageInfo.endCursor` is that cursor and is null on the last page; `pageInfo.startCursor` is always null and `pageInfo.hasPreviousPage` always false. An edge's `cursor` is null: AndCo names no position inside a page, so a walk resumes from the end of a page, never from one transaction. */
|
|
740
789
|
BankTransactionPage: {
|
|
741
790
|
edges: {
|
|
742
791
|
cursor: string | null;
|
|
@@ -757,7 +806,7 @@ export interface components {
|
|
|
757
806
|
total: string;
|
|
758
807
|
} | null;
|
|
759
808
|
};
|
|
760
|
-
/** @description The
|
|
809
|
+
/** @description The AndCo account a deposit lands on: the `{ type: "account", id }` matcher plus what a payer at another bank types to pay into it, holder included: `holder_id` is the holder's RUT and `holder_name` their name, as a Chilean transfer shows them to whoever sends the money. */
|
|
761
810
|
DepositDestination: {
|
|
762
811
|
/** @constant */
|
|
763
812
|
type: "account";
|
|
@@ -775,7 +824,6 @@ export interface components {
|
|
|
775
824
|
id: string;
|
|
776
825
|
/** Format: uri */
|
|
777
826
|
resource_server: string;
|
|
778
|
-
note?: components["schemas"]["IntentNote"];
|
|
779
827
|
metadata: {
|
|
780
828
|
[key: string]: unknown;
|
|
781
829
|
};
|
|
@@ -785,6 +833,7 @@ export interface components {
|
|
|
785
833
|
created_at: string;
|
|
786
834
|
/** Format: uri */
|
|
787
835
|
authorization_url: string;
|
|
836
|
+
note?: components["schemas"]["IntentNote"];
|
|
788
837
|
/** @constant */
|
|
789
838
|
type: "deposit";
|
|
790
839
|
/**
|
|
@@ -877,9 +926,9 @@ export interface components {
|
|
|
877
926
|
outcome: "credited" | "reversed";
|
|
878
927
|
/** @enum {string} */
|
|
879
928
|
receipt_time_source: "bank_timestamp" | "unknown";
|
|
880
|
-
/** @description Name of the account holder that sent the money, exactly as
|
|
929
|
+
/** @description Name of the account holder that sent the money, exactly as AndCo reported it. */
|
|
881
930
|
sender_name: string | null;
|
|
882
|
-
/** @description National id (RUT) of the sender, as
|
|
931
|
+
/** @description National id (RUT) of the sender, as AndCo reported it. */
|
|
883
932
|
sender_national_id: string | null;
|
|
884
933
|
/** @description Display name of the sender's bank. */
|
|
885
934
|
sender_bank_name: string | null;
|
|
@@ -936,10 +985,10 @@ export interface components {
|
|
|
936
985
|
/** @description Whose resources the Grant reaches: the Profile, or the Organization (Company) the person consented for. It is the only place this response names an Organization outside `authorizationDetails`, because for an Organization the `subject` is the application. It carries the identifier and no identity data; the RUT and the legal name are read from the identities of the Organization. */
|
|
937
986
|
GrantHolder: components["schemas"]["ProfileGrantHolder"] | components["schemas"]["OrganizationGrantHolder"];
|
|
938
987
|
GrantSubject: components["schemas"]["ProfileGrantSubject"] | components["schemas"]["ApplicationGrantSubject"];
|
|
939
|
-
/** @description What
|
|
988
|
+
/** @description What AndCo Core checked about the identity's document. It belongs to the document (country, kind and number), so correcting the number voids it and correcting the names does not. It does not expire; the reader decides how old a validation it accepts. */
|
|
940
989
|
IdentityValidation: {
|
|
941
990
|
/**
|
|
942
|
-
* @description Who validated the identity. `andco_core` is
|
|
991
|
+
* @description Who validated the identity. `andco_core` is AndCo Core, on its hosted page.
|
|
943
992
|
* @enum {string}
|
|
944
993
|
*/
|
|
945
994
|
validated_by: "andco_core";
|
|
@@ -949,33 +998,42 @@ export interface components {
|
|
|
949
998
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
950
999
|
/**
|
|
951
1000
|
* Format: uuid
|
|
952
|
-
* @description
|
|
1001
|
+
* @description AndCo Core's identifier of the validation. Keep it as the reference to the validation.
|
|
953
1002
|
*/
|
|
954
1003
|
verification_id: string;
|
|
955
1004
|
};
|
|
956
1005
|
Intent: components["schemas"]["DepositIntent"] | components["schemas"]["TransferIntent"] | components["schemas"]["AccountOpeningIntent"] | components["schemas"]["AccountClosureIntent"];
|
|
957
|
-
/** @description One
|
|
1006
|
+
/** @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. */
|
|
958
1007
|
IntentAccount: components["schemas"]["IntentAccountKey"] | components["schemas"]["IntentAccountId"];
|
|
959
|
-
/** @description
|
|
1008
|
+
/** @description A Receptor at a Chilean bank, in Core's vocabulary (`receiver` without the amount): the four-digit `bank_code` (Andco is `0739`), the `account_type` code (`"10"` savings, `"20"` checking, `"40"` debit), the `account_number`, and the holder's `name` and RUT. `country` and `national_kind_id` are always declared. It carries every field a `bank_transfer` `external` matcher can fix, so the Grant's destinations are asked about exactly this account. */
|
|
960
1009
|
IntentAccountExternal: {
|
|
961
1010
|
/** @constant */
|
|
962
1011
|
type: "external";
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
1012
|
+
/** @constant */
|
|
1013
|
+
country: "CL";
|
|
1014
|
+
/** @description The bank's four-digit code in Core's catalog. Andco is `0739`. */
|
|
1015
|
+
bank_code: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* @description Core's account type code: `"10"` savings, `"20"` checking, `"40"` debit (cuenta vista).
|
|
1018
|
+
* @enum {string}
|
|
1019
|
+
*/
|
|
1020
|
+
account_type: "10" | "20" | "40";
|
|
1021
|
+
account_number: string;
|
|
968
1022
|
/** @description The holder's name, at most 256 code points (`holder_name_too_long`). */
|
|
969
|
-
|
|
1023
|
+
name: string;
|
|
1024
|
+
/** @constant */
|
|
1025
|
+
national_kind_id: "RUT";
|
|
1026
|
+
/** @description The holder's RUT. */
|
|
1027
|
+
national_id: string;
|
|
970
1028
|
};
|
|
971
|
-
/** @description One
|
|
1029
|
+
/** @description One AndCo account, named by its identifier. */
|
|
972
1030
|
IntentAccountId: {
|
|
973
1031
|
/** @constant */
|
|
974
1032
|
type: "account";
|
|
975
1033
|
/** Format: uuid */
|
|
976
1034
|
id: string;
|
|
977
1035
|
};
|
|
978
|
-
/** @description One
|
|
1036
|
+
/** @description One AndCo account of the Grant's subject, named by its Account Key. */
|
|
979
1037
|
IntentAccountKey: {
|
|
980
1038
|
/** @constant */
|
|
981
1039
|
type: "account_key";
|
|
@@ -995,9 +1053,9 @@ export interface components {
|
|
|
995
1053
|
IntentCancellation: {
|
|
996
1054
|
reason: string;
|
|
997
1055
|
};
|
|
998
|
-
/** @description The
|
|
1056
|
+
/** @description The comment a request asks for. `editable: true` lets the person who confirms change it; each operation freezes its own final note at confirmation. */
|
|
999
1057
|
IntentNote: {
|
|
1000
|
-
/** @description Trimmed
|
|
1058
|
+
/** @description Trimmed comment. An empty reference is allowed. */
|
|
1001
1059
|
value: string;
|
|
1002
1060
|
/**
|
|
1003
1061
|
* @description Defaults to false when omitted.
|
|
@@ -1011,12 +1069,12 @@ export interface components {
|
|
|
1011
1069
|
/**
|
|
1012
1070
|
* @description `<base>[.<detail>]`. The base, what precedes the first dot, is one of `requires_action`, `processing`, `succeeded`, `failed`, `cancelled`, `rejected` or `expired`, and it is what tells whether the Intent can still change: `requires_action` and `processing` can, every other base is final. Decide on the base, never on the whole value, so that a detail added later is not misread. In TypeScript, `INTENT_STATUS_BASE` and `IS_INTENT_TERMINAL_STATUS` from `@andco/protocol` do exactly that; an exhaustive `switch` over the enum below stops being exhaustive the first time a detail is added.
|
|
1013
1071
|
*
|
|
1014
|
-
* Where an Intent stands. `failed` says why, and whether money moved. A transfer that leaves its holder's own accounts (to another bank or to another
|
|
1072
|
+
* Where an Intent stands. `failed` says why, and whether money moved. A transfer that leaves its holder's own accounts (to another bank or to another AndCo customer) is `requires_action` from creation for as long as a person still owes the bank a proof, and every read of it carries `interaction_reason: bank_verification_required`; pressing Confirm, typing the web AndPass or typing the SMS code does not change its status. It becomes `processing.confirmed`, and `transfer.confirmed` is published once, when AndCo accepts the transfer; from then on nobody has to do anything and the outcome arrives as `succeeded` or `failed.bank_rejected`. A challenge the person abandons, lets run out or exhausts with wrong answers leaves the Intent `requires_action` (the person confirms again and gets a new code) until its own expiry, `expired`. A transfer between two accounts of the same holder has no challenge: it is `processing.confirmed` from its release, while the server asks the bank again under the same key. In both, `processing.confirmed` means that AndCo holds the command and nobody has to do anything. `processing.settling`, `processing.reversing` and `processing.reconciling` are not emitted. While the bank has been asked and its answer is not yet known (normally one request) the Intent still reads `requires_action`, does not read `expired` even if its deadline passes, and `cancel` and `reject` answer `409 invalid_intent_state`. Transfers: `failed.fraud_rejected` (the bank's fraud engine refused it before accepting, straight from `requires_action`), `failed.bank_refused` (the bank or its ledger refused the request, before accepting it when the transfer leaves its holder; for a transfer between own accounts, for example, the destination is not an active account of the same holder), `failed.bank_rejected` (the bank accepted it and the receiving bank, or the ledger, rejected it; the debit is undone by the bank), `failed.bank_review_required` (a transfer between own accounts AndCo stopped half way or gave no usable answer for a day: money may have left the source account without reaching the destination, the bank must review it, and it is never retried under a new Intent) and `failed.own_account_transfer_not_implemented` (the bank does not serve transfers between own accounts). A signed Transfer that leaves its holder (`POST /transfers`, ADR 0092) is never confirmed by a person: it also fails with `failed.bank_challenge_required` (the bank's fraud engine asked for a challenge nobody answers for a signature; send the same transfer as an Intent a person confirms) or with the core's refusal of its signature, in the words the upload uses: `failed.unknown_key` (the core holds no such key), `failed.revoked_key`, `failed.invalid_signature`, `failed.expired_signed_instruction` (its `exp` passed before the core executed it) and `failed.sender_mismatch`. A signed Transfer on either rail also fails, before anything is sent, when a key that signed it is no longer usable as it executes, even if it was at upload: `failed.revoked_key`, `failed.expired_key`, or `failed.unknown_key` (no Project of the holder has it any more, or, for one that leaves its holder, the core no longer holds it). In `failed.fraud_rejected`, `failed.bank_refused`, `failed.own_account_transfer_not_implemented`, `failed.bank_challenge_required`, `failed.expired_key` and the core's refusals of a signature no money moved; in `failed.bank_rejected` nothing stays moved. Account openings: `failed.bank_authorization_denied` (the bank does not let that person open accounts for that company), `failed.bank_holder_without_account`, `failed.bank_account_limit_reached`, `failed.bank_connection_unavailable` (no bank connection to a company), `failed.account_opening_not_implemented` (the bank does not serve openings), `failed.bank_core_unavailable`, `failed.bank_account_save_failed`, `failed.bank_account_quota_exceeded` (the holder already has as many accounts as allowed) and `failed.account_key_taken`. An opening that failed opened no account in any of them. Closures, which are not served today: `failed.bank_account_not_found` and `failed.bank_account_balance_not_zero`.
|
|
1015
1073
|
*
|
|
1016
|
-
* `failed.<code>` names the reason. The list holds every code
|
|
1074
|
+
* `failed.<code>` names the reason. The list holds every code AndCo records, and it may grow: a `failed.` value outside this list is a failure like any other.
|
|
1017
1075
|
* @enum {string}
|
|
1018
1076
|
*/
|
|
1019
|
-
IntentStatus: "requires_action" | "processing.confirmed" | "processing.settling" | "processing.reversing" | "processing.reconciling" | "processing.opening" | "processing.closing" | "succeeded" | "failed" | "failed.insufficient_funds" | "failed.fraud_rejected" | "failed.bank_refused" | "failed.bank_rejected" | "failed.bank_review_required" | "failed.own_account_transfer_not_implemented" | "failed.bank_authorization_denied" | "failed.bank_holder_without_account" | "failed.bank_account_limit_reached" | "failed.account_opening_not_implemented" | "failed.bank_core_unavailable" | "failed.bank_account_save_failed" | "failed.bank_connection_unavailable" | "failed.bank_account_quota_exceeded" | "failed.account_key_taken" | "failed.bank_account_not_found" | "failed.bank_account_balance_not_zero" | "cancelled" | "cancelled.grant_revoked" | "cancelled.grant_expired" | "rejected" | "expired";
|
|
1077
|
+
IntentStatus: "requires_action" | "processing.confirmed" | "processing.settling" | "processing.reversing" | "processing.reconciling" | "processing.opening" | "processing.closing" | "succeeded" | "failed" | "failed.insufficient_funds" | "failed.fraud_rejected" | "failed.bank_refused" | "failed.bank_rejected" | "failed.bank_review_required" | "failed.own_account_transfer_not_implemented" | "failed.bank_challenge_required" | "failed.unknown_key" | "failed.revoked_key" | "failed.expired_key" | "failed.invalid_signature" | "failed.expired_signed_instruction" | "failed.sender_mismatch" | "failed.bank_authorization_denied" | "failed.bank_holder_without_account" | "failed.bank_account_limit_reached" | "failed.account_opening_not_implemented" | "failed.bank_core_unavailable" | "failed.bank_account_save_failed" | "failed.bank_connection_unavailable" | "failed.bank_account_quota_exceeded" | "failed.account_key_taken" | "failed.bank_account_not_found" | "failed.bank_account_balance_not_zero" | "cancelled" | "cancelled.grant_revoked" | "cancelled.grant_expired" | "rejected" | "expired";
|
|
1020
1078
|
Organization: {
|
|
1021
1079
|
id: string;
|
|
1022
1080
|
name: string;
|
|
@@ -1237,7 +1295,7 @@ export interface components {
|
|
|
1237
1295
|
expires_in?: never;
|
|
1238
1296
|
expires_at: string | null;
|
|
1239
1297
|
};
|
|
1240
|
-
/** @description
|
|
1298
|
+
/** @description An amount with nothing left for a person to change: the same `{ currency, value }` as a request, without `editable`. */
|
|
1241
1299
|
SignedAmount: {
|
|
1242
1300
|
/** @constant */
|
|
1243
1301
|
currency: "CLP";
|
|
@@ -1253,118 +1311,133 @@ export interface components {
|
|
|
1253
1311
|
[key: string]: unknown;
|
|
1254
1312
|
};
|
|
1255
1313
|
};
|
|
1256
|
-
/** @description The
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
/** @constant */
|
|
1260
|
-
aud: "https://api.andco.com";
|
|
1261
|
-
/** @description The idempotency key, inside the signature, reused verbatim when retrying. */
|
|
1262
|
-
jti: string;
|
|
1263
|
-
exp: number;
|
|
1264
|
-
iat?: number;
|
|
1265
|
-
nbf?: number;
|
|
1266
|
-
/** @default {} */
|
|
1267
|
-
metadata?: {
|
|
1268
|
-
[key: string]: unknown;
|
|
1269
|
-
};
|
|
1270
|
-
/** @constant */
|
|
1271
|
-
type: "transfer";
|
|
1272
|
-
source: components["schemas"]["IntentAccount"];
|
|
1273
|
-
destination: components["schemas"]["TransferDestination"];
|
|
1274
|
-
amount: components["schemas"]["SignedAmount"];
|
|
1275
|
-
/** @description A plain bank reference; a Signed Instruction proposes nothing. */
|
|
1276
|
-
note?: string;
|
|
1277
|
-
expires_in: string;
|
|
1278
|
-
expires_at?: never;
|
|
1279
|
-
} | {
|
|
1314
|
+
/** @description The claims of a signed transfer (`typ` `transfer.v1+jwt`): Core's `POST /api/transfer` body (with its optional `metadata`) plus `iss`, `aud`, `jti`, `exp` and `approved`. Strict: an unknown claim, country or document is refused, nothing names an Account Key or an Andco account id, and the only deadline is `exp`. */
|
|
1315
|
+
SignedTransferClaims: {
|
|
1316
|
+
/** @description The signing Project's `client_id`. */
|
|
1280
1317
|
iss: string;
|
|
1281
1318
|
/** @constant */
|
|
1282
1319
|
aud: "https://api.andco.com";
|
|
1283
|
-
/**
|
|
1320
|
+
/**
|
|
1321
|
+
* Format: uuid
|
|
1322
|
+
* @description Names the Transfer: Core's `Idempotency-Key`. The same `jti` with other content is a conflict.
|
|
1323
|
+
*/
|
|
1284
1324
|
jti: string;
|
|
1325
|
+
/** @description Unix seconds after which the core refuses to execute the transfer. */
|
|
1285
1326
|
exp: number;
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1327
|
+
/** @description `true` orders the transfer sent to the core as soon as it is uploaded, which needs `bank_transfer` `approve` in the Grant. */
|
|
1328
|
+
approved: boolean;
|
|
1329
|
+
sender: components["schemas"]["TransferSender"];
|
|
1330
|
+
receiver: components["schemas"]["TransferReceiver"];
|
|
1331
|
+
/** @description What both sides read next to the movement. */
|
|
1332
|
+
comment?: string;
|
|
1333
|
+
/** @description The signer's own data, signed and kept as it arrives. Nothing reads it to decide anything. */
|
|
1289
1334
|
metadata?: {
|
|
1290
1335
|
[key: string]: unknown;
|
|
1291
1336
|
};
|
|
1337
|
+
};
|
|
1338
|
+
/** @description A signed transfer: a JWS in the General JSON Serialization (RFC 7515 §7.2.1), with one `payload` and at least one signature, each with a protected header of `typ` `transfer.v1+jwt`. Sent as `application/jose+json`. */
|
|
1339
|
+
SignedTransferEnvelope: {
|
|
1340
|
+
/** @description The base64url of the JSON claims (`SignedTransferClaims`). */
|
|
1341
|
+
payload: string;
|
|
1342
|
+
/** @description At least one signature over the same payload; the core verifies every one. */
|
|
1343
|
+
signatures: {
|
|
1344
|
+
/** @description The base64url of the JSON protected header (`SignedTransferHeader`). */
|
|
1345
|
+
protected: string;
|
|
1346
|
+
signature: string;
|
|
1347
|
+
}[];
|
|
1348
|
+
};
|
|
1349
|
+
/** @description The protected header of one signature, decoded: `alg` (`ES256` or `RS256`), the `kid` of a registered Signing Key Pair, and `typ` `transfer.v1+jwt`. */
|
|
1350
|
+
SignedTransferHeader: {
|
|
1351
|
+
/** @enum {string} */
|
|
1352
|
+
alg: "ES256" | "RS256";
|
|
1353
|
+
kid: string;
|
|
1292
1354
|
/** @constant */
|
|
1293
|
-
|
|
1294
|
-
source: components["schemas"]["IntentAccount"];
|
|
1295
|
-
destination: components["schemas"]["TransferDestination"];
|
|
1296
|
-
amount: components["schemas"]["SignedAmount"];
|
|
1297
|
-
/** @description A plain bank reference; a Signed Instruction proposes nothing. */
|
|
1298
|
-
note?: string;
|
|
1299
|
-
expires_in?: never;
|
|
1300
|
-
expires_at: string | null;
|
|
1355
|
+
typ: "transfer.v1+jwt";
|
|
1301
1356
|
};
|
|
1302
|
-
/** @description The amount a transfer orders, as it is answered. `value` is the request's proposal and never changes; `confirmed` is the amount the person confirmed, null until they confirm, and it is what moves. It is never proof that money moved; read `settled` for that. */
|
|
1357
|
+
/** @description The amount a transfer orders, as it is answered: integers in the minor unit of the currency (CLP: whole pesos), at most 2147483647. `value` is the request's proposal and never changes; `confirmed` is the amount the person confirmed, null until they confirm, and it is what moves. It is never proof that money moved; read `settled` for that. */
|
|
1303
1358
|
TransferAmount: {
|
|
1304
1359
|
/** @constant */
|
|
1305
1360
|
currency: "CLP";
|
|
1306
|
-
/** @description Immutable amount from the creation request. */
|
|
1307
|
-
value:
|
|
1361
|
+
/** @description Immutable amount from the creation request, in the minor unit of the currency. */
|
|
1362
|
+
value: number;
|
|
1308
1363
|
editable: boolean;
|
|
1309
1364
|
/** @description The amount the person confirmed, null until then; it is what moves. For a transfer that is not editable it is `value`, set when the person confirms. Always within the Grant's `transactions.minimum` and `transactions.maximum`, when it has them. */
|
|
1310
|
-
confirmed:
|
|
1365
|
+
confirmed: number | null;
|
|
1311
1366
|
};
|
|
1312
|
-
/** @description
|
|
1313
|
-
|
|
1367
|
+
/** @description A Transfer uploaded as a Signed Instruction (ADR 0093), in Core's vocabulary: `sender`, `receiver` (with the amount, an integer in the minor unit of the currency) and `comment` exactly as signed. `status` is where it stands; `core_status` the core's own word, for the record. */
|
|
1368
|
+
Transfer: {
|
|
1314
1369
|
/** @constant */
|
|
1315
|
-
|
|
1316
|
-
value: string;
|
|
1370
|
+
object: "transfer";
|
|
1317
1371
|
/**
|
|
1318
|
-
*
|
|
1319
|
-
* @
|
|
1372
|
+
* Format: uuid
|
|
1373
|
+
* @description The Transfer's own id: what `GET /transfers/{transfer_id}` reads.
|
|
1320
1374
|
*/
|
|
1321
|
-
|
|
1322
|
-
};
|
|
1323
|
-
/** @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. */
|
|
1324
|
-
TransferDestination: components["schemas"]["IntentAccountKey"] | components["schemas"]["IntentAccountId"] | components["schemas"]["IntentAccountExternal"];
|
|
1325
|
-
/** @description Where a transfer's money lands when it is named, in the request and in the answered Intent alike. A named destination is always locked on the confirmation screen: `editable` only admits `false`, and `editable: true` fails at creation with `invalid_request`. To let the person choose where the money goes, the request says `destination: null` instead (`TransferIntentCreate`). Defaults to false in a request; an answered Intent always states it, including a destination the person completed on the screen, which is locked once she confirms. */
|
|
1326
|
-
TransferDestinationProposal: {
|
|
1327
|
-
/** @constant */
|
|
1328
|
-
type: "account_key";
|
|
1329
|
-
accountKey: string;
|
|
1375
|
+
id: string;
|
|
1330
1376
|
/**
|
|
1331
|
-
*
|
|
1332
|
-
* @
|
|
1377
|
+
* Format: uuid
|
|
1378
|
+
* @description The `jti` of the Signed Instruction that uploaded it. Sending the same instruction again answers this same Transfer.
|
|
1333
1379
|
*/
|
|
1334
|
-
|
|
1335
|
-
|
|
1380
|
+
jti: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* @description Where the Transfer stands, in the words an Intent uses (`IntentStatus`): decide on the base, never on the whole value. A signed transfer that is not approved is `requires_action` until a Grant with `bank_transfer` `approve` or a person approves it. A transfer between two accounts of the same holder is `processing.confirmed` from its release until AndCo answers for good, then `succeeded` or `failed.<code>`.
|
|
1383
|
+
* @enum {string}
|
|
1384
|
+
*/
|
|
1385
|
+
status: "requires_action" | "processing.confirmed" | "processing.settling" | "processing.reversing" | "processing.reconciling" | "processing.opening" | "processing.closing" | "succeeded" | "failed" | "failed.insufficient_funds" | "failed.fraud_rejected" | "failed.bank_refused" | "failed.bank_rejected" | "failed.bank_review_required" | "failed.own_account_transfer_not_implemented" | "failed.bank_challenge_required" | "failed.unknown_key" | "failed.revoked_key" | "failed.expired_key" | "failed.invalid_signature" | "failed.expired_signed_instruction" | "failed.sender_mismatch" | "failed.bank_authorization_denied" | "failed.bank_holder_without_account" | "failed.bank_account_limit_reached" | "failed.account_opening_not_implemented" | "failed.bank_core_unavailable" | "failed.bank_account_save_failed" | "failed.bank_connection_unavailable" | "failed.bank_account_quota_exceeded" | "failed.account_key_taken" | "failed.bank_account_not_found" | "failed.bank_account_balance_not_zero" | "cancelled" | "cancelled.grant_revoked" | "cancelled.grant_expired" | "rejected" | "expired";
|
|
1386
|
+
/** @description The core bancario's own word for its transfer (`requested`, `confirmed`, `rejected_insufficient_funds`, …), for the record. Null while AndCo has not read one. Never branch on it: a word the core adds later appears here as it is, and `status` is what to decide on. */
|
|
1387
|
+
core_status: string | null;
|
|
1388
|
+
/** @description The signed `approved`: whether the instruction ordered the transfer sent as soon as it was uploaded. */
|
|
1389
|
+
approved: boolean;
|
|
1390
|
+
sender: components["schemas"]["TransferSender"];
|
|
1391
|
+
receiver: components["schemas"]["TransferReceiver"];
|
|
1392
|
+
/** @description The signed comment, when there is one. */
|
|
1393
|
+
comment?: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* Format: date-time
|
|
1396
|
+
* @description When the Transfer was uploaded.
|
|
1397
|
+
*/
|
|
1398
|
+
created_at: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* Format: date-time
|
|
1401
|
+
* @description The Transfer's deadline: the signature's `exp`. A transfer still waiting for its approval at this instant expires.
|
|
1402
|
+
*/
|
|
1403
|
+
expires_at: string;
|
|
1404
|
+
};
|
|
1405
|
+
/** @description A connection of Transfers uploaded under the same exact OAuth Grant. `GET /transfers?jti=` answers zero edges or one, and an edge's `cursor` is null: AndCo names no position inside it. A listing without `jti` can arrive later in this same shape, so read `edges` and never assume one. */
|
|
1406
|
+
TransferPage: {
|
|
1407
|
+
edges: {
|
|
1408
|
+
cursor: string | null;
|
|
1409
|
+
node: components["schemas"]["Transfer"];
|
|
1410
|
+
}[];
|
|
1411
|
+
pageInfo: components["schemas"]["PageInfo"];
|
|
1412
|
+
};
|
|
1413
|
+
/** @description The amount a transfer proposes: `value` is an integer in the minor unit of the currency (CLP: whole pesos), at most 2147483647 (int4, as Core stores it). `editable: true` lets the person who confirms set the amount on AndCo's confirmation screen, and `value` is the initial proposal shown there; the amount must fall within the Grant's `transactions.minimum` and `transactions.maximum` and not exceed the balance. Without `editable` (or with `false`) the amount is locked. What moved is `settled`. */
|
|
1414
|
+
TransferAmountProposal: {
|
|
1336
1415
|
/** @constant */
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
|
|
1416
|
+
currency: "CLP";
|
|
1417
|
+
/** @description An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647, because Core stores it as int4. A larger one is refused with `max_value`. */
|
|
1418
|
+
value: number;
|
|
1340
1419
|
/**
|
|
1420
|
+
* @description Defaults to false when omitted.
|
|
1341
1421
|
* @default false
|
|
1342
|
-
* @constant
|
|
1343
1422
|
*/
|
|
1344
|
-
editable?:
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
account_type: "checking" | "debit" | "savings";
|
|
1351
|
-
account_id: string;
|
|
1352
|
-
holder_id: string;
|
|
1353
|
-
/** @description The holder's name, at most 256 code points (`holder_name_too_long`). */
|
|
1354
|
-
holder_name: string;
|
|
1423
|
+
editable?: boolean;
|
|
1424
|
+
};
|
|
1425
|
+
/** @description The comment a transfer asks for, as Core's `comment`: at most 60 bytes of UTF-8 (`comment_too_long`). `editable: true` lets the person who confirms change it; the comment freezes at confirmation. */
|
|
1426
|
+
TransferCommentProposal: {
|
|
1427
|
+
/** @description Trimmed comment. An empty one is allowed. */
|
|
1428
|
+
value: string;
|
|
1355
1429
|
/**
|
|
1430
|
+
* @description Defaults to false when omitted.
|
|
1356
1431
|
* @default false
|
|
1357
|
-
* @constant
|
|
1358
1432
|
*/
|
|
1359
|
-
editable?:
|
|
1433
|
+
editable?: boolean;
|
|
1360
1434
|
};
|
|
1361
|
-
/** @description Authoritative Project-facing state of a transfer. `
|
|
1435
|
+
/** @description Authoritative Project-facing state of a transfer, in Core's vocabulary (ADR 0093). `sender` and `receiver` answer in the same matcher vocabulary as the request, and `comment` is the request's comment. `amount.value` is the proposal of the request, `amount.confirmed` the amount the person confirmed (null until then; it is what moves) and `settled` what it moved: reconciliation reads `settled`, which stays null until the money moved. `transfer.confirmed` and the events after it report the confirmed amount. */
|
|
1362
1436
|
TransferIntent: {
|
|
1363
1437
|
/** Format: uuid */
|
|
1364
1438
|
id: string;
|
|
1365
1439
|
/** Format: uri */
|
|
1366
1440
|
resource_server: string;
|
|
1367
|
-
note?: components["schemas"]["IntentNote"];
|
|
1368
1441
|
metadata: {
|
|
1369
1442
|
[key: string]: unknown;
|
|
1370
1443
|
};
|
|
@@ -1383,10 +1456,11 @@ export interface components {
|
|
|
1383
1456
|
status: components["schemas"]["IntentStatus"];
|
|
1384
1457
|
/** @description Whether a Signed Instruction created this Intent rather than a plain request. */
|
|
1385
1458
|
signed: boolean;
|
|
1386
|
-
/** @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. */
|
|
1387
|
-
|
|
1388
|
-
/** @description Null while the person has yet to complete where the money lands, when the request left it to the screen. Once she confirms, the account she wrote is answered back here, locked. */
|
|
1389
|
-
|
|
1459
|
+
/** @description The Remitente. 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. */
|
|
1460
|
+
sender: components["schemas"]["IntentAccount"] | null;
|
|
1461
|
+
/** @description The Receptor. Null while the person has yet to complete where the money lands, when the request left it to the screen. Once she confirms, the account she wrote is answered back here, locked. */
|
|
1462
|
+
receiver: components["schemas"]["TransferIntentReceiverProposal"] | null;
|
|
1463
|
+
comment?: components["schemas"]["TransferCommentProposal"];
|
|
1390
1464
|
amount: components["schemas"]["TransferAmount"];
|
|
1391
1465
|
settled: components["schemas"]["TransferSettlement"] | null;
|
|
1392
1466
|
fee: {
|
|
@@ -1396,14 +1470,13 @@ export interface components {
|
|
|
1396
1470
|
amount: "0";
|
|
1397
1471
|
};
|
|
1398
1472
|
/**
|
|
1399
|
-
* @description Present on every read of the Intent (GET, list, creation answers and signed-instruction answers) while it is `requires_action` and only a person can release it; absent when a credential may release it, and absent once the Intent is no longer `requires_action`. The same two words `409 interaction_required` gives as `reason` when a credential tries `POST /intents/{intent_id}/approve`. `bank_verification_required`: the transfer leaves its holder's own accounts and
|
|
1473
|
+
* @description Present on every read of the Intent (GET, list, creation answers and signed-instruction answers) while it is `requires_action` and only a person can release it; absent when a credential may release it, and absent once the Intent is no longer `requires_action`. The same two words `409 interaction_required` gives as `reason` when a credential tries `POST /intents/{intent_id}/approve`. `bank_verification_required`: the transfer leaves its holder's own accounts and AndCo asks the person to authorize it at `authorization_url` with their web AndPass and an SMS code; the Intent becomes `processing.confirmed` only when AndCo accepts it. A transfer created with `receiver: null` reads this way until the person completes it, because what she writes there always leaves her accounts. `source_account_required`: the person still picks the account the money leaves from.
|
|
1400
1474
|
* @enum {string}
|
|
1401
1475
|
*/
|
|
1402
1476
|
interaction_reason?: "bank_verification_required" | "source_account_required";
|
|
1403
1477
|
};
|
|
1404
|
-
/** @description The `application/json` half of creating a transfer: an Intent born waiting for an Approval. A null `
|
|
1478
|
+
/** @description The `application/json` half of creating a transfer: an Intent born waiting for an Approval, in Core's vocabulary (ADR 0093): `sender`, `receiver`, an integer `amount.value` and a `comment` of at most 60 bytes. A null `sender` is the confirmation screen, where a person picks the account the money leaves from among the Grant's sources, and a null `receiver` is the screen too: the person completes where the money goes (the bank, the type and number of the account, and its holder's RUT and name), and the server checks what she wrote against the Grant's `destinations` when she confirms, refusing one outside them with `invalid_destination`. Both default to null when omitted. A Receptor the request names is locked on the screen (`editable: true` is an `invalid_request`), and the amount is too unless `amount.editable` is true, in which case the person sets it. A Receptor at a bank is named in Core's vocabulary (`IntentAccountExternal`). A signed transfer is not an Intent: it is uploaded to `POST /transfers` as a `SignedTransferEnvelope`. */
|
|
1405
1479
|
TransferIntentCreate: {
|
|
1406
|
-
note?: components["schemas"]["IntentNote"];
|
|
1407
1480
|
/** @default {} */
|
|
1408
1481
|
metadata?: {
|
|
1409
1482
|
[key: string]: unknown;
|
|
@@ -1412,19 +1485,19 @@ export interface components {
|
|
|
1412
1485
|
type: "transfer";
|
|
1413
1486
|
amount: components["schemas"]["TransferAmountProposal"];
|
|
1414
1487
|
/**
|
|
1415
|
-
* @description The
|
|
1488
|
+
* @description The Remitente: the AndCo account the money leaves. Null leaves that choice to a person on a screen.
|
|
1416
1489
|
* @default null
|
|
1417
1490
|
*/
|
|
1418
|
-
|
|
1491
|
+
sender?: components["schemas"]["IntentAccount"] | null;
|
|
1419
1492
|
/**
|
|
1420
|
-
* @description
|
|
1493
|
+
* @description The Receptor: where the money lands. Null leaves it to a person on the screen, within the Grant's destinations.
|
|
1421
1494
|
* @default null
|
|
1422
1495
|
*/
|
|
1423
|
-
|
|
1496
|
+
receiver?: components["schemas"]["TransferIntentReceiverProposal"] | null;
|
|
1497
|
+
comment?: components["schemas"]["TransferCommentProposal"];
|
|
1424
1498
|
expires_in: string;
|
|
1425
1499
|
expires_at?: never;
|
|
1426
1500
|
} | {
|
|
1427
|
-
note?: components["schemas"]["IntentNote"];
|
|
1428
1501
|
/** @default {} */
|
|
1429
1502
|
metadata?: {
|
|
1430
1503
|
[key: string]: unknown;
|
|
@@ -1433,23 +1506,121 @@ export interface components {
|
|
|
1433
1506
|
type: "transfer";
|
|
1434
1507
|
amount: components["schemas"]["TransferAmountProposal"];
|
|
1435
1508
|
/**
|
|
1436
|
-
* @description The
|
|
1509
|
+
* @description The Remitente: the AndCo account the money leaves. Null leaves that choice to a person on a screen.
|
|
1437
1510
|
* @default null
|
|
1438
1511
|
*/
|
|
1439
|
-
|
|
1512
|
+
sender?: components["schemas"]["IntentAccount"] | null;
|
|
1440
1513
|
/**
|
|
1441
|
-
* @description
|
|
1514
|
+
* @description The Receptor: where the money lands. Null leaves it to a person on the screen, within the Grant's destinations.
|
|
1442
1515
|
* @default null
|
|
1443
1516
|
*/
|
|
1444
|
-
|
|
1517
|
+
receiver?: components["schemas"]["TransferIntentReceiverProposal"] | null;
|
|
1518
|
+
comment?: components["schemas"]["TransferCommentProposal"];
|
|
1445
1519
|
expires_in?: never;
|
|
1446
1520
|
expires_at: string | null;
|
|
1447
1521
|
};
|
|
1522
|
+
/** @description The Receptor of a transfer, in the `bank_transfer` matcher vocabulary: an AndCo account by AccountKey or identifier, or a Receptor at a Chilean bank in Core's vocabulary. */
|
|
1523
|
+
TransferIntentReceiver: components["schemas"]["IntentAccountKey"] | components["schemas"]["IntentAccountId"] | components["schemas"]["IntentAccountExternal"];
|
|
1524
|
+
/** @description The Receptor of a transfer when it is named, in the request and in the answered Intent alike. A named Receptor is always locked on the confirmation screen: `editable` only admits `false`, and `editable: true` fails at creation with `invalid_request`. To let the person choose where the money goes, the request says `receiver: null` instead (`TransferIntentCreate`). Defaults to false in a request; an answered Intent always states it, including a Receptor the person completed on the screen, which is locked once she confirms. */
|
|
1525
|
+
TransferIntentReceiverProposal: {
|
|
1526
|
+
/** @constant */
|
|
1527
|
+
type: "account_key";
|
|
1528
|
+
accountKey: string;
|
|
1529
|
+
/**
|
|
1530
|
+
* @default false
|
|
1531
|
+
* @constant
|
|
1532
|
+
*/
|
|
1533
|
+
editable?: false;
|
|
1534
|
+
} | {
|
|
1535
|
+
/** @constant */
|
|
1536
|
+
type: "account";
|
|
1537
|
+
/** Format: uuid */
|
|
1538
|
+
id: string;
|
|
1539
|
+
/**
|
|
1540
|
+
* @default false
|
|
1541
|
+
* @constant
|
|
1542
|
+
*/
|
|
1543
|
+
editable?: false;
|
|
1544
|
+
} | {
|
|
1545
|
+
/** @constant */
|
|
1546
|
+
type: "external";
|
|
1547
|
+
/** @constant */
|
|
1548
|
+
country: "CL";
|
|
1549
|
+
/** @description The bank's four-digit code in Core's catalog. Andco is `0739`. */
|
|
1550
|
+
bank_code: string;
|
|
1551
|
+
/**
|
|
1552
|
+
* @description Core's account type code: `"10"` savings, `"20"` checking, `"40"` debit (cuenta vista).
|
|
1553
|
+
* @enum {string}
|
|
1554
|
+
*/
|
|
1555
|
+
account_type: "10" | "20" | "40";
|
|
1556
|
+
account_number: string;
|
|
1557
|
+
/** @description The holder's name, at most 256 code points (`holder_name_too_long`). */
|
|
1558
|
+
name: string;
|
|
1559
|
+
/** @constant */
|
|
1560
|
+
national_kind_id: "RUT";
|
|
1561
|
+
/** @description The holder's RUT. */
|
|
1562
|
+
national_id: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* @default false
|
|
1565
|
+
* @constant
|
|
1566
|
+
*/
|
|
1567
|
+
editable?: false;
|
|
1568
|
+
};
|
|
1569
|
+
/** @description The Receptor, as Core's `receiver`: the account the money lands on, its holder, and the amount, an integer in the minor unit of the currency. `country` and `national_kind_id` are always declared. */
|
|
1570
|
+
TransferReceiver: {
|
|
1571
|
+
/** @constant */
|
|
1572
|
+
country: "CL";
|
|
1573
|
+
/** @description The bank's four-digit code in Core's catalog. Andco is `0739`. */
|
|
1574
|
+
bank_code: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* @description Core's account type code: `"10"` savings, `"20"` checking, `"40"` debit (cuenta vista).
|
|
1577
|
+
* @enum {string}
|
|
1578
|
+
*/
|
|
1579
|
+
account_type: "10" | "20" | "40";
|
|
1580
|
+
/** @description The account number, as its bank writes it. */
|
|
1581
|
+
account_number: string;
|
|
1582
|
+
/** @description The holder's name. Core stores it as it arrives and never compares it. */
|
|
1583
|
+
name: string;
|
|
1584
|
+
/** @constant */
|
|
1585
|
+
national_kind_id: "RUT";
|
|
1586
|
+
/** @description The holder's RUT. Core compares it as a normalized RUT. */
|
|
1587
|
+
national_id: string;
|
|
1588
|
+
/** @description An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647, because Core stores it as int4. A larger one is refused with `max_value`. */
|
|
1589
|
+
amount: number;
|
|
1590
|
+
/** @constant */
|
|
1591
|
+
currency: "CLP";
|
|
1592
|
+
/**
|
|
1593
|
+
* Format: email
|
|
1594
|
+
* @description Where Core notifies the Receptor.
|
|
1595
|
+
*/
|
|
1596
|
+
email?: string;
|
|
1597
|
+
};
|
|
1598
|
+
/** @description The Remitente, as Core's `sender`: the account the money leaves and its holder. `country` and `national_kind_id` are always declared. Core checks the country, the bank (`0739`), the account's own type and the holder's RUT; it stores `name` as it arrives. */
|
|
1599
|
+
TransferSender: {
|
|
1600
|
+
/** @constant */
|
|
1601
|
+
country: "CL";
|
|
1602
|
+
/** @description The bank's four-digit code in Core's catalog. Andco is `0739`. */
|
|
1603
|
+
bank_code: string;
|
|
1604
|
+
/**
|
|
1605
|
+
* @description Core's account type code: `"10"` savings, `"20"` checking, `"40"` debit (cuenta vista).
|
|
1606
|
+
* @enum {string}
|
|
1607
|
+
*/
|
|
1608
|
+
account_type: "10" | "20" | "40";
|
|
1609
|
+
/** @description The account number, as its bank writes it. */
|
|
1610
|
+
account_number: string;
|
|
1611
|
+
/** @description The holder's name. Core stores it as it arrives and never compares it. */
|
|
1612
|
+
name: string;
|
|
1613
|
+
/** @constant */
|
|
1614
|
+
national_kind_id: "RUT";
|
|
1615
|
+
/** @description The holder's RUT. Core compares it as a normalized RUT. */
|
|
1616
|
+
national_id: string;
|
|
1617
|
+
};
|
|
1448
1618
|
/** @description The money a transfer actually moved and when it settled. Present only once the transfer `succeeded`; null before, and null for ever when it fails, is rejected, cancelled or expires. */
|
|
1449
1619
|
TransferSettlement: {
|
|
1450
1620
|
/** @constant */
|
|
1451
1621
|
currency: "CLP";
|
|
1452
|
-
|
|
1622
|
+
/** @description An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647, because Core stores it as int4. A larger one is refused with `max_value`. */
|
|
1623
|
+
value: number;
|
|
1453
1624
|
/** Format: date-time */
|
|
1454
1625
|
at: string;
|
|
1455
1626
|
};
|
|
@@ -2974,7 +3145,7 @@ export interface operations {
|
|
|
2974
3145
|
authorization_url?: string;
|
|
2975
3146
|
/**
|
|
2976
3147
|
* Format: uri
|
|
2977
|
-
* @description Where in Platform the person brings their
|
|
3148
|
+
* @description Where in Platform the person brings their AndCo account connection back, for the `bank_*` reasons.
|
|
2978
3149
|
*/
|
|
2979
3150
|
interaction_url?: string;
|
|
2980
3151
|
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
@@ -3006,9 +3177,9 @@ export interface operations {
|
|
|
3006
3177
|
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
3007
3178
|
*/
|
|
3008
3179
|
intent_id?: string;
|
|
3009
|
-
/** @description How many
|
|
3180
|
+
/** @description How many digital accounts the Organization holds, closed ones included. Absent when they could not be read after the refusal. */
|
|
3010
3181
|
used?: number;
|
|
3011
|
-
/** @description How many
|
|
3182
|
+
/** @description How many digital accounts the Organization may hold. Absent when it could not be read after the refusal. */
|
|
3012
3183
|
quota?: number;
|
|
3013
3184
|
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
3014
3185
|
message?: string;
|
|
@@ -3268,10 +3439,10 @@ export interface operations {
|
|
|
3268
3439
|
/** @constant */
|
|
3269
3440
|
error: "not_implemented";
|
|
3270
3441
|
/**
|
|
3271
|
-
* @description Which case is unavailable: closing an account (postponed with no date), opening an additional account or a transfer between two accounts of the same holder where
|
|
3442
|
+
* @description Which case is unavailable: closing an account (postponed with no date), opening an additional account or a transfer between two accounts of the same holder where AndCo does not serve them, a signed transfer that leaves its holder where AndCo does not verify signatures yet, and the payment shapes not built yet. Absent for a case this version of the contract does not name yet.
|
|
3272
3443
|
* @enum {string}
|
|
3273
3444
|
*/
|
|
3274
|
-
code?: "account_closure_not_implemented" | "account_opening_not_implemented" | "own_account_transfer_not_implemented" | "external_transfer_execution_not_implemented" | "multiple_destinations_not_implemented" | "split_payments_not_implemented" | "multiple_instructions_not_implemented" | "intent_type_not_decidable";
|
|
3445
|
+
code?: "account_closure_not_implemented" | "account_opening_not_implemented" | "own_account_transfer_not_implemented" | "signed_outgoing_transfer_not_implemented" | "external_transfer_execution_not_implemented" | "multiple_destinations_not_implemented" | "split_payments_not_implemented" | "multiple_instructions_not_implemented" | "intent_type_not_decidable";
|
|
3275
3446
|
/**
|
|
3276
3447
|
* Format: uuid
|
|
3277
3448
|
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
@@ -3717,11 +3888,11 @@ export interface operations {
|
|
|
3717
3888
|
/** @constant */
|
|
3718
3889
|
error: "invalid_signed_instruction";
|
|
3719
3890
|
/**
|
|
3720
|
-
* @description The one cause: what did not verify, or `invalid_claims` when the verified claims are not an Intent.
|
|
3891
|
+
* @description The one cause: what did not verify, or `invalid_claims` when the verified claims are not what the operation takes (an Intent on `POST /intents`, a transfer on `POST /transfers`).
|
|
3721
3892
|
* @enum {string}
|
|
3722
3893
|
*/
|
|
3723
|
-
reason: "malformed_assertion" | "missing_key_id" | "disallowed_algorithm" | "unknown_key" | "revoked_key" | "unusable_key" | "invalid_signature" | "premature_assertion" | "missing_expiration" | "missing_instruction_id" | "missing_claim" | "wrong_audience" | "wrong_issuer" | "verification_failed" | "invalid_claims";
|
|
3724
|
-
/** @description On `invalid_claims`, what failed in the claims,
|
|
3894
|
+
reason: "malformed_assertion" | "missing_signature" | "missing_key_id" | "disallowed_algorithm" | "unknown_key" | "revoked_key" | "expired_key" | "unusable_key" | "unsynced_key" | "invalid_signature" | "premature_assertion" | "missing_expiration" | "expiration_too_soon" | "missing_instruction_id" | "missing_claim" | "wrong_audience" | "wrong_issuer" | "verification_failed" | "invalid_claims";
|
|
3895
|
+
/** @description On `invalid_claims`, what failed in the claims; on `malformed_assertion` of a signed transfer, what failed in its envelope. As `invalid_request` names it. */
|
|
3725
3896
|
issues?: {
|
|
3726
3897
|
/** @description What failed, as a stable code: a schema check such as `max_length`, `regex` or `uuid`, or the code of a rule such as `note_too_long`. Map it to your own words. */
|
|
3727
3898
|
type: string;
|
|
@@ -3850,7 +4021,7 @@ export interface operations {
|
|
|
3850
4021
|
authorization_url?: string;
|
|
3851
4022
|
/**
|
|
3852
4023
|
* Format: uri
|
|
3853
|
-
* @description Where in Platform the person brings their
|
|
4024
|
+
* @description Where in Platform the person brings their AndCo account connection back, for the `bank_*` reasons.
|
|
3854
4025
|
*/
|
|
3855
4026
|
interaction_url?: string;
|
|
3856
4027
|
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
@@ -3882,9 +4053,9 @@ export interface operations {
|
|
|
3882
4053
|
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
3883
4054
|
*/
|
|
3884
4055
|
intent_id?: string;
|
|
3885
|
-
/** @description How many
|
|
4056
|
+
/** @description How many digital accounts the Organization holds, closed ones included. Absent when they could not be read after the refusal. */
|
|
3886
4057
|
used?: number;
|
|
3887
|
-
/** @description How many
|
|
4058
|
+
/** @description How many digital accounts the Organization may hold. Absent when it could not be read after the refusal. */
|
|
3888
4059
|
quota?: number;
|
|
3889
4060
|
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
3890
4061
|
message?: string;
|
|
@@ -4176,10 +4347,10 @@ export interface operations {
|
|
|
4176
4347
|
/** @constant */
|
|
4177
4348
|
error: "not_implemented";
|
|
4178
4349
|
/**
|
|
4179
|
-
* @description Which case is unavailable: closing an account (postponed with no date), opening an additional account or a transfer between two accounts of the same holder where
|
|
4350
|
+
* @description Which case is unavailable: closing an account (postponed with no date), opening an additional account or a transfer between two accounts of the same holder where AndCo does not serve them, a signed transfer that leaves its holder where AndCo does not verify signatures yet, and the payment shapes not built yet. Absent for a case this version of the contract does not name yet.
|
|
4180
4351
|
* @enum {string}
|
|
4181
4352
|
*/
|
|
4182
|
-
code?: "account_closure_not_implemented" | "account_opening_not_implemented" | "own_account_transfer_not_implemented" | "external_transfer_execution_not_implemented" | "multiple_destinations_not_implemented" | "split_payments_not_implemented" | "multiple_instructions_not_implemented" | "intent_type_not_decidable";
|
|
4353
|
+
code?: "account_closure_not_implemented" | "account_opening_not_implemented" | "own_account_transfer_not_implemented" | "signed_outgoing_transfer_not_implemented" | "external_transfer_execution_not_implemented" | "multiple_destinations_not_implemented" | "split_payments_not_implemented" | "multiple_instructions_not_implemented" | "intent_type_not_decidable";
|
|
4183
4354
|
/**
|
|
4184
4355
|
* Format: uuid
|
|
4185
4356
|
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
@@ -4210,33 +4381,43 @@ export interface operations {
|
|
|
4210
4381
|
};
|
|
4211
4382
|
};
|
|
4212
4383
|
};
|
|
4213
|
-
|
|
4384
|
+
listTransfers: {
|
|
4214
4385
|
parameters: {
|
|
4215
|
-
query
|
|
4386
|
+
query: {
|
|
4387
|
+
jti: string;
|
|
4388
|
+
};
|
|
4216
4389
|
header?: never;
|
|
4217
4390
|
path?: never;
|
|
4218
4391
|
cookie?: never;
|
|
4219
4392
|
};
|
|
4220
4393
|
requestBody?: never;
|
|
4221
4394
|
responses: {
|
|
4222
|
-
/** @description The
|
|
4395
|
+
/** @description The Transfers found: zero or one, as the Project that uploaded them reads them */
|
|
4223
4396
|
200: {
|
|
4224
4397
|
headers: {
|
|
4225
4398
|
[name: string]: unknown;
|
|
4226
4399
|
};
|
|
4227
4400
|
content: {
|
|
4228
|
-
"application/json": components["schemas"]["
|
|
4401
|
+
"application/json": components["schemas"]["TransferPage"];
|
|
4229
4402
|
};
|
|
4230
4403
|
};
|
|
4231
|
-
/** @description `
|
|
4232
|
-
|
|
4404
|
+
/** @description `invalid_request` */
|
|
4405
|
+
400: {
|
|
4233
4406
|
headers: {
|
|
4234
4407
|
[name: string]: unknown;
|
|
4235
4408
|
};
|
|
4236
4409
|
content: {
|
|
4237
4410
|
"application/json": {
|
|
4238
4411
|
/** @constant */
|
|
4239
|
-
error: "
|
|
4412
|
+
error: "invalid_request";
|
|
4413
|
+
issues: {
|
|
4414
|
+
/** @description What failed, as a stable code: a schema check such as `max_length`, `regex` or `uuid`, or the code of a rule such as `note_too_long`. Map it to your own words. */
|
|
4415
|
+
type: string;
|
|
4416
|
+
/** @description Where it failed, as the keys from the root of the part of the request it belongs to; empty for the part as a whole. */
|
|
4417
|
+
path: string[];
|
|
4418
|
+
/** @description What the check required, when it has a value: the maximum of `max_length`, for instance. */
|
|
4419
|
+
requirement?: unknown;
|
|
4420
|
+
}[];
|
|
4240
4421
|
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4241
4422
|
message?: string;
|
|
4242
4423
|
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
@@ -4244,26 +4425,15 @@ export interface operations {
|
|
|
4244
4425
|
};
|
|
4245
4426
|
};
|
|
4246
4427
|
};
|
|
4247
|
-
/** @description `
|
|
4248
|
-
|
|
4428
|
+
/** @description `invalid_token` */
|
|
4429
|
+
401: {
|
|
4249
4430
|
headers: {
|
|
4250
4431
|
[name: string]: unknown;
|
|
4251
4432
|
};
|
|
4252
4433
|
content: {
|
|
4253
4434
|
"application/json": {
|
|
4254
4435
|
/** @constant */
|
|
4255
|
-
error: "
|
|
4256
|
-
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4257
|
-
message?: string;
|
|
4258
|
-
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4259
|
-
hint?: string;
|
|
4260
|
-
} | {
|
|
4261
|
-
/** @constant */
|
|
4262
|
-
error: "insufficient_authorization";
|
|
4263
|
-
/** @description The authorization detail type the Grant has to cover for this operation. */
|
|
4264
|
-
required_type?: string;
|
|
4265
|
-
/** @description The action the authorization detail has to name for this operation. */
|
|
4266
|
-
required_action?: string;
|
|
4436
|
+
error: "invalid_token";
|
|
4267
4437
|
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4268
4438
|
message?: string;
|
|
4269
4439
|
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
@@ -4271,15 +4441,15 @@ export interface operations {
|
|
|
4271
4441
|
};
|
|
4272
4442
|
};
|
|
4273
4443
|
};
|
|
4274
|
-
/** @description `
|
|
4275
|
-
|
|
4444
|
+
/** @description `invalid_origin` */
|
|
4445
|
+
403: {
|
|
4276
4446
|
headers: {
|
|
4277
4447
|
[name: string]: unknown;
|
|
4278
4448
|
};
|
|
4279
4449
|
content: {
|
|
4280
4450
|
"application/json": {
|
|
4281
4451
|
/** @constant */
|
|
4282
|
-
error: "
|
|
4452
|
+
error: "invalid_origin";
|
|
4283
4453
|
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4284
4454
|
message?: string;
|
|
4285
4455
|
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
@@ -4287,25 +4457,15 @@ export interface operations {
|
|
|
4287
4457
|
};
|
|
4288
4458
|
};
|
|
4289
4459
|
};
|
|
4290
|
-
/** @description `
|
|
4291
|
-
|
|
4460
|
+
/** @description `unsupported_version` */
|
|
4461
|
+
404: {
|
|
4292
4462
|
headers: {
|
|
4293
4463
|
[name: string]: unknown;
|
|
4294
4464
|
};
|
|
4295
4465
|
content: {
|
|
4296
4466
|
"application/json": {
|
|
4297
4467
|
/** @constant */
|
|
4298
|
-
error: "
|
|
4299
|
-
/**
|
|
4300
|
-
* @description What the person has to do: type the web PIN (`bank_connection_pin_required`), connect the account again (`bank_connection_reconnect_required`) or, for an Organization, connect another bank representative (`bank_representative_replacement_required`).
|
|
4301
|
-
* @enum {string}
|
|
4302
|
-
*/
|
|
4303
|
-
code: "bank_connection_pin_required" | "bank_connection_reconnect_required" | "bank_representative_replacement_required";
|
|
4304
|
-
/**
|
|
4305
|
-
* Format: uri
|
|
4306
|
-
* @description Where in Platform the person does what `code` names.
|
|
4307
|
-
*/
|
|
4308
|
-
interaction_url?: string;
|
|
4468
|
+
error: "unsupported_version";
|
|
4309
4469
|
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4310
4470
|
message?: string;
|
|
4311
4471
|
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
@@ -4347,12 +4507,548 @@ export interface operations {
|
|
|
4347
4507
|
};
|
|
4348
4508
|
};
|
|
4349
4509
|
};
|
|
4350
|
-
|
|
4510
|
+
createTransfer: {
|
|
4351
4511
|
parameters: {
|
|
4352
4512
|
query?: never;
|
|
4353
4513
|
header?: never;
|
|
4354
|
-
path
|
|
4355
|
-
|
|
4514
|
+
path?: never;
|
|
4515
|
+
cookie?: never;
|
|
4516
|
+
};
|
|
4517
|
+
requestBody: {
|
|
4518
|
+
content: {
|
|
4519
|
+
"application/jose+json": components["schemas"]["SignedTransferEnvelope"];
|
|
4520
|
+
};
|
|
4521
|
+
};
|
|
4522
|
+
responses: {
|
|
4523
|
+
/** @description The Transfer uploaded, or the same one from a repeated instruction */
|
|
4524
|
+
201: {
|
|
4525
|
+
headers: {
|
|
4526
|
+
[name: string]: unknown;
|
|
4527
|
+
};
|
|
4528
|
+
content: {
|
|
4529
|
+
"application/json": components["schemas"]["Transfer"];
|
|
4530
|
+
};
|
|
4531
|
+
};
|
|
4532
|
+
/** @description `invalid_request`, `idempotency_key_not_allowed`, `invalid_signed_instruction` */
|
|
4533
|
+
400: {
|
|
4534
|
+
headers: {
|
|
4535
|
+
[name: string]: unknown;
|
|
4536
|
+
};
|
|
4537
|
+
content: {
|
|
4538
|
+
"application/json": {
|
|
4539
|
+
/** @constant */
|
|
4540
|
+
error: "invalid_request";
|
|
4541
|
+
issues: {
|
|
4542
|
+
/** @description What failed, as a stable code: a schema check such as `max_length`, `regex` or `uuid`, or the code of a rule such as `note_too_long`. Map it to your own words. */
|
|
4543
|
+
type: string;
|
|
4544
|
+
/** @description Where it failed, as the keys from the root of the part of the request it belongs to; empty for the part as a whole. */
|
|
4545
|
+
path: string[];
|
|
4546
|
+
/** @description What the check required, when it has a value: the maximum of `max_length`, for instance. */
|
|
4547
|
+
requirement?: unknown;
|
|
4548
|
+
}[];
|
|
4549
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4550
|
+
message?: string;
|
|
4551
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4552
|
+
hint?: string;
|
|
4553
|
+
} | {
|
|
4554
|
+
/** @constant */
|
|
4555
|
+
error: "idempotency_key_not_allowed";
|
|
4556
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4557
|
+
message?: string;
|
|
4558
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4559
|
+
hint?: string;
|
|
4560
|
+
} | {
|
|
4561
|
+
/** @constant */
|
|
4562
|
+
error: "invalid_signed_instruction";
|
|
4563
|
+
/**
|
|
4564
|
+
* @description The one cause: what did not verify, or `invalid_claims` when the verified claims are not what the operation takes (an Intent on `POST /intents`, a transfer on `POST /transfers`).
|
|
4565
|
+
* @enum {string}
|
|
4566
|
+
*/
|
|
4567
|
+
reason: "malformed_assertion" | "missing_signature" | "missing_key_id" | "disallowed_algorithm" | "unknown_key" | "revoked_key" | "expired_key" | "unusable_key" | "unsynced_key" | "invalid_signature" | "premature_assertion" | "missing_expiration" | "expiration_too_soon" | "missing_instruction_id" | "missing_claim" | "wrong_audience" | "wrong_issuer" | "verification_failed" | "invalid_claims";
|
|
4568
|
+
/** @description On `invalid_claims`, what failed in the claims; on `malformed_assertion` of a signed transfer, what failed in its envelope. As `invalid_request` names it. */
|
|
4569
|
+
issues?: {
|
|
4570
|
+
/** @description What failed, as a stable code: a schema check such as `max_length`, `regex` or `uuid`, or the code of a rule such as `note_too_long`. Map it to your own words. */
|
|
4571
|
+
type: string;
|
|
4572
|
+
/** @description Where it failed, as the keys from the root of the part of the request it belongs to; empty for the part as a whole. */
|
|
4573
|
+
path: string[];
|
|
4574
|
+
/** @description What the check required, when it has a value: the maximum of `max_length`, for instance. */
|
|
4575
|
+
requirement?: unknown;
|
|
4576
|
+
}[];
|
|
4577
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4578
|
+
message?: string;
|
|
4579
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4580
|
+
hint?: string;
|
|
4581
|
+
};
|
|
4582
|
+
};
|
|
4583
|
+
};
|
|
4584
|
+
/** @description `invalid_token`, `expired_signed_instruction` */
|
|
4585
|
+
401: {
|
|
4586
|
+
headers: {
|
|
4587
|
+
[name: string]: unknown;
|
|
4588
|
+
};
|
|
4589
|
+
content: {
|
|
4590
|
+
"application/json": {
|
|
4591
|
+
/** @constant */
|
|
4592
|
+
error: "invalid_token";
|
|
4593
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4594
|
+
message?: string;
|
|
4595
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4596
|
+
hint?: string;
|
|
4597
|
+
} | {
|
|
4598
|
+
/** @constant */
|
|
4599
|
+
error: "expired_signed_instruction";
|
|
4600
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4601
|
+
message?: string;
|
|
4602
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4603
|
+
hint?: string;
|
|
4604
|
+
};
|
|
4605
|
+
};
|
|
4606
|
+
};
|
|
4607
|
+
/** @description `invalid_origin`, `insufficient_authorization` */
|
|
4608
|
+
403: {
|
|
4609
|
+
headers: {
|
|
4610
|
+
[name: string]: unknown;
|
|
4611
|
+
};
|
|
4612
|
+
content: {
|
|
4613
|
+
"application/json": {
|
|
4614
|
+
/** @constant */
|
|
4615
|
+
error: "invalid_origin";
|
|
4616
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4617
|
+
message?: string;
|
|
4618
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4619
|
+
hint?: string;
|
|
4620
|
+
} | {
|
|
4621
|
+
/** @constant */
|
|
4622
|
+
error: "insufficient_authorization";
|
|
4623
|
+
/** @description The authorization detail type the Grant has to cover for this operation. */
|
|
4624
|
+
required_type?: string;
|
|
4625
|
+
/** @description The action the authorization detail has to name for this operation. */
|
|
4626
|
+
required_action?: string;
|
|
4627
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4628
|
+
message?: string;
|
|
4629
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4630
|
+
hint?: string;
|
|
4631
|
+
};
|
|
4632
|
+
};
|
|
4633
|
+
};
|
|
4634
|
+
/** @description `unsupported_version` */
|
|
4635
|
+
404: {
|
|
4636
|
+
headers: {
|
|
4637
|
+
[name: string]: unknown;
|
|
4638
|
+
};
|
|
4639
|
+
content: {
|
|
4640
|
+
"application/json": {
|
|
4641
|
+
/** @constant */
|
|
4642
|
+
error: "unsupported_version";
|
|
4643
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4644
|
+
message?: string;
|
|
4645
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4646
|
+
hint?: string;
|
|
4647
|
+
};
|
|
4648
|
+
};
|
|
4649
|
+
};
|
|
4650
|
+
/** @description `idempotency_conflict`, `interaction_required` */
|
|
4651
|
+
409: {
|
|
4652
|
+
headers: {
|
|
4653
|
+
[name: string]: unknown;
|
|
4654
|
+
};
|
|
4655
|
+
content: {
|
|
4656
|
+
"application/json": {
|
|
4657
|
+
/** @constant */
|
|
4658
|
+
error: "idempotency_conflict";
|
|
4659
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4660
|
+
message?: string;
|
|
4661
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4662
|
+
hint?: string;
|
|
4663
|
+
} | {
|
|
4664
|
+
/** @constant */
|
|
4665
|
+
error: "interaction_required";
|
|
4666
|
+
/**
|
|
4667
|
+
* Format: uuid
|
|
4668
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4669
|
+
*/
|
|
4670
|
+
intent_id?: string;
|
|
4671
|
+
/**
|
|
4672
|
+
* @description Why only a person can go on.
|
|
4673
|
+
* @enum {string}
|
|
4674
|
+
*/
|
|
4675
|
+
reason?: "bank_verification_required" | "source_account_required" | "bank_connection_pin_required" | "bank_connection_reconnect_required" | "bank_representative_replacement_required";
|
|
4676
|
+
/**
|
|
4677
|
+
* Format: uri
|
|
4678
|
+
* @description Where the person completes the Intent, for `bank_verification_required` and `source_account_required`.
|
|
4679
|
+
*/
|
|
4680
|
+
authorization_url?: string;
|
|
4681
|
+
/**
|
|
4682
|
+
* Format: uri
|
|
4683
|
+
* @description Where in Platform the person brings their AndCo account connection back, for the `bank_*` reasons.
|
|
4684
|
+
*/
|
|
4685
|
+
interaction_url?: string;
|
|
4686
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4687
|
+
message?: string;
|
|
4688
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4689
|
+
hint?: string;
|
|
4690
|
+
};
|
|
4691
|
+
};
|
|
4692
|
+
};
|
|
4693
|
+
/** @description `payload_too_large` */
|
|
4694
|
+
413: {
|
|
4695
|
+
headers: {
|
|
4696
|
+
[name: string]: unknown;
|
|
4697
|
+
};
|
|
4698
|
+
content: {
|
|
4699
|
+
"application/json": {
|
|
4700
|
+
/** @constant */
|
|
4701
|
+
error: "payload_too_large";
|
|
4702
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4703
|
+
message?: string;
|
|
4704
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4705
|
+
hint?: string;
|
|
4706
|
+
};
|
|
4707
|
+
};
|
|
4708
|
+
};
|
|
4709
|
+
/** @description `unsupported_media_type` */
|
|
4710
|
+
415: {
|
|
4711
|
+
headers: {
|
|
4712
|
+
[name: string]: unknown;
|
|
4713
|
+
};
|
|
4714
|
+
content: {
|
|
4715
|
+
"application/json": {
|
|
4716
|
+
/** @constant */
|
|
4717
|
+
error: "unsupported_media_type";
|
|
4718
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4719
|
+
message?: string;
|
|
4720
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4721
|
+
hint?: string;
|
|
4722
|
+
};
|
|
4723
|
+
};
|
|
4724
|
+
};
|
|
4725
|
+
/** @description `sender_mismatch`, `transfer_sender_identity_unavailable`, `amount_out_of_grant`, `invalid_source`, `invalid_destination`, `bank_connection_unavailable`, `bank_refused`, `insufficient_funds`, `bank_rejected`, `bank_review_required` */
|
|
4726
|
+
422: {
|
|
4727
|
+
headers: {
|
|
4728
|
+
[name: string]: unknown;
|
|
4729
|
+
};
|
|
4730
|
+
content: {
|
|
4731
|
+
"application/json": {
|
|
4732
|
+
/** @constant */
|
|
4733
|
+
error: "sender_mismatch";
|
|
4734
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4735
|
+
message?: string;
|
|
4736
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4737
|
+
hint?: string;
|
|
4738
|
+
} | {
|
|
4739
|
+
/** @constant */
|
|
4740
|
+
error: "transfer_sender_identity_unavailable";
|
|
4741
|
+
/**
|
|
4742
|
+
* Format: uuid
|
|
4743
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4744
|
+
*/
|
|
4745
|
+
intent_id?: string;
|
|
4746
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4747
|
+
message?: string;
|
|
4748
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4749
|
+
hint?: string;
|
|
4750
|
+
} | {
|
|
4751
|
+
/** @constant */
|
|
4752
|
+
error: "amount_out_of_grant";
|
|
4753
|
+
/**
|
|
4754
|
+
* Format: uuid
|
|
4755
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4756
|
+
*/
|
|
4757
|
+
intent_id?: string;
|
|
4758
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4759
|
+
message?: string;
|
|
4760
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4761
|
+
hint?: string;
|
|
4762
|
+
} | {
|
|
4763
|
+
/** @constant */
|
|
4764
|
+
error: "invalid_source";
|
|
4765
|
+
/**
|
|
4766
|
+
* Format: uuid
|
|
4767
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4768
|
+
*/
|
|
4769
|
+
intent_id?: string;
|
|
4770
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4771
|
+
message?: string;
|
|
4772
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4773
|
+
hint?: string;
|
|
4774
|
+
} | {
|
|
4775
|
+
/** @constant */
|
|
4776
|
+
error: "invalid_destination";
|
|
4777
|
+
/**
|
|
4778
|
+
* Format: uuid
|
|
4779
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4780
|
+
*/
|
|
4781
|
+
intent_id?: string;
|
|
4782
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4783
|
+
message?: string;
|
|
4784
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4785
|
+
hint?: string;
|
|
4786
|
+
} | {
|
|
4787
|
+
/** @constant */
|
|
4788
|
+
error: "bank_connection_unavailable";
|
|
4789
|
+
/**
|
|
4790
|
+
* Format: uuid
|
|
4791
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4792
|
+
*/
|
|
4793
|
+
intent_id?: string;
|
|
4794
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4795
|
+
message?: string;
|
|
4796
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4797
|
+
hint?: string;
|
|
4798
|
+
} | {
|
|
4799
|
+
/** @constant */
|
|
4800
|
+
error: "bank_refused";
|
|
4801
|
+
/**
|
|
4802
|
+
* Format: uuid
|
|
4803
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4804
|
+
*/
|
|
4805
|
+
intent_id?: string;
|
|
4806
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4807
|
+
message?: string;
|
|
4808
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4809
|
+
hint?: string;
|
|
4810
|
+
} | {
|
|
4811
|
+
/** @constant */
|
|
4812
|
+
error: "insufficient_funds";
|
|
4813
|
+
/**
|
|
4814
|
+
* Format: uuid
|
|
4815
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4816
|
+
*/
|
|
4817
|
+
intent_id?: string;
|
|
4818
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4819
|
+
message?: string;
|
|
4820
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4821
|
+
hint?: string;
|
|
4822
|
+
} | {
|
|
4823
|
+
/** @constant */
|
|
4824
|
+
error: "bank_rejected";
|
|
4825
|
+
/**
|
|
4826
|
+
* Format: uuid
|
|
4827
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4828
|
+
*/
|
|
4829
|
+
intent_id?: string;
|
|
4830
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4831
|
+
message?: string;
|
|
4832
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4833
|
+
hint?: string;
|
|
4834
|
+
} | {
|
|
4835
|
+
/** @constant */
|
|
4836
|
+
error: "bank_review_required";
|
|
4837
|
+
/**
|
|
4838
|
+
* Format: uuid
|
|
4839
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4840
|
+
*/
|
|
4841
|
+
intent_id?: string;
|
|
4842
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4843
|
+
message?: string;
|
|
4844
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4845
|
+
hint?: string;
|
|
4846
|
+
};
|
|
4847
|
+
};
|
|
4848
|
+
};
|
|
4849
|
+
/** @description `server_error` */
|
|
4850
|
+
500: {
|
|
4851
|
+
headers: {
|
|
4852
|
+
[name: string]: unknown;
|
|
4853
|
+
};
|
|
4854
|
+
content: {
|
|
4855
|
+
"application/json": {
|
|
4856
|
+
/** @constant */
|
|
4857
|
+
error: "server_error";
|
|
4858
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4859
|
+
message?: string;
|
|
4860
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4861
|
+
hint?: string;
|
|
4862
|
+
};
|
|
4863
|
+
};
|
|
4864
|
+
};
|
|
4865
|
+
/** @description `not_implemented` */
|
|
4866
|
+
501: {
|
|
4867
|
+
headers: {
|
|
4868
|
+
[name: string]: unknown;
|
|
4869
|
+
};
|
|
4870
|
+
content: {
|
|
4871
|
+
"application/json": {
|
|
4872
|
+
/** @constant */
|
|
4873
|
+
error: "not_implemented";
|
|
4874
|
+
/**
|
|
4875
|
+
* @description Which case is unavailable: closing an account (postponed with no date), opening an additional account or a transfer between two accounts of the same holder where AndCo does not serve them, a signed transfer that leaves its holder where AndCo does not verify signatures yet, and the payment shapes not built yet. Absent for a case this version of the contract does not name yet.
|
|
4876
|
+
* @enum {string}
|
|
4877
|
+
*/
|
|
4878
|
+
code?: "account_closure_not_implemented" | "account_opening_not_implemented" | "own_account_transfer_not_implemented" | "signed_outgoing_transfer_not_implemented" | "external_transfer_execution_not_implemented" | "multiple_destinations_not_implemented" | "split_payments_not_implemented" | "multiple_instructions_not_implemented" | "intent_type_not_decidable";
|
|
4879
|
+
/**
|
|
4880
|
+
* Format: uuid
|
|
4881
|
+
* @description The Intent the refusal is about, when it was refused at its release rather than at its creation.
|
|
4882
|
+
*/
|
|
4883
|
+
intent_id?: string;
|
|
4884
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4885
|
+
message?: string;
|
|
4886
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4887
|
+
hint?: string;
|
|
4888
|
+
};
|
|
4889
|
+
};
|
|
4890
|
+
};
|
|
4891
|
+
/** @description `temporarily_unavailable` */
|
|
4892
|
+
503: {
|
|
4893
|
+
headers: {
|
|
4894
|
+
[name: string]: unknown;
|
|
4895
|
+
};
|
|
4896
|
+
content: {
|
|
4897
|
+
"application/json": {
|
|
4898
|
+
/** @constant */
|
|
4899
|
+
error: "temporarily_unavailable";
|
|
4900
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4901
|
+
message?: string;
|
|
4902
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4903
|
+
hint?: string;
|
|
4904
|
+
};
|
|
4905
|
+
};
|
|
4906
|
+
};
|
|
4907
|
+
};
|
|
4908
|
+
};
|
|
4909
|
+
getBankCatalog: {
|
|
4910
|
+
parameters: {
|
|
4911
|
+
query?: never;
|
|
4912
|
+
header?: never;
|
|
4913
|
+
path?: never;
|
|
4914
|
+
cookie?: never;
|
|
4915
|
+
};
|
|
4916
|
+
requestBody?: never;
|
|
4917
|
+
responses: {
|
|
4918
|
+
/** @description The banks a transfer can be sent to, ordered as the bank lists them */
|
|
4919
|
+
200: {
|
|
4920
|
+
headers: {
|
|
4921
|
+
[name: string]: unknown;
|
|
4922
|
+
};
|
|
4923
|
+
content: {
|
|
4924
|
+
"application/json": components["schemas"]["BankCatalogPage"];
|
|
4925
|
+
};
|
|
4926
|
+
};
|
|
4927
|
+
/** @description `invalid_token` */
|
|
4928
|
+
401: {
|
|
4929
|
+
headers: {
|
|
4930
|
+
[name: string]: unknown;
|
|
4931
|
+
};
|
|
4932
|
+
content: {
|
|
4933
|
+
"application/json": {
|
|
4934
|
+
/** @constant */
|
|
4935
|
+
error: "invalid_token";
|
|
4936
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4937
|
+
message?: string;
|
|
4938
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4939
|
+
hint?: string;
|
|
4940
|
+
};
|
|
4941
|
+
};
|
|
4942
|
+
};
|
|
4943
|
+
/** @description `invalid_origin`, `insufficient_authorization` */
|
|
4944
|
+
403: {
|
|
4945
|
+
headers: {
|
|
4946
|
+
[name: string]: unknown;
|
|
4947
|
+
};
|
|
4948
|
+
content: {
|
|
4949
|
+
"application/json": {
|
|
4950
|
+
/** @constant */
|
|
4951
|
+
error: "invalid_origin";
|
|
4952
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4953
|
+
message?: string;
|
|
4954
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4955
|
+
hint?: string;
|
|
4956
|
+
} | {
|
|
4957
|
+
/** @constant */
|
|
4958
|
+
error: "insufficient_authorization";
|
|
4959
|
+
/** @description The authorization detail type the Grant has to cover for this operation. */
|
|
4960
|
+
required_type?: string;
|
|
4961
|
+
/** @description The action the authorization detail has to name for this operation. */
|
|
4962
|
+
required_action?: string;
|
|
4963
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4964
|
+
message?: string;
|
|
4965
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4966
|
+
hint?: string;
|
|
4967
|
+
};
|
|
4968
|
+
};
|
|
4969
|
+
};
|
|
4970
|
+
/** @description `unsupported_version` */
|
|
4971
|
+
404: {
|
|
4972
|
+
headers: {
|
|
4973
|
+
[name: string]: unknown;
|
|
4974
|
+
};
|
|
4975
|
+
content: {
|
|
4976
|
+
"application/json": {
|
|
4977
|
+
/** @constant */
|
|
4978
|
+
error: "unsupported_version";
|
|
4979
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
4980
|
+
message?: string;
|
|
4981
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
4982
|
+
hint?: string;
|
|
4983
|
+
};
|
|
4984
|
+
};
|
|
4985
|
+
};
|
|
4986
|
+
/** @description `interaction_required` */
|
|
4987
|
+
409: {
|
|
4988
|
+
headers: {
|
|
4989
|
+
[name: string]: unknown;
|
|
4990
|
+
};
|
|
4991
|
+
content: {
|
|
4992
|
+
"application/json": {
|
|
4993
|
+
/** @constant */
|
|
4994
|
+
error: "interaction_required";
|
|
4995
|
+
/**
|
|
4996
|
+
* @description What the person has to do: type the web AndPass (`bank_connection_pin_required`), connect the account again (`bank_connection_reconnect_required`) or, for an Organization, connect another account representative (`bank_representative_replacement_required`).
|
|
4997
|
+
* @enum {string}
|
|
4998
|
+
*/
|
|
4999
|
+
code: "bank_connection_pin_required" | "bank_connection_reconnect_required" | "bank_representative_replacement_required";
|
|
5000
|
+
/**
|
|
5001
|
+
* Format: uri
|
|
5002
|
+
* @description Where in Platform the person does what `code` names.
|
|
5003
|
+
*/
|
|
5004
|
+
interaction_url?: string;
|
|
5005
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5006
|
+
message?: string;
|
|
5007
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5008
|
+
hint?: string;
|
|
5009
|
+
};
|
|
5010
|
+
};
|
|
5011
|
+
};
|
|
5012
|
+
/** @description `server_error` */
|
|
5013
|
+
500: {
|
|
5014
|
+
headers: {
|
|
5015
|
+
[name: string]: unknown;
|
|
5016
|
+
};
|
|
5017
|
+
content: {
|
|
5018
|
+
"application/json": {
|
|
5019
|
+
/** @constant */
|
|
5020
|
+
error: "server_error";
|
|
5021
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5022
|
+
message?: string;
|
|
5023
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5024
|
+
hint?: string;
|
|
5025
|
+
};
|
|
5026
|
+
};
|
|
5027
|
+
};
|
|
5028
|
+
/** @description `temporarily_unavailable` */
|
|
5029
|
+
503: {
|
|
5030
|
+
headers: {
|
|
5031
|
+
[name: string]: unknown;
|
|
5032
|
+
};
|
|
5033
|
+
content: {
|
|
5034
|
+
"application/json": {
|
|
5035
|
+
/** @constant */
|
|
5036
|
+
error: "temporarily_unavailable";
|
|
5037
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5038
|
+
message?: string;
|
|
5039
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5040
|
+
hint?: string;
|
|
5041
|
+
};
|
|
5042
|
+
};
|
|
5043
|
+
};
|
|
5044
|
+
};
|
|
5045
|
+
};
|
|
5046
|
+
getIntent: {
|
|
5047
|
+
parameters: {
|
|
5048
|
+
query?: never;
|
|
5049
|
+
header?: never;
|
|
5050
|
+
path: {
|
|
5051
|
+
intent_id: components["parameters"]["IntentId"];
|
|
4356
5052
|
};
|
|
4357
5053
|
cookie?: never;
|
|
4358
5054
|
};
|
|
@@ -4673,6 +5369,133 @@ export interface operations {
|
|
|
4673
5369
|
};
|
|
4674
5370
|
};
|
|
4675
5371
|
};
|
|
5372
|
+
getTransfer: {
|
|
5373
|
+
parameters: {
|
|
5374
|
+
query?: never;
|
|
5375
|
+
header?: never;
|
|
5376
|
+
path: {
|
|
5377
|
+
transfer_id: string;
|
|
5378
|
+
};
|
|
5379
|
+
cookie?: never;
|
|
5380
|
+
};
|
|
5381
|
+
requestBody?: never;
|
|
5382
|
+
responses: {
|
|
5383
|
+
/** @description The Transfer, as the Project that uploaded it reads it */
|
|
5384
|
+
200: {
|
|
5385
|
+
headers: {
|
|
5386
|
+
[name: string]: unknown;
|
|
5387
|
+
};
|
|
5388
|
+
content: {
|
|
5389
|
+
"application/json": components["schemas"]["Transfer"];
|
|
5390
|
+
};
|
|
5391
|
+
};
|
|
5392
|
+
/** @description `invalid_identifier` */
|
|
5393
|
+
400: {
|
|
5394
|
+
headers: {
|
|
5395
|
+
[name: string]: unknown;
|
|
5396
|
+
};
|
|
5397
|
+
content: {
|
|
5398
|
+
"application/json": {
|
|
5399
|
+
/** @constant */
|
|
5400
|
+
error: "invalid_identifier";
|
|
5401
|
+
/** @description The path parameter that is not well formed. */
|
|
5402
|
+
parameter: string;
|
|
5403
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5404
|
+
message?: string;
|
|
5405
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5406
|
+
hint?: string;
|
|
5407
|
+
};
|
|
5408
|
+
};
|
|
5409
|
+
};
|
|
5410
|
+
/** @description `invalid_token` */
|
|
5411
|
+
401: {
|
|
5412
|
+
headers: {
|
|
5413
|
+
[name: string]: unknown;
|
|
5414
|
+
};
|
|
5415
|
+
content: {
|
|
5416
|
+
"application/json": {
|
|
5417
|
+
/** @constant */
|
|
5418
|
+
error: "invalid_token";
|
|
5419
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5420
|
+
message?: string;
|
|
5421
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5422
|
+
hint?: string;
|
|
5423
|
+
};
|
|
5424
|
+
};
|
|
5425
|
+
};
|
|
5426
|
+
/** @description `invalid_origin` */
|
|
5427
|
+
403: {
|
|
5428
|
+
headers: {
|
|
5429
|
+
[name: string]: unknown;
|
|
5430
|
+
};
|
|
5431
|
+
content: {
|
|
5432
|
+
"application/json": {
|
|
5433
|
+
/** @constant */
|
|
5434
|
+
error: "invalid_origin";
|
|
5435
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5436
|
+
message?: string;
|
|
5437
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5438
|
+
hint?: string;
|
|
5439
|
+
};
|
|
5440
|
+
};
|
|
5441
|
+
};
|
|
5442
|
+
/** @description `not_found`, `unsupported_version` */
|
|
5443
|
+
404: {
|
|
5444
|
+
headers: {
|
|
5445
|
+
[name: string]: unknown;
|
|
5446
|
+
};
|
|
5447
|
+
content: {
|
|
5448
|
+
"application/json": {
|
|
5449
|
+
/** @constant */
|
|
5450
|
+
error: "not_found";
|
|
5451
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5452
|
+
message?: string;
|
|
5453
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5454
|
+
hint?: string;
|
|
5455
|
+
} | {
|
|
5456
|
+
/** @constant */
|
|
5457
|
+
error: "unsupported_version";
|
|
5458
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5459
|
+
message?: string;
|
|
5460
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5461
|
+
hint?: string;
|
|
5462
|
+
};
|
|
5463
|
+
};
|
|
5464
|
+
};
|
|
5465
|
+
/** @description `server_error` */
|
|
5466
|
+
500: {
|
|
5467
|
+
headers: {
|
|
5468
|
+
[name: string]: unknown;
|
|
5469
|
+
};
|
|
5470
|
+
content: {
|
|
5471
|
+
"application/json": {
|
|
5472
|
+
/** @constant */
|
|
5473
|
+
error: "server_error";
|
|
5474
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5475
|
+
message?: string;
|
|
5476
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5477
|
+
hint?: string;
|
|
5478
|
+
};
|
|
5479
|
+
};
|
|
5480
|
+
};
|
|
5481
|
+
/** @description `temporarily_unavailable` */
|
|
5482
|
+
503: {
|
|
5483
|
+
headers: {
|
|
5484
|
+
[name: string]: unknown;
|
|
5485
|
+
};
|
|
5486
|
+
content: {
|
|
5487
|
+
"application/json": {
|
|
5488
|
+
/** @constant */
|
|
5489
|
+
error: "temporarily_unavailable";
|
|
5490
|
+
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|
|
5491
|
+
message?: string;
|
|
5492
|
+
/** @description When present, an English sentence suggesting to the developer what to do about the error. Never branch on it and never show it to a person. */
|
|
5493
|
+
hint?: string;
|
|
5494
|
+
};
|
|
5495
|
+
};
|
|
5496
|
+
};
|
|
5497
|
+
};
|
|
5498
|
+
};
|
|
4676
5499
|
getUserInfo: {
|
|
4677
5500
|
parameters: {
|
|
4678
5501
|
query?: never;
|
|
@@ -4799,7 +5622,7 @@ export interface operations {
|
|
|
4799
5622
|
};
|
|
4800
5623
|
requestBody?: never;
|
|
4801
5624
|
responses: {
|
|
4802
|
-
/** @description Active
|
|
5625
|
+
/** @description Active digital accounts granted by bank_accounts:read */
|
|
4803
5626
|
200: {
|
|
4804
5627
|
headers: {
|
|
4805
5628
|
[name: string]: unknown;
|
|
@@ -4908,7 +5731,7 @@ export interface operations {
|
|
|
4908
5731
|
/** @constant */
|
|
4909
5732
|
error: "interaction_required";
|
|
4910
5733
|
/**
|
|
4911
|
-
* @description What the person has to do: type the web
|
|
5734
|
+
* @description What the person has to do: type the web AndPass (`bank_connection_pin_required`), connect the account again (`bank_connection_reconnect_required`) or, for an Organization, connect another account representative (`bank_representative_replacement_required`).
|
|
4912
5735
|
* @enum {string}
|
|
4913
5736
|
*/
|
|
4914
5737
|
code: "bank_connection_pin_required" | "bank_connection_reconnect_required" | "bank_representative_replacement_required";
|
|
@@ -5097,7 +5920,7 @@ export interface operations {
|
|
|
5097
5920
|
/** @constant */
|
|
5098
5921
|
error: "interaction_required";
|
|
5099
5922
|
/**
|
|
5100
|
-
* @description What the person has to do: type the web
|
|
5923
|
+
* @description What the person has to do: type the web AndPass (`bank_connection_pin_required`), connect the account again (`bank_connection_reconnect_required`) or, for an Organization, connect another account representative (`bank_representative_replacement_required`).
|
|
5101
5924
|
* @enum {string}
|
|
5102
5925
|
*/
|
|
5103
5926
|
code: "bank_connection_pin_required" | "bank_connection_reconnect_required" | "bank_representative_replacement_required";
|
|
@@ -6543,7 +7366,7 @@ export interface operations {
|
|
|
6543
7366
|
* @description The one cause, never a generic failure.
|
|
6544
7367
|
* @enum {string}
|
|
6545
7368
|
*/
|
|
6546
|
-
reason: "malformed_assertion" | "missing_key_id" | "disallowed_algorithm" | "unknown_key" | "revoked_key" | "unusable_key" | "invalid_signature" | "expired_assertion" | "premature_assertion" | "missing_expiration" | "missing_instruction_id" | "missing_claim" | "wrong_audience" | "wrong_issuer" | "verification_failed";
|
|
7369
|
+
reason: "malformed_assertion" | "missing_signature" | "missing_key_id" | "disallowed_algorithm" | "unknown_key" | "revoked_key" | "expired_key" | "unusable_key" | "unsynced_key" | "invalid_signature" | "expired_assertion" | "premature_assertion" | "missing_expiration" | "expiration_too_soon" | "missing_instruction_id" | "missing_claim" | "wrong_audience" | "wrong_issuer" | "verification_failed";
|
|
6547
7370
|
/** @description The `kid` the assertion declared, when one could be read from it. */
|
|
6548
7371
|
key_id: string | null;
|
|
6549
7372
|
/** @description An English sentence for the developer reading a log. Never branch on it and never show it to a person. */
|