@hyperscale0/adl 1.0.0-beta.9 → 1.0.123

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.
@@ -1,964 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://raw.githubusercontent.com/hyperscale0/hyperscale-adl/main/spec/manifest.schema.json",
4
- "title": "Hyperscale provider adapter manifest",
5
- "description": "One provider adapter declaration. Generated from src/vocabulary.ts by scripts/emit-spec.ts; edit that, never this file.",
6
- "type": "object",
7
- "additionalProperties": false,
8
- "required": [
9
- "bindings",
10
- "capability",
11
- "config",
12
- "egress",
13
- "operationMap",
14
- "provider",
15
- "webhookMap"
16
- ],
17
- "properties": {
18
- "provider": {
19
- "type": "string",
20
- "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
21
- },
22
- "capability": {
23
- "type": "string",
24
- "pattern": "\\S"
25
- },
26
- "domain": {
27
- "type": "string",
28
- "pattern": "\\S"
29
- },
30
- "egress": {
31
- "type": "string",
32
- "enum": [
33
- "none",
34
- "rest",
35
- "sync_clearance"
36
- ]
37
- },
38
- "bindings": {
39
- "type": "object",
40
- "additionalProperties": {
41
- "type": "string",
42
- "enum": [
43
- "strict",
44
- "claim",
45
- "confirmation_only",
46
- "evidence_only"
47
- ]
48
- }
49
- },
50
- "config": {
51
- "type": "object",
52
- "additionalProperties": false,
53
- "properties": {
54
- "baseUrl": {
55
- "type": "string",
56
- "pattern": "^https?://"
57
- },
58
- "credentialRef": {
59
- "oneOf": [
60
- {
61
- "type": "object",
62
- "additionalProperties": false,
63
- "required": [
64
- "name",
65
- "source"
66
- ],
67
- "properties": {
68
- "name": {
69
- "type": "string",
70
- "pattern": "\\S"
71
- },
72
- "source": {
73
- "const": "environment"
74
- }
75
- }
76
- },
77
- {
78
- "type": "object",
79
- "additionalProperties": false,
80
- "required": [
81
- "account",
82
- "service",
83
- "source"
84
- ],
85
- "properties": {
86
- "account": {
87
- "type": "string",
88
- "pattern": "\\S"
89
- },
90
- "service": {
91
- "type": "string",
92
- "pattern": "\\S"
93
- },
94
- "source": {
95
- "const": "keychain"
96
- }
97
- }
98
- }
99
- ]
100
- }
101
- }
102
- },
103
- "operationMap": {
104
- "type": "object",
105
- "additionalProperties": {
106
- "$ref": "#/$defs/operationBinding"
107
- }
108
- },
109
- "webhookMap": {
110
- "type": "object",
111
- "additionalProperties": {
112
- "$ref": "#/$defs/webhookTransitionPlan"
113
- }
114
- }
115
- },
116
- "$defs": {
117
- "objectField": {
118
- "oneOf": [
119
- {
120
- "type": "object",
121
- "properties": {
122
- "name": {
123
- "type": "string",
124
- "maxLength": 80,
125
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
126
- },
127
- "label": {
128
- "type": "string",
129
- "minLength": 1,
130
- "maxLength": 2048
131
- },
132
- "optional": {
133
- "type": "boolean",
134
- "const": true
135
- },
136
- "description": {
137
- "type": "string",
138
- "minLength": 1,
139
- "maxLength": 2048
140
- },
141
- "sensitive": {
142
- "type": "boolean",
143
- "const": true
144
- },
145
- "type": {
146
- "type": "string",
147
- "const": "money"
148
- },
149
- "value": {
150
- "type": "string",
151
- "pattern": "^(0|[1-9][0-9]{0,17})$"
152
- },
153
- "minimum": {
154
- "type": "string",
155
- "pattern": "^(0|[1-9][0-9]{0,17})$"
156
- },
157
- "maximum": {
158
- "type": "string",
159
- "pattern": "^(0|[1-9][0-9]{0,17})$"
160
- }
161
- },
162
- "required": [
163
- "name",
164
- "type"
165
- ],
166
- "additionalProperties": false
167
- },
168
- {
169
- "type": "object",
170
- "properties": {
171
- "name": {
172
- "type": "string",
173
- "maxLength": 80,
174
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
175
- },
176
- "label": {
177
- "type": "string",
178
- "minLength": 1,
179
- "maxLength": 2048
180
- },
181
- "optional": {
182
- "type": "boolean",
183
- "const": true
184
- },
185
- "description": {
186
- "type": "string",
187
- "minLength": 1,
188
- "maxLength": 2048
189
- },
190
- "sensitive": {
191
- "type": "boolean",
192
- "const": true
193
- },
194
- "type": {
195
- "type": "string",
196
- "const": "ref"
197
- },
198
- "targetKind": {
199
- "type": "string",
200
- "enum": [
201
- "instrument",
202
- "object"
203
- ]
204
- },
205
- "targetFamily": {
206
- "type": "object",
207
- "properties": {
208
- "module": {
209
- "type": "string",
210
- "maxLength": 80,
211
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
212
- },
213
- "exportPath": {
214
- "type": "string",
215
- "maxLength": 240,
216
- "pattern": "^[a-z][a-zA-Z0-9_]*(?:\\.[a-z][a-zA-Z0-9_]*)*$"
217
- },
218
- "revision": {
219
- "type": "integer",
220
- "exclusiveMinimum": 0,
221
- "maximum": 9007199254740991
222
- }
223
- },
224
- "required": [
225
- "module",
226
- "exportPath",
227
- "revision"
228
- ],
229
- "additionalProperties": false
230
- },
231
- "target": {
232
- "anyOf": [
233
- {
234
- "type": "string",
235
- "maxLength": 80,
236
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
237
- },
238
- {
239
- "minItems": 1,
240
- "maxItems": 16,
241
- "type": "array",
242
- "items": {
243
- "type": "string",
244
- "maxLength": 80,
245
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
246
- }
247
- }
248
- ]
249
- }
250
- },
251
- "required": [
252
- "name",
253
- "type",
254
- "targetKind",
255
- "target"
256
- ],
257
- "additionalProperties": false
258
- },
259
- {
260
- "type": "object",
261
- "properties": {
262
- "name": {
263
- "type": "string",
264
- "maxLength": 80,
265
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
266
- },
267
- "label": {
268
- "type": "string",
269
- "minLength": 1,
270
- "maxLength": 2048
271
- },
272
- "optional": {
273
- "type": "boolean",
274
- "const": true
275
- },
276
- "description": {
277
- "type": "string",
278
- "minLength": 1,
279
- "maxLength": 2048
280
- },
281
- "sensitive": {
282
- "type": "boolean",
283
- "const": true
284
- },
285
- "type": {
286
- "type": "string",
287
- "const": "date"
288
- },
289
- "value": {
290
- "type": "string",
291
- "format": "date-time",
292
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
293
- }
294
- },
295
- "required": [
296
- "name",
297
- "type"
298
- ],
299
- "additionalProperties": false
300
- },
301
- {
302
- "type": "object",
303
- "properties": {
304
- "name": {
305
- "type": "string",
306
- "maxLength": 80,
307
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
308
- },
309
- "label": {
310
- "type": "string",
311
- "minLength": 1,
312
- "maxLength": 2048
313
- },
314
- "optional": {
315
- "type": "boolean",
316
- "const": true
317
- },
318
- "description": {
319
- "type": "string",
320
- "minLength": 1,
321
- "maxLength": 2048
322
- },
323
- "sensitive": {
324
- "type": "boolean",
325
- "const": true
326
- },
327
- "type": {
328
- "type": "string",
329
- "const": "duration"
330
- },
331
- "value": {
332
- "type": "integer",
333
- "exclusiveMinimum": 0,
334
- "maximum": 9007199254740991
335
- }
336
- },
337
- "required": [
338
- "name",
339
- "type"
340
- ],
341
- "additionalProperties": false
342
- },
343
- {
344
- "type": "object",
345
- "properties": {
346
- "name": {
347
- "type": "string",
348
- "maxLength": 80,
349
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
350
- },
351
- "label": {
352
- "type": "string",
353
- "minLength": 1,
354
- "maxLength": 2048
355
- },
356
- "optional": {
357
- "type": "boolean",
358
- "const": true
359
- },
360
- "description": {
361
- "type": "string",
362
- "minLength": 1,
363
- "maxLength": 2048
364
- },
365
- "sensitive": {
366
- "type": "boolean",
367
- "const": true
368
- },
369
- "type": {
370
- "type": "string",
371
- "const": "text"
372
- },
373
- "value": {
374
- "type": "string",
375
- "minLength": 1,
376
- "maxLength": 2048
377
- },
378
- "minLength": {
379
- "type": "integer",
380
- "exclusiveMinimum": 0,
381
- "maximum": 2048
382
- },
383
- "maxLength": {
384
- "type": "integer",
385
- "exclusiveMinimum": 0,
386
- "maximum": 2048
387
- },
388
- "pattern": {
389
- "type": "string",
390
- "pattern": "^\\^\\[[A-Za-z0-9-]+\\]\\{[1-9][0-9]{0,3}\\}\\$$"
391
- }
392
- },
393
- "required": [
394
- "name",
395
- "type"
396
- ],
397
- "additionalProperties": false
398
- },
399
- {
400
- "type": "object",
401
- "properties": {
402
- "name": {
403
- "type": "string",
404
- "maxLength": 80,
405
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
406
- },
407
- "label": {
408
- "type": "string",
409
- "minLength": 1,
410
- "maxLength": 2048
411
- },
412
- "optional": {
413
- "type": "boolean",
414
- "const": true
415
- },
416
- "description": {
417
- "type": "string",
418
- "minLength": 1,
419
- "maxLength": 2048
420
- },
421
- "sensitive": {
422
- "type": "boolean",
423
- "const": true
424
- },
425
- "type": {
426
- "type": "string",
427
- "const": "integer"
428
- },
429
- "value": {
430
- "type": "integer",
431
- "minimum": -9007199254740991,
432
- "maximum": 9007199254740991
433
- },
434
- "minimum": {
435
- "type": "integer",
436
- "minimum": -9007199254740991,
437
- "maximum": 9007199254740991
438
- },
439
- "maximum": {
440
- "type": "integer",
441
- "minimum": -9007199254740991,
442
- "maximum": 9007199254740991
443
- }
444
- },
445
- "required": [
446
- "name",
447
- "type"
448
- ],
449
- "additionalProperties": false
450
- },
451
- {
452
- "type": "object",
453
- "properties": {
454
- "name": {
455
- "type": "string",
456
- "maxLength": 80,
457
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
458
- },
459
- "label": {
460
- "type": "string",
461
- "minLength": 1,
462
- "maxLength": 2048
463
- },
464
- "optional": {
465
- "type": "boolean",
466
- "const": true
467
- },
468
- "description": {
469
- "type": "string",
470
- "minLength": 1,
471
- "maxLength": 2048
472
- },
473
- "sensitive": {
474
- "type": "boolean",
475
- "const": true
476
- },
477
- "type": {
478
- "type": "string",
479
- "const": "percent"
480
- },
481
- "value": {
482
- "type": "integer",
483
- "minimum": 0,
484
- "maximum": 10000
485
- }
486
- },
487
- "required": [
488
- "name",
489
- "type"
490
- ],
491
- "additionalProperties": false
492
- },
493
- {
494
- "type": "object",
495
- "properties": {
496
- "name": {
497
- "type": "string",
498
- "maxLength": 80,
499
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
500
- },
501
- "label": {
502
- "type": "string",
503
- "minLength": 1,
504
- "maxLength": 2048
505
- },
506
- "optional": {
507
- "type": "boolean",
508
- "const": true
509
- },
510
- "description": {
511
- "type": "string",
512
- "minLength": 1,
513
- "maxLength": 2048
514
- },
515
- "sensitive": {
516
- "type": "boolean",
517
- "const": true
518
- },
519
- "type": {
520
- "type": "string",
521
- "const": "boolean"
522
- },
523
- "value": {
524
- "type": "boolean"
525
- }
526
- },
527
- "required": [
528
- "name",
529
- "type"
530
- ],
531
- "additionalProperties": false
532
- },
533
- {
534
- "type": "object",
535
- "properties": {
536
- "name": {
537
- "type": "string",
538
- "maxLength": 80,
539
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
540
- },
541
- "label": {
542
- "type": "string",
543
- "minLength": 1,
544
- "maxLength": 2048
545
- },
546
- "optional": {
547
- "type": "boolean",
548
- "const": true
549
- },
550
- "description": {
551
- "type": "string",
552
- "minLength": 1,
553
- "maxLength": 2048
554
- },
555
- "sensitive": {
556
- "type": "boolean",
557
- "const": true
558
- },
559
- "type": {
560
- "type": "string",
561
- "const": "enum"
562
- },
563
- "values": {
564
- "minItems": 1,
565
- "maxItems": 64,
566
- "type": "array",
567
- "items": {
568
- "type": "string",
569
- "maxLength": 80,
570
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
571
- }
572
- },
573
- "value": {
574
- "type": "string",
575
- "maxLength": 80,
576
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
577
- }
578
- },
579
- "required": [
580
- "name",
581
- "type",
582
- "values"
583
- ],
584
- "additionalProperties": false
585
- },
586
- {
587
- "type": "object",
588
- "properties": {
589
- "name": {
590
- "type": "string",
591
- "maxLength": 80,
592
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
593
- },
594
- "label": {
595
- "type": "string",
596
- "minLength": 1,
597
- "maxLength": 2048
598
- },
599
- "optional": {
600
- "type": "boolean",
601
- "const": true
602
- },
603
- "description": {
604
- "type": "string",
605
- "minLength": 1,
606
- "maxLength": 2048
607
- },
608
- "sensitive": {
609
- "type": "boolean",
610
- "const": true
611
- },
612
- "type": {
613
- "type": "string",
614
- "const": "list"
615
- },
616
- "item": {
617
- "type": "string",
618
- "enum": [
619
- "money",
620
- "date",
621
- "text",
622
- "integer",
623
- "ref"
624
- ]
625
- },
626
- "targetKind": {
627
- "type": "string",
628
- "enum": [
629
- "instrument",
630
- "object"
631
- ]
632
- },
633
- "targetFamily": {
634
- "type": "object",
635
- "properties": {
636
- "module": {
637
- "type": "string",
638
- "maxLength": 80,
639
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
640
- },
641
- "exportPath": {
642
- "type": "string",
643
- "maxLength": 240,
644
- "pattern": "^[a-z][a-zA-Z0-9_]*(?:\\.[a-z][a-zA-Z0-9_]*)*$"
645
- },
646
- "revision": {
647
- "type": "integer",
648
- "exclusiveMinimum": 0,
649
- "maximum": 9007199254740991
650
- }
651
- },
652
- "required": [
653
- "module",
654
- "exportPath",
655
- "revision"
656
- ],
657
- "additionalProperties": false
658
- },
659
- "target": {
660
- "type": "string",
661
- "maxLength": 80,
662
- "pattern": "^[a-z][a-zA-Z0-9_]*$"
663
- },
664
- "maxItems": {
665
- "type": "integer",
666
- "minimum": 1,
667
- "maximum": 366
668
- }
669
- },
670
- "required": [
671
- "name",
672
- "type",
673
- "item",
674
- "maxItems"
675
- ],
676
- "additionalProperties": false
677
- }
678
- ]
679
- },
680
- "BoundaryInstruction": {
681
- "$schema": "https://json-schema.org/draft/2020-12/schema",
682
- "readOnly": true,
683
- "type": "object",
684
- "properties": {
685
- "id": {
686
- "type": "string",
687
- "minLength": 1,
688
- "maxLength": 240
689
- },
690
- "environment": {
691
- "type": "string",
692
- "enum": [
693
- "sandbox",
694
- "live"
695
- ]
696
- },
697
- "tenantId": {
698
- "type": "string",
699
- "minLength": 1,
700
- "maxLength": 240
701
- },
702
- "productId": {
703
- "type": "string",
704
- "minLength": 1,
705
- "maxLength": 240
706
- },
707
- "productBuildId": {
708
- "type": "string",
709
- "minLength": 1,
710
- "maxLength": 240
711
- },
712
- "buildDigest": {
713
- "type": "string",
714
- "minLength": 1,
715
- "maxLength": 240
716
- },
717
- "target": {
718
- "readOnly": true,
719
- "type": "object",
720
- "properties": {
721
- "kind": {
722
- "type": "string",
723
- "minLength": 1,
724
- "maxLength": 240
725
- },
726
- "attachment": {
727
- "type": "string",
728
- "minLength": 1,
729
- "maxLength": 240
730
- },
731
- "instanceId": {
732
- "type": "string",
733
- "minLength": 1,
734
- "maxLength": 240
735
- }
736
- },
737
- "required": [
738
- "kind",
739
- "attachment",
740
- "instanceId"
741
- ],
742
- "additionalProperties": false
743
- },
744
- "sourceAccountId": {
745
- "type": "string",
746
- "minLength": 1,
747
- "maxLength": 240
748
- },
749
- "destinationAccountId": {
750
- "type": "string",
751
- "minLength": 1,
752
- "maxLength": 240
753
- },
754
- "amount": {
755
- "type": "string",
756
- "pattern": "^[1-9][0-9]{0,17}$"
757
- },
758
- "currency": {
759
- "type": "string",
760
- "pattern": "^[A-Z]{3}$"
761
- },
762
- "adapter": {
763
- "type": "string",
764
- "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
765
- }
766
- },
767
- "required": [
768
- "id",
769
- "environment",
770
- "tenantId",
771
- "productId",
772
- "productBuildId",
773
- "buildDigest",
774
- "target",
775
- "sourceAccountId",
776
- "destinationAccountId",
777
- "amount",
778
- "currency",
779
- "adapter"
780
- ],
781
- "additionalProperties": false
782
- },
783
- "BoundaryObservation": {
784
- "$schema": "https://json-schema.org/draft/2020-12/schema",
785
- "readOnly": true,
786
- "type": "object",
787
- "properties": {
788
- "adapter": {
789
- "type": "string",
790
- "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
791
- },
792
- "externalReference": {
793
- "type": "string",
794
- "minLength": 1,
795
- "maxLength": 240
796
- },
797
- "instructionId": {
798
- "type": "string",
799
- "minLength": 1,
800
- "maxLength": 240
801
- },
802
- "outcome": {
803
- "type": "string",
804
- "enum": [
805
- "acknowledged",
806
- "unknown",
807
- "confirmed",
808
- "rejected"
809
- ]
810
- },
811
- "observedAt": {
812
- "type": "string",
813
- "format": "date-time",
814
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
815
- }
816
- },
817
- "required": [
818
- "adapter",
819
- "externalReference",
820
- "instructionId",
821
- "outcome",
822
- "observedAt"
823
- ],
824
- "additionalProperties": false
825
- },
826
- "operationBinding": {
827
- "type": "object",
828
- "additionalProperties": false,
829
- "required": [
830
- "direction",
831
- "obligationKind",
832
- "operation",
833
- "resourceIdPath",
834
- "resourceKind"
835
- ],
836
- "properties": {
837
- "operation": {
838
- "type": "string",
839
- "pattern": "\\S"
840
- },
841
- "direction": {
842
- "type": "string",
843
- "enum": [
844
- "tenant_initiated",
845
- "system_settlement"
846
- ]
847
- },
848
- "envelope": {
849
- "type": "string",
850
- "enum": [
851
- "http_200_body_status",
852
- "http_status_error_body",
853
- "unconfirmed_until_live"
854
- ]
855
- },
856
- "meter": {
857
- "type": "string",
858
- "pattern": "\\S"
859
- },
860
- "obligationKind": {
861
- "type": "string",
862
- "pattern": "\\S"
863
- },
864
- "resourceIdPath": {
865
- "type": "string",
866
- "pattern": "\\S"
867
- },
868
- "resourceKind": {
869
- "type": "string",
870
- "pattern": "\\S"
871
- },
872
- "subjectRequirements": {
873
- "type": "array",
874
- "maxItems": 128,
875
- "items": {
876
- "allOf": [
877
- {
878
- "$ref": "#/$defs/objectField"
879
- },
880
- {
881
- "not": {
882
- "required": [
883
- "optional"
884
- ]
885
- }
886
- }
887
- ]
888
- }
889
- }
890
- }
891
- },
892
- "webhookTransitionPlan": {
893
- "type": "object",
894
- "additionalProperties": false,
895
- "required": [
896
- "eventKind",
897
- "operationName",
898
- "optionalPayloadFields",
899
- "requiredFieldGroups",
900
- "requiredPayloadFields",
901
- "resourceIdField",
902
- "resourceKind",
903
- "timestampField"
904
- ],
905
- "properties": {
906
- "eventKind": {
907
- "type": "string",
908
- "pattern": "\\S"
909
- },
910
- "operationName": {
911
- "type": "string",
912
- "pattern": "\\S"
913
- },
914
- "optionalPayloadFields": {
915
- "type": "array",
916
- "items": {
917
- "type": "string",
918
- "pattern": "\\S"
919
- }
920
- },
921
- "requiredFieldGroups": {
922
- "type": "array",
923
- "items": {
924
- "type": "array",
925
- "items": {
926
- "type": "string",
927
- "pattern": "\\S"
928
- }
929
- }
930
- },
931
- "requiredPayloadFields": {
932
- "type": "array",
933
- "items": {
934
- "type": "string",
935
- "pattern": "\\S"
936
- }
937
- },
938
- "resourceIdField": {
939
- "type": "string",
940
- "pattern": "\\S"
941
- },
942
- "resourceKind": {
943
- "type": "string",
944
- "pattern": "\\S"
945
- },
946
- "timestampField": {
947
- "type": "string",
948
- "enum": [
949
- "activeAt",
950
- "completedAt",
951
- "failedAt",
952
- "returnedAt",
953
- "receivedAt",
954
- "clearedAt",
955
- "expiredAt",
956
- "voidedAt",
957
- "postedAt",
958
- "refundedAt"
959
- ]
960
- }
961
- }
962
- }
963
- }
964
- }