@andco/protocol 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -73
- package/dist/api-errors.d.ts +40 -6
- package/dist/api-errors.d.ts.map +1 -1
- package/dist/api-errors.js +38 -6
- package/dist/consent.d.ts +2 -2
- package/dist/consent.d.ts.map +1 -1
- package/dist/consent.js +10 -19
- package/dist/errors.d.ts +41 -7
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +46 -8
- package/dist/format-money.d.ts +3 -0
- package/dist/format-money.d.ts.map +1 -0
- package/dist/format-money.js +7 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/intent-input.d.ts +134 -126
- package/dist/intent-input.d.ts.map +1 -1
- package/dist/intent-input.js +26 -16
- package/dist/intent-status.d.ts +24 -0
- package/dist/intent-status.d.ts.map +1 -0
- package/dist/intent-status.js +37 -0
- package/dist/miniapp-icon.d.ts +2 -2
- package/dist/miniapp-icon.d.ts.map +1 -1
- package/dist/miniapp-icon.js +6 -58
- package/dist/native-intent.d.ts +24 -33
- package/dist/native-intent.d.ts.map +1 -1
- package/dist/native-intent.js +19 -60
- package/dist/pagination.d.ts +71 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +63 -0
- package/dist/rar/account-matchers.d.ts +52 -52
- package/dist/rar/account-matchers.d.ts.map +1 -1
- package/dist/rar/account-matchers.js +81 -72
- package/dist/rar/bank.d.ts +86 -84
- package/dist/rar/bank.d.ts.map +1 -1
- package/dist/rar/bank.js +26 -24
- package/dist/rar/catalog.d.ts +57 -56
- package/dist/rar/catalog.d.ts.map +1 -1
- package/dist/rar/catalog.js +1 -0
- package/dist/rar/detail.d.ts +1 -1
- package/dist/rar/detail.d.ts.map +1 -1
- package/dist/rar/detail.js +1 -1
- package/dist/service-grants.d.ts +4 -2
- package/dist/service-grants.d.ts.map +1 -1
- package/dist/service-grants.js +15 -2
- package/dist/transport/financial-events.d.ts +10 -22
- package/dist/transport/financial-events.d.ts.map +1 -1
- package/dist/transport/financial-events.js +36 -62
- package/dist/transport/generated/oauth-api.d.ts +297 -103
- package/dist/transport/generated/oauth-api.d.ts.map +1 -1
- package/dist/transport/intents.d.ts +11 -10
- package/dist/transport/intents.d.ts.map +1 -1
- package/dist/transport/intents.js +22 -21
- package/dist/transport/rest.d.ts +7 -4
- package/dist/transport/rest.d.ts.map +1 -1
- package/dist/transport/rest.js +1 -1
- package/dist/transport/runtime.js +3 -3
- package/dist/utils.js +3 -3
- package/dist/webhooks.d.ts +15 -4
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +50 -17
- package/package.json +1 -1
- package/dist/native-copy.d.ts +0 -28
- package/dist/native-copy.d.ts.map +0 -1
- package/dist/native-copy.js +0 -400
package/dist/rar/catalog.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
45
45
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
46
46
|
}, undefined>], undefined>, undefined>;
|
|
47
47
|
readonly accounts: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
48
|
-
readonly type: v.NullishSchema<v.LiteralSchema<"
|
|
48
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
|
|
49
49
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
50
50
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
51
51
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
@@ -59,7 +59,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
59
59
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
60
60
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
61
61
|
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
62
|
-
type?: "
|
|
62
|
+
type?: "account_key" | null | undefined;
|
|
63
63
|
pattern: string;
|
|
64
64
|
editable?: boolean | null | undefined;
|
|
65
65
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -73,7 +73,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
73
73
|
editable?: boolean | null | undefined;
|
|
74
74
|
selection?: "single" | "multiple" | null | undefined;
|
|
75
75
|
})[], 1, undefined>, v.MaxLengthAction<({
|
|
76
|
-
type?: "
|
|
76
|
+
type?: "account_key" | null | undefined;
|
|
77
77
|
pattern: string;
|
|
78
78
|
editable?: boolean | null | undefined;
|
|
79
79
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -87,7 +87,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
87
87
|
editable?: boolean | null | undefined;
|
|
88
88
|
selection?: "single" | "multiple" | null | undefined;
|
|
89
89
|
})[], 100, undefined>, v.CheckAction<({
|
|
90
|
-
type?: "
|
|
90
|
+
type?: "account_key" | null | undefined;
|
|
91
91
|
pattern: string;
|
|
92
92
|
editable?: boolean | null | undefined;
|
|
93
93
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -101,7 +101,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
101
101
|
editable?: boolean | null | undefined;
|
|
102
102
|
selection?: "single" | "multiple" | null | undefined;
|
|
103
103
|
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
104
|
-
type?: "
|
|
104
|
+
type?: "account_key" | null | undefined;
|
|
105
105
|
pattern: string;
|
|
106
106
|
editable?: boolean | null | undefined;
|
|
107
107
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -128,27 +128,27 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
128
128
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
129
129
|
}, undefined>], undefined>, undefined>;
|
|
130
130
|
readonly accounts: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
131
|
-
readonly type: v.NullishSchema<v.LiteralSchema<"
|
|
131
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
|
|
132
132
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
133
133
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
134
134
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
135
135
|
}, undefined>, undefined>, v.MinLengthAction<{
|
|
136
|
-
type?: "
|
|
136
|
+
type?: "account_key" | null | undefined;
|
|
137
137
|
pattern: string;
|
|
138
138
|
editable?: boolean | null | undefined;
|
|
139
139
|
selection?: "single" | "multiple" | null | undefined;
|
|
140
140
|
}[], 1, undefined>, v.MaxLengthAction<{
|
|
141
|
-
type?: "
|
|
141
|
+
type?: "account_key" | null | undefined;
|
|
142
142
|
pattern: string;
|
|
143
143
|
editable?: boolean | null | undefined;
|
|
144
144
|
selection?: "single" | "multiple" | null | undefined;
|
|
145
145
|
}[], 100, undefined>, v.CheckAction<{
|
|
146
|
-
type?: "
|
|
146
|
+
type?: "account_key" | null | undefined;
|
|
147
147
|
pattern: string;
|
|
148
148
|
editable?: boolean | null | undefined;
|
|
149
149
|
selection?: "single" | "multiple" | null | undefined;
|
|
150
150
|
}[], "duplicate_account_matcher">]>, v.CheckAction<{
|
|
151
|
-
type?: "
|
|
151
|
+
type?: "account_key" | null | undefined;
|
|
152
152
|
pattern: string;
|
|
153
153
|
editable?: boolean | null | undefined;
|
|
154
154
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -178,7 +178,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
178
178
|
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
179
179
|
}, undefined>], undefined>;
|
|
180
180
|
readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
181
|
-
readonly type: v.LiteralSchema<"
|
|
181
|
+
readonly type: v.LiteralSchema<"account_key", undefined>;
|
|
182
182
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
183
183
|
}, undefined>, v.StrictObjectSchema<{
|
|
184
184
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
@@ -187,7 +187,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
187
187
|
readonly type: v.LiteralSchema<"any", undefined>;
|
|
188
188
|
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
189
189
|
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
190
|
-
type: "
|
|
190
|
+
type: "account_key";
|
|
191
191
|
pattern: string;
|
|
192
192
|
} | {
|
|
193
193
|
type: "account";
|
|
@@ -196,7 +196,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
196
196
|
type: "any";
|
|
197
197
|
limit: "own";
|
|
198
198
|
})[], 1, undefined>, v.MaxLengthAction<({
|
|
199
|
-
type: "
|
|
199
|
+
type: "account_key";
|
|
200
200
|
pattern: string;
|
|
201
201
|
} | {
|
|
202
202
|
type: "account";
|
|
@@ -205,7 +205,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
205
205
|
type: "any";
|
|
206
206
|
limit: "own";
|
|
207
207
|
})[], 100, undefined>, v.CheckAction<({
|
|
208
|
-
type: "
|
|
208
|
+
type: "account_key";
|
|
209
209
|
pattern: string;
|
|
210
210
|
} | {
|
|
211
211
|
type: "account";
|
|
@@ -226,16 +226,16 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
226
226
|
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
227
227
|
}, undefined>], undefined>;
|
|
228
228
|
readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
229
|
-
readonly type: v.LiteralSchema<"
|
|
229
|
+
readonly type: v.LiteralSchema<"account_key", undefined>;
|
|
230
230
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
231
231
|
}, undefined>, undefined>, v.MinLengthAction<{
|
|
232
|
-
type: "
|
|
232
|
+
type: "account_key";
|
|
233
233
|
pattern: string;
|
|
234
234
|
}[], 1, undefined>, v.MaxLengthAction<{
|
|
235
|
-
type: "
|
|
235
|
+
type: "account_key";
|
|
236
236
|
pattern: string;
|
|
237
237
|
}[], 100, undefined>, v.CheckAction<{
|
|
238
|
-
type: "
|
|
238
|
+
type: "account_key";
|
|
239
239
|
pattern: string;
|
|
240
240
|
}[], "duplicate_account_matcher">]>;
|
|
241
241
|
}, undefined>, v.StrictObjectSchema<{
|
|
@@ -268,7 +268,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
268
268
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
269
269
|
}, undefined>], undefined>, undefined>;
|
|
270
270
|
readonly accounts: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
271
|
-
readonly type: v.NullishSchema<v.LiteralSchema<"
|
|
271
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
|
|
272
272
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
273
273
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
274
274
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
@@ -282,7 +282,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
282
282
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
283
283
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
284
284
|
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
285
|
-
type?: "
|
|
285
|
+
type?: "account_key" | null | undefined;
|
|
286
286
|
pattern: string;
|
|
287
287
|
editable?: boolean | null | undefined;
|
|
288
288
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -296,7 +296,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
296
296
|
editable?: boolean | null | undefined;
|
|
297
297
|
selection?: "single" | "multiple" | null | undefined;
|
|
298
298
|
})[], 1, undefined>, v.MaxLengthAction<({
|
|
299
|
-
type?: "
|
|
299
|
+
type?: "account_key" | null | undefined;
|
|
300
300
|
pattern: string;
|
|
301
301
|
editable?: boolean | null | undefined;
|
|
302
302
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -310,7 +310,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
310
310
|
editable?: boolean | null | undefined;
|
|
311
311
|
selection?: "single" | "multiple" | null | undefined;
|
|
312
312
|
})[], 100, undefined>, v.CheckAction<({
|
|
313
|
-
type?: "
|
|
313
|
+
type?: "account_key" | null | undefined;
|
|
314
314
|
pattern: string;
|
|
315
315
|
editable?: boolean | null | undefined;
|
|
316
316
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -324,7 +324,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
324
324
|
editable?: boolean | null | undefined;
|
|
325
325
|
selection?: "single" | "multiple" | null | undefined;
|
|
326
326
|
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
327
|
-
type?: "
|
|
327
|
+
type?: "account_key" | null | undefined;
|
|
328
328
|
pattern: string;
|
|
329
329
|
editable?: boolean | null | undefined;
|
|
330
330
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -351,7 +351,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
351
351
|
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
352
352
|
}, undefined>], undefined>;
|
|
353
353
|
readonly accounts: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
354
|
-
readonly type: v.LiteralSchema<"
|
|
354
|
+
readonly type: v.LiteralSchema<"account_key", undefined>;
|
|
355
355
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
356
356
|
}, undefined>, v.StrictObjectSchema<{
|
|
357
357
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
@@ -360,7 +360,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
360
360
|
readonly type: v.LiteralSchema<"any", undefined>;
|
|
361
361
|
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
362
362
|
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
363
|
-
type: "
|
|
363
|
+
type: "account_key";
|
|
364
364
|
pattern: string;
|
|
365
365
|
} | {
|
|
366
366
|
type: "account";
|
|
@@ -369,7 +369,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
369
369
|
type: "any";
|
|
370
370
|
limit: "own";
|
|
371
371
|
})[], 1, undefined>, v.MaxLengthAction<({
|
|
372
|
-
type: "
|
|
372
|
+
type: "account_key";
|
|
373
373
|
pattern: string;
|
|
374
374
|
} | {
|
|
375
375
|
type: "account";
|
|
@@ -378,7 +378,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
378
378
|
type: "any";
|
|
379
379
|
limit: "own";
|
|
380
380
|
})[], 100, undefined>, v.CheckAction<({
|
|
381
|
-
type: "
|
|
381
|
+
type: "account_key";
|
|
382
382
|
pattern: string;
|
|
383
383
|
} | {
|
|
384
384
|
type: "account";
|
|
@@ -406,7 +406,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
406
406
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
407
407
|
}, undefined>], undefined>, undefined>;
|
|
408
408
|
readonly sources: v.NullishSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
409
|
-
readonly type: v.NullishSchema<v.LiteralSchema<"
|
|
409
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
|
|
410
410
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
411
411
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
412
412
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
@@ -420,7 +420,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
420
420
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
421
421
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
422
422
|
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
423
|
-
type?: "
|
|
423
|
+
type?: "account_key" | null | undefined;
|
|
424
424
|
pattern: string;
|
|
425
425
|
editable?: boolean | null | undefined;
|
|
426
426
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -434,7 +434,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
434
434
|
editable?: boolean | null | undefined;
|
|
435
435
|
selection?: "single" | "multiple" | null | undefined;
|
|
436
436
|
})[], 1, undefined>, v.MaxLengthAction<({
|
|
437
|
-
type?: "
|
|
437
|
+
type?: "account_key" | null | undefined;
|
|
438
438
|
pattern: string;
|
|
439
439
|
editable?: boolean | null | undefined;
|
|
440
440
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -448,7 +448,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
448
448
|
editable?: boolean | null | undefined;
|
|
449
449
|
selection?: "single" | "multiple" | null | undefined;
|
|
450
450
|
})[], 100, undefined>, v.CheckAction<({
|
|
451
|
-
type?: "
|
|
451
|
+
type?: "account_key" | null | undefined;
|
|
452
452
|
pattern: string;
|
|
453
453
|
editable?: boolean | null | undefined;
|
|
454
454
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -462,7 +462,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
462
462
|
editable?: boolean | null | undefined;
|
|
463
463
|
selection?: "single" | "multiple" | null | undefined;
|
|
464
464
|
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
465
|
-
type?: "
|
|
465
|
+
type?: "account_key" | null | undefined;
|
|
466
466
|
pattern: string;
|
|
467
467
|
editable?: boolean | null | undefined;
|
|
468
468
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -476,8 +476,8 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
476
476
|
editable?: boolean | null | undefined;
|
|
477
477
|
selection?: "single" | "multiple" | null | undefined;
|
|
478
478
|
})[], "account_selection_incoherent">]>, undefined>;
|
|
479
|
-
readonly destinations: v.
|
|
480
|
-
readonly type: v.NullishSchema<v.LiteralSchema<"
|
|
479
|
+
readonly destinations: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
480
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
|
|
481
481
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
482
482
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
483
483
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
@@ -506,7 +506,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
506
506
|
readonly holder_name: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
507
507
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
508
508
|
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
509
|
-
type?: "
|
|
509
|
+
type?: "account_key" | null | undefined;
|
|
510
510
|
pattern: string;
|
|
511
511
|
editable?: boolean | null | undefined;
|
|
512
512
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -535,7 +535,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
535
535
|
holder_name?: string | null | undefined;
|
|
536
536
|
editable?: boolean | null | undefined;
|
|
537
537
|
})[], 1, undefined>, v.MaxLengthAction<({
|
|
538
|
-
type?: "
|
|
538
|
+
type?: "account_key" | null | undefined;
|
|
539
539
|
pattern: string;
|
|
540
540
|
editable?: boolean | null | undefined;
|
|
541
541
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -564,7 +564,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
564
564
|
holder_name?: string | null | undefined;
|
|
565
565
|
editable?: boolean | null | undefined;
|
|
566
566
|
})[], 100, undefined>, v.CheckAction<({
|
|
567
|
-
type?: "
|
|
567
|
+
type?: "account_key" | null | undefined;
|
|
568
568
|
pattern: string;
|
|
569
569
|
editable?: boolean | null | undefined;
|
|
570
570
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -593,7 +593,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
593
593
|
holder_name?: string | null | undefined;
|
|
594
594
|
editable?: boolean | null | undefined;
|
|
595
595
|
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
596
|
-
type?: "
|
|
596
|
+
type?: "account_key" | null | undefined;
|
|
597
597
|
pattern: string;
|
|
598
598
|
editable?: boolean | null | undefined;
|
|
599
599
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -621,7 +621,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
621
621
|
holder_id?: string | null | undefined;
|
|
622
622
|
holder_name?: string | null | undefined;
|
|
623
623
|
editable?: boolean | null | undefined;
|
|
624
|
-
})[], "account_selection_not_pickable">]
|
|
624
|
+
})[], "account_selection_not_pickable">]>;
|
|
625
625
|
readonly currency: v.PicklistSchema<readonly ["CLP"], undefined>;
|
|
626
626
|
readonly transactions: v.NullishSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
627
627
|
readonly value: v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "amount_below_minimum_or_malformed">]>, undefined>;
|
|
@@ -672,7 +672,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
672
672
|
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
673
673
|
}, undefined>], undefined>;
|
|
674
674
|
readonly sources: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
675
|
-
readonly type: v.LiteralSchema<"
|
|
675
|
+
readonly type: v.LiteralSchema<"account_key", undefined>;
|
|
676
676
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
677
677
|
}, undefined>, v.StrictObjectSchema<{
|
|
678
678
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
@@ -681,7 +681,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
681
681
|
readonly type: v.LiteralSchema<"any", undefined>;
|
|
682
682
|
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
683
683
|
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
684
|
-
type: "
|
|
684
|
+
type: "account_key";
|
|
685
685
|
pattern: string;
|
|
686
686
|
} | {
|
|
687
687
|
type: "account";
|
|
@@ -690,7 +690,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
690
690
|
type: "any";
|
|
691
691
|
limit: "own";
|
|
692
692
|
})[], 1, undefined>, v.MaxLengthAction<({
|
|
693
|
-
type: "
|
|
693
|
+
type: "account_key";
|
|
694
694
|
pattern: string;
|
|
695
695
|
} | {
|
|
696
696
|
type: "account";
|
|
@@ -699,7 +699,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
699
699
|
type: "any";
|
|
700
700
|
limit: "own";
|
|
701
701
|
})[], 100, undefined>, v.CheckAction<({
|
|
702
|
-
type: "
|
|
702
|
+
type: "account_key";
|
|
703
703
|
pattern: string;
|
|
704
704
|
} | {
|
|
705
705
|
type: "account";
|
|
@@ -709,7 +709,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
709
709
|
limit: "own";
|
|
710
710
|
})[], "duplicate_account_matcher">]>;
|
|
711
711
|
readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
712
|
-
readonly type: v.LiteralSchema<"
|
|
712
|
+
readonly type: v.LiteralSchema<"account_key", undefined>;
|
|
713
713
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
714
714
|
}, undefined>, v.StrictObjectSchema<{
|
|
715
715
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
@@ -734,7 +734,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
734
734
|
type: "any";
|
|
735
735
|
limit: "all";
|
|
736
736
|
} | {
|
|
737
|
-
type: "
|
|
737
|
+
type: "account_key";
|
|
738
738
|
pattern: string;
|
|
739
739
|
} | {
|
|
740
740
|
type: "account";
|
|
@@ -756,7 +756,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
756
756
|
type: "any";
|
|
757
757
|
limit: "all";
|
|
758
758
|
} | {
|
|
759
|
-
type: "
|
|
759
|
+
type: "account_key";
|
|
760
760
|
pattern: string;
|
|
761
761
|
} | {
|
|
762
762
|
type: "account";
|
|
@@ -778,7 +778,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
778
778
|
type: "any";
|
|
779
779
|
limit: "all";
|
|
780
780
|
} | {
|
|
781
|
-
type: "
|
|
781
|
+
type: "account_key";
|
|
782
782
|
pattern: string;
|
|
783
783
|
} | {
|
|
784
784
|
type: "account";
|
|
@@ -848,7 +848,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
848
848
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
849
849
|
}, undefined>], undefined>, undefined>;
|
|
850
850
|
readonly destinations: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
851
|
-
readonly type: v.NullishSchema<v.LiteralSchema<"
|
|
851
|
+
readonly type: v.NullishSchema<v.LiteralSchema<"account_key", undefined>, undefined>;
|
|
852
852
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
853
853
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
854
854
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
@@ -862,7 +862,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
862
862
|
readonly editable: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
863
863
|
readonly selection: v.NullishSchema<v.PicklistSchema<readonly ["single", "multiple"], undefined>, undefined>;
|
|
864
864
|
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
865
|
-
type?: "
|
|
865
|
+
type?: "account_key" | null | undefined;
|
|
866
866
|
pattern: string;
|
|
867
867
|
editable?: boolean | null | undefined;
|
|
868
868
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -876,7 +876,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
876
876
|
editable?: boolean | null | undefined;
|
|
877
877
|
selection?: "single" | "multiple" | null | undefined;
|
|
878
878
|
})[], 1, undefined>, v.MaxLengthAction<({
|
|
879
|
-
type?: "
|
|
879
|
+
type?: "account_key" | null | undefined;
|
|
880
880
|
pattern: string;
|
|
881
881
|
editable?: boolean | null | undefined;
|
|
882
882
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -890,7 +890,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
890
890
|
editable?: boolean | null | undefined;
|
|
891
891
|
selection?: "single" | "multiple" | null | undefined;
|
|
892
892
|
})[], 100, undefined>, v.CheckAction<({
|
|
893
|
-
type?: "
|
|
893
|
+
type?: "account_key" | null | undefined;
|
|
894
894
|
pattern: string;
|
|
895
895
|
editable?: boolean | null | undefined;
|
|
896
896
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -904,7 +904,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
904
904
|
editable?: boolean | null | undefined;
|
|
905
905
|
selection?: "single" | "multiple" | null | undefined;
|
|
906
906
|
})[], "duplicate_account_matcher">]>, v.CheckAction<({
|
|
907
|
-
type?: "
|
|
907
|
+
type?: "account_key" | null | undefined;
|
|
908
908
|
pattern: string;
|
|
909
909
|
editable?: boolean | null | undefined;
|
|
910
910
|
selection?: "single" | "multiple" | null | undefined;
|
|
@@ -931,7 +931,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
931
931
|
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "identifier_exceeds_organization_id">]>;
|
|
932
932
|
}, undefined>], undefined>;
|
|
933
933
|
readonly destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
934
|
-
readonly type: v.LiteralSchema<"
|
|
934
|
+
readonly type: v.LiteralSchema<"account_key", undefined>;
|
|
935
935
|
readonly pattern: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
936
936
|
}, undefined>, v.StrictObjectSchema<{
|
|
937
937
|
readonly type: v.LiteralSchema<"account", undefined>;
|
|
@@ -940,7 +940,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
940
940
|
readonly type: v.LiteralSchema<"any", undefined>;
|
|
941
941
|
readonly limit: v.LiteralSchema<"own", undefined>;
|
|
942
942
|
}, undefined>], undefined>, undefined>, v.MinLengthAction<({
|
|
943
|
-
type: "
|
|
943
|
+
type: "account_key";
|
|
944
944
|
pattern: string;
|
|
945
945
|
} | {
|
|
946
946
|
type: "account";
|
|
@@ -949,7 +949,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
949
949
|
type: "any";
|
|
950
950
|
limit: "own";
|
|
951
951
|
})[], 1, undefined>, v.MaxLengthAction<({
|
|
952
|
-
type: "
|
|
952
|
+
type: "account_key";
|
|
953
953
|
pattern: string;
|
|
954
954
|
} | {
|
|
955
955
|
type: "account";
|
|
@@ -958,7 +958,7 @@ export declare const ANDCO_RAR_CATALOG: {
|
|
|
958
958
|
type: "any";
|
|
959
959
|
limit: "own";
|
|
960
960
|
})[], 100, undefined>, v.CheckAction<({
|
|
961
|
-
type: "
|
|
961
|
+
type: "account_key";
|
|
962
962
|
pattern: string;
|
|
963
963
|
} | {
|
|
964
964
|
type: "account";
|
|
@@ -1134,6 +1134,7 @@ export declare function isAndcoReservedRarType(type: unknown): type is AndcoRese
|
|
|
1134
1134
|
* actions: ["create"],
|
|
1135
1135
|
* locations: ["https://api.andco.com"],
|
|
1136
1136
|
* subject: { type: "profile" },
|
|
1137
|
+
* destinations: [{ type: "account_key", pattern: "proveedores" }],
|
|
1137
1138
|
* currency: "CLP",
|
|
1138
1139
|
* transactions: { value: "25990" },
|
|
1139
1140
|
* });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRo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iB,CAAC;IACxC,SAAgB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,SAAgB,MAAM,EAAE,SAAS,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;gBAGtD,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,MAAM,GAAE,SAAS,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,EAAO,EAC5C,OAAO,CAAC,EAAE,YAAY;CAOzB;AAED,wDAAwD;AACxD,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,YAAY,CAElE;AAED,iEAAiE;AACjE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,oBAAoB,CAElF;AA0BD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,OAAO,GAAG,iBAAiB,CAEzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAE3D"}
|
package/dist/rar/catalog.js
CHANGED
|
@@ -151,6 +151,7 @@ function parseForm(detail, form, caller) {
|
|
|
151
151
|
* actions: ["create"],
|
|
152
152
|
* locations: ["https://api.andco.com"],
|
|
153
153
|
* subject: { type: "profile" },
|
|
154
|
+
* destinations: [{ type: "account_key", pattern: "proveedores" }],
|
|
154
155
|
* currency: "CLP",
|
|
155
156
|
* transactions: { value: "25990" },
|
|
156
157
|
* });
|
package/dist/rar/detail.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as v from "valibot";
|
|
|
3
3
|
export declare const ANDCO_RAR_LOCATIONS: readonly ["https://api.andco.com"];
|
|
4
4
|
/** Valibot schema of {@link ANDCO_RAR_LOCATIONS}. */
|
|
5
5
|
export declare const AndcoRarLocationsSchema: v.TupleSchema<[v.LiteralSchema<"https://api.andco.com", undefined>], undefined>;
|
|
6
|
-
/** A non-empty list of distinct actions drawn from `options`. */
|
|
6
|
+
/** A non-empty list of distinct actions drawn from `options`. Throws an error if the list is empty or contains duplicates. */
|
|
7
7
|
export declare function actionSet<const Options extends readonly [string, ...string[]]>(options: Options): v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<Options, undefined>, undefined>, v.MinLengthAction<Options[number][], 1, undefined>, v.CheckAction<Options[number][], "duplicate_action">]>;
|
|
8
8
|
/** Wraps a JSON Schema so that `null` is also accepted, the JSON form of valibot's `nullish`. */
|
|
9
9
|
export declare function nullableJson<Schema extends object>(schema: Schema): {
|
package/dist/rar/detail.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detail.d.ts","sourceRoot":"","sources":["../../src/rar/detail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,gGAAgG;AAChG,eAAO,MAAM,mBAAmB,oCAA8B,CAAC;AAE/D,qDAAqD;AACrD,eAAO,MAAM,uBAAuB,iFAAyD,CAAC;AAE9F,
|
|
1
|
+
{"version":3,"file":"detail.d.ts","sourceRoot":"","sources":["../../src/rar/detail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,gGAAgG;AAChG,eAAO,MAAM,mBAAmB,oCAA8B,CAAC;AAE/D,qDAAqD;AACrD,eAAO,MAAM,uBAAuB,iFAAyD,CAAC;AAE9F,8HAA8H;AAC9H,wBAAgB,SAAS,CAAC,KAAK,CAAC,OAAO,SAAS,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,yMAM/F;AAED,iGAAiG;AACjG,wBAAgB,YAAY,CAAC,MAAM,SAAS,MAAM,EAAE,MAAM,EAAE,MAAM;;;;EAEjE;AAED,+CAA+C;AAC/C,wBAAgB,aAAa,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE;;;;;;;EAEvD;AAED,6DAA6D;AAC7D,eAAO,MAAM,+BAA+B;;;;;;;CAK3C,CAAC;AAEF,0EAA0E;AAC1E,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAOzB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAIjG"}
|
package/dist/rar/detail.js
CHANGED
|
@@ -4,7 +4,7 @@ import { ANDCO_API_ORIGIN } from "../constants.js";
|
|
|
4
4
|
export const ANDCO_RAR_LOCATIONS = [ANDCO_API_ORIGIN];
|
|
5
5
|
/** Valibot schema of {@link ANDCO_RAR_LOCATIONS}. */
|
|
6
6
|
export const AndcoRarLocationsSchema = /* @__PURE__ */ v.tuple([v.literal(ANDCO_API_ORIGIN)]);
|
|
7
|
-
/** A non-empty list of distinct actions drawn from `options`. */
|
|
7
|
+
/** A non-empty list of distinct actions drawn from `options`. Throws an error if the list is empty or contains duplicates. */
|
|
8
8
|
export function actionSet(options) {
|
|
9
9
|
return v.pipe(v.array(v.picklist(options)), v.minLength(1), v.check((actions) => new Set(actions).size === actions.length, "duplicate_action"));
|
|
10
10
|
}
|
package/dist/service-grants.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { GrantedOrganizationSubjectSchema } from "./rar/subject.js";
|
|
|
7
7
|
* metadata exists so a developer can see the candidates and pin one with `grant_id`.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
|
-
* const [grant] = parseServiceGrants(await response.json());
|
|
10
|
+
* const { edges: [{ node: grant }] } = parseServiceGrants(await response.json());
|
|
11
11
|
* grant.subject; // { type: "organization", identifier: "42" }
|
|
12
12
|
*/
|
|
13
13
|
export declare const ServiceGrantSchema: v.ObjectSchema<{
|
|
@@ -26,7 +26,9 @@ export declare const ServiceGrantSchema: v.ObjectSchema<{
|
|
|
26
26
|
readonly authorizationDetails: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
27
27
|
}, undefined>;
|
|
28
28
|
export type ServiceGrant = v.InferOutput<typeof ServiceGrantSchema>;
|
|
29
|
-
|
|
29
|
+
/** Validates one Grant record independently of collection transport. */
|
|
30
|
+
export declare function parseServiceGrant(input: unknown): ServiceGrant;
|
|
31
|
+
export declare function parseServiceGrants(input: unknown): import("./pagination.js").Connection<ServiceGrant>;
|
|
30
32
|
/**
|
|
31
33
|
* Validates the subject a Service acts for: an Organization with an exact identifier.
|
|
32
34
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-grants.d.ts","sourceRoot":"","sources":["../src/service-grants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;IAS7B,uGAAuG;;;;;aAKvG,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"service-grants.d.ts","sourceRoot":"","sources":["../src/service-grants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;IAS7B,uGAAuG;;;;;aAKvG,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,wEAAwE;AACxE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAE9D;AAUD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,iBAAiB,EAAE,UAAU,CAAC,YAAY,CAAC,CAErG;AACD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gCAAgC,CAAC,CAE1G;AACD,eAAO,MAAM,kBAAkB;;;;;aAK7B,CAAC;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAE1F"}
|
package/dist/service-grants.js
CHANGED
|
@@ -7,7 +7,7 @@ import { GrantedOrganizationSubjectSchema } from "./rar/subject.js";
|
|
|
7
7
|
* metadata exists so a developer can see the candidates and pin one with `grant_id`.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
|
-
* const [grant] = parseServiceGrants(await response.json());
|
|
10
|
+
* const { edges: [{ node: grant }] } = parseServiceGrants(await response.json());
|
|
11
11
|
* grant.subject; // { type: "organization", identifier: "42" }
|
|
12
12
|
*/
|
|
13
13
|
export const ServiceGrantSchema = /* @__PURE__ */ v.object({
|
|
@@ -22,8 +22,21 @@ export const ServiceGrantSchema = /* @__PURE__ */ v.object({
|
|
|
22
22
|
scopes: v.array(v.string()),
|
|
23
23
|
authorizationDetails: v.array(v.record(v.string(), v.unknown())),
|
|
24
24
|
});
|
|
25
|
+
/** Validates one Grant record independently of collection transport. */
|
|
26
|
+
export function parseServiceGrant(input) {
|
|
27
|
+
return v.parse(ServiceGrantSchema, input);
|
|
28
|
+
}
|
|
29
|
+
const ServiceGrantConnectionSchema = /* @__PURE__ */ v.object({
|
|
30
|
+
edges: v.array(v.object({ cursor: v.string(), node: ServiceGrantSchema })),
|
|
31
|
+
pageInfo: v.object({
|
|
32
|
+
startCursor: v.nullable(v.string()),
|
|
33
|
+
endCursor: v.nullable(v.string()),
|
|
34
|
+
hasPreviousPage: v.boolean(),
|
|
35
|
+
hasNextPage: v.boolean(),
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
25
38
|
export function parseServiceGrants(input) {
|
|
26
|
-
return v.parse(
|
|
39
|
+
return v.parse(ServiceGrantConnectionSchema, input);
|
|
27
40
|
}
|
|
28
41
|
/**
|
|
29
42
|
* Validates the subject a Service acts for: an Organization with an exact identifier.
|