@andco/protocol 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -73
- package/dist/api-errors.d.ts +40 -6
- package/dist/api-errors.d.ts.map +1 -1
- package/dist/api-errors.js +38 -6
- package/dist/consent.d.ts +2 -2
- package/dist/consent.d.ts.map +1 -1
- package/dist/consent.js +10 -19
- package/dist/errors.d.ts +41 -7
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +46 -8
- package/dist/format-money.d.ts +3 -0
- package/dist/format-money.d.ts.map +1 -0
- package/dist/format-money.js +7 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/intent-input.d.ts +134 -126
- package/dist/intent-input.d.ts.map +1 -1
- package/dist/intent-input.js +26 -16
- package/dist/intent-status.d.ts +24 -0
- package/dist/intent-status.d.ts.map +1 -0
- package/dist/intent-status.js +37 -0
- package/dist/miniapp-icon.d.ts +2 -2
- package/dist/miniapp-icon.d.ts.map +1 -1
- package/dist/miniapp-icon.js +6 -58
- package/dist/native-intent.d.ts +24 -33
- package/dist/native-intent.d.ts.map +1 -1
- package/dist/native-intent.js +19 -60
- package/dist/pagination.d.ts +71 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +63 -0
- package/dist/rar/account-matchers.d.ts +52 -52
- package/dist/rar/account-matchers.d.ts.map +1 -1
- package/dist/rar/account-matchers.js +81 -72
- package/dist/rar/bank.d.ts +86 -84
- package/dist/rar/bank.d.ts.map +1 -1
- package/dist/rar/bank.js +26 -24
- package/dist/rar/catalog.d.ts +57 -56
- package/dist/rar/catalog.d.ts.map +1 -1
- package/dist/rar/catalog.js +1 -0
- package/dist/rar/detail.d.ts +1 -1
- package/dist/rar/detail.d.ts.map +1 -1
- package/dist/rar/detail.js +1 -1
- package/dist/service-grants.d.ts +4 -2
- package/dist/service-grants.d.ts.map +1 -1
- package/dist/service-grants.js +15 -2
- package/dist/transport/financial-events.d.ts +10 -22
- package/dist/transport/financial-events.d.ts.map +1 -1
- package/dist/transport/financial-events.js +36 -62
- package/dist/transport/generated/oauth-api.d.ts +297 -103
- package/dist/transport/generated/oauth-api.d.ts.map +1 -1
- package/dist/transport/intents.d.ts +11 -10
- package/dist/transport/intents.d.ts.map +1 -1
- package/dist/transport/intents.js +22 -21
- package/dist/transport/rest.d.ts +7 -4
- package/dist/transport/rest.d.ts.map +1 -1
- package/dist/transport/rest.js +1 -1
- package/dist/transport/runtime.js +3 -3
- package/dist/utils.js +3 -3
- package/dist/webhooks.d.ts +15 -4
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +50 -17
- package/package.json +1 -1
- package/dist/native-copy.d.ts +0 -28
- package/dist/native-copy.d.ts.map +0 -1
- package/dist/native-copy.js +0 -400
package/dist/intent-input.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
/**
|
|
3
|
-
* One Andco account of the Grant's subject, named by Account
|
|
3
|
+
* One Andco account of the Grant's subject, named by Account Key or by identifier: where a
|
|
4
4
|
* transfer's money leaves from, where a deposit lands, and the account a closure closes.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
|
-
* const account: IntentAccount = { type: "
|
|
7
|
+
* const account: IntentAccount = { type: "account_key", accountKey: "ventas" };
|
|
8
8
|
*/
|
|
9
9
|
declare const andcoAccount: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
10
|
-
type: v.LiteralSchema<"
|
|
11
|
-
|
|
10
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
11
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
12
12
|
}, undefined>, v.StrictObjectSchema<{
|
|
13
13
|
type: v.LiteralSchema<"account", undefined>;
|
|
14
14
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
15
15
|
}, undefined>], undefined>;
|
|
16
|
-
/** One Andco account named by Account
|
|
16
|
+
/** One Andco account named by Account Key or by identifier, exactly as an Intent carries it. */
|
|
17
17
|
export type IntentAccount = v.InferOutput<typeof andcoAccount>;
|
|
18
18
|
/** Where a signed transfer's money lands: nothing on this path is left for a person to complete. */
|
|
19
19
|
declare const signedTransferDestination: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
20
|
-
type: v.LiteralSchema<"
|
|
21
|
-
|
|
20
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
21
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
22
22
|
}, undefined>, v.StrictObjectSchema<{
|
|
23
23
|
type: v.LiteralSchema<"account", undefined>;
|
|
24
24
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -46,7 +46,7 @@ export declare function isIntentDeadline(value: string): boolean;
|
|
|
46
46
|
* wrong ones.
|
|
47
47
|
*
|
|
48
48
|
* `transfer` is the only way money movement is expressed: money leaving an account towards a
|
|
49
|
-
* `destination`, both named in the `bank_transfer` matcher vocabulary (`
|
|
49
|
+
* `destination`, both named in the `bank_transfer` matcher vocabulary (`account_key`, `account`,
|
|
50
50
|
* `external`). A null `source` is the confirmation screen's source picker; the amount and the
|
|
51
51
|
* destination are always locked there (`editable: true` is refused). Who may approve the Intent without a person belongs to the Grant, never to
|
|
52
52
|
* the operation itself.
|
|
@@ -54,7 +54,7 @@ export declare function isIntentDeadline(value: string): boolean;
|
|
|
54
54
|
* @example
|
|
55
55
|
* safeParseIntentCreate({
|
|
56
56
|
* type: "transfer", expires_in: "30 minutes", source: null,
|
|
57
|
-
* destination: { type: "
|
|
57
|
+
* destination: { type: "account_key", accountKey: "proveedores" },
|
|
58
58
|
* amount: { currency: "CLP", value: "40000" },
|
|
59
59
|
* note: { value: "Factura 42", editable: true },
|
|
60
60
|
* });
|
|
@@ -67,8 +67,8 @@ export declare function isIntentDeadline(value: string): boolean;
|
|
|
67
67
|
export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
68
68
|
readonly type: v.LiteralSchema<"deposit", undefined>;
|
|
69
69
|
readonly destination: v.OptionalSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
70
|
-
type: v.LiteralSchema<"
|
|
71
|
-
|
|
70
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
71
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
72
72
|
}, undefined>, v.StrictObjectSchema<{
|
|
73
73
|
type: v.LiteralSchema<"account", undefined>;
|
|
74
74
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -93,16 +93,16 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
93
93
|
editable: v.OptionalSchema<v.LiteralSchema<false, undefined>, false>;
|
|
94
94
|
}, undefined>;
|
|
95
95
|
readonly source: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
96
|
-
type: v.LiteralSchema<"
|
|
97
|
-
|
|
96
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
97
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
98
98
|
}, undefined>, v.StrictObjectSchema<{
|
|
99
99
|
type: v.LiteralSchema<"account", undefined>;
|
|
100
100
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
101
101
|
}, undefined>], undefined>, undefined>, null>;
|
|
102
102
|
readonly destination: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
103
103
|
readonly editable: v.OptionalSchema<v.LiteralSchema<false, undefined>, false>;
|
|
104
|
-
readonly type: v.LiteralSchema<"
|
|
105
|
-
readonly
|
|
104
|
+
readonly type: v.LiteralSchema<"account_key", undefined>;
|
|
105
|
+
readonly accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
106
106
|
}, undefined>, v.StrictObjectSchema<{
|
|
107
107
|
readonly editable: v.OptionalSchema<v.LiteralSchema<false, undefined>, false>;
|
|
108
108
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
@@ -125,7 +125,7 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
125
125
|
readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
|
|
126
126
|
}, undefined>, v.StrictObjectSchema<{
|
|
127
127
|
readonly type: v.LiteralSchema<"account_opening", undefined>;
|
|
128
|
-
readonly
|
|
128
|
+
readonly accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
129
129
|
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
130
130
|
readonly upsert: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
131
131
|
readonly expires_in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "invalid_expiration_interval">]>, undefined>;
|
|
@@ -138,8 +138,8 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
138
138
|
}, undefined>, v.StrictObjectSchema<{
|
|
139
139
|
readonly type: v.LiteralSchema<"account_closure", undefined>;
|
|
140
140
|
readonly account: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
141
|
-
type: v.LiteralSchema<"
|
|
142
|
-
|
|
141
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
142
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
143
143
|
}, undefined>, v.StrictObjectSchema<{
|
|
144
144
|
type: v.LiteralSchema<"account", undefined>;
|
|
145
145
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -154,8 +154,8 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
154
154
|
}, undefined>], undefined>, v.CheckAction<{
|
|
155
155
|
type: "deposit";
|
|
156
156
|
destination?: {
|
|
157
|
-
type: "
|
|
158
|
-
|
|
157
|
+
type: "account_key";
|
|
158
|
+
accountKey: string;
|
|
159
159
|
} | {
|
|
160
160
|
type: "account";
|
|
161
161
|
id: string;
|
|
@@ -182,16 +182,16 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
182
182
|
editable: false;
|
|
183
183
|
};
|
|
184
184
|
source: {
|
|
185
|
-
type: "
|
|
186
|
-
|
|
185
|
+
type: "account_key";
|
|
186
|
+
accountKey: string;
|
|
187
187
|
} | {
|
|
188
188
|
type: "account";
|
|
189
189
|
id: string;
|
|
190
190
|
} | null;
|
|
191
191
|
destination: {
|
|
192
192
|
editable: false;
|
|
193
|
-
type: "
|
|
194
|
-
|
|
193
|
+
type: "account_key";
|
|
194
|
+
accountKey: string;
|
|
195
195
|
} | {
|
|
196
196
|
editable: false;
|
|
197
197
|
type: "account";
|
|
@@ -216,7 +216,7 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
216
216
|
};
|
|
217
217
|
} | {
|
|
218
218
|
type: "account_opening";
|
|
219
|
-
|
|
219
|
+
accountKey: string;
|
|
220
220
|
name?: string | undefined;
|
|
221
221
|
upsert: boolean;
|
|
222
222
|
expires_in?: string | undefined;
|
|
@@ -231,8 +231,8 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
231
231
|
} | {
|
|
232
232
|
type: "account_closure";
|
|
233
233
|
account: {
|
|
234
|
-
type: "
|
|
235
|
-
|
|
234
|
+
type: "account_key";
|
|
235
|
+
accountKey: string;
|
|
236
236
|
} | {
|
|
237
237
|
type: "account";
|
|
238
238
|
id: string;
|
|
@@ -249,8 +249,8 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
249
249
|
}, "exactly_one_expiration_required">, v.CheckAction<{
|
|
250
250
|
type: "deposit";
|
|
251
251
|
destination?: {
|
|
252
|
-
type: "
|
|
253
|
-
|
|
252
|
+
type: "account_key";
|
|
253
|
+
accountKey: string;
|
|
254
254
|
} | {
|
|
255
255
|
type: "account";
|
|
256
256
|
id: string;
|
|
@@ -277,16 +277,16 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
277
277
|
editable: false;
|
|
278
278
|
};
|
|
279
279
|
source: {
|
|
280
|
-
type: "
|
|
281
|
-
|
|
280
|
+
type: "account_key";
|
|
281
|
+
accountKey: string;
|
|
282
282
|
} | {
|
|
283
283
|
type: "account";
|
|
284
284
|
id: string;
|
|
285
285
|
} | null;
|
|
286
286
|
destination: {
|
|
287
287
|
editable: false;
|
|
288
|
-
type: "
|
|
289
|
-
|
|
288
|
+
type: "account_key";
|
|
289
|
+
accountKey: string;
|
|
290
290
|
} | {
|
|
291
291
|
editable: false;
|
|
292
292
|
type: "account";
|
|
@@ -311,7 +311,7 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
311
311
|
};
|
|
312
312
|
} | {
|
|
313
313
|
type: "account_opening";
|
|
314
|
-
|
|
314
|
+
accountKey: string;
|
|
315
315
|
name?: string | undefined;
|
|
316
316
|
upsert: boolean;
|
|
317
317
|
expires_in?: string | undefined;
|
|
@@ -326,8 +326,8 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
326
326
|
} | {
|
|
327
327
|
type: "account_closure";
|
|
328
328
|
account: {
|
|
329
|
-
type: "
|
|
330
|
-
|
|
329
|
+
type: "account_key";
|
|
330
|
+
accountKey: string;
|
|
331
331
|
} | {
|
|
332
332
|
type: "account";
|
|
333
333
|
id: string;
|
|
@@ -344,8 +344,8 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
344
344
|
}, "passive_deposit_requires_no_target">, v.CheckAction<{
|
|
345
345
|
type: "deposit";
|
|
346
346
|
destination?: {
|
|
347
|
-
type: "
|
|
348
|
-
|
|
347
|
+
type: "account_key";
|
|
348
|
+
accountKey: string;
|
|
349
349
|
} | {
|
|
350
350
|
type: "account";
|
|
351
351
|
id: string;
|
|
@@ -372,16 +372,16 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
372
372
|
editable: false;
|
|
373
373
|
};
|
|
374
374
|
source: {
|
|
375
|
-
type: "
|
|
376
|
-
|
|
375
|
+
type: "account_key";
|
|
376
|
+
accountKey: string;
|
|
377
377
|
} | {
|
|
378
378
|
type: "account";
|
|
379
379
|
id: string;
|
|
380
380
|
} | null;
|
|
381
381
|
destination: {
|
|
382
382
|
editable: false;
|
|
383
|
-
type: "
|
|
384
|
-
|
|
383
|
+
type: "account_key";
|
|
384
|
+
accountKey: string;
|
|
385
385
|
} | {
|
|
386
386
|
editable: false;
|
|
387
387
|
type: "account";
|
|
@@ -406,7 +406,7 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
406
406
|
};
|
|
407
407
|
} | {
|
|
408
408
|
type: "account_opening";
|
|
409
|
-
|
|
409
|
+
accountKey: string;
|
|
410
410
|
name?: string | undefined;
|
|
411
411
|
upsert: boolean;
|
|
412
412
|
expires_in?: string | undefined;
|
|
@@ -421,8 +421,8 @@ export declare const IntentCreateSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
421
421
|
} | {
|
|
422
422
|
type: "account_closure";
|
|
423
423
|
account: {
|
|
424
|
-
type: "
|
|
425
|
-
|
|
424
|
+
type: "account_key";
|
|
425
|
+
accountKey: string;
|
|
426
426
|
} | {
|
|
427
427
|
type: "account";
|
|
428
428
|
id: string;
|
|
@@ -443,8 +443,8 @@ export type IntentCreate = v.InferOutput<typeof IntentCreateSchema>;
|
|
|
443
443
|
export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult<v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
444
444
|
readonly type: v.LiteralSchema<"deposit", undefined>;
|
|
445
445
|
readonly destination: v.OptionalSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
446
|
-
type: v.LiteralSchema<"
|
|
447
|
-
|
|
446
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
447
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
448
448
|
}, undefined>, v.StrictObjectSchema<{
|
|
449
449
|
type: v.LiteralSchema<"account", undefined>;
|
|
450
450
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -469,16 +469,16 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
469
469
|
editable: v.OptionalSchema<v.LiteralSchema<false, undefined>, false>;
|
|
470
470
|
}, undefined>;
|
|
471
471
|
readonly source: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
472
|
-
type: v.LiteralSchema<"
|
|
473
|
-
|
|
472
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
473
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
474
474
|
}, undefined>, v.StrictObjectSchema<{
|
|
475
475
|
type: v.LiteralSchema<"account", undefined>;
|
|
476
476
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
477
477
|
}, undefined>], undefined>, undefined>, null>;
|
|
478
478
|
readonly destination: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
479
479
|
readonly editable: v.OptionalSchema<v.LiteralSchema<false, undefined>, false>;
|
|
480
|
-
readonly type: v.LiteralSchema<"
|
|
481
|
-
readonly
|
|
480
|
+
readonly type: v.LiteralSchema<"account_key", undefined>;
|
|
481
|
+
readonly accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
482
482
|
}, undefined>, v.StrictObjectSchema<{
|
|
483
483
|
readonly editable: v.OptionalSchema<v.LiteralSchema<false, undefined>, false>;
|
|
484
484
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
@@ -501,7 +501,7 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
501
501
|
readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
|
|
502
502
|
}, undefined>, v.StrictObjectSchema<{
|
|
503
503
|
readonly type: v.LiteralSchema<"account_opening", undefined>;
|
|
504
|
-
readonly
|
|
504
|
+
readonly accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
505
505
|
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
506
506
|
readonly upsert: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
507
507
|
readonly expires_in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "invalid_expiration_interval">]>, undefined>;
|
|
@@ -514,8 +514,8 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
514
514
|
}, undefined>, v.StrictObjectSchema<{
|
|
515
515
|
readonly type: v.LiteralSchema<"account_closure", undefined>;
|
|
516
516
|
readonly account: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
517
|
-
type: v.LiteralSchema<"
|
|
518
|
-
|
|
517
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
518
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
519
519
|
}, undefined>, v.StrictObjectSchema<{
|
|
520
520
|
type: v.LiteralSchema<"account", undefined>;
|
|
521
521
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -530,8 +530,8 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
530
530
|
}, undefined>], undefined>, v.CheckAction<{
|
|
531
531
|
type: "deposit";
|
|
532
532
|
destination?: {
|
|
533
|
-
type: "
|
|
534
|
-
|
|
533
|
+
type: "account_key";
|
|
534
|
+
accountKey: string;
|
|
535
535
|
} | {
|
|
536
536
|
type: "account";
|
|
537
537
|
id: string;
|
|
@@ -558,16 +558,16 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
558
558
|
editable: false;
|
|
559
559
|
};
|
|
560
560
|
source: {
|
|
561
|
-
type: "
|
|
562
|
-
|
|
561
|
+
type: "account_key";
|
|
562
|
+
accountKey: string;
|
|
563
563
|
} | {
|
|
564
564
|
type: "account";
|
|
565
565
|
id: string;
|
|
566
566
|
} | null;
|
|
567
567
|
destination: {
|
|
568
568
|
editable: false;
|
|
569
|
-
type: "
|
|
570
|
-
|
|
569
|
+
type: "account_key";
|
|
570
|
+
accountKey: string;
|
|
571
571
|
} | {
|
|
572
572
|
editable: false;
|
|
573
573
|
type: "account";
|
|
@@ -592,7 +592,7 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
592
592
|
};
|
|
593
593
|
} | {
|
|
594
594
|
type: "account_opening";
|
|
595
|
-
|
|
595
|
+
accountKey: string;
|
|
596
596
|
name?: string | undefined;
|
|
597
597
|
upsert: boolean;
|
|
598
598
|
expires_in?: string | undefined;
|
|
@@ -607,8 +607,8 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
607
607
|
} | {
|
|
608
608
|
type: "account_closure";
|
|
609
609
|
account: {
|
|
610
|
-
type: "
|
|
611
|
-
|
|
610
|
+
type: "account_key";
|
|
611
|
+
accountKey: string;
|
|
612
612
|
} | {
|
|
613
613
|
type: "account";
|
|
614
614
|
id: string;
|
|
@@ -625,8 +625,8 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
625
625
|
}, "exactly_one_expiration_required">, v.CheckAction<{
|
|
626
626
|
type: "deposit";
|
|
627
627
|
destination?: {
|
|
628
|
-
type: "
|
|
629
|
-
|
|
628
|
+
type: "account_key";
|
|
629
|
+
accountKey: string;
|
|
630
630
|
} | {
|
|
631
631
|
type: "account";
|
|
632
632
|
id: string;
|
|
@@ -653,16 +653,16 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
653
653
|
editable: false;
|
|
654
654
|
};
|
|
655
655
|
source: {
|
|
656
|
-
type: "
|
|
657
|
-
|
|
656
|
+
type: "account_key";
|
|
657
|
+
accountKey: string;
|
|
658
658
|
} | {
|
|
659
659
|
type: "account";
|
|
660
660
|
id: string;
|
|
661
661
|
} | null;
|
|
662
662
|
destination: {
|
|
663
663
|
editable: false;
|
|
664
|
-
type: "
|
|
665
|
-
|
|
664
|
+
type: "account_key";
|
|
665
|
+
accountKey: string;
|
|
666
666
|
} | {
|
|
667
667
|
editable: false;
|
|
668
668
|
type: "account";
|
|
@@ -687,7 +687,7 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
687
687
|
};
|
|
688
688
|
} | {
|
|
689
689
|
type: "account_opening";
|
|
690
|
-
|
|
690
|
+
accountKey: string;
|
|
691
691
|
name?: string | undefined;
|
|
692
692
|
upsert: boolean;
|
|
693
693
|
expires_in?: string | undefined;
|
|
@@ -702,8 +702,8 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
702
702
|
} | {
|
|
703
703
|
type: "account_closure";
|
|
704
704
|
account: {
|
|
705
|
-
type: "
|
|
706
|
-
|
|
705
|
+
type: "account_key";
|
|
706
|
+
accountKey: string;
|
|
707
707
|
} | {
|
|
708
708
|
type: "account";
|
|
709
709
|
id: string;
|
|
@@ -720,8 +720,8 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
720
720
|
}, "passive_deposit_requires_no_target">, v.CheckAction<{
|
|
721
721
|
type: "deposit";
|
|
722
722
|
destination?: {
|
|
723
|
-
type: "
|
|
724
|
-
|
|
723
|
+
type: "account_key";
|
|
724
|
+
accountKey: string;
|
|
725
725
|
} | {
|
|
726
726
|
type: "account";
|
|
727
727
|
id: string;
|
|
@@ -748,16 +748,16 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
748
748
|
editable: false;
|
|
749
749
|
};
|
|
750
750
|
source: {
|
|
751
|
-
type: "
|
|
752
|
-
|
|
751
|
+
type: "account_key";
|
|
752
|
+
accountKey: string;
|
|
753
753
|
} | {
|
|
754
754
|
type: "account";
|
|
755
755
|
id: string;
|
|
756
756
|
} | null;
|
|
757
757
|
destination: {
|
|
758
758
|
editable: false;
|
|
759
|
-
type: "
|
|
760
|
-
|
|
759
|
+
type: "account_key";
|
|
760
|
+
accountKey: string;
|
|
761
761
|
} | {
|
|
762
762
|
editable: false;
|
|
763
763
|
type: "account";
|
|
@@ -782,7 +782,7 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
782
782
|
};
|
|
783
783
|
} | {
|
|
784
784
|
type: "account_opening";
|
|
785
|
-
|
|
785
|
+
accountKey: string;
|
|
786
786
|
name?: string | undefined;
|
|
787
787
|
upsert: boolean;
|
|
788
788
|
expires_in?: string | undefined;
|
|
@@ -797,8 +797,8 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
797
797
|
} | {
|
|
798
798
|
type: "account_closure";
|
|
799
799
|
account: {
|
|
800
|
-
type: "
|
|
801
|
-
|
|
800
|
+
type: "account_key";
|
|
801
|
+
accountKey: string;
|
|
802
802
|
} | {
|
|
803
803
|
type: "account";
|
|
804
804
|
id: string;
|
|
@@ -830,7 +830,7 @@ export declare function safeParseIntentCreate(input: unknown): v.SafeParseResult
|
|
|
830
830
|
* come from inside the signature, the second one cannot arrive in a header or a query string.
|
|
831
831
|
*
|
|
832
832
|
* `account_opening` is signed on the same terms, and `upsert` is the reason it matters here. The
|
|
833
|
-
* flag decides whether naming an Account
|
|
833
|
+
* flag decides whether naming an Account Key that already exists is a refusal or a request for the
|
|
834
834
|
* account already carrying it, which is a difference in what the instruction *orders*. Carried as a
|
|
835
835
|
* transport option — a header, a query parameter, a field beside the assertion — anybody holding the
|
|
836
836
|
* signed instruction could flip it, and the order executed would not be the order signed.
|
|
@@ -848,15 +848,15 @@ export declare const SignedIntentSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
848
848
|
readonly nbf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
849
849
|
readonly type: v.LiteralSchema<"transfer", undefined>;
|
|
850
850
|
readonly source: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
851
|
-
type: v.LiteralSchema<"
|
|
852
|
-
|
|
851
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
852
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
853
853
|
}, undefined>, v.StrictObjectSchema<{
|
|
854
854
|
type: v.LiteralSchema<"account", undefined>;
|
|
855
855
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
856
856
|
}, undefined>], undefined>;
|
|
857
857
|
readonly destination: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
858
|
-
type: v.LiteralSchema<"
|
|
859
|
-
|
|
858
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
859
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
860
860
|
}, undefined>, v.StrictObjectSchema<{
|
|
861
861
|
type: v.LiteralSchema<"account", undefined>;
|
|
862
862
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -884,7 +884,7 @@ export declare const SignedIntentSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
884
884
|
readonly iat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
885
885
|
readonly nbf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
886
886
|
readonly type: v.LiteralSchema<"account_opening", undefined>;
|
|
887
|
-
readonly
|
|
887
|
+
readonly accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
888
888
|
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
889
889
|
readonly upsert: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
890
890
|
readonly expires_in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "invalid_expiration_interval">]>, undefined>;
|
|
@@ -899,8 +899,8 @@ export declare const SignedIntentSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
899
899
|
readonly nbf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
900
900
|
readonly type: v.LiteralSchema<"account_closure", undefined>;
|
|
901
901
|
readonly account: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
902
|
-
type: v.LiteralSchema<"
|
|
903
|
-
|
|
902
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
903
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
904
904
|
}, undefined>, v.StrictObjectSchema<{
|
|
905
905
|
type: v.LiteralSchema<"account", undefined>;
|
|
906
906
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -917,15 +917,15 @@ export declare const SignedIntentSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
917
917
|
nbf?: number | undefined;
|
|
918
918
|
type: "transfer";
|
|
919
919
|
source: {
|
|
920
|
-
type: "
|
|
921
|
-
|
|
920
|
+
type: "account_key";
|
|
921
|
+
accountKey: string;
|
|
922
922
|
} | {
|
|
923
923
|
type: "account";
|
|
924
924
|
id: string;
|
|
925
925
|
};
|
|
926
926
|
destination: {
|
|
927
|
-
type: "
|
|
928
|
-
|
|
927
|
+
type: "account_key";
|
|
928
|
+
accountKey: string;
|
|
929
929
|
} | {
|
|
930
930
|
type: "account";
|
|
931
931
|
id: string;
|
|
@@ -955,7 +955,7 @@ export declare const SignedIntentSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
955
955
|
iat?: number | undefined;
|
|
956
956
|
nbf?: number | undefined;
|
|
957
957
|
type: "account_opening";
|
|
958
|
-
|
|
958
|
+
accountKey: string;
|
|
959
959
|
name?: string | undefined;
|
|
960
960
|
upsert: boolean;
|
|
961
961
|
expires_in?: string | undefined;
|
|
@@ -972,8 +972,8 @@ export declare const SignedIntentSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
972
972
|
nbf?: number | undefined;
|
|
973
973
|
type: "account_closure";
|
|
974
974
|
account: {
|
|
975
|
-
type: "
|
|
976
|
-
|
|
975
|
+
type: "account_key";
|
|
976
|
+
accountKey: string;
|
|
977
977
|
} | {
|
|
978
978
|
type: "account";
|
|
979
979
|
id: string;
|
|
@@ -992,15 +992,15 @@ export declare const SignedIntentSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
992
992
|
nbf?: number | undefined;
|
|
993
993
|
type: "transfer";
|
|
994
994
|
source: {
|
|
995
|
-
type: "
|
|
996
|
-
|
|
995
|
+
type: "account_key";
|
|
996
|
+
accountKey: string;
|
|
997
997
|
} | {
|
|
998
998
|
type: "account";
|
|
999
999
|
id: string;
|
|
1000
1000
|
};
|
|
1001
1001
|
destination: {
|
|
1002
|
-
type: "
|
|
1003
|
-
|
|
1002
|
+
type: "account_key";
|
|
1003
|
+
accountKey: string;
|
|
1004
1004
|
} | {
|
|
1005
1005
|
type: "account";
|
|
1006
1006
|
id: string;
|
|
@@ -1030,7 +1030,7 @@ export declare const SignedIntentSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
1030
1030
|
iat?: number | undefined;
|
|
1031
1031
|
nbf?: number | undefined;
|
|
1032
1032
|
type: "account_opening";
|
|
1033
|
-
|
|
1033
|
+
accountKey: string;
|
|
1034
1034
|
name?: string | undefined;
|
|
1035
1035
|
upsert: boolean;
|
|
1036
1036
|
expires_in?: string | undefined;
|
|
@@ -1047,8 +1047,8 @@ export declare const SignedIntentSchema: v.SchemaWithPipe<readonly [v.VariantSch
|
|
|
1047
1047
|
nbf?: number | undefined;
|
|
1048
1048
|
type: "account_closure";
|
|
1049
1049
|
account: {
|
|
1050
|
-
type: "
|
|
1051
|
-
|
|
1050
|
+
type: "account_key";
|
|
1051
|
+
accountKey: string;
|
|
1052
1052
|
} | {
|
|
1053
1053
|
type: "account";
|
|
1054
1054
|
id: string;
|
|
@@ -1105,6 +1105,11 @@ export declare function safeParseIntentRejection(input: unknown): v.SafeParseRes
|
|
|
1105
1105
|
export declare const ANDCO_INTENT_ERROR_CODES: {
|
|
1106
1106
|
/** The Intent's deadline to be approved and executed has already passed. */
|
|
1107
1107
|
readonly INTENT_EXPIRED: "intent_expired";
|
|
1108
|
+
/**
|
|
1109
|
+
* Closing an account is not built yet. Answered as `not_implemented` (501) with this `code`, by the
|
|
1110
|
+
* SDK before any request and by the server at Intent creation, whatever the Grant holds.
|
|
1111
|
+
*/
|
|
1112
|
+
readonly ACCOUNT_CLOSURE_NOT_IMPLEMENTED: "account_closure_not_implemented";
|
|
1108
1113
|
};
|
|
1109
1114
|
/** Returns validation issues for the verified claims without throwing across the HTTP boundary. */
|
|
1110
1115
|
export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult<v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
@@ -1116,15 +1121,15 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1116
1121
|
readonly nbf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
1117
1122
|
readonly type: v.LiteralSchema<"transfer", undefined>;
|
|
1118
1123
|
readonly source: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1119
|
-
type: v.LiteralSchema<"
|
|
1120
|
-
|
|
1124
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
1125
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1121
1126
|
}, undefined>, v.StrictObjectSchema<{
|
|
1122
1127
|
type: v.LiteralSchema<"account", undefined>;
|
|
1123
1128
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
1124
1129
|
}, undefined>], undefined>;
|
|
1125
1130
|
readonly destination: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1126
|
-
type: v.LiteralSchema<"
|
|
1127
|
-
|
|
1131
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
1132
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1128
1133
|
}, undefined>, v.StrictObjectSchema<{
|
|
1129
1134
|
type: v.LiteralSchema<"account", undefined>;
|
|
1130
1135
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -1152,7 +1157,7 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1152
1157
|
readonly iat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
1153
1158
|
readonly nbf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
1154
1159
|
readonly type: v.LiteralSchema<"account_opening", undefined>;
|
|
1155
|
-
readonly
|
|
1160
|
+
readonly accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1156
1161
|
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1157
1162
|
readonly upsert: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1158
1163
|
readonly expires_in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "invalid_expiration_interval">]>, undefined>;
|
|
@@ -1167,8 +1172,8 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1167
1172
|
readonly nbf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
1168
1173
|
readonly type: v.LiteralSchema<"account_closure", undefined>;
|
|
1169
1174
|
readonly account: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1170
|
-
type: v.LiteralSchema<"
|
|
1171
|
-
|
|
1175
|
+
type: v.LiteralSchema<"account_key", undefined>;
|
|
1176
|
+
accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
1172
1177
|
}, undefined>, v.StrictObjectSchema<{
|
|
1173
1178
|
type: v.LiteralSchema<"account", undefined>;
|
|
1174
1179
|
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -1185,15 +1190,15 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1185
1190
|
nbf?: number | undefined;
|
|
1186
1191
|
type: "transfer";
|
|
1187
1192
|
source: {
|
|
1188
|
-
type: "
|
|
1189
|
-
|
|
1193
|
+
type: "account_key";
|
|
1194
|
+
accountKey: string;
|
|
1190
1195
|
} | {
|
|
1191
1196
|
type: "account";
|
|
1192
1197
|
id: string;
|
|
1193
1198
|
};
|
|
1194
1199
|
destination: {
|
|
1195
|
-
type: "
|
|
1196
|
-
|
|
1200
|
+
type: "account_key";
|
|
1201
|
+
accountKey: string;
|
|
1197
1202
|
} | {
|
|
1198
1203
|
type: "account";
|
|
1199
1204
|
id: string;
|
|
@@ -1223,7 +1228,7 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1223
1228
|
iat?: number | undefined;
|
|
1224
1229
|
nbf?: number | undefined;
|
|
1225
1230
|
type: "account_opening";
|
|
1226
|
-
|
|
1231
|
+
accountKey: string;
|
|
1227
1232
|
name?: string | undefined;
|
|
1228
1233
|
upsert: boolean;
|
|
1229
1234
|
expires_in?: string | undefined;
|
|
@@ -1240,8 +1245,8 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1240
1245
|
nbf?: number | undefined;
|
|
1241
1246
|
type: "account_closure";
|
|
1242
1247
|
account: {
|
|
1243
|
-
type: "
|
|
1244
|
-
|
|
1248
|
+
type: "account_key";
|
|
1249
|
+
accountKey: string;
|
|
1245
1250
|
} | {
|
|
1246
1251
|
type: "account";
|
|
1247
1252
|
id: string;
|
|
@@ -1260,15 +1265,15 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1260
1265
|
nbf?: number | undefined;
|
|
1261
1266
|
type: "transfer";
|
|
1262
1267
|
source: {
|
|
1263
|
-
type: "
|
|
1264
|
-
|
|
1268
|
+
type: "account_key";
|
|
1269
|
+
accountKey: string;
|
|
1265
1270
|
} | {
|
|
1266
1271
|
type: "account";
|
|
1267
1272
|
id: string;
|
|
1268
1273
|
};
|
|
1269
1274
|
destination: {
|
|
1270
|
-
type: "
|
|
1271
|
-
|
|
1275
|
+
type: "account_key";
|
|
1276
|
+
accountKey: string;
|
|
1272
1277
|
} | {
|
|
1273
1278
|
type: "account";
|
|
1274
1279
|
id: string;
|
|
@@ -1298,7 +1303,7 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1298
1303
|
iat?: number | undefined;
|
|
1299
1304
|
nbf?: number | undefined;
|
|
1300
1305
|
type: "account_opening";
|
|
1301
|
-
|
|
1306
|
+
accountKey: string;
|
|
1302
1307
|
name?: string | undefined;
|
|
1303
1308
|
upsert: boolean;
|
|
1304
1309
|
expires_in?: string | undefined;
|
|
@@ -1315,8 +1320,8 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1315
1320
|
nbf?: number | undefined;
|
|
1316
1321
|
type: "account_closure";
|
|
1317
1322
|
account: {
|
|
1318
|
-
type: "
|
|
1319
|
-
|
|
1323
|
+
type: "account_key";
|
|
1324
|
+
accountKey: string;
|
|
1320
1325
|
} | {
|
|
1321
1326
|
type: "account";
|
|
1322
1327
|
id: string;
|
|
@@ -1327,8 +1332,11 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
|
|
|
1327
1332
|
[x: string]: unknown;
|
|
1328
1333
|
};
|
|
1329
1334
|
}, "metadata_too_large">]>>;
|
|
1330
|
-
/**
|
|
1331
|
-
|
|
1335
|
+
/**
|
|
1336
|
+
* Identifies recognized unsupported Intents without silently dropping their extra instructions: an
|
|
1337
|
+
* account closure, and payment shapes that carry several destinations, allocations or instructions.
|
|
1338
|
+
*/
|
|
1339
|
+
export declare function unsupportedIntentShape(input: unknown): string | undefined;
|
|
1332
1340
|
/**
|
|
1333
1341
|
* Values proposed by the account holder; the database enforces editability and freezes confirmation.
|
|
1334
1342
|
*
|