@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
@@ -0,0 +1,3570 @@
1
+ /** The draft-07 JSON Schema of every Andco authorization detail type, in both forms. */
2
+ export const ANDCO_RAR_JSON_SCHEMAS = {
3
+ "bank_account": {
4
+ "grantRequest": {
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "const": "bank_account"
11
+ },
12
+ "actions": {
13
+ "type": "array",
14
+ "items": {
15
+ "enum": [
16
+ "read",
17
+ "read_balance"
18
+ ],
19
+ "type": "string"
20
+ },
21
+ "minItems": 1,
22
+ "uniqueItems": true
23
+ },
24
+ "locations": {
25
+ "type": "array",
26
+ "items": [
27
+ {
28
+ "const": "https://api.andco.com"
29
+ }
30
+ ],
31
+ "minItems": 1,
32
+ "additionalItems": false
33
+ },
34
+ "subject": {
35
+ "anyOf": [
36
+ {
37
+ "oneOf": [
38
+ {
39
+ "type": "object",
40
+ "properties": {
41
+ "type": {
42
+ "const": "profile"
43
+ },
44
+ "identifier": {
45
+ "anyOf": [
46
+ {
47
+ "type": "string",
48
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
49
+ },
50
+ {
51
+ "type": "null"
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ "required": [
57
+ "type"
58
+ ],
59
+ "additionalProperties": false
60
+ },
61
+ {
62
+ "type": "object",
63
+ "properties": {
64
+ "type": {
65
+ "const": "organization"
66
+ },
67
+ "identifier": {
68
+ "anyOf": [
69
+ {
70
+ "type": "string",
71
+ "pattern": "^[1-9][0-9]{0,9}$"
72
+ },
73
+ {
74
+ "type": "null"
75
+ }
76
+ ]
77
+ },
78
+ "editable": {
79
+ "anyOf": [
80
+ {
81
+ "type": "boolean"
82
+ },
83
+ {
84
+ "type": "null"
85
+ }
86
+ ]
87
+ }
88
+ },
89
+ "required": [
90
+ "type"
91
+ ],
92
+ "additionalProperties": false
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "type": "null"
98
+ }
99
+ ]
100
+ },
101
+ "accounts": {
102
+ "anyOf": [
103
+ {
104
+ "type": "array",
105
+ "items": {
106
+ "anyOf": [
107
+ {
108
+ "type": "object",
109
+ "properties": {
110
+ "type": {
111
+ "anyOf": [
112
+ {
113
+ "const": "account_key"
114
+ },
115
+ {
116
+ "type": "null"
117
+ }
118
+ ]
119
+ },
120
+ "pattern": {
121
+ "type": "string",
122
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
123
+ },
124
+ "editable": {
125
+ "anyOf": [
126
+ {
127
+ "type": "boolean"
128
+ },
129
+ {
130
+ "type": "null"
131
+ }
132
+ ]
133
+ },
134
+ "selection": {
135
+ "anyOf": [
136
+ {
137
+ "enum": [
138
+ "single",
139
+ "multiple"
140
+ ],
141
+ "type": "string"
142
+ },
143
+ {
144
+ "type": "null"
145
+ }
146
+ ]
147
+ }
148
+ },
149
+ "required": [
150
+ "pattern"
151
+ ],
152
+ "additionalProperties": false
153
+ },
154
+ {
155
+ "type": "object",
156
+ "properties": {
157
+ "type": {
158
+ "const": "account"
159
+ },
160
+ "id": {
161
+ "type": "string",
162
+ "format": "uuid"
163
+ },
164
+ "editable": {
165
+ "anyOf": [
166
+ {
167
+ "type": "boolean"
168
+ },
169
+ {
170
+ "type": "null"
171
+ }
172
+ ]
173
+ }
174
+ },
175
+ "required": [
176
+ "type",
177
+ "id"
178
+ ],
179
+ "additionalProperties": false
180
+ },
181
+ {
182
+ "type": "object",
183
+ "properties": {
184
+ "type": {
185
+ "const": "any"
186
+ },
187
+ "limit": {
188
+ "const": "own"
189
+ },
190
+ "editable": {
191
+ "anyOf": [
192
+ {
193
+ "type": "boolean"
194
+ },
195
+ {
196
+ "type": "null"
197
+ }
198
+ ]
199
+ },
200
+ "selection": {
201
+ "anyOf": [
202
+ {
203
+ "enum": [
204
+ "single",
205
+ "multiple"
206
+ ],
207
+ "type": "string"
208
+ },
209
+ {
210
+ "type": "null"
211
+ }
212
+ ]
213
+ }
214
+ },
215
+ "required": [
216
+ "type",
217
+ "limit"
218
+ ],
219
+ "additionalProperties": false
220
+ }
221
+ ]
222
+ },
223
+ "minItems": 1,
224
+ "maxItems": 100,
225
+ "uniqueItems": true
226
+ },
227
+ {
228
+ "type": "null"
229
+ }
230
+ ]
231
+ }
232
+ },
233
+ "required": [
234
+ "type",
235
+ "actions",
236
+ "locations"
237
+ ],
238
+ "additionalProperties": false
239
+ },
240
+ {
241
+ "type": "object",
242
+ "properties": {
243
+ "type": {
244
+ "const": "bank_account"
245
+ },
246
+ "actions": {
247
+ "type": "array",
248
+ "items": {
249
+ "enum": [
250
+ "create",
251
+ "close"
252
+ ],
253
+ "type": "string"
254
+ },
255
+ "minItems": 1,
256
+ "uniqueItems": true
257
+ },
258
+ "locations": {
259
+ "type": "array",
260
+ "items": [
261
+ {
262
+ "const": "https://api.andco.com"
263
+ }
264
+ ],
265
+ "minItems": 1,
266
+ "additionalItems": false
267
+ },
268
+ "subject": {
269
+ "anyOf": [
270
+ {
271
+ "oneOf": [
272
+ {
273
+ "type": "object",
274
+ "properties": {
275
+ "type": {
276
+ "const": "profile"
277
+ },
278
+ "identifier": {
279
+ "anyOf": [
280
+ {
281
+ "type": "string",
282
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
283
+ },
284
+ {
285
+ "type": "null"
286
+ }
287
+ ]
288
+ }
289
+ },
290
+ "required": [
291
+ "type"
292
+ ],
293
+ "additionalProperties": false
294
+ },
295
+ {
296
+ "type": "object",
297
+ "properties": {
298
+ "type": {
299
+ "const": "organization"
300
+ },
301
+ "identifier": {
302
+ "anyOf": [
303
+ {
304
+ "type": "string",
305
+ "pattern": "^[1-9][0-9]{0,9}$"
306
+ },
307
+ {
308
+ "type": "null"
309
+ }
310
+ ]
311
+ },
312
+ "editable": {
313
+ "anyOf": [
314
+ {
315
+ "type": "boolean"
316
+ },
317
+ {
318
+ "type": "null"
319
+ }
320
+ ]
321
+ }
322
+ },
323
+ "required": [
324
+ "type"
325
+ ],
326
+ "additionalProperties": false
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "type": "null"
332
+ }
333
+ ]
334
+ },
335
+ "accounts": {
336
+ "type": "array",
337
+ "items": {
338
+ "type": "object",
339
+ "properties": {
340
+ "type": {
341
+ "anyOf": [
342
+ {
343
+ "const": "account_key"
344
+ },
345
+ {
346
+ "type": "null"
347
+ }
348
+ ]
349
+ },
350
+ "pattern": {
351
+ "type": "string",
352
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
353
+ },
354
+ "editable": {
355
+ "anyOf": [
356
+ {
357
+ "type": "boolean"
358
+ },
359
+ {
360
+ "type": "null"
361
+ }
362
+ ]
363
+ }
364
+ },
365
+ "required": [
366
+ "pattern"
367
+ ],
368
+ "additionalProperties": false
369
+ },
370
+ "minItems": 1,
371
+ "maxItems": 100,
372
+ "uniqueItems": true
373
+ }
374
+ },
375
+ "required": [
376
+ "type",
377
+ "actions",
378
+ "locations",
379
+ "accounts"
380
+ ],
381
+ "additionalProperties": false
382
+ },
383
+ {
384
+ "type": "object",
385
+ "properties": {
386
+ "type": {
387
+ "const": "bank_account"
388
+ },
389
+ "actions": {
390
+ "type": "array",
391
+ "items": {
392
+ "enum": [
393
+ "approve",
394
+ "reject"
395
+ ],
396
+ "type": "string"
397
+ },
398
+ "minItems": 1,
399
+ "uniqueItems": true
400
+ },
401
+ "locations": {
402
+ "type": "array",
403
+ "items": [
404
+ {
405
+ "const": "https://api.andco.com"
406
+ }
407
+ ],
408
+ "minItems": 1,
409
+ "additionalItems": false
410
+ },
411
+ "subject": {
412
+ "anyOf": [
413
+ {
414
+ "oneOf": [
415
+ {
416
+ "type": "object",
417
+ "properties": {
418
+ "type": {
419
+ "const": "profile"
420
+ },
421
+ "identifier": {
422
+ "anyOf": [
423
+ {
424
+ "type": "string",
425
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
426
+ },
427
+ {
428
+ "type": "null"
429
+ }
430
+ ]
431
+ }
432
+ },
433
+ "required": [
434
+ "type"
435
+ ],
436
+ "additionalProperties": false
437
+ },
438
+ {
439
+ "type": "object",
440
+ "properties": {
441
+ "type": {
442
+ "const": "organization"
443
+ },
444
+ "identifier": {
445
+ "anyOf": [
446
+ {
447
+ "type": "string",
448
+ "pattern": "^[1-9][0-9]{0,9}$"
449
+ },
450
+ {
451
+ "type": "null"
452
+ }
453
+ ]
454
+ },
455
+ "editable": {
456
+ "anyOf": [
457
+ {
458
+ "type": "boolean"
459
+ },
460
+ {
461
+ "type": "null"
462
+ }
463
+ ]
464
+ }
465
+ },
466
+ "required": [
467
+ "type"
468
+ ],
469
+ "additionalProperties": false
470
+ }
471
+ ]
472
+ },
473
+ {
474
+ "type": "null"
475
+ }
476
+ ]
477
+ }
478
+ },
479
+ "required": [
480
+ "type",
481
+ "actions",
482
+ "locations"
483
+ ],
484
+ "additionalProperties": false
485
+ }
486
+ ],
487
+ "$schema": "http://json-schema.org/draft-07/schema#"
488
+ },
489
+ "grant": {
490
+ "anyOf": [
491
+ {
492
+ "type": "object",
493
+ "properties": {
494
+ "type": {
495
+ "const": "bank_account"
496
+ },
497
+ "actions": {
498
+ "type": "array",
499
+ "items": {
500
+ "enum": [
501
+ "read",
502
+ "read_balance"
503
+ ],
504
+ "type": "string"
505
+ },
506
+ "minItems": 1,
507
+ "uniqueItems": true
508
+ },
509
+ "locations": {
510
+ "type": "array",
511
+ "items": [
512
+ {
513
+ "const": "https://api.andco.com"
514
+ }
515
+ ],
516
+ "minItems": 1,
517
+ "additionalItems": false
518
+ },
519
+ "subject": {
520
+ "oneOf": [
521
+ {
522
+ "type": "object",
523
+ "properties": {
524
+ "type": {
525
+ "const": "profile"
526
+ },
527
+ "identifier": {
528
+ "type": "string",
529
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
530
+ }
531
+ },
532
+ "required": [
533
+ "type",
534
+ "identifier"
535
+ ],
536
+ "additionalProperties": false
537
+ },
538
+ {
539
+ "type": "object",
540
+ "properties": {
541
+ "type": {
542
+ "const": "organization"
543
+ },
544
+ "identifier": {
545
+ "type": "string",
546
+ "pattern": "^[1-9][0-9]{0,9}$"
547
+ }
548
+ },
549
+ "required": [
550
+ "type",
551
+ "identifier"
552
+ ],
553
+ "additionalProperties": false
554
+ }
555
+ ]
556
+ },
557
+ "accounts": {
558
+ "type": "array",
559
+ "items": {
560
+ "anyOf": [
561
+ {
562
+ "type": "object",
563
+ "properties": {
564
+ "type": {
565
+ "const": "account_key"
566
+ },
567
+ "pattern": {
568
+ "type": "string",
569
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
570
+ }
571
+ },
572
+ "required": [
573
+ "type",
574
+ "pattern"
575
+ ],
576
+ "additionalProperties": false
577
+ },
578
+ {
579
+ "type": "object",
580
+ "properties": {
581
+ "type": {
582
+ "const": "account"
583
+ },
584
+ "id": {
585
+ "type": "string",
586
+ "format": "uuid"
587
+ }
588
+ },
589
+ "required": [
590
+ "type",
591
+ "id"
592
+ ],
593
+ "additionalProperties": false
594
+ },
595
+ {
596
+ "type": "object",
597
+ "properties": {
598
+ "type": {
599
+ "const": "any"
600
+ },
601
+ "limit": {
602
+ "const": "own"
603
+ }
604
+ },
605
+ "required": [
606
+ "type",
607
+ "limit"
608
+ ],
609
+ "additionalProperties": false
610
+ }
611
+ ]
612
+ },
613
+ "minItems": 1,
614
+ "maxItems": 100,
615
+ "uniqueItems": true
616
+ }
617
+ },
618
+ "required": [
619
+ "type",
620
+ "actions",
621
+ "locations",
622
+ "subject",
623
+ "accounts"
624
+ ],
625
+ "additionalProperties": false
626
+ },
627
+ {
628
+ "type": "object",
629
+ "properties": {
630
+ "type": {
631
+ "const": "bank_account"
632
+ },
633
+ "actions": {
634
+ "type": "array",
635
+ "items": {
636
+ "enum": [
637
+ "create",
638
+ "close"
639
+ ],
640
+ "type": "string"
641
+ },
642
+ "minItems": 1,
643
+ "uniqueItems": true
644
+ },
645
+ "locations": {
646
+ "type": "array",
647
+ "items": [
648
+ {
649
+ "const": "https://api.andco.com"
650
+ }
651
+ ],
652
+ "minItems": 1,
653
+ "additionalItems": false
654
+ },
655
+ "subject": {
656
+ "oneOf": [
657
+ {
658
+ "type": "object",
659
+ "properties": {
660
+ "type": {
661
+ "const": "profile"
662
+ },
663
+ "identifier": {
664
+ "type": "string",
665
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
666
+ }
667
+ },
668
+ "required": [
669
+ "type",
670
+ "identifier"
671
+ ],
672
+ "additionalProperties": false
673
+ },
674
+ {
675
+ "type": "object",
676
+ "properties": {
677
+ "type": {
678
+ "const": "organization"
679
+ },
680
+ "identifier": {
681
+ "type": "string",
682
+ "pattern": "^[1-9][0-9]{0,9}$"
683
+ }
684
+ },
685
+ "required": [
686
+ "type",
687
+ "identifier"
688
+ ],
689
+ "additionalProperties": false
690
+ }
691
+ ]
692
+ },
693
+ "accounts": {
694
+ "type": "array",
695
+ "items": {
696
+ "type": "object",
697
+ "properties": {
698
+ "type": {
699
+ "const": "account_key"
700
+ },
701
+ "pattern": {
702
+ "type": "string",
703
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
704
+ }
705
+ },
706
+ "required": [
707
+ "type",
708
+ "pattern"
709
+ ],
710
+ "additionalProperties": false
711
+ },
712
+ "minItems": 1,
713
+ "maxItems": 100,
714
+ "uniqueItems": true
715
+ }
716
+ },
717
+ "required": [
718
+ "type",
719
+ "actions",
720
+ "locations",
721
+ "subject",
722
+ "accounts"
723
+ ],
724
+ "additionalProperties": false
725
+ },
726
+ {
727
+ "type": "object",
728
+ "properties": {
729
+ "type": {
730
+ "const": "bank_account"
731
+ },
732
+ "actions": {
733
+ "type": "array",
734
+ "items": {
735
+ "enum": [
736
+ "approve",
737
+ "reject"
738
+ ],
739
+ "type": "string"
740
+ },
741
+ "minItems": 1,
742
+ "uniqueItems": true
743
+ },
744
+ "locations": {
745
+ "type": "array",
746
+ "items": [
747
+ {
748
+ "const": "https://api.andco.com"
749
+ }
750
+ ],
751
+ "minItems": 1,
752
+ "additionalItems": false
753
+ },
754
+ "subject": {
755
+ "oneOf": [
756
+ {
757
+ "type": "object",
758
+ "properties": {
759
+ "type": {
760
+ "const": "profile"
761
+ },
762
+ "identifier": {
763
+ "type": "string",
764
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
765
+ }
766
+ },
767
+ "required": [
768
+ "type",
769
+ "identifier"
770
+ ],
771
+ "additionalProperties": false
772
+ },
773
+ {
774
+ "type": "object",
775
+ "properties": {
776
+ "type": {
777
+ "const": "organization"
778
+ },
779
+ "identifier": {
780
+ "type": "string",
781
+ "pattern": "^[1-9][0-9]{0,9}$"
782
+ }
783
+ },
784
+ "required": [
785
+ "type",
786
+ "identifier"
787
+ ],
788
+ "additionalProperties": false
789
+ }
790
+ ]
791
+ }
792
+ },
793
+ "required": [
794
+ "type",
795
+ "actions",
796
+ "locations",
797
+ "subject"
798
+ ],
799
+ "additionalProperties": false
800
+ }
801
+ ],
802
+ "$schema": "http://json-schema.org/draft-07/schema#"
803
+ }
804
+ },
805
+ "bank_transaction": {
806
+ "grantRequest": {
807
+ "type": "object",
808
+ "properties": {
809
+ "type": {
810
+ "const": "bank_transaction"
811
+ },
812
+ "actions": {
813
+ "type": "array",
814
+ "items": {
815
+ "enum": [
816
+ "read"
817
+ ],
818
+ "type": "string"
819
+ },
820
+ "minItems": 1,
821
+ "uniqueItems": true
822
+ },
823
+ "locations": {
824
+ "type": "array",
825
+ "items": [
826
+ {
827
+ "const": "https://api.andco.com"
828
+ }
829
+ ],
830
+ "minItems": 1,
831
+ "additionalItems": false
832
+ },
833
+ "subject": {
834
+ "anyOf": [
835
+ {
836
+ "oneOf": [
837
+ {
838
+ "type": "object",
839
+ "properties": {
840
+ "type": {
841
+ "const": "profile"
842
+ },
843
+ "identifier": {
844
+ "anyOf": [
845
+ {
846
+ "type": "string",
847
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
848
+ },
849
+ {
850
+ "type": "null"
851
+ }
852
+ ]
853
+ }
854
+ },
855
+ "required": [
856
+ "type"
857
+ ],
858
+ "additionalProperties": false
859
+ },
860
+ {
861
+ "type": "object",
862
+ "properties": {
863
+ "type": {
864
+ "const": "organization"
865
+ },
866
+ "identifier": {
867
+ "anyOf": [
868
+ {
869
+ "type": "string",
870
+ "pattern": "^[1-9][0-9]{0,9}$"
871
+ },
872
+ {
873
+ "type": "null"
874
+ }
875
+ ]
876
+ },
877
+ "editable": {
878
+ "anyOf": [
879
+ {
880
+ "type": "boolean"
881
+ },
882
+ {
883
+ "type": "null"
884
+ }
885
+ ]
886
+ }
887
+ },
888
+ "required": [
889
+ "type"
890
+ ],
891
+ "additionalProperties": false
892
+ }
893
+ ]
894
+ },
895
+ {
896
+ "type": "null"
897
+ }
898
+ ]
899
+ },
900
+ "accounts": {
901
+ "anyOf": [
902
+ {
903
+ "type": "array",
904
+ "items": {
905
+ "anyOf": [
906
+ {
907
+ "type": "object",
908
+ "properties": {
909
+ "type": {
910
+ "anyOf": [
911
+ {
912
+ "const": "account_key"
913
+ },
914
+ {
915
+ "type": "null"
916
+ }
917
+ ]
918
+ },
919
+ "pattern": {
920
+ "type": "string",
921
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
922
+ },
923
+ "editable": {
924
+ "anyOf": [
925
+ {
926
+ "type": "boolean"
927
+ },
928
+ {
929
+ "type": "null"
930
+ }
931
+ ]
932
+ },
933
+ "selection": {
934
+ "anyOf": [
935
+ {
936
+ "enum": [
937
+ "single",
938
+ "multiple"
939
+ ],
940
+ "type": "string"
941
+ },
942
+ {
943
+ "type": "null"
944
+ }
945
+ ]
946
+ }
947
+ },
948
+ "required": [
949
+ "pattern"
950
+ ],
951
+ "additionalProperties": false
952
+ },
953
+ {
954
+ "type": "object",
955
+ "properties": {
956
+ "type": {
957
+ "const": "account"
958
+ },
959
+ "id": {
960
+ "type": "string",
961
+ "format": "uuid"
962
+ },
963
+ "editable": {
964
+ "anyOf": [
965
+ {
966
+ "type": "boolean"
967
+ },
968
+ {
969
+ "type": "null"
970
+ }
971
+ ]
972
+ }
973
+ },
974
+ "required": [
975
+ "type",
976
+ "id"
977
+ ],
978
+ "additionalProperties": false
979
+ },
980
+ {
981
+ "type": "object",
982
+ "properties": {
983
+ "type": {
984
+ "const": "any"
985
+ },
986
+ "limit": {
987
+ "const": "own"
988
+ },
989
+ "editable": {
990
+ "anyOf": [
991
+ {
992
+ "type": "boolean"
993
+ },
994
+ {
995
+ "type": "null"
996
+ }
997
+ ]
998
+ },
999
+ "selection": {
1000
+ "anyOf": [
1001
+ {
1002
+ "enum": [
1003
+ "single",
1004
+ "multiple"
1005
+ ],
1006
+ "type": "string"
1007
+ },
1008
+ {
1009
+ "type": "null"
1010
+ }
1011
+ ]
1012
+ }
1013
+ },
1014
+ "required": [
1015
+ "type",
1016
+ "limit"
1017
+ ],
1018
+ "additionalProperties": false
1019
+ }
1020
+ ]
1021
+ },
1022
+ "minItems": 1,
1023
+ "maxItems": 100,
1024
+ "uniqueItems": true
1025
+ },
1026
+ {
1027
+ "type": "null"
1028
+ }
1029
+ ]
1030
+ }
1031
+ },
1032
+ "required": [
1033
+ "type",
1034
+ "actions",
1035
+ "locations"
1036
+ ],
1037
+ "additionalProperties": false,
1038
+ "$schema": "http://json-schema.org/draft-07/schema#"
1039
+ },
1040
+ "grant": {
1041
+ "type": "object",
1042
+ "properties": {
1043
+ "type": {
1044
+ "const": "bank_transaction"
1045
+ },
1046
+ "actions": {
1047
+ "type": "array",
1048
+ "items": {
1049
+ "enum": [
1050
+ "read"
1051
+ ],
1052
+ "type": "string"
1053
+ },
1054
+ "minItems": 1,
1055
+ "uniqueItems": true
1056
+ },
1057
+ "locations": {
1058
+ "type": "array",
1059
+ "items": [
1060
+ {
1061
+ "const": "https://api.andco.com"
1062
+ }
1063
+ ],
1064
+ "minItems": 1,
1065
+ "additionalItems": false
1066
+ },
1067
+ "subject": {
1068
+ "oneOf": [
1069
+ {
1070
+ "type": "object",
1071
+ "properties": {
1072
+ "type": {
1073
+ "const": "profile"
1074
+ },
1075
+ "identifier": {
1076
+ "type": "string",
1077
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
1078
+ }
1079
+ },
1080
+ "required": [
1081
+ "type",
1082
+ "identifier"
1083
+ ],
1084
+ "additionalProperties": false
1085
+ },
1086
+ {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "type": {
1090
+ "const": "organization"
1091
+ },
1092
+ "identifier": {
1093
+ "type": "string",
1094
+ "pattern": "^[1-9][0-9]{0,9}$"
1095
+ }
1096
+ },
1097
+ "required": [
1098
+ "type",
1099
+ "identifier"
1100
+ ],
1101
+ "additionalProperties": false
1102
+ }
1103
+ ]
1104
+ },
1105
+ "accounts": {
1106
+ "type": "array",
1107
+ "items": {
1108
+ "anyOf": [
1109
+ {
1110
+ "type": "object",
1111
+ "properties": {
1112
+ "type": {
1113
+ "const": "account_key"
1114
+ },
1115
+ "pattern": {
1116
+ "type": "string",
1117
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
1118
+ }
1119
+ },
1120
+ "required": [
1121
+ "type",
1122
+ "pattern"
1123
+ ],
1124
+ "additionalProperties": false
1125
+ },
1126
+ {
1127
+ "type": "object",
1128
+ "properties": {
1129
+ "type": {
1130
+ "const": "account"
1131
+ },
1132
+ "id": {
1133
+ "type": "string",
1134
+ "format": "uuid"
1135
+ }
1136
+ },
1137
+ "required": [
1138
+ "type",
1139
+ "id"
1140
+ ],
1141
+ "additionalProperties": false
1142
+ },
1143
+ {
1144
+ "type": "object",
1145
+ "properties": {
1146
+ "type": {
1147
+ "const": "any"
1148
+ },
1149
+ "limit": {
1150
+ "const": "own"
1151
+ }
1152
+ },
1153
+ "required": [
1154
+ "type",
1155
+ "limit"
1156
+ ],
1157
+ "additionalProperties": false
1158
+ }
1159
+ ]
1160
+ },
1161
+ "minItems": 1,
1162
+ "maxItems": 100,
1163
+ "uniqueItems": true
1164
+ }
1165
+ },
1166
+ "required": [
1167
+ "type",
1168
+ "actions",
1169
+ "locations",
1170
+ "subject",
1171
+ "accounts"
1172
+ ],
1173
+ "additionalProperties": false,
1174
+ "$schema": "http://json-schema.org/draft-07/schema#"
1175
+ }
1176
+ },
1177
+ "bank_transfer": {
1178
+ "grantRequest": {
1179
+ "anyOf": [
1180
+ {
1181
+ "type": "object",
1182
+ "properties": {
1183
+ "type": {
1184
+ "const": "bank_transfer"
1185
+ },
1186
+ "actions": {
1187
+ "type": "array",
1188
+ "items": {
1189
+ "enum": [
1190
+ "create"
1191
+ ],
1192
+ "type": "string"
1193
+ },
1194
+ "minItems": 1,
1195
+ "uniqueItems": true
1196
+ },
1197
+ "locations": {
1198
+ "type": "array",
1199
+ "items": [
1200
+ {
1201
+ "const": "https://api.andco.com"
1202
+ }
1203
+ ],
1204
+ "minItems": 1,
1205
+ "additionalItems": false
1206
+ },
1207
+ "subject": {
1208
+ "anyOf": [
1209
+ {
1210
+ "oneOf": [
1211
+ {
1212
+ "type": "object",
1213
+ "properties": {
1214
+ "type": {
1215
+ "const": "profile"
1216
+ },
1217
+ "identifier": {
1218
+ "anyOf": [
1219
+ {
1220
+ "type": "string",
1221
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
1222
+ },
1223
+ {
1224
+ "type": "null"
1225
+ }
1226
+ ]
1227
+ }
1228
+ },
1229
+ "required": [
1230
+ "type"
1231
+ ],
1232
+ "additionalProperties": false
1233
+ },
1234
+ {
1235
+ "type": "object",
1236
+ "properties": {
1237
+ "type": {
1238
+ "const": "organization"
1239
+ },
1240
+ "identifier": {
1241
+ "anyOf": [
1242
+ {
1243
+ "type": "string",
1244
+ "pattern": "^[1-9][0-9]{0,9}$"
1245
+ },
1246
+ {
1247
+ "type": "null"
1248
+ }
1249
+ ]
1250
+ },
1251
+ "editable": {
1252
+ "anyOf": [
1253
+ {
1254
+ "type": "boolean"
1255
+ },
1256
+ {
1257
+ "type": "null"
1258
+ }
1259
+ ]
1260
+ }
1261
+ },
1262
+ "required": [
1263
+ "type"
1264
+ ],
1265
+ "additionalProperties": false
1266
+ }
1267
+ ]
1268
+ },
1269
+ {
1270
+ "type": "null"
1271
+ }
1272
+ ]
1273
+ },
1274
+ "sources": {
1275
+ "anyOf": [
1276
+ {
1277
+ "type": "array",
1278
+ "items": {
1279
+ "anyOf": [
1280
+ {
1281
+ "type": "object",
1282
+ "properties": {
1283
+ "type": {
1284
+ "anyOf": [
1285
+ {
1286
+ "const": "account_key"
1287
+ },
1288
+ {
1289
+ "type": "null"
1290
+ }
1291
+ ]
1292
+ },
1293
+ "pattern": {
1294
+ "type": "string",
1295
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
1296
+ },
1297
+ "editable": {
1298
+ "anyOf": [
1299
+ {
1300
+ "type": "boolean"
1301
+ },
1302
+ {
1303
+ "type": "null"
1304
+ }
1305
+ ]
1306
+ },
1307
+ "selection": {
1308
+ "anyOf": [
1309
+ {
1310
+ "enum": [
1311
+ "single",
1312
+ "multiple"
1313
+ ],
1314
+ "type": "string"
1315
+ },
1316
+ {
1317
+ "type": "null"
1318
+ }
1319
+ ]
1320
+ }
1321
+ },
1322
+ "required": [
1323
+ "pattern"
1324
+ ],
1325
+ "additionalProperties": false
1326
+ },
1327
+ {
1328
+ "type": "object",
1329
+ "properties": {
1330
+ "type": {
1331
+ "const": "account"
1332
+ },
1333
+ "id": {
1334
+ "type": "string",
1335
+ "format": "uuid"
1336
+ },
1337
+ "editable": {
1338
+ "anyOf": [
1339
+ {
1340
+ "type": "boolean"
1341
+ },
1342
+ {
1343
+ "type": "null"
1344
+ }
1345
+ ]
1346
+ }
1347
+ },
1348
+ "required": [
1349
+ "type",
1350
+ "id"
1351
+ ],
1352
+ "additionalProperties": false
1353
+ },
1354
+ {
1355
+ "type": "object",
1356
+ "properties": {
1357
+ "type": {
1358
+ "const": "any"
1359
+ },
1360
+ "limit": {
1361
+ "const": "own"
1362
+ },
1363
+ "editable": {
1364
+ "anyOf": [
1365
+ {
1366
+ "type": "boolean"
1367
+ },
1368
+ {
1369
+ "type": "null"
1370
+ }
1371
+ ]
1372
+ },
1373
+ "selection": {
1374
+ "anyOf": [
1375
+ {
1376
+ "enum": [
1377
+ "single",
1378
+ "multiple"
1379
+ ],
1380
+ "type": "string"
1381
+ },
1382
+ {
1383
+ "type": "null"
1384
+ }
1385
+ ]
1386
+ }
1387
+ },
1388
+ "required": [
1389
+ "type",
1390
+ "limit"
1391
+ ],
1392
+ "additionalProperties": false
1393
+ }
1394
+ ]
1395
+ },
1396
+ "minItems": 1,
1397
+ "maxItems": 100,
1398
+ "uniqueItems": true
1399
+ },
1400
+ {
1401
+ "type": "null"
1402
+ }
1403
+ ]
1404
+ },
1405
+ "destinations": {
1406
+ "type": "array",
1407
+ "items": {
1408
+ "anyOf": [
1409
+ {
1410
+ "type": "object",
1411
+ "properties": {
1412
+ "type": {
1413
+ "anyOf": [
1414
+ {
1415
+ "const": "account_key"
1416
+ },
1417
+ {
1418
+ "type": "null"
1419
+ }
1420
+ ]
1421
+ },
1422
+ "pattern": {
1423
+ "type": "string",
1424
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
1425
+ },
1426
+ "editable": {
1427
+ "anyOf": [
1428
+ {
1429
+ "type": "boolean"
1430
+ },
1431
+ {
1432
+ "type": "null"
1433
+ }
1434
+ ]
1435
+ },
1436
+ "selection": {
1437
+ "anyOf": [
1438
+ {
1439
+ "enum": [
1440
+ "single",
1441
+ "multiple"
1442
+ ],
1443
+ "type": "string"
1444
+ },
1445
+ {
1446
+ "type": "null"
1447
+ }
1448
+ ]
1449
+ }
1450
+ },
1451
+ "required": [
1452
+ "pattern"
1453
+ ],
1454
+ "additionalProperties": false
1455
+ },
1456
+ {
1457
+ "type": "object",
1458
+ "properties": {
1459
+ "type": {
1460
+ "const": "account"
1461
+ },
1462
+ "id": {
1463
+ "type": "string",
1464
+ "format": "uuid"
1465
+ },
1466
+ "editable": {
1467
+ "anyOf": [
1468
+ {
1469
+ "type": "boolean"
1470
+ },
1471
+ {
1472
+ "type": "null"
1473
+ }
1474
+ ]
1475
+ }
1476
+ },
1477
+ "required": [
1478
+ "type",
1479
+ "id"
1480
+ ],
1481
+ "additionalProperties": false
1482
+ },
1483
+ {
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "type": {
1487
+ "const": "any"
1488
+ },
1489
+ "limit": {
1490
+ "const": "own"
1491
+ },
1492
+ "editable": {
1493
+ "anyOf": [
1494
+ {
1495
+ "type": "boolean"
1496
+ },
1497
+ {
1498
+ "type": "null"
1499
+ }
1500
+ ]
1501
+ },
1502
+ "selection": {
1503
+ "anyOf": [
1504
+ {
1505
+ "enum": [
1506
+ "single",
1507
+ "multiple"
1508
+ ],
1509
+ "type": "string"
1510
+ },
1511
+ {
1512
+ "type": "null"
1513
+ }
1514
+ ]
1515
+ }
1516
+ },
1517
+ "required": [
1518
+ "type",
1519
+ "limit"
1520
+ ],
1521
+ "additionalProperties": false
1522
+ },
1523
+ {
1524
+ "type": "object",
1525
+ "properties": {
1526
+ "type": {
1527
+ "const": "any"
1528
+ },
1529
+ "limit": {
1530
+ "const": "local"
1531
+ },
1532
+ "editable": {
1533
+ "anyOf": [
1534
+ {
1535
+ "type": "boolean"
1536
+ },
1537
+ {
1538
+ "type": "null"
1539
+ }
1540
+ ]
1541
+ }
1542
+ },
1543
+ "required": [
1544
+ "type",
1545
+ "limit"
1546
+ ],
1547
+ "additionalProperties": false
1548
+ },
1549
+ {
1550
+ "type": "object",
1551
+ "properties": {
1552
+ "type": {
1553
+ "const": "any"
1554
+ },
1555
+ "limit": {
1556
+ "const": "all"
1557
+ }
1558
+ },
1559
+ "required": [
1560
+ "type",
1561
+ "limit"
1562
+ ],
1563
+ "additionalProperties": false
1564
+ },
1565
+ {
1566
+ "type": "object",
1567
+ "properties": {
1568
+ "type": {
1569
+ "const": "external"
1570
+ },
1571
+ "bank_id": {
1572
+ "anyOf": [
1573
+ {
1574
+ "type": "string",
1575
+ "minLength": 1,
1576
+ "maxLength": 128,
1577
+ "pattern": "\\S"
1578
+ },
1579
+ {
1580
+ "type": "null"
1581
+ }
1582
+ ]
1583
+ },
1584
+ "account_type": {
1585
+ "anyOf": [
1586
+ {
1587
+ "type": "string",
1588
+ "minLength": 1,
1589
+ "maxLength": 128,
1590
+ "pattern": "\\S"
1591
+ },
1592
+ {
1593
+ "type": "null"
1594
+ }
1595
+ ]
1596
+ },
1597
+ "account_id": {
1598
+ "anyOf": [
1599
+ {
1600
+ "type": "string",
1601
+ "minLength": 1,
1602
+ "maxLength": 128,
1603
+ "pattern": "\\S"
1604
+ },
1605
+ {
1606
+ "type": "null"
1607
+ }
1608
+ ]
1609
+ },
1610
+ "holder_id": {
1611
+ "anyOf": [
1612
+ {
1613
+ "type": "string",
1614
+ "minLength": 1,
1615
+ "maxLength": 128,
1616
+ "pattern": "\\S"
1617
+ },
1618
+ {
1619
+ "type": "null"
1620
+ }
1621
+ ]
1622
+ },
1623
+ "holder_name": {
1624
+ "anyOf": [
1625
+ {
1626
+ "type": "string",
1627
+ "minLength": 1,
1628
+ "maxLength": 128,
1629
+ "pattern": "\\S"
1630
+ },
1631
+ {
1632
+ "type": "null"
1633
+ }
1634
+ ]
1635
+ },
1636
+ "editable": {
1637
+ "anyOf": [
1638
+ {
1639
+ "type": "boolean"
1640
+ },
1641
+ {
1642
+ "type": "null"
1643
+ }
1644
+ ]
1645
+ }
1646
+ },
1647
+ "required": [
1648
+ "type"
1649
+ ],
1650
+ "additionalProperties": false
1651
+ }
1652
+ ]
1653
+ },
1654
+ "minItems": 1,
1655
+ "maxItems": 100,
1656
+ "uniqueItems": true
1657
+ },
1658
+ "currency": {
1659
+ "enum": [
1660
+ "CLP"
1661
+ ],
1662
+ "type": "string"
1663
+ },
1664
+ "transactions": {
1665
+ "anyOf": [
1666
+ {
1667
+ "anyOf": [
1668
+ {
1669
+ "type": "object",
1670
+ "properties": {
1671
+ "value": {
1672
+ "type": "string",
1673
+ "pattern": "^[1-9][0-9]{3,14}$"
1674
+ },
1675
+ "minimum": {
1676
+ "type": "null"
1677
+ },
1678
+ "maximum": {
1679
+ "type": "null"
1680
+ },
1681
+ "editable": {
1682
+ "anyOf": [
1683
+ {
1684
+ "type": "boolean"
1685
+ },
1686
+ {
1687
+ "type": "null"
1688
+ }
1689
+ ]
1690
+ }
1691
+ },
1692
+ "required": [
1693
+ "value"
1694
+ ],
1695
+ "additionalProperties": false
1696
+ },
1697
+ {
1698
+ "type": "object",
1699
+ "properties": {
1700
+ "value": {
1701
+ "type": "null"
1702
+ },
1703
+ "minimum": {
1704
+ "anyOf": [
1705
+ {
1706
+ "type": "string",
1707
+ "pattern": "^[1-9][0-9]{3,14}$"
1708
+ },
1709
+ {
1710
+ "type": "null"
1711
+ }
1712
+ ]
1713
+ },
1714
+ "maximum": {
1715
+ "anyOf": [
1716
+ {
1717
+ "type": "string",
1718
+ "pattern": "^[1-9][0-9]{3,14}$"
1719
+ },
1720
+ {
1721
+ "type": "null"
1722
+ }
1723
+ ]
1724
+ },
1725
+ "editable": {
1726
+ "anyOf": [
1727
+ {
1728
+ "type": "boolean"
1729
+ },
1730
+ {
1731
+ "type": "null"
1732
+ }
1733
+ ]
1734
+ }
1735
+ },
1736
+ "required": [],
1737
+ "additionalProperties": false
1738
+ }
1739
+ ]
1740
+ },
1741
+ {
1742
+ "type": "null"
1743
+ }
1744
+ ]
1745
+ },
1746
+ "budgets": {
1747
+ "type": "null"
1748
+ }
1749
+ },
1750
+ "required": [
1751
+ "type",
1752
+ "actions",
1753
+ "locations",
1754
+ "destinations",
1755
+ "currency"
1756
+ ],
1757
+ "additionalProperties": false
1758
+ },
1759
+ {
1760
+ "type": "object",
1761
+ "properties": {
1762
+ "type": {
1763
+ "const": "bank_transfer"
1764
+ },
1765
+ "actions": {
1766
+ "type": "array",
1767
+ "items": {
1768
+ "enum": [
1769
+ "approve",
1770
+ "reject"
1771
+ ],
1772
+ "type": "string"
1773
+ },
1774
+ "minItems": 1,
1775
+ "uniqueItems": true
1776
+ },
1777
+ "locations": {
1778
+ "type": "array",
1779
+ "items": [
1780
+ {
1781
+ "const": "https://api.andco.com"
1782
+ }
1783
+ ],
1784
+ "minItems": 1,
1785
+ "additionalItems": false
1786
+ },
1787
+ "subject": {
1788
+ "anyOf": [
1789
+ {
1790
+ "oneOf": [
1791
+ {
1792
+ "type": "object",
1793
+ "properties": {
1794
+ "type": {
1795
+ "const": "profile"
1796
+ },
1797
+ "identifier": {
1798
+ "anyOf": [
1799
+ {
1800
+ "type": "string",
1801
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
1802
+ },
1803
+ {
1804
+ "type": "null"
1805
+ }
1806
+ ]
1807
+ }
1808
+ },
1809
+ "required": [
1810
+ "type"
1811
+ ],
1812
+ "additionalProperties": false
1813
+ },
1814
+ {
1815
+ "type": "object",
1816
+ "properties": {
1817
+ "type": {
1818
+ "const": "organization"
1819
+ },
1820
+ "identifier": {
1821
+ "anyOf": [
1822
+ {
1823
+ "type": "string",
1824
+ "pattern": "^[1-9][0-9]{0,9}$"
1825
+ },
1826
+ {
1827
+ "type": "null"
1828
+ }
1829
+ ]
1830
+ },
1831
+ "editable": {
1832
+ "anyOf": [
1833
+ {
1834
+ "type": "boolean"
1835
+ },
1836
+ {
1837
+ "type": "null"
1838
+ }
1839
+ ]
1840
+ }
1841
+ },
1842
+ "required": [
1843
+ "type"
1844
+ ],
1845
+ "additionalProperties": false
1846
+ }
1847
+ ]
1848
+ },
1849
+ {
1850
+ "type": "null"
1851
+ }
1852
+ ]
1853
+ },
1854
+ "transactions": {
1855
+ "anyOf": [
1856
+ {
1857
+ "type": "object",
1858
+ "properties": {
1859
+ "minimum": {
1860
+ "anyOf": [
1861
+ {
1862
+ "type": "string",
1863
+ "pattern": "^[1-9][0-9]{3,14}$"
1864
+ },
1865
+ {
1866
+ "type": "null"
1867
+ }
1868
+ ]
1869
+ },
1870
+ "maximum": {
1871
+ "anyOf": [
1872
+ {
1873
+ "type": "string",
1874
+ "pattern": "^[1-9][0-9]{3,14}$"
1875
+ },
1876
+ {
1877
+ "type": "null"
1878
+ }
1879
+ ]
1880
+ }
1881
+ },
1882
+ "required": [],
1883
+ "additionalProperties": false
1884
+ },
1885
+ {
1886
+ "type": "null"
1887
+ }
1888
+ ]
1889
+ }
1890
+ },
1891
+ "required": [
1892
+ "type",
1893
+ "actions",
1894
+ "locations"
1895
+ ],
1896
+ "additionalProperties": false
1897
+ }
1898
+ ],
1899
+ "$schema": "http://json-schema.org/draft-07/schema#"
1900
+ },
1901
+ "grant": {
1902
+ "anyOf": [
1903
+ {
1904
+ "type": "object",
1905
+ "properties": {
1906
+ "type": {
1907
+ "const": "bank_transfer"
1908
+ },
1909
+ "actions": {
1910
+ "type": "array",
1911
+ "items": {
1912
+ "enum": [
1913
+ "create"
1914
+ ],
1915
+ "type": "string"
1916
+ },
1917
+ "minItems": 1,
1918
+ "uniqueItems": true
1919
+ },
1920
+ "locations": {
1921
+ "type": "array",
1922
+ "items": [
1923
+ {
1924
+ "const": "https://api.andco.com"
1925
+ }
1926
+ ],
1927
+ "minItems": 1,
1928
+ "additionalItems": false
1929
+ },
1930
+ "subject": {
1931
+ "oneOf": [
1932
+ {
1933
+ "type": "object",
1934
+ "properties": {
1935
+ "type": {
1936
+ "const": "profile"
1937
+ },
1938
+ "identifier": {
1939
+ "type": "string",
1940
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
1941
+ }
1942
+ },
1943
+ "required": [
1944
+ "type",
1945
+ "identifier"
1946
+ ],
1947
+ "additionalProperties": false
1948
+ },
1949
+ {
1950
+ "type": "object",
1951
+ "properties": {
1952
+ "type": {
1953
+ "const": "organization"
1954
+ },
1955
+ "identifier": {
1956
+ "type": "string",
1957
+ "pattern": "^[1-9][0-9]{0,9}$"
1958
+ }
1959
+ },
1960
+ "required": [
1961
+ "type",
1962
+ "identifier"
1963
+ ],
1964
+ "additionalProperties": false
1965
+ }
1966
+ ]
1967
+ },
1968
+ "sources": {
1969
+ "type": "array",
1970
+ "items": {
1971
+ "anyOf": [
1972
+ {
1973
+ "type": "object",
1974
+ "properties": {
1975
+ "type": {
1976
+ "const": "account_key"
1977
+ },
1978
+ "pattern": {
1979
+ "type": "string",
1980
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
1981
+ }
1982
+ },
1983
+ "required": [
1984
+ "type",
1985
+ "pattern"
1986
+ ],
1987
+ "additionalProperties": false
1988
+ },
1989
+ {
1990
+ "type": "object",
1991
+ "properties": {
1992
+ "type": {
1993
+ "const": "account"
1994
+ },
1995
+ "id": {
1996
+ "type": "string",
1997
+ "format": "uuid"
1998
+ }
1999
+ },
2000
+ "required": [
2001
+ "type",
2002
+ "id"
2003
+ ],
2004
+ "additionalProperties": false
2005
+ },
2006
+ {
2007
+ "type": "object",
2008
+ "properties": {
2009
+ "type": {
2010
+ "const": "any"
2011
+ },
2012
+ "limit": {
2013
+ "const": "own"
2014
+ }
2015
+ },
2016
+ "required": [
2017
+ "type",
2018
+ "limit"
2019
+ ],
2020
+ "additionalProperties": false
2021
+ }
2022
+ ]
2023
+ },
2024
+ "minItems": 1,
2025
+ "maxItems": 100,
2026
+ "uniqueItems": true
2027
+ },
2028
+ "destinations": {
2029
+ "type": "array",
2030
+ "items": {
2031
+ "anyOf": [
2032
+ {
2033
+ "type": "object",
2034
+ "properties": {
2035
+ "type": {
2036
+ "const": "account_key"
2037
+ },
2038
+ "pattern": {
2039
+ "type": "string",
2040
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
2041
+ }
2042
+ },
2043
+ "required": [
2044
+ "type",
2045
+ "pattern"
2046
+ ],
2047
+ "additionalProperties": false
2048
+ },
2049
+ {
2050
+ "type": "object",
2051
+ "properties": {
2052
+ "type": {
2053
+ "const": "account"
2054
+ },
2055
+ "id": {
2056
+ "type": "string",
2057
+ "format": "uuid"
2058
+ }
2059
+ },
2060
+ "required": [
2061
+ "type",
2062
+ "id"
2063
+ ],
2064
+ "additionalProperties": false
2065
+ },
2066
+ {
2067
+ "type": "object",
2068
+ "properties": {
2069
+ "type": {
2070
+ "const": "any"
2071
+ },
2072
+ "limit": {
2073
+ "const": "own"
2074
+ }
2075
+ },
2076
+ "required": [
2077
+ "type",
2078
+ "limit"
2079
+ ],
2080
+ "additionalProperties": false
2081
+ },
2082
+ {
2083
+ "type": "object",
2084
+ "properties": {
2085
+ "type": {
2086
+ "const": "any"
2087
+ },
2088
+ "limit": {
2089
+ "const": "local"
2090
+ }
2091
+ },
2092
+ "required": [
2093
+ "type",
2094
+ "limit"
2095
+ ],
2096
+ "additionalProperties": false
2097
+ },
2098
+ {
2099
+ "type": "object",
2100
+ "properties": {
2101
+ "type": {
2102
+ "const": "any"
2103
+ },
2104
+ "limit": {
2105
+ "const": "all"
2106
+ }
2107
+ },
2108
+ "required": [
2109
+ "type",
2110
+ "limit"
2111
+ ],
2112
+ "additionalProperties": false
2113
+ },
2114
+ {
2115
+ "type": "object",
2116
+ "properties": {
2117
+ "type": {
2118
+ "const": "external"
2119
+ },
2120
+ "bank_id": {
2121
+ "type": "string",
2122
+ "minLength": 1,
2123
+ "maxLength": 128,
2124
+ "pattern": "\\S"
2125
+ },
2126
+ "account_type": {
2127
+ "type": "string",
2128
+ "minLength": 1,
2129
+ "maxLength": 128,
2130
+ "pattern": "\\S"
2131
+ },
2132
+ "account_id": {
2133
+ "type": "string",
2134
+ "minLength": 1,
2135
+ "maxLength": 128,
2136
+ "pattern": "\\S"
2137
+ },
2138
+ "holder_id": {
2139
+ "type": "string",
2140
+ "minLength": 1,
2141
+ "maxLength": 128,
2142
+ "pattern": "\\S"
2143
+ },
2144
+ "holder_name": {
2145
+ "type": "string",
2146
+ "minLength": 1,
2147
+ "maxLength": 128,
2148
+ "pattern": "\\S"
2149
+ }
2150
+ },
2151
+ "required": [
2152
+ "type"
2153
+ ],
2154
+ "additionalProperties": false
2155
+ }
2156
+ ]
2157
+ },
2158
+ "minItems": 1,
2159
+ "maxItems": 100,
2160
+ "uniqueItems": true
2161
+ },
2162
+ "currency": {
2163
+ "enum": [
2164
+ "CLP"
2165
+ ],
2166
+ "type": "string"
2167
+ },
2168
+ "transactions": {
2169
+ "anyOf": [
2170
+ {
2171
+ "type": "object",
2172
+ "properties": {
2173
+ "value": {
2174
+ "type": "string",
2175
+ "pattern": "^[1-9][0-9]{3,14}$"
2176
+ },
2177
+ "minimum": {
2178
+ "not": {}
2179
+ },
2180
+ "maximum": {
2181
+ "not": {}
2182
+ }
2183
+ },
2184
+ "required": [
2185
+ "value"
2186
+ ],
2187
+ "additionalProperties": false
2188
+ },
2189
+ {
2190
+ "type": "object",
2191
+ "properties": {
2192
+ "value": {
2193
+ "not": {}
2194
+ },
2195
+ "minimum": {
2196
+ "type": "string",
2197
+ "pattern": "^[1-9][0-9]{3,14}$"
2198
+ },
2199
+ "maximum": {
2200
+ "type": "string",
2201
+ "pattern": "^[1-9][0-9]{3,14}$"
2202
+ }
2203
+ },
2204
+ "required": [],
2205
+ "additionalProperties": false
2206
+ }
2207
+ ]
2208
+ }
2209
+ },
2210
+ "required": [
2211
+ "type",
2212
+ "actions",
2213
+ "locations",
2214
+ "subject",
2215
+ "sources",
2216
+ "destinations",
2217
+ "currency"
2218
+ ],
2219
+ "additionalProperties": false
2220
+ },
2221
+ {
2222
+ "type": "object",
2223
+ "properties": {
2224
+ "type": {
2225
+ "const": "bank_transfer"
2226
+ },
2227
+ "actions": {
2228
+ "type": "array",
2229
+ "items": {
2230
+ "enum": [
2231
+ "approve",
2232
+ "reject"
2233
+ ],
2234
+ "type": "string"
2235
+ },
2236
+ "minItems": 1,
2237
+ "uniqueItems": true
2238
+ },
2239
+ "locations": {
2240
+ "type": "array",
2241
+ "items": [
2242
+ {
2243
+ "const": "https://api.andco.com"
2244
+ }
2245
+ ],
2246
+ "minItems": 1,
2247
+ "additionalItems": false
2248
+ },
2249
+ "subject": {
2250
+ "oneOf": [
2251
+ {
2252
+ "type": "object",
2253
+ "properties": {
2254
+ "type": {
2255
+ "const": "profile"
2256
+ },
2257
+ "identifier": {
2258
+ "type": "string",
2259
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
2260
+ }
2261
+ },
2262
+ "required": [
2263
+ "type",
2264
+ "identifier"
2265
+ ],
2266
+ "additionalProperties": false
2267
+ },
2268
+ {
2269
+ "type": "object",
2270
+ "properties": {
2271
+ "type": {
2272
+ "const": "organization"
2273
+ },
2274
+ "identifier": {
2275
+ "type": "string",
2276
+ "pattern": "^[1-9][0-9]{0,9}$"
2277
+ }
2278
+ },
2279
+ "required": [
2280
+ "type",
2281
+ "identifier"
2282
+ ],
2283
+ "additionalProperties": false
2284
+ }
2285
+ ]
2286
+ },
2287
+ "transactions": {
2288
+ "type": "object",
2289
+ "properties": {
2290
+ "minimum": {
2291
+ "type": "string",
2292
+ "pattern": "^[1-9][0-9]{3,14}$"
2293
+ },
2294
+ "maximum": {
2295
+ "type": "string",
2296
+ "pattern": "^[1-9][0-9]{3,14}$"
2297
+ }
2298
+ },
2299
+ "required": [],
2300
+ "additionalProperties": false
2301
+ }
2302
+ },
2303
+ "required": [
2304
+ "type",
2305
+ "actions",
2306
+ "locations",
2307
+ "subject"
2308
+ ],
2309
+ "additionalProperties": false
2310
+ }
2311
+ ],
2312
+ "$schema": "http://json-schema.org/draft-07/schema#"
2313
+ }
2314
+ },
2315
+ "bank_deposit": {
2316
+ "grantRequest": {
2317
+ "type": "object",
2318
+ "properties": {
2319
+ "type": {
2320
+ "const": "bank_deposit"
2321
+ },
2322
+ "actions": {
2323
+ "type": "array",
2324
+ "items": {
2325
+ "enum": [
2326
+ "create",
2327
+ "read",
2328
+ "close"
2329
+ ],
2330
+ "type": "string"
2331
+ },
2332
+ "minItems": 1,
2333
+ "uniqueItems": true
2334
+ },
2335
+ "locations": {
2336
+ "type": "array",
2337
+ "items": [
2338
+ {
2339
+ "const": "https://api.andco.com"
2340
+ }
2341
+ ],
2342
+ "minItems": 1,
2343
+ "additionalItems": false
2344
+ },
2345
+ "subject": {
2346
+ "anyOf": [
2347
+ {
2348
+ "oneOf": [
2349
+ {
2350
+ "type": "object",
2351
+ "properties": {
2352
+ "type": {
2353
+ "const": "profile"
2354
+ },
2355
+ "identifier": {
2356
+ "anyOf": [
2357
+ {
2358
+ "type": "string",
2359
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
2360
+ },
2361
+ {
2362
+ "type": "null"
2363
+ }
2364
+ ]
2365
+ }
2366
+ },
2367
+ "required": [
2368
+ "type"
2369
+ ],
2370
+ "additionalProperties": false
2371
+ },
2372
+ {
2373
+ "type": "object",
2374
+ "properties": {
2375
+ "type": {
2376
+ "const": "organization"
2377
+ },
2378
+ "identifier": {
2379
+ "anyOf": [
2380
+ {
2381
+ "type": "string",
2382
+ "pattern": "^[1-9][0-9]{0,9}$"
2383
+ },
2384
+ {
2385
+ "type": "null"
2386
+ }
2387
+ ]
2388
+ },
2389
+ "editable": {
2390
+ "anyOf": [
2391
+ {
2392
+ "type": "boolean"
2393
+ },
2394
+ {
2395
+ "type": "null"
2396
+ }
2397
+ ]
2398
+ }
2399
+ },
2400
+ "required": [
2401
+ "type"
2402
+ ],
2403
+ "additionalProperties": false
2404
+ }
2405
+ ]
2406
+ },
2407
+ {
2408
+ "type": "null"
2409
+ }
2410
+ ]
2411
+ },
2412
+ "destinations": {
2413
+ "type": "array",
2414
+ "items": {
2415
+ "anyOf": [
2416
+ {
2417
+ "type": "object",
2418
+ "properties": {
2419
+ "type": {
2420
+ "anyOf": [
2421
+ {
2422
+ "const": "account_key"
2423
+ },
2424
+ {
2425
+ "type": "null"
2426
+ }
2427
+ ]
2428
+ },
2429
+ "pattern": {
2430
+ "type": "string",
2431
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
2432
+ },
2433
+ "editable": {
2434
+ "anyOf": [
2435
+ {
2436
+ "type": "boolean"
2437
+ },
2438
+ {
2439
+ "type": "null"
2440
+ }
2441
+ ]
2442
+ },
2443
+ "selection": {
2444
+ "anyOf": [
2445
+ {
2446
+ "enum": [
2447
+ "single",
2448
+ "multiple"
2449
+ ],
2450
+ "type": "string"
2451
+ },
2452
+ {
2453
+ "type": "null"
2454
+ }
2455
+ ]
2456
+ }
2457
+ },
2458
+ "required": [
2459
+ "pattern"
2460
+ ],
2461
+ "additionalProperties": false
2462
+ },
2463
+ {
2464
+ "type": "object",
2465
+ "properties": {
2466
+ "type": {
2467
+ "const": "account"
2468
+ },
2469
+ "id": {
2470
+ "type": "string",
2471
+ "format": "uuid"
2472
+ },
2473
+ "editable": {
2474
+ "anyOf": [
2475
+ {
2476
+ "type": "boolean"
2477
+ },
2478
+ {
2479
+ "type": "null"
2480
+ }
2481
+ ]
2482
+ }
2483
+ },
2484
+ "required": [
2485
+ "type",
2486
+ "id"
2487
+ ],
2488
+ "additionalProperties": false
2489
+ },
2490
+ {
2491
+ "type": "object",
2492
+ "properties": {
2493
+ "type": {
2494
+ "const": "any"
2495
+ },
2496
+ "limit": {
2497
+ "const": "own"
2498
+ },
2499
+ "editable": {
2500
+ "anyOf": [
2501
+ {
2502
+ "type": "boolean"
2503
+ },
2504
+ {
2505
+ "type": "null"
2506
+ }
2507
+ ]
2508
+ },
2509
+ "selection": {
2510
+ "anyOf": [
2511
+ {
2512
+ "enum": [
2513
+ "single",
2514
+ "multiple"
2515
+ ],
2516
+ "type": "string"
2517
+ },
2518
+ {
2519
+ "type": "null"
2520
+ }
2521
+ ]
2522
+ }
2523
+ },
2524
+ "required": [
2525
+ "type",
2526
+ "limit"
2527
+ ],
2528
+ "additionalProperties": false
2529
+ }
2530
+ ]
2531
+ },
2532
+ "minItems": 1,
2533
+ "maxItems": 100,
2534
+ "uniqueItems": true
2535
+ }
2536
+ },
2537
+ "required": [
2538
+ "type",
2539
+ "actions",
2540
+ "locations",
2541
+ "destinations"
2542
+ ],
2543
+ "additionalProperties": false,
2544
+ "$schema": "http://json-schema.org/draft-07/schema#"
2545
+ },
2546
+ "grant": {
2547
+ "type": "object",
2548
+ "properties": {
2549
+ "type": {
2550
+ "const": "bank_deposit"
2551
+ },
2552
+ "actions": {
2553
+ "type": "array",
2554
+ "items": {
2555
+ "enum": [
2556
+ "create",
2557
+ "read",
2558
+ "close"
2559
+ ],
2560
+ "type": "string"
2561
+ },
2562
+ "minItems": 1,
2563
+ "uniqueItems": true
2564
+ },
2565
+ "locations": {
2566
+ "type": "array",
2567
+ "items": [
2568
+ {
2569
+ "const": "https://api.andco.com"
2570
+ }
2571
+ ],
2572
+ "minItems": 1,
2573
+ "additionalItems": false
2574
+ },
2575
+ "subject": {
2576
+ "oneOf": [
2577
+ {
2578
+ "type": "object",
2579
+ "properties": {
2580
+ "type": {
2581
+ "const": "profile"
2582
+ },
2583
+ "identifier": {
2584
+ "type": "string",
2585
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
2586
+ }
2587
+ },
2588
+ "required": [
2589
+ "type",
2590
+ "identifier"
2591
+ ],
2592
+ "additionalProperties": false
2593
+ },
2594
+ {
2595
+ "type": "object",
2596
+ "properties": {
2597
+ "type": {
2598
+ "const": "organization"
2599
+ },
2600
+ "identifier": {
2601
+ "type": "string",
2602
+ "pattern": "^[1-9][0-9]{0,9}$"
2603
+ }
2604
+ },
2605
+ "required": [
2606
+ "type",
2607
+ "identifier"
2608
+ ],
2609
+ "additionalProperties": false
2610
+ }
2611
+ ]
2612
+ },
2613
+ "destinations": {
2614
+ "type": "array",
2615
+ "items": {
2616
+ "anyOf": [
2617
+ {
2618
+ "type": "object",
2619
+ "properties": {
2620
+ "type": {
2621
+ "const": "account_key"
2622
+ },
2623
+ "pattern": {
2624
+ "type": "string",
2625
+ "pattern": "^(?:\\*|[a-z][a-z0-9_-]{0,63}\\*?)$"
2626
+ }
2627
+ },
2628
+ "required": [
2629
+ "type",
2630
+ "pattern"
2631
+ ],
2632
+ "additionalProperties": false
2633
+ },
2634
+ {
2635
+ "type": "object",
2636
+ "properties": {
2637
+ "type": {
2638
+ "const": "account"
2639
+ },
2640
+ "id": {
2641
+ "type": "string",
2642
+ "format": "uuid"
2643
+ }
2644
+ },
2645
+ "required": [
2646
+ "type",
2647
+ "id"
2648
+ ],
2649
+ "additionalProperties": false
2650
+ },
2651
+ {
2652
+ "type": "object",
2653
+ "properties": {
2654
+ "type": {
2655
+ "const": "any"
2656
+ },
2657
+ "limit": {
2658
+ "const": "own"
2659
+ }
2660
+ },
2661
+ "required": [
2662
+ "type",
2663
+ "limit"
2664
+ ],
2665
+ "additionalProperties": false
2666
+ }
2667
+ ]
2668
+ },
2669
+ "minItems": 1,
2670
+ "maxItems": 100,
2671
+ "uniqueItems": true
2672
+ }
2673
+ },
2674
+ "required": [
2675
+ "type",
2676
+ "actions",
2677
+ "locations",
2678
+ "subject",
2679
+ "destinations"
2680
+ ],
2681
+ "additionalProperties": false,
2682
+ "$schema": "http://json-schema.org/draft-07/schema#"
2683
+ }
2684
+ },
2685
+ "identity": {
2686
+ "grantRequest": {
2687
+ "anyOf": [
2688
+ {
2689
+ "type": "object",
2690
+ "properties": {
2691
+ "type": {
2692
+ "const": "identity"
2693
+ },
2694
+ "actions": {
2695
+ "type": "array",
2696
+ "items": {
2697
+ "enum": [
2698
+ "read"
2699
+ ],
2700
+ "type": "string"
2701
+ },
2702
+ "minItems": 1,
2703
+ "uniqueItems": true
2704
+ },
2705
+ "locations": {
2706
+ "type": "array",
2707
+ "items": [
2708
+ {
2709
+ "const": "https://api.andco.com"
2710
+ }
2711
+ ],
2712
+ "minItems": 1,
2713
+ "additionalItems": false
2714
+ },
2715
+ "subject": {
2716
+ "anyOf": [
2717
+ {
2718
+ "type": "object",
2719
+ "properties": {
2720
+ "type": {
2721
+ "const": "profile"
2722
+ },
2723
+ "identifier": {
2724
+ "anyOf": [
2725
+ {
2726
+ "type": "string",
2727
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
2728
+ },
2729
+ {
2730
+ "type": "null"
2731
+ }
2732
+ ]
2733
+ }
2734
+ },
2735
+ "required": [
2736
+ "type"
2737
+ ],
2738
+ "additionalProperties": false
2739
+ },
2740
+ {
2741
+ "type": "null"
2742
+ }
2743
+ ]
2744
+ },
2745
+ "validation": {
2746
+ "anyOf": [
2747
+ {
2748
+ "type": "object",
2749
+ "properties": {
2750
+ "required": {
2751
+ "const": true
2752
+ }
2753
+ },
2754
+ "required": [
2755
+ "required"
2756
+ ],
2757
+ "additionalProperties": false
2758
+ },
2759
+ {
2760
+ "type": "null"
2761
+ }
2762
+ ]
2763
+ }
2764
+ },
2765
+ "required": [
2766
+ "type",
2767
+ "actions",
2768
+ "locations"
2769
+ ],
2770
+ "additionalProperties": false
2771
+ },
2772
+ {
2773
+ "type": "object",
2774
+ "properties": {
2775
+ "type": {
2776
+ "const": "identity"
2777
+ },
2778
+ "actions": {
2779
+ "type": "array",
2780
+ "items": {
2781
+ "enum": [
2782
+ "read"
2783
+ ],
2784
+ "type": "string"
2785
+ },
2786
+ "minItems": 1,
2787
+ "uniqueItems": true
2788
+ },
2789
+ "locations": {
2790
+ "type": "array",
2791
+ "items": [
2792
+ {
2793
+ "const": "https://api.andco.com"
2794
+ }
2795
+ ],
2796
+ "minItems": 1,
2797
+ "additionalItems": false
2798
+ },
2799
+ "subject": {
2800
+ "type": "object",
2801
+ "properties": {
2802
+ "type": {
2803
+ "const": "organization"
2804
+ },
2805
+ "identifier": {
2806
+ "anyOf": [
2807
+ {
2808
+ "type": "string",
2809
+ "pattern": "^[1-9][0-9]{0,9}$"
2810
+ },
2811
+ {
2812
+ "type": "null"
2813
+ }
2814
+ ]
2815
+ },
2816
+ "editable": {
2817
+ "anyOf": [
2818
+ {
2819
+ "type": "boolean"
2820
+ },
2821
+ {
2822
+ "type": "null"
2823
+ }
2824
+ ]
2825
+ }
2826
+ },
2827
+ "required": [
2828
+ "type"
2829
+ ],
2830
+ "additionalProperties": false
2831
+ },
2832
+ "validation": {
2833
+ "not": {}
2834
+ }
2835
+ },
2836
+ "required": [
2837
+ "type",
2838
+ "actions",
2839
+ "locations",
2840
+ "subject"
2841
+ ],
2842
+ "additionalProperties": false
2843
+ }
2844
+ ],
2845
+ "$schema": "http://json-schema.org/draft-07/schema#"
2846
+ },
2847
+ "grant": {
2848
+ "anyOf": [
2849
+ {
2850
+ "type": "object",
2851
+ "properties": {
2852
+ "type": {
2853
+ "const": "identity"
2854
+ },
2855
+ "actions": {
2856
+ "type": "array",
2857
+ "items": {
2858
+ "enum": [
2859
+ "read"
2860
+ ],
2861
+ "type": "string"
2862
+ },
2863
+ "minItems": 1,
2864
+ "uniqueItems": true
2865
+ },
2866
+ "locations": {
2867
+ "type": "array",
2868
+ "items": [
2869
+ {
2870
+ "const": "https://api.andco.com"
2871
+ }
2872
+ ],
2873
+ "minItems": 1,
2874
+ "additionalItems": false
2875
+ },
2876
+ "subject": {
2877
+ "type": "object",
2878
+ "properties": {
2879
+ "type": {
2880
+ "const": "profile"
2881
+ },
2882
+ "identifier": {
2883
+ "type": "string",
2884
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
2885
+ }
2886
+ },
2887
+ "required": [
2888
+ "type",
2889
+ "identifier"
2890
+ ],
2891
+ "additionalProperties": false
2892
+ },
2893
+ "validation": {
2894
+ "type": "object",
2895
+ "properties": {
2896
+ "required": {
2897
+ "const": true
2898
+ }
2899
+ },
2900
+ "required": [
2901
+ "required"
2902
+ ],
2903
+ "additionalProperties": false
2904
+ }
2905
+ },
2906
+ "required": [
2907
+ "type",
2908
+ "actions",
2909
+ "locations",
2910
+ "subject"
2911
+ ],
2912
+ "additionalProperties": false
2913
+ },
2914
+ {
2915
+ "type": "object",
2916
+ "properties": {
2917
+ "type": {
2918
+ "const": "identity"
2919
+ },
2920
+ "actions": {
2921
+ "type": "array",
2922
+ "items": {
2923
+ "enum": [
2924
+ "read"
2925
+ ],
2926
+ "type": "string"
2927
+ },
2928
+ "minItems": 1,
2929
+ "uniqueItems": true
2930
+ },
2931
+ "locations": {
2932
+ "type": "array",
2933
+ "items": [
2934
+ {
2935
+ "const": "https://api.andco.com"
2936
+ }
2937
+ ],
2938
+ "minItems": 1,
2939
+ "additionalItems": false
2940
+ },
2941
+ "subject": {
2942
+ "type": "object",
2943
+ "properties": {
2944
+ "type": {
2945
+ "const": "organization"
2946
+ },
2947
+ "identifier": {
2948
+ "type": "string",
2949
+ "pattern": "^[1-9][0-9]{0,9}$"
2950
+ }
2951
+ },
2952
+ "required": [
2953
+ "type",
2954
+ "identifier"
2955
+ ],
2956
+ "additionalProperties": false
2957
+ },
2958
+ "validation": {
2959
+ "not": {}
2960
+ }
2961
+ },
2962
+ "required": [
2963
+ "type",
2964
+ "actions",
2965
+ "locations",
2966
+ "subject"
2967
+ ],
2968
+ "additionalProperties": false
2969
+ }
2970
+ ],
2971
+ "$schema": "http://json-schema.org/draft-07/schema#"
2972
+ }
2973
+ },
2974
+ "address": {
2975
+ "grantRequest": {
2976
+ "type": "object",
2977
+ "properties": {
2978
+ "type": {
2979
+ "const": "address"
2980
+ },
2981
+ "actions": {
2982
+ "type": "array",
2983
+ "items": {
2984
+ "enum": [
2985
+ "read",
2986
+ "create",
2987
+ "update",
2988
+ "delete"
2989
+ ],
2990
+ "type": "string"
2991
+ },
2992
+ "minItems": 1,
2993
+ "uniqueItems": true
2994
+ },
2995
+ "locations": {
2996
+ "type": "array",
2997
+ "items": [
2998
+ {
2999
+ "const": "https://api.andco.com"
3000
+ }
3001
+ ],
3002
+ "minItems": 1,
3003
+ "additionalItems": false
3004
+ },
3005
+ "subject": {
3006
+ "anyOf": [
3007
+ {
3008
+ "oneOf": [
3009
+ {
3010
+ "type": "object",
3011
+ "properties": {
3012
+ "type": {
3013
+ "const": "profile"
3014
+ },
3015
+ "identifier": {
3016
+ "anyOf": [
3017
+ {
3018
+ "type": "string",
3019
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3020
+ },
3021
+ {
3022
+ "type": "null"
3023
+ }
3024
+ ]
3025
+ }
3026
+ },
3027
+ "required": [
3028
+ "type"
3029
+ ],
3030
+ "additionalProperties": false
3031
+ },
3032
+ {
3033
+ "type": "object",
3034
+ "properties": {
3035
+ "type": {
3036
+ "const": "organization"
3037
+ },
3038
+ "identifier": {
3039
+ "anyOf": [
3040
+ {
3041
+ "type": "string",
3042
+ "pattern": "^[1-9][0-9]{0,9}$"
3043
+ },
3044
+ {
3045
+ "type": "null"
3046
+ }
3047
+ ]
3048
+ },
3049
+ "editable": {
3050
+ "anyOf": [
3051
+ {
3052
+ "type": "boolean"
3053
+ },
3054
+ {
3055
+ "type": "null"
3056
+ }
3057
+ ]
3058
+ }
3059
+ },
3060
+ "required": [
3061
+ "type"
3062
+ ],
3063
+ "additionalProperties": false
3064
+ }
3065
+ ]
3066
+ },
3067
+ {
3068
+ "type": "null"
3069
+ }
3070
+ ]
3071
+ }
3072
+ },
3073
+ "required": [
3074
+ "type",
3075
+ "actions",
3076
+ "locations"
3077
+ ],
3078
+ "additionalProperties": false,
3079
+ "$schema": "http://json-schema.org/draft-07/schema#"
3080
+ },
3081
+ "grant": {
3082
+ "type": "object",
3083
+ "properties": {
3084
+ "type": {
3085
+ "const": "address"
3086
+ },
3087
+ "actions": {
3088
+ "type": "array",
3089
+ "items": {
3090
+ "enum": [
3091
+ "read",
3092
+ "create",
3093
+ "update",
3094
+ "delete"
3095
+ ],
3096
+ "type": "string"
3097
+ },
3098
+ "minItems": 1,
3099
+ "uniqueItems": true
3100
+ },
3101
+ "locations": {
3102
+ "type": "array",
3103
+ "items": [
3104
+ {
3105
+ "const": "https://api.andco.com"
3106
+ }
3107
+ ],
3108
+ "minItems": 1,
3109
+ "additionalItems": false
3110
+ },
3111
+ "subject": {
3112
+ "oneOf": [
3113
+ {
3114
+ "type": "object",
3115
+ "properties": {
3116
+ "type": {
3117
+ "const": "profile"
3118
+ },
3119
+ "identifier": {
3120
+ "type": "string",
3121
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3122
+ }
3123
+ },
3124
+ "required": [
3125
+ "type",
3126
+ "identifier"
3127
+ ],
3128
+ "additionalProperties": false
3129
+ },
3130
+ {
3131
+ "type": "object",
3132
+ "properties": {
3133
+ "type": {
3134
+ "const": "organization"
3135
+ },
3136
+ "identifier": {
3137
+ "type": "string",
3138
+ "pattern": "^[1-9][0-9]{0,9}$"
3139
+ }
3140
+ },
3141
+ "required": [
3142
+ "type",
3143
+ "identifier"
3144
+ ],
3145
+ "additionalProperties": false
3146
+ }
3147
+ ]
3148
+ }
3149
+ },
3150
+ "required": [
3151
+ "type",
3152
+ "actions",
3153
+ "locations",
3154
+ "subject"
3155
+ ],
3156
+ "additionalProperties": false,
3157
+ "$schema": "http://json-schema.org/draft-07/schema#"
3158
+ }
3159
+ },
3160
+ "organization": {
3161
+ "grantRequest": {
3162
+ "type": "object",
3163
+ "properties": {
3164
+ "type": {
3165
+ "const": "organization"
3166
+ },
3167
+ "actions": {
3168
+ "type": "array",
3169
+ "items": {
3170
+ "enum": [
3171
+ "list"
3172
+ ],
3173
+ "type": "string"
3174
+ },
3175
+ "minItems": 1,
3176
+ "uniqueItems": true
3177
+ },
3178
+ "locations": {
3179
+ "type": "array",
3180
+ "items": [
3181
+ {
3182
+ "const": "https://api.andco.com"
3183
+ }
3184
+ ],
3185
+ "minItems": 1,
3186
+ "additionalItems": false
3187
+ },
3188
+ "subject": {
3189
+ "anyOf": [
3190
+ {
3191
+ "type": "object",
3192
+ "properties": {
3193
+ "type": {
3194
+ "const": "profile"
3195
+ },
3196
+ "identifier": {
3197
+ "anyOf": [
3198
+ {
3199
+ "type": "string",
3200
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3201
+ },
3202
+ {
3203
+ "type": "null"
3204
+ }
3205
+ ]
3206
+ }
3207
+ },
3208
+ "required": [
3209
+ "type"
3210
+ ],
3211
+ "additionalProperties": false
3212
+ },
3213
+ {
3214
+ "type": "null"
3215
+ }
3216
+ ]
3217
+ }
3218
+ },
3219
+ "required": [
3220
+ "type",
3221
+ "actions",
3222
+ "locations"
3223
+ ],
3224
+ "additionalProperties": false,
3225
+ "$schema": "http://json-schema.org/draft-07/schema#"
3226
+ },
3227
+ "grant": {
3228
+ "type": "object",
3229
+ "properties": {
3230
+ "type": {
3231
+ "const": "organization"
3232
+ },
3233
+ "actions": {
3234
+ "type": "array",
3235
+ "items": {
3236
+ "enum": [
3237
+ "list"
3238
+ ],
3239
+ "type": "string"
3240
+ },
3241
+ "minItems": 1,
3242
+ "uniqueItems": true
3243
+ },
3244
+ "locations": {
3245
+ "type": "array",
3246
+ "items": [
3247
+ {
3248
+ "const": "https://api.andco.com"
3249
+ }
3250
+ ],
3251
+ "minItems": 1,
3252
+ "additionalItems": false
3253
+ },
3254
+ "subject": {
3255
+ "type": "object",
3256
+ "properties": {
3257
+ "type": {
3258
+ "const": "profile"
3259
+ },
3260
+ "identifier": {
3261
+ "type": "string",
3262
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3263
+ }
3264
+ },
3265
+ "required": [
3266
+ "type",
3267
+ "identifier"
3268
+ ],
3269
+ "additionalProperties": false
3270
+ }
3271
+ },
3272
+ "required": [
3273
+ "type",
3274
+ "actions",
3275
+ "locations",
3276
+ "subject"
3277
+ ],
3278
+ "additionalProperties": false,
3279
+ "$schema": "http://json-schema.org/draft-07/schema#"
3280
+ }
3281
+ },
3282
+ "profile": {
3283
+ "grantRequest": {
3284
+ "type": "object",
3285
+ "properties": {
3286
+ "type": {
3287
+ "const": "profile"
3288
+ },
3289
+ "actions": {
3290
+ "type": "array",
3291
+ "items": {
3292
+ "enum": [
3293
+ "update"
3294
+ ],
3295
+ "type": "string"
3296
+ },
3297
+ "minItems": 1,
3298
+ "uniqueItems": true
3299
+ },
3300
+ "locations": {
3301
+ "type": "array",
3302
+ "items": [
3303
+ {
3304
+ "const": "https://api.andco.com"
3305
+ }
3306
+ ],
3307
+ "minItems": 1,
3308
+ "additionalItems": false
3309
+ },
3310
+ "subject": {
3311
+ "anyOf": [
3312
+ {
3313
+ "type": "object",
3314
+ "properties": {
3315
+ "type": {
3316
+ "const": "profile"
3317
+ },
3318
+ "identifier": {
3319
+ "anyOf": [
3320
+ {
3321
+ "type": "string",
3322
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3323
+ },
3324
+ {
3325
+ "type": "null"
3326
+ }
3327
+ ]
3328
+ }
3329
+ },
3330
+ "required": [
3331
+ "type"
3332
+ ],
3333
+ "additionalProperties": false
3334
+ },
3335
+ {
3336
+ "type": "null"
3337
+ }
3338
+ ]
3339
+ }
3340
+ },
3341
+ "required": [
3342
+ "type",
3343
+ "actions",
3344
+ "locations"
3345
+ ],
3346
+ "additionalProperties": false,
3347
+ "$schema": "http://json-schema.org/draft-07/schema#"
3348
+ },
3349
+ "grant": {
3350
+ "type": "object",
3351
+ "properties": {
3352
+ "type": {
3353
+ "const": "profile"
3354
+ },
3355
+ "actions": {
3356
+ "type": "array",
3357
+ "items": {
3358
+ "enum": [
3359
+ "update"
3360
+ ],
3361
+ "type": "string"
3362
+ },
3363
+ "minItems": 1,
3364
+ "uniqueItems": true
3365
+ },
3366
+ "locations": {
3367
+ "type": "array",
3368
+ "items": [
3369
+ {
3370
+ "const": "https://api.andco.com"
3371
+ }
3372
+ ],
3373
+ "minItems": 1,
3374
+ "additionalItems": false
3375
+ },
3376
+ "subject": {
3377
+ "type": "object",
3378
+ "properties": {
3379
+ "type": {
3380
+ "const": "profile"
3381
+ },
3382
+ "identifier": {
3383
+ "type": "string",
3384
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3385
+ }
3386
+ },
3387
+ "required": [
3388
+ "type",
3389
+ "identifier"
3390
+ ],
3391
+ "additionalProperties": false
3392
+ }
3393
+ },
3394
+ "required": [
3395
+ "type",
3396
+ "actions",
3397
+ "locations",
3398
+ "subject"
3399
+ ],
3400
+ "additionalProperties": false,
3401
+ "$schema": "http://json-schema.org/draft-07/schema#"
3402
+ }
3403
+ },
3404
+ "project_users": {
3405
+ "grantRequest": {
3406
+ "type": "object",
3407
+ "properties": {
3408
+ "type": {
3409
+ "const": "project_users"
3410
+ },
3411
+ "actions": {
3412
+ "type": "array",
3413
+ "items": {
3414
+ "enum": [
3415
+ "read"
3416
+ ],
3417
+ "type": "string"
3418
+ },
3419
+ "minItems": 1,
3420
+ "uniqueItems": true
3421
+ },
3422
+ "locations": {
3423
+ "type": "array",
3424
+ "items": [
3425
+ {
3426
+ "const": "https://api.andco.com"
3427
+ }
3428
+ ],
3429
+ "minItems": 1,
3430
+ "additionalItems": false
3431
+ },
3432
+ "project_ids": {
3433
+ "anyOf": [
3434
+ {
3435
+ "type": "array",
3436
+ "items": {
3437
+ "type": "string",
3438
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3439
+ },
3440
+ "maxItems": 100,
3441
+ "uniqueItems": true
3442
+ },
3443
+ {
3444
+ "type": "null"
3445
+ }
3446
+ ]
3447
+ },
3448
+ "client_ids": {
3449
+ "anyOf": [
3450
+ {
3451
+ "type": "array",
3452
+ "items": {
3453
+ "type": "string",
3454
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3455
+ },
3456
+ "maxItems": 100,
3457
+ "uniqueItems": true
3458
+ },
3459
+ {
3460
+ "type": "null"
3461
+ }
3462
+ ]
3463
+ },
3464
+ "fields": {
3465
+ "anyOf": [
3466
+ {
3467
+ "type": "array",
3468
+ "items": {
3469
+ "enum": [
3470
+ "id",
3471
+ "name",
3472
+ "email",
3473
+ "avatar",
3474
+ "phone",
3475
+ "identities",
3476
+ "addresses"
3477
+ ],
3478
+ "type": "string"
3479
+ },
3480
+ "uniqueItems": true
3481
+ },
3482
+ {
3483
+ "type": "null"
3484
+ }
3485
+ ]
3486
+ }
3487
+ },
3488
+ "required": [
3489
+ "type",
3490
+ "actions",
3491
+ "locations"
3492
+ ],
3493
+ "additionalProperties": false,
3494
+ "$schema": "http://json-schema.org/draft-07/schema#"
3495
+ },
3496
+ "grant": {
3497
+ "type": "object",
3498
+ "properties": {
3499
+ "type": {
3500
+ "const": "project_users"
3501
+ },
3502
+ "actions": {
3503
+ "type": "array",
3504
+ "items": {
3505
+ "enum": [
3506
+ "read"
3507
+ ],
3508
+ "type": "string"
3509
+ },
3510
+ "minItems": 1,
3511
+ "uniqueItems": true
3512
+ },
3513
+ "locations": {
3514
+ "type": "array",
3515
+ "items": [
3516
+ {
3517
+ "const": "https://api.andco.com"
3518
+ }
3519
+ ],
3520
+ "minItems": 1,
3521
+ "additionalItems": false
3522
+ },
3523
+ "project_ids": {
3524
+ "type": "array",
3525
+ "items": {
3526
+ "type": "string",
3527
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3528
+ },
3529
+ "maxItems": 100,
3530
+ "uniqueItems": true
3531
+ },
3532
+ "client_ids": {
3533
+ "type": "array",
3534
+ "items": {
3535
+ "type": "string",
3536
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3537
+ },
3538
+ "maxItems": 100,
3539
+ "uniqueItems": true
3540
+ },
3541
+ "fields": {
3542
+ "type": "array",
3543
+ "items": {
3544
+ "enum": [
3545
+ "id",
3546
+ "name",
3547
+ "email",
3548
+ "avatar",
3549
+ "phone",
3550
+ "identities",
3551
+ "addresses"
3552
+ ],
3553
+ "type": "string"
3554
+ },
3555
+ "uniqueItems": true
3556
+ }
3557
+ },
3558
+ "required": [
3559
+ "type",
3560
+ "actions",
3561
+ "locations",
3562
+ "project_ids",
3563
+ "client_ids",
3564
+ "fields"
3565
+ ],
3566
+ "additionalProperties": false,
3567
+ "$schema": "http://json-schema.org/draft-07/schema#"
3568
+ }
3569
+ }
3570
+ };