@andco/protocol 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +44 -0
  3. package/dist/authorization-preparation.d.ts +754 -0
  4. package/dist/authorization-preparation.d.ts.map +1 -0
  5. package/dist/authorization-preparation.js +187 -0
  6. package/dist/authorization.d.ts +99 -0
  7. package/dist/authorization.d.ts.map +1 -0
  8. package/dist/authorization.js +227 -0
  9. package/dist/automatic-charge.d.ts +314 -0
  10. package/dist/automatic-charge.d.ts.map +1 -0
  11. package/dist/automatic-charge.js +126 -0
  12. package/dist/bank-account-authorization.d.ts +6 -0
  13. package/dist/bank-account-authorization.d.ts.map +1 -0
  14. package/dist/bank-account-authorization.js +13 -0
  15. package/dist/callback-state.d.ts +10 -0
  16. package/dist/callback-state.d.ts.map +1 -0
  17. package/dist/callback-state.js +28 -0
  18. package/dist/consent.d.ts +48 -0
  19. package/dist/consent.d.ts.map +1 -0
  20. package/dist/consent.js +110 -0
  21. package/dist/constants.d.ts +17 -0
  22. package/dist/constants.d.ts.map +1 -0
  23. package/dist/constants.js +20 -0
  24. package/dist/errors.d.ts +70 -0
  25. package/dist/errors.d.ts.map +1 -0
  26. package/dist/errors.js +80 -0
  27. package/dist/index.d.ts +33 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +32 -0
  30. package/dist/intent-input.d.ts +637 -0
  31. package/dist/intent-input.d.ts.map +1 -0
  32. package/dist/intent-input.js +101 -0
  33. package/dist/messages/authorization-response.d.ts +12 -0
  34. package/dist/messages/authorization-response.d.ts.map +1 -0
  35. package/dist/messages/authorization-response.js +9 -0
  36. package/dist/messages/base.d.ts +31 -0
  37. package/dist/messages/base.d.ts.map +1 -0
  38. package/dist/messages/base.js +30 -0
  39. package/dist/messages/click.d.ts +11 -0
  40. package/dist/messages/click.d.ts.map +1 -0
  41. package/dist/messages/click.js +8 -0
  42. package/dist/messages/error.d.ts +13 -0
  43. package/dist/messages/error.d.ts.map +1 -0
  44. package/dist/messages/error.js +9 -0
  45. package/dist/messages/index.d.ts +75 -0
  46. package/dist/messages/index.d.ts.map +1 -0
  47. package/dist/messages/index.js +27 -0
  48. package/dist/messages/init.d.ts +9 -0
  49. package/dist/messages/init.d.ts.map +1 -0
  50. package/dist/messages/init.js +6 -0
  51. package/dist/messages/popup.d.ts +108 -0
  52. package/dist/messages/popup.d.ts.map +1 -0
  53. package/dist/messages/popup.js +62 -0
  54. package/dist/messages/ready.d.ts +9 -0
  55. package/dist/messages/ready.d.ts.map +1 -0
  56. package/dist/messages/ready.js +6 -0
  57. package/dist/messages/set-preferences.d.ts +16 -0
  58. package/dist/messages/set-preferences.d.ts.map +1 -0
  59. package/dist/messages/set-preferences.js +20 -0
  60. package/dist/miniapp-icon.d.ts +4 -0
  61. package/dist/miniapp-icon.d.ts.map +1 -0
  62. package/dist/miniapp-icon.js +68 -0
  63. package/dist/miniapp-manifest.d.ts +71 -0
  64. package/dist/miniapp-manifest.d.ts.map +1 -0
  65. package/dist/miniapp-manifest.js +46 -0
  66. package/dist/native-copy.d.ts +7 -0
  67. package/dist/native-copy.d.ts.map +1 -0
  68. package/dist/native-copy.js +436 -0
  69. package/dist/native-intent.d.ts +402 -0
  70. package/dist/native-intent.d.ts.map +1 -0
  71. package/dist/native-intent.js +410 -0
  72. package/dist/native.d.ts +55 -0
  73. package/dist/native.d.ts.map +1 -0
  74. package/dist/native.js +53 -0
  75. package/dist/oauth.d.ts +4 -0
  76. package/dist/oauth.d.ts.map +1 -0
  77. package/dist/oauth.js +3 -0
  78. package/dist/release.d.ts +3 -0
  79. package/dist/release.d.ts.map +1 -0
  80. package/dist/release.js +2 -0
  81. package/dist/scopes.d.ts +35 -0
  82. package/dist/scopes.d.ts.map +1 -0
  83. package/dist/scopes.js +15 -0
  84. package/dist/server.d.ts +9 -0
  85. package/dist/server.d.ts.map +1 -0
  86. package/dist/server.js +14 -0
  87. package/dist/transport/financial-events.d.ts +134 -0
  88. package/dist/transport/financial-events.d.ts.map +1 -0
  89. package/dist/transport/financial-events.js +120 -0
  90. package/dist/transport/generated/oauth-api.d.ts +1685 -0
  91. package/dist/transport/generated/oauth-api.d.ts.map +1 -0
  92. package/dist/transport/generated/oauth-api.js +5 -0
  93. package/dist/transport/index.d.ts +6 -0
  94. package/dist/transport/index.d.ts.map +1 -0
  95. package/dist/transport/index.js +5 -0
  96. package/dist/transport/intents.d.ts +81 -0
  97. package/dist/transport/intents.d.ts.map +1 -0
  98. package/dist/transport/intents.js +286 -0
  99. package/dist/transport/rest.d.ts +76 -0
  100. package/dist/transport/rest.d.ts.map +1 -0
  101. package/dist/transport/rest.js +48 -0
  102. package/dist/transport/runtime.d.ts +8 -0
  103. package/dist/transport/runtime.d.ts.map +1 -0
  104. package/dist/transport/runtime.js +16 -0
  105. package/dist/transport/webhooks.d.ts +27 -0
  106. package/dist/transport/webhooks.d.ts.map +1 -0
  107. package/dist/transport/webhooks.js +68 -0
  108. package/dist/urls.d.ts +71 -0
  109. package/dist/urls.d.ts.map +1 -0
  110. package/dist/urls.js +132 -0
  111. package/dist/userinfo.d.ts +11 -0
  112. package/dist/userinfo.d.ts.map +1 -0
  113. package/dist/userinfo.js +9 -0
  114. package/dist/utils.d.ts +20 -0
  115. package/dist/utils.d.ts.map +1 -0
  116. package/dist/utils.js +45 -0
  117. package/dist/webhook-input.d.ts +22 -0
  118. package/dist/webhook-input.d.ts.map +1 -0
  119. package/dist/webhook-input.js +11 -0
  120. package/dist/webhook-signature.d.ts +54 -0
  121. package/dist/webhook-signature.d.ts.map +1 -0
  122. package/dist/webhook-signature.js +74 -0
  123. package/dist/window-features.d.ts +28 -0
  124. package/dist/window-features.d.ts.map +1 -0
  125. package/dist/window-features.js +55 -0
  126. package/package.json +63 -0
@@ -0,0 +1,754 @@
1
+ import * as v from "valibot";
2
+ /** Server-resolved scope policy and provider-owned consent content. */
3
+ export declare const AndCoConsentScopeSchema: v.ObjectSchema<{
4
+ readonly resourceServerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5
+ readonly resourceServerName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
6
+ readonly scopeDescription: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 1024, undefined>]>, undefined>;
7
+ readonly grantedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8
+ readonly connectionHasPriorGrant: v.BooleanSchema<undefined>;
9
+ readonly scope: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
10
+ readonly mode: v.PicklistSchema<["optional", "default", "required"], undefined>;
11
+ }, undefined>;
12
+ /** Platform-resolved Company, installation and provider permission context. */
13
+ export declare const AndCoResourceConsentSchema: v.ObjectSchema<{
14
+ readonly allowed: v.BooleanSchema<undefined>;
15
+ readonly companyId: v.StringSchema<undefined>;
16
+ readonly companyName: v.StringSchema<undefined>;
17
+ readonly details: v.ArraySchema<v.ObjectSchema<{
18
+ readonly name: v.StringSchema<undefined>;
19
+ readonly actions: v.ArraySchema<v.ObjectSchema<{
20
+ readonly id: v.StringSchema<undefined>;
21
+ readonly description: v.StringSchema<undefined>;
22
+ }, undefined>, undefined>;
23
+ }, undefined>, undefined>;
24
+ readonly errorCode: v.NullableSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly installationStatus: v.PicklistSchema<["installed", "will_install"], undefined>;
26
+ readonly installationProjectName: v.StringSchema<undefined>;
27
+ readonly resourceProjectId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
28
+ readonly resourceName: v.StringSchema<undefined>;
29
+ readonly resource: v.StringSchema<undefined>;
30
+ }, undefined>;
31
+ /** Company accounts and immutable constraints resolved by Platform for automatic charges. */
32
+ export declare const AndCoChargeConsentSchema: v.ObjectSchema<{
33
+ readonly orgId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
34
+ readonly companyName: v.StringSchema<undefined>;
35
+ readonly projectId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
36
+ readonly projectName: v.StringSchema<undefined>;
37
+ readonly operatorName: v.StringSchema<undefined>;
38
+ readonly request: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
39
+ readonly type: v.LiteralSchema<"https://api.andco.cl/authorization-details/automatic-charge", undefined>;
40
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "create_deposit_intent", "read_deposit_intents", "create_automatic_charge", "execute_automatic_charge", "read_automatic_charges", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[], 1, undefined>, v.CheckAction<("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[], undefined>]>;
41
+ readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.cl", undefined>], undefined>;
42
+ readonly sources: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], undefined>]>, undefined>;
43
+ readonly beneficiaries: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], undefined>]>, undefined>;
44
+ readonly selection: v.OptionalSchema<v.StrictObjectSchema<{
45
+ readonly min: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>;
46
+ readonly max: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>;
47
+ }, undefined>, undefined>;
48
+ readonly transaction: v.StrictObjectSchema<{
49
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
50
+ readonly minimum: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
51
+ readonly maximum: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
52
+ }, undefined>;
53
+ readonly budget: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
54
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
55
+ readonly interval: v.StrictObjectSchema<{
56
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 365, undefined>]>;
57
+ readonly unit: v.PicklistSchema<["days", "months", "years"], undefined>;
58
+ }, undefined>;
59
+ readonly time_zone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, undefined>]>;
60
+ }, undefined>, undefined>, undefined>;
61
+ readonly account_binding: v.OptionalSchema<v.StrictObjectSchema<{
62
+ readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
63
+ readonly name: v.StrictObjectSchema<{
64
+ readonly suggested: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
65
+ readonly editable: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
66
+ }, undefined>;
67
+ }, undefined>, undefined>;
68
+ }, undefined>, v.CheckAction<{
69
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
70
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
71
+ locations: ["https://api.andco.cl"];
72
+ sources?: string[] | undefined;
73
+ beneficiaries?: string[] | undefined;
74
+ selection?: {
75
+ min?: number | undefined;
76
+ max?: number | undefined;
77
+ } | undefined;
78
+ transaction: {
79
+ currency: "CLP";
80
+ minimum: string;
81
+ maximum: string;
82
+ };
83
+ budget?: {
84
+ amount: string;
85
+ interval: {
86
+ count: number;
87
+ unit: "days" | "months" | "years";
88
+ };
89
+ time_zone: string;
90
+ } | null | undefined;
91
+ account_binding?: {
92
+ key: string;
93
+ name: {
94
+ suggested: string;
95
+ editable: boolean;
96
+ };
97
+ } | undefined;
98
+ }, undefined>, v.CheckAction<{
99
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
100
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
101
+ locations: ["https://api.andco.cl"];
102
+ sources?: string[] | undefined;
103
+ beneficiaries?: string[] | undefined;
104
+ selection?: {
105
+ min?: number | undefined;
106
+ max?: number | undefined;
107
+ } | undefined;
108
+ transaction: {
109
+ currency: "CLP";
110
+ minimum: string;
111
+ maximum: string;
112
+ };
113
+ budget?: {
114
+ amount: string;
115
+ interval: {
116
+ count: number;
117
+ unit: "days" | "months" | "years";
118
+ };
119
+ time_zone: string;
120
+ } | null | undefined;
121
+ account_binding?: {
122
+ key: string;
123
+ name: {
124
+ suggested: string;
125
+ editable: boolean;
126
+ };
127
+ } | undefined;
128
+ }, undefined>, v.CheckAction<{
129
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
130
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
131
+ locations: ["https://api.andco.cl"];
132
+ sources?: string[] | undefined;
133
+ beneficiaries?: string[] | undefined;
134
+ selection?: {
135
+ min?: number | undefined;
136
+ max?: number | undefined;
137
+ } | undefined;
138
+ transaction: {
139
+ currency: "CLP";
140
+ minimum: string;
141
+ maximum: string;
142
+ };
143
+ budget?: {
144
+ amount: string;
145
+ interval: {
146
+ count: number;
147
+ unit: "days" | "months" | "years";
148
+ };
149
+ time_zone: string;
150
+ } | null | undefined;
151
+ account_binding?: {
152
+ key: string;
153
+ name: {
154
+ suggested: string;
155
+ editable: boolean;
156
+ };
157
+ } | undefined;
158
+ }, undefined>, v.CheckAction<{
159
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
160
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
161
+ locations: ["https://api.andco.cl"];
162
+ sources?: string[] | undefined;
163
+ beneficiaries?: string[] | undefined;
164
+ selection?: {
165
+ min?: number | undefined;
166
+ max?: number | undefined;
167
+ } | undefined;
168
+ transaction: {
169
+ currency: "CLP";
170
+ minimum: string;
171
+ maximum: string;
172
+ };
173
+ budget?: {
174
+ amount: string;
175
+ interval: {
176
+ count: number;
177
+ unit: "days" | "months" | "years";
178
+ };
179
+ time_zone: string;
180
+ } | null | undefined;
181
+ account_binding?: {
182
+ key: string;
183
+ name: {
184
+ suggested: string;
185
+ editable: boolean;
186
+ };
187
+ } | undefined;
188
+ }, undefined>]>;
189
+ readonly bindingAccountId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
190
+ readonly openingName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
191
+ readonly workflowId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
192
+ readonly bankStatus: v.NullableSchema<v.StringSchema<undefined>, undefined>;
193
+ readonly budgetAnchor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
194
+ readonly accounts: v.ArraySchema<v.ObjectSchema<{
195
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
196
+ readonly number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
197
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
198
+ }, undefined>, undefined>;
199
+ }, undefined>;
200
+ /** Canonical state of one pending authorization, resolved once by the platform for every surface. */
201
+ export declare const AndCoAuthorizationPreparationSchema: v.VariantSchema<"status", [v.ObjectSchema<{
202
+ readonly status: v.LiteralSchema<"sign_in_required", undefined>;
203
+ readonly authorizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
204
+ }, undefined>, v.ObjectSchema<{
205
+ readonly status: v.LiteralSchema<"prerequisite_required", undefined>;
206
+ readonly authorizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
207
+ readonly client: v.ObjectSchema<{
208
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
209
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
210
+ readonly uri: v.StringSchema<undefined>;
211
+ readonly logoUri: v.StringSchema<undefined>;
212
+ }, undefined>;
213
+ readonly requirement: v.PicklistSchema<["phone", "personal_identity", "address", "bank_account"], undefined>;
214
+ readonly addressKind: v.NullableSchema<v.PicklistSchema<["home", "work", "any"], undefined>, undefined>;
215
+ readonly progress: v.ObjectSchema<{
216
+ readonly completed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
217
+ readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
218
+ readonly remaining: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MaxLengthAction<string[], 10, undefined>]>;
219
+ }, undefined>;
220
+ readonly reason: v.ObjectSchema<{
221
+ readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
222
+ readonly relatedScopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>;
223
+ }, undefined>;
224
+ readonly resolutionUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 8192, undefined>]>;
225
+ }, undefined>, v.ObjectSchema<{
226
+ readonly status: v.LiteralSchema<"consent_required", undefined>;
227
+ readonly authorizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
228
+ readonly client: v.ObjectSchema<{
229
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
230
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
231
+ readonly uri: v.StringSchema<undefined>;
232
+ readonly logoUri: v.StringSchema<undefined>;
233
+ }, undefined>;
234
+ readonly redirectHost: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
235
+ readonly scopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
236
+ readonly resourceServerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
237
+ readonly resourceServerName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
238
+ readonly scopeDescription: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 1024, undefined>]>, undefined>;
239
+ readonly grantedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
240
+ readonly connectionHasPriorGrant: v.BooleanSchema<undefined>;
241
+ readonly scope: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
242
+ readonly mode: v.PicklistSchema<["optional", "default", "required"], undefined>;
243
+ }, undefined>, undefined>, v.MaxLengthAction<{
244
+ resourceServerId?: string | undefined;
245
+ resourceServerName?: string | undefined;
246
+ scopeDescription?: string | undefined;
247
+ grantedAt: string | null;
248
+ connectionHasPriorGrant: boolean;
249
+ scope: string;
250
+ mode: "optional" | "default" | "required";
251
+ }[], 50, undefined>]>;
252
+ readonly bankAccountAuthorization: v.OptionalSchema<v.ObjectSchema<{
253
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "read_movements", "create_deposit_intent", "read_deposit_intents", "create_withdrawal_intent", "execute_withdrawal", "read_withdrawal_intents", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create_deposit_intent" | "read_deposit_intents" | "close" | "read_movements" | "create_withdrawal_intent" | "execute_withdrawal" | "read_withdrawal_intents")[], 1, undefined>, v.MaxLengthAction<("read" | "create_deposit_intent" | "read_deposit_intents" | "close" | "read_movements" | "create_withdrawal_intent" | "execute_withdrawal" | "read_withdrawal_intents")[], 8, undefined>]>;
254
+ readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
255
+ readonly bankAccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
256
+ readonly accountNumber: v.NullableSchema<v.StringSchema<undefined>, undefined>;
257
+ readonly productName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
258
+ readonly currency: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>;
259
+ }, undefined>, undefined>, v.MinLengthAction<{
260
+ bankAccountId: string;
261
+ accountNumber: string | null;
262
+ productName: string | null;
263
+ currency: string;
264
+ }[], 1, undefined>, v.MaxLengthAction<{
265
+ bankAccountId: string;
266
+ accountNumber: string | null;
267
+ productName: string | null;
268
+ currency: string;
269
+ }[], 100, undefined>]>;
270
+ }, undefined>, undefined>;
271
+ readonly resourceAuthorization: v.OptionalSchema<v.ObjectSchema<{
272
+ readonly allowed: v.BooleanSchema<undefined>;
273
+ readonly companyId: v.StringSchema<undefined>;
274
+ readonly companyName: v.StringSchema<undefined>;
275
+ readonly details: v.ArraySchema<v.ObjectSchema<{
276
+ readonly name: v.StringSchema<undefined>;
277
+ readonly actions: v.ArraySchema<v.ObjectSchema<{
278
+ readonly id: v.StringSchema<undefined>;
279
+ readonly description: v.StringSchema<undefined>;
280
+ }, undefined>, undefined>;
281
+ }, undefined>, undefined>;
282
+ readonly errorCode: v.NullableSchema<v.StringSchema<undefined>, undefined>;
283
+ readonly installationStatus: v.PicklistSchema<["installed", "will_install"], undefined>;
284
+ readonly installationProjectName: v.StringSchema<undefined>;
285
+ readonly resourceProjectId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
286
+ readonly resourceName: v.StringSchema<undefined>;
287
+ readonly resource: v.StringSchema<undefined>;
288
+ }, undefined>, undefined>;
289
+ readonly chargeAuthorization: v.OptionalSchema<v.ObjectSchema<{
290
+ readonly orgId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
291
+ readonly companyName: v.StringSchema<undefined>;
292
+ readonly projectId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
293
+ readonly projectName: v.StringSchema<undefined>;
294
+ readonly operatorName: v.StringSchema<undefined>;
295
+ readonly request: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
296
+ readonly type: v.LiteralSchema<"https://api.andco.cl/authorization-details/automatic-charge", undefined>;
297
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "create_deposit_intent", "read_deposit_intents", "create_automatic_charge", "execute_automatic_charge", "read_automatic_charges", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[], 1, undefined>, v.CheckAction<("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[], undefined>]>;
298
+ readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.cl", undefined>], undefined>;
299
+ readonly sources: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], undefined>]>, undefined>;
300
+ readonly beneficiaries: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], undefined>]>, undefined>;
301
+ readonly selection: v.OptionalSchema<v.StrictObjectSchema<{
302
+ readonly min: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>;
303
+ readonly max: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>;
304
+ }, undefined>, undefined>;
305
+ readonly transaction: v.StrictObjectSchema<{
306
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
307
+ readonly minimum: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
308
+ readonly maximum: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
309
+ }, undefined>;
310
+ readonly budget: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
311
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
312
+ readonly interval: v.StrictObjectSchema<{
313
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 365, undefined>]>;
314
+ readonly unit: v.PicklistSchema<["days", "months", "years"], undefined>;
315
+ }, undefined>;
316
+ readonly time_zone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, undefined>]>;
317
+ }, undefined>, undefined>, undefined>;
318
+ readonly account_binding: v.OptionalSchema<v.StrictObjectSchema<{
319
+ readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
320
+ readonly name: v.StrictObjectSchema<{
321
+ readonly suggested: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
322
+ readonly editable: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
323
+ }, undefined>;
324
+ }, undefined>, undefined>;
325
+ }, undefined>, v.CheckAction<{
326
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
327
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
328
+ locations: ["https://api.andco.cl"];
329
+ sources?: string[] | undefined;
330
+ beneficiaries?: string[] | undefined;
331
+ selection?: {
332
+ min?: number | undefined;
333
+ max?: number | undefined;
334
+ } | undefined;
335
+ transaction: {
336
+ currency: "CLP";
337
+ minimum: string;
338
+ maximum: string;
339
+ };
340
+ budget?: {
341
+ amount: string;
342
+ interval: {
343
+ count: number;
344
+ unit: "days" | "months" | "years";
345
+ };
346
+ time_zone: string;
347
+ } | null | undefined;
348
+ account_binding?: {
349
+ key: string;
350
+ name: {
351
+ suggested: string;
352
+ editable: boolean;
353
+ };
354
+ } | undefined;
355
+ }, undefined>, v.CheckAction<{
356
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
357
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
358
+ locations: ["https://api.andco.cl"];
359
+ sources?: string[] | undefined;
360
+ beneficiaries?: string[] | undefined;
361
+ selection?: {
362
+ min?: number | undefined;
363
+ max?: number | undefined;
364
+ } | undefined;
365
+ transaction: {
366
+ currency: "CLP";
367
+ minimum: string;
368
+ maximum: string;
369
+ };
370
+ budget?: {
371
+ amount: string;
372
+ interval: {
373
+ count: number;
374
+ unit: "days" | "months" | "years";
375
+ };
376
+ time_zone: string;
377
+ } | null | undefined;
378
+ account_binding?: {
379
+ key: string;
380
+ name: {
381
+ suggested: string;
382
+ editable: boolean;
383
+ };
384
+ } | undefined;
385
+ }, undefined>, v.CheckAction<{
386
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
387
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
388
+ locations: ["https://api.andco.cl"];
389
+ sources?: string[] | undefined;
390
+ beneficiaries?: string[] | undefined;
391
+ selection?: {
392
+ min?: number | undefined;
393
+ max?: number | undefined;
394
+ } | undefined;
395
+ transaction: {
396
+ currency: "CLP";
397
+ minimum: string;
398
+ maximum: string;
399
+ };
400
+ budget?: {
401
+ amount: string;
402
+ interval: {
403
+ count: number;
404
+ unit: "days" | "months" | "years";
405
+ };
406
+ time_zone: string;
407
+ } | null | undefined;
408
+ account_binding?: {
409
+ key: string;
410
+ name: {
411
+ suggested: string;
412
+ editable: boolean;
413
+ };
414
+ } | undefined;
415
+ }, undefined>, v.CheckAction<{
416
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
417
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
418
+ locations: ["https://api.andco.cl"];
419
+ sources?: string[] | undefined;
420
+ beneficiaries?: string[] | undefined;
421
+ selection?: {
422
+ min?: number | undefined;
423
+ max?: number | undefined;
424
+ } | undefined;
425
+ transaction: {
426
+ currency: "CLP";
427
+ minimum: string;
428
+ maximum: string;
429
+ };
430
+ budget?: {
431
+ amount: string;
432
+ interval: {
433
+ count: number;
434
+ unit: "days" | "months" | "years";
435
+ };
436
+ time_zone: string;
437
+ } | null | undefined;
438
+ account_binding?: {
439
+ key: string;
440
+ name: {
441
+ suggested: string;
442
+ editable: boolean;
443
+ };
444
+ } | undefined;
445
+ }, undefined>]>;
446
+ readonly bindingAccountId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
447
+ readonly openingName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
448
+ readonly workflowId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
449
+ readonly bankStatus: v.NullableSchema<v.StringSchema<undefined>, undefined>;
450
+ readonly budgetAnchor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
451
+ readonly accounts: v.ArraySchema<v.ObjectSchema<{
452
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
453
+ readonly number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
454
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
455
+ }, undefined>, undefined>;
456
+ }, undefined>, undefined>;
457
+ readonly companySubject: v.OptionalSchema<v.ObjectSchema<{
458
+ readonly organizationId: v.NumberSchema<undefined>;
459
+ readonly organizationName: v.StringSchema<undefined>;
460
+ }, undefined>, undefined>;
461
+ readonly organizationSelection: v.OptionalSchema<v.ObjectSchema<{
462
+ readonly organizations: v.ArraySchema<v.ObjectSchema<{
463
+ readonly organizationId: v.NumberSchema<undefined>;
464
+ readonly organizationName: v.StringSchema<undefined>;
465
+ }, undefined>, undefined>;
466
+ readonly selectedOrganizationId: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
467
+ }, undefined>, undefined>;
468
+ readonly user: v.ObjectSchema<{
469
+ readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 320, undefined>]>;
470
+ }, undefined>;
471
+ }, undefined>, v.ObjectSchema<{
472
+ readonly status: v.LiteralSchema<"charge_account_preparation_required", undefined>;
473
+ readonly authorizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
474
+ readonly client: v.ObjectSchema<{
475
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
476
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
477
+ readonly uri: v.StringSchema<undefined>;
478
+ readonly logoUri: v.StringSchema<undefined>;
479
+ }, undefined>;
480
+ readonly charge: v.ObjectSchema<{
481
+ readonly orgId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
482
+ readonly companyName: v.StringSchema<undefined>;
483
+ readonly projectId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
484
+ readonly projectName: v.StringSchema<undefined>;
485
+ readonly operatorName: v.StringSchema<undefined>;
486
+ readonly request: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
487
+ readonly type: v.LiteralSchema<"https://api.andco.cl/authorization-details/automatic-charge", undefined>;
488
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "create_deposit_intent", "read_deposit_intents", "create_automatic_charge", "execute_automatic_charge", "read_automatic_charges", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[], 1, undefined>, v.CheckAction<("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[], undefined>]>;
489
+ readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.cl", undefined>], undefined>;
490
+ readonly sources: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], undefined>]>, undefined>;
491
+ readonly beneficiaries: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], undefined>]>, undefined>;
492
+ readonly selection: v.OptionalSchema<v.StrictObjectSchema<{
493
+ readonly min: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>;
494
+ readonly max: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>;
495
+ }, undefined>, undefined>;
496
+ readonly transaction: v.StrictObjectSchema<{
497
+ readonly currency: v.LiteralSchema<"CLP", undefined>;
498
+ readonly minimum: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
499
+ readonly maximum: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
500
+ }, undefined>;
501
+ readonly budget: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
502
+ readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
503
+ readonly interval: v.StrictObjectSchema<{
504
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 365, undefined>]>;
505
+ readonly unit: v.PicklistSchema<["days", "months", "years"], undefined>;
506
+ }, undefined>;
507
+ readonly time_zone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, undefined>]>;
508
+ }, undefined>, undefined>, undefined>;
509
+ readonly account_binding: v.OptionalSchema<v.StrictObjectSchema<{
510
+ readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
511
+ readonly name: v.StrictObjectSchema<{
512
+ readonly suggested: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
513
+ readonly editable: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
514
+ }, undefined>;
515
+ }, undefined>, undefined>;
516
+ }, undefined>, v.CheckAction<{
517
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
518
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
519
+ locations: ["https://api.andco.cl"];
520
+ sources?: string[] | undefined;
521
+ beneficiaries?: string[] | undefined;
522
+ selection?: {
523
+ min?: number | undefined;
524
+ max?: number | undefined;
525
+ } | undefined;
526
+ transaction: {
527
+ currency: "CLP";
528
+ minimum: string;
529
+ maximum: string;
530
+ };
531
+ budget?: {
532
+ amount: string;
533
+ interval: {
534
+ count: number;
535
+ unit: "days" | "months" | "years";
536
+ };
537
+ time_zone: string;
538
+ } | null | undefined;
539
+ account_binding?: {
540
+ key: string;
541
+ name: {
542
+ suggested: string;
543
+ editable: boolean;
544
+ };
545
+ } | undefined;
546
+ }, undefined>, v.CheckAction<{
547
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
548
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
549
+ locations: ["https://api.andco.cl"];
550
+ sources?: string[] | undefined;
551
+ beneficiaries?: string[] | undefined;
552
+ selection?: {
553
+ min?: number | undefined;
554
+ max?: number | undefined;
555
+ } | undefined;
556
+ transaction: {
557
+ currency: "CLP";
558
+ minimum: string;
559
+ maximum: string;
560
+ };
561
+ budget?: {
562
+ amount: string;
563
+ interval: {
564
+ count: number;
565
+ unit: "days" | "months" | "years";
566
+ };
567
+ time_zone: string;
568
+ } | null | undefined;
569
+ account_binding?: {
570
+ key: string;
571
+ name: {
572
+ suggested: string;
573
+ editable: boolean;
574
+ };
575
+ } | undefined;
576
+ }, undefined>, v.CheckAction<{
577
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
578
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
579
+ locations: ["https://api.andco.cl"];
580
+ sources?: string[] | undefined;
581
+ beneficiaries?: string[] | undefined;
582
+ selection?: {
583
+ min?: number | undefined;
584
+ max?: number | undefined;
585
+ } | undefined;
586
+ transaction: {
587
+ currency: "CLP";
588
+ minimum: string;
589
+ maximum: string;
590
+ };
591
+ budget?: {
592
+ amount: string;
593
+ interval: {
594
+ count: number;
595
+ unit: "days" | "months" | "years";
596
+ };
597
+ time_zone: string;
598
+ } | null | undefined;
599
+ account_binding?: {
600
+ key: string;
601
+ name: {
602
+ suggested: string;
603
+ editable: boolean;
604
+ };
605
+ } | undefined;
606
+ }, undefined>, v.CheckAction<{
607
+ type: "https://api.andco.cl/authorization-details/automatic-charge";
608
+ actions: ("read" | "create_deposit_intent" | "read_deposit_intents" | "create_automatic_charge" | "execute_automatic_charge" | "read_automatic_charges" | "close")[];
609
+ locations: ["https://api.andco.cl"];
610
+ sources?: string[] | undefined;
611
+ beneficiaries?: string[] | undefined;
612
+ selection?: {
613
+ min?: number | undefined;
614
+ max?: number | undefined;
615
+ } | undefined;
616
+ transaction: {
617
+ currency: "CLP";
618
+ minimum: string;
619
+ maximum: string;
620
+ };
621
+ budget?: {
622
+ amount: string;
623
+ interval: {
624
+ count: number;
625
+ unit: "days" | "months" | "years";
626
+ };
627
+ time_zone: string;
628
+ } | null | undefined;
629
+ account_binding?: {
630
+ key: string;
631
+ name: {
632
+ suggested: string;
633
+ editable: boolean;
634
+ };
635
+ } | undefined;
636
+ }, undefined>]>;
637
+ readonly bindingAccountId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
638
+ readonly openingName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
639
+ readonly workflowId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
640
+ readonly bankStatus: v.NullableSchema<v.StringSchema<undefined>, undefined>;
641
+ readonly budgetAnchor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
642
+ readonly accounts: v.ArraySchema<v.ObjectSchema<{
643
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
644
+ readonly number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
645
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
646
+ }, undefined>, undefined>;
647
+ }, undefined>;
648
+ }, undefined>, v.ObjectSchema<{
649
+ readonly status: v.LiteralSchema<"organization_subject_required", undefined>;
650
+ readonly authorizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
651
+ readonly client: v.ObjectSchema<{
652
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
653
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
654
+ readonly uri: v.StringSchema<undefined>;
655
+ readonly logoUri: v.StringSchema<undefined>;
656
+ }, undefined>;
657
+ readonly reason: v.PicklistSchema<["selection", "identity", "mismatch"], undefined>;
658
+ readonly organizations: v.ArraySchema<v.ObjectSchema<{
659
+ readonly organizationId: v.NumberSchema<undefined>;
660
+ readonly organizationName: v.StringSchema<undefined>;
661
+ }, undefined>, undefined>;
662
+ readonly selectedOrganizationId: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
663
+ readonly country: v.NullableSchema<v.StringSchema<undefined>, undefined>;
664
+ readonly documentKind: v.NullableSchema<v.StringSchema<undefined>, undefined>;
665
+ readonly documentValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
666
+ }, undefined>, v.ObjectSchema<{
667
+ readonly status: v.LiteralSchema<"already_authorized", undefined>;
668
+ readonly redirectUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 8192, undefined>]>;
669
+ }, undefined>, v.ObjectSchema<{
670
+ readonly status: v.LiteralSchema<"consent_already_granted", undefined>;
671
+ readonly authorizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
672
+ readonly client: v.ObjectSchema<{
673
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
674
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
675
+ readonly uri: v.StringSchema<undefined>;
676
+ readonly logoUri: v.StringSchema<undefined>;
677
+ }, undefined>;
678
+ readonly redirectHost: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
679
+ readonly grantedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
680
+ readonly scopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
681
+ readonly resourceServerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
682
+ readonly resourceServerName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
683
+ readonly scopeDescription: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 1024, undefined>]>, undefined>;
684
+ readonly grantedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
685
+ readonly connectionHasPriorGrant: v.BooleanSchema<undefined>;
686
+ readonly scope: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
687
+ readonly mode: v.PicklistSchema<["optional", "default", "required"], undefined>;
688
+ }, undefined>, undefined>, v.MaxLengthAction<{
689
+ resourceServerId?: string | undefined;
690
+ resourceServerName?: string | undefined;
691
+ scopeDescription?: string | undefined;
692
+ grantedAt: string | null;
693
+ connectionHasPriorGrant: boolean;
694
+ scope: string;
695
+ mode: "optional" | "default" | "required";
696
+ }[], 50, undefined>]>;
697
+ readonly user: v.ObjectSchema<{
698
+ readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 320, undefined>]>;
699
+ }, undefined>;
700
+ }, undefined>, v.ObjectSchema<{
701
+ readonly status: v.LiteralSchema<"partially_authorized", undefined>;
702
+ readonly authorizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
703
+ readonly client: v.ObjectSchema<{
704
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
705
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
706
+ readonly uri: v.StringSchema<undefined>;
707
+ readonly logoUri: v.StringSchema<undefined>;
708
+ }, undefined>;
709
+ readonly redirectHost: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
710
+ readonly scopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
711
+ readonly resourceServerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
712
+ readonly resourceServerName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
713
+ readonly scopeDescription: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 1024, undefined>]>, undefined>;
714
+ readonly grantedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
715
+ readonly connectionHasPriorGrant: v.BooleanSchema<undefined>;
716
+ readonly scope: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
717
+ readonly mode: v.PicklistSchema<["optional", "default", "required"], undefined>;
718
+ }, undefined>, undefined>, v.MaxLengthAction<{
719
+ resourceServerId?: string | undefined;
720
+ resourceServerName?: string | undefined;
721
+ scopeDescription?: string | undefined;
722
+ grantedAt: string | null;
723
+ connectionHasPriorGrant: boolean;
724
+ scope: string;
725
+ mode: "optional" | "default" | "required";
726
+ }[], 50, undefined>]>;
727
+ readonly grantedScopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>;
728
+ readonly user: v.ObjectSchema<{
729
+ readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 320, undefined>]>;
730
+ }, undefined>;
731
+ }, undefined>, v.ObjectSchema<{
732
+ readonly status: v.LiteralSchema<"error", undefined>;
733
+ readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
734
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>]>;
735
+ }, undefined>], undefined>;
736
+ export declare const AndCoAuthorizationCompletionSchema: v.ObjectSchema<{
737
+ readonly status: v.LiteralSchema<"completed", undefined>;
738
+ readonly decision: v.PicklistSchema<["approve", "deny"], undefined>;
739
+ readonly redirectUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 8192, undefined>]>;
740
+ }, undefined>;
741
+ export declare const AndCoAuthorizationErrorSchema: v.ObjectSchema<{
742
+ readonly error: v.ObjectSchema<{
743
+ readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>;
744
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>]>;
745
+ readonly requirement: v.OptionalSchema<v.PicklistSchema<["phone", "personal_identity", "address", "bank_account"], undefined>, undefined>;
746
+ }, undefined>;
747
+ }, undefined>;
748
+ /** Canonical consent state resolved by bank-webapp for one authorization. */
749
+ export type AndCoAuthorizationPreparation = v.InferOutput<typeof AndCoAuthorizationPreparationSchema>;
750
+ /** Completed approve or deny result containing the safe OAuth continuation URL. */
751
+ export type AndCoAuthorizationCompletion = v.InferOutput<typeof AndCoAuthorizationCompletionSchema>;
752
+ /** Typed API failure returned by the native authorization endpoints. */
753
+ export type AndCoAuthorizationError = v.InferOutput<typeof AndCoAuthorizationErrorSchema>["error"];
754
+ //# sourceMappingURL=authorization-preparation.d.ts.map