@andco/protocol 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +33 -3
- package/dist/api-errors.d.ts +109 -0
- package/dist/api-errors.d.ts.map +1 -0
- package/dist/api-errors.js +111 -0
- package/dist/authorization-preparation.d.ts +52 -543
- package/dist/authorization-preparation.d.ts.map +1 -1
- package/dist/authorization-preparation.js +19 -42
- package/dist/authorization.d.ts +64 -22
- package/dist/authorization.d.ts.map +1 -1
- package/dist/authorization.js +136 -55
- package/dist/consent.d.ts +5 -8
- package/dist/consent.d.ts.map +1 -1
- package/dist/consent.js +5 -62
- package/dist/constants.d.ts +19 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +19 -3
- package/dist/errors.d.ts +156 -58
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +176 -57
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/intent-input.d.ts +1010 -279
- package/dist/intent-input.d.ts.map +1 -1
- package/dist/intent-input.js +268 -40
- package/dist/messages/error.d.ts +1 -2
- package/dist/messages/error.d.ts.map +1 -1
- package/dist/messages/error.js +5 -2
- package/dist/messages/index.d.ts +3 -3
- package/dist/messages/index.js +2 -2
- package/dist/messages/presentation-response.d.ts +20 -0
- package/dist/messages/presentation-response.d.ts.map +1 -0
- package/dist/messages/presentation-response.js +17 -0
- package/dist/native-copy.d.ts +23 -2
- package/dist/native-copy.d.ts.map +1 -1
- package/dist/native-copy.js +42 -98
- package/dist/native-intent.d.ts +126 -75
- package/dist/native-intent.d.ts.map +1 -1
- package/dist/native-intent.js +140 -48
- package/dist/rar/account-matchers.d.ts +579 -0
- package/dist/rar/account-matchers.d.ts.map +1 -0
- package/dist/rar/account-matchers.js +480 -0
- package/dist/rar/bank.d.ts +1549 -0
- package/dist/rar/bank.d.ts.map +1 -0
- package/dist/rar/bank.js +379 -0
- package/dist/rar/catalog.d.ts +1155 -0
- package/dist/rar/catalog.d.ts.map +1 -0
- package/dist/rar/catalog.js +175 -0
- package/dist/rar/detail.d.ts +39 -0
- package/dist/rar/detail.d.ts.map +1 -0
- package/dist/rar/detail.js +44 -0
- package/dist/rar/index.d.ts +9 -0
- package/dist/rar/index.d.ts.map +1 -0
- package/dist/rar/index.js +8 -0
- package/dist/rar/money.d.ts +58 -0
- package/dist/rar/money.d.ts.map +1 -0
- package/dist/rar/money.js +61 -0
- package/dist/rar/project-users.d.ts +43 -0
- package/dist/rar/project-users.d.ts.map +1 -0
- package/dist/rar/project-users.js +63 -0
- package/dist/rar/subject-data.d.ts +170 -0
- package/dist/rar/subject-data.d.ts.map +1 -0
- package/dist/rar/subject-data.js +127 -0
- package/dist/rar/subject.d.ts +166 -0
- package/dist/rar/subject.d.ts.map +1 -0
- package/dist/rar/subject.js +119 -0
- package/dist/scopes.d.ts +5 -30
- package/dist/scopes.d.ts.map +1 -1
- package/dist/scopes.js +0 -13
- package/dist/service-grants.d.ts +44 -0
- package/dist/service-grants.d.ts.map +1 -0
- package/dist/service-grants.js +45 -0
- package/dist/signing.d.ts +56 -0
- package/dist/signing.d.ts.map +1 -0
- package/dist/signing.js +233 -0
- package/dist/transport/financial-events.d.ts +90 -35
- package/dist/transport/financial-events.d.ts.map +1 -1
- package/dist/transport/financial-events.js +7 -1
- package/dist/transport/generated/oauth-api.d.ts +908 -440
- package/dist/transport/generated/oauth-api.d.ts.map +1 -1
- package/dist/transport/index.d.ts +0 -1
- package/dist/transport/index.d.ts.map +1 -1
- package/dist/transport/index.js +0 -1
- package/dist/transport/intents.d.ts +155 -23
- package/dist/transport/intents.d.ts.map +1 -1
- package/dist/transport/intents.js +192 -59
- package/dist/transport/rest.d.ts +18 -8
- package/dist/transport/rest.d.ts.map +1 -1
- package/dist/transport/rest.js +1 -1
- package/dist/urls.d.ts.map +1 -1
- package/dist/urls.js +1 -1
- package/dist/userinfo.d.ts +10 -1
- package/dist/userinfo.d.ts.map +1 -1
- package/dist/userinfo.js +10 -1
- package/dist/utils.d.ts +15 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +31 -0
- package/dist/webhooks.d.ts +154 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +249 -0
- package/package.json +18 -1
- package/dist/automatic-charge.d.ts +0 -314
- package/dist/automatic-charge.d.ts.map +0 -1
- package/dist/automatic-charge.js +0 -126
- package/dist/bank-account-authorization.d.ts +0 -6
- package/dist/bank-account-authorization.d.ts.map +0 -1
- package/dist/bank-account-authorization.js +0 -13
- package/dist/messages/authorization-response.d.ts +0 -12
- package/dist/messages/authorization-response.d.ts.map +0 -1
- package/dist/messages/authorization-response.js +0 -9
- package/dist/transport/webhooks.d.ts +0 -27
- package/dist/transport/webhooks.d.ts.map +0 -1
- package/dist/transport/webhooks.js +0 -68
- package/dist/webhook-input.d.ts +0 -22
- package/dist/webhook-input.d.ts.map +0 -1
- package/dist/webhook-input.js +0 -11
- package/dist/webhook-signature.d.ts +0 -54
- package/dist/webhook-signature.d.ts.map +0 -1
- package/dist/webhook-signature.js +0 -74
|
@@ -0,0 +1,1549 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/** Reading accounts and their balances. `create` never implies either. */
|
|
3
|
+
export declare const BANK_ACCOUNT_READ_ACTIONS: readonly ["read", "read_balance"];
|
|
4
|
+
/** Opening and closing accounts, within the alias patterns of `accounts`. Each is an Intent. */
|
|
5
|
+
export declare const BANK_ACCOUNT_MANAGE_ACTIONS: readonly ["create", "close"];
|
|
6
|
+
/** Approving or rejecting an Account Opening or closing someone else created: dual control. */
|
|
7
|
+
export declare const BANK_ACCOUNT_APPROVAL_ACTIONS: readonly ["approve", "reject"];
|
|
8
|
+
/** Every `bank_account` action, across its three forms. */
|
|
9
|
+
export declare const BANK_ACCOUNT_ACTIONS: readonly ["read", "read_balance", "create", "close", "approve", "reject"];
|
|
10
|
+
/** Reading the Transactions (ledger entries) of accounts. */
|
|
11
|
+
export declare const BANK_TRANSACTION_ACTIONS: readonly ["read"];
|
|
12
|
+
/** Proposing Transfers within the detail's bounds. */
|
|
13
|
+
export declare const BANK_TRANSFER_CREATE_ACTIONS: readonly ["create"];
|
|
14
|
+
/** Approving or rejecting Transfers someone else created: the other half of dual control. */
|
|
15
|
+
export declare const BANK_TRANSFER_APPROVAL_ACTIONS: readonly ["approve", "reject"];
|
|
16
|
+
/** Every `bank_transfer` action, across its two forms. */
|
|
17
|
+
export declare const BANK_TRANSFER_ACTIONS: readonly ["create", "approve", "reject"];
|
|
18
|
+
/** Creating, reading and closing Deposits. A Deposit needs no Approval: money arriving is not money leaving. */
|
|
19
|
+
export declare const BANK_DEPOSIT_ACTIONS: readonly ["create", "read", "close"];
|
|
20
|
+
/** The only currency a bank detail names today. It is still required: a permission never assumes CLP. */
|
|
21
|
+
export declare const BANK_CURRENCIES: readonly ["CLP"];
|
|
22
|
+
/**
|
|
23
|
+
* Amount limits of a Transfer permission in a Grant Request. `value` fixes an exact amount;
|
|
24
|
+
* `minimum`/`maximum` define a range, and both forms together are rejected as ambiguous. Every
|
|
25
|
+
* amount is at least {@link MINIMUM_TRANSACTION_AMOUNT}. With `editable`, consent may only lower
|
|
26
|
+
* the maximum or raise the minimum.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* const exact = { value: "25990" };
|
|
30
|
+
* const range = { minimum: "1000", maximum: "5000000", editable: true };
|
|
31
|
+
*/
|
|
32
|
+
export declare const TransferLimitsRequestSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
33
|
+
readonly value: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
34
|
+
readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
35
|
+
readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
36
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
37
|
+
}, undefined>, v.CheckAction<{
|
|
38
|
+
value?: string | null | undefined;
|
|
39
|
+
minimum?: string | null | undefined;
|
|
40
|
+
maximum?: string | null | undefined;
|
|
41
|
+
editable?: boolean | null | undefined;
|
|
42
|
+
}, "value_excludes_minimum_and_maximum">, v.CheckAction<{
|
|
43
|
+
value?: string | null | undefined;
|
|
44
|
+
minimum?: string | null | undefined;
|
|
45
|
+
maximum?: string | null | undefined;
|
|
46
|
+
editable?: boolean | null | undefined;
|
|
47
|
+
}, "minimum_above_maximum">]>;
|
|
48
|
+
/** {@link TransferLimitsRequestSchema} as granted: no `editable`, no `null`. */
|
|
49
|
+
export declare const TransferLimitsGrantSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
50
|
+
readonly value: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
51
|
+
readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
52
|
+
readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
53
|
+
}, undefined>, v.CheckAction<{
|
|
54
|
+
value?: string | undefined;
|
|
55
|
+
minimum?: string | undefined;
|
|
56
|
+
maximum?: string | undefined;
|
|
57
|
+
}, "value_excludes_minimum_and_maximum">, v.CheckAction<{
|
|
58
|
+
value?: string | undefined;
|
|
59
|
+
minimum?: string | undefined;
|
|
60
|
+
maximum?: string | undefined;
|
|
61
|
+
}, "minimum_above_maximum">]>;
|
|
62
|
+
/** The amount an approver may approve, in a Grant Request. `null` or absent means no bound. */
|
|
63
|
+
export declare const ApprovalLimitsRequestSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
64
|
+
readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
65
|
+
readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
66
|
+
}, undefined>, v.CheckAction<{
|
|
67
|
+
minimum?: string | null | undefined;
|
|
68
|
+
maximum?: string | null | undefined;
|
|
69
|
+
}, "minimum_above_maximum">]>;
|
|
70
|
+
/** {@link ApprovalLimitsRequestSchema} as granted. */
|
|
71
|
+
export declare const ApprovalLimitsGrantSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
72
|
+
readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
73
|
+
readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
74
|
+
}, undefined>, v.CheckAction<{
|
|
75
|
+
minimum?: string | undefined;
|
|
76
|
+
maximum?: string | undefined;
|
|
77
|
+
}, "minimum_above_maximum">]>;
|
|
78
|
+
/**
|
|
79
|
+
* `bank_account` Grant Request: three forms, one per action family, never mixed in one detail.
|
|
80
|
+
*
|
|
81
|
+
* - `read`/`read_balance` over `accounts` (own matchers; absent means every own account).
|
|
82
|
+
* - `create`/`close` within `accounts`, which is required and only takes alias patterns: an
|
|
83
|
+
* application opens the accounts its naming convention owns.
|
|
84
|
+
* - `approve`/`reject` of openings and closings, without accounts.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* const read: BankAccountGrantRequest = {
|
|
88
|
+
* type: "bank_account",
|
|
89
|
+
* actions: ["read", "read_balance"],
|
|
90
|
+
* locations: ["https://api.andco.com"],
|
|
91
|
+
* subject: { type: "organization", editable: true },
|
|
92
|
+
* accounts: [{ type: "alias", pattern: "caja-*", editable: true }],
|
|
93
|
+
* };
|
|
94
|
+
*/
|
|
95
|
+
export declare const BankAccountGrantRequestSchema: v.UnionSchema<[v.StrictObjectSchema<{
|
|
96
|
+
readonly type: v.LiteralSchema<"bank_account", undefined>;
|
|
97
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "read_balance"], undefined>, undefined>, v.MinLengthAction<("read" | "read_balance")[], 1, undefined>, v.CheckAction<("read" | "read_balance")[], "duplicate_action">]>;
|
|
98
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
99
|
+
readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
100
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
101
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
102
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
103
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
104
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
|
|
105
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
106
|
+
}, undefined>], undefined>, undefined>;
|
|
107
|
+
readonly accounts: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
108
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
|
|
109
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
110
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
111
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
112
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
113
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
114
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
115
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
116
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
117
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
118
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
119
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
120
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
121
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
122
|
+
type?: "alias" | null | undefined;
|
|
123
|
+
pattern: string;
|
|
124
|
+
editable?: boolean | null | undefined;
|
|
125
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
type: "account";
|
|
128
|
+
id: string;
|
|
129
|
+
editable?: boolean | null | undefined;
|
|
130
|
+
} | {
|
|
131
|
+
type: "any";
|
|
132
|
+
limit: "own";
|
|
133
|
+
editable?: boolean | null | undefined;
|
|
134
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
135
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
136
|
+
type?: "alias" | null | undefined;
|
|
137
|
+
pattern: string;
|
|
138
|
+
editable?: boolean | null | undefined;
|
|
139
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
140
|
+
} | {
|
|
141
|
+
type: "account";
|
|
142
|
+
id: string;
|
|
143
|
+
editable?: boolean | null | undefined;
|
|
144
|
+
} | {
|
|
145
|
+
type: "any";
|
|
146
|
+
limit: "own";
|
|
147
|
+
editable?: boolean | null | undefined;
|
|
148
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
149
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
150
|
+
type?: "alias" | null | undefined;
|
|
151
|
+
pattern: string;
|
|
152
|
+
editable?: boolean | null | undefined;
|
|
153
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
154
|
+
} | {
|
|
155
|
+
type: "account";
|
|
156
|
+
id: string;
|
|
157
|
+
editable?: boolean | null | undefined;
|
|
158
|
+
} | {
|
|
159
|
+
type: "any";
|
|
160
|
+
limit: "own";
|
|
161
|
+
editable?: boolean | null | undefined;
|
|
162
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
163
|
+
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
164
|
+
type?: "alias" | null | undefined;
|
|
165
|
+
pattern: string;
|
|
166
|
+
editable?: boolean | null | undefined;
|
|
167
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
168
|
+
} | {
|
|
169
|
+
type: "account";
|
|
170
|
+
id: string;
|
|
171
|
+
editable?: boolean | null | undefined;
|
|
172
|
+
} | {
|
|
173
|
+
type: "any";
|
|
174
|
+
limit: "own";
|
|
175
|
+
editable?: boolean | null | undefined;
|
|
176
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
177
|
+
})[], "account_selection_incoherent">]>, undefined>;
|
|
178
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
179
|
+
readonly type: v.LiteralSchema<"bank_account", undefined>;
|
|
180
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "close"], undefined>, undefined>, v.MinLengthAction<("create" | "close")[], 1, undefined>, v.CheckAction<("create" | "close")[], "duplicate_action">]>;
|
|
181
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
182
|
+
readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
183
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
184
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
185
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
186
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
187
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
|
|
188
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
189
|
+
}, undefined>], undefined>, undefined>;
|
|
190
|
+
readonly accounts: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
191
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
|
|
192
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
193
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
194
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
195
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
196
|
+
type?: "alias" | null | undefined;
|
|
197
|
+
pattern: string;
|
|
198
|
+
editable?: boolean | null | undefined;
|
|
199
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
200
|
+
}[], 1, undefined>, v.MaxLengthAction<{
|
|
201
|
+
type?: "alias" | null | undefined;
|
|
202
|
+
pattern: string;
|
|
203
|
+
editable?: boolean | null | undefined;
|
|
204
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
205
|
+
}[], 100, undefined>, v.CheckAction<{
|
|
206
|
+
type?: "alias" | null | undefined;
|
|
207
|
+
pattern: string;
|
|
208
|
+
editable?: boolean | null | undefined;
|
|
209
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
210
|
+
}[], "duplicate_account_matcher">]>, v.CheckAction<{
|
|
211
|
+
type?: "alias" | null | undefined;
|
|
212
|
+
pattern: string;
|
|
213
|
+
editable?: boolean | null | undefined;
|
|
214
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
215
|
+
}[], "account_selection_not_pickable">]>;
|
|
216
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
217
|
+
readonly type: v.LiteralSchema<"bank_account", undefined>;
|
|
218
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
|
|
219
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
220
|
+
readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
221
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
222
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
223
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
224
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
225
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
|
|
226
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
227
|
+
}, undefined>], undefined>, undefined>;
|
|
228
|
+
}, undefined>], undefined>;
|
|
229
|
+
export type BankAccountGrantRequest = v.InferInput<typeof BankAccountGrantRequestSchema>;
|
|
230
|
+
/** `bank_account` Grant: the three forms with the subject resolved and `accounts` materialized. */
|
|
231
|
+
export declare const BankAccountGrantSchema: v.UnionSchema<[v.StrictObjectSchema<{
|
|
232
|
+
readonly type: v.LiteralSchema<"bank_account", undefined>;
|
|
233
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "read_balance"], undefined>, undefined>, v.MinLengthAction<("read" | "read_balance")[], 1, undefined>, v.CheckAction<("read" | "read_balance")[], "duplicate_action">]>;
|
|
234
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
235
|
+
readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
236
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
237
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
238
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
239
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
240
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
241
|
+
}, undefined>], undefined>;
|
|
242
|
+
readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
243
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
244
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
245
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
246
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
247
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
248
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
249
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
250
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
251
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
252
|
+
type: "alias";
|
|
253
|
+
pattern: string;
|
|
254
|
+
} | {
|
|
255
|
+
type: "account";
|
|
256
|
+
id: string;
|
|
257
|
+
} | {
|
|
258
|
+
type: "any";
|
|
259
|
+
limit: "own";
|
|
260
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
261
|
+
type: "alias";
|
|
262
|
+
pattern: string;
|
|
263
|
+
} | {
|
|
264
|
+
type: "account";
|
|
265
|
+
id: string;
|
|
266
|
+
} | {
|
|
267
|
+
type: "any";
|
|
268
|
+
limit: "own";
|
|
269
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
270
|
+
type: "alias";
|
|
271
|
+
pattern: string;
|
|
272
|
+
} | {
|
|
273
|
+
type: "account";
|
|
274
|
+
id: string;
|
|
275
|
+
} | {
|
|
276
|
+
type: "any";
|
|
277
|
+
limit: "own";
|
|
278
|
+
})[], "duplicate_account_matcher">]>;
|
|
279
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
280
|
+
readonly type: v.LiteralSchema<"bank_account", undefined>;
|
|
281
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "close"], undefined>, undefined>, v.MinLengthAction<("create" | "close")[], 1, undefined>, v.CheckAction<("create" | "close")[], "duplicate_action">]>;
|
|
282
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
283
|
+
readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
284
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
285
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
286
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
287
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
288
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
289
|
+
}, undefined>], undefined>;
|
|
290
|
+
readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
291
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
292
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
293
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
294
|
+
type: "alias";
|
|
295
|
+
pattern: string;
|
|
296
|
+
}[], 1, undefined>, v.MaxLengthAction<{
|
|
297
|
+
type: "alias";
|
|
298
|
+
pattern: string;
|
|
299
|
+
}[], 100, undefined>, v.CheckAction<{
|
|
300
|
+
type: "alias";
|
|
301
|
+
pattern: string;
|
|
302
|
+
}[], "duplicate_account_matcher">]>;
|
|
303
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
304
|
+
readonly type: v.LiteralSchema<"bank_account", undefined>;
|
|
305
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
|
|
306
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
307
|
+
readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
308
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
309
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
310
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
311
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
312
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
313
|
+
}, undefined>], undefined>;
|
|
314
|
+
}, undefined>], undefined>;
|
|
315
|
+
export type BankAccountGrant = v.InferOutput<typeof BankAccountGrantSchema>;
|
|
316
|
+
/**
|
|
317
|
+
* `bank_transaction` Grant Request: read the Transactions of `accounts` (absent means every own
|
|
318
|
+
* account).
|
|
319
|
+
*
|
|
320
|
+
* @example
|
|
321
|
+
* const statement: BankTransactionGrantRequest = {
|
|
322
|
+
* type: "bank_transaction",
|
|
323
|
+
* actions: ["read"],
|
|
324
|
+
* locations: ["https://api.andco.com"],
|
|
325
|
+
* subject: { type: "profile" },
|
|
326
|
+
* accounts: [{ type: "any", limit: "own" }],
|
|
327
|
+
* };
|
|
328
|
+
*/
|
|
329
|
+
export declare const BankTransactionGrantRequestSchema: v.StrictObjectSchema<{
|
|
330
|
+
readonly type: v.LiteralSchema<"bank_transaction", undefined>;
|
|
331
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.CheckAction<"read"[], "duplicate_action">]>;
|
|
332
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
333
|
+
readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
334
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
335
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
336
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
337
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
338
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
|
|
339
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
340
|
+
}, undefined>], undefined>, undefined>;
|
|
341
|
+
readonly accounts: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
342
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
|
|
343
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
344
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
345
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
346
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
347
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
348
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
349
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
350
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
351
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
352
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
353
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
354
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
355
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
356
|
+
type?: "alias" | null | undefined;
|
|
357
|
+
pattern: string;
|
|
358
|
+
editable?: boolean | null | undefined;
|
|
359
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
360
|
+
} | {
|
|
361
|
+
type: "account";
|
|
362
|
+
id: string;
|
|
363
|
+
editable?: boolean | null | undefined;
|
|
364
|
+
} | {
|
|
365
|
+
type: "any";
|
|
366
|
+
limit: "own";
|
|
367
|
+
editable?: boolean | null | undefined;
|
|
368
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
369
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
370
|
+
type?: "alias" | null | undefined;
|
|
371
|
+
pattern: string;
|
|
372
|
+
editable?: boolean | null | undefined;
|
|
373
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
374
|
+
} | {
|
|
375
|
+
type: "account";
|
|
376
|
+
id: string;
|
|
377
|
+
editable?: boolean | null | undefined;
|
|
378
|
+
} | {
|
|
379
|
+
type: "any";
|
|
380
|
+
limit: "own";
|
|
381
|
+
editable?: boolean | null | undefined;
|
|
382
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
383
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
384
|
+
type?: "alias" | null | undefined;
|
|
385
|
+
pattern: string;
|
|
386
|
+
editable?: boolean | null | undefined;
|
|
387
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
388
|
+
} | {
|
|
389
|
+
type: "account";
|
|
390
|
+
id: string;
|
|
391
|
+
editable?: boolean | null | undefined;
|
|
392
|
+
} | {
|
|
393
|
+
type: "any";
|
|
394
|
+
limit: "own";
|
|
395
|
+
editable?: boolean | null | undefined;
|
|
396
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
397
|
+
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
398
|
+
type?: "alias" | null | undefined;
|
|
399
|
+
pattern: string;
|
|
400
|
+
editable?: boolean | null | undefined;
|
|
401
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
402
|
+
} | {
|
|
403
|
+
type: "account";
|
|
404
|
+
id: string;
|
|
405
|
+
editable?: boolean | null | undefined;
|
|
406
|
+
} | {
|
|
407
|
+
type: "any";
|
|
408
|
+
limit: "own";
|
|
409
|
+
editable?: boolean | null | undefined;
|
|
410
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
411
|
+
})[], "account_selection_incoherent">]>, undefined>;
|
|
412
|
+
}, undefined>;
|
|
413
|
+
export type BankTransactionGrantRequest = v.InferInput<typeof BankTransactionGrantRequestSchema>;
|
|
414
|
+
/** `bank_transaction` Grant. */
|
|
415
|
+
export declare const BankTransactionGrantSchema: v.StrictObjectSchema<{
|
|
416
|
+
readonly type: v.LiteralSchema<"bank_transaction", undefined>;
|
|
417
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.CheckAction<"read"[], "duplicate_action">]>;
|
|
418
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
419
|
+
readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
420
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
421
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
422
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
423
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
424
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
425
|
+
}, undefined>], undefined>;
|
|
426
|
+
readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
427
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
428
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
429
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
430
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
431
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
432
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
433
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
434
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
435
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
436
|
+
type: "alias";
|
|
437
|
+
pattern: string;
|
|
438
|
+
} | {
|
|
439
|
+
type: "account";
|
|
440
|
+
id: string;
|
|
441
|
+
} | {
|
|
442
|
+
type: "any";
|
|
443
|
+
limit: "own";
|
|
444
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
445
|
+
type: "alias";
|
|
446
|
+
pattern: string;
|
|
447
|
+
} | {
|
|
448
|
+
type: "account";
|
|
449
|
+
id: string;
|
|
450
|
+
} | {
|
|
451
|
+
type: "any";
|
|
452
|
+
limit: "own";
|
|
453
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
454
|
+
type: "alias";
|
|
455
|
+
pattern: string;
|
|
456
|
+
} | {
|
|
457
|
+
type: "account";
|
|
458
|
+
id: string;
|
|
459
|
+
} | {
|
|
460
|
+
type: "any";
|
|
461
|
+
limit: "own";
|
|
462
|
+
})[], "duplicate_account_matcher">]>;
|
|
463
|
+
}, undefined>;
|
|
464
|
+
export type BankTransactionGrant = v.InferOutput<typeof BankTransactionGrantSchema>;
|
|
465
|
+
/**
|
|
466
|
+
* `bank_transfer` Grant Request, create form: propose Transfers within explicit bounds.
|
|
467
|
+
*
|
|
468
|
+
* `sources` only takes own matchers (absent means any own account); `destinations` takes every
|
|
469
|
+
* matcher (absent means any account, other banks included). `currency` is required. `budgets` is
|
|
470
|
+
* reserved and must be absent or `null`.
|
|
471
|
+
*
|
|
472
|
+
* @example
|
|
473
|
+
* const propose: BankTransferCreateGrantRequest = {
|
|
474
|
+
* type: "bank_transfer",
|
|
475
|
+
* actions: ["create"],
|
|
476
|
+
* locations: ["https://api.andco.com"],
|
|
477
|
+
* subject: { type: "organization" },
|
|
478
|
+
* sources: [{ type: "alias", pattern: "caja-*", editable: true }],
|
|
479
|
+
* destinations: [{ type: "alias", pattern: "proveedores" }, { type: "external", bank_id: "banco_de_chile" }],
|
|
480
|
+
* currency: "CLP",
|
|
481
|
+
* transactions: { minimum: "1000", maximum: "5000000", editable: true },
|
|
482
|
+
* budgets: null,
|
|
483
|
+
* };
|
|
484
|
+
*/
|
|
485
|
+
export declare const BankTransferCreateGrantRequestSchema: v.StrictObjectSchema<{
|
|
486
|
+
readonly type: v.LiteralSchema<"bank_transfer", undefined>;
|
|
487
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create"], undefined>, undefined>, v.MinLengthAction<"create"[], 1, undefined>, v.CheckAction<"create"[], "duplicate_action">]>;
|
|
488
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
489
|
+
readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
490
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
491
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
492
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
493
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
494
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
|
|
495
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
496
|
+
}, undefined>], undefined>, undefined>;
|
|
497
|
+
readonly sources: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
498
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
|
|
499
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
500
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
501
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
502
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
503
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
504
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
505
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
506
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
507
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
508
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
509
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
510
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
511
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
512
|
+
type?: "alias" | null | undefined;
|
|
513
|
+
pattern: string;
|
|
514
|
+
editable?: boolean | null | undefined;
|
|
515
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
516
|
+
} | {
|
|
517
|
+
type: "account";
|
|
518
|
+
id: string;
|
|
519
|
+
editable?: boolean | null | undefined;
|
|
520
|
+
} | {
|
|
521
|
+
type: "any";
|
|
522
|
+
limit: "own";
|
|
523
|
+
editable?: boolean | null | undefined;
|
|
524
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
525
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
526
|
+
type?: "alias" | null | undefined;
|
|
527
|
+
pattern: string;
|
|
528
|
+
editable?: boolean | null | undefined;
|
|
529
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
530
|
+
} | {
|
|
531
|
+
type: "account";
|
|
532
|
+
id: string;
|
|
533
|
+
editable?: boolean | null | undefined;
|
|
534
|
+
} | {
|
|
535
|
+
type: "any";
|
|
536
|
+
limit: "own";
|
|
537
|
+
editable?: boolean | null | undefined;
|
|
538
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
539
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
540
|
+
type?: "alias" | null | undefined;
|
|
541
|
+
pattern: string;
|
|
542
|
+
editable?: boolean | null | undefined;
|
|
543
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
544
|
+
} | {
|
|
545
|
+
type: "account";
|
|
546
|
+
id: string;
|
|
547
|
+
editable?: boolean | null | undefined;
|
|
548
|
+
} | {
|
|
549
|
+
type: "any";
|
|
550
|
+
limit: "own";
|
|
551
|
+
editable?: boolean | null | undefined;
|
|
552
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
553
|
+
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
554
|
+
type?: "alias" | null | undefined;
|
|
555
|
+
pattern: string;
|
|
556
|
+
editable?: boolean | null | undefined;
|
|
557
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
558
|
+
} | {
|
|
559
|
+
type: "account";
|
|
560
|
+
id: string;
|
|
561
|
+
editable?: boolean | null | undefined;
|
|
562
|
+
} | {
|
|
563
|
+
type: "any";
|
|
564
|
+
limit: "own";
|
|
565
|
+
editable?: boolean | null | undefined;
|
|
566
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
567
|
+
})[], "account_selection_incoherent">]>, undefined>;
|
|
568
|
+
readonly destinations: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
569
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
|
|
570
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
571
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
572
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
573
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
574
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
575
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
576
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
577
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
578
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
579
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
580
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
581
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
582
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
583
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
584
|
+
readonly limit: v.LiteralSchema<"local", undefined>;
|
|
585
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
586
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
587
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
588
|
+
readonly limit: v.LiteralSchema<"all", undefined>;
|
|
589
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
590
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
591
|
+
readonly bank_id: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
592
|
+
readonly account_type: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
593
|
+
readonly account_id: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
594
|
+
readonly holder_id: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
595
|
+
readonly holder_name: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
596
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
597
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
598
|
+
type?: "alias" | null | undefined;
|
|
599
|
+
pattern: string;
|
|
600
|
+
editable?: boolean | null | undefined;
|
|
601
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
602
|
+
} | {
|
|
603
|
+
type: "account";
|
|
604
|
+
id: string;
|
|
605
|
+
editable?: boolean | null | undefined;
|
|
606
|
+
} | {
|
|
607
|
+
type: "any";
|
|
608
|
+
limit: "own";
|
|
609
|
+
editable?: boolean | null | undefined;
|
|
610
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
611
|
+
} | {
|
|
612
|
+
type: "any";
|
|
613
|
+
limit: "local";
|
|
614
|
+
editable?: boolean | null | undefined;
|
|
615
|
+
} | {
|
|
616
|
+
type: "any";
|
|
617
|
+
limit: "all";
|
|
618
|
+
} | {
|
|
619
|
+
type: "external";
|
|
620
|
+
bank_id?: string | null | undefined;
|
|
621
|
+
account_type?: string | null | undefined;
|
|
622
|
+
account_id?: string | null | undefined;
|
|
623
|
+
holder_id?: string | null | undefined;
|
|
624
|
+
holder_name?: string | null | undefined;
|
|
625
|
+
editable?: boolean | null | undefined;
|
|
626
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
627
|
+
type?: "alias" | null | undefined;
|
|
628
|
+
pattern: string;
|
|
629
|
+
editable?: boolean | null | undefined;
|
|
630
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
631
|
+
} | {
|
|
632
|
+
type: "account";
|
|
633
|
+
id: string;
|
|
634
|
+
editable?: boolean | null | undefined;
|
|
635
|
+
} | {
|
|
636
|
+
type: "any";
|
|
637
|
+
limit: "own";
|
|
638
|
+
editable?: boolean | null | undefined;
|
|
639
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
640
|
+
} | {
|
|
641
|
+
type: "any";
|
|
642
|
+
limit: "local";
|
|
643
|
+
editable?: boolean | null | undefined;
|
|
644
|
+
} | {
|
|
645
|
+
type: "any";
|
|
646
|
+
limit: "all";
|
|
647
|
+
} | {
|
|
648
|
+
type: "external";
|
|
649
|
+
bank_id?: string | null | undefined;
|
|
650
|
+
account_type?: string | null | undefined;
|
|
651
|
+
account_id?: string | null | undefined;
|
|
652
|
+
holder_id?: string | null | undefined;
|
|
653
|
+
holder_name?: string | null | undefined;
|
|
654
|
+
editable?: boolean | null | undefined;
|
|
655
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
656
|
+
type?: "alias" | null | undefined;
|
|
657
|
+
pattern: string;
|
|
658
|
+
editable?: boolean | null | undefined;
|
|
659
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
660
|
+
} | {
|
|
661
|
+
type: "account";
|
|
662
|
+
id: string;
|
|
663
|
+
editable?: boolean | null | undefined;
|
|
664
|
+
} | {
|
|
665
|
+
type: "any";
|
|
666
|
+
limit: "own";
|
|
667
|
+
editable?: boolean | null | undefined;
|
|
668
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
669
|
+
} | {
|
|
670
|
+
type: "any";
|
|
671
|
+
limit: "local";
|
|
672
|
+
editable?: boolean | null | undefined;
|
|
673
|
+
} | {
|
|
674
|
+
type: "any";
|
|
675
|
+
limit: "all";
|
|
676
|
+
} | {
|
|
677
|
+
type: "external";
|
|
678
|
+
bank_id?: string | null | undefined;
|
|
679
|
+
account_type?: string | null | undefined;
|
|
680
|
+
account_id?: string | null | undefined;
|
|
681
|
+
holder_id?: string | null | undefined;
|
|
682
|
+
holder_name?: string | null | undefined;
|
|
683
|
+
editable?: boolean | null | undefined;
|
|
684
|
+
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
685
|
+
type?: "alias" | null | undefined;
|
|
686
|
+
pattern: string;
|
|
687
|
+
editable?: boolean | null | undefined;
|
|
688
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
689
|
+
} | {
|
|
690
|
+
type: "account";
|
|
691
|
+
id: string;
|
|
692
|
+
editable?: boolean | null | undefined;
|
|
693
|
+
} | {
|
|
694
|
+
type: "any";
|
|
695
|
+
limit: "own";
|
|
696
|
+
editable?: boolean | null | undefined;
|
|
697
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
698
|
+
} | {
|
|
699
|
+
type: "any";
|
|
700
|
+
limit: "local";
|
|
701
|
+
editable?: boolean | null | undefined;
|
|
702
|
+
} | {
|
|
703
|
+
type: "any";
|
|
704
|
+
limit: "all";
|
|
705
|
+
} | {
|
|
706
|
+
type: "external";
|
|
707
|
+
bank_id?: string | null | undefined;
|
|
708
|
+
account_type?: string | null | undefined;
|
|
709
|
+
account_id?: string | null | undefined;
|
|
710
|
+
holder_id?: string | null | undefined;
|
|
711
|
+
holder_name?: string | null | undefined;
|
|
712
|
+
editable?: boolean | null | undefined;
|
|
713
|
+
})[], "account_selection_not_pickable">]>, undefined>;
|
|
714
|
+
readonly currency: v.PicklistSchema<readonly ["CLP"], undefined>;
|
|
715
|
+
readonly transactions: v.NullishSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
716
|
+
readonly value: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
717
|
+
readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
718
|
+
readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
719
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
720
|
+
}, undefined>, v.CheckAction<{
|
|
721
|
+
value?: string | null | undefined;
|
|
722
|
+
minimum?: string | null | undefined;
|
|
723
|
+
maximum?: string | null | undefined;
|
|
724
|
+
editable?: boolean | null | undefined;
|
|
725
|
+
}, "value_excludes_minimum_and_maximum">, v.CheckAction<{
|
|
726
|
+
value?: string | null | undefined;
|
|
727
|
+
minimum?: string | null | undefined;
|
|
728
|
+
maximum?: string | null | undefined;
|
|
729
|
+
editable?: boolean | null | undefined;
|
|
730
|
+
}, "minimum_above_maximum">]>, undefined>;
|
|
731
|
+
readonly budgets: v.OptionalSchema<v.NullSchema<undefined>, undefined>;
|
|
732
|
+
}, undefined>;
|
|
733
|
+
export type BankTransferCreateGrantRequest = v.InferInput<typeof BankTransferCreateGrantRequestSchema>;
|
|
734
|
+
/**
|
|
735
|
+
* `bank_transfer` Grant Request, approval form: approve or reject Transfers someone else created, up
|
|
736
|
+
* to an optional amount.
|
|
737
|
+
*
|
|
738
|
+
* @example
|
|
739
|
+
* const approve: BankTransferApprovalGrantRequest = {
|
|
740
|
+
* type: "bank_transfer",
|
|
741
|
+
* actions: ["approve", "reject"],
|
|
742
|
+
* locations: ["https://api.andco.com"],
|
|
743
|
+
* subject: { type: "organization", identifier: "42" },
|
|
744
|
+
* transactions: { maximum: "10000000" },
|
|
745
|
+
* };
|
|
746
|
+
*/
|
|
747
|
+
export declare const BankTransferApprovalGrantRequestSchema: v.StrictObjectSchema<{
|
|
748
|
+
readonly type: v.LiteralSchema<"bank_transfer", undefined>;
|
|
749
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
|
|
750
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
751
|
+
readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
752
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
753
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
754
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
755
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
756
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
|
|
757
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
758
|
+
}, undefined>], undefined>, undefined>;
|
|
759
|
+
readonly transactions: v.NullishSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
760
|
+
readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
761
|
+
readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
762
|
+
}, undefined>, v.CheckAction<{
|
|
763
|
+
minimum?: string | null | undefined;
|
|
764
|
+
maximum?: string | null | undefined;
|
|
765
|
+
}, "minimum_above_maximum">]>, undefined>;
|
|
766
|
+
}, undefined>;
|
|
767
|
+
export type BankTransferApprovalGrantRequest = v.InferInput<typeof BankTransferApprovalGrantRequestSchema>;
|
|
768
|
+
/** `bank_transfer` Grant Request: the create form or the approval form, never both in one detail. */
|
|
769
|
+
export declare const BankTransferGrantRequestSchema: v.UnionSchema<[v.StrictObjectSchema<{
|
|
770
|
+
readonly type: v.LiteralSchema<"bank_transfer", undefined>;
|
|
771
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create"], undefined>, undefined>, v.MinLengthAction<"create"[], 1, undefined>, v.CheckAction<"create"[], "duplicate_action">]>;
|
|
772
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
773
|
+
readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
774
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
775
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
776
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
777
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
778
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
|
|
779
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
780
|
+
}, undefined>], undefined>, undefined>;
|
|
781
|
+
readonly sources: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
782
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
|
|
783
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
784
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
785
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
786
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
787
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
788
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
789
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
790
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
791
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
792
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
793
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
794
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
795
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
796
|
+
type?: "alias" | null | undefined;
|
|
797
|
+
pattern: string;
|
|
798
|
+
editable?: boolean | null | undefined;
|
|
799
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
800
|
+
} | {
|
|
801
|
+
type: "account";
|
|
802
|
+
id: string;
|
|
803
|
+
editable?: boolean | null | undefined;
|
|
804
|
+
} | {
|
|
805
|
+
type: "any";
|
|
806
|
+
limit: "own";
|
|
807
|
+
editable?: boolean | null | undefined;
|
|
808
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
809
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
810
|
+
type?: "alias" | null | undefined;
|
|
811
|
+
pattern: string;
|
|
812
|
+
editable?: boolean | null | undefined;
|
|
813
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
814
|
+
} | {
|
|
815
|
+
type: "account";
|
|
816
|
+
id: string;
|
|
817
|
+
editable?: boolean | null | undefined;
|
|
818
|
+
} | {
|
|
819
|
+
type: "any";
|
|
820
|
+
limit: "own";
|
|
821
|
+
editable?: boolean | null | undefined;
|
|
822
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
823
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
824
|
+
type?: "alias" | null | undefined;
|
|
825
|
+
pattern: string;
|
|
826
|
+
editable?: boolean | null | undefined;
|
|
827
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
828
|
+
} | {
|
|
829
|
+
type: "account";
|
|
830
|
+
id: string;
|
|
831
|
+
editable?: boolean | null | undefined;
|
|
832
|
+
} | {
|
|
833
|
+
type: "any";
|
|
834
|
+
limit: "own";
|
|
835
|
+
editable?: boolean | null | undefined;
|
|
836
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
837
|
+
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
838
|
+
type?: "alias" | null | undefined;
|
|
839
|
+
pattern: string;
|
|
840
|
+
editable?: boolean | null | undefined;
|
|
841
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
842
|
+
} | {
|
|
843
|
+
type: "account";
|
|
844
|
+
id: string;
|
|
845
|
+
editable?: boolean | null | undefined;
|
|
846
|
+
} | {
|
|
847
|
+
type: "any";
|
|
848
|
+
limit: "own";
|
|
849
|
+
editable?: boolean | null | undefined;
|
|
850
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
851
|
+
})[], "account_selection_incoherent">]>, undefined>;
|
|
852
|
+
readonly destinations: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
853
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
|
|
854
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
855
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
856
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
857
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
858
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
859
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
860
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
861
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
862
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
863
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
864
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
865
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
866
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
867
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
868
|
+
readonly limit: v.LiteralSchema<"local", undefined>;
|
|
869
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
870
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
871
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
872
|
+
readonly limit: v.LiteralSchema<"all", undefined>;
|
|
873
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
874
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
875
|
+
readonly bank_id: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
876
|
+
readonly account_type: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
877
|
+
readonly account_id: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
878
|
+
readonly holder_id: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
879
|
+
readonly holder_name: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
880
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
881
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
882
|
+
type?: "alias" | null | undefined;
|
|
883
|
+
pattern: string;
|
|
884
|
+
editable?: boolean | null | undefined;
|
|
885
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
886
|
+
} | {
|
|
887
|
+
type: "account";
|
|
888
|
+
id: string;
|
|
889
|
+
editable?: boolean | null | undefined;
|
|
890
|
+
} | {
|
|
891
|
+
type: "any";
|
|
892
|
+
limit: "own";
|
|
893
|
+
editable?: boolean | null | undefined;
|
|
894
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
895
|
+
} | {
|
|
896
|
+
type: "any";
|
|
897
|
+
limit: "local";
|
|
898
|
+
editable?: boolean | null | undefined;
|
|
899
|
+
} | {
|
|
900
|
+
type: "any";
|
|
901
|
+
limit: "all";
|
|
902
|
+
} | {
|
|
903
|
+
type: "external";
|
|
904
|
+
bank_id?: string | null | undefined;
|
|
905
|
+
account_type?: string | null | undefined;
|
|
906
|
+
account_id?: string | null | undefined;
|
|
907
|
+
holder_id?: string | null | undefined;
|
|
908
|
+
holder_name?: string | null | undefined;
|
|
909
|
+
editable?: boolean | null | undefined;
|
|
910
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
911
|
+
type?: "alias" | null | undefined;
|
|
912
|
+
pattern: string;
|
|
913
|
+
editable?: boolean | null | undefined;
|
|
914
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
915
|
+
} | {
|
|
916
|
+
type: "account";
|
|
917
|
+
id: string;
|
|
918
|
+
editable?: boolean | null | undefined;
|
|
919
|
+
} | {
|
|
920
|
+
type: "any";
|
|
921
|
+
limit: "own";
|
|
922
|
+
editable?: boolean | null | undefined;
|
|
923
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
924
|
+
} | {
|
|
925
|
+
type: "any";
|
|
926
|
+
limit: "local";
|
|
927
|
+
editable?: boolean | null | undefined;
|
|
928
|
+
} | {
|
|
929
|
+
type: "any";
|
|
930
|
+
limit: "all";
|
|
931
|
+
} | {
|
|
932
|
+
type: "external";
|
|
933
|
+
bank_id?: string | null | undefined;
|
|
934
|
+
account_type?: string | null | undefined;
|
|
935
|
+
account_id?: string | null | undefined;
|
|
936
|
+
holder_id?: string | null | undefined;
|
|
937
|
+
holder_name?: string | null | undefined;
|
|
938
|
+
editable?: boolean | null | undefined;
|
|
939
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
940
|
+
type?: "alias" | null | undefined;
|
|
941
|
+
pattern: string;
|
|
942
|
+
editable?: boolean | null | undefined;
|
|
943
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
944
|
+
} | {
|
|
945
|
+
type: "account";
|
|
946
|
+
id: string;
|
|
947
|
+
editable?: boolean | null | undefined;
|
|
948
|
+
} | {
|
|
949
|
+
type: "any";
|
|
950
|
+
limit: "own";
|
|
951
|
+
editable?: boolean | null | undefined;
|
|
952
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
953
|
+
} | {
|
|
954
|
+
type: "any";
|
|
955
|
+
limit: "local";
|
|
956
|
+
editable?: boolean | null | undefined;
|
|
957
|
+
} | {
|
|
958
|
+
type: "any";
|
|
959
|
+
limit: "all";
|
|
960
|
+
} | {
|
|
961
|
+
type: "external";
|
|
962
|
+
bank_id?: string | null | undefined;
|
|
963
|
+
account_type?: string | null | undefined;
|
|
964
|
+
account_id?: string | null | undefined;
|
|
965
|
+
holder_id?: string | null | undefined;
|
|
966
|
+
holder_name?: string | null | undefined;
|
|
967
|
+
editable?: boolean | null | undefined;
|
|
968
|
+
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
969
|
+
type?: "alias" | null | undefined;
|
|
970
|
+
pattern: string;
|
|
971
|
+
editable?: boolean | null | undefined;
|
|
972
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
973
|
+
} | {
|
|
974
|
+
type: "account";
|
|
975
|
+
id: string;
|
|
976
|
+
editable?: boolean | null | undefined;
|
|
977
|
+
} | {
|
|
978
|
+
type: "any";
|
|
979
|
+
limit: "own";
|
|
980
|
+
editable?: boolean | null | undefined;
|
|
981
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
982
|
+
} | {
|
|
983
|
+
type: "any";
|
|
984
|
+
limit: "local";
|
|
985
|
+
editable?: boolean | null | undefined;
|
|
986
|
+
} | {
|
|
987
|
+
type: "any";
|
|
988
|
+
limit: "all";
|
|
989
|
+
} | {
|
|
990
|
+
type: "external";
|
|
991
|
+
bank_id?: string | null | undefined;
|
|
992
|
+
account_type?: string | null | undefined;
|
|
993
|
+
account_id?: string | null | undefined;
|
|
994
|
+
holder_id?: string | null | undefined;
|
|
995
|
+
holder_name?: string | null | undefined;
|
|
996
|
+
editable?: boolean | null | undefined;
|
|
997
|
+
})[], "account_selection_not_pickable">]>, undefined>;
|
|
998
|
+
readonly currency: v.PicklistSchema<readonly ["CLP"], undefined>;
|
|
999
|
+
readonly transactions: v.NullishSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1000
|
+
readonly value: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1001
|
+
readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1002
|
+
readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1003
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1004
|
+
}, undefined>, v.CheckAction<{
|
|
1005
|
+
value?: string | null | undefined;
|
|
1006
|
+
minimum?: string | null | undefined;
|
|
1007
|
+
maximum?: string | null | undefined;
|
|
1008
|
+
editable?: boolean | null | undefined;
|
|
1009
|
+
}, "value_excludes_minimum_and_maximum">, v.CheckAction<{
|
|
1010
|
+
value?: string | null | undefined;
|
|
1011
|
+
minimum?: string | null | undefined;
|
|
1012
|
+
maximum?: string | null | undefined;
|
|
1013
|
+
editable?: boolean | null | undefined;
|
|
1014
|
+
}, "minimum_above_maximum">]>, undefined>;
|
|
1015
|
+
readonly budgets: v.OptionalSchema<v.NullSchema<undefined>, undefined>;
|
|
1016
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1017
|
+
readonly type: v.LiteralSchema<"bank_transfer", undefined>;
|
|
1018
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
|
|
1019
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
1020
|
+
readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1021
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
1022
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1023
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1024
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
1025
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
|
|
1026
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1027
|
+
}, undefined>], undefined>, undefined>;
|
|
1028
|
+
readonly transactions: v.NullishSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1029
|
+
readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1030
|
+
readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1031
|
+
}, undefined>, v.CheckAction<{
|
|
1032
|
+
minimum?: string | null | undefined;
|
|
1033
|
+
maximum?: string | null | undefined;
|
|
1034
|
+
}, "minimum_above_maximum">]>, undefined>;
|
|
1035
|
+
}, undefined>], undefined>;
|
|
1036
|
+
export type BankTransferGrantRequest = v.InferInput<typeof BankTransferGrantRequestSchema>;
|
|
1037
|
+
/** `bank_transfer` Grant, create form: sources and destinations materialized, no `budgets`. */
|
|
1038
|
+
export declare const BankTransferCreateGrantSchema: v.StrictObjectSchema<{
|
|
1039
|
+
readonly type: v.LiteralSchema<"bank_transfer", undefined>;
|
|
1040
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create"], undefined>, undefined>, v.MinLengthAction<"create"[], 1, undefined>, v.CheckAction<"create"[], "duplicate_action">]>;
|
|
1041
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
1042
|
+
readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1043
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
1044
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1045
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1046
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
1047
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
1048
|
+
}, undefined>], undefined>;
|
|
1049
|
+
readonly sources: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
1050
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
1051
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1052
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1053
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1054
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1055
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1056
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1057
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
1058
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
1059
|
+
type: "alias";
|
|
1060
|
+
pattern: string;
|
|
1061
|
+
} | {
|
|
1062
|
+
type: "account";
|
|
1063
|
+
id: string;
|
|
1064
|
+
} | {
|
|
1065
|
+
type: "any";
|
|
1066
|
+
limit: "own";
|
|
1067
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
1068
|
+
type: "alias";
|
|
1069
|
+
pattern: string;
|
|
1070
|
+
} | {
|
|
1071
|
+
type: "account";
|
|
1072
|
+
id: string;
|
|
1073
|
+
} | {
|
|
1074
|
+
type: "any";
|
|
1075
|
+
limit: "own";
|
|
1076
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
1077
|
+
type: "alias";
|
|
1078
|
+
pattern: string;
|
|
1079
|
+
} | {
|
|
1080
|
+
type: "account";
|
|
1081
|
+
id: string;
|
|
1082
|
+
} | {
|
|
1083
|
+
type: "any";
|
|
1084
|
+
limit: "own";
|
|
1085
|
+
})[], "duplicate_account_matcher">]>;
|
|
1086
|
+
readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
1087
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
1088
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1089
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1090
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1091
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1092
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1093
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1094
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
1095
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1096
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1097
|
+
readonly limit: v.LiteralSchema<"local", undefined>;
|
|
1098
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1099
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1100
|
+
readonly limit: v.LiteralSchema<"all", undefined>;
|
|
1101
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1102
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1103
|
+
readonly bank_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1104
|
+
readonly account_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1105
|
+
readonly account_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1106
|
+
readonly holder_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1107
|
+
readonly holder_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1108
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
1109
|
+
type: "any";
|
|
1110
|
+
limit: "all";
|
|
1111
|
+
} | {
|
|
1112
|
+
type: "alias";
|
|
1113
|
+
pattern: string;
|
|
1114
|
+
} | {
|
|
1115
|
+
type: "account";
|
|
1116
|
+
id: string;
|
|
1117
|
+
} | {
|
|
1118
|
+
type: "any";
|
|
1119
|
+
limit: "own";
|
|
1120
|
+
} | {
|
|
1121
|
+
type: "any";
|
|
1122
|
+
limit: "local";
|
|
1123
|
+
} | {
|
|
1124
|
+
type: "external";
|
|
1125
|
+
bank_id?: string | undefined;
|
|
1126
|
+
account_type?: string | undefined;
|
|
1127
|
+
account_id?: string | undefined;
|
|
1128
|
+
holder_id?: string | undefined;
|
|
1129
|
+
holder_name?: string | undefined;
|
|
1130
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
1131
|
+
type: "any";
|
|
1132
|
+
limit: "all";
|
|
1133
|
+
} | {
|
|
1134
|
+
type: "alias";
|
|
1135
|
+
pattern: string;
|
|
1136
|
+
} | {
|
|
1137
|
+
type: "account";
|
|
1138
|
+
id: string;
|
|
1139
|
+
} | {
|
|
1140
|
+
type: "any";
|
|
1141
|
+
limit: "own";
|
|
1142
|
+
} | {
|
|
1143
|
+
type: "any";
|
|
1144
|
+
limit: "local";
|
|
1145
|
+
} | {
|
|
1146
|
+
type: "external";
|
|
1147
|
+
bank_id?: string | undefined;
|
|
1148
|
+
account_type?: string | undefined;
|
|
1149
|
+
account_id?: string | undefined;
|
|
1150
|
+
holder_id?: string | undefined;
|
|
1151
|
+
holder_name?: string | undefined;
|
|
1152
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
1153
|
+
type: "any";
|
|
1154
|
+
limit: "all";
|
|
1155
|
+
} | {
|
|
1156
|
+
type: "alias";
|
|
1157
|
+
pattern: string;
|
|
1158
|
+
} | {
|
|
1159
|
+
type: "account";
|
|
1160
|
+
id: string;
|
|
1161
|
+
} | {
|
|
1162
|
+
type: "any";
|
|
1163
|
+
limit: "own";
|
|
1164
|
+
} | {
|
|
1165
|
+
type: "any";
|
|
1166
|
+
limit: "local";
|
|
1167
|
+
} | {
|
|
1168
|
+
type: "external";
|
|
1169
|
+
bank_id?: string | undefined;
|
|
1170
|
+
account_type?: string | undefined;
|
|
1171
|
+
account_id?: string | undefined;
|
|
1172
|
+
holder_id?: string | undefined;
|
|
1173
|
+
holder_name?: string | undefined;
|
|
1174
|
+
})[], "duplicate_account_matcher">]>;
|
|
1175
|
+
readonly currency: v.PicklistSchema<readonly ["CLP"], undefined>;
|
|
1176
|
+
readonly transactions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1177
|
+
readonly value: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1178
|
+
readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1179
|
+
readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1180
|
+
}, undefined>, v.CheckAction<{
|
|
1181
|
+
value?: string | undefined;
|
|
1182
|
+
minimum?: string | undefined;
|
|
1183
|
+
maximum?: string | undefined;
|
|
1184
|
+
}, "value_excludes_minimum_and_maximum">, v.CheckAction<{
|
|
1185
|
+
value?: string | undefined;
|
|
1186
|
+
minimum?: string | undefined;
|
|
1187
|
+
maximum?: string | undefined;
|
|
1188
|
+
}, "minimum_above_maximum">]>, undefined>;
|
|
1189
|
+
}, undefined>;
|
|
1190
|
+
export type BankTransferCreateGrant = v.InferOutput<typeof BankTransferCreateGrantSchema>;
|
|
1191
|
+
/** `bank_transfer` Grant, approval form. Absent `transactions` means no bound. */
|
|
1192
|
+
export declare const BankTransferApprovalGrantSchema: v.StrictObjectSchema<{
|
|
1193
|
+
readonly type: v.LiteralSchema<"bank_transfer", undefined>;
|
|
1194
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
|
|
1195
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
1196
|
+
readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1197
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
1198
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1199
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1200
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
1201
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
1202
|
+
}, undefined>], undefined>;
|
|
1203
|
+
readonly transactions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1204
|
+
readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1205
|
+
readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1206
|
+
}, undefined>, v.CheckAction<{
|
|
1207
|
+
minimum?: string | undefined;
|
|
1208
|
+
maximum?: string | undefined;
|
|
1209
|
+
}, "minimum_above_maximum">]>, undefined>;
|
|
1210
|
+
}, undefined>;
|
|
1211
|
+
export type BankTransferApprovalGrant = v.InferOutput<typeof BankTransferApprovalGrantSchema>;
|
|
1212
|
+
/** `bank_transfer` Grant. */
|
|
1213
|
+
export declare const BankTransferGrantSchema: v.UnionSchema<[v.StrictObjectSchema<{
|
|
1214
|
+
readonly type: v.LiteralSchema<"bank_transfer", undefined>;
|
|
1215
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create"], undefined>, undefined>, v.MinLengthAction<"create"[], 1, undefined>, v.CheckAction<"create"[], "duplicate_action">]>;
|
|
1216
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
1217
|
+
readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1218
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
1219
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1220
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1221
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
1222
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
1223
|
+
}, undefined>], undefined>;
|
|
1224
|
+
readonly sources: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
1225
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
1226
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1227
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1228
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1229
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1230
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1231
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1232
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
1233
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
1234
|
+
type: "alias";
|
|
1235
|
+
pattern: string;
|
|
1236
|
+
} | {
|
|
1237
|
+
type: "account";
|
|
1238
|
+
id: string;
|
|
1239
|
+
} | {
|
|
1240
|
+
type: "any";
|
|
1241
|
+
limit: "own";
|
|
1242
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
1243
|
+
type: "alias";
|
|
1244
|
+
pattern: string;
|
|
1245
|
+
} | {
|
|
1246
|
+
type: "account";
|
|
1247
|
+
id: string;
|
|
1248
|
+
} | {
|
|
1249
|
+
type: "any";
|
|
1250
|
+
limit: "own";
|
|
1251
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
1252
|
+
type: "alias";
|
|
1253
|
+
pattern: string;
|
|
1254
|
+
} | {
|
|
1255
|
+
type: "account";
|
|
1256
|
+
id: string;
|
|
1257
|
+
} | {
|
|
1258
|
+
type: "any";
|
|
1259
|
+
limit: "own";
|
|
1260
|
+
})[], "duplicate_account_matcher">]>;
|
|
1261
|
+
readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
1262
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
1263
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1264
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1265
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1266
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1267
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1268
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1269
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
1270
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1271
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1272
|
+
readonly limit: v.LiteralSchema<"local", undefined>;
|
|
1273
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1274
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1275
|
+
readonly limit: v.LiteralSchema<"all", undefined>;
|
|
1276
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1277
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1278
|
+
readonly bank_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1279
|
+
readonly account_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1280
|
+
readonly account_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1281
|
+
readonly holder_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1282
|
+
readonly holder_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1283
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
1284
|
+
type: "any";
|
|
1285
|
+
limit: "all";
|
|
1286
|
+
} | {
|
|
1287
|
+
type: "alias";
|
|
1288
|
+
pattern: string;
|
|
1289
|
+
} | {
|
|
1290
|
+
type: "account";
|
|
1291
|
+
id: string;
|
|
1292
|
+
} | {
|
|
1293
|
+
type: "any";
|
|
1294
|
+
limit: "own";
|
|
1295
|
+
} | {
|
|
1296
|
+
type: "any";
|
|
1297
|
+
limit: "local";
|
|
1298
|
+
} | {
|
|
1299
|
+
type: "external";
|
|
1300
|
+
bank_id?: string | undefined;
|
|
1301
|
+
account_type?: string | undefined;
|
|
1302
|
+
account_id?: string | undefined;
|
|
1303
|
+
holder_id?: string | undefined;
|
|
1304
|
+
holder_name?: string | undefined;
|
|
1305
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
1306
|
+
type: "any";
|
|
1307
|
+
limit: "all";
|
|
1308
|
+
} | {
|
|
1309
|
+
type: "alias";
|
|
1310
|
+
pattern: string;
|
|
1311
|
+
} | {
|
|
1312
|
+
type: "account";
|
|
1313
|
+
id: string;
|
|
1314
|
+
} | {
|
|
1315
|
+
type: "any";
|
|
1316
|
+
limit: "own";
|
|
1317
|
+
} | {
|
|
1318
|
+
type: "any";
|
|
1319
|
+
limit: "local";
|
|
1320
|
+
} | {
|
|
1321
|
+
type: "external";
|
|
1322
|
+
bank_id?: string | undefined;
|
|
1323
|
+
account_type?: string | undefined;
|
|
1324
|
+
account_id?: string | undefined;
|
|
1325
|
+
holder_id?: string | undefined;
|
|
1326
|
+
holder_name?: string | undefined;
|
|
1327
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
1328
|
+
type: "any";
|
|
1329
|
+
limit: "all";
|
|
1330
|
+
} | {
|
|
1331
|
+
type: "alias";
|
|
1332
|
+
pattern: string;
|
|
1333
|
+
} | {
|
|
1334
|
+
type: "account";
|
|
1335
|
+
id: string;
|
|
1336
|
+
} | {
|
|
1337
|
+
type: "any";
|
|
1338
|
+
limit: "own";
|
|
1339
|
+
} | {
|
|
1340
|
+
type: "any";
|
|
1341
|
+
limit: "local";
|
|
1342
|
+
} | {
|
|
1343
|
+
type: "external";
|
|
1344
|
+
bank_id?: string | undefined;
|
|
1345
|
+
account_type?: string | undefined;
|
|
1346
|
+
account_id?: string | undefined;
|
|
1347
|
+
holder_id?: string | undefined;
|
|
1348
|
+
holder_name?: string | undefined;
|
|
1349
|
+
})[], "duplicate_account_matcher">]>;
|
|
1350
|
+
readonly currency: v.PicklistSchema<readonly ["CLP"], undefined>;
|
|
1351
|
+
readonly transactions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1352
|
+
readonly value: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1353
|
+
readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1354
|
+
readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1355
|
+
}, undefined>, v.CheckAction<{
|
|
1356
|
+
value?: string | undefined;
|
|
1357
|
+
minimum?: string | undefined;
|
|
1358
|
+
maximum?: string | undefined;
|
|
1359
|
+
}, "value_excludes_minimum_and_maximum">, v.CheckAction<{
|
|
1360
|
+
value?: string | undefined;
|
|
1361
|
+
minimum?: string | undefined;
|
|
1362
|
+
maximum?: string | undefined;
|
|
1363
|
+
}, "minimum_above_maximum">]>, undefined>;
|
|
1364
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1365
|
+
readonly type: v.LiteralSchema<"bank_transfer", undefined>;
|
|
1366
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
|
|
1367
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
1368
|
+
readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1369
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
1370
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1371
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1372
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
1373
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
1374
|
+
}, undefined>], undefined>;
|
|
1375
|
+
readonly transactions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1376
|
+
readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1377
|
+
readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
1378
|
+
}, undefined>, v.CheckAction<{
|
|
1379
|
+
minimum?: string | undefined;
|
|
1380
|
+
maximum?: string | undefined;
|
|
1381
|
+
}, "minimum_above_maximum">]>, undefined>;
|
|
1382
|
+
}, undefined>], undefined>;
|
|
1383
|
+
export type BankTransferGrant = v.InferOutput<typeof BankTransferGrantSchema>;
|
|
1384
|
+
/**
|
|
1385
|
+
* `bank_deposit` Grant Request: collect money into `destinations`, which is required and only takes
|
|
1386
|
+
* own matchers.
|
|
1387
|
+
*
|
|
1388
|
+
* @example
|
|
1389
|
+
* const collect: BankDepositGrantRequest = {
|
|
1390
|
+
* type: "bank_deposit",
|
|
1391
|
+
* actions: ["create", "read", "close"],
|
|
1392
|
+
* locations: ["https://api.andco.com"],
|
|
1393
|
+
* subject: { type: "organization" },
|
|
1394
|
+
* destinations: [{ type: "alias", pattern: "ventas" }],
|
|
1395
|
+
* };
|
|
1396
|
+
*/
|
|
1397
|
+
export declare const BankDepositGrantRequestSchema: v.StrictObjectSchema<{
|
|
1398
|
+
readonly type: v.LiteralSchema<"bank_deposit", undefined>;
|
|
1399
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "read", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "close")[], 1, undefined>, v.CheckAction<("read" | "create" | "close")[], "duplicate_action">]>;
|
|
1400
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
1401
|
+
readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1402
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
1403
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
1404
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1405
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
1406
|
+
readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
|
|
1407
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1408
|
+
}, undefined>], undefined>, undefined>;
|
|
1409
|
+
readonly destinations: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
1410
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
|
|
1411
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1412
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1413
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
1414
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1415
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1416
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1417
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1418
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1419
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1420
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
1421
|
+
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1422
|
+
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
1423
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
1424
|
+
type?: "alias" | null | undefined;
|
|
1425
|
+
pattern: string;
|
|
1426
|
+
editable?: boolean | null | undefined;
|
|
1427
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
1428
|
+
} | {
|
|
1429
|
+
type: "account";
|
|
1430
|
+
id: string;
|
|
1431
|
+
editable?: boolean | null | undefined;
|
|
1432
|
+
} | {
|
|
1433
|
+
type: "any";
|
|
1434
|
+
limit: "own";
|
|
1435
|
+
editable?: boolean | null | undefined;
|
|
1436
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
1437
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
1438
|
+
type?: "alias" | null | undefined;
|
|
1439
|
+
pattern: string;
|
|
1440
|
+
editable?: boolean | null | undefined;
|
|
1441
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
1442
|
+
} | {
|
|
1443
|
+
type: "account";
|
|
1444
|
+
id: string;
|
|
1445
|
+
editable?: boolean | null | undefined;
|
|
1446
|
+
} | {
|
|
1447
|
+
type: "any";
|
|
1448
|
+
limit: "own";
|
|
1449
|
+
editable?: boolean | null | undefined;
|
|
1450
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
1451
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
1452
|
+
type?: "alias" | null | undefined;
|
|
1453
|
+
pattern: string;
|
|
1454
|
+
editable?: boolean | null | undefined;
|
|
1455
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
1456
|
+
} | {
|
|
1457
|
+
type: "account";
|
|
1458
|
+
id: string;
|
|
1459
|
+
editable?: boolean | null | undefined;
|
|
1460
|
+
} | {
|
|
1461
|
+
type: "any";
|
|
1462
|
+
limit: "own";
|
|
1463
|
+
editable?: boolean | null | undefined;
|
|
1464
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
1465
|
+
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
1466
|
+
type?: "alias" | null | undefined;
|
|
1467
|
+
pattern: string;
|
|
1468
|
+
editable?: boolean | null | undefined;
|
|
1469
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
1470
|
+
} | {
|
|
1471
|
+
type: "account";
|
|
1472
|
+
id: string;
|
|
1473
|
+
editable?: boolean | null | undefined;
|
|
1474
|
+
} | {
|
|
1475
|
+
type: "any";
|
|
1476
|
+
limit: "own";
|
|
1477
|
+
editable?: boolean | null | undefined;
|
|
1478
|
+
selection?: "single" | "multiple" | null | undefined;
|
|
1479
|
+
})[], "account_selection_incoherent">]>;
|
|
1480
|
+
}, undefined>;
|
|
1481
|
+
export type BankDepositGrantRequest = v.InferInput<typeof BankDepositGrantRequestSchema>;
|
|
1482
|
+
/** `bank_deposit` Grant. */
|
|
1483
|
+
export declare const BankDepositGrantSchema: v.StrictObjectSchema<{
|
|
1484
|
+
readonly type: v.LiteralSchema<"bank_deposit", undefined>;
|
|
1485
|
+
readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "read", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "close")[], 1, undefined>, v.CheckAction<("read" | "create" | "close")[], "duplicate_action">]>;
|
|
1486
|
+
readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
1487
|
+
readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1488
|
+
readonly type: v.LiteralSchema<"profile", undefined>;
|
|
1489
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1490
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1491
|
+
readonly type: v.LiteralSchema<"organization", undefined>;
|
|
1492
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
1493
|
+
}, undefined>], undefined>;
|
|
1494
|
+
readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
1495
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
1496
|
+
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1497
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1498
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
1499
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1500
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1501
|
+
readonly type: v.LiteralSchema<"any", undefined>;
|
|
1502
|
+
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
1503
|
+
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
1504
|
+
type: "alias";
|
|
1505
|
+
pattern: string;
|
|
1506
|
+
} | {
|
|
1507
|
+
type: "account";
|
|
1508
|
+
id: string;
|
|
1509
|
+
} | {
|
|
1510
|
+
type: "any";
|
|
1511
|
+
limit: "own";
|
|
1512
|
+
})[], 1, undefined>, v.MaxLengthAction<({
|
|
1513
|
+
type: "alias";
|
|
1514
|
+
pattern: string;
|
|
1515
|
+
} | {
|
|
1516
|
+
type: "account";
|
|
1517
|
+
id: string;
|
|
1518
|
+
} | {
|
|
1519
|
+
type: "any";
|
|
1520
|
+
limit: "own";
|
|
1521
|
+
})[], 100, undefined>, v.CheckAction<({
|
|
1522
|
+
type: "alias";
|
|
1523
|
+
pattern: string;
|
|
1524
|
+
} | {
|
|
1525
|
+
type: "account";
|
|
1526
|
+
id: string;
|
|
1527
|
+
} | {
|
|
1528
|
+
type: "any";
|
|
1529
|
+
limit: "own";
|
|
1530
|
+
})[], "duplicate_account_matcher">]>;
|
|
1531
|
+
}, undefined>;
|
|
1532
|
+
export type BankDepositGrant = v.InferOutput<typeof BankDepositGrantSchema>;
|
|
1533
|
+
/** JSON Schema mirror of {@link BankAccountGrantRequestSchema}. */
|
|
1534
|
+
export declare const BANK_ACCOUNT_GRANT_REQUEST_JSON_SCHEMA: Record<string, unknown>;
|
|
1535
|
+
/** JSON Schema mirror of {@link BankAccountGrantSchema}. */
|
|
1536
|
+
export declare const BANK_ACCOUNT_GRANT_JSON_SCHEMA: Record<string, unknown>;
|
|
1537
|
+
/** JSON Schema mirror of {@link BankTransactionGrantRequestSchema}. */
|
|
1538
|
+
export declare const BANK_TRANSACTION_GRANT_REQUEST_JSON_SCHEMA: Record<string, unknown>;
|
|
1539
|
+
/** JSON Schema mirror of {@link BankTransactionGrantSchema}. */
|
|
1540
|
+
export declare const BANK_TRANSACTION_GRANT_JSON_SCHEMA: Record<string, unknown>;
|
|
1541
|
+
/** JSON Schema mirror of {@link BankTransferGrantRequestSchema}. */
|
|
1542
|
+
export declare const BANK_TRANSFER_GRANT_REQUEST_JSON_SCHEMA: Record<string, unknown>;
|
|
1543
|
+
/** JSON Schema mirror of {@link BankTransferGrantSchema}. */
|
|
1544
|
+
export declare const BANK_TRANSFER_GRANT_JSON_SCHEMA: Record<string, unknown>;
|
|
1545
|
+
/** JSON Schema mirror of {@link BankDepositGrantRequestSchema}. */
|
|
1546
|
+
export declare const BANK_DEPOSIT_GRANT_REQUEST_JSON_SCHEMA: Record<string, unknown>;
|
|
1547
|
+
/** JSON Schema mirror of {@link BankDepositGrantSchema}. */
|
|
1548
|
+
export declare const BANK_DEPOSIT_GRANT_JSON_SCHEMA: Record<string, unknown>;
|
|
1549
|
+
//# sourceMappingURL=bank.d.ts.map
|