@andco/protocol 0.0.11 → 0.0.13

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 (120) hide show
  1. package/dist/api-errors.d.ts +5 -128
  2. package/dist/api-errors.d.ts.map +1 -1
  3. package/dist/api-errors.js +5 -131
  4. package/dist/authorization-preparation.d.ts +3 -3
  5. package/dist/authorization-preparation.d.ts.map +1 -1
  6. package/dist/authorization-preparation.js +4 -0
  7. package/dist/authorization.js +2 -2
  8. package/dist/errors.d.ts +111 -16
  9. package/dist/errors.d.ts.map +1 -1
  10. package/dist/errors.js +124 -12
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -0
  14. package/dist/intent-input.d.ts +1791 -725
  15. package/dist/intent-input.d.ts.map +1 -1
  16. package/dist/intent-input.js +325 -157
  17. package/dist/issues.d.ts +62 -0
  18. package/dist/issues.d.ts.map +1 -0
  19. package/dist/issues.js +61 -0
  20. package/dist/messages/index.d.ts +2 -2
  21. package/dist/messages/index.d.ts.map +1 -1
  22. package/dist/messages/index.js +10 -3
  23. package/dist/messages/set-preferences.d.ts +13 -1
  24. package/dist/messages/set-preferences.d.ts.map +1 -1
  25. package/dist/messages/set-preferences.js +31 -9
  26. package/dist/miniapp-manifest.d.ts +2 -2
  27. package/dist/miniapp-manifest.d.ts.map +1 -1
  28. package/dist/miniapp-manifest.js +1 -1
  29. package/dist/native-intent.d.ts +48 -28
  30. package/dist/native-intent.d.ts.map +1 -1
  31. package/dist/native-intent.js +76 -24
  32. package/dist/pagination.d.ts +37 -31
  33. package/dist/pagination.d.ts.map +1 -1
  34. package/dist/pagination.js +72 -24
  35. package/dist/rar/account-matchers.d.ts +47 -240
  36. package/dist/rar/account-matchers.d.ts.map +1 -1
  37. package/dist/rar/account-matchers.js +52 -131
  38. package/dist/rar/bank.d.ts +280 -392
  39. package/dist/rar/bank.d.ts.map +1 -1
  40. package/dist/rar/bank.js +68 -137
  41. package/dist/rar/catalog.d.ts +305 -288
  42. package/dist/rar/catalog.d.ts.map +1 -1
  43. package/dist/rar/catalog.js +69 -29
  44. package/dist/rar/detail.d.ts +15 -32
  45. package/dist/rar/detail.d.ts.map +1 -1
  46. package/dist/rar/detail.js +14 -34
  47. package/dist/rar/index.d.ts +2 -1
  48. package/dist/rar/index.d.ts.map +1 -1
  49. package/dist/rar/index.js +2 -1
  50. package/dist/rar/json-schemas.generated.d.ts +4 -0
  51. package/dist/rar/json-schemas.generated.d.ts.map +1 -0
  52. package/dist/rar/json-schemas.generated.js +3570 -0
  53. package/dist/rar/money.d.ts +5 -5
  54. package/dist/rar/money.d.ts.map +1 -1
  55. package/dist/rar/money.js +5 -5
  56. package/dist/rar/project-users.d.ts +40 -14
  57. package/dist/rar/project-users.d.ts.map +1 -1
  58. package/dist/rar/project-users.js +20 -23
  59. package/dist/rar/subject-data.d.ts +96 -48
  60. package/dist/rar/subject-data.d.ts.map +1 -1
  61. package/dist/rar/subject-data.js +61 -34
  62. package/dist/rar/subject.d.ts +18 -85
  63. package/dist/rar/subject.d.ts.map +1 -1
  64. package/dist/rar/subject.js +23 -51
  65. package/dist/rest/accounts.d.ts +347 -0
  66. package/dist/rest/accounts.d.ts.map +1 -0
  67. package/dist/rest/accounts.js +108 -0
  68. package/dist/rest/addresses.d.ts +581 -0
  69. package/dist/rest/addresses.d.ts.map +1 -0
  70. package/dist/rest/addresses.js +190 -0
  71. package/dist/rest/api-error.d.ts +104 -0
  72. package/dist/rest/api-error.d.ts.map +1 -0
  73. package/dist/rest/api-error.js +103 -0
  74. package/dist/rest/authorization.d.ts +123 -0
  75. package/dist/rest/authorization.d.ts.map +1 -0
  76. package/dist/rest/authorization.js +62 -0
  77. package/dist/rest/catalog.d.ts +199 -0
  78. package/dist/rest/catalog.d.ts.map +1 -0
  79. package/dist/rest/catalog.js +63 -0
  80. package/dist/rest/common.d.ts +637 -0
  81. package/dist/rest/common.d.ts.map +1 -0
  82. package/dist/rest/common.js +172 -0
  83. package/dist/rest/contract.d.ts +3480 -0
  84. package/dist/rest/contract.d.ts.map +1 -0
  85. package/dist/rest/contract.js +120 -0
  86. package/dist/rest/events.d.ts +145 -0
  87. package/dist/rest/events.d.ts.map +1 -0
  88. package/dist/rest/events.js +42 -0
  89. package/dist/rest/http.d.ts +49 -0
  90. package/dist/rest/http.d.ts.map +1 -0
  91. package/dist/rest/http.js +25 -0
  92. package/dist/rest/identity.d.ts +627 -0
  93. package/dist/rest/identity.d.ts.map +1 -0
  94. package/dist/rest/identity.js +128 -0
  95. package/dist/rest/index.d.ts +14 -0
  96. package/dist/rest/index.d.ts.map +1 -0
  97. package/dist/rest/index.js +13 -0
  98. package/dist/rest/intents.d.ts +4556 -0
  99. package/dist/rest/intents.d.ts.map +1 -0
  100. package/dist/rest/intents.js +551 -0
  101. package/dist/rest/signatures.d.ts +110 -0
  102. package/dist/rest/signatures.d.ts.map +1 -0
  103. package/dist/rest/signatures.js +113 -0
  104. package/dist/rest/subjects.d.ts +14 -0
  105. package/dist/rest/subjects.d.ts.map +1 -0
  106. package/dist/rest/subjects.js +22 -0
  107. package/dist/service-grants.d.ts +2 -2
  108. package/dist/service-grants.d.ts.map +1 -1
  109. package/dist/service-grants.js +1 -1
  110. package/dist/transport/generated/oauth-api.d.ts +5547 -1448
  111. package/dist/transport/generated/oauth-api.d.ts.map +1 -1
  112. package/dist/transport/intents.d.ts +9 -134
  113. package/dist/transport/intents.d.ts.map +1 -1
  114. package/dist/transport/intents.js +21 -405
  115. package/dist/transport/rest.d.ts +15 -5
  116. package/dist/transport/rest.d.ts.map +1 -1
  117. package/dist/userinfo.d.ts +22 -9
  118. package/dist/userinfo.d.ts.map +1 -1
  119. package/dist/userinfo.js +17 -12
  120. package/package.json +13 -2
@@ -1,6 +1,6 @@
1
1
  import * as v from "valibot";
2
- import { ANDCO_API_ERROR_CODES } from "../api-errors.js";
3
2
  import { ErrorExtendable } from "../errors.js";
3
+ import { type Issue } from "../issues.js";
4
4
  /** Every authorization detail type Andco's Resource Server implements. */
5
5
  export declare const ANDCO_RAR_TYPES: readonly ["bank_account", "bank_transaction", "bank_transfer", "bank_deposit", "identity", "address", "organization", "profile", "project_users"];
6
6
  export type AndcoRarType = (typeof ANDCO_RAR_TYPES)[number];
@@ -10,48 +10,62 @@ export type AndcoRarType = (typeof ANDCO_RAR_TYPES)[number];
10
10
  */
11
11
  export declare const ANDCO_RESERVED_RAR_TYPES: readonly ["bank_beneficiaries", "identity_documents"];
12
12
  export type AndcoReservedRarType = (typeof ANDCO_RESERVED_RAR_TYPES)[number];
13
+ /** A draft-07 JSON Schema document, as generated from a Valibot schema. */
14
+ export type AndcoRarJsonSchema = Readonly<Record<string, unknown>>;
13
15
  /**
14
- * One entry of {@link ANDCO_RAR_CATALOG}: the actions a type grants across all its forms, its two
15
- * valibot schemas and their JSON Schema mirrors.
16
+ * The type of `ANDCO_RAR_JSON_SCHEMAS`: the JSON Schema generated from each type's two Valibot
17
+ * schemas in {@link ANDCO_RAR_CATALOG}.
18
+ */
19
+ export type AndcoRarJsonSchemas = {
20
+ readonly [Type in AndcoRarType]: {
21
+ readonly grantRequest: AndcoRarJsonSchema;
22
+ readonly grant: AndcoRarJsonSchema;
23
+ };
24
+ };
25
+ /**
26
+ * One entry of {@link ANDCO_RAR_CATALOG}: the actions a type grants across all its forms and its two
27
+ * valibot schemas.
16
28
  */
17
29
  export type AndcoRarCatalogEntry = {
18
30
  readonly actions: readonly string[];
19
31
  readonly grantRequest: v.GenericSchema;
20
32
  readonly grant: v.GenericSchema;
21
- readonly grantRequestJsonSchema: Readonly<Record<string, unknown>>;
22
- readonly grantJsonSchema: Readonly<Record<string, unknown>>;
23
33
  };
24
34
  /**
25
- * The whole Andco authorization detail catalog, keyed by type. The gate's seeds store
26
- * `grantRequestJsonSchema` as each type's request schema and `actions` as its registered actions;
27
- * a guard test compares them against this object.
35
+ * The whole Andco authorization detail catalog, keyed by type. The gate's seeds store `actions` as
36
+ * each type's registered actions and, as its request schema, the JSON Schema `ANDCO_RAR_JSON_SCHEMAS`
37
+ * holds, generated from `grantRequest`; a guard test compares them. The schemas describe shape only:
38
+ * the rules JSON Schema cannot say are {@link andcoRarIssues}, which the parse functions apply and
39
+ * the gate's SQL repeats.
28
40
  *
29
41
  * @example
30
- * const { grantRequestJsonSchema, actions } = ANDCO_RAR_CATALOG.bank_transfer;
42
+ * const { grantRequest, actions } = ANDCO_RAR_CATALOG.bank_transfer;
31
43
  */
32
44
  export declare const ANDCO_RAR_CATALOG: {
33
45
  readonly bank_account: {
34
46
  readonly actions: readonly ["read", "read_balance", "create", "close", "approve", "reject"];
35
47
  readonly grantRequest: v.UnionSchema<[v.StrictObjectSchema<{
36
48
  readonly type: v.LiteralSchema<"bank_account", undefined>;
37
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "read_balance"], undefined>, undefined>, v.MinLengthAction<("read" | "read_balance")[], 1, undefined>, v.CheckAction<("read" | "read_balance")[], "duplicate_action">]>;
38
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
49
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "read_balance"], undefined>, undefined>, v.MinLengthAction<("read" | "read_balance")[], 1, undefined>, v.MetadataAction<("read" | "read_balance")[], {
50
+ readonly uniqueItems: true;
51
+ }>]>;
52
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
39
53
  readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
40
54
  readonly type: v.LiteralSchema<"profile", undefined>;
41
55
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
42
56
  }, undefined>, v.StrictObjectSchema<{
43
57
  readonly type: v.LiteralSchema<"organization", undefined>;
44
- readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
58
+ readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
45
59
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
46
60
  }, undefined>], undefined>, undefined>;
47
- readonly accounts: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
61
+ readonly accounts: v.NullishSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
48
62
  readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
49
63
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
50
64
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
51
65
  readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
52
66
  }, undefined>, v.StrictObjectSchema<{
53
67
  readonly type: v.LiteralSchema<"account", undefined>;
54
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
68
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
55
69
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
56
70
  }, undefined>, v.StrictObjectSchema<{
57
71
  readonly type: v.LiteralSchema<"any", undefined>;
@@ -86,21 +100,7 @@ export declare const ANDCO_RAR_CATALOG: {
86
100
  limit: "own";
87
101
  editable?: boolean | null | undefined;
88
102
  selection?: "single" | "multiple" | null | undefined;
89
- })[], 100, undefined>, v.CheckAction<({
90
- type?: "account_key" | null | undefined;
91
- pattern: string;
92
- editable?: boolean | null | undefined;
93
- selection?: "single" | "multiple" | null | undefined;
94
- } | {
95
- type: "account";
96
- id: string;
97
- editable?: boolean | null | undefined;
98
- } | {
99
- type: "any";
100
- limit: "own";
101
- editable?: boolean | null | undefined;
102
- selection?: "single" | "multiple" | null | undefined;
103
- })[], "duplicate_account_matcher">]>, v.CheckAction<({
103
+ })[], 100, undefined>, v.MetadataAction<({
104
104
  type?: "account_key" | null | undefined;
105
105
  pattern: string;
106
106
  editable?: boolean | null | undefined;
@@ -114,75 +114,76 @@ export declare const ANDCO_RAR_CATALOG: {
114
114
  limit: "own";
115
115
  editable?: boolean | null | undefined;
116
116
  selection?: "single" | "multiple" | null | undefined;
117
- })[], "account_selection_incoherent">]>, undefined>;
117
+ })[], {
118
+ readonly uniqueItems: true;
119
+ }>]>, undefined>;
118
120
  }, undefined>, v.StrictObjectSchema<{
119
121
  readonly type: v.LiteralSchema<"bank_account", undefined>;
120
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "close"], undefined>, undefined>, v.MinLengthAction<("create" | "close")[], 1, undefined>, v.CheckAction<("create" | "close")[], "duplicate_action">]>;
121
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
122
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "close"], undefined>, undefined>, v.MinLengthAction<("create" | "close")[], 1, undefined>, v.MetadataAction<("create" | "close")[], {
123
+ readonly uniqueItems: true;
124
+ }>]>;
125
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
122
126
  readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
123
127
  readonly type: v.LiteralSchema<"profile", undefined>;
124
128
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
125
129
  }, undefined>, v.StrictObjectSchema<{
126
130
  readonly type: v.LiteralSchema<"organization", undefined>;
127
- readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
131
+ readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
128
132
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
129
133
  }, undefined>], undefined>, undefined>;
130
- readonly accounts: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
134
+ readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
131
135
  readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
132
136
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
133
137
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
134
- readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
135
138
  }, undefined>, undefined>, v.MinLengthAction<{
136
139
  type?: "account_key" | null | undefined;
137
140
  pattern: string;
138
141
  editable?: boolean | null | undefined;
139
- selection?: "single" | "multiple" | null | undefined;
140
142
  }[], 1, undefined>, v.MaxLengthAction<{
141
143
  type?: "account_key" | null | undefined;
142
144
  pattern: string;
143
145
  editable?: boolean | null | undefined;
144
- selection?: "single" | "multiple" | null | undefined;
145
- }[], 100, undefined>, v.CheckAction<{
146
- type?: "account_key" | null | undefined;
147
- pattern: string;
148
- editable?: boolean | null | undefined;
149
- selection?: "single" | "multiple" | null | undefined;
150
- }[], "duplicate_account_matcher">]>, v.CheckAction<{
146
+ }[], 100, undefined>, v.MetadataAction<{
151
147
  type?: "account_key" | null | undefined;
152
148
  pattern: string;
153
149
  editable?: boolean | null | undefined;
154
- selection?: "single" | "multiple" | null | undefined;
155
- }[], "account_selection_not_pickable">]>;
150
+ }[], {
151
+ readonly uniqueItems: true;
152
+ }>]>;
156
153
  }, undefined>, v.StrictObjectSchema<{
157
154
  readonly type: v.LiteralSchema<"bank_account", undefined>;
158
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
159
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
155
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.MetadataAction<("approve" | "reject")[], {
156
+ readonly uniqueItems: true;
157
+ }>]>;
158
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
160
159
  readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
161
160
  readonly type: v.LiteralSchema<"profile", undefined>;
162
161
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
163
162
  }, undefined>, v.StrictObjectSchema<{
164
163
  readonly type: v.LiteralSchema<"organization", undefined>;
165
- readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
164
+ readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
166
165
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
167
166
  }, undefined>], undefined>, undefined>;
168
167
  }, undefined>], undefined>;
169
168
  readonly grant: v.UnionSchema<[v.StrictObjectSchema<{
170
169
  readonly type: v.LiteralSchema<"bank_account", undefined>;
171
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "read_balance"], undefined>, undefined>, v.MinLengthAction<("read" | "read_balance")[], 1, undefined>, v.CheckAction<("read" | "read_balance")[], "duplicate_action">]>;
172
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
170
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "read_balance"], undefined>, undefined>, v.MinLengthAction<("read" | "read_balance")[], 1, undefined>, v.MetadataAction<("read" | "read_balance")[], {
171
+ readonly uniqueItems: true;
172
+ }>]>;
173
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
173
174
  readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
174
175
  readonly type: v.LiteralSchema<"profile", undefined>;
175
176
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
176
177
  }, undefined>, v.StrictObjectSchema<{
177
178
  readonly type: v.LiteralSchema<"organization", undefined>;
178
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
179
+ readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
179
180
  }, undefined>], undefined>;
180
181
  readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
181
182
  readonly type: v.LiteralSchema<"account_key", undefined>;
182
183
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
183
184
  }, undefined>, v.StrictObjectSchema<{
184
185
  readonly type: v.LiteralSchema<"account", undefined>;
185
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
186
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
186
187
  }, undefined>, v.StrictObjectSchema<{
187
188
  readonly type: v.LiteralSchema<"any", undefined>;
188
189
  readonly limit: v.LiteralSchema<"own", undefined>;
@@ -204,7 +205,7 @@ export declare const ANDCO_RAR_CATALOG: {
204
205
  } | {
205
206
  type: "any";
206
207
  limit: "own";
207
- })[], 100, undefined>, v.CheckAction<({
208
+ })[], 100, undefined>, v.MetadataAction<({
208
209
  type: "account_key";
209
210
  pattern: string;
210
211
  } | {
@@ -213,17 +214,21 @@ export declare const ANDCO_RAR_CATALOG: {
213
214
  } | {
214
215
  type: "any";
215
216
  limit: "own";
216
- })[], "duplicate_account_matcher">]>;
217
+ })[], {
218
+ readonly uniqueItems: true;
219
+ }>]>;
217
220
  }, undefined>, v.StrictObjectSchema<{
218
221
  readonly type: v.LiteralSchema<"bank_account", undefined>;
219
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "close"], undefined>, undefined>, v.MinLengthAction<("create" | "close")[], 1, undefined>, v.CheckAction<("create" | "close")[], "duplicate_action">]>;
220
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
222
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "close"], undefined>, undefined>, v.MinLengthAction<("create" | "close")[], 1, undefined>, v.MetadataAction<("create" | "close")[], {
223
+ readonly uniqueItems: true;
224
+ }>]>;
225
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
221
226
  readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
222
227
  readonly type: v.LiteralSchema<"profile", undefined>;
223
228
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
224
229
  }, undefined>, v.StrictObjectSchema<{
225
230
  readonly type: v.LiteralSchema<"organization", undefined>;
226
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
231
+ readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
227
232
  }, undefined>], undefined>;
228
233
  readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
229
234
  readonly type: v.LiteralSchema<"account_key", undefined>;
@@ -234,47 +239,51 @@ export declare const ANDCO_RAR_CATALOG: {
234
239
  }[], 1, undefined>, v.MaxLengthAction<{
235
240
  type: "account_key";
236
241
  pattern: string;
237
- }[], 100, undefined>, v.CheckAction<{
242
+ }[], 100, undefined>, v.MetadataAction<{
238
243
  type: "account_key";
239
244
  pattern: string;
240
- }[], "duplicate_account_matcher">]>;
245
+ }[], {
246
+ readonly uniqueItems: true;
247
+ }>]>;
241
248
  }, undefined>, v.StrictObjectSchema<{
242
249
  readonly type: v.LiteralSchema<"bank_account", undefined>;
243
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
244
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
250
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.MetadataAction<("approve" | "reject")[], {
251
+ readonly uniqueItems: true;
252
+ }>]>;
253
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
245
254
  readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
246
255
  readonly type: v.LiteralSchema<"profile", undefined>;
247
256
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
248
257
  }, undefined>, v.StrictObjectSchema<{
249
258
  readonly type: v.LiteralSchema<"organization", undefined>;
250
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
259
+ readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
251
260
  }, undefined>], undefined>;
252
261
  }, undefined>], undefined>;
253
- readonly grantRequestJsonSchema: Record<string, unknown>;
254
- readonly grantJsonSchema: Record<string, unknown>;
255
262
  };
256
263
  readonly bank_transaction: {
257
264
  readonly actions: readonly ["read"];
258
265
  readonly grantRequest: v.StrictObjectSchema<{
259
266
  readonly type: v.LiteralSchema<"bank_transaction", undefined>;
260
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.CheckAction<"read"[], "duplicate_action">]>;
261
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
267
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.MetadataAction<"read"[], {
268
+ readonly uniqueItems: true;
269
+ }>]>;
270
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
262
271
  readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
263
272
  readonly type: v.LiteralSchema<"profile", undefined>;
264
273
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
265
274
  }, undefined>, v.StrictObjectSchema<{
266
275
  readonly type: v.LiteralSchema<"organization", undefined>;
267
- readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
276
+ readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
268
277
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
269
278
  }, undefined>], undefined>, undefined>;
270
- readonly accounts: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
279
+ readonly accounts: v.NullishSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
271
280
  readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
272
281
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
273
282
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
274
283
  readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
275
284
  }, undefined>, v.StrictObjectSchema<{
276
285
  readonly type: v.LiteralSchema<"account", undefined>;
277
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
286
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
278
287
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
279
288
  }, undefined>, v.StrictObjectSchema<{
280
289
  readonly type: v.LiteralSchema<"any", undefined>;
@@ -309,21 +318,7 @@ export declare const ANDCO_RAR_CATALOG: {
309
318
  limit: "own";
310
319
  editable?: boolean | null | undefined;
311
320
  selection?: "single" | "multiple" | null | undefined;
312
- })[], 100, undefined>, v.CheckAction<({
313
- type?: "account_key" | null | undefined;
314
- pattern: string;
315
- editable?: boolean | null | undefined;
316
- selection?: "single" | "multiple" | null | undefined;
317
- } | {
318
- type: "account";
319
- id: string;
320
- editable?: boolean | null | undefined;
321
- } | {
322
- type: "any";
323
- limit: "own";
324
- editable?: boolean | null | undefined;
325
- selection?: "single" | "multiple" | null | undefined;
326
- })[], "duplicate_account_matcher">]>, v.CheckAction<({
321
+ })[], 100, undefined>, v.MetadataAction<({
327
322
  type?: "account_key" | null | undefined;
328
323
  pattern: string;
329
324
  editable?: boolean | null | undefined;
@@ -337,25 +332,29 @@ export declare const ANDCO_RAR_CATALOG: {
337
332
  limit: "own";
338
333
  editable?: boolean | null | undefined;
339
334
  selection?: "single" | "multiple" | null | undefined;
340
- })[], "account_selection_incoherent">]>, undefined>;
335
+ })[], {
336
+ readonly uniqueItems: true;
337
+ }>]>, undefined>;
341
338
  }, undefined>;
342
339
  readonly grant: v.StrictObjectSchema<{
343
340
  readonly type: v.LiteralSchema<"bank_transaction", undefined>;
344
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.CheckAction<"read"[], "duplicate_action">]>;
345
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
341
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.MetadataAction<"read"[], {
342
+ readonly uniqueItems: true;
343
+ }>]>;
344
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
346
345
  readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
347
346
  readonly type: v.LiteralSchema<"profile", undefined>;
348
347
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
349
348
  }, undefined>, v.StrictObjectSchema<{
350
349
  readonly type: v.LiteralSchema<"organization", undefined>;
351
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
350
+ readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
352
351
  }, undefined>], undefined>;
353
352
  readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
354
353
  readonly type: v.LiteralSchema<"account_key", undefined>;
355
354
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
356
355
  }, undefined>, v.StrictObjectSchema<{
357
356
  readonly type: v.LiteralSchema<"account", undefined>;
358
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
357
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
359
358
  }, undefined>, v.StrictObjectSchema<{
360
359
  readonly type: v.LiteralSchema<"any", undefined>;
361
360
  readonly limit: v.LiteralSchema<"own", undefined>;
@@ -377,7 +376,7 @@ export declare const ANDCO_RAR_CATALOG: {
377
376
  } | {
378
377
  type: "any";
379
378
  limit: "own";
380
- })[], 100, undefined>, v.CheckAction<({
379
+ })[], 100, undefined>, v.MetadataAction<({
381
380
  type: "account_key";
382
381
  pattern: string;
383
382
  } | {
@@ -386,33 +385,35 @@ export declare const ANDCO_RAR_CATALOG: {
386
385
  } | {
387
386
  type: "any";
388
387
  limit: "own";
389
- })[], "duplicate_account_matcher">]>;
388
+ })[], {
389
+ readonly uniqueItems: true;
390
+ }>]>;
390
391
  }, undefined>;
391
- readonly grantRequestJsonSchema: Record<string, unknown>;
392
- readonly grantJsonSchema: Record<string, unknown>;
393
392
  };
394
393
  readonly bank_transfer: {
395
394
  readonly actions: readonly ["create", "approve", "reject"];
396
395
  readonly grantRequest: v.UnionSchema<[v.StrictObjectSchema<{
397
396
  readonly type: v.LiteralSchema<"bank_transfer", undefined>;
398
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create"], undefined>, undefined>, v.MinLengthAction<"create"[], 1, undefined>, v.CheckAction<"create"[], "duplicate_action">]>;
399
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
397
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create"], undefined>, undefined>, v.MinLengthAction<"create"[], 1, undefined>, v.MetadataAction<"create"[], {
398
+ readonly uniqueItems: true;
399
+ }>]>;
400
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
400
401
  readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
401
402
  readonly type: v.LiteralSchema<"profile", undefined>;
402
403
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
403
404
  }, undefined>, v.StrictObjectSchema<{
404
405
  readonly type: v.LiteralSchema<"organization", undefined>;
405
- readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
406
+ readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
406
407
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
407
408
  }, undefined>], undefined>, undefined>;
408
- readonly sources: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
409
+ readonly sources: v.NullishSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
409
410
  readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
410
411
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
411
412
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
412
413
  readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
413
414
  }, undefined>, v.StrictObjectSchema<{
414
415
  readonly type: v.LiteralSchema<"account", undefined>;
415
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
416
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
416
417
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
417
418
  }, undefined>, v.StrictObjectSchema<{
418
419
  readonly type: v.LiteralSchema<"any", undefined>;
@@ -447,21 +448,7 @@ export declare const ANDCO_RAR_CATALOG: {
447
448
  limit: "own";
448
449
  editable?: boolean | null | undefined;
449
450
  selection?: "single" | "multiple" | null | undefined;
450
- })[], 100, undefined>, v.CheckAction<({
451
- type?: "account_key" | null | undefined;
452
- pattern: string;
453
- editable?: boolean | null | undefined;
454
- selection?: "single" | "multiple" | null | undefined;
455
- } | {
456
- type: "account";
457
- id: string;
458
- editable?: boolean | null | undefined;
459
- } | {
460
- type: "any";
461
- limit: "own";
462
- editable?: boolean | null | undefined;
463
- selection?: "single" | "multiple" | null | undefined;
464
- })[], "duplicate_account_matcher">]>, v.CheckAction<({
451
+ })[], 100, undefined>, v.MetadataAction<({
465
452
  type?: "account_key" | null | undefined;
466
453
  pattern: string;
467
454
  editable?: boolean | null | undefined;
@@ -475,15 +462,17 @@ export declare const ANDCO_RAR_CATALOG: {
475
462
  limit: "own";
476
463
  editable?: boolean | null | undefined;
477
464
  selection?: "single" | "multiple" | null | undefined;
478
- })[], "account_selection_incoherent">]>, undefined>;
479
- readonly destinations: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
465
+ })[], {
466
+ readonly uniqueItems: true;
467
+ }>]>, undefined>;
468
+ readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
480
469
  readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
481
470
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
482
471
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
483
472
  readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
484
473
  }, undefined>, v.StrictObjectSchema<{
485
474
  readonly type: v.LiteralSchema<"account", undefined>;
486
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
475
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
487
476
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
488
477
  }, undefined>, v.StrictObjectSchema<{
489
478
  readonly type: v.LiteralSchema<"any", undefined>;
@@ -563,36 +552,7 @@ export declare const ANDCO_RAR_CATALOG: {
563
552
  holder_id?: string | null | undefined;
564
553
  holder_name?: string | null | undefined;
565
554
  editable?: boolean | null | undefined;
566
- })[], 100, undefined>, v.CheckAction<({
567
- type?: "account_key" | null | undefined;
568
- pattern: string;
569
- editable?: boolean | null | undefined;
570
- selection?: "single" | "multiple" | null | undefined;
571
- } | {
572
- type: "account";
573
- id: string;
574
- editable?: boolean | null | undefined;
575
- } | {
576
- type: "any";
577
- limit: "own";
578
- editable?: boolean | null | undefined;
579
- selection?: "single" | "multiple" | null | undefined;
580
- } | {
581
- type: "any";
582
- limit: "local";
583
- editable?: boolean | null | undefined;
584
- } | {
585
- type: "any";
586
- limit: "all";
587
- } | {
588
- type: "external";
589
- bank_id?: string | null | undefined;
590
- account_type?: string | null | undefined;
591
- account_id?: string | null | undefined;
592
- holder_id?: string | null | undefined;
593
- holder_name?: string | null | undefined;
594
- editable?: boolean | null | undefined;
595
- })[], "duplicate_account_matcher">]>, v.CheckAction<({
555
+ })[], 100, undefined>, v.MetadataAction<({
596
556
  type?: "account_key" | null | undefined;
597
557
  pattern: string;
598
558
  editable?: boolean | null | undefined;
@@ -621,62 +581,60 @@ export declare const ANDCO_RAR_CATALOG: {
621
581
  holder_id?: string | null | undefined;
622
582
  holder_name?: string | null | undefined;
623
583
  editable?: boolean | null | undefined;
624
- })[], "account_selection_not_pickable">]>;
584
+ })[], {
585
+ readonly uniqueItems: true;
586
+ }>]>;
625
587
  readonly currency: v.PicklistSchema<readonly ["CLP"], undefined>;
626
- readonly transactions: v.NullishSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
627
- readonly value: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
628
- readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
629
- readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
588
+ readonly transactions: v.NullishSchema<v.UnionSchema<[v.StrictObjectSchema<{
589
+ readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
590
+ readonly minimum: v.OptionalSchema<v.NullSchema<undefined>, undefined>;
591
+ readonly maximum: v.OptionalSchema<v.NullSchema<undefined>, undefined>;
630
592
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
631
- }, undefined>, v.CheckAction<{
632
- value?: string | null | undefined;
633
- minimum?: string | null | undefined;
634
- maximum?: string | null | undefined;
635
- editable?: boolean | null | undefined;
636
- }, "value_excludes_minimum_and_maximum">, v.CheckAction<{
637
- value?: string | null | undefined;
638
- minimum?: string | null | undefined;
639
- maximum?: string | null | undefined;
640
- editable?: boolean | null | undefined;
641
- }, "minimum_above_maximum">]>, undefined>;
593
+ }, undefined>, v.StrictObjectSchema<{
594
+ readonly value: v.OptionalSchema<v.NullSchema<undefined>, undefined>;
595
+ readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
596
+ readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
597
+ readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
598
+ }, undefined>], undefined>, undefined>;
642
599
  readonly budgets: v.OptionalSchema<v.NullSchema<undefined>, undefined>;
643
600
  }, undefined>, v.StrictObjectSchema<{
644
601
  readonly type: v.LiteralSchema<"bank_transfer", undefined>;
645
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
646
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
602
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.MetadataAction<("approve" | "reject")[], {
603
+ readonly uniqueItems: true;
604
+ }>]>;
605
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
647
606
  readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
648
607
  readonly type: v.LiteralSchema<"profile", undefined>;
649
608
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
650
609
  }, undefined>, v.StrictObjectSchema<{
651
610
  readonly type: v.LiteralSchema<"organization", undefined>;
652
- readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
611
+ readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
653
612
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
654
613
  }, undefined>], undefined>, undefined>;
655
- readonly transactions: v.NullishSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
656
- readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
657
- readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
658
- }, undefined>, v.CheckAction<{
659
- minimum?: string | null | undefined;
660
- maximum?: string | null | undefined;
661
- }, "minimum_above_maximum">]>, undefined>;
614
+ readonly transactions: v.NullishSchema<v.StrictObjectSchema<{
615
+ readonly minimum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
616
+ readonly maximum: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
617
+ }, undefined>, undefined>;
662
618
  }, undefined>], undefined>;
663
619
  readonly grant: v.UnionSchema<[v.StrictObjectSchema<{
664
620
  readonly type: v.LiteralSchema<"bank_transfer", undefined>;
665
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create"], undefined>, undefined>, v.MinLengthAction<"create"[], 1, undefined>, v.CheckAction<"create"[], "duplicate_action">]>;
666
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
621
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create"], undefined>, undefined>, v.MinLengthAction<"create"[], 1, undefined>, v.MetadataAction<"create"[], {
622
+ readonly uniqueItems: true;
623
+ }>]>;
624
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
667
625
  readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
668
626
  readonly type: v.LiteralSchema<"profile", undefined>;
669
627
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
670
628
  }, undefined>, v.StrictObjectSchema<{
671
629
  readonly type: v.LiteralSchema<"organization", undefined>;
672
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
630
+ readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
673
631
  }, undefined>], undefined>;
674
632
  readonly sources: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
675
633
  readonly type: v.LiteralSchema<"account_key", undefined>;
676
634
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
677
635
  }, undefined>, v.StrictObjectSchema<{
678
636
  readonly type: v.LiteralSchema<"account", undefined>;
679
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
637
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
680
638
  }, undefined>, v.StrictObjectSchema<{
681
639
  readonly type: v.LiteralSchema<"any", undefined>;
682
640
  readonly limit: v.LiteralSchema<"own", undefined>;
@@ -698,7 +656,7 @@ export declare const ANDCO_RAR_CATALOG: {
698
656
  } | {
699
657
  type: "any";
700
658
  limit: "own";
701
- })[], 100, undefined>, v.CheckAction<({
659
+ })[], 100, undefined>, v.MetadataAction<({
702
660
  type: "account_key";
703
661
  pattern: string;
704
662
  } | {
@@ -707,13 +665,15 @@ export declare const ANDCO_RAR_CATALOG: {
707
665
  } | {
708
666
  type: "any";
709
667
  limit: "own";
710
- })[], "duplicate_account_matcher">]>;
668
+ })[], {
669
+ readonly uniqueItems: true;
670
+ }>]>;
711
671
  readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
712
672
  readonly type: v.LiteralSchema<"account_key", undefined>;
713
673
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
714
674
  }, undefined>, v.StrictObjectSchema<{
715
675
  readonly type: v.LiteralSchema<"account", undefined>;
716
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
676
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
717
677
  }, undefined>, v.StrictObjectSchema<{
718
678
  readonly type: v.LiteralSchema<"any", undefined>;
719
679
  readonly limit: v.LiteralSchema<"own", undefined>;
@@ -774,7 +734,7 @@ export declare const ANDCO_RAR_CATALOG: {
774
734
  account_id?: string | undefined;
775
735
  holder_id?: string | undefined;
776
736
  holder_name?: string | undefined;
777
- })[], 100, undefined>, v.CheckAction<({
737
+ })[], 100, undefined>, v.MetadataAction<({
778
738
  type: "any";
779
739
  limit: "all";
780
740
  } | {
@@ -796,65 +756,62 @@ export declare const ANDCO_RAR_CATALOG: {
796
756
  account_id?: string | undefined;
797
757
  holder_id?: string | undefined;
798
758
  holder_name?: string | undefined;
799
- })[], "duplicate_account_matcher">]>;
759
+ })[], {
760
+ readonly uniqueItems: true;
761
+ }>]>;
800
762
  readonly currency: v.PicklistSchema<readonly ["CLP"], undefined>;
801
- readonly transactions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
802
- readonly value: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
803
- readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
804
- readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
805
- }, undefined>, v.CheckAction<{
806
- value?: string | undefined;
807
- minimum?: string | undefined;
808
- maximum?: string | undefined;
809
- }, "value_excludes_minimum_and_maximum">, v.CheckAction<{
810
- value?: string | undefined;
811
- minimum?: string | undefined;
812
- maximum?: string | undefined;
813
- }, "minimum_above_maximum">]>, undefined>;
763
+ readonly transactions: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
764
+ readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
765
+ readonly minimum: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
766
+ readonly maximum: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
767
+ }, undefined>, v.StrictObjectSchema<{
768
+ readonly value: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
769
+ readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
770
+ readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
771
+ }, undefined>], undefined>, undefined>;
814
772
  }, undefined>, v.StrictObjectSchema<{
815
773
  readonly type: v.LiteralSchema<"bank_transfer", undefined>;
816
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.CheckAction<("approve" | "reject")[], "duplicate_action">]>;
817
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
774
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["approve", "reject"], undefined>, undefined>, v.MinLengthAction<("approve" | "reject")[], 1, undefined>, v.MetadataAction<("approve" | "reject")[], {
775
+ readonly uniqueItems: true;
776
+ }>]>;
777
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
818
778
  readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
819
779
  readonly type: v.LiteralSchema<"profile", undefined>;
820
780
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
821
781
  }, undefined>, v.StrictObjectSchema<{
822
782
  readonly type: v.LiteralSchema<"organization", undefined>;
823
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
783
+ readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
824
784
  }, undefined>], undefined>;
825
- readonly transactions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
826
- readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
827
- readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
828
- }, undefined>, v.CheckAction<{
829
- minimum?: string | undefined;
830
- maximum?: string | undefined;
831
- }, "minimum_above_maximum">]>, undefined>;
785
+ readonly transactions: v.OptionalSchema<v.StrictObjectSchema<{
786
+ readonly minimum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
787
+ readonly maximum: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
788
+ }, undefined>, undefined>;
832
789
  }, undefined>], undefined>;
833
- readonly grantRequestJsonSchema: Record<string, unknown>;
834
- readonly grantJsonSchema: Record<string, unknown>;
835
790
  };
836
791
  readonly bank_deposit: {
837
792
  readonly actions: readonly ["create", "read", "close"];
838
793
  readonly grantRequest: v.StrictObjectSchema<{
839
794
  readonly type: v.LiteralSchema<"bank_deposit", undefined>;
840
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "read", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "close")[], 1, undefined>, v.CheckAction<("read" | "create" | "close")[], "duplicate_action">]>;
841
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
795
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "read", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "close")[], 1, undefined>, v.MetadataAction<("read" | "create" | "close")[], {
796
+ readonly uniqueItems: true;
797
+ }>]>;
798
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
842
799
  readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
843
800
  readonly type: v.LiteralSchema<"profile", undefined>;
844
801
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
845
802
  }, undefined>, v.StrictObjectSchema<{
846
803
  readonly type: v.LiteralSchema<"organization", undefined>;
847
- readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
804
+ readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
848
805
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
849
806
  }, undefined>], undefined>, undefined>;
850
- readonly destinations: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
807
+ readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
851
808
  readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
852
809
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
853
810
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
854
811
  readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
855
812
  }, undefined>, v.StrictObjectSchema<{
856
813
  readonly type: v.LiteralSchema<"account", undefined>;
857
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
814
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
858
815
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
859
816
  }, undefined>, v.StrictObjectSchema<{
860
817
  readonly type: v.LiteralSchema<"any", undefined>;
@@ -889,21 +846,7 @@ export declare const ANDCO_RAR_CATALOG: {
889
846
  limit: "own";
890
847
  editable?: boolean | null | undefined;
891
848
  selection?: "single" | "multiple" | null | undefined;
892
- })[], 100, undefined>, v.CheckAction<({
893
- type?: "account_key" | null | undefined;
894
- pattern: string;
895
- editable?: boolean | null | undefined;
896
- selection?: "single" | "multiple" | null | undefined;
897
- } | {
898
- type: "account";
899
- id: string;
900
- editable?: boolean | null | undefined;
901
- } | {
902
- type: "any";
903
- limit: "own";
904
- editable?: boolean | null | undefined;
905
- selection?: "single" | "multiple" | null | undefined;
906
- })[], "duplicate_account_matcher">]>, v.CheckAction<({
849
+ })[], 100, undefined>, v.MetadataAction<({
907
850
  type?: "account_key" | null | undefined;
908
851
  pattern: string;
909
852
  editable?: boolean | null | undefined;
@@ -917,25 +860,29 @@ export declare const ANDCO_RAR_CATALOG: {
917
860
  limit: "own";
918
861
  editable?: boolean | null | undefined;
919
862
  selection?: "single" | "multiple" | null | undefined;
920
- })[], "account_selection_incoherent">]>;
863
+ })[], {
864
+ readonly uniqueItems: true;
865
+ }>]>;
921
866
  }, undefined>;
922
867
  readonly grant: v.StrictObjectSchema<{
923
868
  readonly type: v.LiteralSchema<"bank_deposit", undefined>;
924
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "read", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "close")[], 1, undefined>, v.CheckAction<("read" | "create" | "close")[], "duplicate_action">]>;
925
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
869
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["create", "read", "close"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "close")[], 1, undefined>, v.MetadataAction<("read" | "create" | "close")[], {
870
+ readonly uniqueItems: true;
871
+ }>]>;
872
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
926
873
  readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
927
874
  readonly type: v.LiteralSchema<"profile", undefined>;
928
875
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
929
876
  }, undefined>, v.StrictObjectSchema<{
930
877
  readonly type: v.LiteralSchema<"organization", undefined>;
931
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
878
+ readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
932
879
  }, undefined>], undefined>;
933
880
  readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
934
881
  readonly type: v.LiteralSchema<"account_key", undefined>;
935
882
  readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
936
883
  }, undefined>, v.StrictObjectSchema<{
937
884
  readonly type: v.LiteralSchema<"account", undefined>;
938
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
885
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
939
886
  }, undefined>, v.StrictObjectSchema<{
940
887
  readonly type: v.LiteralSchema<"any", undefined>;
941
888
  readonly limit: v.LiteralSchema<"own", undefined>;
@@ -957,7 +904,7 @@ export declare const ANDCO_RAR_CATALOG: {
957
904
  } | {
958
905
  type: "any";
959
906
  limit: "own";
960
- })[], 100, undefined>, v.CheckAction<({
907
+ })[], 100, undefined>, v.MetadataAction<({
961
908
  type: "account_key";
962
909
  pattern: string;
963
910
  } | {
@@ -966,77 +913,105 @@ export declare const ANDCO_RAR_CATALOG: {
966
913
  } | {
967
914
  type: "any";
968
915
  limit: "own";
969
- })[], "duplicate_account_matcher">]>;
916
+ })[], {
917
+ readonly uniqueItems: true;
918
+ }>]>;
970
919
  }, undefined>;
971
- readonly grantRequestJsonSchema: Record<string, unknown>;
972
- readonly grantJsonSchema: Record<string, unknown>;
973
920
  };
974
921
  readonly identity: {
975
922
  readonly actions: readonly ["read"];
976
- readonly grantRequest: v.StrictObjectSchema<{
923
+ readonly grantRequest: v.UnionSchema<[v.StrictObjectSchema<{
977
924
  readonly type: v.LiteralSchema<"identity", undefined>;
978
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.CheckAction<"read"[], "duplicate_action">]>;
979
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
980
- readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
925
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.MetadataAction<"read"[], {
926
+ readonly uniqueItems: true;
927
+ }>]>;
928
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
929
+ readonly subject: v.NullishSchema<v.StrictObjectSchema<{
981
930
  readonly type: v.LiteralSchema<"profile", undefined>;
982
931
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
983
- }, undefined>, v.StrictObjectSchema<{
932
+ }, undefined>, undefined>;
933
+ readonly validation: v.NullishSchema<v.StrictObjectSchema<{
934
+ readonly required: v.LiteralSchema<true, undefined>;
935
+ }, undefined>, undefined>;
936
+ }, undefined>, v.StrictObjectSchema<{
937
+ readonly type: v.LiteralSchema<"identity", undefined>;
938
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.MetadataAction<"read"[], {
939
+ readonly uniqueItems: true;
940
+ }>]>;
941
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
942
+ readonly subject: v.StrictObjectSchema<{
984
943
  readonly type: v.LiteralSchema<"organization", undefined>;
985
- readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
944
+ readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
986
945
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
987
- }, undefined>], undefined>, undefined>;
988
- }, undefined>;
989
- readonly grant: v.StrictObjectSchema<{
946
+ }, undefined>;
947
+ readonly validation: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
948
+ }, undefined>], undefined>;
949
+ readonly grant: v.UnionSchema<[v.StrictObjectSchema<{
990
950
  readonly type: v.LiteralSchema<"identity", undefined>;
991
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.CheckAction<"read"[], "duplicate_action">]>;
992
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
993
- readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
951
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.MetadataAction<"read"[], {
952
+ readonly uniqueItems: true;
953
+ }>]>;
954
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
955
+ readonly subject: v.StrictObjectSchema<{
994
956
  readonly type: v.LiteralSchema<"profile", undefined>;
995
957
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
996
- }, undefined>, v.StrictObjectSchema<{
958
+ }, undefined>;
959
+ readonly validation: v.OptionalSchema<v.StrictObjectSchema<{
960
+ readonly required: v.LiteralSchema<true, undefined>;
961
+ }, undefined>, undefined>;
962
+ }, undefined>, v.StrictObjectSchema<{
963
+ readonly type: v.LiteralSchema<"identity", undefined>;
964
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.MetadataAction<"read"[], {
965
+ readonly uniqueItems: true;
966
+ }>]>;
967
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
968
+ readonly subject: v.StrictObjectSchema<{
997
969
  readonly type: v.LiteralSchema<"organization", undefined>;
998
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
999
- }, undefined>], undefined>;
1000
- }, undefined>;
1001
- readonly grantRequestJsonSchema: Record<string, unknown>;
1002
- readonly grantJsonSchema: Record<string, unknown>;
970
+ readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
971
+ }, undefined>;
972
+ readonly validation: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
973
+ }, undefined>], undefined>;
1003
974
  };
1004
975
  readonly address: {
1005
976
  readonly actions: readonly ["read", "create", "update", "delete"];
1006
977
  readonly grantRequest: v.StrictObjectSchema<{
1007
978
  readonly type: v.LiteralSchema<"address", undefined>;
1008
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "create", "update", "delete"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "update" | "delete")[], 1, undefined>, v.CheckAction<("read" | "create" | "update" | "delete")[], "duplicate_action">]>;
1009
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
979
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "create", "update", "delete"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "update" | "delete")[], 1, undefined>, v.MetadataAction<("read" | "create" | "update" | "delete")[], {
980
+ readonly uniqueItems: true;
981
+ }>]>;
982
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1010
983
  readonly subject: v.NullishSchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
1011
984
  readonly type: v.LiteralSchema<"profile", undefined>;
1012
985
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
1013
986
  }, undefined>, v.StrictObjectSchema<{
1014
987
  readonly type: v.LiteralSchema<"organization", undefined>;
1015
- readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>, undefined>;
988
+ readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
1016
989
  readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
1017
990
  }, undefined>], undefined>, undefined>;
1018
991
  }, undefined>;
1019
992
  readonly grant: v.StrictObjectSchema<{
1020
993
  readonly type: v.LiteralSchema<"address", undefined>;
1021
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "create", "update", "delete"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "update" | "delete")[], 1, undefined>, v.CheckAction<("read" | "create" | "update" | "delete")[], "duplicate_action">]>;
1022
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
994
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read", "create", "update", "delete"], undefined>, undefined>, v.MinLengthAction<("read" | "create" | "update" | "delete")[], 1, undefined>, v.MetadataAction<("read" | "create" | "update" | "delete")[], {
995
+ readonly uniqueItems: true;
996
+ }>]>;
997
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1023
998
  readonly subject: v.VariantSchema<"type", [v.StrictObjectSchema<{
1024
999
  readonly type: v.LiteralSchema<"profile", undefined>;
1025
1000
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1026
1001
  }, undefined>, v.StrictObjectSchema<{
1027
1002
  readonly type: v.LiteralSchema<"organization", undefined>;
1028
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
1003
+ readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1029
1004
  }, undefined>], undefined>;
1030
1005
  }, undefined>;
1031
- readonly grantRequestJsonSchema: Record<string, unknown>;
1032
- readonly grantJsonSchema: Record<string, unknown>;
1033
1006
  };
1034
1007
  readonly organization: {
1035
1008
  readonly actions: readonly ["list"];
1036
1009
  readonly grantRequest: v.StrictObjectSchema<{
1037
1010
  readonly type: v.LiteralSchema<"organization", undefined>;
1038
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["list"], undefined>, undefined>, v.MinLengthAction<"list"[], 1, undefined>, v.CheckAction<"list"[], "duplicate_action">]>;
1039
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1011
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["list"], undefined>, undefined>, v.MinLengthAction<"list"[], 1, undefined>, v.MetadataAction<"list"[], {
1012
+ readonly uniqueItems: true;
1013
+ }>]>;
1014
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1040
1015
  readonly subject: v.NullishSchema<v.StrictObjectSchema<{
1041
1016
  readonly type: v.LiteralSchema<"profile", undefined>;
1042
1017
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
@@ -1044,22 +1019,24 @@ export declare const ANDCO_RAR_CATALOG: {
1044
1019
  }, undefined>;
1045
1020
  readonly grant: v.StrictObjectSchema<{
1046
1021
  readonly type: v.LiteralSchema<"organization", undefined>;
1047
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["list"], undefined>, undefined>, v.MinLengthAction<"list"[], 1, undefined>, v.CheckAction<"list"[], "duplicate_action">]>;
1048
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1022
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["list"], undefined>, undefined>, v.MinLengthAction<"list"[], 1, undefined>, v.MetadataAction<"list"[], {
1023
+ readonly uniqueItems: true;
1024
+ }>]>;
1025
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1049
1026
  readonly subject: v.StrictObjectSchema<{
1050
1027
  readonly type: v.LiteralSchema<"profile", undefined>;
1051
1028
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1052
1029
  }, undefined>;
1053
1030
  }, undefined>;
1054
- readonly grantRequestJsonSchema: Record<string, unknown>;
1055
- readonly grantJsonSchema: Record<string, unknown>;
1056
1031
  };
1057
1032
  readonly profile: {
1058
1033
  readonly actions: readonly ["update"];
1059
1034
  readonly grantRequest: v.StrictObjectSchema<{
1060
1035
  readonly type: v.LiteralSchema<"profile", undefined>;
1061
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["update"], undefined>, undefined>, v.MinLengthAction<"update"[], 1, undefined>, v.CheckAction<"update"[], "duplicate_action">]>;
1062
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1036
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["update"], undefined>, undefined>, v.MinLengthAction<"update"[], 1, undefined>, v.MetadataAction<"update"[], {
1037
+ readonly uniqueItems: true;
1038
+ }>]>;
1039
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1063
1040
  readonly subject: v.NullishSchema<v.StrictObjectSchema<{
1064
1041
  readonly type: v.LiteralSchema<"profile", undefined>;
1065
1042
  readonly identifier: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
@@ -1067,36 +1044,50 @@ export declare const ANDCO_RAR_CATALOG: {
1067
1044
  }, undefined>;
1068
1045
  readonly grant: v.StrictObjectSchema<{
1069
1046
  readonly type: v.LiteralSchema<"profile", undefined>;
1070
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["update"], undefined>, undefined>, v.MinLengthAction<"update"[], 1, undefined>, v.CheckAction<"update"[], "duplicate_action">]>;
1071
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1047
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["update"], undefined>, undefined>, v.MinLengthAction<"update"[], 1, undefined>, v.MetadataAction<"update"[], {
1048
+ readonly uniqueItems: true;
1049
+ }>]>;
1050
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1072
1051
  readonly subject: v.StrictObjectSchema<{
1073
1052
  readonly type: v.LiteralSchema<"profile", undefined>;
1074
1053
  readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1075
1054
  }, undefined>;
1076
1055
  }, undefined>;
1077
- readonly grantRequestJsonSchema: Record<string, unknown>;
1078
- readonly grantJsonSchema: Record<string, unknown>;
1079
1056
  };
1080
1057
  readonly project_users: {
1081
1058
  readonly actions: readonly ["read"];
1082
1059
  readonly grantRequest: v.StrictObjectSchema<{
1083
1060
  readonly type: v.LiteralSchema<"project_users", undefined>;
1084
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.CheckAction<"read"[], "duplicate_action">]>;
1085
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1086
- readonly project_ids: v.NullishSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], "duplicate_identifier">]>, undefined>;
1087
- readonly client_ids: v.NullishSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], "duplicate_identifier">]>, undefined>;
1088
- readonly fields: v.NullishSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["id", "name", "email", "avatar", "phone", "identities", "addresses"], undefined>, undefined>, v.CheckAction<("email" | "phone" | "id" | "name" | "avatar" | "identities" | "addresses")[], "duplicate_field">]>, undefined>;
1061
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.MetadataAction<"read"[], {
1062
+ readonly uniqueItems: true;
1063
+ }>]>;
1064
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1065
+ readonly project_ids: v.NullishSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.MetadataAction<string[], {
1066
+ readonly uniqueItems: true;
1067
+ }>]>, undefined>;
1068
+ readonly client_ids: v.NullishSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.MetadataAction<string[], {
1069
+ readonly uniqueItems: true;
1070
+ }>]>, undefined>;
1071
+ readonly fields: v.NullishSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["id", "name", "email", "avatar", "phone", "identities", "addresses"], undefined>, undefined>, v.MetadataAction<("email" | "phone" | "id" | "name" | "avatar" | "identities" | "addresses")[], {
1072
+ readonly uniqueItems: true;
1073
+ }>]>, undefined>;
1089
1074
  }, undefined>;
1090
1075
  readonly grant: v.StrictObjectSchema<{
1091
1076
  readonly type: v.LiteralSchema<"project_users", undefined>;
1092
- readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.CheckAction<"read"[], "duplicate_action">]>;
1093
- readonly locations: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1094
- readonly project_ids: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], "duplicate_identifier">]>;
1095
- readonly client_ids: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.CheckAction<string[], "duplicate_identifier">]>;
1096
- readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["id", "name", "email", "avatar", "phone", "identities", "addresses"], undefined>, undefined>, v.CheckAction<("email" | "phone" | "id" | "name" | "avatar" | "identities" | "addresses")[], "duplicate_field">]>;
1077
+ readonly actions: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["read"], undefined>, undefined>, v.MinLengthAction<"read"[], 1, undefined>, v.MetadataAction<"read"[], {
1078
+ readonly uniqueItems: true;
1079
+ }>]>;
1080
+ readonly locations: v.StrictTupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
1081
+ readonly project_ids: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.MetadataAction<string[], {
1082
+ readonly uniqueItems: true;
1083
+ }>]>;
1084
+ readonly client_ids: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>, v.MetadataAction<string[], {
1085
+ readonly uniqueItems: true;
1086
+ }>]>;
1087
+ readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["id", "name", "email", "avatar", "phone", "identities", "addresses"], undefined>, undefined>, v.MetadataAction<("email" | "phone" | "id" | "name" | "avatar" | "identities" | "addresses")[], {
1088
+ readonly uniqueItems: true;
1089
+ }>]>;
1097
1090
  }, undefined>;
1098
- readonly grantRequestJsonSchema: Record<string, unknown>;
1099
- readonly grantJsonSchema: Record<string, unknown>;
1100
1091
  };
1101
1092
  };
1102
1093
  /** Any Andco authorization detail in its Grant Request form. */
@@ -1108,7 +1099,7 @@ export type AndcoGrant = {
1108
1099
  [Type in AndcoRarType]: v.InferOutput<(typeof ANDCO_RAR_CATALOG)[Type]["grant"]>;
1109
1100
  }[AndcoRarType];
1110
1101
  /** Codes {@link AndcoRarError} carries: the ones the API answers for the same conditions. */
1111
- export type AndcoRarErrorCode = typeof ANDCO_API_ERROR_CODES.INVALID_REQUEST | typeof ANDCO_API_ERROR_CODES.NOT_IMPLEMENTED;
1102
+ export type AndcoRarErrorCode = "invalid_request" | "not_implemented";
1112
1103
  /**
1113
1104
  * An authorization detail that cannot be used: `invalid_request` when it breaks the contract,
1114
1105
  * `not_implemented` when it names a reserved type. The codes are the API's own, so the SDK fails
@@ -1117,8 +1108,8 @@ export type AndcoRarErrorCode = typeof ANDCO_API_ERROR_CODES.INVALID_REQUEST | t
1117
1108
  export declare class AndcoRarError extends ErrorExtendable {
1118
1109
  readonly code: AndcoRarErrorCode;
1119
1110
  readonly type: string | undefined;
1120
- readonly issues: readonly v.BaseIssue<unknown>[];
1121
- constructor(code: AndcoRarErrorCode, type: string | undefined, issues?: readonly v.BaseIssue<unknown>[], options?: ErrorOptions);
1111
+ readonly issues: readonly Issue[];
1112
+ constructor(code: AndcoRarErrorCode, type: string | undefined, issues?: readonly Issue[], options?: ErrorOptions);
1122
1113
  }
1123
1114
  /** Whether `type` is one of {@link ANDCO_RAR_TYPES}. */
1124
1115
  export declare function isAndcoRarType(type: unknown): type is AndcoRarType;
@@ -1135,6 +1126,32 @@ export declare function isAndcoReservedRarType(type: unknown): type is AndcoRese
1135
1126
  export declare function isAndcoGrant(detail: {
1136
1127
  readonly type: string;
1137
1128
  }): detail is AndcoGrant;
1129
+ /**
1130
+ * The rules of an Andco authorization detail that already matches its schema, in either form: what
1131
+ * JSON Schema cannot say, each answered as an {@link Issue} with its code in `type`.
1132
+ *
1133
+ * - `duplicate_action` at an action listed twice.
1134
+ * - `identifier_exceeds_organization_id` at an Organization `subject.identifier` above the `int4`
1135
+ * ceiling ({@link subjectIssues}).
1136
+ * - `duplicate_account_matcher`, `account_selection_incoherent` and `account_selection_not_pickable`
1137
+ * in `accounts`, `sources` and `destinations` ({@link accountMatcherListIssues}); only a Transfer's
1138
+ * destinations are a list nobody picks from.
1139
+ * - `minimum_above_maximum` in `transactions` ({@link amountRangeIssues}).
1140
+ * - `duplicate_identifier` and `duplicate_field` in a `project_users` detail ({@link projectUsersIssues}).
1141
+ *
1142
+ * {@link parseAndcoGrantRequest} and {@link parseAndcoGrant} apply them after the schema.
1143
+ *
1144
+ * @example
1145
+ * andcoRarIssues({
1146
+ * type: "bank_transfer",
1147
+ * actions: ["create"],
1148
+ * locations: ["https://api.andco.com"],
1149
+ * destinations: [{ type: "any", limit: "all" }],
1150
+ * currency: "CLP",
1151
+ * transactions: { minimum: "50000", maximum: "1000" },
1152
+ * }); // [{ type: "minimum_above_maximum", path: [{ key: "transactions" }, { key: "minimum" }] }]
1153
+ */
1154
+ export declare function andcoRarIssues(detail: AndcoGrantRequest | AndcoGrant): Issue[];
1138
1155
  /**
1139
1156
  * Validates one Andco authorization detail in its Grant Request form, dispatching on `type`.
1140
1157
  * Throws {@link AndcoRarError}: `not_implemented` for a reserved type, `invalid_request` otherwise.