@kubun/protocol 0.1.0 → 0.2.1

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 +1 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/models/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAwB,MAAM,gBAAgB,CAAA;AAKtE,eAAO,MAAM,oBAAoB;;;CAA6D,CAAA;AAE9F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;CAMH,CAAA;AAC3B,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAErE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAGJ,CAAA;AAC3B,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQL,CAAA;AAC3B,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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js';
1
+ import { baseObjectModel, nameString, referencesRecordModel } from './json-schema.js';
2
2
  import { binaryStringValue, didStringValue } from './value.js';
3
3
  export const documentModelVersion = {
4
4
  type: 'string',
@@ -39,9 +39,7 @@ export const documentModelSchema = {
39
39
  export const documentModelBase = {
40
40
  type: 'object',
41
41
  properties: {
42
- name: {
43
- type: 'string'
44
- },
42
+ name: nameString,
45
43
  version: documentModelVersion,
46
44
  interfaces: {
47
45
  type: 'array',
@@ -61,13 +59,13 @@ export const documentModelBase = {
61
59
  ],
62
60
  additionalProperties: false
63
61
  };
64
- export const documentModelInterface = {
62
+ export const documentModelDefault = {
65
63
  type: 'object',
66
64
  properties: {
67
65
  ...documentModelBase.properties,
68
66
  behavior: {
69
67
  type: 'string',
70
- const: 'interface'
68
+ const: 'default'
71
69
  }
72
70
  },
73
71
  required: [
@@ -76,13 +74,13 @@ export const documentModelInterface = {
76
74
  ],
77
75
  additionalProperties: false
78
76
  };
79
- export const documentModelList = {
77
+ export const documentModelInterface = {
80
78
  type: 'object',
81
79
  properties: {
82
80
  ...documentModelBase.properties,
83
81
  behavior: {
84
82
  type: 'string',
85
- const: 'list'
83
+ const: 'interface'
86
84
  }
87
85
  },
88
86
  required: [
@@ -91,15 +89,15 @@ export const documentModelList = {
91
89
  ],
92
90
  additionalProperties: false
93
91
  };
94
- export const documentModelSet = {
92
+ export const documentModelUnique = {
95
93
  type: 'object',
96
94
  properties: {
97
95
  ...documentModelBase.properties,
98
96
  behavior: {
99
97
  type: 'string',
100
- const: 'set'
98
+ const: 'unique'
101
99
  },
102
- setFields: {
100
+ uniqueFields: {
103
101
  type: 'array',
104
102
  items: {
105
103
  type: 'string'
@@ -109,16 +107,16 @@ export const documentModelSet = {
109
107
  required: [
110
108
  ...documentModelBase.required,
111
109
  'behavior',
112
- 'setFields'
110
+ 'uniqueFields'
113
111
  ],
114
112
  additionalProperties: false
115
113
  };
116
114
  export const documentModel = {
117
115
  $id: 'urn:kubun:protocol:model:document',
118
116
  anyOf: [
117
+ documentModelDefault,
119
118
  documentModelInterface,
120
- documentModelList,
121
- documentModelSet
119
+ documentModelUnique
122
120
  ]
123
121
  };
124
122
  export const documentModelsCluster = {
@@ -1,7 +1,8 @@
1
- import type { DocumentModel, DocumentModelsCluster, DocumentModelsRecord } from './document.js';
1
+ import { type ClusterModel } from './cluster.js';
2
+ import type { DocumentModel, DocumentModelsRecord } from './document.js';
2
3
  export type FromClustersParams = {
3
4
  aliases?: Record<string, string>;
4
- clusters: Array<DocumentModelsCluster>;
5
+ clusters: Array<ClusterModel>;
5
6
  };
6
7
  export type GraphModelParams = {
7
8
  aliases?: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/models/graph.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAE/F,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,QAAQ,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,MAAM,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,MAAM,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,qBAAa,UAAU;;IACrB,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,UAAU;gBAe/C,MAAM,EAAE,gBAAgB;IAKpC,IAAI,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEpC;IAED,IAAI,MAAM,IAAI,oBAAoB,CAEjC;IAED,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAKjD,MAAM,IAAI,cAAc;CAGzB"}
1
+ {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/models/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAiB,MAAM,cAAc,CAAA;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAExE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,MAAM,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,MAAM,EAAE,oBAAoB,CAAA;CAC7B,CAAA;AAED,qBAAa,UAAU;;IACrB,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,UAAU;gBAY/C,MAAM,EAAE,gBAAgB;IAKpC,IAAI,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEpC;IAED,IAAI,MAAM,IAAI,oBAAoB,CAEjC;IAED,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAKjD,MAAM,IAAI,cAAc;CAGzB"}
@@ -1,13 +1,10 @@
1
- import { GraphModelID, toDigestBytes } from '@kubun/id';
1
+ import { verifyCluster } from './cluster.js';
2
2
  export class GraphModel {
3
3
  static fromClusters(params) {
4
4
  const record = {};
5
- for (const cluster of params.clusters){
6
- const digestBytes = toDigestBytes(cluster);
7
- for (const [index, model] of cluster.entries()){
8
- const id = new GraphModelID(digestBytes, index);
9
- record[id.toString()] = model;
10
- }
5
+ // Verify all clusters and merge their document models into a single record
6
+ for (const clusterRecord of params.clusters.map(verifyCluster)){
7
+ Object.assign(record, clusterRecord);
11
8
  }
12
9
  return new GraphModel({
13
10
  aliases: params.aliases,
@@ -24,10 +24,10 @@ export declare const integerModel: {
24
24
  readonly default: {
25
25
  readonly type: "integer";
26
26
  };
27
- readonly min: {
27
+ readonly minimum: {
28
28
  readonly type: "integer";
29
29
  };
30
- readonly max: {
30
+ readonly maximum: {
31
31
  readonly type: "integer";
32
32
  };
33
33
  };
@@ -70,10 +70,12 @@ export declare const stringEnumModel: {
70
70
  readonly type: "array";
71
71
  readonly items: {
72
72
  readonly type: "string";
73
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
73
74
  };
74
75
  };
75
76
  readonly default: {
76
77
  readonly type: "string";
78
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
77
79
  };
78
80
  };
79
81
  readonly required: readonly ["type", "title", "enum"];
@@ -168,10 +170,12 @@ export declare const stringModel: {
168
170
  readonly type: "array";
169
171
  readonly items: {
170
172
  readonly type: "string";
173
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
171
174
  };
172
175
  };
173
176
  readonly default: {
174
177
  readonly type: "string";
178
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
175
179
  };
176
180
  };
177
181
  readonly required: readonly ["type", "title", "enum"];
@@ -217,10 +221,10 @@ export declare const scalarModel: {
217
221
  readonly default: {
218
222
  readonly type: "integer";
219
223
  };
220
- readonly min: {
224
+ readonly minimum: {
221
225
  readonly type: "integer";
222
226
  };
223
- readonly max: {
227
+ readonly maximum: {
224
228
  readonly type: "integer";
225
229
  };
226
230
  };
@@ -285,10 +289,12 @@ export declare const scalarModel: {
285
289
  readonly type: "array";
286
290
  readonly items: {
287
291
  readonly type: "string";
292
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
288
293
  };
289
294
  };
290
295
  readonly default: {
291
296
  readonly type: "string";
297
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
292
298
  };
293
299
  };
294
300
  readonly required: readonly ["type", "title", "enum"];
@@ -322,6 +328,10 @@ export declare const refModel: {
322
328
  readonly additionalProperties: false;
323
329
  };
324
330
  export type RefModel = FromSchema<typeof refModel>;
331
+ export declare const nameString: {
332
+ readonly type: "string";
333
+ readonly pattern: "^[A-Z]+[A-Za-z0-9]+$";
334
+ };
325
335
  export declare const arrayModel: {
326
336
  readonly type: "object";
327
337
  readonly properties: {
@@ -331,6 +341,7 @@ export declare const arrayModel: {
331
341
  };
332
342
  readonly title: {
333
343
  readonly type: "string";
344
+ readonly pattern: "^[A-Z]+[A-Za-z0-9]+$";
334
345
  };
335
346
  readonly items: {
336
347
  readonly type: "object";
@@ -342,6 +353,15 @@ export declare const arrayModel: {
342
353
  readonly required: readonly ["$ref"];
343
354
  readonly additionalProperties: false;
344
355
  };
356
+ readonly uniqueItems: {
357
+ readonly type: "boolean";
358
+ };
359
+ readonly minItems: {
360
+ readonly type: "integer";
361
+ };
362
+ readonly maxItems: {
363
+ readonly type: "integer";
364
+ };
345
365
  };
346
366
  readonly required: readonly ["type", "title", "items"];
347
367
  readonly additionalProperties: false;
@@ -356,16 +376,19 @@ export declare const baseObjectModel: {
356
376
  };
357
377
  readonly properties: {
358
378
  readonly type: "object";
359
- readonly additionalProperties: {
360
- readonly type: "object";
361
- readonly properties: {
362
- readonly $ref: {
363
- readonly type: "string";
379
+ readonly patternProperties: {
380
+ readonly '^[a-z]+[A-Za-z0-9]+$': {
381
+ readonly type: "object";
382
+ readonly properties: {
383
+ readonly $ref: {
384
+ readonly type: "string";
385
+ };
364
386
  };
387
+ readonly required: readonly ["$ref"];
388
+ readonly additionalProperties: false;
365
389
  };
366
- readonly required: readonly ["$ref"];
367
- readonly additionalProperties: false;
368
390
  };
391
+ readonly additionalProperties: false;
369
392
  };
370
393
  readonly required: {
371
394
  readonly type: "array";
@@ -385,6 +408,7 @@ export declare const objectModel: {
385
408
  readonly properties: {
386
409
  readonly title: {
387
410
  readonly type: "string";
411
+ readonly pattern: "^[A-Z]+[A-Za-z0-9]+$";
388
412
  };
389
413
  readonly type: {
390
414
  readonly type: "string";
@@ -392,16 +416,19 @@ export declare const objectModel: {
392
416
  };
393
417
  readonly properties: {
394
418
  readonly type: "object";
395
- readonly additionalProperties: {
396
- readonly type: "object";
397
- readonly properties: {
398
- readonly $ref: {
399
- readonly type: "string";
419
+ readonly patternProperties: {
420
+ readonly '^[a-z]+[A-Za-z0-9]+$': {
421
+ readonly type: "object";
422
+ readonly properties: {
423
+ readonly $ref: {
424
+ readonly type: "string";
425
+ };
400
426
  };
427
+ readonly required: readonly ["$ref"];
428
+ readonly additionalProperties: false;
401
429
  };
402
- readonly required: readonly ["$ref"];
403
- readonly additionalProperties: false;
404
430
  };
431
+ readonly additionalProperties: false;
405
432
  };
406
433
  readonly required: {
407
434
  readonly type: "array";
@@ -427,6 +454,7 @@ export declare const shapeModel: {
427
454
  };
428
455
  readonly title: {
429
456
  readonly type: "string";
457
+ readonly pattern: "^[A-Z]+[A-Za-z0-9]+$";
430
458
  };
431
459
  readonly items: {
432
460
  readonly type: "object";
@@ -438,6 +466,15 @@ export declare const shapeModel: {
438
466
  readonly required: readonly ["$ref"];
439
467
  readonly additionalProperties: false;
440
468
  };
469
+ readonly uniqueItems: {
470
+ readonly type: "boolean";
471
+ };
472
+ readonly minItems: {
473
+ readonly type: "integer";
474
+ };
475
+ readonly maxItems: {
476
+ readonly type: "integer";
477
+ };
441
478
  };
442
479
  readonly required: readonly ["type", "title", "items"];
443
480
  readonly additionalProperties: false;
@@ -446,6 +483,7 @@ export declare const shapeModel: {
446
483
  readonly properties: {
447
484
  readonly title: {
448
485
  readonly type: "string";
486
+ readonly pattern: "^[A-Z]+[A-Za-z0-9]+$";
449
487
  };
450
488
  readonly type: {
451
489
  readonly type: "string";
@@ -453,16 +491,19 @@ export declare const shapeModel: {
453
491
  };
454
492
  readonly properties: {
455
493
  readonly type: "object";
456
- readonly additionalProperties: {
457
- readonly type: "object";
458
- readonly properties: {
459
- readonly $ref: {
460
- readonly type: "string";
494
+ readonly patternProperties: {
495
+ readonly '^[a-z]+[A-Za-z0-9]+$': {
496
+ readonly type: "object";
497
+ readonly properties: {
498
+ readonly $ref: {
499
+ readonly type: "string";
500
+ };
461
501
  };
502
+ readonly required: readonly ["$ref"];
503
+ readonly additionalProperties: false;
462
504
  };
463
- readonly required: readonly ["$ref"];
464
- readonly additionalProperties: false;
465
505
  };
506
+ readonly additionalProperties: false;
466
507
  };
467
508
  readonly required: {
468
509
  readonly type: "array";
@@ -504,10 +545,10 @@ export declare const typeModel: {
504
545
  readonly default: {
505
546
  readonly type: "integer";
506
547
  };
507
- readonly min: {
548
+ readonly minimum: {
508
549
  readonly type: "integer";
509
550
  };
510
- readonly max: {
551
+ readonly maximum: {
511
552
  readonly type: "integer";
512
553
  };
513
554
  };
@@ -572,10 +613,12 @@ export declare const typeModel: {
572
613
  readonly type: "array";
573
614
  readonly items: {
574
615
  readonly type: "string";
616
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
575
617
  };
576
618
  };
577
619
  readonly default: {
578
620
  readonly type: "string";
621
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
579
622
  };
580
623
  };
581
624
  readonly required: readonly ["type", "title", "enum"];
@@ -606,6 +649,7 @@ export declare const typeModel: {
606
649
  };
607
650
  readonly title: {
608
651
  readonly type: "string";
652
+ readonly pattern: "^[A-Z]+[A-Za-z0-9]+$";
609
653
  };
610
654
  readonly items: {
611
655
  readonly type: "object";
@@ -617,6 +661,15 @@ export declare const typeModel: {
617
661
  readonly required: readonly ["$ref"];
618
662
  readonly additionalProperties: false;
619
663
  };
664
+ readonly uniqueItems: {
665
+ readonly type: "boolean";
666
+ };
667
+ readonly minItems: {
668
+ readonly type: "integer";
669
+ };
670
+ readonly maxItems: {
671
+ readonly type: "integer";
672
+ };
620
673
  };
621
674
  readonly required: readonly ["type", "title", "items"];
622
675
  readonly additionalProperties: false;
@@ -625,6 +678,7 @@ export declare const typeModel: {
625
678
  readonly properties: {
626
679
  readonly title: {
627
680
  readonly type: "string";
681
+ readonly pattern: "^[A-Z]+[A-Za-z0-9]+$";
628
682
  };
629
683
  readonly type: {
630
684
  readonly type: "string";
@@ -632,16 +686,19 @@ export declare const typeModel: {
632
686
  };
633
687
  readonly properties: {
634
688
  readonly type: "object";
635
- readonly additionalProperties: {
636
- readonly type: "object";
637
- readonly properties: {
638
- readonly $ref: {
639
- readonly type: "string";
689
+ readonly patternProperties: {
690
+ readonly '^[a-z]+[A-Za-z0-9]+$': {
691
+ readonly type: "object";
692
+ readonly properties: {
693
+ readonly $ref: {
694
+ readonly type: "string";
695
+ };
640
696
  };
697
+ readonly required: readonly ["$ref"];
698
+ readonly additionalProperties: false;
641
699
  };
642
- readonly required: readonly ["$ref"];
643
- readonly additionalProperties: false;
644
700
  };
701
+ readonly additionalProperties: false;
645
702
  };
646
703
  readonly required: {
647
704
  readonly type: "array";
@@ -686,10 +743,10 @@ export declare const referencesRecordModel: {
686
743
  readonly default: {
687
744
  readonly type: "integer";
688
745
  };
689
- readonly min: {
746
+ readonly minimum: {
690
747
  readonly type: "integer";
691
748
  };
692
- readonly max: {
749
+ readonly maximum: {
693
750
  readonly type: "integer";
694
751
  };
695
752
  };
@@ -754,10 +811,12 @@ export declare const referencesRecordModel: {
754
811
  readonly type: "array";
755
812
  readonly items: {
756
813
  readonly type: "string";
814
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
757
815
  };
758
816
  };
759
817
  readonly default: {
760
818
  readonly type: "string";
819
+ readonly pattern: "^[A-Z]+[A-Z_]+[A-Z]$";
761
820
  };
762
821
  };
763
822
  readonly required: readonly ["type", "title", "enum"];
@@ -788,6 +847,7 @@ export declare const referencesRecordModel: {
788
847
  };
789
848
  readonly title: {
790
849
  readonly type: "string";
850
+ readonly pattern: "^[A-Z]+[A-Za-z0-9]+$";
791
851
  };
792
852
  readonly items: {
793
853
  readonly type: "object";
@@ -799,6 +859,15 @@ export declare const referencesRecordModel: {
799
859
  readonly required: readonly ["$ref"];
800
860
  readonly additionalProperties: false;
801
861
  };
862
+ readonly uniqueItems: {
863
+ readonly type: "boolean";
864
+ };
865
+ readonly minItems: {
866
+ readonly type: "integer";
867
+ };
868
+ readonly maxItems: {
869
+ readonly type: "integer";
870
+ };
802
871
  };
803
872
  readonly required: readonly ["type", "title", "items"];
804
873
  readonly additionalProperties: false;
@@ -807,6 +876,7 @@ export declare const referencesRecordModel: {
807
876
  readonly properties: {
808
877
  readonly title: {
809
878
  readonly type: "string";
879
+ readonly pattern: "^[A-Z]+[A-Za-z0-9]+$";
810
880
  };
811
881
  readonly type: {
812
882
  readonly type: "string";
@@ -814,16 +884,19 @@ export declare const referencesRecordModel: {
814
884
  };
815
885
  readonly properties: {
816
886
  readonly type: "object";
817
- readonly additionalProperties: {
818
- readonly type: "object";
819
- readonly properties: {
820
- readonly $ref: {
821
- readonly type: "string";
887
+ readonly patternProperties: {
888
+ readonly '^[a-z]+[A-Za-z0-9]+$': {
889
+ readonly type: "object";
890
+ readonly properties: {
891
+ readonly $ref: {
892
+ readonly type: "string";
893
+ };
822
894
  };
895
+ readonly required: readonly ["$ref"];
896
+ readonly additionalProperties: false;
823
897
  };
824
- readonly required: readonly ["$ref"];
825
- readonly additionalProperties: false;
826
898
  };
899
+ readonly additionalProperties: false;
827
900
  };
828
901
  readonly required: {
829
902
  readonly type: "array";
@@ -1 +1 @@
1
- {"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../src/models/json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAU,MAAM,gBAAgB,CAAA;AAExD,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAQE,CAAA;AAC3B,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CA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AM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAEpD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGP,CAAA;AAC3B,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -24,10 +24,10 @@ export const integerModel = {
24
24
  default: {
25
25
  type: 'integer'
26
26
  },
27
- min: {
27
+ minimum: {
28
28
  type: 'integer'
29
29
  },
30
- max: {
30
+ maximum: {
31
31
  type: 'integer'
32
32
  }
33
33
  },
@@ -58,6 +58,11 @@ export const numberModel = {
58
58
  ],
59
59
  additionalProperties: false
60
60
  };
61
+ // Uppercase characters and "_" to match GraphQL enum
62
+ const enumString = {
63
+ type: 'string',
64
+ pattern: '^[A-Z]+[A-Z_]+[A-Z]$'
65
+ };
61
66
  export const stringEnumModel = {
62
67
  type: 'object',
63
68
  properties: {
@@ -70,13 +75,9 @@ export const stringEnumModel = {
70
75
  },
71
76
  enum: {
72
77
  type: 'array',
73
- items: {
74
- type: 'string'
75
- }
78
+ items: enumString
76
79
  },
77
- default: {
78
- type: 'string'
79
- }
80
+ default: enumString
80
81
  },
81
82
  required: [
82
83
  'type',
@@ -165,6 +166,11 @@ export const refModel = {
165
166
  ],
166
167
  additionalProperties: false
167
168
  };
169
+ // Valid GraphQL name
170
+ export const nameString = {
171
+ type: 'string',
172
+ pattern: '^[A-Z]+[A-Za-z0-9]+$'
173
+ };
168
174
  export const arrayModel = {
169
175
  type: 'object',
170
176
  properties: {
@@ -172,10 +178,17 @@ export const arrayModel = {
172
178
  type: 'string',
173
179
  const: 'array'
174
180
  },
175
- title: {
176
- type: 'string'
181
+ title: nameString,
182
+ items: refModel,
183
+ uniqueItems: {
184
+ type: 'boolean'
185
+ },
186
+ minItems: {
187
+ type: 'integer'
177
188
  },
178
- items: refModel
189
+ maxItems: {
190
+ type: 'integer'
191
+ }
179
192
  },
180
193
  required: [
181
194
  'type',
@@ -193,7 +206,10 @@ export const baseObjectModel = {
193
206
  },
194
207
  properties: {
195
208
  type: 'object',
196
- additionalProperties: refModel
209
+ patternProperties: {
210
+ '^[a-z]+[A-Za-z0-9]+$': refModel
211
+ },
212
+ additionalProperties: false
197
213
  },
198
214
  required: {
199
215
  type: 'array',
@@ -217,9 +233,7 @@ export const objectModel = {
217
233
  type: 'object',
218
234
  properties: {
219
235
  ...baseObjectModel.properties,
220
- title: {
221
- type: 'string'
222
- }
236
+ title: nameString
223
237
  },
224
238
  required: [
225
239
  ...baseObjectModel.required,
@@ -1 +1 @@
1
- {"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../src/models/value.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;CAIH,CAAA;AAE3B,eAAO,MAAM,cAAc;;;;CAIA,CAAA;AAE3B,eAAO,MAAM,oBAAoB;;;;CAIN,CAAA"}
1
+ {"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../src/models/value.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;CAKH,CAAA;AAE3B,eAAO,MAAM,cAAc;;;;CAIA,CAAA;AAE3B,eAAO,MAAM,oBAAoB;;;;CAIN,CAAA"}
@@ -1,6 +1,7 @@
1
1
  export const binaryStringValue = {
2
2
  title: 'KubunBinaryValue',
3
3
  type: 'string',
4
+ // Base 64 encoding
4
5
  pattern: '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$'
5
6
  };
6
7
  export const didStringValue = {