@andco/protocol 0.0.6 → 0.0.8

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 (63) hide show
  1. package/README.md +22 -71
  2. package/dist/api-errors.d.ts +5 -5
  3. package/dist/api-errors.d.ts.map +1 -1
  4. package/dist/api-errors.js +5 -5
  5. package/dist/consent.d.ts +2 -2
  6. package/dist/consent.d.ts.map +1 -1
  7. package/dist/consent.js +10 -19
  8. package/dist/errors.d.ts +46 -7
  9. package/dist/errors.d.ts.map +1 -1
  10. package/dist/errors.js +51 -8
  11. package/dist/format-money.d.ts +3 -0
  12. package/dist/format-money.d.ts.map +1 -0
  13. package/dist/format-money.js +7 -0
  14. package/dist/index.d.ts +2 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +2 -1
  17. package/dist/intent-input.d.ts +124 -124
  18. package/dist/intent-input.d.ts.map +1 -1
  19. package/dist/intent-input.js +14 -14
  20. package/dist/miniapp-icon.d.ts +2 -2
  21. package/dist/miniapp-icon.d.ts.map +1 -1
  22. package/dist/miniapp-icon.js +6 -58
  23. package/dist/native-intent.d.ts +20 -29
  24. package/dist/native-intent.d.ts.map +1 -1
  25. package/dist/native-intent.js +13 -56
  26. package/dist/pagination.d.ts +71 -0
  27. package/dist/pagination.d.ts.map +1 -0
  28. package/dist/pagination.js +63 -0
  29. package/dist/rar/account-matchers.d.ts +52 -52
  30. package/dist/rar/account-matchers.d.ts.map +1 -1
  31. package/dist/rar/account-matchers.js +81 -72
  32. package/dist/rar/bank.d.ts +86 -84
  33. package/dist/rar/bank.d.ts.map +1 -1
  34. package/dist/rar/bank.js +26 -24
  35. package/dist/rar/catalog.d.ts +57 -56
  36. package/dist/rar/catalog.d.ts.map +1 -1
  37. package/dist/rar/catalog.js +1 -0
  38. package/dist/rar/detail.d.ts +1 -1
  39. package/dist/rar/detail.d.ts.map +1 -1
  40. package/dist/rar/detail.js +1 -1
  41. package/dist/service-grants.d.ts +6 -3
  42. package/dist/service-grants.d.ts.map +1 -1
  43. package/dist/service-grants.js +17 -3
  44. package/dist/transport/financial-events.d.ts +10 -22
  45. package/dist/transport/financial-events.d.ts.map +1 -1
  46. package/dist/transport/financial-events.js +36 -62
  47. package/dist/transport/generated/oauth-api.d.ts +269 -96
  48. package/dist/transport/generated/oauth-api.d.ts.map +1 -1
  49. package/dist/transport/intents.d.ts +11 -10
  50. package/dist/transport/intents.d.ts.map +1 -1
  51. package/dist/transport/intents.js +20 -19
  52. package/dist/transport/rest.d.ts +3 -3
  53. package/dist/transport/rest.d.ts.map +1 -1
  54. package/dist/transport/rest.js +1 -1
  55. package/dist/transport/runtime.js +3 -3
  56. package/dist/utils.js +3 -3
  57. package/dist/webhooks.d.ts +92 -12
  58. package/dist/webhooks.d.ts.map +1 -1
  59. package/dist/webhooks.js +95 -20
  60. package/package.json +1 -1
  61. package/dist/native-copy.d.ts +0 -28
  62. package/dist/native-copy.d.ts.map +0 -1
  63. package/dist/native-copy.js +0 -400
@@ -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 Alias or by identifier: where a
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: "alias", alias: "ventas" };
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<"alias", undefined>;
11
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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 Alias or by identifier, exactly as an Intent carries it. */
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<"alias", undefined>;
21
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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 (`alias`, `account`,
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: "alias", alias: "proveedores" },
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<"alias", undefined>;
71
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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<"alias", undefined>;
97
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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<"alias", undefined>;
105
- readonly alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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 alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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<"alias", undefined>;
142
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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: "alias";
158
- alias: string;
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: "alias";
186
- alias: string;
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: "alias";
194
- alias: string;
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
- alias: string;
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: "alias";
235
- alias: string;
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: "alias";
253
- alias: string;
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: "alias";
281
- alias: string;
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: "alias";
289
- alias: string;
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
- alias: string;
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: "alias";
330
- alias: string;
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: "alias";
348
- alias: string;
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: "alias";
376
- alias: string;
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: "alias";
384
- alias: string;
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
- alias: string;
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: "alias";
425
- alias: string;
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<"alias", undefined>;
447
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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<"alias", undefined>;
473
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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<"alias", undefined>;
481
- readonly alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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 alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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<"alias", undefined>;
518
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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: "alias";
534
- alias: string;
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: "alias";
562
- alias: string;
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: "alias";
570
- alias: string;
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
- alias: string;
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: "alias";
611
- alias: string;
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: "alias";
629
- alias: string;
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: "alias";
657
- alias: string;
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: "alias";
665
- alias: string;
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
- alias: string;
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: "alias";
706
- alias: string;
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: "alias";
724
- alias: string;
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: "alias";
752
- alias: string;
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: "alias";
760
- alias: string;
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
- alias: string;
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: "alias";
801
- alias: string;
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 Alias that already exists is a refusal or a request for the
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<"alias", undefined>;
852
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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<"alias", undefined>;
859
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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 alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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<"alias", undefined>;
903
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
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: "alias";
921
- alias: string;
920
+ type: "account_key";
921
+ accountKey: string;
922
922
  } | {
923
923
  type: "account";
924
924
  id: string;
925
925
  };
926
926
  destination: {
927
- type: "alias";
928
- alias: string;
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
- alias: string;
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: "alias";
976
- alias: string;
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: "alias";
996
- alias: string;
995
+ type: "account_key";
996
+ accountKey: string;
997
997
  } | {
998
998
  type: "account";
999
999
  id: string;
1000
1000
  };
1001
1001
  destination: {
1002
- type: "alias";
1003
- alias: string;
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
- alias: string;
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: "alias";
1051
- alias: string;
1050
+ type: "account_key";
1051
+ accountKey: string;
1052
1052
  } | {
1053
1053
  type: "account";
1054
1054
  id: string;
@@ -1116,15 +1116,15 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
1116
1116
  readonly nbf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
1117
1117
  readonly type: v.LiteralSchema<"transfer", undefined>;
1118
1118
  readonly source: v.VariantSchema<"type", [v.StrictObjectSchema<{
1119
- type: v.LiteralSchema<"alias", undefined>;
1120
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1119
+ type: v.LiteralSchema<"account_key", undefined>;
1120
+ accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1121
1121
  }, undefined>, v.StrictObjectSchema<{
1122
1122
  type: v.LiteralSchema<"account", undefined>;
1123
1123
  id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
1124
1124
  }, undefined>], undefined>;
1125
1125
  readonly destination: v.VariantSchema<"type", [v.StrictObjectSchema<{
1126
- type: v.LiteralSchema<"alias", undefined>;
1127
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1126
+ type: v.LiteralSchema<"account_key", undefined>;
1127
+ accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1128
1128
  }, undefined>, v.StrictObjectSchema<{
1129
1129
  type: v.LiteralSchema<"account", undefined>;
1130
1130
  id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
@@ -1152,7 +1152,7 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
1152
1152
  readonly iat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
1153
1153
  readonly nbf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
1154
1154
  readonly type: v.LiteralSchema<"account_opening", undefined>;
1155
- readonly alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1155
+ readonly accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1156
1156
  readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
1157
1157
  readonly upsert: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
1158
1158
  readonly expires_in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "invalid_expiration_interval">]>, undefined>;
@@ -1167,8 +1167,8 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
1167
1167
  readonly nbf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
1168
1168
  readonly type: v.LiteralSchema<"account_closure", undefined>;
1169
1169
  readonly account: v.VariantSchema<"type", [v.StrictObjectSchema<{
1170
- type: v.LiteralSchema<"alias", undefined>;
1171
- alias: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1170
+ type: v.LiteralSchema<"account_key", undefined>;
1171
+ accountKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1172
1172
  }, undefined>, v.StrictObjectSchema<{
1173
1173
  type: v.LiteralSchema<"account", undefined>;
1174
1174
  id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
@@ -1185,15 +1185,15 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
1185
1185
  nbf?: number | undefined;
1186
1186
  type: "transfer";
1187
1187
  source: {
1188
- type: "alias";
1189
- alias: string;
1188
+ type: "account_key";
1189
+ accountKey: string;
1190
1190
  } | {
1191
1191
  type: "account";
1192
1192
  id: string;
1193
1193
  };
1194
1194
  destination: {
1195
- type: "alias";
1196
- alias: string;
1195
+ type: "account_key";
1196
+ accountKey: string;
1197
1197
  } | {
1198
1198
  type: "account";
1199
1199
  id: string;
@@ -1223,7 +1223,7 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
1223
1223
  iat?: number | undefined;
1224
1224
  nbf?: number | undefined;
1225
1225
  type: "account_opening";
1226
- alias: string;
1226
+ accountKey: string;
1227
1227
  name?: string | undefined;
1228
1228
  upsert: boolean;
1229
1229
  expires_in?: string | undefined;
@@ -1240,8 +1240,8 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
1240
1240
  nbf?: number | undefined;
1241
1241
  type: "account_closure";
1242
1242
  account: {
1243
- type: "alias";
1244
- alias: string;
1243
+ type: "account_key";
1244
+ accountKey: string;
1245
1245
  } | {
1246
1246
  type: "account";
1247
1247
  id: string;
@@ -1260,15 +1260,15 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
1260
1260
  nbf?: number | undefined;
1261
1261
  type: "transfer";
1262
1262
  source: {
1263
- type: "alias";
1264
- alias: string;
1263
+ type: "account_key";
1264
+ accountKey: string;
1265
1265
  } | {
1266
1266
  type: "account";
1267
1267
  id: string;
1268
1268
  };
1269
1269
  destination: {
1270
- type: "alias";
1271
- alias: string;
1270
+ type: "account_key";
1271
+ accountKey: string;
1272
1272
  } | {
1273
1273
  type: "account";
1274
1274
  id: string;
@@ -1298,7 +1298,7 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
1298
1298
  iat?: number | undefined;
1299
1299
  nbf?: number | undefined;
1300
1300
  type: "account_opening";
1301
- alias: string;
1301
+ accountKey: string;
1302
1302
  name?: string | undefined;
1303
1303
  upsert: boolean;
1304
1304
  expires_in?: string | undefined;
@@ -1315,8 +1315,8 @@ export declare function safeParseSignedIntent(input: unknown): v.SafeParseResult
1315
1315
  nbf?: number | undefined;
1316
1316
  type: "account_closure";
1317
1317
  account: {
1318
- type: "alias";
1319
- alias: string;
1318
+ type: "account_key";
1319
+ accountKey: string;
1320
1320
  } | {
1321
1321
  type: "account";
1322
1322
  id: string;