@twin.org/immutable-proof-service 0.0.3-next.6 → 0.0.3-next.8
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/es/entities/immutableProof.js +19 -3
- package/dist/es/entities/immutableProof.js.map +1 -1
- package/dist/es/immutableProofRoutes.js +41 -19
- package/dist/es/immutableProofRoutes.js.map +1 -1
- package/dist/es/immutableProofService.js +73 -73
- package/dist/es/immutableProofService.js.map +1 -1
- package/dist/types/entities/immutableProof.d.ts +11 -2
- package/dist/types/immutableProofService.d.ts +3 -2
- package/docs/changelog.md +30 -0
- package/docs/open-api/spec.json +587 -20
- package/docs/reference/classes/ImmutableProof.md +19 -3
- package/docs/reference/classes/ImmutableProofService.md +2 -2
- package/package.json +3 -3
package/docs/open-api/spec.json
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"schema": {
|
|
64
64
|
"type": "string"
|
|
65
65
|
},
|
|
66
|
-
"description": "e.g. test
|
|
66
|
+
"description": "e.g. test%3A1234567890"
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
},
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"type": "string"
|
|
166
166
|
},
|
|
167
167
|
"style": "simple",
|
|
168
|
-
"example": "
|
|
168
|
+
"example": "immutable-proof:1234567890"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
"name": "accept",
|
|
@@ -189,26 +189,37 @@
|
|
|
189
189
|
"content": {
|
|
190
190
|
"application/json": {
|
|
191
191
|
"schema": {
|
|
192
|
-
"$ref": "
|
|
192
|
+
"$ref": "#/components/schemas/DidVerifiableCredential"
|
|
193
193
|
},
|
|
194
194
|
"examples": {
|
|
195
195
|
"immutableProofGetResponseExample": {
|
|
196
196
|
"value": {
|
|
197
197
|
"@context": [
|
|
198
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
198
199
|
"https://schema.twindev.org/immutable-proof/",
|
|
199
200
|
"https://schema.twindev.org/common/"
|
|
200
201
|
],
|
|
201
|
-
"type":
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
"type": [
|
|
203
|
+
"VerifiableCredential",
|
|
204
|
+
"ImmutableProof"
|
|
205
|
+
],
|
|
206
|
+
"id": "immutable-proof:1234567890",
|
|
207
|
+
"credentialSubject": {
|
|
208
|
+
"id": "ais:1234567890",
|
|
209
|
+
"proofIntegrity": "EAOKyDN0mYQbBh91eMdVeroxQx1H4GfnRbmt6n/2L/Y="
|
|
210
|
+
},
|
|
205
211
|
"proof": {
|
|
206
|
-
"@context": "https://www.w3.org/ns/credentials/v2",
|
|
207
212
|
"type": "DataIntegrityProof",
|
|
208
213
|
"cryptosuite": "eddsa-jcs-2022",
|
|
209
214
|
"created": "2024-08-22T11:56:56.272Z",
|
|
210
215
|
"proofPurpose": "assertionMethod",
|
|
211
|
-
"proofValue": "7DdiPPYtxLjCD3wA1po2rv..."
|
|
216
|
+
"proofValue": "7DdiPPYtxLjCD3wA1po2rv...",
|
|
217
|
+
"verificationMethod": "did:iota:testnet:0xcb07cabaa2f23b7e53d8cdc4228efb351ebb270554d13bc382e4f94ca8d3136b#immutable-proof-assertion",
|
|
218
|
+
"verifiableStorageId": "verifiable-storage:1234567890",
|
|
219
|
+
"immutableReceipt": {
|
|
220
|
+
"id": "immutable-receipt:1234567890",
|
|
221
|
+
"type": "ImmutableReceipt"
|
|
222
|
+
}
|
|
212
223
|
}
|
|
213
224
|
}
|
|
214
225
|
}
|
|
@@ -216,26 +227,37 @@
|
|
|
216
227
|
},
|
|
217
228
|
"application/ld+json": {
|
|
218
229
|
"schema": {
|
|
219
|
-
"$ref": "
|
|
230
|
+
"$ref": "#/components/schemas/DidVerifiableCredential"
|
|
220
231
|
},
|
|
221
232
|
"examples": {
|
|
222
233
|
"immutableProofJsonLdGetResponseExample": {
|
|
223
234
|
"value": {
|
|
224
235
|
"@context": [
|
|
236
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
225
237
|
"https://schema.twindev.org/immutable-proof/",
|
|
226
238
|
"https://schema.twindev.org/common/"
|
|
227
239
|
],
|
|
228
|
-
"type":
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
240
|
+
"type": [
|
|
241
|
+
"VerifiableCredential",
|
|
242
|
+
"ImmutableProof"
|
|
243
|
+
],
|
|
244
|
+
"id": "immutable-proof:1234567890",
|
|
245
|
+
"credentialSubject": {
|
|
246
|
+
"id": "ais:1234567890",
|
|
247
|
+
"proofIntegrity": "EAOKyDN0mYQbBh91eMdVeroxQx1H4GfnRbmt6n/2L/Y="
|
|
248
|
+
},
|
|
232
249
|
"proof": {
|
|
233
|
-
"@context": "https://www.w3.org/ns/credentials/v2",
|
|
234
250
|
"type": "DataIntegrityProof",
|
|
235
251
|
"cryptosuite": "eddsa-jcs-2022",
|
|
236
252
|
"created": "2024-08-22T11:56:56.272Z",
|
|
237
253
|
"proofPurpose": "assertionMethod",
|
|
238
|
-
"proofValue": "7DdiPPYtxLjCD3wA1po2rv..."
|
|
254
|
+
"proofValue": "7DdiPPYtxLjCD3wA1po2rv...",
|
|
255
|
+
"verificationMethod": "did:iota:testnet:0xcb07cabaa2f23b7e53d8cdc4228efb351ebb270554d13bc382e4f94ca8d3136b#immutable-proof-assertion",
|
|
256
|
+
"verifiableStorageId": "verifiable-storage:1234567890",
|
|
257
|
+
"immutableReceipt": {
|
|
258
|
+
"id": "immutable-receipt:1234567890",
|
|
259
|
+
"type": "ImmutableReceipt"
|
|
260
|
+
}
|
|
239
261
|
}
|
|
240
262
|
}
|
|
241
263
|
}
|
|
@@ -349,7 +371,7 @@
|
|
|
349
371
|
"type": "string"
|
|
350
372
|
},
|
|
351
373
|
"style": "simple",
|
|
352
|
-
"example": "
|
|
374
|
+
"example": "immutable-proof:1234567890"
|
|
353
375
|
},
|
|
354
376
|
{
|
|
355
377
|
"name": "accept",
|
|
@@ -387,7 +409,7 @@
|
|
|
387
409
|
"@context": "https://schema.twindev.org/immutable-proof/",
|
|
388
410
|
"type": "ImmutableProofVerification",
|
|
389
411
|
"verified": false,
|
|
390
|
-
"failure": "
|
|
412
|
+
"failure": "verificationFailure"
|
|
391
413
|
}
|
|
392
414
|
}
|
|
393
415
|
}
|
|
@@ -485,7 +507,7 @@
|
|
|
485
507
|
"anyOf": [
|
|
486
508
|
{
|
|
487
509
|
"type": "string",
|
|
488
|
-
"const": "https://
|
|
510
|
+
"const": "https://w3id.org/security/data-integrity/v2"
|
|
489
511
|
},
|
|
490
512
|
{
|
|
491
513
|
"type": "array",
|
|
@@ -493,7 +515,7 @@
|
|
|
493
515
|
"prefixItems": [
|
|
494
516
|
{
|
|
495
517
|
"type": "string",
|
|
496
|
-
"const": "https://
|
|
518
|
+
"const": "https://w3id.org/security/data-integrity/v2"
|
|
497
519
|
}
|
|
498
520
|
],
|
|
499
521
|
"items": {
|
|
@@ -588,6 +610,46 @@
|
|
|
588
610
|
"additionalProperties": false,
|
|
589
611
|
"description": "Interface describing a did proof. https://www.w3.org/TR/vc-data-integrity/"
|
|
590
612
|
},
|
|
613
|
+
"DidCredentialSchema": {
|
|
614
|
+
"type": "object",
|
|
615
|
+
"properties": {
|
|
616
|
+
"id": {
|
|
617
|
+
"type": "string",
|
|
618
|
+
"description": "The URI id."
|
|
619
|
+
},
|
|
620
|
+
"type": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"description": "The credential schema type."
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
"required": [
|
|
626
|
+
"id",
|
|
627
|
+
"type"
|
|
628
|
+
],
|
|
629
|
+
"additionalProperties": false,
|
|
630
|
+
"description": "Interface describing a DID credential schema."
|
|
631
|
+
},
|
|
632
|
+
"DidCredentialStatus": {
|
|
633
|
+
"type": "object",
|
|
634
|
+
"properties": {
|
|
635
|
+
"id": {
|
|
636
|
+
"type": "string",
|
|
637
|
+
"description": "The URI id."
|
|
638
|
+
},
|
|
639
|
+
"type": {
|
|
640
|
+
"type": "string",
|
|
641
|
+
"description": "The credential status type."
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
"required": [
|
|
645
|
+
"id",
|
|
646
|
+
"type"
|
|
647
|
+
],
|
|
648
|
+
"additionalProperties": {
|
|
649
|
+
"description": "Additional properties."
|
|
650
|
+
},
|
|
651
|
+
"description": "Interface describing a DID credential status."
|
|
652
|
+
},
|
|
591
653
|
"DidCryptoSuites": {
|
|
592
654
|
"anyOf": [
|
|
593
655
|
{
|
|
@@ -603,6 +665,446 @@
|
|
|
603
665
|
],
|
|
604
666
|
"description": "The types for DID Proof crypto suites."
|
|
605
667
|
},
|
|
668
|
+
"DidLabel": {
|
|
669
|
+
"type": "object",
|
|
670
|
+
"properties": {
|
|
671
|
+
"@value": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"description": "The value for the label."
|
|
674
|
+
},
|
|
675
|
+
"@language": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"description": "The language for the label."
|
|
678
|
+
},
|
|
679
|
+
"@direction": {
|
|
680
|
+
"type": "string",
|
|
681
|
+
"description": "The direction of the label."
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"required": [
|
|
685
|
+
"@value",
|
|
686
|
+
"@language"
|
|
687
|
+
],
|
|
688
|
+
"additionalProperties": false,
|
|
689
|
+
"description": "Interface describing a DID Label."
|
|
690
|
+
},
|
|
691
|
+
"DidVerifiableCredential": {
|
|
692
|
+
"anyOf": [
|
|
693
|
+
{
|
|
694
|
+
"$ref": "#/components/schemas/DidVerifiableCredentialV1"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"$ref": "#/components/schemas/DidVerifiableCredentialV2"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"description": "Interface describing a verifiable credential."
|
|
701
|
+
},
|
|
702
|
+
"DidVerifiableCredentialV1": {
|
|
703
|
+
"type": "object",
|
|
704
|
+
"properties": {
|
|
705
|
+
"id": {
|
|
706
|
+
"type": "string",
|
|
707
|
+
"description": "The identifier for the verifiable credential."
|
|
708
|
+
},
|
|
709
|
+
"type": {
|
|
710
|
+
"anyOf": [
|
|
711
|
+
{
|
|
712
|
+
"type": "string"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"type": "array",
|
|
716
|
+
"items": {
|
|
717
|
+
"type": "string"
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
"description": "The types of the data stored in the verifiable credential."
|
|
722
|
+
},
|
|
723
|
+
"credentialSubject": {
|
|
724
|
+
"anyOf": [
|
|
725
|
+
{
|
|
726
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"type": "array",
|
|
730
|
+
"items": {
|
|
731
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
"description": "The data for the verifiable credential."
|
|
736
|
+
},
|
|
737
|
+
"credentialStatus": {
|
|
738
|
+
"anyOf": [
|
|
739
|
+
{
|
|
740
|
+
"$ref": "#/components/schemas/DidCredentialStatus"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"type": "array",
|
|
744
|
+
"items": {
|
|
745
|
+
"$ref": "#/components/schemas/DidCredentialStatus"
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
],
|
|
749
|
+
"description": "Used to discover information about the current status of the verifiable credential, such as whether it is suspended or revoked."
|
|
750
|
+
},
|
|
751
|
+
"credentialSchema": {
|
|
752
|
+
"anyOf": [
|
|
753
|
+
{
|
|
754
|
+
"$ref": "#/components/schemas/DidCredentialSchema"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"type": "array",
|
|
758
|
+
"items": {
|
|
759
|
+
"$ref": "#/components/schemas/DidCredentialSchema"
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
"description": "Annotate type definitions or lock them to specific versions of the vocabulary."
|
|
764
|
+
},
|
|
765
|
+
"issuer": {
|
|
766
|
+
"anyOf": [
|
|
767
|
+
{
|
|
768
|
+
"type": "string"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"type": "object",
|
|
772
|
+
"properties": {
|
|
773
|
+
"id": {
|
|
774
|
+
"type": "string"
|
|
775
|
+
},
|
|
776
|
+
"name": {
|
|
777
|
+
"anyOf": [
|
|
778
|
+
{
|
|
779
|
+
"type": "string"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"type": "array",
|
|
783
|
+
"items": {
|
|
784
|
+
"$ref": "#/components/schemas/DidLabel"
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
]
|
|
788
|
+
},
|
|
789
|
+
"description": {
|
|
790
|
+
"anyOf": [
|
|
791
|
+
{
|
|
792
|
+
"type": "string"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"type": "array",
|
|
796
|
+
"items": {
|
|
797
|
+
"$ref": "#/components/schemas/DidLabel"
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
]
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
"required": [
|
|
804
|
+
"id"
|
|
805
|
+
],
|
|
806
|
+
"additionalProperties": false
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
"description": "The issuing identity."
|
|
810
|
+
},
|
|
811
|
+
"name": {
|
|
812
|
+
"anyOf": [
|
|
813
|
+
{
|
|
814
|
+
"type": "string"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"type": "array",
|
|
818
|
+
"items": {
|
|
819
|
+
"$ref": "#/components/schemas/DidLabel"
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
"description": "The name of the credential."
|
|
824
|
+
},
|
|
825
|
+
"description": {
|
|
826
|
+
"anyOf": [
|
|
827
|
+
{
|
|
828
|
+
"type": "string"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"type": "array",
|
|
832
|
+
"items": {
|
|
833
|
+
"$ref": "#/components/schemas/DidLabel"
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
],
|
|
837
|
+
"description": "The description of the credential."
|
|
838
|
+
},
|
|
839
|
+
"evidence": {
|
|
840
|
+
"anyOf": [
|
|
841
|
+
{
|
|
842
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"type": "array",
|
|
846
|
+
"items": {
|
|
847
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
],
|
|
851
|
+
"description": "Evidence associated with the Credential."
|
|
852
|
+
},
|
|
853
|
+
"proof": {
|
|
854
|
+
"anyOf": [
|
|
855
|
+
{
|
|
856
|
+
"$ref": "#/components/schemas/Proof"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"type": "array",
|
|
860
|
+
"items": {
|
|
861
|
+
"$ref": "#/components/schemas/Proof"
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
],
|
|
865
|
+
"description": "Proofs that the verifiable credential is valid. Optional if a different proof method is used, such as JWT."
|
|
866
|
+
},
|
|
867
|
+
"@context": {
|
|
868
|
+
"anyOf": [
|
|
869
|
+
{
|
|
870
|
+
"type": "string",
|
|
871
|
+
"const": "https://www.w3.org/2018/credentials/v1"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"type": "array",
|
|
875
|
+
"minItems": 1,
|
|
876
|
+
"prefixItems": [
|
|
877
|
+
{
|
|
878
|
+
"type": "string",
|
|
879
|
+
"const": "https://www.w3.org/2018/credentials/v1"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"items": {
|
|
883
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
],
|
|
887
|
+
"description": "The context for the verifiable credential."
|
|
888
|
+
},
|
|
889
|
+
"issuanceDate": {
|
|
890
|
+
"type": "string",
|
|
891
|
+
"description": "The date the verifiable credential was issued, depending on version validFrom might be set instead."
|
|
892
|
+
},
|
|
893
|
+
"expirationDate": {
|
|
894
|
+
"type": "string",
|
|
895
|
+
"description": "The date the verifiable credential expires, depending on version validUntil might be set instead."
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
"required": [
|
|
899
|
+
"@context",
|
|
900
|
+
"type"
|
|
901
|
+
],
|
|
902
|
+
"additionalProperties": false,
|
|
903
|
+
"description": "Interface describing a verifiable credential. https://www.w3.org/TR/vc-data-model-1.1"
|
|
904
|
+
},
|
|
905
|
+
"DidVerifiableCredentialV2": {
|
|
906
|
+
"type": "object",
|
|
907
|
+
"properties": {
|
|
908
|
+
"id": {
|
|
909
|
+
"type": "string",
|
|
910
|
+
"description": "The identifier for the verifiable credential."
|
|
911
|
+
},
|
|
912
|
+
"type": {
|
|
913
|
+
"anyOf": [
|
|
914
|
+
{
|
|
915
|
+
"type": "string"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"type": "array",
|
|
919
|
+
"items": {
|
|
920
|
+
"type": "string"
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
"description": "The types of the data stored in the verifiable credential."
|
|
925
|
+
},
|
|
926
|
+
"credentialSubject": {
|
|
927
|
+
"anyOf": [
|
|
928
|
+
{
|
|
929
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"type": "array",
|
|
933
|
+
"items": {
|
|
934
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
],
|
|
938
|
+
"description": "The data for the verifiable credential."
|
|
939
|
+
},
|
|
940
|
+
"credentialStatus": {
|
|
941
|
+
"anyOf": [
|
|
942
|
+
{
|
|
943
|
+
"$ref": "#/components/schemas/DidCredentialStatus"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"type": "array",
|
|
947
|
+
"items": {
|
|
948
|
+
"$ref": "#/components/schemas/DidCredentialStatus"
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
],
|
|
952
|
+
"description": "Used to discover information about the current status of the verifiable credential, such as whether it is suspended or revoked."
|
|
953
|
+
},
|
|
954
|
+
"credentialSchema": {
|
|
955
|
+
"anyOf": [
|
|
956
|
+
{
|
|
957
|
+
"$ref": "#/components/schemas/DidCredentialSchema"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"type": "array",
|
|
961
|
+
"items": {
|
|
962
|
+
"$ref": "#/components/schemas/DidCredentialSchema"
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
"description": "Annotate type definitions or lock them to specific versions of the vocabulary."
|
|
967
|
+
},
|
|
968
|
+
"issuer": {
|
|
969
|
+
"anyOf": [
|
|
970
|
+
{
|
|
971
|
+
"type": "string"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"type": "object",
|
|
975
|
+
"properties": {
|
|
976
|
+
"id": {
|
|
977
|
+
"type": "string"
|
|
978
|
+
},
|
|
979
|
+
"name": {
|
|
980
|
+
"anyOf": [
|
|
981
|
+
{
|
|
982
|
+
"type": "string"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"type": "array",
|
|
986
|
+
"items": {
|
|
987
|
+
"$ref": "#/components/schemas/DidLabel"
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
]
|
|
991
|
+
},
|
|
992
|
+
"description": {
|
|
993
|
+
"anyOf": [
|
|
994
|
+
{
|
|
995
|
+
"type": "string"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"type": "array",
|
|
999
|
+
"items": {
|
|
1000
|
+
"$ref": "#/components/schemas/DidLabel"
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
]
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
"required": [
|
|
1007
|
+
"id"
|
|
1008
|
+
],
|
|
1009
|
+
"additionalProperties": false
|
|
1010
|
+
}
|
|
1011
|
+
],
|
|
1012
|
+
"description": "The issuing identity."
|
|
1013
|
+
},
|
|
1014
|
+
"name": {
|
|
1015
|
+
"anyOf": [
|
|
1016
|
+
{
|
|
1017
|
+
"type": "string"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"type": "array",
|
|
1021
|
+
"items": {
|
|
1022
|
+
"$ref": "#/components/schemas/DidLabel"
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
],
|
|
1026
|
+
"description": "The name of the credential."
|
|
1027
|
+
},
|
|
1028
|
+
"description": {
|
|
1029
|
+
"anyOf": [
|
|
1030
|
+
{
|
|
1031
|
+
"type": "string"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"type": "array",
|
|
1035
|
+
"items": {
|
|
1036
|
+
"$ref": "#/components/schemas/DidLabel"
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
],
|
|
1040
|
+
"description": "The description of the credential."
|
|
1041
|
+
},
|
|
1042
|
+
"evidence": {
|
|
1043
|
+
"anyOf": [
|
|
1044
|
+
{
|
|
1045
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"type": "array",
|
|
1049
|
+
"items": {
|
|
1050
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
],
|
|
1054
|
+
"description": "Evidence associated with the Credential."
|
|
1055
|
+
},
|
|
1056
|
+
"proof": {
|
|
1057
|
+
"anyOf": [
|
|
1058
|
+
{
|
|
1059
|
+
"$ref": "#/components/schemas/Proof"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"type": "array",
|
|
1063
|
+
"items": {
|
|
1064
|
+
"$ref": "#/components/schemas/Proof"
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
],
|
|
1068
|
+
"description": "Proofs that the verifiable credential is valid. Optional if a different proof method is used, such as JWT."
|
|
1069
|
+
},
|
|
1070
|
+
"@context": {
|
|
1071
|
+
"anyOf": [
|
|
1072
|
+
{
|
|
1073
|
+
"type": "string",
|
|
1074
|
+
"const": "https://www.w3.org/ns/credentials/v2"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"type": "array",
|
|
1078
|
+
"minItems": 1,
|
|
1079
|
+
"prefixItems": [
|
|
1080
|
+
{
|
|
1081
|
+
"type": "string",
|
|
1082
|
+
"const": "https://www.w3.org/ns/credentials/v2"
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
"items": {
|
|
1086
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
],
|
|
1090
|
+
"description": "The context for the verifiable credential."
|
|
1091
|
+
},
|
|
1092
|
+
"validFrom": {
|
|
1093
|
+
"type": "string",
|
|
1094
|
+
"description": "The date the verifiable credential is valid from."
|
|
1095
|
+
},
|
|
1096
|
+
"validUntil": {
|
|
1097
|
+
"type": "string",
|
|
1098
|
+
"description": "The date the verifiable credential is valid until."
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"required": [
|
|
1102
|
+
"@context",
|
|
1103
|
+
"type"
|
|
1104
|
+
],
|
|
1105
|
+
"additionalProperties": false,
|
|
1106
|
+
"description": "Interface describing a verifiable credential. https://www.w3.org/TR/vc-data-model-2.0"
|
|
1107
|
+
},
|
|
606
1108
|
"Error": {
|
|
607
1109
|
"type": "object",
|
|
608
1110
|
"properties": {
|
|
@@ -651,6 +1153,60 @@
|
|
|
651
1153
|
"additionalProperties": false,
|
|
652
1154
|
"description": "The parameters from the body."
|
|
653
1155
|
},
|
|
1156
|
+
"JsonWebSignature2020Proof": {
|
|
1157
|
+
"type": "object",
|
|
1158
|
+
"properties": {
|
|
1159
|
+
"@context": {
|
|
1160
|
+
"anyOf": [
|
|
1161
|
+
{
|
|
1162
|
+
"type": "string",
|
|
1163
|
+
"const": "https://w3id.org/security/suites/jws-2020/v1"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"type": "array",
|
|
1167
|
+
"minItems": 1,
|
|
1168
|
+
"prefixItems": [
|
|
1169
|
+
{
|
|
1170
|
+
"type": "string",
|
|
1171
|
+
"const": "https://w3id.org/security/suites/jws-2020/v1"
|
|
1172
|
+
}
|
|
1173
|
+
],
|
|
1174
|
+
"items": {
|
|
1175
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
],
|
|
1179
|
+
"description": "JSON-LD Context."
|
|
1180
|
+
},
|
|
1181
|
+
"type": {
|
|
1182
|
+
"type": "string",
|
|
1183
|
+
"const": "JsonWebSignature2020",
|
|
1184
|
+
"description": "JSON-LD Type."
|
|
1185
|
+
},
|
|
1186
|
+
"proofPurpose": {
|
|
1187
|
+
"type": "string",
|
|
1188
|
+
"description": "The reason the proof was created."
|
|
1189
|
+
},
|
|
1190
|
+
"verificationMethod": {
|
|
1191
|
+
"type": "string",
|
|
1192
|
+
"description": "The verification method of the proof."
|
|
1193
|
+
},
|
|
1194
|
+
"created": {
|
|
1195
|
+
"type": "string",
|
|
1196
|
+
"description": "The iso date of when the proof was created."
|
|
1197
|
+
},
|
|
1198
|
+
"jws": {
|
|
1199
|
+
"type": "string",
|
|
1200
|
+
"description": "The JSON Web Signature."
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
"required": [
|
|
1204
|
+
"type",
|
|
1205
|
+
"proofPurpose"
|
|
1206
|
+
],
|
|
1207
|
+
"additionalProperties": false,
|
|
1208
|
+
"description": "Interface describing a did proof in JSON Web Signature 2020 Format. https://www.w3.org/TR/vc-jws-2020/"
|
|
1209
|
+
},
|
|
654
1210
|
"NotFoundResponse": {
|
|
655
1211
|
"type": "object",
|
|
656
1212
|
"additionalProperties": false,
|
|
@@ -689,6 +1245,17 @@
|
|
|
689
1245
|
"name"
|
|
690
1246
|
],
|
|
691
1247
|
"description": "The body which contains the error."
|
|
1248
|
+
},
|
|
1249
|
+
"Proof": {
|
|
1250
|
+
"anyOf": [
|
|
1251
|
+
{
|
|
1252
|
+
"$ref": "#/components/schemas/DataIntegrityProof"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"$ref": "#/components/schemas/JsonWebSignature2020Proof"
|
|
1256
|
+
}
|
|
1257
|
+
],
|
|
1258
|
+
"description": "Interface describing a proof."
|
|
692
1259
|
}
|
|
693
1260
|
},
|
|
694
1261
|
"securitySchemes": {
|