@sphereon/ssi-sdk.pd-manager 0.34.1-fix.148 → 0.34.1-fix.163

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,1042 +1,1034 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __getOwnPropNames = Object.getOwnPropertyNames;
3
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
- var __commonJS = (cb, mod) => function __require() {
5
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
6
- };
7
3
 
8
4
  // plugin.schema.json
9
- var require_plugin_schema = __commonJS({
10
- "plugin.schema.json"(exports, module) {
11
- module.exports = {
12
- IPDManager: {
13
- components: {
14
- schemas: {
15
- DeleteDefinitionItemArgs: {
16
- type: "object",
17
- properties: {
18
- itemId: {
19
- type: "string"
20
- }
21
- },
22
- required: ["itemId"],
23
- additionalProperties: false
24
- },
25
- DeleteDefinitionItemsArgs: {
26
- $ref: "#/components/schemas/GetDefinitionItemsArgs"
27
- },
28
- GetDefinitionItemsArgs: {
29
- type: "object",
30
- properties: {
31
- filter: {
32
- $ref: "#/components/schemas/FindDefinitionArgs"
33
- },
34
- opts: {
35
- $ref: "#/components/schemas/FetchOptions"
36
- }
37
- },
38
- additionalProperties: false
39
- },
40
- FindDefinitionArgs: {
41
- type: "array",
42
- items: {
43
- $ref: "#/components/schemas/PresentationDefinitionItemFilter"
44
- }
5
+ var plugin_schema_default = {
6
+ IPDManager: {
7
+ components: {
8
+ schemas: {
9
+ DeleteDefinitionItemArgs: {
10
+ type: "object",
11
+ properties: {
12
+ itemId: {
13
+ type: "string"
14
+ }
15
+ },
16
+ required: ["itemId"],
17
+ additionalProperties: false
18
+ },
19
+ DeleteDefinitionItemsArgs: {
20
+ $ref: "#/components/schemas/GetDefinitionItemsArgs"
21
+ },
22
+ GetDefinitionItemsArgs: {
23
+ type: "object",
24
+ properties: {
25
+ filter: {
26
+ $ref: "#/components/schemas/FindDefinitionArgs"
45
27
  },
46
- PresentationDefinitionItemFilter: {
47
- $ref: '#/components/schemas/Partial<Omit<PresentationDefinitionItem,("definitionPayload"|"dcqlPayload")>>'
48
- },
49
- 'Partial<Omit<PresentationDefinitionItem,("definitionPayload"|"dcqlPayload")>>': {
50
- type: "object",
51
- properties: {
52
- id: {
53
- type: "string"
54
- },
55
- definitionId: {
56
- type: "string"
57
- },
58
- tenantId: {
59
- type: "string"
60
- },
61
- version: {
62
- type: "string"
63
- },
64
- name: {
65
- type: "string"
66
- },
67
- purpose: {
68
- type: "string"
69
- },
70
- createdAt: {
71
- type: "string",
72
- format: "date-time"
73
- },
74
- lastUpdatedAt: {
75
- type: "string",
76
- format: "date-time"
77
- }
78
- },
79
- additionalProperties: false
80
- },
81
- FetchOptions: {
82
- type: "object",
83
- properties: {
84
- showVersionHistory: {
85
- type: "boolean"
86
- }
87
- },
88
- additionalProperties: false
89
- },
90
- GetDefinitionItemArgs: {
91
- type: "object",
92
- properties: {
93
- itemId: {
94
- type: "string"
95
- }
96
- },
97
- required: ["itemId"],
98
- additionalProperties: false
99
- },
100
- PresentationDefinitionItem: {
101
- type: "object",
102
- properties: {
103
- id: {
104
- type: "string"
105
- },
106
- definitionId: {
107
- type: "string"
108
- },
109
- tenantId: {
110
- type: "string"
111
- },
112
- version: {
113
- type: "string"
114
- },
115
- name: {
116
- type: "string"
117
- },
118
- purpose: {
119
- type: "string"
120
- },
121
- definitionPayload: {
122
- $ref: "#/components/schemas/IPresentationDefinition"
123
- },
124
- dcqlPayload: {
125
- $ref: "#/components/schemas/DcqlQueryREST"
126
- },
127
- createdAt: {
128
- type: "string",
129
- format: "date-time"
130
- },
131
- lastUpdatedAt: {
132
- type: "string",
133
- format: "date-time"
134
- }
135
- },
136
- required: ["id", "definitionId", "version", "definitionPayload", "createdAt", "lastUpdatedAt"],
137
- additionalProperties: false
138
- },
139
- IPresentationDefinition: {
140
- anyOf: [
141
- {
142
- $ref: "#/components/schemas/PresentationDefinitionV1"
143
- },
144
- {
145
- $ref: "#/components/schemas/PresentationDefinitionV2"
146
- }
147
- ]
148
- },
149
- PresentationDefinitionV1: {
150
- type: "object",
151
- properties: {
152
- id: {
153
- type: "string"
154
- },
155
- name: {
156
- type: "string"
157
- },
158
- purpose: {
159
- type: "string"
160
- },
161
- format: {
162
- $ref: "#/components/schemas/Format"
163
- },
164
- submission_requirements: {
165
- type: "array",
166
- items: {
167
- $ref: "#/components/schemas/SubmissionRequirement"
168
- }
169
- },
170
- input_descriptors: {
171
- type: "array",
172
- items: {
173
- $ref: "#/components/schemas/InputDescriptorV1"
174
- }
175
- }
176
- },
177
- required: ["id", "input_descriptors"],
178
- additionalProperties: false
179
- },
180
- Format: {
181
- type: "object",
182
- properties: {
183
- jwt: {
184
- $ref: "#/components/schemas/JwtObject"
185
- },
186
- jwt_vc: {
187
- $ref: "#/components/schemas/JwtObject"
188
- },
189
- jwt_vc_json: {
190
- $ref: "#/components/schemas/JwtObject"
191
- },
192
- jwt_vp: {
193
- $ref: "#/components/schemas/JwtObject"
194
- },
195
- jwt_vp_json: {
196
- $ref: "#/components/schemas/JwtObject"
197
- },
198
- ldp: {
199
- $ref: "#/components/schemas/LdpObject"
200
- },
201
- ldp_vc: {
202
- $ref: "#/components/schemas/LdpObject"
203
- },
204
- ldp_vp: {
205
- $ref: "#/components/schemas/LdpObject"
206
- },
207
- di: {
208
- $ref: "#/components/schemas/DiObject"
209
- },
210
- di_vc: {
211
- $ref: "#/components/schemas/DiObject"
212
- },
213
- di_vp: {
214
- $ref: "#/components/schemas/DiObject"
215
- },
216
- "dc+sd-jwt": {
217
- $ref: "#/components/schemas/SdJwtObject"
218
- },
219
- mso_mdoc: {
220
- $ref: "#/components/schemas/MsoMdocObject"
221
- }
222
- },
223
- additionalProperties: false
224
- },
225
- JwtObject: {
226
- type: "object",
227
- properties: {
228
- alg: {
229
- type: "array",
230
- items: {
231
- type: "string"
232
- }
233
- }
234
- },
235
- required: ["alg"],
236
- additionalProperties: false
237
- },
238
- LdpObject: {
239
- type: "object",
240
- properties: {
241
- proof_type: {
242
- type: "array",
243
- items: {
244
- type: "string"
245
- }
246
- }
247
- },
248
- required: ["proof_type"],
249
- additionalProperties: false
250
- },
251
- DiObject: {
252
- type: "object",
253
- properties: {
254
- proof_type: {
255
- type: "array",
256
- items: {
257
- type: "string"
258
- }
259
- },
260
- cryptosuite: {
261
- type: "array",
262
- items: {
263
- type: "string"
264
- }
265
- }
266
- },
267
- required: ["proof_type", "cryptosuite"],
268
- additionalProperties: false
269
- },
270
- SdJwtObject: {
271
- type: "object",
272
- properties: {
273
- "sd-jwt_alg_values": {
274
- type: "array",
275
- items: {
276
- type: "string"
277
- }
278
- },
279
- "kb-jwt_alg_values": {
280
- type: "array",
281
- items: {
282
- type: "string"
283
- }
284
- }
285
- },
286
- additionalProperties: false
287
- },
288
- MsoMdocObject: {
289
- type: "object",
290
- properties: {
291
- alg: {
292
- type: "array",
293
- items: {
294
- type: "string"
295
- }
296
- }
297
- },
298
- required: ["alg"],
299
- additionalProperties: false
300
- },
301
- SubmissionRequirement: {
302
- type: "object",
303
- properties: {
304
- name: {
305
- type: "string"
306
- },
307
- purpose: {
308
- type: "string"
309
- },
310
- rule: {
311
- $ref: "#/components/schemas/Rules"
312
- },
313
- count: {
314
- type: "number"
315
- },
316
- min: {
317
- type: "number"
318
- },
319
- max: {
320
- type: "number"
321
- },
322
- from: {
323
- type: "string"
324
- },
325
- from_nested: {
326
- type: "array",
327
- items: {
328
- $ref: "#/components/schemas/SubmissionRequirement"
329
- }
330
- }
331
- },
332
- required: ["rule"],
333
- additionalProperties: false
334
- },
335
- Rules: {
336
- type: "string",
337
- enum: ["all", "pick"]
338
- },
339
- InputDescriptorV1: {
340
- type: "object",
341
- properties: {
342
- id: {
343
- type: "string"
344
- },
345
- name: {
346
- type: "string"
347
- },
348
- purpose: {
349
- type: "string"
350
- },
351
- group: {
352
- type: "array",
353
- items: {
354
- type: "string"
355
- }
356
- },
357
- schema: {
358
- type: "array",
359
- items: {
360
- $ref: "#/components/schemas/Schema"
361
- }
362
- },
363
- issuance: {
364
- type: "array",
365
- items: {
366
- $ref: "#/components/schemas/Issuance"
367
- }
368
- },
369
- constraints: {
370
- $ref: "#/components/schemas/ConstraintsV1"
371
- }
372
- },
373
- required: ["id", "schema"],
374
- additionalProperties: false
375
- },
376
- Schema: {
377
- type: "object",
378
- properties: {
379
- uri: {
380
- type: "string"
381
- },
382
- required: {
383
- type: "boolean"
384
- }
385
- },
386
- required: ["uri"],
387
- additionalProperties: false
388
- },
389
- Issuance: {
390
- type: "object",
391
- properties: {
392
- manifest: {
393
- type: "string"
394
- }
395
- },
396
- additionalProperties: {}
397
- },
398
- ConstraintsV1: {
399
- type: "object",
400
- properties: {
401
- limit_disclosure: {
402
- $ref: "#/components/schemas/Optionality"
403
- },
404
- statuses: {
405
- $ref: "#/components/schemas/Statuses"
406
- },
407
- fields: {
408
- type: "array",
409
- items: {
410
- $ref: "#/components/schemas/FieldV1"
411
- }
412
- },
413
- subject_is_issuer: {
414
- $ref: "#/components/schemas/Optionality"
415
- },
416
- is_holder: {
417
- type: "array",
418
- items: {
419
- $ref: "#/components/schemas/HolderSubject"
420
- }
421
- },
422
- same_subject: {
423
- type: "array",
424
- items: {
425
- $ref: "#/components/schemas/HolderSubject"
426
- }
427
- }
428
- },
429
- additionalProperties: false
430
- },
431
- Optionality: {
28
+ opts: {
29
+ $ref: "#/components/schemas/FetchOptions"
30
+ }
31
+ },
32
+ additionalProperties: false
33
+ },
34
+ FindDefinitionArgs: {
35
+ type: "array",
36
+ items: {
37
+ $ref: "#/components/schemas/PresentationDefinitionItemFilter"
38
+ }
39
+ },
40
+ PresentationDefinitionItemFilter: {
41
+ $ref: '#/components/schemas/Partial<Omit<PresentationDefinitionItem,("definitionPayload"|"dcqlPayload")>>'
42
+ },
43
+ 'Partial<Omit<PresentationDefinitionItem,("definitionPayload"|"dcqlPayload")>>': {
44
+ type: "object",
45
+ properties: {
46
+ id: {
47
+ type: "string"
48
+ },
49
+ definitionId: {
50
+ type: "string"
51
+ },
52
+ tenantId: {
53
+ type: "string"
54
+ },
55
+ version: {
56
+ type: "string"
57
+ },
58
+ name: {
59
+ type: "string"
60
+ },
61
+ purpose: {
62
+ type: "string"
63
+ },
64
+ createdAt: {
432
65
  type: "string",
433
- enum: ["required", "preferred"]
434
- },
435
- Statuses: {
436
- type: "object",
437
- properties: {
438
- active: {
439
- $ref: "#/components/schemas/PdStatus"
440
- },
441
- suspended: {
442
- $ref: "#/components/schemas/PdStatus"
443
- },
444
- revoked: {
445
- $ref: "#/components/schemas/PdStatus"
446
- }
447
- },
448
- additionalProperties: false
449
- },
450
- PdStatus: {
451
- type: "object",
452
- properties: {
453
- directive: {
454
- $ref: "#/components/schemas/Directives"
455
- }
456
- },
457
- additionalProperties: false
458
- },
459
- Directives: {
66
+ format: "date-time"
67
+ },
68
+ lastUpdatedAt: {
460
69
  type: "string",
461
- enum: ["required", "allowed", "disallowed"]
462
- },
463
- FieldV1: {
464
- type: "object",
465
- properties: {
466
- id: {
467
- type: "string"
468
- },
469
- path: {
470
- type: "array",
471
- items: {
472
- type: "string"
473
- }
474
- },
475
- purpose: {
476
- type: "string"
477
- },
478
- filter: {
479
- $ref: "#/components/schemas/FilterV1"
480
- },
481
- predicate: {
482
- $ref: "#/components/schemas/Optionality"
483
- }
484
- },
485
- required: ["path"],
486
- additionalProperties: false
487
- },
488
- FilterV1: {
489
- type: "object",
490
- properties: {
491
- const: {
492
- $ref: "#/components/schemas/OneOfNumberStringBoolean"
493
- },
494
- enum: {
495
- type: "array",
496
- items: {
497
- $ref: "#/components/schemas/OneOfNumberStringBoolean"
498
- }
499
- },
500
- exclusiveMinimum: {
501
- $ref: "#/components/schemas/OneOfNumberString"
502
- },
503
- exclusiveMaximum: {
504
- $ref: "#/components/schemas/OneOfNumberString"
505
- },
506
- format: {
507
- type: "string"
508
- },
509
- minLength: {
510
- type: "number"
511
- },
512
- maxLength: {
513
- type: "number"
514
- },
515
- minimum: {
516
- $ref: "#/components/schemas/OneOfNumberString"
517
- },
518
- maximum: {
519
- $ref: "#/components/schemas/OneOfNumberString"
520
- },
521
- not: {
522
- type: "object"
523
- },
524
- pattern: {
525
- type: "string"
526
- },
527
- type: {
528
- type: "string"
529
- }
530
- },
531
- additionalProperties: false
532
- },
533
- OneOfNumberStringBoolean: {
534
- type: ["boolean", "number", "string"]
535
- },
536
- OneOfNumberString: {
537
- type: ["number", "string"]
538
- },
539
- HolderSubject: {
540
- type: "object",
541
- properties: {
542
- field_id: {
543
- type: "array",
544
- items: {
545
- type: "string"
546
- }
547
- },
548
- directive: {
549
- $ref: "#/components/schemas/Optionality"
550
- }
551
- },
552
- required: ["field_id", "directive"],
553
- additionalProperties: false
554
- },
555
- PresentationDefinitionV2: {
556
- type: "object",
557
- properties: {
558
- id: {
559
- type: "string"
560
- },
561
- name: {
562
- type: "string"
563
- },
564
- purpose: {
565
- type: "string"
566
- },
567
- format: {
568
- $ref: "#/components/schemas/Format"
569
- },
570
- submission_requirements: {
571
- type: "array",
572
- items: {
573
- $ref: "#/components/schemas/SubmissionRequirement"
574
- }
575
- },
576
- input_descriptors: {
577
- type: "array",
578
- items: {
579
- $ref: "#/components/schemas/InputDescriptorV2"
580
- }
581
- },
582
- frame: {
583
- type: "object"
584
- }
585
- },
586
- required: ["id", "input_descriptors"],
587
- additionalProperties: false
588
- },
589
- InputDescriptorV2: {
590
- type: "object",
591
- properties: {
592
- id: {
593
- type: "string"
594
- },
595
- name: {
596
- type: "string"
597
- },
598
- purpose: {
599
- type: "string"
600
- },
601
- format: {
602
- $ref: "#/components/schemas/Format"
603
- },
604
- group: {
605
- type: "array",
606
- items: {
607
- type: "string"
608
- }
609
- },
610
- issuance: {
611
- type: "array",
612
- items: {
613
- $ref: "#/components/schemas/Issuance"
614
- }
615
- },
616
- constraints: {
617
- $ref: "#/components/schemas/ConstraintsV2"
618
- }
619
- },
620
- required: ["id", "constraints"],
621
- additionalProperties: false
622
- },
623
- ConstraintsV2: {
624
- type: "object",
625
- properties: {
626
- limit_disclosure: {
627
- $ref: "#/components/schemas/Optionality"
628
- },
629
- statuses: {
630
- $ref: "#/components/schemas/Statuses"
631
- },
632
- fields: {
633
- type: "array",
634
- items: {
635
- $ref: "#/components/schemas/FieldV2"
636
- }
637
- },
638
- subject_is_issuer: {
639
- $ref: "#/components/schemas/Optionality"
640
- },
641
- is_holder: {
642
- type: "array",
643
- items: {
644
- $ref: "#/components/schemas/HolderSubject"
645
- }
646
- },
647
- same_subject: {
648
- type: "array",
649
- items: {
650
- $ref: "#/components/schemas/HolderSubject"
651
- }
652
- }
653
- },
654
- additionalProperties: false
655
- },
656
- FieldV2: {
657
- type: "object",
658
- properties: {
659
- id: {
660
- type: "string"
661
- },
662
- path: {
663
- type: "array",
664
- items: {
665
- type: "string"
666
- }
667
- },
668
- purpose: {
669
- type: "string"
670
- },
671
- filter: {
672
- $ref: "#/components/schemas/FilterV2"
673
- },
674
- predicate: {
675
- $ref: "#/components/schemas/Optionality"
676
- },
677
- intent_to_retain: {
678
- type: "boolean"
679
- },
680
- name: {
681
- type: "string"
682
- },
683
- optional: {
684
- type: "boolean"
685
- }
686
- },
687
- required: ["path"],
688
- additionalProperties: false
689
- },
690
- FilterV2: {
691
- type: "object",
692
- properties: {
693
- const: {
694
- $ref: "#/components/schemas/OneOfNumberStringBoolean"
695
- },
696
- enum: {
697
- type: "array",
698
- items: {
699
- $ref: "#/components/schemas/OneOfNumberStringBoolean"
700
- }
701
- },
702
- exclusiveMinimum: {
703
- $ref: "#/components/schemas/OneOfNumberString"
704
- },
705
- exclusiveMaximum: {
706
- $ref: "#/components/schemas/OneOfNumberString"
707
- },
708
- format: {
709
- type: "string"
710
- },
711
- formatMaximum: {
712
- type: "string"
713
- },
714
- formatMinimum: {
715
- type: "string"
716
- },
717
- formatExclusiveMaximum: {
718
- type: "string"
719
- },
720
- formatExclusiveMinimum: {
721
- type: "string"
722
- },
723
- minLength: {
724
- type: "number"
725
- },
726
- maxLength: {
727
- type: "number"
728
- },
729
- minimum: {
730
- $ref: "#/components/schemas/OneOfNumberString"
731
- },
732
- maximum: {
733
- $ref: "#/components/schemas/OneOfNumberString"
734
- },
735
- not: {
736
- type: "object"
737
- },
738
- pattern: {
739
- type: "string"
740
- },
741
- type: {
742
- type: "string"
743
- },
744
- contains: {
745
- $ref: "#/components/schemas/FilterV2"
746
- },
747
- items: {
748
- $ref: "#/components/schemas/FilterV2Items"
749
- }
750
- },
751
- additionalProperties: false
752
- },
753
- FilterV2Items: {
754
- type: "object",
755
- properties: {
756
- const: {
757
- $ref: "#/components/schemas/OneOfNumberStringBoolean"
758
- },
759
- enum: {
760
- type: "array",
761
- items: {
762
- $ref: "#/components/schemas/OneOfNumberStringBoolean"
763
- }
764
- },
765
- exclusiveMinimum: {
766
- $ref: "#/components/schemas/OneOfNumberString"
767
- },
768
- exclusiveMaximum: {
769
- $ref: "#/components/schemas/OneOfNumberString"
770
- },
771
- format: {
772
- type: "string"
773
- },
774
- formatMaximum: {
775
- type: "string"
776
- },
777
- formatMinimum: {
778
- type: "string"
779
- },
780
- formatExclusiveMaximum: {
781
- type: "string"
782
- },
783
- formatExclusiveMinimum: {
784
- type: "string"
785
- },
786
- minLength: {
787
- type: "number"
788
- },
789
- maxLength: {
790
- type: "number"
791
- },
792
- minimum: {
793
- $ref: "#/components/schemas/OneOfNumberString"
794
- },
795
- maximum: {
796
- $ref: "#/components/schemas/OneOfNumberString"
797
- },
798
- not: {
799
- type: "object"
800
- },
801
- pattern: {
802
- type: "string"
803
- },
804
- type: {
805
- type: "string"
806
- },
807
- contains: {
808
- $ref: "#/components/schemas/FilterV2"
809
- },
810
- items: {
811
- $ref: "#/components/schemas/FilterV2Items"
812
- }
813
- },
814
- additionalProperties: false
815
- },
816
- DcqlQueryREST: {
817
- type: "object",
818
- properties: {
819
- credentials: {
820
- type: "array",
821
- items: {
822
- $ref: "#/components/schemas/DcqlCredentialQuery"
823
- }
824
- }
825
- },
826
- required: ["credentials"],
827
- additionalProperties: false
828
- },
829
- DcqlCredentialQuery: {
830
- type: "object",
831
- properties: {
832
- id: {
833
- type: "string"
834
- },
835
- format: {
836
- type: "string"
837
- },
838
- alg: {
839
- type: "array",
840
- items: {
841
- type: "string"
842
- }
843
- },
844
- claims: {
845
- type: "array",
846
- items: {
847
- $ref: "#/components/schemas/DcqlClaim"
848
- }
849
- },
850
- meta: {
851
- $ref: "#/components/schemas/Record<string,any>"
852
- }
853
- },
854
- required: ["id", "format", "claims"],
855
- additionalProperties: false
856
- },
857
- DcqlClaim: {
858
- type: "object",
859
- properties: {
860
- namespace: {
861
- type: "string"
862
- },
863
- claim_name: {
864
- type: "string"
865
- },
866
- filter: {
867
- $ref: "#/components/schemas/DcqlFilter"
868
- }
869
- },
870
- required: ["namespace", "claim_name"],
871
- additionalProperties: false
872
- },
873
- DcqlFilter: {
874
- type: "object",
875
- properties: {
876
- type: {
877
- type: "string",
878
- enum: ["string", "number", "boolean"]
879
- },
880
- pattern: {
881
- type: "string"
882
- },
883
- minimum: {
884
- type: "number"
885
- },
886
- maximum: {
887
- type: "number"
888
- }
889
- },
890
- required: ["type"],
891
- additionalProperties: false
892
- },
893
- "Record<string,any>": {
894
- type: "object"
70
+ format: "date-time"
71
+ }
72
+ },
73
+ additionalProperties: false
74
+ },
75
+ FetchOptions: {
76
+ type: "object",
77
+ properties: {
78
+ showVersionHistory: {
79
+ type: "boolean"
80
+ }
81
+ },
82
+ additionalProperties: false
83
+ },
84
+ GetDefinitionItemArgs: {
85
+ type: "object",
86
+ properties: {
87
+ itemId: {
88
+ type: "string"
89
+ }
90
+ },
91
+ required: ["itemId"],
92
+ additionalProperties: false
93
+ },
94
+ PresentationDefinitionItem: {
95
+ type: "object",
96
+ properties: {
97
+ id: {
98
+ type: "string"
99
+ },
100
+ definitionId: {
101
+ type: "string"
102
+ },
103
+ tenantId: {
104
+ type: "string"
105
+ },
106
+ version: {
107
+ type: "string"
895
108
  },
896
- HasDefinitionItemArgs: {
897
- $ref: "#/components/schemas/GetDefinitionItemArgs"
898
- },
899
- HasDefinitionItemsArgs: {
900
- $ref: "#/components/schemas/GetDefinitionItemsArgs"
901
- },
902
- PersistDefinitionArgs: {
903
- type: "object",
904
- properties: {
905
- definitionItem: {
906
- $ref: "#/components/schemas/PersistPresentationDefinitionItem"
907
- },
908
- opts: {
909
- $ref: "#/components/schemas/PersistOptions"
910
- }
911
- },
912
- required: ["definitionItem"],
913
- additionalProperties: false
914
- },
915
- PersistPresentationDefinitionItem: {
916
- type: "object",
917
- additionalProperties: false,
918
- properties: {
919
- id: {
920
- type: "string"
921
- },
922
- definitionId: {
923
- type: "string"
924
- },
925
- version: {
926
- type: "string"
927
- },
928
- tenantId: {
929
- type: "string"
930
- },
931
- name: {
932
- type: "string"
933
- },
934
- purpose: {
935
- type: "string"
936
- },
937
- definitionPayload: {
938
- $ref: "#/components/schemas/IPresentationDefinition"
939
- },
940
- dcqlPayload: {
941
- $ref: "#/components/schemas/DcqlQueryREST"
942
- }
943
- },
944
- required: ["definitionPayload"]
945
- },
946
- PersistOptions: {
947
- type: "object",
948
- properties: {
949
- versionControlMode: {
950
- $ref: "#/components/schemas/VersionControlMode"
951
- },
952
- versionIncrementReleaseType: {
953
- $ref: "#/components/schemas/ReleaseType"
954
- }
955
- },
956
- additionalProperties: false
957
- },
958
- VersionControlMode: {
109
+ name: {
110
+ type: "string"
111
+ },
112
+ purpose: {
113
+ type: "string"
114
+ },
115
+ definitionPayload: {
116
+ $ref: "#/components/schemas/IPresentationDefinition"
117
+ },
118
+ dcqlPayload: {
119
+ $ref: "#/components/schemas/DcqlQueryREST"
120
+ },
121
+ createdAt: {
959
122
  type: "string",
960
- enum: ["AutoIncrement", "Manual", "Overwrite", "OverwriteLatest"]
123
+ format: "date-time"
961
124
  },
962
- ReleaseType: {
125
+ lastUpdatedAt: {
963
126
  type: "string",
964
- enum: ["major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease", "release"]
127
+ format: "date-time"
128
+ }
129
+ },
130
+ required: ["id", "definitionId", "version", "definitionPayload", "createdAt", "lastUpdatedAt"],
131
+ additionalProperties: false
132
+ },
133
+ IPresentationDefinition: {
134
+ anyOf: [
135
+ {
136
+ $ref: "#/components/schemas/PresentationDefinitionV1"
137
+ },
138
+ {
139
+ $ref: "#/components/schemas/PresentationDefinitionV2"
140
+ }
141
+ ]
142
+ },
143
+ PresentationDefinitionV1: {
144
+ type: "object",
145
+ properties: {
146
+ id: {
147
+ type: "string"
148
+ },
149
+ name: {
150
+ type: "string"
151
+ },
152
+ purpose: {
153
+ type: "string"
154
+ },
155
+ format: {
156
+ $ref: "#/components/schemas/Format"
157
+ },
158
+ submission_requirements: {
159
+ type: "array",
160
+ items: {
161
+ $ref: "#/components/schemas/SubmissionRequirement"
162
+ }
163
+ },
164
+ input_descriptors: {
165
+ type: "array",
166
+ items: {
167
+ $ref: "#/components/schemas/InputDescriptorV1"
168
+ }
169
+ }
170
+ },
171
+ required: ["id", "input_descriptors"],
172
+ additionalProperties: false
173
+ },
174
+ Format: {
175
+ type: "object",
176
+ properties: {
177
+ jwt: {
178
+ $ref: "#/components/schemas/JwtObject"
179
+ },
180
+ jwt_vc: {
181
+ $ref: "#/components/schemas/JwtObject"
182
+ },
183
+ jwt_vc_json: {
184
+ $ref: "#/components/schemas/JwtObject"
185
+ },
186
+ jwt_vp: {
187
+ $ref: "#/components/schemas/JwtObject"
188
+ },
189
+ jwt_vp_json: {
190
+ $ref: "#/components/schemas/JwtObject"
191
+ },
192
+ ldp: {
193
+ $ref: "#/components/schemas/LdpObject"
194
+ },
195
+ ldp_vc: {
196
+ $ref: "#/components/schemas/LdpObject"
197
+ },
198
+ ldp_vp: {
199
+ $ref: "#/components/schemas/LdpObject"
200
+ },
201
+ di: {
202
+ $ref: "#/components/schemas/DiObject"
203
+ },
204
+ di_vc: {
205
+ $ref: "#/components/schemas/DiObject"
206
+ },
207
+ di_vp: {
208
+ $ref: "#/components/schemas/DiObject"
209
+ },
210
+ "dc+sd-jwt": {
211
+ $ref: "#/components/schemas/SdJwtObject"
212
+ },
213
+ mso_mdoc: {
214
+ $ref: "#/components/schemas/MsoMdocObject"
215
+ }
216
+ },
217
+ additionalProperties: false
218
+ },
219
+ JwtObject: {
220
+ type: "object",
221
+ properties: {
222
+ alg: {
223
+ type: "array",
224
+ items: {
225
+ type: "string"
226
+ }
227
+ }
228
+ },
229
+ required: ["alg"],
230
+ additionalProperties: false
231
+ },
232
+ LdpObject: {
233
+ type: "object",
234
+ properties: {
235
+ proof_type: {
236
+ type: "array",
237
+ items: {
238
+ type: "string"
239
+ }
240
+ }
241
+ },
242
+ required: ["proof_type"],
243
+ additionalProperties: false
244
+ },
245
+ DiObject: {
246
+ type: "object",
247
+ properties: {
248
+ proof_type: {
249
+ type: "array",
250
+ items: {
251
+ type: "string"
252
+ }
253
+ },
254
+ cryptosuite: {
255
+ type: "array",
256
+ items: {
257
+ type: "string"
258
+ }
259
+ }
260
+ },
261
+ required: ["proof_type", "cryptosuite"],
262
+ additionalProperties: false
263
+ },
264
+ SdJwtObject: {
265
+ type: "object",
266
+ properties: {
267
+ "sd-jwt_alg_values": {
268
+ type: "array",
269
+ items: {
270
+ type: "string"
271
+ }
272
+ },
273
+ "kb-jwt_alg_values": {
274
+ type: "array",
275
+ items: {
276
+ type: "string"
277
+ }
965
278
  }
966
279
  },
967
- methods: {
968
- pdmDeleteDefinition: {
969
- description: "Delete a single presentation definition records by primary key",
970
- arguments: {
971
- $ref: "#/components/schemas/DeleteDefinitionItemArgs"
972
- },
973
- returnType: {
974
- type: "boolean"
280
+ additionalProperties: false
281
+ },
282
+ MsoMdocObject: {
283
+ type: "object",
284
+ properties: {
285
+ alg: {
286
+ type: "array",
287
+ items: {
288
+ type: "string"
975
289
  }
290
+ }
291
+ },
292
+ required: ["alg"],
293
+ additionalProperties: false
294
+ },
295
+ SubmissionRequirement: {
296
+ type: "object",
297
+ properties: {
298
+ name: {
299
+ type: "string"
300
+ },
301
+ purpose: {
302
+ type: "string"
303
+ },
304
+ rule: {
305
+ $ref: "#/components/schemas/Rules"
976
306
  },
977
- pdmDeleteDefinitions: {
978
- description: "Delete multiple presentation definitions records using filters",
979
- arguments: {
980
- $ref: "#/components/schemas/DeleteDefinitionItemsArgs"
981
- },
982
- returnType: {
983
- type: "number"
307
+ count: {
308
+ type: "number"
309
+ },
310
+ min: {
311
+ type: "number"
312
+ },
313
+ max: {
314
+ type: "number"
315
+ },
316
+ from: {
317
+ type: "string"
318
+ },
319
+ from_nested: {
320
+ type: "array",
321
+ items: {
322
+ $ref: "#/components/schemas/SubmissionRequirement"
984
323
  }
324
+ }
325
+ },
326
+ required: ["rule"],
327
+ additionalProperties: false
328
+ },
329
+ Rules: {
330
+ type: "string",
331
+ enum: ["all", "pick"]
332
+ },
333
+ InputDescriptorV1: {
334
+ type: "object",
335
+ properties: {
336
+ id: {
337
+ type: "string"
338
+ },
339
+ name: {
340
+ type: "string"
341
+ },
342
+ purpose: {
343
+ type: "string"
985
344
  },
986
- pdmGetDefinition: {
987
- description: "Get a single presentation definition records by primary key",
988
- arguments: {
989
- $ref: "#/components/schemas/GetDefinitionItemArgs"
990
- },
991
- returnType: {
992
- $ref: "#/components/schemas/PresentationDefinitionItem"
345
+ group: {
346
+ type: "array",
347
+ items: {
348
+ type: "string"
993
349
  }
994
350
  },
995
- pdmGetDefinitions: {
996
- description: "Find one or more presentation definition records using filters",
997
- arguments: {
998
- $ref: "#/components/schemas/GetDefinitionItemsArgs"
999
- },
1000
- returnType: {
1001
- type: "array",
1002
- items: {
1003
- $ref: "#/components/schemas/PresentationDefinitionItem"
1004
- }
351
+ schema: {
352
+ type: "array",
353
+ items: {
354
+ $ref: "#/components/schemas/Schema"
1005
355
  }
1006
356
  },
1007
- pdmHasDefinition: {
1008
- description: "Checks whether a presentation definition record exists by primary key",
1009
- arguments: {
1010
- $ref: "#/components/schemas/HasDefinitionItemArgs"
1011
- },
1012
- returnType: {
1013
- type: "boolean"
357
+ issuance: {
358
+ type: "array",
359
+ items: {
360
+ $ref: "#/components/schemas/Issuance"
1014
361
  }
1015
362
  },
1016
- pdmHasDefinitions: {
1017
- description: "Checks whether one or more presentation definition records exist using filters",
1018
- arguments: {
1019
- $ref: "#/components/schemas/HasDefinitionItemsArgs"
1020
- },
1021
- returnType: {
1022
- type: "boolean"
363
+ constraints: {
364
+ $ref: "#/components/schemas/ConstraintsV1"
365
+ }
366
+ },
367
+ required: ["id", "schema"],
368
+ additionalProperties: false
369
+ },
370
+ Schema: {
371
+ type: "object",
372
+ properties: {
373
+ uri: {
374
+ type: "string"
375
+ },
376
+ required: {
377
+ type: "boolean"
378
+ }
379
+ },
380
+ required: ["uri"],
381
+ additionalProperties: false
382
+ },
383
+ Issuance: {
384
+ type: "object",
385
+ properties: {
386
+ manifest: {
387
+ type: "string"
388
+ }
389
+ },
390
+ additionalProperties: {}
391
+ },
392
+ ConstraintsV1: {
393
+ type: "object",
394
+ properties: {
395
+ limit_disclosure: {
396
+ $ref: "#/components/schemas/Optionality"
397
+ },
398
+ statuses: {
399
+ $ref: "#/components/schemas/Statuses"
400
+ },
401
+ fields: {
402
+ type: "array",
403
+ items: {
404
+ $ref: "#/components/schemas/FieldV1"
1023
405
  }
1024
406
  },
1025
- pdmPersistDefinition: {
1026
- description: "Check in a presentation definition. It has version control logic which will add or update presentation definition records and has settings for automatic version numbering.",
1027
- arguments: {
1028
- $ref: "#/components/schemas/PersistDefinitionArgs"
1029
- },
1030
- returnType: {
1031
- $ref: "#/components/schemas/PresentationDefinitionItem"
407
+ subject_is_issuer: {
408
+ $ref: "#/components/schemas/Optionality"
409
+ },
410
+ is_holder: {
411
+ type: "array",
412
+ items: {
413
+ $ref: "#/components/schemas/HolderSubject"
1032
414
  }
415
+ },
416
+ same_subject: {
417
+ type: "array",
418
+ items: {
419
+ $ref: "#/components/schemas/HolderSubject"
420
+ }
421
+ }
422
+ },
423
+ additionalProperties: false
424
+ },
425
+ Optionality: {
426
+ type: "string",
427
+ enum: ["required", "preferred"]
428
+ },
429
+ Statuses: {
430
+ type: "object",
431
+ properties: {
432
+ active: {
433
+ $ref: "#/components/schemas/PdStatus"
434
+ },
435
+ suspended: {
436
+ $ref: "#/components/schemas/PdStatus"
437
+ },
438
+ revoked: {
439
+ $ref: "#/components/schemas/PdStatus"
440
+ }
441
+ },
442
+ additionalProperties: false
443
+ },
444
+ PdStatus: {
445
+ type: "object",
446
+ properties: {
447
+ directive: {
448
+ $ref: "#/components/schemas/Directives"
449
+ }
450
+ },
451
+ additionalProperties: false
452
+ },
453
+ Directives: {
454
+ type: "string",
455
+ enum: ["required", "allowed", "disallowed"]
456
+ },
457
+ FieldV1: {
458
+ type: "object",
459
+ properties: {
460
+ id: {
461
+ type: "string"
462
+ },
463
+ path: {
464
+ type: "array",
465
+ items: {
466
+ type: "string"
467
+ }
468
+ },
469
+ purpose: {
470
+ type: "string"
471
+ },
472
+ filter: {
473
+ $ref: "#/components/schemas/FilterV1"
474
+ },
475
+ predicate: {
476
+ $ref: "#/components/schemas/Optionality"
477
+ }
478
+ },
479
+ required: ["path"],
480
+ additionalProperties: false
481
+ },
482
+ FilterV1: {
483
+ type: "object",
484
+ properties: {
485
+ const: {
486
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
487
+ },
488
+ enum: {
489
+ type: "array",
490
+ items: {
491
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
492
+ }
493
+ },
494
+ exclusiveMinimum: {
495
+ $ref: "#/components/schemas/OneOfNumberString"
496
+ },
497
+ exclusiveMaximum: {
498
+ $ref: "#/components/schemas/OneOfNumberString"
499
+ },
500
+ format: {
501
+ type: "string"
502
+ },
503
+ minLength: {
504
+ type: "number"
505
+ },
506
+ maxLength: {
507
+ type: "number"
508
+ },
509
+ minimum: {
510
+ $ref: "#/components/schemas/OneOfNumberString"
511
+ },
512
+ maximum: {
513
+ $ref: "#/components/schemas/OneOfNumberString"
514
+ },
515
+ not: {
516
+ type: "object"
517
+ },
518
+ pattern: {
519
+ type: "string"
520
+ },
521
+ type: {
522
+ type: "string"
523
+ }
524
+ },
525
+ additionalProperties: false
526
+ },
527
+ OneOfNumberStringBoolean: {
528
+ type: ["boolean", "number", "string"]
529
+ },
530
+ OneOfNumberString: {
531
+ type: ["number", "string"]
532
+ },
533
+ HolderSubject: {
534
+ type: "object",
535
+ properties: {
536
+ field_id: {
537
+ type: "array",
538
+ items: {
539
+ type: "string"
540
+ }
541
+ },
542
+ directive: {
543
+ $ref: "#/components/schemas/Optionality"
544
+ }
545
+ },
546
+ required: ["field_id", "directive"],
547
+ additionalProperties: false
548
+ },
549
+ PresentationDefinitionV2: {
550
+ type: "object",
551
+ properties: {
552
+ id: {
553
+ type: "string"
554
+ },
555
+ name: {
556
+ type: "string"
557
+ },
558
+ purpose: {
559
+ type: "string"
560
+ },
561
+ format: {
562
+ $ref: "#/components/schemas/Format"
563
+ },
564
+ submission_requirements: {
565
+ type: "array",
566
+ items: {
567
+ $ref: "#/components/schemas/SubmissionRequirement"
568
+ }
569
+ },
570
+ input_descriptors: {
571
+ type: "array",
572
+ items: {
573
+ $ref: "#/components/schemas/InputDescriptorV2"
574
+ }
575
+ },
576
+ frame: {
577
+ type: "object"
578
+ }
579
+ },
580
+ required: ["id", "input_descriptors"],
581
+ additionalProperties: false
582
+ },
583
+ InputDescriptorV2: {
584
+ type: "object",
585
+ properties: {
586
+ id: {
587
+ type: "string"
588
+ },
589
+ name: {
590
+ type: "string"
591
+ },
592
+ purpose: {
593
+ type: "string"
594
+ },
595
+ format: {
596
+ $ref: "#/components/schemas/Format"
597
+ },
598
+ group: {
599
+ type: "array",
600
+ items: {
601
+ type: "string"
602
+ }
603
+ },
604
+ issuance: {
605
+ type: "array",
606
+ items: {
607
+ $ref: "#/components/schemas/Issuance"
608
+ }
609
+ },
610
+ constraints: {
611
+ $ref: "#/components/schemas/ConstraintsV2"
612
+ }
613
+ },
614
+ required: ["id", "constraints"],
615
+ additionalProperties: false
616
+ },
617
+ ConstraintsV2: {
618
+ type: "object",
619
+ properties: {
620
+ limit_disclosure: {
621
+ $ref: "#/components/schemas/Optionality"
622
+ },
623
+ statuses: {
624
+ $ref: "#/components/schemas/Statuses"
625
+ },
626
+ fields: {
627
+ type: "array",
628
+ items: {
629
+ $ref: "#/components/schemas/FieldV2"
630
+ }
631
+ },
632
+ subject_is_issuer: {
633
+ $ref: "#/components/schemas/Optionality"
634
+ },
635
+ is_holder: {
636
+ type: "array",
637
+ items: {
638
+ $ref: "#/components/schemas/HolderSubject"
639
+ }
640
+ },
641
+ same_subject: {
642
+ type: "array",
643
+ items: {
644
+ $ref: "#/components/schemas/HolderSubject"
645
+ }
646
+ }
647
+ },
648
+ additionalProperties: false
649
+ },
650
+ FieldV2: {
651
+ type: "object",
652
+ properties: {
653
+ id: {
654
+ type: "string"
655
+ },
656
+ path: {
657
+ type: "array",
658
+ items: {
659
+ type: "string"
660
+ }
661
+ },
662
+ purpose: {
663
+ type: "string"
664
+ },
665
+ filter: {
666
+ $ref: "#/components/schemas/FilterV2"
667
+ },
668
+ predicate: {
669
+ $ref: "#/components/schemas/Optionality"
670
+ },
671
+ intent_to_retain: {
672
+ type: "boolean"
673
+ },
674
+ name: {
675
+ type: "string"
676
+ },
677
+ optional: {
678
+ type: "boolean"
679
+ }
680
+ },
681
+ required: ["path"],
682
+ additionalProperties: false
683
+ },
684
+ FilterV2: {
685
+ type: "object",
686
+ properties: {
687
+ const: {
688
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
689
+ },
690
+ enum: {
691
+ type: "array",
692
+ items: {
693
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
694
+ }
695
+ },
696
+ exclusiveMinimum: {
697
+ $ref: "#/components/schemas/OneOfNumberString"
698
+ },
699
+ exclusiveMaximum: {
700
+ $ref: "#/components/schemas/OneOfNumberString"
701
+ },
702
+ format: {
703
+ type: "string"
704
+ },
705
+ formatMaximum: {
706
+ type: "string"
707
+ },
708
+ formatMinimum: {
709
+ type: "string"
710
+ },
711
+ formatExclusiveMaximum: {
712
+ type: "string"
713
+ },
714
+ formatExclusiveMinimum: {
715
+ type: "string"
716
+ },
717
+ minLength: {
718
+ type: "number"
719
+ },
720
+ maxLength: {
721
+ type: "number"
722
+ },
723
+ minimum: {
724
+ $ref: "#/components/schemas/OneOfNumberString"
725
+ },
726
+ maximum: {
727
+ $ref: "#/components/schemas/OneOfNumberString"
728
+ },
729
+ not: {
730
+ type: "object"
731
+ },
732
+ pattern: {
733
+ type: "string"
734
+ },
735
+ type: {
736
+ type: "string"
737
+ },
738
+ contains: {
739
+ $ref: "#/components/schemas/FilterV2"
740
+ },
741
+ items: {
742
+ $ref: "#/components/schemas/FilterV2Items"
743
+ }
744
+ },
745
+ additionalProperties: false
746
+ },
747
+ FilterV2Items: {
748
+ type: "object",
749
+ properties: {
750
+ const: {
751
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
752
+ },
753
+ enum: {
754
+ type: "array",
755
+ items: {
756
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
757
+ }
758
+ },
759
+ exclusiveMinimum: {
760
+ $ref: "#/components/schemas/OneOfNumberString"
761
+ },
762
+ exclusiveMaximum: {
763
+ $ref: "#/components/schemas/OneOfNumberString"
764
+ },
765
+ format: {
766
+ type: "string"
767
+ },
768
+ formatMaximum: {
769
+ type: "string"
770
+ },
771
+ formatMinimum: {
772
+ type: "string"
773
+ },
774
+ formatExclusiveMaximum: {
775
+ type: "string"
776
+ },
777
+ formatExclusiveMinimum: {
778
+ type: "string"
779
+ },
780
+ minLength: {
781
+ type: "number"
782
+ },
783
+ maxLength: {
784
+ type: "number"
785
+ },
786
+ minimum: {
787
+ $ref: "#/components/schemas/OneOfNumberString"
788
+ },
789
+ maximum: {
790
+ $ref: "#/components/schemas/OneOfNumberString"
791
+ },
792
+ not: {
793
+ type: "object"
794
+ },
795
+ pattern: {
796
+ type: "string"
797
+ },
798
+ type: {
799
+ type: "string"
800
+ },
801
+ contains: {
802
+ $ref: "#/components/schemas/FilterV2"
803
+ },
804
+ items: {
805
+ $ref: "#/components/schemas/FilterV2Items"
806
+ }
807
+ },
808
+ additionalProperties: false
809
+ },
810
+ DcqlQueryREST: {
811
+ type: "object",
812
+ properties: {
813
+ credentials: {
814
+ type: "array",
815
+ items: {
816
+ $ref: "#/components/schemas/DcqlCredentialQuery"
817
+ }
818
+ }
819
+ },
820
+ required: ["credentials"],
821
+ additionalProperties: false
822
+ },
823
+ DcqlCredentialQuery: {
824
+ type: "object",
825
+ properties: {
826
+ id: {
827
+ type: "string"
828
+ },
829
+ format: {
830
+ type: "string"
831
+ },
832
+ alg: {
833
+ type: "array",
834
+ items: {
835
+ type: "string"
836
+ }
837
+ },
838
+ claims: {
839
+ type: "array",
840
+ items: {
841
+ $ref: "#/components/schemas/DcqlClaim"
842
+ }
843
+ },
844
+ meta: {
845
+ $ref: "#/components/schemas/Record<string,any>"
846
+ }
847
+ },
848
+ required: ["id", "format", "claims"],
849
+ additionalProperties: false
850
+ },
851
+ DcqlClaim: {
852
+ type: "object",
853
+ properties: {
854
+ namespace: {
855
+ type: "string"
856
+ },
857
+ claim_name: {
858
+ type: "string"
859
+ },
860
+ filter: {
861
+ $ref: "#/components/schemas/DcqlFilter"
862
+ }
863
+ },
864
+ required: ["namespace", "claim_name"],
865
+ additionalProperties: false
866
+ },
867
+ DcqlFilter: {
868
+ type: "object",
869
+ properties: {
870
+ type: {
871
+ type: "string",
872
+ enum: ["string", "number", "boolean"]
873
+ },
874
+ pattern: {
875
+ type: "string"
876
+ },
877
+ minimum: {
878
+ type: "number"
879
+ },
880
+ maximum: {
881
+ type: "number"
882
+ }
883
+ },
884
+ required: ["type"],
885
+ additionalProperties: false
886
+ },
887
+ "Record<string,any>": {
888
+ type: "object"
889
+ },
890
+ HasDefinitionItemArgs: {
891
+ $ref: "#/components/schemas/GetDefinitionItemArgs"
892
+ },
893
+ HasDefinitionItemsArgs: {
894
+ $ref: "#/components/schemas/GetDefinitionItemsArgs"
895
+ },
896
+ PersistDefinitionArgs: {
897
+ type: "object",
898
+ properties: {
899
+ definitionItem: {
900
+ $ref: "#/components/schemas/PersistPresentationDefinitionItem"
901
+ },
902
+ opts: {
903
+ $ref: "#/components/schemas/PersistOptions"
904
+ }
905
+ },
906
+ required: ["definitionItem"],
907
+ additionalProperties: false
908
+ },
909
+ PersistPresentationDefinitionItem: {
910
+ type: "object",
911
+ additionalProperties: false,
912
+ properties: {
913
+ id: {
914
+ type: "string"
915
+ },
916
+ definitionId: {
917
+ type: "string"
918
+ },
919
+ version: {
920
+ type: "string"
921
+ },
922
+ tenantId: {
923
+ type: "string"
924
+ },
925
+ name: {
926
+ type: "string"
927
+ },
928
+ purpose: {
929
+ type: "string"
930
+ },
931
+ definitionPayload: {
932
+ $ref: "#/components/schemas/IPresentationDefinition"
933
+ },
934
+ dcqlPayload: {
935
+ $ref: "#/components/schemas/DcqlQueryREST"
936
+ }
937
+ },
938
+ required: ["definitionPayload"]
939
+ },
940
+ PersistOptions: {
941
+ type: "object",
942
+ properties: {
943
+ versionControlMode: {
944
+ $ref: "#/components/schemas/VersionControlMode"
945
+ },
946
+ versionIncrementReleaseType: {
947
+ $ref: "#/components/schemas/ReleaseType"
948
+ }
949
+ },
950
+ additionalProperties: false
951
+ },
952
+ VersionControlMode: {
953
+ type: "string",
954
+ enum: ["AutoIncrement", "Manual", "Overwrite", "OverwriteLatest"]
955
+ },
956
+ ReleaseType: {
957
+ type: "string",
958
+ enum: ["major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease", "release"]
959
+ }
960
+ },
961
+ methods: {
962
+ pdmDeleteDefinition: {
963
+ description: "Delete a single presentation definition records by primary key",
964
+ arguments: {
965
+ $ref: "#/components/schemas/DeleteDefinitionItemArgs"
966
+ },
967
+ returnType: {
968
+ type: "boolean"
969
+ }
970
+ },
971
+ pdmDeleteDefinitions: {
972
+ description: "Delete multiple presentation definitions records using filters",
973
+ arguments: {
974
+ $ref: "#/components/schemas/DeleteDefinitionItemsArgs"
975
+ },
976
+ returnType: {
977
+ type: "number"
978
+ }
979
+ },
980
+ pdmGetDefinition: {
981
+ description: "Get a single presentation definition records by primary key",
982
+ arguments: {
983
+ $ref: "#/components/schemas/GetDefinitionItemArgs"
984
+ },
985
+ returnType: {
986
+ $ref: "#/components/schemas/PresentationDefinitionItem"
987
+ }
988
+ },
989
+ pdmGetDefinitions: {
990
+ description: "Find one or more presentation definition records using filters",
991
+ arguments: {
992
+ $ref: "#/components/schemas/GetDefinitionItemsArgs"
993
+ },
994
+ returnType: {
995
+ type: "array",
996
+ items: {
997
+ $ref: "#/components/schemas/PresentationDefinitionItem"
1033
998
  }
1034
999
  }
1000
+ },
1001
+ pdmHasDefinition: {
1002
+ description: "Checks whether a presentation definition record exists by primary key",
1003
+ arguments: {
1004
+ $ref: "#/components/schemas/HasDefinitionItemArgs"
1005
+ },
1006
+ returnType: {
1007
+ type: "boolean"
1008
+ }
1009
+ },
1010
+ pdmHasDefinitions: {
1011
+ description: "Checks whether one or more presentation definition records exist using filters",
1012
+ arguments: {
1013
+ $ref: "#/components/schemas/HasDefinitionItemsArgs"
1014
+ },
1015
+ returnType: {
1016
+ type: "boolean"
1017
+ }
1018
+ },
1019
+ pdmPersistDefinition: {
1020
+ description: "Check in a presentation definition. It has version control logic which will add or update presentation definition records and has settings for automatic version numbering.",
1021
+ arguments: {
1022
+ $ref: "#/components/schemas/PersistDefinitionArgs"
1023
+ },
1024
+ returnType: {
1025
+ $ref: "#/components/schemas/PresentationDefinitionItem"
1026
+ }
1035
1027
  }
1036
1028
  }
1037
- };
1029
+ }
1038
1030
  }
1039
- });
1031
+ };
1040
1032
 
1041
1033
  // src/agent/PDManager.ts
1042
1034
  import { isPresentationDefinitionEqual } from "@sphereon/ssi-sdk.data-store";
@@ -1054,7 +1046,7 @@ var PDManager = class {
1054
1046
  static {
1055
1047
  __name(this, "PDManager");
1056
1048
  }
1057
- schema = schema.IPDManager;
1049
+ schema = plugin_schema_default.IPDManager;
1058
1050
  methods = {
1059
1051
  pdmPersistDefinition: this.pdmPersistDefinition.bind(this),
1060
1052
  pdmHasDefinition: this.pdmHasDefinition.bind(this),
@@ -1266,12 +1258,9 @@ var PDManager = class {
1266
1258
  return normalizedBaseVersion;
1267
1259
  }
1268
1260
  };
1269
-
1270
- // src/index.ts
1271
- var schema = require_plugin_schema();
1272
1261
  export {
1273
1262
  PDManager,
1274
1263
  pdManagerMethods,
1275
- schema
1264
+ plugin_schema_default as schema
1276
1265
  };
1277
1266
  //# sourceMappingURL=index.js.map