@twin.org/identity-service 0.0.3-next.2 → 0.0.3-next.21
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/README.md +2 -2
- package/dist/es/identityProfileService.js.map +1 -1
- package/dist/es/identityRoutes.js +277 -8
- package/dist/es/identityRoutes.js.map +1 -1
- package/dist/es/identityService.js +91 -23
- package/dist/es/identityService.js.map +1 -1
- package/dist/types/identityRoutes.d.ts +33 -1
- package/dist/types/identityService.d.ts +31 -6
- package/docs/changelog.md +420 -77
- package/docs/examples.md +196 -1
- package/docs/open-api/spec.json +497 -364
- package/docs/reference/classes/IdentityProfileService.md +8 -8
- package/docs/reference/classes/IdentityResolverService.md +3 -3
- package/docs/reference/classes/IdentityService.md +136 -38
- package/docs/reference/functions/identityAlsoKnownAsCreate.md +31 -0
- package/docs/reference/functions/identityAlsoKnownAsRemove.md +31 -0
- package/docs/reference/functions/identityVerifiableCredentialVerifyDocument.md +31 -0
- package/docs/reference/functions/identityVerifiablePresentationVerifyDocument.md +31 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/interfaces/IIdentityProfileServiceConstructorOptions.md +2 -2
- package/docs/reference/interfaces/IIdentityResolverServiceConfig.md +2 -2
- package/docs/reference/interfaces/IIdentityResolverServiceConstructorOptions.md +4 -4
- package/docs/reference/interfaces/IIdentityServiceConfig.md +2 -2
- package/docs/reference/interfaces/IIdentityServiceConstructorOptions.md +2 -2
- package/locales/en.json +2 -0
- package/package.json +5 -5
package/docs/open-api/spec.json
CHANGED
|
@@ -765,6 +765,213 @@
|
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
},
|
|
768
|
+
"/identity/{identity}/alias": {
|
|
769
|
+
"post": {
|
|
770
|
+
"operationId": "identityAlsoKnownAsCreate",
|
|
771
|
+
"summary": "Add an alias to the alsoKnownAs property on the document",
|
|
772
|
+
"tags": [
|
|
773
|
+
"Identity"
|
|
774
|
+
],
|
|
775
|
+
"parameters": [
|
|
776
|
+
{
|
|
777
|
+
"name": "identity",
|
|
778
|
+
"description": "The identity to create the alias for.",
|
|
779
|
+
"in": "path",
|
|
780
|
+
"required": true,
|
|
781
|
+
"schema": {
|
|
782
|
+
"type": "string"
|
|
783
|
+
},
|
|
784
|
+
"style": "simple",
|
|
785
|
+
"example": "did:iota:tst:0xe3088ba9aa8c28e1d139708a14e8c0fdff11ee8223baac4aa5bcf3321e4bfc6a"
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
"security": [
|
|
789
|
+
{
|
|
790
|
+
"jwtBearerAuthScheme": []
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
"requestBody": {
|
|
794
|
+
"description": "Request to create an alias for an identity.",
|
|
795
|
+
"required": true,
|
|
796
|
+
"content": {
|
|
797
|
+
"application/json": {
|
|
798
|
+
"schema": {
|
|
799
|
+
"$ref": "#/components/schemas/IdentityAlsoKnownAsCreateRequest"
|
|
800
|
+
},
|
|
801
|
+
"examples": {
|
|
802
|
+
"identityAlsoKnownAsCreateRequestExample": {
|
|
803
|
+
"value": {
|
|
804
|
+
"alias": "did:example:123"
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
"responses": {
|
|
812
|
+
"204": {
|
|
813
|
+
"description": "The rest request ended in success with no data."
|
|
814
|
+
},
|
|
815
|
+
"400": {
|
|
816
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
817
|
+
"content": {
|
|
818
|
+
"application/json": {
|
|
819
|
+
"schema": {
|
|
820
|
+
"$ref": "#/components/schemas/Error"
|
|
821
|
+
},
|
|
822
|
+
"examples": {
|
|
823
|
+
"exampleResponse": {
|
|
824
|
+
"value": {
|
|
825
|
+
"name": "GeneralError",
|
|
826
|
+
"message": "errorMessage",
|
|
827
|
+
"properties": {
|
|
828
|
+
"foo": "bar"
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"401": {
|
|
837
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
838
|
+
"content": {
|
|
839
|
+
"application/json": {
|
|
840
|
+
"schema": {
|
|
841
|
+
"$ref": "#/components/schemas/Error"
|
|
842
|
+
},
|
|
843
|
+
"examples": {
|
|
844
|
+
"exampleResponse": {
|
|
845
|
+
"value": {
|
|
846
|
+
"name": "UnauthorizedError",
|
|
847
|
+
"message": "errorMessage"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
"500": {
|
|
855
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
856
|
+
"content": {
|
|
857
|
+
"application/json": {
|
|
858
|
+
"schema": {
|
|
859
|
+
"$ref": "#/components/schemas/Error"
|
|
860
|
+
},
|
|
861
|
+
"examples": {
|
|
862
|
+
"exampleResponse": {
|
|
863
|
+
"value": {
|
|
864
|
+
"name": "InternalServerError",
|
|
865
|
+
"message": "errorMessage"
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
"/identity/{identity}/alias/{alias}": {
|
|
876
|
+
"delete": {
|
|
877
|
+
"operationId": "identityAlsoKnownAsRemove",
|
|
878
|
+
"summary": "Remove an alias from the alsoKnownAs property on the document",
|
|
879
|
+
"tags": [
|
|
880
|
+
"Identity"
|
|
881
|
+
],
|
|
882
|
+
"parameters": [
|
|
883
|
+
{
|
|
884
|
+
"name": "identity",
|
|
885
|
+
"description": "The identity to remove the alias from.",
|
|
886
|
+
"in": "path",
|
|
887
|
+
"required": true,
|
|
888
|
+
"schema": {
|
|
889
|
+
"type": "string"
|
|
890
|
+
},
|
|
891
|
+
"style": "simple",
|
|
892
|
+
"example": "did:iota:tst:0xe3088ba9aa8c28e1d139708a14e8c0fdff11ee8223baac4aa5bcf3321e4bfc6a"
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"name": "alias",
|
|
896
|
+
"description": "The alias to remove.",
|
|
897
|
+
"in": "path",
|
|
898
|
+
"required": true,
|
|
899
|
+
"schema": {
|
|
900
|
+
"type": "string"
|
|
901
|
+
},
|
|
902
|
+
"style": "simple",
|
|
903
|
+
"example": "did:example:123"
|
|
904
|
+
}
|
|
905
|
+
],
|
|
906
|
+
"security": [
|
|
907
|
+
{
|
|
908
|
+
"jwtBearerAuthScheme": []
|
|
909
|
+
}
|
|
910
|
+
],
|
|
911
|
+
"responses": {
|
|
912
|
+
"204": {
|
|
913
|
+
"description": "The rest request ended in success with no data."
|
|
914
|
+
},
|
|
915
|
+
"400": {
|
|
916
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
917
|
+
"content": {
|
|
918
|
+
"application/json": {
|
|
919
|
+
"schema": {
|
|
920
|
+
"$ref": "#/components/schemas/Error"
|
|
921
|
+
},
|
|
922
|
+
"examples": {
|
|
923
|
+
"exampleResponse": {
|
|
924
|
+
"value": {
|
|
925
|
+
"name": "GeneralError",
|
|
926
|
+
"message": "errorMessage",
|
|
927
|
+
"properties": {
|
|
928
|
+
"foo": "bar"
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
"401": {
|
|
937
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
938
|
+
"content": {
|
|
939
|
+
"application/json": {
|
|
940
|
+
"schema": {
|
|
941
|
+
"$ref": "#/components/schemas/Error"
|
|
942
|
+
},
|
|
943
|
+
"examples": {
|
|
944
|
+
"exampleResponse": {
|
|
945
|
+
"value": {
|
|
946
|
+
"name": "UnauthorizedError",
|
|
947
|
+
"message": "errorMessage"
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
"500": {
|
|
955
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
956
|
+
"content": {
|
|
957
|
+
"application/json": {
|
|
958
|
+
"schema": {
|
|
959
|
+
"$ref": "#/components/schemas/Error"
|
|
960
|
+
},
|
|
961
|
+
"examples": {
|
|
962
|
+
"exampleResponse": {
|
|
963
|
+
"value": {
|
|
964
|
+
"name": "InternalServerError",
|
|
965
|
+
"message": "errorMessage"
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
},
|
|
768
975
|
"/identity/{identity}/verifiable-credential/{verificationMethodId}": {
|
|
769
976
|
"post": {
|
|
770
977
|
"operationId": "identityVerifiableCredentialCreate",
|
|
@@ -926,6 +1133,132 @@
|
|
|
926
1133
|
}
|
|
927
1134
|
}
|
|
928
1135
|
},
|
|
1136
|
+
"/identity/verifiable-credential/verify/document": {
|
|
1137
|
+
"post": {
|
|
1138
|
+
"operationId": "identityVerifiableCredentialVerifyDocument",
|
|
1139
|
+
"summary": "Verify an identity verifiable credential document",
|
|
1140
|
+
"tags": [
|
|
1141
|
+
"Identity"
|
|
1142
|
+
],
|
|
1143
|
+
"requestBody": {
|
|
1144
|
+
"description": "Request to verify a verifiable credential.",
|
|
1145
|
+
"required": true,
|
|
1146
|
+
"content": {
|
|
1147
|
+
"application/json": {
|
|
1148
|
+
"schema": {
|
|
1149
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiableCredential"
|
|
1150
|
+
},
|
|
1151
|
+
"examples": {
|
|
1152
|
+
"identityVerifiableCredentialVerifyDocumentRequestExample": {
|
|
1153
|
+
"value": {
|
|
1154
|
+
"@context": [
|
|
1155
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
1156
|
+
"https://schema.org"
|
|
1157
|
+
],
|
|
1158
|
+
"id": "https://example.com/credentials/3732",
|
|
1159
|
+
"type": [
|
|
1160
|
+
"VerifiableCredential",
|
|
1161
|
+
"Person"
|
|
1162
|
+
],
|
|
1163
|
+
"credentialSubject": {
|
|
1164
|
+
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
1165
|
+
"name": "Jane Doe"
|
|
1166
|
+
},
|
|
1167
|
+
"issuer": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a",
|
|
1168
|
+
"issuanceDate": "2025-01-24T09:21:51.500Z",
|
|
1169
|
+
"credentialStatus": {
|
|
1170
|
+
"id": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a#revocation",
|
|
1171
|
+
"type": "BitstringStatusList",
|
|
1172
|
+
"revocationBitmapIndex": "5"
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
"responses": {
|
|
1181
|
+
"200": {
|
|
1182
|
+
"description": "Response to verifying a verifiable credential.",
|
|
1183
|
+
"content": {
|
|
1184
|
+
"application/json": {
|
|
1185
|
+
"schema": {
|
|
1186
|
+
"$ref": "#/components/schemas/IdentityVerifiableCredentialVerifyResponse"
|
|
1187
|
+
},
|
|
1188
|
+
"examples": {
|
|
1189
|
+
"identityVerifiableCredentialVerifyResponseExample": {
|
|
1190
|
+
"value": {
|
|
1191
|
+
"revoked": false,
|
|
1192
|
+
"verifiableCredential": {
|
|
1193
|
+
"@context": [
|
|
1194
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
1195
|
+
"https://schema.org"
|
|
1196
|
+
],
|
|
1197
|
+
"id": "https://example.com/credentials/3732",
|
|
1198
|
+
"type": [
|
|
1199
|
+
"VerifiableCredential",
|
|
1200
|
+
"Person"
|
|
1201
|
+
],
|
|
1202
|
+
"credentialSubject": {
|
|
1203
|
+
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
1204
|
+
"name": "Jane Doe"
|
|
1205
|
+
},
|
|
1206
|
+
"issuer": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a",
|
|
1207
|
+
"issuanceDate": "2025-01-24T09:21:51.500Z",
|
|
1208
|
+
"credentialStatus": {
|
|
1209
|
+
"id": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a#revocation",
|
|
1210
|
+
"type": "BitstringStatusList",
|
|
1211
|
+
"revocationBitmapIndex": "5"
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
"400": {
|
|
1221
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
1222
|
+
"content": {
|
|
1223
|
+
"application/json": {
|
|
1224
|
+
"schema": {
|
|
1225
|
+
"$ref": "#/components/schemas/Error"
|
|
1226
|
+
},
|
|
1227
|
+
"examples": {
|
|
1228
|
+
"exampleResponse": {
|
|
1229
|
+
"value": {
|
|
1230
|
+
"name": "GeneralError",
|
|
1231
|
+
"message": "errorMessage",
|
|
1232
|
+
"properties": {
|
|
1233
|
+
"foo": "bar"
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
"500": {
|
|
1242
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
1243
|
+
"content": {
|
|
1244
|
+
"application/json": {
|
|
1245
|
+
"schema": {
|
|
1246
|
+
"$ref": "#/components/schemas/Error"
|
|
1247
|
+
},
|
|
1248
|
+
"examples": {
|
|
1249
|
+
"exampleResponse": {
|
|
1250
|
+
"value": {
|
|
1251
|
+
"name": "InternalServerError",
|
|
1252
|
+
"message": "errorMessage"
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
929
1262
|
"/identity/verifiable-credential/verify": {
|
|
930
1263
|
"get": {
|
|
931
1264
|
"operationId": "identityVerifiableCredentialVerify",
|
|
@@ -1052,10 +1385,10 @@
|
|
|
1052
1385
|
"in": "path",
|
|
1053
1386
|
"required": true,
|
|
1054
1387
|
"schema": {
|
|
1055
|
-
"type": "
|
|
1388
|
+
"type": "string"
|
|
1056
1389
|
},
|
|
1057
1390
|
"style": "simple",
|
|
1058
|
-
"example": 5
|
|
1391
|
+
"example": "5"
|
|
1059
1392
|
}
|
|
1060
1393
|
],
|
|
1061
1394
|
"security": [
|
|
@@ -1152,10 +1485,10 @@
|
|
|
1152
1485
|
"in": "path",
|
|
1153
1486
|
"required": true,
|
|
1154
1487
|
"schema": {
|
|
1155
|
-
"type": "
|
|
1488
|
+
"type": "string"
|
|
1156
1489
|
},
|
|
1157
1490
|
"style": "simple",
|
|
1158
|
-
"example": 5
|
|
1491
|
+
"example": "5"
|
|
1159
1492
|
}
|
|
1160
1493
|
],
|
|
1161
1494
|
"security": [
|
|
@@ -1338,8 +1671,137 @@
|
|
|
1338
1671
|
}
|
|
1339
1672
|
}
|
|
1340
1673
|
},
|
|
1341
|
-
"401": {
|
|
1342
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
1674
|
+
"401": {
|
|
1675
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
1676
|
+
"content": {
|
|
1677
|
+
"application/json": {
|
|
1678
|
+
"schema": {
|
|
1679
|
+
"$ref": "#/components/schemas/Error"
|
|
1680
|
+
},
|
|
1681
|
+
"examples": {
|
|
1682
|
+
"exampleResponse": {
|
|
1683
|
+
"value": {
|
|
1684
|
+
"name": "UnauthorizedError",
|
|
1685
|
+
"message": "errorMessage"
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
},
|
|
1692
|
+
"500": {
|
|
1693
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
1694
|
+
"content": {
|
|
1695
|
+
"application/json": {
|
|
1696
|
+
"schema": {
|
|
1697
|
+
"$ref": "#/components/schemas/Error"
|
|
1698
|
+
},
|
|
1699
|
+
"examples": {
|
|
1700
|
+
"exampleResponse": {
|
|
1701
|
+
"value": {
|
|
1702
|
+
"name": "InternalServerError",
|
|
1703
|
+
"message": "errorMessage"
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
"/identity/verifiable-presentation/verify/document": {
|
|
1714
|
+
"post": {
|
|
1715
|
+
"operationId": "identityVerifiablePresentationVerifyDocument",
|
|
1716
|
+
"summary": "Verify an identity verifiable presentation document",
|
|
1717
|
+
"tags": [
|
|
1718
|
+
"Identity"
|
|
1719
|
+
],
|
|
1720
|
+
"requestBody": {
|
|
1721
|
+
"description": "Request to verify a verifiable presentation.",
|
|
1722
|
+
"required": true,
|
|
1723
|
+
"content": {
|
|
1724
|
+
"application/json": {
|
|
1725
|
+
"schema": {
|
|
1726
|
+
"$ref": "https://schema.twindev.org/w3c-did/DidVerifiablePresentation"
|
|
1727
|
+
},
|
|
1728
|
+
"examples": {
|
|
1729
|
+
"identityVerifiablePresentationVerifyDocumentRequestExample": {
|
|
1730
|
+
"value": {
|
|
1731
|
+
"@context": [
|
|
1732
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
1733
|
+
"https://schema.org"
|
|
1734
|
+
],
|
|
1735
|
+
"id": "https://example.com/credentials/3732",
|
|
1736
|
+
"type": [
|
|
1737
|
+
"VerifiableCredential",
|
|
1738
|
+
"Person"
|
|
1739
|
+
],
|
|
1740
|
+
"verifiableCredential": [
|
|
1741
|
+
{
|
|
1742
|
+
"@context": [
|
|
1743
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
1744
|
+
"https://schema.org"
|
|
1745
|
+
],
|
|
1746
|
+
"id": "https://example.com/credentials/3732",
|
|
1747
|
+
"type": [
|
|
1748
|
+
"VerifiableCredential",
|
|
1749
|
+
"Person"
|
|
1750
|
+
],
|
|
1751
|
+
"credentialSubject": {
|
|
1752
|
+
"id": "did:entity-storage:0x4757993355b921a8229bd780f30921b6a0216a72e6c3f37a09d13b8426a17def",
|
|
1753
|
+
"name": "Jane Doe"
|
|
1754
|
+
},
|
|
1755
|
+
"issuer": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a",
|
|
1756
|
+
"issuanceDate": "2025-01-24T09:21:51.500Z",
|
|
1757
|
+
"credentialStatus": {
|
|
1758
|
+
"id": "did:entity-storage:0x879c31386f992cfa29b77fe31e37256d69f6a57653cee4eb60ad4c4613c5515a#revocation",
|
|
1759
|
+
"type": "BitstringStatusList",
|
|
1760
|
+
"revocationBitmapIndex": "5"
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
]
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
},
|
|
1770
|
+
"responses": {
|
|
1771
|
+
"200": {
|
|
1772
|
+
"description": "Response to verifying a verifiable presentation.",
|
|
1773
|
+
"content": {
|
|
1774
|
+
"application/json": {
|
|
1775
|
+
"schema": {
|
|
1776
|
+
"$ref": "#/components/schemas/IdentityVerifiablePresentationVerifyResponse"
|
|
1777
|
+
},
|
|
1778
|
+
"examples": {
|
|
1779
|
+
"identityVerifiablePresentationVerifyResponseExample": {
|
|
1780
|
+
"value": {
|
|
1781
|
+
"revoked": false,
|
|
1782
|
+
"verifiablePresentation": {
|
|
1783
|
+
"@context": [
|
|
1784
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
1785
|
+
"https://schema.org"
|
|
1786
|
+
],
|
|
1787
|
+
"id": "presentationId",
|
|
1788
|
+
"type": [
|
|
1789
|
+
"VerifiablePresentation",
|
|
1790
|
+
"Person"
|
|
1791
|
+
],
|
|
1792
|
+
"verifiableCredential": [
|
|
1793
|
+
"eyJraWQiOi...D1Z3AQ"
|
|
1794
|
+
],
|
|
1795
|
+
"holder": "did:entity-storage:0xcea318e06e89f3fb4048160770effd84d0cfa5801fee13dfa6f9413a00429cec"
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
},
|
|
1803
|
+
"400": {
|
|
1804
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
1343
1805
|
"content": {
|
|
1344
1806
|
"application/json": {
|
|
1345
1807
|
"schema": {
|
|
@@ -1348,8 +1810,11 @@
|
|
|
1348
1810
|
"examples": {
|
|
1349
1811
|
"exampleResponse": {
|
|
1350
1812
|
"value": {
|
|
1351
|
-
"name": "
|
|
1352
|
-
"message": "errorMessage"
|
|
1813
|
+
"name": "GeneralError",
|
|
1814
|
+
"message": "errorMessage",
|
|
1815
|
+
"properties": {
|
|
1816
|
+
"foo": "bar"
|
|
1817
|
+
}
|
|
1353
1818
|
}
|
|
1354
1819
|
}
|
|
1355
1820
|
}
|
|
@@ -1556,7 +2021,7 @@
|
|
|
1556
2021
|
"identityProofCreateResponseExample": {
|
|
1557
2022
|
"value": {
|
|
1558
2023
|
"@context": [
|
|
1559
|
-
"https://
|
|
2024
|
+
"https://w3id.org/security/data-integrity/v2",
|
|
1560
2025
|
"https://www.w3.org/ns/credentials/examples/v2"
|
|
1561
2026
|
],
|
|
1562
2027
|
"type": "DataIntegrityProof",
|
|
@@ -1669,7 +2134,7 @@
|
|
|
1669
2134
|
}
|
|
1670
2135
|
},
|
|
1671
2136
|
"proof": {
|
|
1672
|
-
"@context": "https://
|
|
2137
|
+
"@context": "https://w3id.org/security/data-integrity/v2",
|
|
1673
2138
|
"type": "DataIntegrityProof",
|
|
1674
2139
|
"cryptosuite": "eddsa-jcs-2022",
|
|
1675
2140
|
"created": "2025-01-24T11:32:13.106Z",
|
|
@@ -1832,7 +2297,7 @@
|
|
|
1832
2297
|
"content": {
|
|
1833
2298
|
"application/json": {
|
|
1834
2299
|
"schema": {
|
|
1835
|
-
"$ref": "#/components/schemas/
|
|
2300
|
+
"$ref": "#/components/schemas/Error"
|
|
1836
2301
|
},
|
|
1837
2302
|
"examples": {
|
|
1838
2303
|
"exampleResponse": {
|
|
@@ -2262,7 +2727,7 @@
|
|
|
2262
2727
|
"content": {
|
|
2263
2728
|
"application/ld+json": {
|
|
2264
2729
|
"schema": {
|
|
2265
|
-
"$ref": "
|
|
2730
|
+
"$ref": "#/components/schemas/IdentityProfileGetPublicResponse"
|
|
2266
2731
|
},
|
|
2267
2732
|
"examples": {
|
|
2268
2733
|
"identityGetPublicResponseExample": {
|
|
@@ -2490,24 +2955,17 @@
|
|
|
2490
2955
|
},
|
|
2491
2956
|
"components": {
|
|
2492
2957
|
"schemas": {
|
|
2493
|
-
"
|
|
2958
|
+
"Error": {
|
|
2959
|
+
"description": "Model to describe serialized error.",
|
|
2494
2960
|
"type": "object",
|
|
2495
|
-
"additionalProperties": false,
|
|
2496
2961
|
"properties": {
|
|
2497
|
-
"conflicts": {
|
|
2498
|
-
"type": "array",
|
|
2499
|
-
"items": {
|
|
2500
|
-
"type": "string"
|
|
2501
|
-
},
|
|
2502
|
-
"description": "The conflicting items."
|
|
2503
|
-
},
|
|
2504
2962
|
"name": {
|
|
2505
2963
|
"type": "string",
|
|
2506
2964
|
"description": "The name for the error."
|
|
2507
2965
|
},
|
|
2508
2966
|
"message": {
|
|
2509
2967
|
"type": "string",
|
|
2510
|
-
"description": "The message for the error."
|
|
2968
|
+
"description": "The message for the error as an i18n key."
|
|
2511
2969
|
},
|
|
2512
2970
|
"source": {
|
|
2513
2971
|
"type": "string",
|
|
@@ -2527,46 +2985,22 @@
|
|
|
2527
2985
|
}
|
|
2528
2986
|
},
|
|
2529
2987
|
"required": [
|
|
2530
|
-
"
|
|
2531
|
-
"message"
|
|
2532
|
-
|
|
2533
|
-
],
|
|
2534
|
-
"description": "The body which contains the error."
|
|
2988
|
+
"name",
|
|
2989
|
+
"message"
|
|
2990
|
+
]
|
|
2535
2991
|
},
|
|
2536
|
-
"
|
|
2992
|
+
"IdentityAlsoKnownAsCreateRequest": {
|
|
2537
2993
|
"type": "object",
|
|
2538
2994
|
"properties": {
|
|
2539
|
-
"
|
|
2540
|
-
"type": "string",
|
|
2541
|
-
"description": "The name for the error."
|
|
2542
|
-
},
|
|
2543
|
-
"message": {
|
|
2544
|
-
"type": "string",
|
|
2545
|
-
"description": "The message for the error."
|
|
2546
|
-
},
|
|
2547
|
-
"source": {
|
|
2548
|
-
"type": "string",
|
|
2549
|
-
"description": "The source of the error."
|
|
2550
|
-
},
|
|
2551
|
-
"properties": {
|
|
2552
|
-
"type": "object",
|
|
2553
|
-
"additionalProperties": {},
|
|
2554
|
-
"description": "Any additional information for the error."
|
|
2555
|
-
},
|
|
2556
|
-
"stack": {
|
|
2995
|
+
"alias": {
|
|
2557
2996
|
"type": "string",
|
|
2558
|
-
"description": "The
|
|
2559
|
-
},
|
|
2560
|
-
"cause": {
|
|
2561
|
-
"$ref": "#/components/schemas/Error"
|
|
2997
|
+
"description": "The alias to create for the identity."
|
|
2562
2998
|
}
|
|
2563
2999
|
},
|
|
2564
3000
|
"required": [
|
|
2565
|
-
"
|
|
2566
|
-
"message"
|
|
3001
|
+
"alias"
|
|
2567
3002
|
],
|
|
2568
|
-
"
|
|
2569
|
-
"description": "Model to describe serialized error."
|
|
3003
|
+
"description": "The data for the request."
|
|
2570
3004
|
},
|
|
2571
3005
|
"IdentityCreateRequest": {
|
|
2572
3006
|
"type": "object",
|
|
@@ -2576,7 +3010,6 @@
|
|
|
2576
3010
|
"description": "The optional namespace to create the identity in."
|
|
2577
3011
|
}
|
|
2578
3012
|
},
|
|
2579
|
-
"additionalProperties": false,
|
|
2580
3013
|
"description": "The data for the request."
|
|
2581
3014
|
},
|
|
2582
3015
|
"IdentityProfileCreateRequest": {
|
|
@@ -2589,27 +3022,20 @@
|
|
|
2589
3022
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdDocument"
|
|
2590
3023
|
}
|
|
2591
3024
|
},
|
|
2592
|
-
"additionalProperties": false,
|
|
2593
3025
|
"description": "The data for the request."
|
|
2594
3026
|
},
|
|
3027
|
+
"IdentityProfileGetPublicResponse": {},
|
|
2595
3028
|
"IdentityProfileGetResponse": {
|
|
2596
3029
|
"type": "object",
|
|
2597
3030
|
"properties": {
|
|
2598
3031
|
"identity": {
|
|
2599
3032
|
"type": "string",
|
|
2600
3033
|
"description": "The identity of the profile, this is the authenticated user identity."
|
|
2601
|
-
},
|
|
2602
|
-
"publicProfile": {
|
|
2603
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdDocument"
|
|
2604
|
-
},
|
|
2605
|
-
"privateProfile": {
|
|
2606
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdDocument"
|
|
2607
3034
|
}
|
|
2608
3035
|
},
|
|
2609
3036
|
"required": [
|
|
2610
3037
|
"identity"
|
|
2611
3038
|
],
|
|
2612
|
-
"additionalProperties": false,
|
|
2613
3039
|
"description": "The response payload."
|
|
2614
3040
|
},
|
|
2615
3041
|
"IdentityProfileListResponse": {
|
|
@@ -2623,15 +3049,11 @@
|
|
|
2623
3049
|
"identity": {
|
|
2624
3050
|
"type": "string",
|
|
2625
3051
|
"description": "The identity."
|
|
2626
|
-
},
|
|
2627
|
-
"publicProfile": {
|
|
2628
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdDocument"
|
|
2629
3052
|
}
|
|
2630
3053
|
},
|
|
2631
3054
|
"required": [
|
|
2632
3055
|
"identity"
|
|
2633
|
-
]
|
|
2634
|
-
"additionalProperties": false
|
|
3056
|
+
]
|
|
2635
3057
|
},
|
|
2636
3058
|
"description": "The identities."
|
|
2637
3059
|
},
|
|
@@ -2643,7 +3065,6 @@
|
|
|
2643
3065
|
"required": [
|
|
2644
3066
|
"items"
|
|
2645
3067
|
],
|
|
2646
|
-
"additionalProperties": false,
|
|
2647
3068
|
"description": "The response payload."
|
|
2648
3069
|
},
|
|
2649
3070
|
"IdentityProfileUpdateRequest": {
|
|
@@ -2656,7 +3077,6 @@
|
|
|
2656
3077
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdDocument"
|
|
2657
3078
|
}
|
|
2658
3079
|
},
|
|
2659
|
-
"additionalProperties": false,
|
|
2660
3080
|
"description": "The data for the request."
|
|
2661
3081
|
},
|
|
2662
3082
|
"IdentityProofCreateRequest": {
|
|
@@ -2673,7 +3093,6 @@
|
|
|
2673
3093
|
"proofType",
|
|
2674
3094
|
"document"
|
|
2675
3095
|
],
|
|
2676
|
-
"additionalProperties": false,
|
|
2677
3096
|
"description": "The data for the request."
|
|
2678
3097
|
},
|
|
2679
3098
|
"IdentityProofVerifyRequest": {
|
|
@@ -2690,7 +3109,6 @@
|
|
|
2690
3109
|
"document",
|
|
2691
3110
|
"proof"
|
|
2692
3111
|
],
|
|
2693
|
-
"additionalProperties": false,
|
|
2694
3112
|
"description": "The data for the request."
|
|
2695
3113
|
},
|
|
2696
3114
|
"IdentityProofVerifyResponse": {
|
|
@@ -2703,7 +3121,6 @@
|
|
|
2703
3121
|
"required": [
|
|
2704
3122
|
"verified"
|
|
2705
3123
|
],
|
|
2706
|
-
"additionalProperties": false,
|
|
2707
3124
|
"description": "The response payload."
|
|
2708
3125
|
},
|
|
2709
3126
|
"IdentityServiceCreateRequest": {
|
|
@@ -2747,7 +3164,6 @@
|
|
|
2747
3164
|
"type",
|
|
2748
3165
|
"endpoint"
|
|
2749
3166
|
],
|
|
2750
|
-
"additionalProperties": false,
|
|
2751
3167
|
"description": "The data for the request."
|
|
2752
3168
|
},
|
|
2753
3169
|
"IdentityVerifiableCredentialCreateRequest": {
|
|
@@ -2772,7 +3188,6 @@
|
|
|
2772
3188
|
"required": [
|
|
2773
3189
|
"subject"
|
|
2774
3190
|
],
|
|
2775
|
-
"additionalProperties": false,
|
|
2776
3191
|
"description": "The data for the request."
|
|
2777
3192
|
},
|
|
2778
3193
|
"IdentityVerifiableCredentialCreateResponse": {
|
|
@@ -2790,7 +3205,6 @@
|
|
|
2790
3205
|
"verifiableCredential",
|
|
2791
3206
|
"jwt"
|
|
2792
3207
|
],
|
|
2793
|
-
"additionalProperties": false,
|
|
2794
3208
|
"description": "The response payload."
|
|
2795
3209
|
},
|
|
2796
3210
|
"IdentityVerifiableCredentialVerifyResponse": {
|
|
@@ -2807,7 +3221,6 @@
|
|
|
2807
3221
|
"required": [
|
|
2808
3222
|
"revoked"
|
|
2809
3223
|
],
|
|
2810
|
-
"additionalProperties": false,
|
|
2811
3224
|
"description": "The response payload."
|
|
2812
3225
|
},
|
|
2813
3226
|
"IdentityVerifiablePresentationCreateRequest": {
|
|
@@ -2848,15 +3261,14 @@
|
|
|
2848
3261
|
},
|
|
2849
3262
|
"description": "The verifiable credentials to include in the presentation."
|
|
2850
3263
|
},
|
|
2851
|
-
"
|
|
2852
|
-
"type": "
|
|
2853
|
-
"description": "The expiration time for the presentation."
|
|
3264
|
+
"expirationDate": {
|
|
3265
|
+
"type": "string",
|
|
3266
|
+
"description": "The expiration date/time for the presentation."
|
|
2854
3267
|
}
|
|
2855
3268
|
},
|
|
2856
3269
|
"required": [
|
|
2857
3270
|
"verifiableCredentials"
|
|
2858
3271
|
],
|
|
2859
|
-
"additionalProperties": false,
|
|
2860
3272
|
"description": "The data for the request."
|
|
2861
3273
|
},
|
|
2862
3274
|
"IdentityVerifiablePresentationCreateResponse": {
|
|
@@ -2874,7 +3286,6 @@
|
|
|
2874
3286
|
"verifiablePresentation",
|
|
2875
3287
|
"jwt"
|
|
2876
3288
|
],
|
|
2877
|
-
"additionalProperties": false,
|
|
2878
3289
|
"description": "The response payload."
|
|
2879
3290
|
},
|
|
2880
3291
|
"IdentityVerifiablePresentationVerifyResponse": {
|
|
@@ -2898,7 +3309,6 @@
|
|
|
2898
3309
|
"required": [
|
|
2899
3310
|
"revoked"
|
|
2900
3311
|
],
|
|
2901
|
-
"additionalProperties": false,
|
|
2902
3312
|
"description": "The response payload."
|
|
2903
3313
|
},
|
|
2904
3314
|
"IdentityVerificationMethodCreateRequest": {
|
|
@@ -2915,297 +3325,20 @@
|
|
|
2915
3325
|
"required": [
|
|
2916
3326
|
"verificationMethodType"
|
|
2917
3327
|
],
|
|
2918
|
-
"additionalProperties": false,
|
|
2919
3328
|
"description": "The data for the request."
|
|
2920
3329
|
},
|
|
2921
|
-
"JsonLdDocument": {
|
|
2922
|
-
"type": "object",
|
|
2923
|
-
"properties": {
|
|
2924
|
-
"@context": {
|
|
2925
|
-
"anyOf": [
|
|
2926
|
-
{
|
|
2927
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2928
|
-
},
|
|
2929
|
-
{
|
|
2930
|
-
"type": "array",
|
|
2931
|
-
"items": {
|
|
2932
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2933
|
-
}
|
|
2934
|
-
},
|
|
2935
|
-
{
|
|
2936
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2937
|
-
},
|
|
2938
|
-
{
|
|
2939
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2940
|
-
},
|
|
2941
|
-
{
|
|
2942
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2943
|
-
},
|
|
2944
|
-
{
|
|
2945
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2946
|
-
},
|
|
2947
|
-
{
|
|
2948
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2949
|
-
},
|
|
2950
|
-
{
|
|
2951
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
2952
|
-
}
|
|
2953
|
-
]
|
|
2954
|
-
},
|
|
2955
|
-
"@id": {
|
|
2956
|
-
"anyOf": [
|
|
2957
|
-
{
|
|
2958
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2959
|
-
},
|
|
2960
|
-
{
|
|
2961
|
-
"type": "array",
|
|
2962
|
-
"items": {
|
|
2963
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2964
|
-
}
|
|
2965
|
-
},
|
|
2966
|
-
{
|
|
2967
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2968
|
-
},
|
|
2969
|
-
{
|
|
2970
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2971
|
-
},
|
|
2972
|
-
{
|
|
2973
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2974
|
-
},
|
|
2975
|
-
{
|
|
2976
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2977
|
-
},
|
|
2978
|
-
{
|
|
2979
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2980
|
-
}
|
|
2981
|
-
]
|
|
2982
|
-
},
|
|
2983
|
-
"@included": {
|
|
2984
|
-
"anyOf": [
|
|
2985
|
-
{
|
|
2986
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2987
|
-
},
|
|
2988
|
-
{
|
|
2989
|
-
"type": "array",
|
|
2990
|
-
"items": {
|
|
2991
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2992
|
-
}
|
|
2993
|
-
},
|
|
2994
|
-
{
|
|
2995
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2996
|
-
},
|
|
2997
|
-
{
|
|
2998
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2999
|
-
},
|
|
3000
|
-
{
|
|
3001
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
3002
|
-
},
|
|
3003
|
-
{
|
|
3004
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
3005
|
-
},
|
|
3006
|
-
{
|
|
3007
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
3008
|
-
}
|
|
3009
|
-
]
|
|
3010
|
-
},
|
|
3011
|
-
"@graph": {
|
|
3012
|
-
"anyOf": [
|
|
3013
|
-
{
|
|
3014
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3015
|
-
},
|
|
3016
|
-
{
|
|
3017
|
-
"type": "array",
|
|
3018
|
-
"items": {
|
|
3019
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3020
|
-
}
|
|
3021
|
-
},
|
|
3022
|
-
{
|
|
3023
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
3024
|
-
},
|
|
3025
|
-
{
|
|
3026
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
3027
|
-
},
|
|
3028
|
-
{
|
|
3029
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
3030
|
-
},
|
|
3031
|
-
{
|
|
3032
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
3033
|
-
},
|
|
3034
|
-
{
|
|
3035
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
3036
|
-
},
|
|
3037
|
-
{
|
|
3038
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
|
|
3039
|
-
},
|
|
3040
|
-
{
|
|
3041
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
3042
|
-
},
|
|
3043
|
-
{
|
|
3044
|
-
"type": "array",
|
|
3045
|
-
"items": {
|
|
3046
|
-
"anyOf": [
|
|
3047
|
-
{
|
|
3048
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
|
|
3049
|
-
},
|
|
3050
|
-
{
|
|
3051
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
3052
|
-
}
|
|
3053
|
-
]
|
|
3054
|
-
}
|
|
3055
|
-
}
|
|
3056
|
-
]
|
|
3057
|
-
},
|
|
3058
|
-
"@nest": {
|
|
3059
|
-
"anyOf": [
|
|
3060
|
-
{
|
|
3061
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3062
|
-
},
|
|
3063
|
-
{
|
|
3064
|
-
"type": "array",
|
|
3065
|
-
"items": {
|
|
3066
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3067
|
-
}
|
|
3068
|
-
},
|
|
3069
|
-
{
|
|
3070
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
3071
|
-
},
|
|
3072
|
-
{
|
|
3073
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
3074
|
-
},
|
|
3075
|
-
{
|
|
3076
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
3077
|
-
},
|
|
3078
|
-
{
|
|
3079
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
3080
|
-
},
|
|
3081
|
-
{
|
|
3082
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
3083
|
-
}
|
|
3084
|
-
]
|
|
3085
|
-
},
|
|
3086
|
-
"@type": {
|
|
3087
|
-
"anyOf": [
|
|
3088
|
-
{
|
|
3089
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3090
|
-
},
|
|
3091
|
-
{
|
|
3092
|
-
"type": "array",
|
|
3093
|
-
"items": {
|
|
3094
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3095
|
-
}
|
|
3096
|
-
},
|
|
3097
|
-
{
|
|
3098
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
3099
|
-
},
|
|
3100
|
-
{
|
|
3101
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
3102
|
-
},
|
|
3103
|
-
{
|
|
3104
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
3105
|
-
},
|
|
3106
|
-
{
|
|
3107
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
3108
|
-
},
|
|
3109
|
-
{
|
|
3110
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
3111
|
-
}
|
|
3112
|
-
]
|
|
3113
|
-
},
|
|
3114
|
-
"@reverse": {
|
|
3115
|
-
"anyOf": [
|
|
3116
|
-
{
|
|
3117
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3118
|
-
},
|
|
3119
|
-
{
|
|
3120
|
-
"type": "array",
|
|
3121
|
-
"items": {
|
|
3122
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3123
|
-
}
|
|
3124
|
-
},
|
|
3125
|
-
{
|
|
3126
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
3127
|
-
},
|
|
3128
|
-
{
|
|
3129
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
3130
|
-
},
|
|
3131
|
-
{
|
|
3132
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
3133
|
-
},
|
|
3134
|
-
{
|
|
3135
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
3136
|
-
},
|
|
3137
|
-
{
|
|
3138
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
3139
|
-
}
|
|
3140
|
-
]
|
|
3141
|
-
},
|
|
3142
|
-
"@index": {
|
|
3143
|
-
"anyOf": [
|
|
3144
|
-
{
|
|
3145
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3146
|
-
},
|
|
3147
|
-
{
|
|
3148
|
-
"type": "array",
|
|
3149
|
-
"items": {
|
|
3150
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3151
|
-
}
|
|
3152
|
-
},
|
|
3153
|
-
{
|
|
3154
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
3155
|
-
},
|
|
3156
|
-
{
|
|
3157
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
3158
|
-
},
|
|
3159
|
-
{
|
|
3160
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
3161
|
-
},
|
|
3162
|
-
{
|
|
3163
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
3164
|
-
},
|
|
3165
|
-
{
|
|
3166
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
3167
|
-
}
|
|
3168
|
-
]
|
|
3169
|
-
}
|
|
3170
|
-
},
|
|
3171
|
-
"additionalProperties": false
|
|
3172
|
-
},
|
|
3173
3330
|
"NotFoundResponse": {
|
|
3174
3331
|
"type": "object",
|
|
3175
|
-
"additionalProperties": false,
|
|
3176
3332
|
"properties": {
|
|
3177
3333
|
"notFoundId": {
|
|
3178
3334
|
"type": "string",
|
|
3179
3335
|
"description": "The id if the item that was not found."
|
|
3180
|
-
},
|
|
3181
|
-
"name": {
|
|
3182
|
-
"type": "string",
|
|
3183
|
-
"description": "The name for the error."
|
|
3184
|
-
},
|
|
3185
|
-
"message": {
|
|
3186
|
-
"type": "string",
|
|
3187
|
-
"description": "The message for the error."
|
|
3188
|
-
},
|
|
3189
|
-
"source": {
|
|
3190
|
-
"type": "string",
|
|
3191
|
-
"description": "The source of the error."
|
|
3192
|
-
},
|
|
3193
|
-
"properties": {
|
|
3194
|
-
"type": "object",
|
|
3195
|
-
"additionalProperties": {},
|
|
3196
|
-
"description": "Any additional information for the error."
|
|
3197
|
-
},
|
|
3198
|
-
"stack": {
|
|
3199
|
-
"type": "string",
|
|
3200
|
-
"description": "The stack trace for the error."
|
|
3201
|
-
},
|
|
3202
|
-
"cause": {
|
|
3203
|
-
"$ref": "#/components/schemas/Error"
|
|
3204
3336
|
}
|
|
3205
3337
|
},
|
|
3206
|
-
"
|
|
3207
|
-
|
|
3208
|
-
|
|
3338
|
+
"allOf": [
|
|
3339
|
+
{
|
|
3340
|
+
"$ref": "#/components/schemas/Error"
|
|
3341
|
+
}
|
|
3209
3342
|
],
|
|
3210
3343
|
"description": "The body which contains the error."
|
|
3211
3344
|
}
|