@sphereon/ssi-sdk.pd-manager 0.34.1-fix.80 → 0.34.1-next.278

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.d.cts CHANGED
@@ -1,14 +1,2146 @@
1
1
  import { IAgentPlugin, IPluginMethodMap, IAgentContext } from '@veramo/core';
2
- import { AbstractPDStore, PresentationDefinitionItem, FindDefinitionArgs, NonPersistedPresentationDefinitionItem } from '@sphereon/ssi-sdk.data-store';
2
+ import { AbstractPDStore, DcqlQueryItem, FindDcqlQueryArgs, NonPersistedDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types';
3
+ export { ImportDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types';
3
4
  import { ReleaseType } from 'semver';
4
5
  export { ReleaseType } from 'semver';
6
+ export { DcqlQuery } from 'dcql';
7
+
8
+ var IPDManager$1 = {
9
+ components: {
10
+ schemas: {
11
+ DeleteDefinitionItemArgs: {
12
+ type: "object",
13
+ properties: {
14
+ itemId: {
15
+ type: "string"
16
+ }
17
+ },
18
+ required: [
19
+ "itemId"
20
+ ],
21
+ additionalProperties: false
22
+ },
23
+ DeleteDefinitionItemsArgs: {
24
+ $ref: "#/components/schemas/GetDefinitionItemsArgs"
25
+ },
26
+ GetDefinitionItemsArgs: {
27
+ type: "object",
28
+ properties: {
29
+ filter: {
30
+ $ref: "#/components/schemas/FindDefinitionArgs"
31
+ },
32
+ opts: {
33
+ $ref: "#/components/schemas/FetchOptions"
34
+ }
35
+ },
36
+ additionalProperties: false
37
+ },
38
+ FindDefinitionArgs: {
39
+ type: "array",
40
+ items: {
41
+ $ref: "#/components/schemas/PresentationDefinitionItemFilter"
42
+ }
43
+ },
44
+ PresentationDefinitionItemFilter: {
45
+ $ref: "#/components/schemas/Partial<Omit<PresentationDefinitionItem,(\"queryPayload\"|\"dcqlPayload\")>>"
46
+ },
47
+ "Partial<Omit<PresentationDefinitionItem,(\"queryPayload\"|\"dcqlPayload\")>>": {
48
+ type: "object",
49
+ properties: {
50
+ id: {
51
+ type: "string"
52
+ },
53
+ queryId: {
54
+ type: "string"
55
+ },
56
+ tenantId: {
57
+ type: "string"
58
+ },
59
+ version: {
60
+ type: "string"
61
+ },
62
+ name: {
63
+ type: "string"
64
+ },
65
+ purpose: {
66
+ type: "string"
67
+ },
68
+ createdAt: {
69
+ type: "string",
70
+ format: "date-time"
71
+ },
72
+ lastUpdatedAt: {
73
+ type: "string",
74
+ format: "date-time"
75
+ }
76
+ },
77
+ additionalProperties: false
78
+ },
79
+ FetchOptions: {
80
+ type: "object",
81
+ properties: {
82
+ showVersionHistory: {
83
+ type: "boolean"
84
+ }
85
+ },
86
+ additionalProperties: false
87
+ },
88
+ GetDefinitionItemArgs: {
89
+ type: "object",
90
+ properties: {
91
+ itemId: {
92
+ type: "string"
93
+ }
94
+ },
95
+ required: [
96
+ "itemId"
97
+ ],
98
+ additionalProperties: false
99
+ },
100
+ PresentationDefinitionItem: {
101
+ type: "object",
102
+ properties: {
103
+ id: {
104
+ type: "string"
105
+ },
106
+ queryId: {
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
+ dcqlPayload: {
122
+ $ref: "#/components/schemas/DcqlQuery"
123
+ },
124
+ createdAt: {
125
+ type: "string",
126
+ format: "date-time"
127
+ },
128
+ lastUpdatedAt: {
129
+ type: "string",
130
+ format: "date-time"
131
+ }
132
+ },
133
+ required: [
134
+ "id",
135
+ "queryId",
136
+ "version",
137
+ "query",
138
+ "createdAt",
139
+ "lastUpdatedAt"
140
+ ],
141
+ additionalProperties: false
142
+ },
143
+ IPresentationDefinition: {
144
+ anyOf: [
145
+ {
146
+ $ref: "#/components/schemas/PresentationDefinitionV1"
147
+ },
148
+ {
149
+ $ref: "#/components/schemas/PresentationDefinitionV2"
150
+ }
151
+ ]
152
+ },
153
+ PresentationDefinitionV1: {
154
+ type: "object",
155
+ properties: {
156
+ id: {
157
+ type: "string"
158
+ },
159
+ name: {
160
+ type: "string"
161
+ },
162
+ purpose: {
163
+ type: "string"
164
+ },
165
+ format: {
166
+ $ref: "#/components/schemas/Format"
167
+ },
168
+ submission_requirements: {
169
+ type: "array",
170
+ items: {
171
+ $ref: "#/components/schemas/SubmissionRequirement"
172
+ }
173
+ },
174
+ input_descriptors: {
175
+ type: "array",
176
+ items: {
177
+ $ref: "#/components/schemas/InputDescriptorV1"
178
+ }
179
+ }
180
+ },
181
+ required: [
182
+ "id",
183
+ "input_descriptors"
184
+ ],
185
+ additionalProperties: false
186
+ },
187
+ Format: {
188
+ type: "object",
189
+ properties: {
190
+ jwt: {
191
+ $ref: "#/components/schemas/JwtObject"
192
+ },
193
+ jwt_vc: {
194
+ $ref: "#/components/schemas/JwtObject"
195
+ },
196
+ jwt_vc_json: {
197
+ $ref: "#/components/schemas/JwtObject"
198
+ },
199
+ jwt_vp: {
200
+ $ref: "#/components/schemas/JwtObject"
201
+ },
202
+ jwt_vp_json: {
203
+ $ref: "#/components/schemas/JwtObject"
204
+ },
205
+ ldp: {
206
+ $ref: "#/components/schemas/LdpObject"
207
+ },
208
+ ldp_vc: {
209
+ $ref: "#/components/schemas/LdpObject"
210
+ },
211
+ ldp_vp: {
212
+ $ref: "#/components/schemas/LdpObject"
213
+ },
214
+ di: {
215
+ $ref: "#/components/schemas/DiObject"
216
+ },
217
+ di_vc: {
218
+ $ref: "#/components/schemas/DiObject"
219
+ },
220
+ di_vp: {
221
+ $ref: "#/components/schemas/DiObject"
222
+ },
223
+ "dc+sd-jwt": {
224
+ $ref: "#/components/schemas/SdJwtObject"
225
+ },
226
+ mso_mdoc: {
227
+ $ref: "#/components/schemas/MsoMdocObject"
228
+ }
229
+ },
230
+ additionalProperties: false
231
+ },
232
+ JwtObject: {
233
+ type: "object",
234
+ properties: {
235
+ alg: {
236
+ type: "array",
237
+ items: {
238
+ type: "string"
239
+ }
240
+ }
241
+ },
242
+ required: [
243
+ "alg"
244
+ ],
245
+ additionalProperties: false
246
+ },
247
+ LdpObject: {
248
+ type: "object",
249
+ properties: {
250
+ proof_type: {
251
+ type: "array",
252
+ items: {
253
+ type: "string"
254
+ }
255
+ }
256
+ },
257
+ required: [
258
+ "proof_type"
259
+ ],
260
+ additionalProperties: false
261
+ },
262
+ DiObject: {
263
+ type: "object",
264
+ properties: {
265
+ proof_type: {
266
+ type: "array",
267
+ items: {
268
+ type: "string"
269
+ }
270
+ },
271
+ cryptosuite: {
272
+ type: "array",
273
+ items: {
274
+ type: "string"
275
+ }
276
+ }
277
+ },
278
+ required: [
279
+ "proof_type",
280
+ "cryptosuite"
281
+ ],
282
+ additionalProperties: false
283
+ },
284
+ SdJwtObject: {
285
+ type: "object",
286
+ properties: {
287
+ "sd-jwt_alg_values": {
288
+ type: "array",
289
+ items: {
290
+ type: "string"
291
+ }
292
+ },
293
+ "kb-jwt_alg_values": {
294
+ type: "array",
295
+ items: {
296
+ type: "string"
297
+ }
298
+ }
299
+ },
300
+ additionalProperties: false
301
+ },
302
+ MsoMdocObject: {
303
+ type: "object",
304
+ properties: {
305
+ alg: {
306
+ type: "array",
307
+ items: {
308
+ type: "string"
309
+ }
310
+ }
311
+ },
312
+ required: [
313
+ "alg"
314
+ ],
315
+ additionalProperties: false
316
+ },
317
+ SubmissionRequirement: {
318
+ type: "object",
319
+ properties: {
320
+ name: {
321
+ type: "string"
322
+ },
323
+ purpose: {
324
+ type: "string"
325
+ },
326
+ rule: {
327
+ $ref: "#/components/schemas/Rules"
328
+ },
329
+ count: {
330
+ type: "number"
331
+ },
332
+ min: {
333
+ type: "number"
334
+ },
335
+ max: {
336
+ type: "number"
337
+ },
338
+ from: {
339
+ type: "string"
340
+ },
341
+ from_nested: {
342
+ type: "array",
343
+ items: {
344
+ $ref: "#/components/schemas/SubmissionRequirement"
345
+ }
346
+ }
347
+ },
348
+ required: [
349
+ "rule"
350
+ ],
351
+ additionalProperties: false
352
+ },
353
+ Rules: {
354
+ type: "string",
355
+ "enum": [
356
+ "all",
357
+ "pick"
358
+ ]
359
+ },
360
+ InputDescriptorV1: {
361
+ type: "object",
362
+ properties: {
363
+ id: {
364
+ type: "string"
365
+ },
366
+ name: {
367
+ type: "string"
368
+ },
369
+ purpose: {
370
+ type: "string"
371
+ },
372
+ group: {
373
+ type: "array",
374
+ items: {
375
+ type: "string"
376
+ }
377
+ },
378
+ schema: {
379
+ type: "array",
380
+ items: {
381
+ $ref: "#/components/schemas/Schema"
382
+ }
383
+ },
384
+ issuance: {
385
+ type: "array",
386
+ items: {
387
+ $ref: "#/components/schemas/Issuance"
388
+ }
389
+ },
390
+ constraints: {
391
+ $ref: "#/components/schemas/ConstraintsV1"
392
+ }
393
+ },
394
+ required: [
395
+ "id",
396
+ "schema"
397
+ ],
398
+ additionalProperties: false
399
+ },
400
+ Schema: {
401
+ type: "object",
402
+ properties: {
403
+ uri: {
404
+ type: "string"
405
+ },
406
+ required: {
407
+ type: "boolean"
408
+ }
409
+ },
410
+ required: [
411
+ "uri"
412
+ ],
413
+ additionalProperties: false
414
+ },
415
+ Issuance: {
416
+ type: "object",
417
+ properties: {
418
+ manifest: {
419
+ type: "string"
420
+ }
421
+ },
422
+ additionalProperties: {
423
+ }
424
+ },
425
+ ConstraintsV1: {
426
+ type: "object",
427
+ properties: {
428
+ limit_disclosure: {
429
+ $ref: "#/components/schemas/Optionality"
430
+ },
431
+ statuses: {
432
+ $ref: "#/components/schemas/Statuses"
433
+ },
434
+ fields: {
435
+ type: "array",
436
+ items: {
437
+ $ref: "#/components/schemas/FieldV1"
438
+ }
439
+ },
440
+ subject_is_issuer: {
441
+ $ref: "#/components/schemas/Optionality"
442
+ },
443
+ is_holder: {
444
+ type: "array",
445
+ items: {
446
+ $ref: "#/components/schemas/HolderSubject"
447
+ }
448
+ },
449
+ same_subject: {
450
+ type: "array",
451
+ items: {
452
+ $ref: "#/components/schemas/HolderSubject"
453
+ }
454
+ }
455
+ },
456
+ additionalProperties: false
457
+ },
458
+ Optionality: {
459
+ type: "string",
460
+ "enum": [
461
+ "required",
462
+ "preferred"
463
+ ]
464
+ },
465
+ Statuses: {
466
+ type: "object",
467
+ properties: {
468
+ active: {
469
+ $ref: "#/components/schemas/PdStatus"
470
+ },
471
+ suspended: {
472
+ $ref: "#/components/schemas/PdStatus"
473
+ },
474
+ revoked: {
475
+ $ref: "#/components/schemas/PdStatus"
476
+ }
477
+ },
478
+ additionalProperties: false
479
+ },
480
+ PdStatus: {
481
+ type: "object",
482
+ properties: {
483
+ directive: {
484
+ $ref: "#/components/schemas/Directives"
485
+ }
486
+ },
487
+ additionalProperties: false
488
+ },
489
+ Directives: {
490
+ type: "string",
491
+ "enum": [
492
+ "required",
493
+ "allowed",
494
+ "disallowed"
495
+ ]
496
+ },
497
+ FieldV1: {
498
+ type: "object",
499
+ properties: {
500
+ id: {
501
+ type: "string"
502
+ },
503
+ path: {
504
+ type: "array",
505
+ items: {
506
+ type: "string"
507
+ }
508
+ },
509
+ purpose: {
510
+ type: "string"
511
+ },
512
+ filter: {
513
+ $ref: "#/components/schemas/FilterV1"
514
+ },
515
+ predicate: {
516
+ $ref: "#/components/schemas/Optionality"
517
+ }
518
+ },
519
+ required: [
520
+ "path"
521
+ ],
522
+ additionalProperties: false
523
+ },
524
+ FilterV1: {
525
+ type: "object",
526
+ properties: {
527
+ "const": {
528
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
529
+ },
530
+ "enum": {
531
+ type: "array",
532
+ items: {
533
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
534
+ }
535
+ },
536
+ exclusiveMinimum: {
537
+ $ref: "#/components/schemas/OneOfNumberString"
538
+ },
539
+ exclusiveMaximum: {
540
+ $ref: "#/components/schemas/OneOfNumberString"
541
+ },
542
+ format: {
543
+ type: "string"
544
+ },
545
+ minLength: {
546
+ type: "number"
547
+ },
548
+ maxLength: {
549
+ type: "number"
550
+ },
551
+ minimum: {
552
+ $ref: "#/components/schemas/OneOfNumberString"
553
+ },
554
+ maximum: {
555
+ $ref: "#/components/schemas/OneOfNumberString"
556
+ },
557
+ not: {
558
+ type: "object"
559
+ },
560
+ pattern: {
561
+ type: "string"
562
+ },
563
+ type: {
564
+ type: "string"
565
+ }
566
+ },
567
+ additionalProperties: false
568
+ },
569
+ OneOfNumberStringBoolean: {
570
+ type: [
571
+ "boolean",
572
+ "number",
573
+ "string"
574
+ ]
575
+ },
576
+ OneOfNumberString: {
577
+ type: [
578
+ "number",
579
+ "string"
580
+ ]
581
+ },
582
+ HolderSubject: {
583
+ type: "object",
584
+ properties: {
585
+ field_id: {
586
+ type: "array",
587
+ items: {
588
+ type: "string"
589
+ }
590
+ },
591
+ directive: {
592
+ $ref: "#/components/schemas/Optionality"
593
+ }
594
+ },
595
+ required: [
596
+ "field_id",
597
+ "directive"
598
+ ],
599
+ additionalProperties: false
600
+ },
601
+ PresentationDefinitionV2: {
602
+ type: "object",
603
+ properties: {
604
+ id: {
605
+ type: "string"
606
+ },
607
+ name: {
608
+ type: "string"
609
+ },
610
+ purpose: {
611
+ type: "string"
612
+ },
613
+ format: {
614
+ $ref: "#/components/schemas/Format"
615
+ },
616
+ submission_requirements: {
617
+ type: "array",
618
+ items: {
619
+ $ref: "#/components/schemas/SubmissionRequirement"
620
+ }
621
+ },
622
+ input_descriptors: {
623
+ type: "array",
624
+ items: {
625
+ $ref: "#/components/schemas/InputDescriptorV2"
626
+ }
627
+ },
628
+ frame: {
629
+ type: "object"
630
+ }
631
+ },
632
+ required: [
633
+ "id",
634
+ "input_descriptors"
635
+ ],
636
+ additionalProperties: false
637
+ },
638
+ InputDescriptorV2: {
639
+ type: "object",
640
+ properties: {
641
+ id: {
642
+ type: "string"
643
+ },
644
+ name: {
645
+ type: "string"
646
+ },
647
+ purpose: {
648
+ type: "string"
649
+ },
650
+ format: {
651
+ $ref: "#/components/schemas/Format"
652
+ },
653
+ group: {
654
+ type: "array",
655
+ items: {
656
+ type: "string"
657
+ }
658
+ },
659
+ issuance: {
660
+ type: "array",
661
+ items: {
662
+ $ref: "#/components/schemas/Issuance"
663
+ }
664
+ },
665
+ constraints: {
666
+ $ref: "#/components/schemas/ConstraintsV2"
667
+ }
668
+ },
669
+ required: [
670
+ "id",
671
+ "constraints"
672
+ ],
673
+ additionalProperties: false
674
+ },
675
+ ConstraintsV2: {
676
+ type: "object",
677
+ properties: {
678
+ limit_disclosure: {
679
+ $ref: "#/components/schemas/Optionality"
680
+ },
681
+ statuses: {
682
+ $ref: "#/components/schemas/Statuses"
683
+ },
684
+ fields: {
685
+ type: "array",
686
+ items: {
687
+ $ref: "#/components/schemas/FieldV2"
688
+ }
689
+ },
690
+ subject_is_issuer: {
691
+ $ref: "#/components/schemas/Optionality"
692
+ },
693
+ is_holder: {
694
+ type: "array",
695
+ items: {
696
+ $ref: "#/components/schemas/HolderSubject"
697
+ }
698
+ },
699
+ same_subject: {
700
+ type: "array",
701
+ items: {
702
+ $ref: "#/components/schemas/HolderSubject"
703
+ }
704
+ }
705
+ },
706
+ additionalProperties: false
707
+ },
708
+ FieldV2: {
709
+ type: "object",
710
+ properties: {
711
+ id: {
712
+ type: "string"
713
+ },
714
+ path: {
715
+ type: "array",
716
+ items: {
717
+ type: "string"
718
+ }
719
+ },
720
+ purpose: {
721
+ type: "string"
722
+ },
723
+ filter: {
724
+ $ref: "#/components/schemas/FilterV2"
725
+ },
726
+ predicate: {
727
+ $ref: "#/components/schemas/Optionality"
728
+ },
729
+ intent_to_retain: {
730
+ type: "boolean"
731
+ },
732
+ name: {
733
+ type: "string"
734
+ },
735
+ optional: {
736
+ type: "boolean"
737
+ }
738
+ },
739
+ required: [
740
+ "path"
741
+ ],
742
+ additionalProperties: false
743
+ },
744
+ FilterV2: {
745
+ type: "object",
746
+ properties: {
747
+ "const": {
748
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
749
+ },
750
+ "enum": {
751
+ type: "array",
752
+ items: {
753
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
754
+ }
755
+ },
756
+ exclusiveMinimum: {
757
+ $ref: "#/components/schemas/OneOfNumberString"
758
+ },
759
+ exclusiveMaximum: {
760
+ $ref: "#/components/schemas/OneOfNumberString"
761
+ },
762
+ format: {
763
+ type: "string"
764
+ },
765
+ formatMaximum: {
766
+ type: "string"
767
+ },
768
+ formatMinimum: {
769
+ type: "string"
770
+ },
771
+ formatExclusiveMaximum: {
772
+ type: "string"
773
+ },
774
+ formatExclusiveMinimum: {
775
+ type: "string"
776
+ },
777
+ minLength: {
778
+ type: "number"
779
+ },
780
+ maxLength: {
781
+ type: "number"
782
+ },
783
+ minimum: {
784
+ $ref: "#/components/schemas/OneOfNumberString"
785
+ },
786
+ maximum: {
787
+ $ref: "#/components/schemas/OneOfNumberString"
788
+ },
789
+ not: {
790
+ type: "object"
791
+ },
792
+ pattern: {
793
+ type: "string"
794
+ },
795
+ type: {
796
+ type: "string"
797
+ },
798
+ contains: {
799
+ $ref: "#/components/schemas/FilterV2"
800
+ },
801
+ items: {
802
+ $ref: "#/components/schemas/FilterV2Items"
803
+ }
804
+ },
805
+ additionalProperties: false
806
+ },
807
+ FilterV2Items: {
808
+ type: "object",
809
+ properties: {
810
+ "const": {
811
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
812
+ },
813
+ "enum": {
814
+ type: "array",
815
+ items: {
816
+ $ref: "#/components/schemas/OneOfNumberStringBoolean"
817
+ }
818
+ },
819
+ exclusiveMinimum: {
820
+ $ref: "#/components/schemas/OneOfNumberString"
821
+ },
822
+ exclusiveMaximum: {
823
+ $ref: "#/components/schemas/OneOfNumberString"
824
+ },
825
+ format: {
826
+ type: "string"
827
+ },
828
+ formatMaximum: {
829
+ type: "string"
830
+ },
831
+ formatMinimum: {
832
+ type: "string"
833
+ },
834
+ formatExclusiveMaximum: {
835
+ type: "string"
836
+ },
837
+ formatExclusiveMinimum: {
838
+ type: "string"
839
+ },
840
+ minLength: {
841
+ type: "number"
842
+ },
843
+ maxLength: {
844
+ type: "number"
845
+ },
846
+ minimum: {
847
+ $ref: "#/components/schemas/OneOfNumberString"
848
+ },
849
+ maximum: {
850
+ $ref: "#/components/schemas/OneOfNumberString"
851
+ },
852
+ not: {
853
+ type: "object"
854
+ },
855
+ pattern: {
856
+ type: "string"
857
+ },
858
+ type: {
859
+ type: "string"
860
+ },
861
+ contains: {
862
+ $ref: "#/components/schemas/FilterV2"
863
+ },
864
+ items: {
865
+ $ref: "#/components/schemas/FilterV2Items"
866
+ }
867
+ },
868
+ additionalProperties: false
869
+ },
870
+ DcqlQuery: {
871
+ type: "object",
872
+ properties: {
873
+ credentials: {
874
+ type: "array",
875
+ items: {
876
+ $ref: "#/components/schemas/DcqlCredentialQuery"
877
+ }
878
+ }
879
+ },
880
+ required: [
881
+ "credentials"
882
+ ],
883
+ additionalProperties: false
884
+ },
885
+ DcqlCredentialQuery: {
886
+ type: "object",
887
+ properties: {
888
+ id: {
889
+ type: "string"
890
+ },
891
+ format: {
892
+ type: "string"
893
+ },
894
+ alg: {
895
+ type: "array",
896
+ items: {
897
+ type: "string"
898
+ }
899
+ },
900
+ claims: {
901
+ type: "array",
902
+ items: {
903
+ $ref: "#/components/schemas/DcqlClaim"
904
+ }
905
+ },
906
+ meta: {
907
+ $ref: "#/components/schemas/Record<string,any>"
908
+ }
909
+ },
910
+ required: [
911
+ "id",
912
+ "format",
913
+ "claims"
914
+ ],
915
+ additionalProperties: false
916
+ },
917
+ DcqlClaim: {
918
+ type: "object",
919
+ properties: {
920
+ namespace: {
921
+ type: "string"
922
+ },
923
+ claim_name: {
924
+ type: "string"
925
+ },
926
+ filter: {
927
+ $ref: "#/components/schemas/DcqlFilter"
928
+ }
929
+ },
930
+ required: [
931
+ "namespace",
932
+ "claim_name"
933
+ ],
934
+ additionalProperties: false
935
+ },
936
+ DcqlFilter: {
937
+ type: "object",
938
+ properties: {
939
+ type: {
940
+ type: "string",
941
+ "enum": [
942
+ "string",
943
+ "number",
944
+ "boolean"
945
+ ]
946
+ },
947
+ pattern: {
948
+ type: "string"
949
+ },
950
+ minimum: {
951
+ type: "number"
952
+ },
953
+ maximum: {
954
+ type: "number"
955
+ }
956
+ },
957
+ required: [
958
+ "type"
959
+ ],
960
+ additionalProperties: false
961
+ },
962
+ "Record<string,any>": {
963
+ type: "object"
964
+ },
965
+ HasDefinitionItemArgs: {
966
+ $ref: "#/components/schemas/GetDefinitionItemArgs"
967
+ },
968
+ HasDefinitionItemsArgs: {
969
+ $ref: "#/components/schemas/GetDefinitionItemsArgs"
970
+ },
971
+ PersistDefinitionArgs: {
972
+ type: "object",
973
+ properties: {
974
+ queryItem: {
975
+ $ref: "#/components/schemas/PersistPresentationDefinitionItem"
976
+ },
977
+ opts: {
978
+ $ref: "#/components/schemas/PersistOptions"
979
+ }
980
+ },
981
+ required: [
982
+ "queryItem"
983
+ ],
984
+ additionalProperties: false
985
+ },
986
+ PersistPresentationDefinitionItem: {
987
+ type: "object",
988
+ additionalProperties: false,
989
+ properties: {
990
+ id: {
991
+ type: "string"
992
+ },
993
+ queryId: {
994
+ type: "string"
995
+ },
996
+ version: {
997
+ type: "string"
998
+ },
999
+ tenantId: {
1000
+ type: "string"
1001
+ },
1002
+ name: {
1003
+ type: "string"
1004
+ },
1005
+ purpose: {
1006
+ type: "string"
1007
+ },
1008
+ dcqlPayload: {
1009
+ $ref: "#/components/schemas/DcqlQuery"
1010
+ }
1011
+ },
1012
+ required: [
1013
+ "queryPayload"
1014
+ ]
1015
+ },
1016
+ PersistOptions: {
1017
+ type: "object",
1018
+ properties: {
1019
+ versionControlMode: {
1020
+ $ref: "#/components/schemas/VersionControlMode"
1021
+ },
1022
+ versionIncrementReleaseType: {
1023
+ $ref: "#/components/schemas/ReleaseType"
1024
+ }
1025
+ },
1026
+ additionalProperties: false
1027
+ },
1028
+ VersionControlMode: {
1029
+ type: "string",
1030
+ "enum": [
1031
+ "AutoIncrement",
1032
+ "Manual",
1033
+ "Overwrite",
1034
+ "OverwriteLatest"
1035
+ ]
1036
+ },
1037
+ ReleaseType: {
1038
+ type: "string",
1039
+ "enum": [
1040
+ "major",
1041
+ "premajor",
1042
+ "minor",
1043
+ "preminor",
1044
+ "patch",
1045
+ "prepatch",
1046
+ "prerelease",
1047
+ "release"
1048
+ ]
1049
+ }
1050
+ },
1051
+ methods: {
1052
+ pdmDeleteDefinition: {
1053
+ description: "Delete a single presentation query records by primary key",
1054
+ "arguments": {
1055
+ $ref: "#/components/schemas/DeleteDefinitionItemArgs"
1056
+ },
1057
+ returnType: {
1058
+ type: "boolean"
1059
+ }
1060
+ },
1061
+ pdmDeleteDefinitions: {
1062
+ description: "Delete multiple presentation querys records using filters",
1063
+ "arguments": {
1064
+ $ref: "#/components/schemas/DeleteDefinitionItemsArgs"
1065
+ },
1066
+ returnType: {
1067
+ type: "number"
1068
+ }
1069
+ },
1070
+ pdmGetDefinition: {
1071
+ description: "Get a single presentation query records by primary key",
1072
+ "arguments": {
1073
+ $ref: "#/components/schemas/GetDefinitionItemArgs"
1074
+ },
1075
+ returnType: {
1076
+ $ref: "#/components/schemas/PresentationDefinitionItem"
1077
+ }
1078
+ },
1079
+ pdmGetDefinitions: {
1080
+ description: "Find one or more presentation query records using filters",
1081
+ "arguments": {
1082
+ $ref: "#/components/schemas/GetDefinitionItemsArgs"
1083
+ },
1084
+ returnType: {
1085
+ type: "array",
1086
+ items: {
1087
+ $ref: "#/components/schemas/PresentationDefinitionItem"
1088
+ }
1089
+ }
1090
+ },
1091
+ pdmHasDefinition: {
1092
+ description: "Checks whether a presentation query record exists by primary key",
1093
+ "arguments": {
1094
+ $ref: "#/components/schemas/HasDefinitionItemArgs"
1095
+ },
1096
+ returnType: {
1097
+ type: "boolean"
1098
+ }
1099
+ },
1100
+ pdmHasDefinitions: {
1101
+ description: "Checks whether one or more presentation query records exist using filters",
1102
+ "arguments": {
1103
+ $ref: "#/components/schemas/HasDefinitionItemsArgs"
1104
+ },
1105
+ returnType: {
1106
+ type: "boolean"
1107
+ }
1108
+ },
1109
+ pdmPersistDefinition: {
1110
+ description: "Check in a presentation query. It has version control logic which will add or update presentation query records and has settings for automatic version numbering.",
1111
+ "arguments": {
1112
+ $ref: "#/components/schemas/PersistDefinitionArgs"
1113
+ },
1114
+ returnType: {
1115
+ $ref: "#/components/schemas/PresentationDefinitionItem"
1116
+ }
1117
+ }
1118
+ }
1119
+ }
1120
+ };
1121
+ var plugin_schema = {
1122
+ IPDManager: IPDManager$1
1123
+ };
5
1124
 
6
1125
  declare const pdManagerMethods: Array<string>;
7
1126
  /**
8
1127
  * {@inheritDoc IPDManager}
9
1128
  */
10
1129
  declare class PDManager implements IAgentPlugin {
11
- readonly schema: any;
1130
+ readonly schema: {
1131
+ components: {
1132
+ schemas: {
1133
+ DeleteDefinitionItemArgs: {
1134
+ type: string;
1135
+ properties: {
1136
+ itemId: {
1137
+ type: string;
1138
+ };
1139
+ };
1140
+ required: string[];
1141
+ additionalProperties: boolean;
1142
+ };
1143
+ DeleteDefinitionItemsArgs: {
1144
+ $ref: string;
1145
+ };
1146
+ GetDefinitionItemsArgs: {
1147
+ type: string;
1148
+ properties: {
1149
+ filter: {
1150
+ $ref: string;
1151
+ };
1152
+ opts: {
1153
+ $ref: string;
1154
+ };
1155
+ };
1156
+ additionalProperties: boolean;
1157
+ };
1158
+ FindDefinitionArgs: {
1159
+ type: string;
1160
+ items: {
1161
+ $ref: string;
1162
+ };
1163
+ };
1164
+ PresentationDefinitionItemFilter: {
1165
+ $ref: string;
1166
+ };
1167
+ "Partial<Omit<PresentationDefinitionItem,(\"queryPayload\"|\"dcqlPayload\")>>": {
1168
+ type: string;
1169
+ properties: {
1170
+ id: {
1171
+ type: string;
1172
+ };
1173
+ queryId: {
1174
+ type: string;
1175
+ };
1176
+ tenantId: {
1177
+ type: string;
1178
+ };
1179
+ version: {
1180
+ type: string;
1181
+ };
1182
+ name: {
1183
+ type: string;
1184
+ };
1185
+ purpose: {
1186
+ type: string;
1187
+ };
1188
+ createdAt: {
1189
+ type: string;
1190
+ format: string;
1191
+ };
1192
+ lastUpdatedAt: {
1193
+ type: string;
1194
+ format: string;
1195
+ };
1196
+ };
1197
+ additionalProperties: boolean;
1198
+ };
1199
+ FetchOptions: {
1200
+ type: string;
1201
+ properties: {
1202
+ showVersionHistory: {
1203
+ type: string;
1204
+ };
1205
+ };
1206
+ additionalProperties: boolean;
1207
+ };
1208
+ GetDefinitionItemArgs: {
1209
+ type: string;
1210
+ properties: {
1211
+ itemId: {
1212
+ type: string;
1213
+ };
1214
+ };
1215
+ required: string[];
1216
+ additionalProperties: boolean;
1217
+ };
1218
+ PresentationDefinitionItem: {
1219
+ type: string;
1220
+ properties: {
1221
+ id: {
1222
+ type: string;
1223
+ };
1224
+ queryId: {
1225
+ type: string;
1226
+ };
1227
+ tenantId: {
1228
+ type: string;
1229
+ };
1230
+ version: {
1231
+ type: string;
1232
+ };
1233
+ name: {
1234
+ type: string;
1235
+ };
1236
+ purpose: {
1237
+ type: string;
1238
+ };
1239
+ dcqlPayload: {
1240
+ $ref: string;
1241
+ };
1242
+ createdAt: {
1243
+ type: string;
1244
+ format: string;
1245
+ };
1246
+ lastUpdatedAt: {
1247
+ type: string;
1248
+ format: string;
1249
+ };
1250
+ };
1251
+ required: string[];
1252
+ additionalProperties: boolean;
1253
+ };
1254
+ IPresentationDefinition: {
1255
+ anyOf: {
1256
+ $ref: string;
1257
+ }[];
1258
+ };
1259
+ PresentationDefinitionV1: {
1260
+ type: string;
1261
+ properties: {
1262
+ id: {
1263
+ type: string;
1264
+ };
1265
+ name: {
1266
+ type: string;
1267
+ };
1268
+ purpose: {
1269
+ type: string;
1270
+ };
1271
+ format: {
1272
+ $ref: string;
1273
+ };
1274
+ submission_requirements: {
1275
+ type: string;
1276
+ items: {
1277
+ $ref: string;
1278
+ };
1279
+ };
1280
+ input_descriptors: {
1281
+ type: string;
1282
+ items: {
1283
+ $ref: string;
1284
+ };
1285
+ };
1286
+ };
1287
+ required: string[];
1288
+ additionalProperties: boolean;
1289
+ };
1290
+ Format: {
1291
+ type: string;
1292
+ properties: {
1293
+ jwt: {
1294
+ $ref: string;
1295
+ };
1296
+ jwt_vc: {
1297
+ $ref: string;
1298
+ };
1299
+ jwt_vc_json: {
1300
+ $ref: string;
1301
+ };
1302
+ jwt_vp: {
1303
+ $ref: string;
1304
+ };
1305
+ jwt_vp_json: {
1306
+ $ref: string;
1307
+ };
1308
+ ldp: {
1309
+ $ref: string;
1310
+ };
1311
+ ldp_vc: {
1312
+ $ref: string;
1313
+ };
1314
+ ldp_vp: {
1315
+ $ref: string;
1316
+ };
1317
+ di: {
1318
+ $ref: string;
1319
+ };
1320
+ di_vc: {
1321
+ $ref: string;
1322
+ };
1323
+ di_vp: {
1324
+ $ref: string;
1325
+ };
1326
+ "dc+sd-jwt": {
1327
+ $ref: string;
1328
+ };
1329
+ mso_mdoc: {
1330
+ $ref: string;
1331
+ };
1332
+ };
1333
+ additionalProperties: boolean;
1334
+ };
1335
+ JwtObject: {
1336
+ type: string;
1337
+ properties: {
1338
+ alg: {
1339
+ type: string;
1340
+ items: {
1341
+ type: string;
1342
+ };
1343
+ };
1344
+ };
1345
+ required: string[];
1346
+ additionalProperties: boolean;
1347
+ };
1348
+ LdpObject: {
1349
+ type: string;
1350
+ properties: {
1351
+ proof_type: {
1352
+ type: string;
1353
+ items: {
1354
+ type: string;
1355
+ };
1356
+ };
1357
+ };
1358
+ required: string[];
1359
+ additionalProperties: boolean;
1360
+ };
1361
+ DiObject: {
1362
+ type: string;
1363
+ properties: {
1364
+ proof_type: {
1365
+ type: string;
1366
+ items: {
1367
+ type: string;
1368
+ };
1369
+ };
1370
+ cryptosuite: {
1371
+ type: string;
1372
+ items: {
1373
+ type: string;
1374
+ };
1375
+ };
1376
+ };
1377
+ required: string[];
1378
+ additionalProperties: boolean;
1379
+ };
1380
+ SdJwtObject: {
1381
+ type: string;
1382
+ properties: {
1383
+ "sd-jwt_alg_values": {
1384
+ type: string;
1385
+ items: {
1386
+ type: string;
1387
+ };
1388
+ };
1389
+ "kb-jwt_alg_values": {
1390
+ type: string;
1391
+ items: {
1392
+ type: string;
1393
+ };
1394
+ };
1395
+ };
1396
+ additionalProperties: boolean;
1397
+ };
1398
+ MsoMdocObject: {
1399
+ type: string;
1400
+ properties: {
1401
+ alg: {
1402
+ type: string;
1403
+ items: {
1404
+ type: string;
1405
+ };
1406
+ };
1407
+ };
1408
+ required: string[];
1409
+ additionalProperties: boolean;
1410
+ };
1411
+ SubmissionRequirement: {
1412
+ type: string;
1413
+ properties: {
1414
+ name: {
1415
+ type: string;
1416
+ };
1417
+ purpose: {
1418
+ type: string;
1419
+ };
1420
+ rule: {
1421
+ $ref: string;
1422
+ };
1423
+ count: {
1424
+ type: string;
1425
+ };
1426
+ min: {
1427
+ type: string;
1428
+ };
1429
+ max: {
1430
+ type: string;
1431
+ };
1432
+ from: {
1433
+ type: string;
1434
+ };
1435
+ from_nested: {
1436
+ type: string;
1437
+ items: {
1438
+ $ref: string;
1439
+ };
1440
+ };
1441
+ };
1442
+ required: string[];
1443
+ additionalProperties: boolean;
1444
+ };
1445
+ Rules: {
1446
+ type: string;
1447
+ enum: string[];
1448
+ };
1449
+ InputDescriptorV1: {
1450
+ type: string;
1451
+ properties: {
1452
+ id: {
1453
+ type: string;
1454
+ };
1455
+ name: {
1456
+ type: string;
1457
+ };
1458
+ purpose: {
1459
+ type: string;
1460
+ };
1461
+ group: {
1462
+ type: string;
1463
+ items: {
1464
+ type: string;
1465
+ };
1466
+ };
1467
+ schema: {
1468
+ type: string;
1469
+ items: {
1470
+ $ref: string;
1471
+ };
1472
+ };
1473
+ issuance: {
1474
+ type: string;
1475
+ items: {
1476
+ $ref: string;
1477
+ };
1478
+ };
1479
+ constraints: {
1480
+ $ref: string;
1481
+ };
1482
+ };
1483
+ required: string[];
1484
+ additionalProperties: boolean;
1485
+ };
1486
+ Schema: {
1487
+ type: string;
1488
+ properties: {
1489
+ uri: {
1490
+ type: string;
1491
+ };
1492
+ required: {
1493
+ type: string;
1494
+ };
1495
+ };
1496
+ required: string[];
1497
+ additionalProperties: boolean;
1498
+ };
1499
+ Issuance: {
1500
+ type: string;
1501
+ properties: {
1502
+ manifest: {
1503
+ type: string;
1504
+ };
1505
+ };
1506
+ additionalProperties: {};
1507
+ };
1508
+ ConstraintsV1: {
1509
+ type: string;
1510
+ properties: {
1511
+ limit_disclosure: {
1512
+ $ref: string;
1513
+ };
1514
+ statuses: {
1515
+ $ref: string;
1516
+ };
1517
+ fields: {
1518
+ type: string;
1519
+ items: {
1520
+ $ref: string;
1521
+ };
1522
+ };
1523
+ subject_is_issuer: {
1524
+ $ref: string;
1525
+ };
1526
+ is_holder: {
1527
+ type: string;
1528
+ items: {
1529
+ $ref: string;
1530
+ };
1531
+ };
1532
+ same_subject: {
1533
+ type: string;
1534
+ items: {
1535
+ $ref: string;
1536
+ };
1537
+ };
1538
+ };
1539
+ additionalProperties: boolean;
1540
+ };
1541
+ Optionality: {
1542
+ type: string;
1543
+ enum: string[];
1544
+ };
1545
+ Statuses: {
1546
+ type: string;
1547
+ properties: {
1548
+ active: {
1549
+ $ref: string;
1550
+ };
1551
+ suspended: {
1552
+ $ref: string;
1553
+ };
1554
+ revoked: {
1555
+ $ref: string;
1556
+ };
1557
+ };
1558
+ additionalProperties: boolean;
1559
+ };
1560
+ PdStatus: {
1561
+ type: string;
1562
+ properties: {
1563
+ directive: {
1564
+ $ref: string;
1565
+ };
1566
+ };
1567
+ additionalProperties: boolean;
1568
+ };
1569
+ Directives: {
1570
+ type: string;
1571
+ enum: string[];
1572
+ };
1573
+ FieldV1: {
1574
+ type: string;
1575
+ properties: {
1576
+ id: {
1577
+ type: string;
1578
+ };
1579
+ path: {
1580
+ type: string;
1581
+ items: {
1582
+ type: string;
1583
+ };
1584
+ };
1585
+ purpose: {
1586
+ type: string;
1587
+ };
1588
+ filter: {
1589
+ $ref: string;
1590
+ };
1591
+ predicate: {
1592
+ $ref: string;
1593
+ };
1594
+ };
1595
+ required: string[];
1596
+ additionalProperties: boolean;
1597
+ };
1598
+ FilterV1: {
1599
+ type: string;
1600
+ properties: {
1601
+ const: {
1602
+ $ref: string;
1603
+ };
1604
+ enum: {
1605
+ type: string;
1606
+ items: {
1607
+ $ref: string;
1608
+ };
1609
+ };
1610
+ exclusiveMinimum: {
1611
+ $ref: string;
1612
+ };
1613
+ exclusiveMaximum: {
1614
+ $ref: string;
1615
+ };
1616
+ format: {
1617
+ type: string;
1618
+ };
1619
+ minLength: {
1620
+ type: string;
1621
+ };
1622
+ maxLength: {
1623
+ type: string;
1624
+ };
1625
+ minimum: {
1626
+ $ref: string;
1627
+ };
1628
+ maximum: {
1629
+ $ref: string;
1630
+ };
1631
+ not: {
1632
+ type: string;
1633
+ };
1634
+ pattern: {
1635
+ type: string;
1636
+ };
1637
+ type: {
1638
+ type: string;
1639
+ };
1640
+ };
1641
+ additionalProperties: boolean;
1642
+ };
1643
+ OneOfNumberStringBoolean: {
1644
+ type: string[];
1645
+ };
1646
+ OneOfNumberString: {
1647
+ type: string[];
1648
+ };
1649
+ HolderSubject: {
1650
+ type: string;
1651
+ properties: {
1652
+ field_id: {
1653
+ type: string;
1654
+ items: {
1655
+ type: string;
1656
+ };
1657
+ };
1658
+ directive: {
1659
+ $ref: string;
1660
+ };
1661
+ };
1662
+ required: string[];
1663
+ additionalProperties: boolean;
1664
+ };
1665
+ PresentationDefinitionV2: {
1666
+ type: string;
1667
+ properties: {
1668
+ id: {
1669
+ type: string;
1670
+ };
1671
+ name: {
1672
+ type: string;
1673
+ };
1674
+ purpose: {
1675
+ type: string;
1676
+ };
1677
+ format: {
1678
+ $ref: string;
1679
+ };
1680
+ submission_requirements: {
1681
+ type: string;
1682
+ items: {
1683
+ $ref: string;
1684
+ };
1685
+ };
1686
+ input_descriptors: {
1687
+ type: string;
1688
+ items: {
1689
+ $ref: string;
1690
+ };
1691
+ };
1692
+ frame: {
1693
+ type: string;
1694
+ };
1695
+ };
1696
+ required: string[];
1697
+ additionalProperties: boolean;
1698
+ };
1699
+ InputDescriptorV2: {
1700
+ type: string;
1701
+ properties: {
1702
+ id: {
1703
+ type: string;
1704
+ };
1705
+ name: {
1706
+ type: string;
1707
+ };
1708
+ purpose: {
1709
+ type: string;
1710
+ };
1711
+ format: {
1712
+ $ref: string;
1713
+ };
1714
+ group: {
1715
+ type: string;
1716
+ items: {
1717
+ type: string;
1718
+ };
1719
+ };
1720
+ issuance: {
1721
+ type: string;
1722
+ items: {
1723
+ $ref: string;
1724
+ };
1725
+ };
1726
+ constraints: {
1727
+ $ref: string;
1728
+ };
1729
+ };
1730
+ required: string[];
1731
+ additionalProperties: boolean;
1732
+ };
1733
+ ConstraintsV2: {
1734
+ type: string;
1735
+ properties: {
1736
+ limit_disclosure: {
1737
+ $ref: string;
1738
+ };
1739
+ statuses: {
1740
+ $ref: string;
1741
+ };
1742
+ fields: {
1743
+ type: string;
1744
+ items: {
1745
+ $ref: string;
1746
+ };
1747
+ };
1748
+ subject_is_issuer: {
1749
+ $ref: string;
1750
+ };
1751
+ is_holder: {
1752
+ type: string;
1753
+ items: {
1754
+ $ref: string;
1755
+ };
1756
+ };
1757
+ same_subject: {
1758
+ type: string;
1759
+ items: {
1760
+ $ref: string;
1761
+ };
1762
+ };
1763
+ };
1764
+ additionalProperties: boolean;
1765
+ };
1766
+ FieldV2: {
1767
+ type: string;
1768
+ properties: {
1769
+ id: {
1770
+ type: string;
1771
+ };
1772
+ path: {
1773
+ type: string;
1774
+ items: {
1775
+ type: string;
1776
+ };
1777
+ };
1778
+ purpose: {
1779
+ type: string;
1780
+ };
1781
+ filter: {
1782
+ $ref: string;
1783
+ };
1784
+ predicate: {
1785
+ $ref: string;
1786
+ };
1787
+ intent_to_retain: {
1788
+ type: string;
1789
+ };
1790
+ name: {
1791
+ type: string;
1792
+ };
1793
+ optional: {
1794
+ type: string;
1795
+ };
1796
+ };
1797
+ required: string[];
1798
+ additionalProperties: boolean;
1799
+ };
1800
+ FilterV2: {
1801
+ type: string;
1802
+ properties: {
1803
+ const: {
1804
+ $ref: string;
1805
+ };
1806
+ enum: {
1807
+ type: string;
1808
+ items: {
1809
+ $ref: string;
1810
+ };
1811
+ };
1812
+ exclusiveMinimum: {
1813
+ $ref: string;
1814
+ };
1815
+ exclusiveMaximum: {
1816
+ $ref: string;
1817
+ };
1818
+ format: {
1819
+ type: string;
1820
+ };
1821
+ formatMaximum: {
1822
+ type: string;
1823
+ };
1824
+ formatMinimum: {
1825
+ type: string;
1826
+ };
1827
+ formatExclusiveMaximum: {
1828
+ type: string;
1829
+ };
1830
+ formatExclusiveMinimum: {
1831
+ type: string;
1832
+ };
1833
+ minLength: {
1834
+ type: string;
1835
+ };
1836
+ maxLength: {
1837
+ type: string;
1838
+ };
1839
+ minimum: {
1840
+ $ref: string;
1841
+ };
1842
+ maximum: {
1843
+ $ref: string;
1844
+ };
1845
+ not: {
1846
+ type: string;
1847
+ };
1848
+ pattern: {
1849
+ type: string;
1850
+ };
1851
+ type: {
1852
+ type: string;
1853
+ };
1854
+ contains: {
1855
+ $ref: string;
1856
+ };
1857
+ items: {
1858
+ $ref: string;
1859
+ };
1860
+ };
1861
+ additionalProperties: boolean;
1862
+ };
1863
+ FilterV2Items: {
1864
+ type: string;
1865
+ properties: {
1866
+ const: {
1867
+ $ref: string;
1868
+ };
1869
+ enum: {
1870
+ type: string;
1871
+ items: {
1872
+ $ref: string;
1873
+ };
1874
+ };
1875
+ exclusiveMinimum: {
1876
+ $ref: string;
1877
+ };
1878
+ exclusiveMaximum: {
1879
+ $ref: string;
1880
+ };
1881
+ format: {
1882
+ type: string;
1883
+ };
1884
+ formatMaximum: {
1885
+ type: string;
1886
+ };
1887
+ formatMinimum: {
1888
+ type: string;
1889
+ };
1890
+ formatExclusiveMaximum: {
1891
+ type: string;
1892
+ };
1893
+ formatExclusiveMinimum: {
1894
+ type: string;
1895
+ };
1896
+ minLength: {
1897
+ type: string;
1898
+ };
1899
+ maxLength: {
1900
+ type: string;
1901
+ };
1902
+ minimum: {
1903
+ $ref: string;
1904
+ };
1905
+ maximum: {
1906
+ $ref: string;
1907
+ };
1908
+ not: {
1909
+ type: string;
1910
+ };
1911
+ pattern: {
1912
+ type: string;
1913
+ };
1914
+ type: {
1915
+ type: string;
1916
+ };
1917
+ contains: {
1918
+ $ref: string;
1919
+ };
1920
+ items: {
1921
+ $ref: string;
1922
+ };
1923
+ };
1924
+ additionalProperties: boolean;
1925
+ };
1926
+ DcqlQuery: {
1927
+ type: string;
1928
+ properties: {
1929
+ credentials: {
1930
+ type: string;
1931
+ items: {
1932
+ $ref: string;
1933
+ };
1934
+ };
1935
+ };
1936
+ required: string[];
1937
+ additionalProperties: boolean;
1938
+ };
1939
+ DcqlCredentialQuery: {
1940
+ type: string;
1941
+ properties: {
1942
+ id: {
1943
+ type: string;
1944
+ };
1945
+ format: {
1946
+ type: string;
1947
+ };
1948
+ alg: {
1949
+ type: string;
1950
+ items: {
1951
+ type: string;
1952
+ };
1953
+ };
1954
+ claims: {
1955
+ type: string;
1956
+ items: {
1957
+ $ref: string;
1958
+ };
1959
+ };
1960
+ meta: {
1961
+ $ref: string;
1962
+ };
1963
+ };
1964
+ required: string[];
1965
+ additionalProperties: boolean;
1966
+ };
1967
+ DcqlClaim: {
1968
+ type: string;
1969
+ properties: {
1970
+ namespace: {
1971
+ type: string;
1972
+ };
1973
+ claim_name: {
1974
+ type: string;
1975
+ };
1976
+ filter: {
1977
+ $ref: string;
1978
+ };
1979
+ };
1980
+ required: string[];
1981
+ additionalProperties: boolean;
1982
+ };
1983
+ DcqlFilter: {
1984
+ type: string;
1985
+ properties: {
1986
+ type: {
1987
+ type: string;
1988
+ enum: string[];
1989
+ };
1990
+ pattern: {
1991
+ type: string;
1992
+ };
1993
+ minimum: {
1994
+ type: string;
1995
+ };
1996
+ maximum: {
1997
+ type: string;
1998
+ };
1999
+ };
2000
+ required: string[];
2001
+ additionalProperties: boolean;
2002
+ };
2003
+ "Record<string,any>": {
2004
+ type: string;
2005
+ };
2006
+ HasDefinitionItemArgs: {
2007
+ $ref: string;
2008
+ };
2009
+ HasDefinitionItemsArgs: {
2010
+ $ref: string;
2011
+ };
2012
+ PersistDefinitionArgs: {
2013
+ type: string;
2014
+ properties: {
2015
+ queryItem: {
2016
+ $ref: string;
2017
+ };
2018
+ opts: {
2019
+ $ref: string;
2020
+ };
2021
+ };
2022
+ required: string[];
2023
+ additionalProperties: boolean;
2024
+ };
2025
+ PersistPresentationDefinitionItem: {
2026
+ type: string;
2027
+ additionalProperties: boolean;
2028
+ properties: {
2029
+ id: {
2030
+ type: string;
2031
+ };
2032
+ queryId: {
2033
+ type: string;
2034
+ };
2035
+ version: {
2036
+ type: string;
2037
+ };
2038
+ tenantId: {
2039
+ type: string;
2040
+ };
2041
+ name: {
2042
+ type: string;
2043
+ };
2044
+ purpose: {
2045
+ type: string;
2046
+ };
2047
+ dcqlPayload: {
2048
+ $ref: string;
2049
+ };
2050
+ };
2051
+ required: string[];
2052
+ };
2053
+ PersistOptions: {
2054
+ type: string;
2055
+ properties: {
2056
+ versionControlMode: {
2057
+ $ref: string;
2058
+ };
2059
+ versionIncrementReleaseType: {
2060
+ $ref: string;
2061
+ };
2062
+ };
2063
+ additionalProperties: boolean;
2064
+ };
2065
+ VersionControlMode: {
2066
+ type: string;
2067
+ enum: string[];
2068
+ };
2069
+ ReleaseType: {
2070
+ type: string;
2071
+ enum: string[];
2072
+ };
2073
+ };
2074
+ methods: {
2075
+ pdmDeleteDefinition: {
2076
+ description: string;
2077
+ arguments: {
2078
+ $ref: string;
2079
+ };
2080
+ returnType: {
2081
+ type: string;
2082
+ };
2083
+ };
2084
+ pdmDeleteDefinitions: {
2085
+ description: string;
2086
+ arguments: {
2087
+ $ref: string;
2088
+ };
2089
+ returnType: {
2090
+ type: string;
2091
+ };
2092
+ };
2093
+ pdmGetDefinition: {
2094
+ description: string;
2095
+ arguments: {
2096
+ $ref: string;
2097
+ };
2098
+ returnType: {
2099
+ $ref: string;
2100
+ };
2101
+ };
2102
+ pdmGetDefinitions: {
2103
+ description: string;
2104
+ arguments: {
2105
+ $ref: string;
2106
+ };
2107
+ returnType: {
2108
+ type: string;
2109
+ items: {
2110
+ $ref: string;
2111
+ };
2112
+ };
2113
+ };
2114
+ pdmHasDefinition: {
2115
+ description: string;
2116
+ arguments: {
2117
+ $ref: string;
2118
+ };
2119
+ returnType: {
2120
+ type: string;
2121
+ };
2122
+ };
2123
+ pdmHasDefinitions: {
2124
+ description: string;
2125
+ arguments: {
2126
+ $ref: string;
2127
+ };
2128
+ returnType: {
2129
+ type: string;
2130
+ };
2131
+ };
2132
+ pdmPersistDefinition: {
2133
+ description: string;
2134
+ arguments: {
2135
+ $ref: string;
2136
+ };
2137
+ returnType: {
2138
+ $ref: string;
2139
+ };
2140
+ };
2141
+ };
2142
+ };
2143
+ };
12
2144
  readonly methods: IPDManager;
13
2145
  private readonly store;
14
2146
  constructor(options: {
@@ -40,12 +2172,12 @@ interface IPDManager extends IPluginMethodMap {
40
2172
  * Get a single presentation definition records by primary key
41
2173
  * @param args
42
2174
  */
43
- pdmGetDefinition(args: GetDefinitionItemArgs): Promise<PresentationDefinitionItem>;
2175
+ pdmGetDefinition(args: GetDcqlQueryItemArgs): Promise<DcqlQueryItem>;
44
2176
  /**
45
2177
  * Find one or more presentation definition records using filters
46
2178
  * @param args
47
2179
  */
48
- pdmGetDefinitions(args: GetDefinitionItemsArgs): Promise<Array<PresentationDefinitionItem>>;
2180
+ pdmGetDefinitions(args: GetDcqlQueryItemsArgs): Promise<Array<DcqlQueryItem>>;
49
2181
  /**
50
2182
  * Checks whether a presentation definition record exists by primary key
51
2183
  * @param args
@@ -55,59 +2187,53 @@ interface IPDManager extends IPluginMethodMap {
55
2187
  * Checks whether one or more presentation definition records exist using filters
56
2188
  * @param args
57
2189
  */
58
- pdmHasDefinitions(args: HasDefinitionItemsArgs): Promise<boolean>;
2190
+ pdmHasDefinitions(args: HasDcqlQueryItemsArgs): Promise<boolean>;
59
2191
  /**
60
2192
  * Delete a single presentation definition records by primary key
61
2193
  * @param args
62
2194
  */
63
- pdmDeleteDefinition(args: DeleteDefinitionItemArgs): Promise<boolean>;
2195
+ pdmDeleteDefinition(args: DeleteDcqlQueryItemArgs): Promise<boolean>;
64
2196
  /**
65
2197
  * Delete multiple presentation definitions records using filters
66
2198
  * @param args
67
2199
  */
68
- pdmDeleteDefinitions(args: DeleteDefinitionItemsArgs): Promise<number>;
2200
+ pdmDeleteDefinitions(args: DeleteDcqlQueryItemsArgs): Promise<number>;
69
2201
  /**
70
2202
  * Check in a presentation definition.
71
2203
  * It has version control logic which will add or update presentation definition records and has settings for automatic version numbering.
72
2204
  * @param args
73
2205
  */
74
- pdmPersistDefinition(args: PersistDefinitionArgs): Promise<PresentationDefinitionItem>;
2206
+ pdmPersistDefinition(args: PersistDcqlQueryArgs): Promise<DcqlQueryItem>;
75
2207
  }
76
2208
  type VersionControlMode = 'AutoIncrement' | 'Manual' | 'Overwrite' | 'OverwriteLatest';
77
- type GetDefinitionItemArgs = {
2209
+ type GetDcqlQueryItemArgs = {
78
2210
  itemId: string;
79
2211
  };
80
- type HasDefinitionItemArgs = GetDefinitionItemArgs;
2212
+ type HasDefinitionItemArgs = GetDcqlQueryItemArgs;
81
2213
  type FetchOptions = {
82
2214
  showVersionHistory?: boolean;
83
2215
  };
84
- type GetDefinitionItemsArgs = {
85
- filter?: FindDefinitionArgs;
2216
+ type GetDcqlQueryItemsArgs = {
2217
+ filter?: FindDcqlQueryArgs;
86
2218
  opts?: FetchOptions;
87
2219
  };
88
- type HasDefinitionItemsArgs = GetDefinitionItemsArgs;
89
- type DeleteDefinitionItemArgs = {
2220
+ type HasDcqlQueryItemsArgs = GetDcqlQueryItemsArgs;
2221
+ type DeleteDcqlQueryItemArgs = {
90
2222
  itemId: string;
91
2223
  };
92
- type DeleteDefinitionItemsArgs = GetDefinitionItemsArgs;
93
- type PersistPresentationDefinitionItem = Omit<NonPersistedPresentationDefinitionItem, 'definitionId' | 'version'> & {
2224
+ type DeleteDcqlQueryItemsArgs = GetDcqlQueryItemsArgs;
2225
+ type PersistDcqlQueryItem = Omit<NonPersistedDcqlQueryItem, 'version'> & {
94
2226
  id?: string;
95
- definitionId?: string;
96
2227
  version?: string;
97
2228
  };
98
2229
  type PersistOptions = {
99
2230
  versionControlMode?: VersionControlMode;
100
2231
  versionIncrementReleaseType?: ReleaseType;
101
2232
  };
102
- type PersistDefinitionArgs = {
103
- definitionItem: PersistPresentationDefinitionItem;
2233
+ type PersistDcqlQueryArgs = {
2234
+ definitionItem: PersistDcqlQueryItem;
104
2235
  opts?: PersistOptions;
105
2236
  };
106
2237
  type RequiredContext = IAgentContext<never>;
107
2238
 
108
- /**
109
- * @public
110
- */
111
- declare const schema: any;
112
-
113
- export { type DeleteDefinitionItemArgs, type DeleteDefinitionItemsArgs, type FetchOptions, type GetDefinitionItemArgs, type GetDefinitionItemsArgs, type HasDefinitionItemArgs, type HasDefinitionItemsArgs, type IPDManager, PDManager, type PersistDefinitionArgs, type PersistOptions, type PersistPresentationDefinitionItem, type RequiredContext, type VersionControlMode, pdManagerMethods, schema };
2239
+ export { type DeleteDcqlQueryItemArgs, type DeleteDcqlQueryItemsArgs, type FetchOptions, type GetDcqlQueryItemArgs, type GetDcqlQueryItemsArgs, type HasDcqlQueryItemsArgs, type HasDefinitionItemArgs, type IPDManager, PDManager, type PersistDcqlQueryArgs, type PersistDcqlQueryItem, type PersistOptions, type RequiredContext, type VersionControlMode, pdManagerMethods, plugin_schema as schema };