@andco/protocol 0.0.14 → 0.1.0-ti.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +2 -2
  2. package/dist/api-errors.d.ts +9 -9
  3. package/dist/api-errors.js +9 -9
  4. package/dist/authorization-preparation.d.ts +1 -1
  5. package/dist/authorization-preparation.js +2 -2
  6. package/dist/authorization.d.ts +1 -1
  7. package/dist/authorization.js +1 -1
  8. package/dist/consent.d.ts +2 -2
  9. package/dist/consent.js +2 -2
  10. package/dist/errors.d.ts +10 -10
  11. package/dist/errors.js +10 -10
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +1 -0
  15. package/dist/intent-input.d.ts +452 -880
  16. package/dist/intent-input.d.ts.map +1 -1
  17. package/dist/intent-input.js +164 -127
  18. package/dist/intent-status.d.ts +5 -6
  19. package/dist/intent-status.d.ts.map +1 -1
  20. package/dist/intent-status.js +12 -7
  21. package/dist/miniapp-manifest.d.ts +3 -3
  22. package/dist/miniapp-manifest.js +1 -1
  23. package/dist/native-intent.d.ts +82 -68
  24. package/dist/native-intent.d.ts.map +1 -1
  25. package/dist/native-intent.js +137 -84
  26. package/dist/native.d.ts +1 -1
  27. package/dist/rar/account-matchers.d.ts +35 -30
  28. package/dist/rar/account-matchers.d.ts.map +1 -1
  29. package/dist/rar/account-matchers.js +27 -21
  30. package/dist/rar/bank.d.ts +357 -85
  31. package/dist/rar/bank.d.ts.map +1 -1
  32. package/dist/rar/bank.js +43 -5
  33. package/dist/rar/catalog.d.ts +174 -49
  34. package/dist/rar/catalog.d.ts.map +1 -1
  35. package/dist/rar/catalog.js +6 -6
  36. package/dist/rar/detail.d.ts +1 -1
  37. package/dist/rar/detail.js +1 -1
  38. package/dist/rar/json-schemas.generated.d.ts +1 -1
  39. package/dist/rar/json-schemas.generated.d.ts.map +1 -1
  40. package/dist/rar/json-schemas.generated.js +393 -21
  41. package/dist/rar/money.d.ts +1 -1
  42. package/dist/rar/money.js +1 -1
  43. package/dist/rar/subject-data.d.ts +1 -1
  44. package/dist/rar/subject-data.js +1 -1
  45. package/dist/rar/subject.d.ts +1 -1
  46. package/dist/rar/subject.js +1 -1
  47. package/dist/rest/accounts.d.ts +28 -28
  48. package/dist/rest/accounts.d.ts.map +1 -1
  49. package/dist/rest/accounts.js +22 -22
  50. package/dist/rest/api-error.d.ts +1 -1
  51. package/dist/rest/api-error.js +1 -1
  52. package/dist/rest/catalog.d.ts +3 -3
  53. package/dist/rest/catalog.js +2 -2
  54. package/dist/rest/common.d.ts +3 -3
  55. package/dist/rest/common.js +3 -3
  56. package/dist/rest/contract.d.ts +1183 -547
  57. package/dist/rest/contract.d.ts.map +1 -1
  58. package/dist/rest/contract.js +21 -5
  59. package/dist/rest/events.d.ts +1 -1
  60. package/dist/rest/events.d.ts.map +1 -1
  61. package/dist/rest/events.js +2 -2
  62. package/dist/rest/identity.d.ts +22 -22
  63. package/dist/rest/identity.d.ts.map +1 -1
  64. package/dist/rest/identity.js +5 -5
  65. package/dist/rest/index.d.ts +1 -0
  66. package/dist/rest/index.d.ts.map +1 -1
  67. package/dist/rest/index.js +1 -0
  68. package/dist/rest/intents.d.ts +973 -743
  69. package/dist/rest/intents.d.ts.map +1 -1
  70. package/dist/rest/intents.js +112 -89
  71. package/dist/rest/signatures.d.ts +25 -5
  72. package/dist/rest/signatures.d.ts.map +1 -1
  73. package/dist/rest/signatures.js +52 -0
  74. package/dist/rest/transfers.d.ts +988 -0
  75. package/dist/rest/transfers.d.ts.map +1 -0
  76. package/dist/rest/transfers.js +142 -0
  77. package/dist/scopes.d.ts +1 -1
  78. package/dist/signing.d.ts +17 -3
  79. package/dist/signing.d.ts.map +1 -1
  80. package/dist/signing.js +8 -1
  81. package/dist/transfer.d.ts +399 -0
  82. package/dist/transfer.d.ts.map +1 -0
  83. package/dist/transfer.js +313 -0
  84. package/dist/transport/financial-events.d.ts +82 -27
  85. package/dist/transport/financial-events.d.ts.map +1 -1
  86. package/dist/transport/financial-events.js +34 -0
  87. package/dist/transport/generated/oauth-api.d.ts +1420 -333
  88. package/dist/transport/generated/oauth-api.d.ts.map +1 -1
  89. package/dist/transport/intents.d.ts +29 -13
  90. package/dist/transport/intents.d.ts.map +1 -1
  91. package/dist/transport/intents.js +1 -1
  92. package/dist/transport/rest.d.ts +5 -5
  93. package/dist/urls.d.ts +2 -2
  94. package/dist/urls.js +3 -3
  95. package/dist/userinfo.d.ts +2 -2
  96. package/dist/userinfo.js +2 -2
  97. package/dist/webhooks.d.ts +16 -16
  98. package/dist/webhooks.js +14 -14
  99. package/dist/window-features.d.ts +2 -2
  100. package/dist/window-features.js +2 -2
  101. package/package.json +2 -2
@@ -0,0 +1,988 @@
1
+ import * as v from "valibot";
2
+ import { InvalidCursor } from "./accounts.js";
3
+ import { InsufficientAuthorization, InvalidIdentifier, InvalidOrigin, InvalidRequest, InvalidToken, NotFound, PayloadTooLarge, ServerError, TemporarilyUnavailable, UnsupportedMediaType, UnsupportedVersion } from "./common.js";
4
+ import { AmountOutOfGrant, ApprovalRequiredUseIntents, BankConnectionUnavailable, BankRefused, BankRejected, BankReviewRequired, ExpiredSignedInstruction, IdempotencyConflict, IdempotencyKeyNotAllowed, InsufficientFunds, IntentInteractionRequired, InvalidDestination, InvalidSignedInstruction, InvalidSource, NotImplemented, TransferSenderIdentityUnavailable } from "./intents.js";
5
+ import { SIGNED_TRANSFER_MEDIA_TYPE } from "./signatures.js";
6
+ export { SIGNED_TRANSFER_MEDIA_TYPE };
7
+ declare const SenderMismatch_base: (abstract new (data: {}, message?: string, hint?: string) => {
8
+ readonly error: "sender_mismatch";
9
+ readonly hint?: string;
10
+ readonly data: {};
11
+ name: string;
12
+ message: string;
13
+ stack?: string;
14
+ cause?: unknown;
15
+ }) & {
16
+ readonly error: "sender_mismatch";
17
+ readonly status: 422;
18
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{}, undefined>, v.DescriptionAction<{}, "The signed sender is not the account: country `CL`, bank `0739`, its own account type and its holder's RUT.">]>;
19
+ define<const Code extends string, const Status extends number, Data extends import("./api-error.js").AndcoAPIErrorDataSchema>(error: Code, status: Status, data: Data): (abstract new (data: v.InferOutput<Data>, message?: string, hint?: string) => {
20
+ readonly error: Code;
21
+ readonly hint?: string;
22
+ readonly data: v.InferOutput<Data>;
23
+ name: string;
24
+ message: string;
25
+ stack?: string;
26
+ cause?: unknown;
27
+ }) & {
28
+ readonly error: Code;
29
+ readonly status: Status;
30
+ readonly data: Data;
31
+ define<const Code extends string, const Status extends number, Data extends import("./api-error.js").AndcoAPIErrorDataSchema>(error: Code, status: Status, data: Data): /*elided*/ any;
32
+ };
33
+ };
34
+ /**
35
+ * The signed `sender` is not the account it names: its `country` is `CL`, its `bank_code` AndCo's
36
+ * (`0739`), its `account_type` the account's own and its `national_id` the RUT of the account's
37
+ * holder, compared as normalized RUTs. Its `name` is never compared. The API runs this check
38
+ * before anything is stored, so the mistake fails early.
39
+ */
40
+ export declare class SenderMismatch extends /* @__PURE__ */ SenderMismatch_base {
41
+ constructor(message?: string);
42
+ }
43
+ /**
44
+ * Where a Transfer stands. `requires_action`: the person still owes the bank a step. `processing`: the
45
+ * bank holds the transfer and has not answered for good. `succeeded`, `failed` and `cancelled` are final.
46
+ * There is no `rejected`: a rejection ends an Intent, and a rejected Intent has no Transfer.
47
+ */
48
+ export declare const TransferStatus: v.SchemaWithPipe<readonly [v.PicklistSchema<["requires_action", "processing", "succeeded", "failed", "cancelled"], undefined>, v.DescriptionAction<"succeeded" | "failed" | "cancelled" | "requires_action" | "processing", "Where the Transfer stands: `requires_action` while the person still owes the bank a step, `processing` while the bank holds it and has not answered for good, then `succeeded`, `failed` or `cancelled`, which are final. `status_detail` says why. There is no `rejected` Transfer: a rejection ends an Intent, and a rejected Intent has no Transfer.">]>;
49
+ /** Where a Transfer stands. */
50
+ export type TransferStatus = v.InferOutput<typeof TransferStatus>;
51
+ /**
52
+ * A Transfer: the movement of an amount from a Remitente (`sender`) to a Receptor (`receiver`), as
53
+ * AndCo represents it. It has one shape for every origin: a Project's Intent (`oauth`), a person in
54
+ * the AndCo web app (`platform`), or the issuer's own channels, for example its mobile app
55
+ * (`emisor`). A Transfer exists after its approval.
56
+ *
57
+ * @example
58
+ * const transfer: Transfer = {
59
+ * object: "transfer", id, status: "succeeded", status_detail: "confirmed", origin: "oauth",
60
+ * amount: 500000, currency: "CLP", sender, receiver, comment: "Factura 42",
61
+ * intent_id, jti: null, transaction_id: "88213", created_at,
62
+ * };
63
+ */
64
+ export declare const Transfer: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
65
+ readonly object: v.LiteralSchema<"transfer", undefined>;
66
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Transfer's own id: what `GET /transfers/{transfer_id}` reads.">]>;
67
+ readonly status: v.SchemaWithPipe<readonly [v.PicklistSchema<["requires_action", "processing", "succeeded", "failed", "cancelled"], undefined>, v.DescriptionAction<"succeeded" | "failed" | "cancelled" | "requires_action" | "processing", "Where the Transfer stands: `requires_action` while the person still owes the bank a step, `processing` while the bank holds it and has not answered for good, then `succeeded`, `failed` or `cancelled`, which are final. `status_detail` says why. There is no `rejected` Transfer: a rejection ends an Intent, and a rejected Intent has no Transfer.">]>;
68
+ readonly status_detail: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The word that says why, null when the status has none: `bank_refused` for a `failed` Transfer the bank refused for sure, `expired` for a `cancelled` one whose deadline passed, `grant_revoked` or `grant_expired` for one whose Grant ended. The vocabulary is open: a detail added later appears here as it is, so decide on `status`.">]>;
69
+ readonly origin: v.SchemaWithPipe<readonly [v.PicklistSchema<["oauth", "platform", "emisor"], undefined>, v.DescriptionAction<"oauth" | "platform" | "emisor", "Who made it: `oauth`, a Project through the API; `platform`, a person in the AndCo web app; `emisor`, a person in the issuer's own channels, for example its mobile app.">]>;
70
+ readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 2147483647, undefined>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647. A larger one is refused with `max_value`.">]>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647.">]>;
71
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
72
+ readonly sender: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
73
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
74
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
75
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
76
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
77
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
78
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
79
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
80
+ }, undefined>, v.DescriptionAction<{
81
+ country: string;
82
+ bank_code: string;
83
+ account_type: "10" | "20" | "40";
84
+ account_number: string;
85
+ name: string | null;
86
+ national_kind_id: string | null;
87
+ national_id: string | null;
88
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
89
+ country: string;
90
+ bank_code: string;
91
+ account_type: "10" | "20" | "40";
92
+ account_number: string;
93
+ name: string | null;
94
+ national_kind_id: string | null;
95
+ national_id: string | null;
96
+ }, "The Remitente: the account the money leaves and its holder.">]>;
97
+ readonly receiver: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
98
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
99
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
100
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
101
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
102
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
103
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
104
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
105
+ }, undefined>, v.DescriptionAction<{
106
+ country: string;
107
+ bank_code: string;
108
+ account_type: "10" | "20" | "40";
109
+ account_number: string;
110
+ name: string | null;
111
+ national_kind_id: string | null;
112
+ national_id: string | null;
113
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
114
+ country: string;
115
+ bank_code: string;
116
+ account_type: "10" | "20" | "40";
117
+ account_number: string;
118
+ name: string | null;
119
+ national_kind_id: string | null;
120
+ national_id: string | null;
121
+ }, "The Receptor: the account the money lands on and its holder.">]>;
122
+ readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
123
+ readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer with `approved: true` (its signature approved it, so there was no request).">]>;
124
+ readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer with `approved: true` that submitted it, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
125
+ readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
126
+ readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
127
+ }, undefined>, v.DescriptionAction<{
128
+ object: "transfer";
129
+ id: string;
130
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
131
+ status_detail: string | null;
132
+ origin: "oauth" | "platform" | "emisor";
133
+ amount: number;
134
+ currency: "CLP";
135
+ sender: {
136
+ country: string;
137
+ bank_code: string;
138
+ account_type: "10" | "20" | "40";
139
+ account_number: string;
140
+ name: string | null;
141
+ national_kind_id: string | null;
142
+ national_id: string | null;
143
+ };
144
+ receiver: {
145
+ country: string;
146
+ bank_code: string;
147
+ account_type: "10" | "20" | "40";
148
+ account_number: string;
149
+ name: string | null;
150
+ national_kind_id: string | null;
151
+ national_id: string | null;
152
+ };
153
+ comment: string | null;
154
+ intent_id: string | null;
155
+ jti: string | null;
156
+ transaction_id: string | null;
157
+ created_at: string;
158
+ }, "A Transfer, with one shape for every origin. `sender` and `receiver` have the same fields, and `amount` and `currency` sit on the Transfer. It has no `approved` and no deadline: the decision belongs to the Intent.">]>;
159
+ /** A Transfer. */
160
+ export type Transfer = v.InferOutput<typeof Transfer>;
161
+ /** Submits a signed transfer: one General JSON JWS (`application/jose+json`), one Transfer. */
162
+ export declare const createTransfer: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
163
+ readonly payload: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "The base64url of the JSON claims (`SignedTransferClaims`).">]>;
164
+ readonly signatures: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
165
+ readonly protected: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "The base64url of the JSON protected header (`SignedTransferHeader`).">]>;
166
+ readonly signature: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
167
+ }, undefined>, undefined>, v.MinLengthAction<{
168
+ protected: string;
169
+ signature: string;
170
+ }[], 1, undefined>, v.DescriptionAction<{
171
+ protected: string;
172
+ signature: string;
173
+ }[], "At least one signature over the same payload; every one is verified.">]>;
174
+ }, undefined>, v.DescriptionAction<{
175
+ payload: string;
176
+ signatures: {
177
+ protected: string;
178
+ signature: string;
179
+ }[];
180
+ }, "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`.">]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
181
+ readonly object: v.LiteralSchema<"transfer", undefined>;
182
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Transfer's own id: what `GET /transfers/{transfer_id}` reads.">]>;
183
+ readonly status: v.SchemaWithPipe<readonly [v.PicklistSchema<["requires_action", "processing", "succeeded", "failed", "cancelled"], undefined>, v.DescriptionAction<"succeeded" | "failed" | "cancelled" | "requires_action" | "processing", "Where the Transfer stands: `requires_action` while the person still owes the bank a step, `processing` while the bank holds it and has not answered for good, then `succeeded`, `failed` or `cancelled`, which are final. `status_detail` says why. There is no `rejected` Transfer: a rejection ends an Intent, and a rejected Intent has no Transfer.">]>;
184
+ readonly status_detail: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The word that says why, null when the status has none: `bank_refused` for a `failed` Transfer the bank refused for sure, `expired` for a `cancelled` one whose deadline passed, `grant_revoked` or `grant_expired` for one whose Grant ended. The vocabulary is open: a detail added later appears here as it is, so decide on `status`.">]>;
185
+ readonly origin: v.SchemaWithPipe<readonly [v.PicklistSchema<["oauth", "platform", "emisor"], undefined>, v.DescriptionAction<"oauth" | "platform" | "emisor", "Who made it: `oauth`, a Project through the API; `platform`, a person in the AndCo web app; `emisor`, a person in the issuer's own channels, for example its mobile app.">]>;
186
+ readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 2147483647, undefined>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647. A larger one is refused with `max_value`.">]>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647.">]>;
187
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
188
+ readonly sender: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
189
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
190
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
191
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
192
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
193
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
194
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
195
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
196
+ }, undefined>, v.DescriptionAction<{
197
+ country: string;
198
+ bank_code: string;
199
+ account_type: "10" | "20" | "40";
200
+ account_number: string;
201
+ name: string | null;
202
+ national_kind_id: string | null;
203
+ national_id: string | null;
204
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
205
+ country: string;
206
+ bank_code: string;
207
+ account_type: "10" | "20" | "40";
208
+ account_number: string;
209
+ name: string | null;
210
+ national_kind_id: string | null;
211
+ national_id: string | null;
212
+ }, "The Remitente: the account the money leaves and its holder.">]>;
213
+ readonly receiver: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
214
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
215
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
216
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
217
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
218
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
219
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
220
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
221
+ }, undefined>, v.DescriptionAction<{
222
+ country: string;
223
+ bank_code: string;
224
+ account_type: "10" | "20" | "40";
225
+ account_number: string;
226
+ name: string | null;
227
+ national_kind_id: string | null;
228
+ national_id: string | null;
229
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
230
+ country: string;
231
+ bank_code: string;
232
+ account_type: "10" | "20" | "40";
233
+ account_number: string;
234
+ name: string | null;
235
+ national_kind_id: string | null;
236
+ national_id: string | null;
237
+ }, "The Receptor: the account the money lands on and its holder.">]>;
238
+ readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
239
+ readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer with `approved: true` (its signature approved it, so there was no request).">]>;
240
+ readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer with `approved: true` that submitted it, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
241
+ readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
242
+ readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
243
+ }, undefined>, v.DescriptionAction<{
244
+ object: "transfer";
245
+ id: string;
246
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
247
+ status_detail: string | null;
248
+ origin: "oauth" | "platform" | "emisor";
249
+ amount: number;
250
+ currency: "CLP";
251
+ sender: {
252
+ country: string;
253
+ bank_code: string;
254
+ account_type: "10" | "20" | "40";
255
+ account_number: string;
256
+ name: string | null;
257
+ national_kind_id: string | null;
258
+ national_id: string | null;
259
+ };
260
+ receiver: {
261
+ country: string;
262
+ bank_code: string;
263
+ account_type: "10" | "20" | "40";
264
+ account_number: string;
265
+ name: string | null;
266
+ national_kind_id: string | null;
267
+ national_id: string | null;
268
+ };
269
+ comment: string | null;
270
+ intent_id: string | null;
271
+ jti: string | null;
272
+ transaction_id: string | null;
273
+ created_at: string;
274
+ }, "A Transfer, with one shape for every origin. `sender` and `receiver` have the same fields, and `amount` and `currency` sit on the Transfer. It has no `approved` and no deadline: the decision belongs to the Intent.">]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidRequest, typeof IdempotencyKeyNotAllowed, typeof ApprovalRequiredUseIntents, typeof InvalidSignedInstruction, typeof InvalidToken, typeof ExpiredSignedInstruction, typeof InvalidOrigin, typeof InsufficientAuthorization, typeof UnsupportedVersion, typeof ServerError, typeof IdempotencyConflict, typeof IntentInteractionRequired, typeof PayloadTooLarge, typeof UnsupportedMediaType, typeof SenderMismatch, typeof TransferSenderIdentityUnavailable, typeof AmountOutOfGrant, typeof InvalidSource, typeof InvalidDestination, typeof BankConnectionUnavailable, typeof BankRefused, typeof InsufficientFunds, typeof BankRejected, typeof BankReviewRequired, typeof NotImplemented, typeof TemporarilyUnavailable]>>;
275
+ /** Reads one Transfer the Grant may read. */
276
+ export declare const getTransfer: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
277
+ readonly transfer_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
278
+ }, undefined>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
279
+ readonly object: v.LiteralSchema<"transfer", undefined>;
280
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Transfer's own id: what `GET /transfers/{transfer_id}` reads.">]>;
281
+ readonly status: v.SchemaWithPipe<readonly [v.PicklistSchema<["requires_action", "processing", "succeeded", "failed", "cancelled"], undefined>, v.DescriptionAction<"succeeded" | "failed" | "cancelled" | "requires_action" | "processing", "Where the Transfer stands: `requires_action` while the person still owes the bank a step, `processing` while the bank holds it and has not answered for good, then `succeeded`, `failed` or `cancelled`, which are final. `status_detail` says why. There is no `rejected` Transfer: a rejection ends an Intent, and a rejected Intent has no Transfer.">]>;
282
+ readonly status_detail: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The word that says why, null when the status has none: `bank_refused` for a `failed` Transfer the bank refused for sure, `expired` for a `cancelled` one whose deadline passed, `grant_revoked` or `grant_expired` for one whose Grant ended. The vocabulary is open: a detail added later appears here as it is, so decide on `status`.">]>;
283
+ readonly origin: v.SchemaWithPipe<readonly [v.PicklistSchema<["oauth", "platform", "emisor"], undefined>, v.DescriptionAction<"oauth" | "platform" | "emisor", "Who made it: `oauth`, a Project through the API; `platform`, a person in the AndCo web app; `emisor`, a person in the issuer's own channels, for example its mobile app.">]>;
284
+ readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 2147483647, undefined>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647. A larger one is refused with `max_value`.">]>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647.">]>;
285
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
286
+ readonly sender: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
287
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
288
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
289
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
290
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
291
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
292
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
293
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
294
+ }, undefined>, v.DescriptionAction<{
295
+ country: string;
296
+ bank_code: string;
297
+ account_type: "10" | "20" | "40";
298
+ account_number: string;
299
+ name: string | null;
300
+ national_kind_id: string | null;
301
+ national_id: string | null;
302
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
303
+ country: string;
304
+ bank_code: string;
305
+ account_type: "10" | "20" | "40";
306
+ account_number: string;
307
+ name: string | null;
308
+ national_kind_id: string | null;
309
+ national_id: string | null;
310
+ }, "The Remitente: the account the money leaves and its holder.">]>;
311
+ readonly receiver: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
312
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
313
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
314
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
315
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
316
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
317
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
318
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
319
+ }, undefined>, v.DescriptionAction<{
320
+ country: string;
321
+ bank_code: string;
322
+ account_type: "10" | "20" | "40";
323
+ account_number: string;
324
+ name: string | null;
325
+ national_kind_id: string | null;
326
+ national_id: string | null;
327
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
328
+ country: string;
329
+ bank_code: string;
330
+ account_type: "10" | "20" | "40";
331
+ account_number: string;
332
+ name: string | null;
333
+ national_kind_id: string | null;
334
+ national_id: string | null;
335
+ }, "The Receptor: the account the money lands on and its holder.">]>;
336
+ readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
337
+ readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer with `approved: true` (its signature approved it, so there was no request).">]>;
338
+ readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer with `approved: true` that submitted it, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
339
+ readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
340
+ readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
341
+ }, undefined>, v.DescriptionAction<{
342
+ object: "transfer";
343
+ id: string;
344
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
345
+ status_detail: string | null;
346
+ origin: "oauth" | "platform" | "emisor";
347
+ amount: number;
348
+ currency: "CLP";
349
+ sender: {
350
+ country: string;
351
+ bank_code: string;
352
+ account_type: "10" | "20" | "40";
353
+ account_number: string;
354
+ name: string | null;
355
+ national_kind_id: string | null;
356
+ national_id: string | null;
357
+ };
358
+ receiver: {
359
+ country: string;
360
+ bank_code: string;
361
+ account_type: "10" | "20" | "40";
362
+ account_number: string;
363
+ name: string | null;
364
+ national_kind_id: string | null;
365
+ national_id: string | null;
366
+ };
367
+ comment: string | null;
368
+ intent_id: string | null;
369
+ jti: string | null;
370
+ transaction_id: string | null;
371
+ created_at: string;
372
+ }, "A Transfer, with one shape for every origin. `sender` and `receiver` have the same fields, and `amount` and `currency` sit on the Transfer. It has no `approved` and no deadline: the decision belongs to the Intent.">]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidIdentifier, typeof InvalidToken, typeof InvalidOrigin, typeof NotFound, typeof UnsupportedVersion, typeof ServerError, typeof TemporarilyUnavailable]>>;
373
+ /**
374
+ * A page of Transfers found by `jti`: zero or one edge, and no cursor on it. The list of an account
375
+ * has its own page, {@link TransferListPage}.
376
+ */
377
+ export declare const TransferPage: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
378
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
379
+ readonly cursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
380
+ readonly node: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
381
+ readonly object: v.LiteralSchema<"transfer", undefined>;
382
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Transfer's own id: what `GET /transfers/{transfer_id}` reads.">]>;
383
+ readonly status: v.SchemaWithPipe<readonly [v.PicklistSchema<["requires_action", "processing", "succeeded", "failed", "cancelled"], undefined>, v.DescriptionAction<"succeeded" | "failed" | "cancelled" | "requires_action" | "processing", "Where the Transfer stands: `requires_action` while the person still owes the bank a step, `processing` while the bank holds it and has not answered for good, then `succeeded`, `failed` or `cancelled`, which are final. `status_detail` says why. There is no `rejected` Transfer: a rejection ends an Intent, and a rejected Intent has no Transfer.">]>;
384
+ readonly status_detail: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The word that says why, null when the status has none: `bank_refused` for a `failed` Transfer the bank refused for sure, `expired` for a `cancelled` one whose deadline passed, `grant_revoked` or `grant_expired` for one whose Grant ended. The vocabulary is open: a detail added later appears here as it is, so decide on `status`.">]>;
385
+ readonly origin: v.SchemaWithPipe<readonly [v.PicklistSchema<["oauth", "platform", "emisor"], undefined>, v.DescriptionAction<"oauth" | "platform" | "emisor", "Who made it: `oauth`, a Project through the API; `platform`, a person in the AndCo web app; `emisor`, a person in the issuer's own channels, for example its mobile app.">]>;
386
+ readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 2147483647, undefined>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647. A larger one is refused with `max_value`.">]>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647.">]>;
387
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
388
+ readonly sender: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
389
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
390
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
391
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
392
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
393
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
394
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
395
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
396
+ }, undefined>, v.DescriptionAction<{
397
+ country: string;
398
+ bank_code: string;
399
+ account_type: "10" | "20" | "40";
400
+ account_number: string;
401
+ name: string | null;
402
+ national_kind_id: string | null;
403
+ national_id: string | null;
404
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
405
+ country: string;
406
+ bank_code: string;
407
+ account_type: "10" | "20" | "40";
408
+ account_number: string;
409
+ name: string | null;
410
+ national_kind_id: string | null;
411
+ national_id: string | null;
412
+ }, "The Remitente: the account the money leaves and its holder.">]>;
413
+ readonly receiver: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
414
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
415
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
416
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
417
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
418
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
419
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
420
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
421
+ }, undefined>, v.DescriptionAction<{
422
+ country: string;
423
+ bank_code: string;
424
+ account_type: "10" | "20" | "40";
425
+ account_number: string;
426
+ name: string | null;
427
+ national_kind_id: string | null;
428
+ national_id: string | null;
429
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
430
+ country: string;
431
+ bank_code: string;
432
+ account_type: "10" | "20" | "40";
433
+ account_number: string;
434
+ name: string | null;
435
+ national_kind_id: string | null;
436
+ national_id: string | null;
437
+ }, "The Receptor: the account the money lands on and its holder.">]>;
438
+ readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
439
+ readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer with `approved: true` (its signature approved it, so there was no request).">]>;
440
+ readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer with `approved: true` that submitted it, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
441
+ readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
442
+ readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
443
+ }, undefined>, v.DescriptionAction<{
444
+ object: "transfer";
445
+ id: string;
446
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
447
+ status_detail: string | null;
448
+ origin: "oauth" | "platform" | "emisor";
449
+ amount: number;
450
+ currency: "CLP";
451
+ sender: {
452
+ country: string;
453
+ bank_code: string;
454
+ account_type: "10" | "20" | "40";
455
+ account_number: string;
456
+ name: string | null;
457
+ national_kind_id: string | null;
458
+ national_id: string | null;
459
+ };
460
+ receiver: {
461
+ country: string;
462
+ bank_code: string;
463
+ account_type: "10" | "20" | "40";
464
+ account_number: string;
465
+ name: string | null;
466
+ national_kind_id: string | null;
467
+ national_id: string | null;
468
+ };
469
+ comment: string | null;
470
+ intent_id: string | null;
471
+ jti: string | null;
472
+ transaction_id: string | null;
473
+ created_at: string;
474
+ }, "A Transfer, with one shape for every origin. `sender` and `receiver` have the same fields, and `amount` and `currency` sit on the Transfer. It has no `approved` and no deadline: the decision belongs to the Intent.">]>;
475
+ }, undefined>, undefined>;
476
+ readonly pageInfo: v.StrictObjectSchema<{
477
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
478
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
479
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
480
+ readonly hasNextPage: v.BooleanSchema<undefined>;
481
+ }, undefined>;
482
+ }, undefined>, v.DescriptionAction<{
483
+ edges: {
484
+ cursor: string | null;
485
+ node: {
486
+ object: "transfer";
487
+ id: string;
488
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
489
+ status_detail: string | null;
490
+ origin: "oauth" | "platform" | "emisor";
491
+ amount: number;
492
+ currency: "CLP";
493
+ sender: {
494
+ country: string;
495
+ bank_code: string;
496
+ account_type: "10" | "20" | "40";
497
+ account_number: string;
498
+ name: string | null;
499
+ national_kind_id: string | null;
500
+ national_id: string | null;
501
+ };
502
+ receiver: {
503
+ country: string;
504
+ bank_code: string;
505
+ account_type: "10" | "20" | "40";
506
+ account_number: string;
507
+ name: string | null;
508
+ national_kind_id: string | null;
509
+ national_id: string | null;
510
+ };
511
+ comment: string | null;
512
+ intent_id: string | null;
513
+ jti: string | null;
514
+ transaction_id: string | null;
515
+ created_at: string;
516
+ };
517
+ }[];
518
+ pageInfo: {
519
+ startCursor: string | null;
520
+ endCursor: string | null;
521
+ hasPreviousPage: boolean;
522
+ hasNextPage: boolean;
523
+ };
524
+ }, string>]>;
525
+ /** A page of Transfers found by `jti`. */
526
+ export type TransferPage = v.InferOutput<typeof TransferPage>;
527
+ /**
528
+ * Finds the Transfer that a `jti` names: for a client that lost the answer to `POST /transfers` and
529
+ * whose `exp` has passed.
530
+ */
531
+ export declare const listTransfers: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
532
+ readonly jti: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, v.DescriptionAction<string, "The `jti` of the signed transfer that submitted the Transfer, a UUID in lowercase.">]>;
533
+ }, undefined>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
534
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
535
+ readonly cursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
536
+ readonly node: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
537
+ readonly object: v.LiteralSchema<"transfer", undefined>;
538
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Transfer's own id: what `GET /transfers/{transfer_id}` reads.">]>;
539
+ readonly status: v.SchemaWithPipe<readonly [v.PicklistSchema<["requires_action", "processing", "succeeded", "failed", "cancelled"], undefined>, v.DescriptionAction<"succeeded" | "failed" | "cancelled" | "requires_action" | "processing", "Where the Transfer stands: `requires_action` while the person still owes the bank a step, `processing` while the bank holds it and has not answered for good, then `succeeded`, `failed` or `cancelled`, which are final. `status_detail` says why. There is no `rejected` Transfer: a rejection ends an Intent, and a rejected Intent has no Transfer.">]>;
540
+ readonly status_detail: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The word that says why, null when the status has none: `bank_refused` for a `failed` Transfer the bank refused for sure, `expired` for a `cancelled` one whose deadline passed, `grant_revoked` or `grant_expired` for one whose Grant ended. The vocabulary is open: a detail added later appears here as it is, so decide on `status`.">]>;
541
+ readonly origin: v.SchemaWithPipe<readonly [v.PicklistSchema<["oauth", "platform", "emisor"], undefined>, v.DescriptionAction<"oauth" | "platform" | "emisor", "Who made it: `oauth`, a Project through the API; `platform`, a person in the AndCo web app; `emisor`, a person in the issuer's own channels, for example its mobile app.">]>;
542
+ readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 2147483647, undefined>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647. A larger one is refused with `max_value`.">]>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647.">]>;
543
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
544
+ readonly sender: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
545
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
546
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
547
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
548
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
549
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
550
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
551
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
552
+ }, undefined>, v.DescriptionAction<{
553
+ country: string;
554
+ bank_code: string;
555
+ account_type: "10" | "20" | "40";
556
+ account_number: string;
557
+ name: string | null;
558
+ national_kind_id: string | null;
559
+ national_id: string | null;
560
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
561
+ country: string;
562
+ bank_code: string;
563
+ account_type: "10" | "20" | "40";
564
+ account_number: string;
565
+ name: string | null;
566
+ national_kind_id: string | null;
567
+ national_id: string | null;
568
+ }, "The Remitente: the account the money leaves and its holder.">]>;
569
+ readonly receiver: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
570
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
571
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
572
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
573
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
574
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
575
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
576
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
577
+ }, undefined>, v.DescriptionAction<{
578
+ country: string;
579
+ bank_code: string;
580
+ account_type: "10" | "20" | "40";
581
+ account_number: string;
582
+ name: string | null;
583
+ national_kind_id: string | null;
584
+ national_id: string | null;
585
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
586
+ country: string;
587
+ bank_code: string;
588
+ account_type: "10" | "20" | "40";
589
+ account_number: string;
590
+ name: string | null;
591
+ national_kind_id: string | null;
592
+ national_id: string | null;
593
+ }, "The Receptor: the account the money lands on and its holder.">]>;
594
+ readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
595
+ readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer with `approved: true` (its signature approved it, so there was no request).">]>;
596
+ readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer with `approved: true` that submitted it, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
597
+ readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
598
+ readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
599
+ }, undefined>, v.DescriptionAction<{
600
+ object: "transfer";
601
+ id: string;
602
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
603
+ status_detail: string | null;
604
+ origin: "oauth" | "platform" | "emisor";
605
+ amount: number;
606
+ currency: "CLP";
607
+ sender: {
608
+ country: string;
609
+ bank_code: string;
610
+ account_type: "10" | "20" | "40";
611
+ account_number: string;
612
+ name: string | null;
613
+ national_kind_id: string | null;
614
+ national_id: string | null;
615
+ };
616
+ receiver: {
617
+ country: string;
618
+ bank_code: string;
619
+ account_type: "10" | "20" | "40";
620
+ account_number: string;
621
+ name: string | null;
622
+ national_kind_id: string | null;
623
+ national_id: string | null;
624
+ };
625
+ comment: string | null;
626
+ intent_id: string | null;
627
+ jti: string | null;
628
+ transaction_id: string | null;
629
+ created_at: string;
630
+ }, "A Transfer, with one shape for every origin. `sender` and `receiver` have the same fields, and `amount` and `currency` sit on the Transfer. It has no `approved` and no deadline: the decision belongs to the Intent.">]>;
631
+ }, undefined>, undefined>;
632
+ readonly pageInfo: v.StrictObjectSchema<{
633
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
634
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
635
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
636
+ readonly hasNextPage: v.BooleanSchema<undefined>;
637
+ }, undefined>;
638
+ }, undefined>, v.DescriptionAction<{
639
+ edges: {
640
+ cursor: string | null;
641
+ node: {
642
+ object: "transfer";
643
+ id: string;
644
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
645
+ status_detail: string | null;
646
+ origin: "oauth" | "platform" | "emisor";
647
+ amount: number;
648
+ currency: "CLP";
649
+ sender: {
650
+ country: string;
651
+ bank_code: string;
652
+ account_type: "10" | "20" | "40";
653
+ account_number: string;
654
+ name: string | null;
655
+ national_kind_id: string | null;
656
+ national_id: string | null;
657
+ };
658
+ receiver: {
659
+ country: string;
660
+ bank_code: string;
661
+ account_type: "10" | "20" | "40";
662
+ account_number: string;
663
+ name: string | null;
664
+ national_kind_id: string | null;
665
+ national_id: string | null;
666
+ };
667
+ comment: string | null;
668
+ intent_id: string | null;
669
+ jti: string | null;
670
+ transaction_id: string | null;
671
+ created_at: string;
672
+ };
673
+ }[];
674
+ pageInfo: {
675
+ startCursor: string | null;
676
+ endCursor: string | null;
677
+ hasPreviousPage: boolean;
678
+ hasNextPage: boolean;
679
+ };
680
+ }, string>]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidRequest, typeof InvalidToken, typeof InvalidOrigin, typeof UnsupportedVersion, typeof ServerError, typeof TemporarilyUnavailable]>>;
681
+ /**
682
+ * A page of the Transfers of one account, newest first, with a cursor on each edge. The cursor
683
+ * encodes the order key, so it stays stable when new Transfers arrive.
684
+ */
685
+ export declare const TransferListPage: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
686
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
687
+ readonly cursor: v.StringSchema<undefined>;
688
+ readonly node: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
689
+ readonly object: v.LiteralSchema<"transfer", undefined>;
690
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Transfer's own id: what `GET /transfers/{transfer_id}` reads.">]>;
691
+ readonly status: v.SchemaWithPipe<readonly [v.PicklistSchema<["requires_action", "processing", "succeeded", "failed", "cancelled"], undefined>, v.DescriptionAction<"succeeded" | "failed" | "cancelled" | "requires_action" | "processing", "Where the Transfer stands: `requires_action` while the person still owes the bank a step, `processing` while the bank holds it and has not answered for good, then `succeeded`, `failed` or `cancelled`, which are final. `status_detail` says why. There is no `rejected` Transfer: a rejection ends an Intent, and a rejected Intent has no Transfer.">]>;
692
+ readonly status_detail: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The word that says why, null when the status has none: `bank_refused` for a `failed` Transfer the bank refused for sure, `expired` for a `cancelled` one whose deadline passed, `grant_revoked` or `grant_expired` for one whose Grant ended. The vocabulary is open: a detail added later appears here as it is, so decide on `status`.">]>;
693
+ readonly origin: v.SchemaWithPipe<readonly [v.PicklistSchema<["oauth", "platform", "emisor"], undefined>, v.DescriptionAction<"oauth" | "platform" | "emisor", "Who made it: `oauth`, a Project through the API; `platform`, a person in the AndCo web app; `emisor`, a person in the issuer's own channels, for example its mobile app.">]>;
694
+ readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 2147483647, undefined>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647. A larger one is refused with `max_value`.">]>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647.">]>;
695
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
696
+ readonly sender: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
697
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
698
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
699
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
700
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
701
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
702
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
703
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
704
+ }, undefined>, v.DescriptionAction<{
705
+ country: string;
706
+ bank_code: string;
707
+ account_type: "10" | "20" | "40";
708
+ account_number: string;
709
+ name: string | null;
710
+ national_kind_id: string | null;
711
+ national_id: string | null;
712
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
713
+ country: string;
714
+ bank_code: string;
715
+ account_type: "10" | "20" | "40";
716
+ account_number: string;
717
+ name: string | null;
718
+ national_kind_id: string | null;
719
+ national_id: string | null;
720
+ }, "The Remitente: the account the money leaves and its holder.">]>;
721
+ readonly receiver: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
722
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
723
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
724
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
725
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
726
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
727
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
728
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
729
+ }, undefined>, v.DescriptionAction<{
730
+ country: string;
731
+ bank_code: string;
732
+ account_type: "10" | "20" | "40";
733
+ account_number: string;
734
+ name: string | null;
735
+ national_kind_id: string | null;
736
+ national_id: string | null;
737
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
738
+ country: string;
739
+ bank_code: string;
740
+ account_type: "10" | "20" | "40";
741
+ account_number: string;
742
+ name: string | null;
743
+ national_kind_id: string | null;
744
+ national_id: string | null;
745
+ }, "The Receptor: the account the money lands on and its holder.">]>;
746
+ readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
747
+ readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer with `approved: true` (its signature approved it, so there was no request).">]>;
748
+ readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer with `approved: true` that submitted it, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
749
+ readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
750
+ readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
751
+ }, undefined>, v.DescriptionAction<{
752
+ object: "transfer";
753
+ id: string;
754
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
755
+ status_detail: string | null;
756
+ origin: "oauth" | "platform" | "emisor";
757
+ amount: number;
758
+ currency: "CLP";
759
+ sender: {
760
+ country: string;
761
+ bank_code: string;
762
+ account_type: "10" | "20" | "40";
763
+ account_number: string;
764
+ name: string | null;
765
+ national_kind_id: string | null;
766
+ national_id: string | null;
767
+ };
768
+ receiver: {
769
+ country: string;
770
+ bank_code: string;
771
+ account_type: "10" | "20" | "40";
772
+ account_number: string;
773
+ name: string | null;
774
+ national_kind_id: string | null;
775
+ national_id: string | null;
776
+ };
777
+ comment: string | null;
778
+ intent_id: string | null;
779
+ jti: string | null;
780
+ transaction_id: string | null;
781
+ created_at: string;
782
+ }, "A Transfer, with one shape for every origin. `sender` and `receiver` have the same fields, and `amount` and `currency` sit on the Transfer. It has no `approved` and no deadline: the decision belongs to the Intent.">]>;
783
+ }, undefined>, undefined>;
784
+ readonly pageInfo: v.StrictObjectSchema<{
785
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
786
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
787
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
788
+ readonly hasNextPage: v.BooleanSchema<undefined>;
789
+ }, undefined>;
790
+ }, undefined>, v.DescriptionAction<{
791
+ edges: {
792
+ cursor: string;
793
+ node: {
794
+ object: "transfer";
795
+ id: string;
796
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
797
+ status_detail: string | null;
798
+ origin: "oauth" | "platform" | "emisor";
799
+ amount: number;
800
+ currency: "CLP";
801
+ sender: {
802
+ country: string;
803
+ bank_code: string;
804
+ account_type: "10" | "20" | "40";
805
+ account_number: string;
806
+ name: string | null;
807
+ national_kind_id: string | null;
808
+ national_id: string | null;
809
+ };
810
+ receiver: {
811
+ country: string;
812
+ bank_code: string;
813
+ account_type: "10" | "20" | "40";
814
+ account_number: string;
815
+ name: string | null;
816
+ national_kind_id: string | null;
817
+ national_id: string | null;
818
+ };
819
+ comment: string | null;
820
+ intent_id: string | null;
821
+ jti: string | null;
822
+ transaction_id: string | null;
823
+ created_at: string;
824
+ };
825
+ }[];
826
+ pageInfo: {
827
+ startCursor: string | null;
828
+ endCursor: string | null;
829
+ hasPreviousPage: boolean;
830
+ hasNextPage: boolean;
831
+ };
832
+ }, string>]>;
833
+ /** A page of the Transfers of one account. */
834
+ export type TransferListPage = v.InferOutput<typeof TransferListPage>;
835
+ /** Lists the Transfers whose sender is one account, newest first. */
836
+ export declare const listAccountTransfers: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
837
+ readonly after: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2048, undefined>, v.DescriptionAction<string, "Opaque cursor previously returned by this collection.">]>, undefined>;
838
+ readonly first: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "Cursor page size; forward and backward argument families are exclusive.">]>;
839
+ readonly bank_account_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account's identifier (a UUID) or its Account Key.">]>;
840
+ }, undefined>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
841
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
842
+ readonly cursor: v.StringSchema<undefined>;
843
+ readonly node: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
844
+ readonly object: v.LiteralSchema<"transfer", undefined>;
845
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Transfer's own id: what `GET /transfers/{transfer_id}` reads.">]>;
846
+ readonly status: v.SchemaWithPipe<readonly [v.PicklistSchema<["requires_action", "processing", "succeeded", "failed", "cancelled"], undefined>, v.DescriptionAction<"succeeded" | "failed" | "cancelled" | "requires_action" | "processing", "Where the Transfer stands: `requires_action` while the person still owes the bank a step, `processing` while the bank holds it and has not answered for good, then `succeeded`, `failed` or `cancelled`, which are final. `status_detail` says why. There is no `rejected` Transfer: a rejection ends an Intent, and a rejected Intent has no Transfer.">]>;
847
+ readonly status_detail: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The word that says why, null when the status has none: `bank_refused` for a `failed` Transfer the bank refused for sure, `expired` for a `cancelled` one whose deadline passed, `grant_revoked` or `grant_expired` for one whose Grant ended. The vocabulary is open: a detail added later appears here as it is, so decide on `status`.">]>;
848
+ readonly origin: v.SchemaWithPipe<readonly [v.PicklistSchema<["oauth", "platform", "emisor"], undefined>, v.DescriptionAction<"oauth" | "platform" | "emisor", "Who made it: `oauth`, a Project through the API; `platform`, a person in the AndCo web app; `emisor`, a person in the issuer's own channels, for example its mobile app.">]>;
849
+ readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 2147483647, undefined>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647. A larger one is refused with `max_value`.">]>, v.DescriptionAction<number, "An integer in the minor unit of the currency (CLP: whole pesos), from 1 to 2147483647.">]>;
850
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
851
+ readonly sender: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
852
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
853
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
854
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
855
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
856
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
857
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
858
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
859
+ }, undefined>, v.DescriptionAction<{
860
+ country: string;
861
+ bank_code: string;
862
+ account_type: "10" | "20" | "40";
863
+ account_number: string;
864
+ name: string | null;
865
+ national_kind_id: string | null;
866
+ national_id: string | null;
867
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
868
+ country: string;
869
+ bank_code: string;
870
+ account_type: "10" | "20" | "40";
871
+ account_number: string;
872
+ name: string | null;
873
+ national_kind_id: string | null;
874
+ national_id: string | null;
875
+ }, "The Remitente: the account the money leaves and its holder.">]>;
876
+ readonly receiver: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
877
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "The country of the account, for example `CL`.">]>;
878
+ readonly bank_code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "The bank's four-digit code, as `GET /catalogs/banks` lists it. AndCo is `0739`.">]>;
879
+ readonly account_type: v.SchemaWithPipe<readonly [v.PicklistSchema<["10", "20", "40"], undefined>, v.DescriptionAction<"10" | "20" | "40", "The account type code: `\"10\"` savings, `\"20\"` checking, `\"40\"` debit (cuenta vista).">]>;
880
+ readonly account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.DescriptionAction<string, "The account number, as its bank writes it.">]>;
881
+ readonly name: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's name, or null when it is not known.">]>;
882
+ readonly national_kind_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The kind of the holder's document, for example `RUT`, or null when it is not known.">]>;
883
+ readonly national_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The holder's document number, or null when it is not known.">]>;
884
+ }, undefined>, v.DescriptionAction<{
885
+ country: string;
886
+ bank_code: string;
887
+ account_type: "10" | "20" | "40";
888
+ account_number: string;
889
+ name: string | null;
890
+ national_kind_id: string | null;
891
+ national_id: string | null;
892
+ }, "One side of a Transfer: the account and its holder, with the same seven fields for the Remitente and the Receptor. The amount is on the Transfer.">]>, v.DescriptionAction<{
893
+ country: string;
894
+ bank_code: string;
895
+ account_type: "10" | "20" | "40";
896
+ account_number: string;
897
+ name: string | null;
898
+ national_kind_id: string | null;
899
+ national_id: string | null;
900
+ }, "The Receptor: the account the money lands on and its holder.">]>;
901
+ readonly comment: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The Nota de operación, at most 60 bytes of UTF-8, or null when there is none.">]>;
902
+ readonly intent_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "The Intent this Transfer came from. Null for origin `emisor` (no request came first) and for a signed transfer with `approved: true` (its signature approved it, so there was no request).">]>;
903
+ readonly jti: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.RegexAction<string, "jti must be a lowercase UUID">, v.DescriptionAction<string, "A UUID in lowercase. It names the Transfer: it is its idempotency-key. The same `jti` with other content is a conflict.">]>, undefined>, v.DescriptionAction<string | null, "The `jti` of the signed transfer with `approved: true` that submitted it, a UUID in lowercase. Null for any other Transfer: the `jti` of a signed Intent stays on the Intent. `GET /transfers?jti=` finds only a Transfer that has one.">]>;
904
+ readonly transaction_id: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "The ledger id of the debit once the Transfer succeeded, else null. A Movement carries the same id.">]>;
905
+ readonly created_at: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.DescriptionAction<string, "When the Transfer came to exist.">]>;
906
+ }, undefined>, v.DescriptionAction<{
907
+ object: "transfer";
908
+ id: string;
909
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
910
+ status_detail: string | null;
911
+ origin: "oauth" | "platform" | "emisor";
912
+ amount: number;
913
+ currency: "CLP";
914
+ sender: {
915
+ country: string;
916
+ bank_code: string;
917
+ account_type: "10" | "20" | "40";
918
+ account_number: string;
919
+ name: string | null;
920
+ national_kind_id: string | null;
921
+ national_id: string | null;
922
+ };
923
+ receiver: {
924
+ country: string;
925
+ bank_code: string;
926
+ account_type: "10" | "20" | "40";
927
+ account_number: string;
928
+ name: string | null;
929
+ national_kind_id: string | null;
930
+ national_id: string | null;
931
+ };
932
+ comment: string | null;
933
+ intent_id: string | null;
934
+ jti: string | null;
935
+ transaction_id: string | null;
936
+ created_at: string;
937
+ }, "A Transfer, with one shape for every origin. `sender` and `receiver` have the same fields, and `amount` and `currency` sit on the Transfer. It has no `approved` and no deadline: the decision belongs to the Intent.">]>;
938
+ }, undefined>, undefined>;
939
+ readonly pageInfo: v.StrictObjectSchema<{
940
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
941
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
942
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
943
+ readonly hasNextPage: v.BooleanSchema<undefined>;
944
+ }, undefined>;
945
+ }, undefined>, v.DescriptionAction<{
946
+ edges: {
947
+ cursor: string;
948
+ node: {
949
+ object: "transfer";
950
+ id: string;
951
+ status: "succeeded" | "failed" | "cancelled" | "requires_action" | "processing";
952
+ status_detail: string | null;
953
+ origin: "oauth" | "platform" | "emisor";
954
+ amount: number;
955
+ currency: "CLP";
956
+ sender: {
957
+ country: string;
958
+ bank_code: string;
959
+ account_type: "10" | "20" | "40";
960
+ account_number: string;
961
+ name: string | null;
962
+ national_kind_id: string | null;
963
+ national_id: string | null;
964
+ };
965
+ receiver: {
966
+ country: string;
967
+ bank_code: string;
968
+ account_type: "10" | "20" | "40";
969
+ account_number: string;
970
+ name: string | null;
971
+ national_kind_id: string | null;
972
+ national_id: string | null;
973
+ };
974
+ comment: string | null;
975
+ intent_id: string | null;
976
+ jti: string | null;
977
+ transaction_id: string | null;
978
+ created_at: string;
979
+ };
980
+ }[];
981
+ pageInfo: {
982
+ startCursor: string | null;
983
+ endCursor: string | null;
984
+ hasPreviousPage: boolean;
985
+ hasNextPage: boolean;
986
+ };
987
+ }, string>]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidRequest, typeof InvalidCursor, typeof InvalidToken, typeof InvalidOrigin, typeof NotFound, typeof UnsupportedVersion, typeof ServerError, typeof TemporarilyUnavailable]>>;
988
+ //# sourceMappingURL=transfers.d.ts.map