@sphereon/ssi-sdk.pd-manager 0.33.1-next.3 → 0.33.1-next.68

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.
@@ -9,9 +9,8 @@
9
9
  "type": "string"
10
10
  }
11
11
  },
12
- "required": [
13
- "itemId"
14
- ]
12
+ "required": ["itemId"],
13
+ "additionalProperties": false
15
14
  },
16
15
  "DeleteDefinitionItemsArgs": {
17
16
  "$ref": "#/components/schemas/GetDefinitionItemsArgs"
@@ -25,7 +24,8 @@
25
24
  "opts": {
26
25
  "$ref": "#/components/schemas/FetchOptions"
27
26
  }
28
- }
27
+ },
28
+ "additionalProperties": false
29
29
  },
30
30
  "FindDefinitionArgs": {
31
31
  "type": "array",
@@ -34,6 +34,9 @@
34
34
  }
35
35
  },
36
36
  "PresentationDefinitionItemFilter": {
37
+ "$ref": "#/components/schemas/Partial<Omit<PresentationDefinitionItem,(\"definitionPayload\"|\"dcqlPayload\")>>"
38
+ },
39
+ "Partial<Omit<PresentationDefinitionItem,(\"definitionPayload\"|\"dcqlPayload\")>>": {
37
40
  "type": "object",
38
41
  "properties": {
39
42
  "id": {
@@ -62,7 +65,8 @@
62
65
  "type": "string",
63
66
  "format": "date-time"
64
67
  }
65
- }
68
+ },
69
+ "additionalProperties": false
66
70
  },
67
71
  "FetchOptions": {
68
72
  "type": "object",
@@ -70,7 +74,8 @@
70
74
  "showVersionHistory": {
71
75
  "type": "boolean"
72
76
  }
73
- }
77
+ },
78
+ "additionalProperties": false
74
79
  },
75
80
  "GetDefinitionItemArgs": {
76
81
  "type": "object",
@@ -79,9 +84,8 @@
79
84
  "type": "string"
80
85
  }
81
86
  },
82
- "required": [
83
- "itemId"
84
- ]
87
+ "required": ["itemId"],
88
+ "additionalProperties": false
85
89
  },
86
90
  "PresentationDefinitionItem": {
87
91
  "type": "object",
@@ -119,14 +123,8 @@
119
123
  "format": "date-time"
120
124
  }
121
125
  },
122
- "required": [
123
- "id",
124
- "definitionId",
125
- "version",
126
- "definitionPayload",
127
- "createdAt",
128
- "lastUpdatedAt"
129
- ]
126
+ "required": ["id", "definitionId", "version", "definitionPayload", "createdAt", "lastUpdatedAt"],
127
+ "additionalProperties": false
130
128
  },
131
129
  "IPresentationDefinition": {
132
130
  "anyOf": [
@@ -166,10 +164,8 @@
166
164
  }
167
165
  }
168
166
  },
169
- "required": [
170
- "id",
171
- "input_descriptors"
172
- ]
167
+ "required": ["id", "input_descriptors"],
168
+ "additionalProperties": false
173
169
  },
174
170
  "Format": {
175
171
  "type": "object",
@@ -213,7 +209,8 @@
213
209
  "mso_mdoc": {
214
210
  "$ref": "#/components/schemas/MsoMdocObject"
215
211
  }
216
- }
212
+ },
213
+ "additionalProperties": false
217
214
  },
218
215
  "JwtObject": {
219
216
  "type": "object",
@@ -225,9 +222,8 @@
225
222
  }
226
223
  }
227
224
  },
228
- "required": [
229
- "alg"
230
- ]
225
+ "required": ["alg"],
226
+ "additionalProperties": false
231
227
  },
232
228
  "LdpObject": {
233
229
  "type": "object",
@@ -239,9 +235,8 @@
239
235
  }
240
236
  }
241
237
  },
242
- "required": [
243
- "proof_type"
244
- ]
238
+ "required": ["proof_type"],
239
+ "additionalProperties": false
245
240
  },
246
241
  "DiObject": {
247
242
  "type": "object",
@@ -259,10 +254,8 @@
259
254
  }
260
255
  }
261
256
  },
262
- "required": [
263
- "proof_type",
264
- "cryptosuite"
265
- ]
257
+ "required": ["proof_type", "cryptosuite"],
258
+ "additionalProperties": false
266
259
  },
267
260
  "SdJwtObject": {
268
261
  "type": "object",
@@ -279,7 +272,8 @@
279
272
  "type": "string"
280
273
  }
281
274
  }
282
- }
275
+ },
276
+ "additionalProperties": false
283
277
  },
284
278
  "MsoMdocObject": {
285
279
  "type": "object",
@@ -291,9 +285,8 @@
291
285
  }
292
286
  }
293
287
  },
294
- "required": [
295
- "alg"
296
- ]
288
+ "required": ["alg"],
289
+ "additionalProperties": false
297
290
  },
298
291
  "SubmissionRequirement": {
299
292
  "type": "object",
@@ -326,16 +319,12 @@
326
319
  }
327
320
  }
328
321
  },
329
- "required": [
330
- "rule"
331
- ]
322
+ "required": ["rule"],
323
+ "additionalProperties": false
332
324
  },
333
325
  "Rules": {
334
326
  "type": "string",
335
- "enum": [
336
- "all",
337
- "pick"
338
- ]
327
+ "enum": ["all", "pick"]
339
328
  },
340
329
  "InputDescriptorV1": {
341
330
  "type": "object",
@@ -371,10 +360,8 @@
371
360
  "$ref": "#/components/schemas/ConstraintsV1"
372
361
  }
373
362
  },
374
- "required": [
375
- "id",
376
- "schema"
377
- ]
363
+ "required": ["id", "schema"],
364
+ "additionalProperties": false
378
365
  },
379
366
  "Schema": {
380
367
  "type": "object",
@@ -386,9 +373,8 @@
386
373
  "type": "boolean"
387
374
  }
388
375
  },
389
- "required": [
390
- "uri"
391
- ]
376
+ "required": ["uri"],
377
+ "additionalProperties": false
392
378
  },
393
379
  "Issuance": {
394
380
  "type": "object",
@@ -429,14 +415,12 @@
429
415
  "$ref": "#/components/schemas/HolderSubject"
430
416
  }
431
417
  }
432
- }
418
+ },
419
+ "additionalProperties": false
433
420
  },
434
421
  "Optionality": {
435
422
  "type": "string",
436
- "enum": [
437
- "required",
438
- "preferred"
439
- ]
423
+ "enum": ["required", "preferred"]
440
424
  },
441
425
  "Statuses": {
442
426
  "type": "object",
@@ -450,7 +434,8 @@
450
434
  "revoked": {
451
435
  "$ref": "#/components/schemas/PdStatus"
452
436
  }
453
- }
437
+ },
438
+ "additionalProperties": false
454
439
  },
455
440
  "PdStatus": {
456
441
  "type": "object",
@@ -458,15 +443,12 @@
458
443
  "directive": {
459
444
  "$ref": "#/components/schemas/Directives"
460
445
  }
461
- }
446
+ },
447
+ "additionalProperties": false
462
448
  },
463
449
  "Directives": {
464
450
  "type": "string",
465
- "enum": [
466
- "required",
467
- "allowed",
468
- "disallowed"
469
- ]
451
+ "enum": ["required", "allowed", "disallowed"]
470
452
  },
471
453
  "FieldV1": {
472
454
  "type": "object",
@@ -490,9 +472,8 @@
490
472
  "$ref": "#/components/schemas/Optionality"
491
473
  }
492
474
  },
493
- "required": [
494
- "path"
495
- ]
475
+ "required": ["path"],
476
+ "additionalProperties": false
496
477
  },
497
478
  "FilterV1": {
498
479
  "type": "object",
@@ -536,20 +517,14 @@
536
517
  "type": {
537
518
  "type": "string"
538
519
  }
539
- }
520
+ },
521
+ "additionalProperties": false
540
522
  },
541
523
  "OneOfNumberStringBoolean": {
542
- "type": [
543
- "boolean",
544
- "number",
545
- "string"
546
- ]
524
+ "type": ["boolean", "number", "string"]
547
525
  },
548
526
  "OneOfNumberString": {
549
- "type": [
550
- "number",
551
- "string"
552
- ]
527
+ "type": ["number", "string"]
553
528
  },
554
529
  "HolderSubject": {
555
530
  "type": "object",
@@ -564,10 +539,8 @@
564
539
  "$ref": "#/components/schemas/Optionality"
565
540
  }
566
541
  },
567
- "required": [
568
- "field_id",
569
- "directive"
570
- ]
542
+ "required": ["field_id", "directive"],
543
+ "additionalProperties": false
571
544
  },
572
545
  "PresentationDefinitionV2": {
573
546
  "type": "object",
@@ -600,10 +573,8 @@
600
573
  "type": "object"
601
574
  }
602
575
  },
603
- "required": [
604
- "id",
605
- "input_descriptors"
606
- ]
576
+ "required": ["id", "input_descriptors"],
577
+ "additionalProperties": false
607
578
  },
608
579
  "InputDescriptorV2": {
609
580
  "type": "object",
@@ -636,10 +607,8 @@
636
607
  "$ref": "#/components/schemas/ConstraintsV2"
637
608
  }
638
609
  },
639
- "required": [
640
- "id",
641
- "constraints"
642
- ]
610
+ "required": ["id", "constraints"],
611
+ "additionalProperties": false
643
612
  },
644
613
  "ConstraintsV2": {
645
614
  "type": "object",
@@ -671,7 +640,8 @@
671
640
  "$ref": "#/components/schemas/HolderSubject"
672
641
  }
673
642
  }
674
- }
643
+ },
644
+ "additionalProperties": false
675
645
  },
676
646
  "FieldV2": {
677
647
  "type": "object",
@@ -704,9 +674,8 @@
704
674
  "type": "boolean"
705
675
  }
706
676
  },
707
- "required": [
708
- "path"
709
- ]
677
+ "required": ["path"],
678
+ "additionalProperties": false
710
679
  },
711
680
  "FilterV2": {
712
681
  "type": "object",
@@ -768,7 +737,8 @@
768
737
  "items": {
769
738
  "$ref": "#/components/schemas/FilterV2Items"
770
739
  }
771
- }
740
+ },
741
+ "additionalProperties": false
772
742
  },
773
743
  "FilterV2Items": {
774
744
  "type": "object",
@@ -830,7 +800,8 @@
830
800
  "items": {
831
801
  "$ref": "#/components/schemas/FilterV2Items"
832
802
  }
833
- }
803
+ },
804
+ "additionalProperties": false
834
805
  },
835
806
  "DcqlQueryREST": {
836
807
  "type": "object",
@@ -842,9 +813,8 @@
842
813
  }
843
814
  }
844
815
  },
845
- "required": [
846
- "credentials"
847
- ]
816
+ "required": ["credentials"],
817
+ "additionalProperties": false
848
818
  },
849
819
  "DcqlCredentialQuery": {
850
820
  "type": "object",
@@ -868,14 +838,11 @@
868
838
  }
869
839
  },
870
840
  "meta": {
871
- "type": "object"
841
+ "$ref": "#/components/schemas/Record<string,any>"
872
842
  }
873
843
  },
874
- "required": [
875
- "id",
876
- "format",
877
- "claims"
878
- ]
844
+ "required": ["id", "format", "claims"],
845
+ "additionalProperties": false
879
846
  },
880
847
  "DcqlClaim": {
881
848
  "type": "object",
@@ -890,21 +857,15 @@
890
857
  "$ref": "#/components/schemas/DcqlFilter"
891
858
  }
892
859
  },
893
- "required": [
894
- "namespace",
895
- "claim_name"
896
- ]
860
+ "required": ["namespace", "claim_name"],
861
+ "additionalProperties": false
897
862
  },
898
863
  "DcqlFilter": {
899
864
  "type": "object",
900
865
  "properties": {
901
866
  "type": {
902
867
  "type": "string",
903
- "enum": [
904
- "string",
905
- "number",
906
- "boolean"
907
- ]
868
+ "enum": ["string", "number", "boolean"]
908
869
  },
909
870
  "pattern": {
910
871
  "type": "string"
@@ -916,9 +877,11 @@
916
877
  "type": "number"
917
878
  }
918
879
  },
919
- "required": [
920
- "type"
921
- ]
880
+ "required": ["type"],
881
+ "additionalProperties": false
882
+ },
883
+ "Record<string,any>": {
884
+ "type": "object"
922
885
  },
923
886
  "HasDefinitionItemArgs": {
924
887
  "$ref": "#/components/schemas/GetDefinitionItemArgs"
@@ -936,12 +899,12 @@
936
899
  "$ref": "#/components/schemas/PersistOptions"
937
900
  }
938
901
  },
939
- "required": [
940
- "definitionItem"
941
- ]
902
+ "required": ["definitionItem"],
903
+ "additionalProperties": false
942
904
  },
943
905
  "PersistPresentationDefinitionItem": {
944
906
  "type": "object",
907
+ "additionalProperties": false,
945
908
  "properties": {
946
909
  "id": {
947
910
  "type": "string"
@@ -968,9 +931,7 @@
968
931
  "$ref": "#/components/schemas/DcqlQueryREST"
969
932
  }
970
933
  },
971
- "required": [
972
- "definitionPayload"
973
- ]
934
+ "required": ["definitionPayload"]
974
935
  },
975
936
  "PersistOptions": {
976
937
  "type": "object",
@@ -981,29 +942,16 @@
981
942
  "versionIncrementReleaseType": {
982
943
  "$ref": "#/components/schemas/ReleaseType"
983
944
  }
984
- }
945
+ },
946
+ "additionalProperties": false
985
947
  },
986
948
  "VersionControlMode": {
987
949
  "type": "string",
988
- "enum": [
989
- "AutoIncrement",
990
- "Manual",
991
- "Overwrite",
992
- "OverwriteLatest"
993
- ]
950
+ "enum": ["AutoIncrement", "Manual", "Overwrite", "OverwriteLatest"]
994
951
  },
995
952
  "ReleaseType": {
996
953
  "type": "string",
997
- "enum": [
998
- "major",
999
- "premajor",
1000
- "minor",
1001
- "preminor",
1002
- "patch",
1003
- "prepatch",
1004
- "prerelease",
1005
- "release"
1006
- ]
954
+ "enum": ["major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease", "release"]
1007
955
  }
1008
956
  },
1009
957
  "methods": {
@@ -1076,4 +1024,4 @@
1076
1024
  }
1077
1025
  }
1078
1026
  }
1079
- }
1027
+ }
@@ -1,35 +0,0 @@
1
- import { IAgentPlugin } from '@veramo/core';
2
- import { IPDManager } from '../index';
3
- import { AbstractPDStore } from '@sphereon/ssi-sdk.data-store';
4
- export declare const pdManagerMethods: Array<string>;
5
- /**
6
- * {@inheritDoc IPDManager}
7
- */
8
- export declare class PDManager implements IAgentPlugin {
9
- readonly schema: any;
10
- readonly methods: IPDManager;
11
- private readonly store;
12
- constructor(options: {
13
- store: AbstractPDStore;
14
- });
15
- /** {@inheritDoc IPDManager.pdmHasDefinition} */
16
- private pdmHasDefinition;
17
- /** {@inheritDoc IPDManager.pdmHasDefinitions} */
18
- private pdmHasDefinitions;
19
- /** {@inheritDoc IPDManager.pdmGetDefinition} */
20
- private pdmGetDefinition;
21
- /** {@inheritDoc IPDManager.pdmGetDefinitions} */
22
- private pdmGetDefinitions;
23
- /** {@inheritDoc IPDManager.pdmDeleteDefinition} */
24
- private pdmDeleteDefinition;
25
- /** {@inheritDoc IPDManager.pdmDeleteDefinitions} */
26
- private pdmDeleteDefinitions;
27
- /** {@inheritDoc IPDManager.pdmPersistDefinition} */
28
- private pdmPersistDefinition;
29
- private handleOverwriteMode;
30
- private handleOverwriteLatestMode;
31
- private handleManualMode;
32
- private handleAutoIncrementMode;
33
- private normalizeToSemverVersionFormat;
34
- }
35
- //# sourceMappingURL=PDManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PDManager.d.ts","sourceRoot":"","sources":["../../src/agent/PDManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAOL,UAAU,EAGX,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,eAAe,EAIhB,MAAM,8BAA8B,CAAA;AAKrC,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAQ1C,CAAA;AAED;;GAEG;AACH,qBAAa,SAAU,YAAW,YAAY;IAC5C,QAAQ,CAAC,MAAM,MAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAQ3B;IAED,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAiB;gBAE3B,OAAO,EAAE;QAAE,KAAK,EAAE,eAAe,CAAA;KAAE;IAI/C,gDAAgD;YAClC,gBAAgB;IAK9B,iDAAiD;YACnC,iBAAiB;IAK/B,gDAAgD;YAClC,gBAAgB;IAK9B,iDAAiD;YACnC,iBAAiB;IA4B/B,mDAAmD;YACrC,mBAAmB;IAIjC,oDAAoD;YACtC,oBAAoB;IAIlC,oDAAoD;YACtC,oBAAoB;YAkDpB,mBAAmB;YAmBnB,yBAAyB;YAiBzB,gBAAgB;YAehB,uBAAuB;IA0CrC,OAAO,CAAC,8BAA8B;CAYvC"}