@andco/protocol 0.0.7 → 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 -73
  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 +41 -7
  9. package/dist/errors.d.ts.map +1 -1
  10. package/dist/errors.js +46 -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 +4 -2
  42. package/dist/service-grants.d.ts.map +1 -1
  43. package/dist/service-grants.js +15 -2
  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 +15 -4
  58. package/dist/webhooks.d.ts.map +1 -1
  59. package/dist/webhooks.js +50 -17
  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,30 +1,30 @@
1
1
  import * as v from "valibot";
2
2
  /**
3
- * Syntax of an Account Alias: the name that identifies one Cuenta Vista among the accounts of its
3
+ * Syntax of an Account Key: the name that identifies one Cuenta Vista among the accounts of its
4
4
  * Subject, unique per Subject regardless of which Project opened it.
5
5
  */
6
- export declare const ACCOUNT_ALIAS_SYNTAX = "^[a-z][a-z0-9_-]{0,63}$";
6
+ export declare const ACCOUNT_KEY_SYNTAX = "^[a-z][a-z0-9_-]{0,63}$";
7
7
  /**
8
- * Syntax of the `pattern` carried by an `alias` matcher, and the entire grammar of the language:
9
- * one alias literal (`caja-chica-1`), one alias literal followed by a single trailing `*`
8
+ * Syntax of the `pattern` carried by an `accountKey` matcher, and the entire grammar of the language:
9
+ * one accountKey literal (`caja-chica-1`), one accountKey literal followed by a single trailing `*`
10
10
  * (`caja-chica-*`), or `*` alone. There is no other metacharacter, no anchor and no alternation.
11
11
  *
12
12
  * Regular expressions were rejected on a decisive technical ground, not on taste. The
13
13
  * authorization decision has to answer whether one resolved detail is *contained* in the requested
14
14
  * one, and containment of regular languages is PSPACE-complete; with prefix globs it is the three
15
- * lines of {@link accountAliasPatternContains}. Two further reasons hold independently: the
15
+ * lines of {@link accountKeyPatternContains}. Two further reasons hold independently: the
16
16
  * decision runs in Postgres while the schema is validated in JavaScript, and POSIX and ECMAScript
17
17
  * are not the same language, so one permission would mean two things depending on where it ran;
18
18
  * and Postgres `~` is unanchored, so `cliente-1` would silently also authorize `evil-cliente-123`,
19
19
  * failing towards granting more.
20
20
  */
21
- export declare const ACCOUNT_ALIAS_PATTERN_SYNTAX = "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$";
21
+ export declare const ACCOUNT_KEY_PATTERN_SYNTAX = "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$";
22
22
  /** Syntax of an Andco account identifier: a UUID. */
23
23
  export declare const ACCOUNT_ID_PATTERN = "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
24
- /** An Account Alias, exactly as its holder chose it. */
25
- export declare const AccountAliasSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
26
- /** A prefix glob over Account Aliases. See {@link ACCOUNT_ALIAS_PATTERN_SYNTAX} for the grammar. */
27
- export declare const AccountAliasPatternSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
24
+ /** An Account Key, exactly as its holder chose it. */
25
+ export declare const AccountKeySchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
26
+ /** A prefix glob over Account Keys. See {@link ACCOUNT_KEY_PATTERN_SYNTAX} for the grammar. */
27
+ export declare const AccountKeyPatternSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
28
28
  /** Upper bound of every matcher list. */
29
29
  export declare const ACCOUNT_MATCHER_LIST_CEILING = 100;
30
30
  /** The fields an `external` matcher may fix, each narrowing the accounts it admits. */
@@ -32,7 +32,7 @@ export declare const ACCOUNT_EXTERNAL_FIELDS: readonly ["bank_id", "account_type
32
32
  /**
33
33
  * How many accounts the person picks at consent for an `editable` matcher of a list she narrows:
34
34
  * `"multiple"` (the default) lets her keep several, `"single"` asks for exactly one, which the
35
- * Grant then fixes as one `account` matcher. Only an `editable` own matcher (`alias` or
35
+ * Grant then fixes as one `account` matcher. Only an `editable` own matcher (`accountKey` or
36
36
  * `any`/`own`) of a source, `accounts` or Deposit destination list may carry it, and every editable
37
37
  * matcher of that list must agree.
38
38
  *
@@ -43,22 +43,22 @@ export declare const ACCOUNT_EXTERNAL_FIELDS: readonly ["bank_id", "account_type
43
43
  export declare const ACCOUNT_SELECTIONS: readonly ["single", "multiple"];
44
44
  export type AccountSelection = (typeof ACCOUNT_SELECTIONS)[number];
45
45
  /**
46
- * Accounts of the Subject whose Account Alias matches `pattern` (literal, `prefix*` or `*`),
46
+ * Accounts of the Subject whose Account Key matches `pattern` (literal, `prefix*` or `*`),
47
47
  * including accounts that will exist tomorrow. `type` may be omitted. With `editable`, the person
48
48
  * may narrow it at consent to accounts it currently matches, which the Grant then fixes as
49
49
  * `account` matchers.
50
50
  *
51
51
  * @example
52
- * const caja: AccountAlias = { type: "alias", pattern: "caja-*", editable: true };
53
- * const short: AccountAlias = { pattern: "ventas" };
52
+ * const caja: AccountKey = { type: "account_key", pattern: "caja-*", editable: true };
53
+ * const short: AccountKey = { pattern: "ventas" };
54
54
  */
55
- export declare const AccountAliasMatcherSchema: v.StrictObjectSchema<{
56
- readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
55
+ export declare const AccountKeyMatcherSchema: v.StrictObjectSchema<{
56
+ readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
57
57
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
58
58
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
59
59
  readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
60
60
  }, undefined>;
61
- export type AccountAlias = v.InferInput<typeof AccountAliasMatcherSchema>;
61
+ export type AccountKey = v.InferInput<typeof AccountKeyMatcherSchema>;
62
62
  /**
63
63
  * One exact Andco account. As a source or in `accounts` it must be an account of the Subject; the
64
64
  * gate checks ownership, since the schema cannot.
@@ -112,7 +112,7 @@ export type AccountExternal = v.InferInput<typeof AccountExternalMatcherSchema>;
112
112
  * destination accepts, so that no permission can debit, read or collect into someone else's account.
113
113
  */
114
114
  export declare const OwnAccountMatcherSchema: v.UnionSchema<[v.StrictObjectSchema<{
115
- readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
115
+ readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
116
116
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
117
117
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
118
118
  readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
@@ -129,7 +129,7 @@ export declare const OwnAccountMatcherSchema: v.UnionSchema<[v.StrictObjectSchem
129
129
  export type OwnAccountMatcher = v.InferInput<typeof OwnAccountMatcherSchema>;
130
130
  /** Every matcher kind; what a Transfer destination accepts. */
131
131
  export declare const DestinationAccountMatcherSchema: v.UnionSchema<[v.StrictObjectSchema<{
132
- readonly type: v.NullishSchema<v.LiteralSchema<"alias", undefined>, undefined>;
132
+ readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
133
133
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
134
134
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
135
135
  readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
@@ -159,9 +159,9 @@ export declare const DestinationAccountMatcherSchema: v.UnionSchema<[v.StrictObj
159
159
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
160
160
  }, undefined>], undefined>;
161
161
  export type DestinationAccountMatcher = v.InferInput<typeof DestinationAccountMatcherSchema>;
162
- /** {@link AccountAliasMatcherSchema} as granted: `type` present, no `editable`. */
163
- export declare const GrantedAccountAliasSchema: v.StrictObjectSchema<{
164
- readonly type: v.LiteralSchema<"alias", undefined>;
162
+ /** {@link AccountKeyMatcherSchema} as granted: `type` present, no `editable`. */
163
+ export declare const GrantedAccountKeySchema: v.StrictObjectSchema<{
164
+ readonly type: v.LiteralSchema<"account_key", undefined>;
165
165
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
166
166
  }, undefined>;
167
167
  /** {@link AccountInternalMatcherSchema} as granted. */
@@ -193,7 +193,7 @@ export declare const GrantedAccountExternalSchema: v.StrictObjectSchema<{
193
193
  readonly holder_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
194
194
  readonly holder_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
195
195
  }, undefined>;
196
- export type GrantedAccountAlias = v.InferOutput<typeof GrantedAccountAliasSchema>;
196
+ export type GrantedAccountKey = v.InferOutput<typeof GrantedAccountKeySchema>;
197
197
  export type GrantedAccountInternal = v.InferOutput<typeof GrantedAccountInternalSchema>;
198
198
  export type GrantedAnyOwn = v.InferOutput<typeof GrantedAnyOwnSchema>;
199
199
  export type GrantedAnyLocal = v.InferOutput<typeof GrantedAnyLocalSchema>;
@@ -201,7 +201,7 @@ export type GrantedAnyAll = v.InferOutput<typeof GrantedAnyAllSchema>;
201
201
  export type GrantedAccountExternal = v.InferOutput<typeof GrantedAccountExternalSchema>;
202
202
  /** {@link OwnAccountMatcherSchema} as granted. */
203
203
  export declare const GrantedOwnAccountMatcherSchema: v.UnionSchema<[v.StrictObjectSchema<{
204
- readonly type: v.LiteralSchema<"alias", undefined>;
204
+ readonly type: v.LiteralSchema<"account_key", undefined>;
205
205
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
206
206
  }, undefined>, v.StrictObjectSchema<{
207
207
  readonly type: v.LiteralSchema<"account", undefined>;
@@ -213,7 +213,7 @@ export declare const GrantedOwnAccountMatcherSchema: v.UnionSchema<[v.StrictObje
213
213
  export type GrantedOwnAccountMatcher = v.InferOutput<typeof GrantedOwnAccountMatcherSchema>;
214
214
  /** {@link DestinationAccountMatcherSchema} as granted. */
215
215
  export declare const GrantedDestinationAccountMatcherSchema: v.UnionSchema<[v.StrictObjectSchema<{
216
- readonly type: v.LiteralSchema<"alias", undefined>;
216
+ readonly type: v.LiteralSchema<"account_key", undefined>;
217
217
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
218
218
  }, undefined>, v.StrictObjectSchema<{
219
219
  readonly type: v.LiteralSchema<"account", undefined>;
@@ -250,7 +250,7 @@ export declare function accountMatcherList<Schema extends v.GenericSchema<Destin
250
250
  /**
251
251
  * Whether the `selection` of a list's matchers is coherent: it only sits on `editable` matchers, and
252
252
  * every editable matcher of the list asks for the same one. Lists that are never picked from (the
253
- * aliases of accounts to open, a Transfer's destinations) must carry none: {@link accountSelectionIsAbsent}.
253
+ * accountKeys of accounts to open, a Transfer's destinations) must carry none: {@link accountSelectionIsAbsent}.
254
254
  *
255
255
  * @example
256
256
  * accountSelectionIsCoherent([{ type: "any", limit: "own", editable: true, selection: "single" }]); // true
@@ -481,7 +481,7 @@ export declare const GRANTED_DESTINATION_ACCOUNT_MATCHER_JSON_SCHEMA: {
481
481
  };
482
482
  /**
483
483
  * JSON Schema mirror of {@link accountMatcherList}. `uniqueItems` compares whole objects, so it is
484
- * looser than the valibot check, which ignores `editable` and an omitted alias `type`; the gate's
484
+ * looser than the valibot check, which ignores `editable` and an omitted accountKey `type`; the gate's
485
485
  * own comparison closes the gap.
486
486
  */
487
487
  export declare function accountMatcherListJsonSchema(items: object): {
@@ -492,65 +492,65 @@ export declare function accountMatcherListJsonSchema(items: object): {
492
492
  items: object;
493
493
  };
494
494
  /**
495
- * Decides whether `alias` belongs to the set described by `pattern`.
495
+ * Decides whether `accountKey` belongs to the set described by `pattern`.
496
496
  *
497
- * The grammar of {@link ACCOUNT_ALIAS_PATTERN_SYNTAX} leaves only two cases: a literal matches by
497
+ * The grammar of {@link ACCOUNT_KEY_PATTERN_SYNTAX} leaves only two cases: a literal matches by
498
498
  * equality, and a trailing `*` matches by prefix. `*` alone has the empty prefix and therefore
499
- * matches every alias — but only an alias: an account that carries none is matched by nothing.
500
- * A malformed pattern can only match fewer aliases, never more: `caja*chica` has no trailing `*`,
499
+ * matches every accountKey — but only an accountKey: an account that carries none is matched by nothing.
500
+ * A malformed pattern can only match fewer accountKeys, never more: `caja*chica` has no trailing `*`,
501
501
  * so it is compared as a literal.
502
502
  *
503
503
  * @example
504
- * accountAliasPatternMatches("caja-*", "caja-chica"); // true
505
- * accountAliasPatternMatches("caja-chica", "caja-chica-1"); // false
504
+ * accountKeyPatternMatches("caja-*", "caja-chica"); // true
505
+ * accountKeyPatternMatches("caja-chica", "caja-chica-1"); // false
506
506
  */
507
- export declare function accountAliasPatternMatches(pattern: string, alias: string): boolean;
507
+ export declare function accountKeyPatternMatches(pattern: string, accountKey: string): boolean;
508
508
  /**
509
- * Decides whether every alias matched by `inner` is also matched by `outer`, for every possible
510
- * set of aliases rather than for the ones that happen to exist right now.
509
+ * Decides whether every accountKey matched by `inner` is also matched by `outer`, for every possible
510
+ * set of accountKeys rather than for the ones that happen to exist right now.
511
511
  *
512
- * A literal `outer` denotes a single alias, so it can only contain itself — in particular
512
+ * A literal `outer` denotes a single accountKey, so it can only contain itself — in particular
513
513
  * `caja-chica` does not contain `caja-chica*`, whose language is infinite. A glob `outer` contains
514
514
  * `inner` exactly when `inner`'s literal prefix starts with `outer`'s.
515
515
  *
516
516
  * @example
517
- * accountAliasPatternContains("caja-*", "caja-chica-*"); // true
518
- * accountAliasPatternContains("caja-chica", "caja-chica*"); // false
517
+ * accountKeyPatternContains("caja-*", "caja-chica-*"); // true
518
+ * accountKeyPatternContains("caja-chica", "caja-chica*"); // false
519
519
  */
520
- export declare function accountAliasPatternContains(outer: string, inner: string): boolean;
520
+ export declare function accountKeyPatternContains(outer: string, inner: string): boolean;
521
521
  /**
522
522
  * The facts containment cannot derive from the matchers themselves, and that only the database
523
523
  * holds. Everything it leaves out makes containment fail closed rather than guess.
524
524
  */
525
525
  export type AccountMatcherFacts = {
526
526
  /**
527
- * The Subject's own accounts, keyed by account id, each with its Account Alias (`null` for an
527
+ * The Subject's own accounts, keyed by account id, each with its Account Key (`null` for an
528
528
  * account that carries none). An account absent from this record is not known to be the
529
529
  * Subject's.
530
530
  */
531
531
  readonly ownAccounts?: Readonly<Record<string, string | null>>;
532
532
  };
533
533
  /** The six kinds of matcher, with the three `any` limits told apart. */
534
- export type AccountMatcherKind = "all" | "local" | "own" | "alias" | "account" | "external";
535
- /** Classifies a matcher; an alias matcher may omit its `type`. */
534
+ export type AccountMatcherKind = "all" | "local" | "own" | "account_key" | "account" | "external";
535
+ /** Classifies a matcher; an accountKey matcher may omit its `type`. */
536
536
  export declare function accountMatcherKind(matcher: DestinationAccountMatcher): AccountMatcherKind;
537
537
  /**
538
538
  * Decides whether every account admitted by `inner` is also admitted by `outer`. The Grant's (or the
539
539
  * Grant Request's) matcher is `outer`; the narrower Grant, or the account an operation names, is
540
- * `inner`. Containment must keep holding as accounts and aliases change.
540
+ * `inner`. Containment must keep holding as accounts and accountKeys change.
541
541
  *
542
- * The order is `any(all) ⊇ any(local) ⊇ any(own) ⊇ alias ⊇ account`, and `external` only under
542
+ * The order is `any(all) ⊇ any(local) ⊇ any(own) ⊇ accountKey ⊇ account`, and `external` only under
543
543
  * `all`:
544
544
  *
545
545
  * - `any(all)` contains every matcher; only `any(all)` contains `any(all)`.
546
546
  * - `external` is contained by `any(all)`, and by an `external` whose every fixed field `inner`
547
547
  * fixes to the same value. Nothing else contains it, and it contains nothing but such an
548
548
  * `external`.
549
- * - `any(local)` contains every Andco matcher: `any(local)`, `any(own)`, `alias` and `account`.
550
- * - `any(own)` contains `any(own)` and `alias` (an alias names an account of the Subject by
549
+ * - `any(local)` contains every Andco matcher: `any(local)`, `any(own)`, `accountKey` and `account`.
550
+ * - `any(own)` contains `any(own)` and `accountKey` (an accountKey names an account of the Subject by
551
551
  * construction), and an `account` only when `facts.ownAccounts` says it is the Subject's.
552
- * - `alias:q` contains `alias:p` per {@link accountAliasPatternContains}, and an `account` only when
553
- * `facts.ownAccounts` gives it an alias that `q` matches.
552
+ * - `accountKey:q` contains `accountKey:p` per {@link accountKeyPatternContains}, and an `account` only when
553
+ * `facts.ownAccounts` gives it an accountKey that `q` matches.
554
554
  * - `account:id` contains only `account:id`. It never contains a pattern, not even one matching
555
555
  * exactly one account today, because it could match two tomorrow.
556
556
  *
@@ -558,10 +558,10 @@ export declare function accountMatcherKind(matcher: DestinationAccountMatcher):
558
558
  * `scripts/account-matcher-containment-cases.mjs` pin both to the same table.
559
559
  *
560
560
  * @example
561
- * accountMatcherContains({ type: "any", limit: "local" }, { type: "alias", pattern: "caja-*" }); // true
561
+ * accountMatcherContains({ type: "any", limit: "local" }, { type: "account_key", pattern: "caja-*" }); // true
562
562
  * accountMatcherContains({ type: "any", limit: "local" }, { type: "external" }); // false
563
563
  * accountMatcherContains(
564
- * { type: "alias", pattern: "caja-*" },
564
+ * { type: "account_key", pattern: "caja-*" },
565
565
  * { type: "account", id: "00000000-0000-4000-8000-000000000001" },
566
566
  * { ownAccounts: { "00000000-0000-4000-8000-000000000001": "caja-chica" } },
567
567
  * ); // true
@@ -573,7 +573,7 @@ export declare function accountMatcherContains(outer: DestinationAccountMatcher,
573
573
  *
574
574
  * An empty `inner` is contained in anything, since it admits no account at all, and a non-empty
575
575
  * `inner` is never contained in an empty `outer`. Containment is not distributed across `outer`:
576
- * `[alias:a-*, alias:b-*]` does not contain `alias:*`, and refusing it is the sound answer.
576
+ * `[accountKey:a-*, accountKey:b-*]` does not contain `accountKey:*`, and refusing it is the sound answer.
577
577
  */
578
578
  export declare function accountMatchersContain(outer: readonly DestinationAccountMatcher[], inner: readonly DestinationAccountMatcher[], facts?: AccountMatcherFacts): boolean;
579
579
  //# sourceMappingURL=account-matchers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account-matchers.d.ts","sourceRoot":"","sources":["../../src/rar/account-matchers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B;;;GAGG;AACH,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAE9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,4BAA4B,wCAAwC,CAAC;AAElF,qDAAqD;AACrD,eAAO,MAAM,kBAAkB,+FAC+D,CAAC;AAE/F,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,0FAAgF,CAAC;AAChH,oGAAoG;AACpG,eAAO,MAAM,yBAAyB,0FAGrC,CAAC;AAEF,yCAAyC;AACzC,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAKhD,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,gFAAiF,CAAC;AAWtH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,iCAAkC,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAKnE;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB;;;;;aAKpC,CAAC;AACH,MAAM,MAAM,YAAY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