@cheqd/studio 3.9.0-develop.1 → 3.9.0-develop.3
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/app.d.ts.map +1 -1
- package/dist/app.js +5 -1
- package/dist/app.js.map +1 -1
- package/dist/controllers/api/accreditation.d.ts +5 -5
- package/dist/controllers/api/accreditation.js +5 -5
- package/dist/controllers/api/credential-status.d.ts +6 -6
- package/dist/controllers/api/credential-status.js +6 -6
- package/dist/controllers/api/credential.d.ts +5 -5
- package/dist/controllers/api/credential.js +5 -5
- package/dist/controllers/api/did.d.ts +37 -9
- package/dist/controllers/api/did.d.ts.map +1 -1
- package/dist/controllers/api/did.js +47 -11
- package/dist/controllers/api/did.js.map +1 -1
- package/dist/controllers/api/key.d.ts +3 -3
- package/dist/controllers/api/key.js +3 -3
- package/dist/controllers/api/operation.d.ts +87 -0
- package/dist/controllers/api/operation.d.ts.map +1 -0
- package/dist/controllers/api/operation.js +130 -0
- package/dist/controllers/api/operation.js.map +1 -0
- package/dist/controllers/api/presentation.d.ts +2 -2
- package/dist/controllers/api/presentation.js +2 -2
- package/dist/controllers/api/resource.d.ts +79 -2
- package/dist/controllers/api/resource.d.ts.map +1 -1
- package/dist/controllers/api/resource.js +122 -2
- package/dist/controllers/api/resource.js.map +1 -1
- package/dist/database/entities/resource.entity.d.ts.map +1 -1
- package/dist/database/entities/resource.entity.js.map +1 -1
- package/dist/helpers/helpers.d.ts +5 -0
- package/dist/helpers/helpers.d.ts.map +1 -1
- package/dist/helpers/helpers.js +12 -0
- package/dist/helpers/helpers.js.map +1 -1
- package/dist/middleware/auth/routes/api/event-auth.d.ts +5 -0
- package/dist/middleware/auth/routes/api/event-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/event-auth.js +9 -0
- package/dist/middleware/auth/routes/api/event-auth.js.map +1 -0
- package/dist/middleware/auth/routes/api/resource-auth.d.ts.map +1 -1
- package/dist/middleware/auth/routes/api/resource-auth.js +2 -0
- package/dist/middleware/auth/routes/api/resource-auth.js.map +1 -1
- package/dist/middleware/authentication.d.ts.map +1 -1
- package/dist/middleware/authentication.js +2 -0
- package/dist/middleware/authentication.js.map +1 -1
- package/dist/services/api/identifier.d.ts +1 -1
- package/dist/services/api/identifier.d.ts.map +1 -1
- package/dist/services/api/identifier.js +4 -2
- package/dist/services/api/identifier.js.map +1 -1
- package/dist/services/api/operation.d.ts +1 -1
- package/dist/services/api/operation.d.ts.map +1 -1
- package/dist/services/api/operation.js +4 -2
- package/dist/services/api/operation.js.map +1 -1
- package/dist/services/api/resource.d.ts +4 -4
- package/dist/services/api/resource.d.ts.map +1 -1
- package/dist/services/api/resource.js +8 -6
- package/dist/services/api/resource.js.map +1 -1
- package/dist/services/identity/abstract.d.ts +6 -1
- package/dist/services/identity/abstract.d.ts.map +1 -1
- package/dist/services/identity/abstract.js +7 -1
- package/dist/services/identity/abstract.js.map +1 -1
- package/dist/services/identity/index.d.ts +6 -1
- package/dist/services/identity/index.d.ts.map +1 -1
- package/dist/services/identity/index.js.map +1 -1
- package/dist/services/identity/local.d.ts +4 -1
- package/dist/services/identity/local.d.ts.map +1 -1
- package/dist/services/identity/local.js +2 -1
- package/dist/services/identity/local.js.map +1 -1
- package/dist/services/identity/postgres.d.ts +12 -1
- package/dist/services/identity/postgres.d.ts.map +1 -1
- package/dist/services/identity/postgres.js +61 -3
- package/dist/services/identity/postgres.js.map +1 -1
- package/dist/services/track/api/resource-subscriber.d.ts.map +1 -1
- package/dist/services/track/api/resource-subscriber.js +2 -1
- package/dist/services/track/api/resource-subscriber.js.map +1 -1
- package/dist/static/swagger-api.json +346 -40
- package/dist/types/did.d.ts +13 -2
- package/dist/types/did.d.ts.map +1 -1
- package/dist/types/resource.d.ts +25 -0
- package/dist/types/resource.d.ts.map +1 -1
- package/dist/types/swagger-api-types.d.ts +18 -0
- package/dist/types/swagger-api-types.d.ts.map +1 -1
- package/dist/types/swagger-api-types.js +18 -0
- package/dist/types/swagger-api-types.js.map +1 -1
- package/dist/types/track.d.ts +9 -0
- package/dist/types/track.d.ts.map +1 -1
- package/dist/types/track.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,32 +14,45 @@
|
|
|
14
14
|
"url": "https://github.com/cheqd/studio/blob/main/LICENSE"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
+
"servers": [
|
|
18
|
+
{
|
|
19
|
+
"url": "https://studio-api.cheqd.net",
|
|
20
|
+
"description": "Main (production) server"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"url": "https://studio-api-staging.cheqd.net",
|
|
24
|
+
"description": "Staging server for testing"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
17
27
|
"tags": [
|
|
18
28
|
{
|
|
19
29
|
"name": "Account"
|
|
20
30
|
},
|
|
21
31
|
{
|
|
22
|
-
"name": "
|
|
32
|
+
"name": "Keys"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Decentralized Identifiers (DIDs)"
|
|
23
36
|
},
|
|
24
37
|
{
|
|
25
|
-
"name": "DID"
|
|
38
|
+
"name": "DID-Linked Resources (DLRs)"
|
|
26
39
|
},
|
|
27
40
|
{
|
|
28
|
-
"name": "
|
|
41
|
+
"name": "Trust Registries"
|
|
29
42
|
},
|
|
30
43
|
{
|
|
31
|
-
"name": "
|
|
44
|
+
"name": "Verifiable Credentials"
|
|
32
45
|
},
|
|
33
46
|
{
|
|
34
|
-
"name": "
|
|
47
|
+
"name": "Status Lists"
|
|
35
48
|
},
|
|
36
49
|
{
|
|
37
|
-
"name": "
|
|
50
|
+
"name": "Verifiable Presentations"
|
|
38
51
|
}
|
|
39
52
|
],
|
|
40
53
|
"externalDocs": {
|
|
41
54
|
"description": "cheqd Studio API Documentation",
|
|
42
|
-
"url": "https://docs.cheqd.io/
|
|
55
|
+
"url": "https://docs.cheqd.io/product"
|
|
43
56
|
},
|
|
44
57
|
"components": {
|
|
45
58
|
"securitySchemes": {
|
|
@@ -1895,6 +1908,20 @@
|
|
|
1895
1908
|
}
|
|
1896
1909
|
}
|
|
1897
1910
|
},
|
|
1911
|
+
"ListDidResult": {
|
|
1912
|
+
"type": "object",
|
|
1913
|
+
"properties": {
|
|
1914
|
+
"total": {
|
|
1915
|
+
"type": "number"
|
|
1916
|
+
},
|
|
1917
|
+
"dids": {
|
|
1918
|
+
"type": "array",
|
|
1919
|
+
"items": {
|
|
1920
|
+
"type": "string"
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
},
|
|
1898
1925
|
"DidUpdateResponse": {
|
|
1899
1926
|
"type": "object",
|
|
1900
1927
|
"properties": {
|
|
@@ -2153,6 +2180,20 @@
|
|
|
2153
2180
|
}
|
|
2154
2181
|
}
|
|
2155
2182
|
},
|
|
2183
|
+
"ListResourceResult": {
|
|
2184
|
+
"type": "object",
|
|
2185
|
+
"properties": {
|
|
2186
|
+
"total": {
|
|
2187
|
+
"type": "number"
|
|
2188
|
+
},
|
|
2189
|
+
"resources": {
|
|
2190
|
+
"type": "array",
|
|
2191
|
+
"items": {
|
|
2192
|
+
"$ref": "#/components/schemas/ResourceMetadata"
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2156
2197
|
"DereferencingMetadata": {
|
|
2157
2198
|
"type": "object",
|
|
2158
2199
|
"properties": {
|
|
@@ -2565,7 +2606,7 @@
|
|
|
2565
2606
|
"/trust-registry/accreditation/issue": {
|
|
2566
2607
|
"post": {
|
|
2567
2608
|
"tags": [
|
|
2568
|
-
"Trust
|
|
2609
|
+
"Trust Registries"
|
|
2569
2610
|
],
|
|
2570
2611
|
"summary": "Publish a verifiable accreditation for a DID.",
|
|
2571
2612
|
"description": "Generate and publish a Verifiable Accreditation for a subject DID as a DID Linked resource.",
|
|
@@ -2626,7 +2667,7 @@
|
|
|
2626
2667
|
"/trust-registry/accreditation/verify": {
|
|
2627
2668
|
"post": {
|
|
2628
2669
|
"tags": [
|
|
2629
|
-
"Trust
|
|
2670
|
+
"Trust Registries"
|
|
2630
2671
|
],
|
|
2631
2672
|
"summary": "Verify a verifiable accreditation for a DID.",
|
|
2632
2673
|
"description": "Generate and publish a Verifiable Accreditation for a subject DID as a DID Linked resource.",
|
|
@@ -2691,7 +2732,7 @@
|
|
|
2691
2732
|
"/trust-registry/accreditation/revoke": {
|
|
2692
2733
|
"post": {
|
|
2693
2734
|
"tags": [
|
|
2694
|
-
"Trust
|
|
2735
|
+
"Trust Registries"
|
|
2695
2736
|
],
|
|
2696
2737
|
"summary": "Revoke a Verifiable Accreditation.",
|
|
2697
2738
|
"description": "This endpoint revokes a given Verifiable Accreditation. As input, it can take the didUrl as a string. The StatusList2021 or BitstringStatusList resource should already be setup in the VC and `credentialStatus` property present in the VC.",
|
|
@@ -2748,7 +2789,7 @@
|
|
|
2748
2789
|
"/trust-registry/accreditation/suspend": {
|
|
2749
2790
|
"post": {
|
|
2750
2791
|
"tags": [
|
|
2751
|
-
"Trust
|
|
2792
|
+
"Trust Registries"
|
|
2752
2793
|
],
|
|
2753
2794
|
"summary": "Suspend a Verifiable Accreditation.",
|
|
2754
2795
|
"description": "This endpoint suspends a given Verifiable Accreditation. As input, it can take the didUrl as a string. The StatusList2021 or BitstringStatusList resource should already be setup in the VC and `credentialStatus` property present in the VC.",
|
|
@@ -2805,7 +2846,7 @@
|
|
|
2805
2846
|
"/trust-registry/accreditation/reinstate": {
|
|
2806
2847
|
"post": {
|
|
2807
2848
|
"tags": [
|
|
2808
|
-
"Trust
|
|
2849
|
+
"Trust Registries"
|
|
2809
2850
|
],
|
|
2810
2851
|
"summary": "Reinstate a Verifiable Accreditation.",
|
|
2811
2852
|
"description": "This endpoint reinstates a given Verifiable Accreditation. As input, it can take the didUrl as a string. The StatusList2021 or BitstringStatusList resource should already be setup in the VC and `credentialStatus` property present in the VC.",
|
|
@@ -2862,7 +2903,7 @@
|
|
|
2862
2903
|
"/credential-status/create/unencrypted": {
|
|
2863
2904
|
"post": {
|
|
2864
2905
|
"tags": [
|
|
2865
|
-
"
|
|
2906
|
+
"Status Lists"
|
|
2866
2907
|
],
|
|
2867
2908
|
"summary": "Create an unencrypted StatusList2021 or BitstringStatusList credential status list.",
|
|
2868
2909
|
"description": "This endpoint creates an unencrypted StatusList2021 or BitstringStatusList credential status list. The StatusList is published as a DID-Linked Resource on ledger. As input, it can can take input parameters needed to create the status list via a form, or a pre-assembled status list in JSON format. Status lists can be created as either encrypted or unencrypted.",
|
|
@@ -2971,7 +3012,7 @@
|
|
|
2971
3012
|
"/credential-status/create/encrypted": {
|
|
2972
3013
|
"post": {
|
|
2973
3014
|
"tags": [
|
|
2974
|
-
"
|
|
3015
|
+
"Status Lists"
|
|
2975
3016
|
],
|
|
2976
3017
|
"summary": "Create an encrypted StatusList2021 or BitstringStatusList credential status list.",
|
|
2977
3018
|
"description": "This endpoint creates an encrypted StatusList2021 or BitstringStatusList credential status list. The StatusList is published as a DID-Linked Resource on ledger. As input, it can can take input parameters needed to create the status list via a form, or a pre-assembled status list in JSON format. Status lists can be created as either encrypted or unencrypted.",
|
|
@@ -3080,7 +3121,7 @@
|
|
|
3080
3121
|
"/credential-status/update/unencrypted": {
|
|
3081
3122
|
"post": {
|
|
3082
3123
|
"tags": [
|
|
3083
|
-
"
|
|
3124
|
+
"Status Lists"
|
|
3084
3125
|
],
|
|
3085
3126
|
"summary": "Update an existing unencrypted StatusList2021 or BitstringStatusList credential status list.",
|
|
3086
3127
|
"parameters": [
|
|
@@ -3152,7 +3193,7 @@
|
|
|
3152
3193
|
"/credential-status/update/encrypted": {
|
|
3153
3194
|
"post": {
|
|
3154
3195
|
"tags": [
|
|
3155
|
-
"
|
|
3196
|
+
"Status Lists"
|
|
3156
3197
|
],
|
|
3157
3198
|
"summary": "Update an existing encrypted StatusList2021 or BitstringStatusList credential status list.",
|
|
3158
3199
|
"parameters": [
|
|
@@ -3224,7 +3265,7 @@
|
|
|
3224
3265
|
"/credential-status/check": {
|
|
3225
3266
|
"post": {
|
|
3226
3267
|
"tags": [
|
|
3227
|
-
"
|
|
3268
|
+
"Status Lists"
|
|
3228
3269
|
],
|
|
3229
3270
|
"summary": "Check a StatusList2021 index for a given Verifiable Credential.",
|
|
3230
3271
|
"description": "This endpoint checks a StatusList2021 index for a given Verifiable Credential and reports whether it is revoked or suspended. It offers a standalone method for checking an index without passing the entire Verifiable Credential or Verifiable Presentation.",
|
|
@@ -3283,7 +3324,7 @@
|
|
|
3283
3324
|
"/credential-status/search": {
|
|
3284
3325
|
"get": {
|
|
3285
3326
|
"tags": [
|
|
3286
|
-
"
|
|
3327
|
+
"Status Lists"
|
|
3287
3328
|
],
|
|
3288
3329
|
"summary": "Fetch StatusList2021 or BitstringStatusList DID-Linked Resource based on search criteria.",
|
|
3289
3330
|
"parameters": [
|
|
@@ -3358,7 +3399,7 @@
|
|
|
3358
3399
|
"/credential/issue": {
|
|
3359
3400
|
"post": {
|
|
3360
3401
|
"tags": [
|
|
3361
|
-
"
|
|
3402
|
+
"Verifiable Credentials"
|
|
3362
3403
|
],
|
|
3363
3404
|
"summary": "Issue a Verifiable Credential",
|
|
3364
3405
|
"description": "This endpoint issues a Verifiable Credential. As input it takes the list of issuerDid, subjectDid, attributes, and other parameters of the credential to be issued.",
|
|
@@ -3402,7 +3443,7 @@
|
|
|
3402
3443
|
"/credential/verify": {
|
|
3403
3444
|
"post": {
|
|
3404
3445
|
"tags": [
|
|
3405
|
-
"
|
|
3446
|
+
"Verifiable Credentials"
|
|
3406
3447
|
],
|
|
3407
3448
|
"summary": "Verify a Verifiable Credential.",
|
|
3408
3449
|
"description": "This endpoint verifies a Verifiable Credential passed to it. As input, it can take the VC-JWT as a string or the entire credential itself.",
|
|
@@ -3476,7 +3517,7 @@
|
|
|
3476
3517
|
"/credential/revoke": {
|
|
3477
3518
|
"post": {
|
|
3478
3519
|
"tags": [
|
|
3479
|
-
"
|
|
3520
|
+
"Verifiable Credentials"
|
|
3480
3521
|
],
|
|
3481
3522
|
"summary": "Revoke a Verifiable Credential.",
|
|
3482
3523
|
"description": "This endpoint revokes a given Verifiable Credential. As input, it can take the VC-JWT as a string or the entire credential itself. The StatusList2021 or BitstringStatusList resource should already be setup in the VC and `credentialStatus` property present in the VC.",
|
|
@@ -3546,7 +3587,7 @@
|
|
|
3546
3587
|
"/credential/suspend": {
|
|
3547
3588
|
"post": {
|
|
3548
3589
|
"tags": [
|
|
3549
|
-
"
|
|
3590
|
+
"Verifiable Credentials"
|
|
3550
3591
|
],
|
|
3551
3592
|
"summary": "Suspend a Verifiable Credential.",
|
|
3552
3593
|
"description": "This endpoint suspends a given Verifiable Credential. As input, it can take the VC-JWT as a string or the entire credential itself.",
|
|
@@ -3614,7 +3655,7 @@
|
|
|
3614
3655
|
"/credential/reinstate": {
|
|
3615
3656
|
"post": {
|
|
3616
3657
|
"tags": [
|
|
3617
|
-
"
|
|
3658
|
+
"Verifiable Credentials"
|
|
3618
3659
|
],
|
|
3619
3660
|
"summary": "Reinstate a suspended Verifiable Credential.",
|
|
3620
3661
|
"description": "Set whether the StatusList2021 or BitstringStatusList resource should be published to the ledger or not. If set to `false`, the StatusList2021 or BitstringStatusList publisher should manually publish the resource.",
|
|
@@ -3682,7 +3723,7 @@
|
|
|
3682
3723
|
"/did/create": {
|
|
3683
3724
|
"post": {
|
|
3684
3725
|
"tags": [
|
|
3685
|
-
"
|
|
3726
|
+
"Decentralized Identifiers (DIDs)"
|
|
3686
3727
|
],
|
|
3687
3728
|
"summary": "Create a DID Document.",
|
|
3688
3729
|
"description": "This endpoint creates a DID and associated DID Document. As input, it can take the DID Document parameters via a form, or the fully-assembled DID Document itself.",
|
|
@@ -3746,7 +3787,7 @@
|
|
|
3746
3787
|
"/did/update": {
|
|
3747
3788
|
"post": {
|
|
3748
3789
|
"tags": [
|
|
3749
|
-
"
|
|
3790
|
+
"Decentralized Identifiers (DIDs)"
|
|
3750
3791
|
],
|
|
3751
3792
|
"summary": "Update a DID Document.",
|
|
3752
3793
|
"description": "This endpoint updates a DID Document. As an input, it can take JUST the sections/parameters that need to be updated in the DID Document (in this scenario, it fetches the current DID Document and applies the updated section). Alternatively, it take the fully-assembled DID Document with updated sections as well as unchanged sections.",
|
|
@@ -3790,7 +3831,7 @@
|
|
|
3790
3831
|
"/did/import": {
|
|
3791
3832
|
"post": {
|
|
3792
3833
|
"tags": [
|
|
3793
|
-
"
|
|
3834
|
+
"Decentralized Identifiers (DIDs)"
|
|
3794
3835
|
],
|
|
3795
3836
|
"summary": "Import a DID Document.",
|
|
3796
3837
|
"description": "This endpoint imports a decentralized identifier associated with the user's account for custodian-mode clients.",
|
|
@@ -3854,7 +3895,7 @@
|
|
|
3854
3895
|
"/did/deactivate/{did}": {
|
|
3855
3896
|
"post": {
|
|
3856
3897
|
"tags": [
|
|
3857
|
-
"
|
|
3898
|
+
"Decentralized Identifiers (DIDs)"
|
|
3858
3899
|
],
|
|
3859
3900
|
"summary": "Deactivate a DID Document.",
|
|
3860
3901
|
"description": "This endpoint deactivates a DID Document by taking the DID identifier as input. Must be called and signed by the DID owner.",
|
|
@@ -3909,20 +3950,60 @@
|
|
|
3909
3950
|
"/did/list": {
|
|
3910
3951
|
"get": {
|
|
3911
3952
|
"tags": [
|
|
3912
|
-
"
|
|
3953
|
+
"Decentralized Identifiers (DIDs)"
|
|
3913
3954
|
],
|
|
3914
3955
|
"summary": "Fetch DIDs associated with an account.",
|
|
3915
3956
|
"description": "This endpoint returns the list of DIDs controlled by the account.",
|
|
3957
|
+
"parameters": [
|
|
3958
|
+
{
|
|
3959
|
+
"in": "query",
|
|
3960
|
+
"name": "network",
|
|
3961
|
+
"description": "Filter DID by the network published.",
|
|
3962
|
+
"schema": {
|
|
3963
|
+
"type": "string",
|
|
3964
|
+
"enum": [
|
|
3965
|
+
"mainnet",
|
|
3966
|
+
"testnet"
|
|
3967
|
+
]
|
|
3968
|
+
},
|
|
3969
|
+
"required": false
|
|
3970
|
+
},
|
|
3971
|
+
{
|
|
3972
|
+
"in": "query",
|
|
3973
|
+
"name": "createdAt",
|
|
3974
|
+
"description": "Filter resource by created date",
|
|
3975
|
+
"schema": {
|
|
3976
|
+
"type": "string",
|
|
3977
|
+
"format": "date"
|
|
3978
|
+
},
|
|
3979
|
+
"required": false
|
|
3980
|
+
},
|
|
3981
|
+
{
|
|
3982
|
+
"in": "query",
|
|
3983
|
+
"name": "page",
|
|
3984
|
+
"description": "Page number.",
|
|
3985
|
+
"schema": {
|
|
3986
|
+
"type": "number"
|
|
3987
|
+
},
|
|
3988
|
+
"required": false
|
|
3989
|
+
},
|
|
3990
|
+
{
|
|
3991
|
+
"in": "query",
|
|
3992
|
+
"name": "limit",
|
|
3993
|
+
"description": "Number of items to be listed in a single page.",
|
|
3994
|
+
"schema": {
|
|
3995
|
+
"type": "number"
|
|
3996
|
+
},
|
|
3997
|
+
"required": false
|
|
3998
|
+
}
|
|
3999
|
+
],
|
|
3916
4000
|
"responses": {
|
|
3917
4001
|
"200": {
|
|
3918
4002
|
"description": "The request was successful.",
|
|
3919
4003
|
"content": {
|
|
3920
4004
|
"application/json": {
|
|
3921
4005
|
"schema": {
|
|
3922
|
-
"
|
|
3923
|
-
"items": {
|
|
3924
|
-
"type": "string"
|
|
3925
|
-
}
|
|
4006
|
+
"$ref": "#/components/schemas/ListDidResult"
|
|
3926
4007
|
}
|
|
3927
4008
|
}
|
|
3928
4009
|
}
|
|
@@ -3942,7 +4023,7 @@
|
|
|
3942
4023
|
"/did/search/{did}": {
|
|
3943
4024
|
"get": {
|
|
3944
4025
|
"tags": [
|
|
3945
|
-
"
|
|
4026
|
+
"Decentralized Identifiers (DIDs)"
|
|
3946
4027
|
],
|
|
3947
4028
|
"summary": "Resolve a DID Document.",
|
|
3948
4029
|
"description": "Resolve a DID Document by DID identifier. Also supports DID Resolution Queries as defined in the <a href=\"https://w3c-ccg.github.io/did-resolution/\">W3C DID Resolution specification</a>.",
|
|
@@ -4043,7 +4124,7 @@
|
|
|
4043
4124
|
"/key/create": {
|
|
4044
4125
|
"post": {
|
|
4045
4126
|
"tags": [
|
|
4046
|
-
"
|
|
4127
|
+
"Keys"
|
|
4047
4128
|
],
|
|
4048
4129
|
"summary": "Create an identity key pair.",
|
|
4049
4130
|
"description": "This endpoint creates an identity key pair associated with the user's account for custodian-mode clients.",
|
|
@@ -4107,7 +4188,7 @@
|
|
|
4107
4188
|
"/key/import": {
|
|
4108
4189
|
"post": {
|
|
4109
4190
|
"tags": [
|
|
4110
|
-
"
|
|
4191
|
+
"Keys"
|
|
4111
4192
|
],
|
|
4112
4193
|
"summary": "Import an identity key pair.",
|
|
4113
4194
|
"description": "This endpoint imports an identity key pair associated with the user's account for custodian-mode clients.",
|
|
@@ -4171,7 +4252,7 @@
|
|
|
4171
4252
|
"/key/read/{kid}": {
|
|
4172
4253
|
"get": {
|
|
4173
4254
|
"tags": [
|
|
4174
|
-
"
|
|
4255
|
+
"Keys"
|
|
4175
4256
|
],
|
|
4176
4257
|
"summary": "Fetch an identity key pair.",
|
|
4177
4258
|
"description": "This endpoint fetches an identity key pair's details for a given key ID. Only the user account associated with the custodian-mode client can fetch the key pair.",
|
|
@@ -4229,10 +4310,126 @@
|
|
|
4229
4310
|
}
|
|
4230
4311
|
}
|
|
4231
4312
|
},
|
|
4313
|
+
"/event/list": {
|
|
4314
|
+
"get": {
|
|
4315
|
+
"tags": [
|
|
4316
|
+
"Event"
|
|
4317
|
+
],
|
|
4318
|
+
"summary": "Fetch Credential event's triggered by the user.",
|
|
4319
|
+
"description": "This endpoint returns the list of Credential Events controlled by the account.",
|
|
4320
|
+
"parameters": [
|
|
4321
|
+
{
|
|
4322
|
+
"in": "query",
|
|
4323
|
+
"name": "network",
|
|
4324
|
+
"description": "Filter events by the network published.",
|
|
4325
|
+
"schema": {
|
|
4326
|
+
"type": "string",
|
|
4327
|
+
"enum": [
|
|
4328
|
+
"mainnet",
|
|
4329
|
+
"testnet"
|
|
4330
|
+
]
|
|
4331
|
+
},
|
|
4332
|
+
"required": false
|
|
4333
|
+
},
|
|
4334
|
+
{
|
|
4335
|
+
"in": "query",
|
|
4336
|
+
"name": "category",
|
|
4337
|
+
"description": "Filter events by the category.",
|
|
4338
|
+
"schema": {
|
|
4339
|
+
"type": "string",
|
|
4340
|
+
"enum": [
|
|
4341
|
+
"did",
|
|
4342
|
+
"resource",
|
|
4343
|
+
"credential",
|
|
4344
|
+
"credential-status",
|
|
4345
|
+
"presentation"
|
|
4346
|
+
]
|
|
4347
|
+
},
|
|
4348
|
+
"required": false
|
|
4349
|
+
},
|
|
4350
|
+
{
|
|
4351
|
+
"in": "query",
|
|
4352
|
+
"name": "name",
|
|
4353
|
+
"description": "Filter events by the name.",
|
|
4354
|
+
"schema": {
|
|
4355
|
+
"type": "string"
|
|
4356
|
+
},
|
|
4357
|
+
"required": false
|
|
4358
|
+
},
|
|
4359
|
+
{
|
|
4360
|
+
"in": "query",
|
|
4361
|
+
"name": "deprecated",
|
|
4362
|
+
"description": "Filter events by the deprecated type",
|
|
4363
|
+
"schema": {
|
|
4364
|
+
"type": "boolean"
|
|
4365
|
+
},
|
|
4366
|
+
"required": false
|
|
4367
|
+
},
|
|
4368
|
+
{
|
|
4369
|
+
"in": "query",
|
|
4370
|
+
"name": "successful",
|
|
4371
|
+
"description": "Filter events by the status",
|
|
4372
|
+
"schema": {
|
|
4373
|
+
"type": "boolean"
|
|
4374
|
+
},
|
|
4375
|
+
"required": false
|
|
4376
|
+
},
|
|
4377
|
+
{
|
|
4378
|
+
"in": "query",
|
|
4379
|
+
"name": "createdAt",
|
|
4380
|
+
"description": "Filter resource by created date",
|
|
4381
|
+
"schema": {
|
|
4382
|
+
"type": "string",
|
|
4383
|
+
"format": "date"
|
|
4384
|
+
},
|
|
4385
|
+
"required": false
|
|
4386
|
+
},
|
|
4387
|
+
{
|
|
4388
|
+
"in": "query",
|
|
4389
|
+
"name": "page",
|
|
4390
|
+
"description": "Page number.",
|
|
4391
|
+
"schema": {
|
|
4392
|
+
"type": "number"
|
|
4393
|
+
},
|
|
4394
|
+
"required": false
|
|
4395
|
+
},
|
|
4396
|
+
{
|
|
4397
|
+
"in": "query",
|
|
4398
|
+
"name": "limit",
|
|
4399
|
+
"description": "Number of items to be listed in a single page.",
|
|
4400
|
+
"schema": {
|
|
4401
|
+
"type": "number"
|
|
4402
|
+
},
|
|
4403
|
+
"required": false
|
|
4404
|
+
}
|
|
4405
|
+
],
|
|
4406
|
+
"responses": {
|
|
4407
|
+
"200": {
|
|
4408
|
+
"description": "The request was successful.",
|
|
4409
|
+
"content": {
|
|
4410
|
+
"application/json": {
|
|
4411
|
+
"schema": {
|
|
4412
|
+
"$ref": "#/components/schemas/ListResourceResult"
|
|
4413
|
+
}
|
|
4414
|
+
}
|
|
4415
|
+
}
|
|
4416
|
+
},
|
|
4417
|
+
"400": {
|
|
4418
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
4419
|
+
},
|
|
4420
|
+
"401": {
|
|
4421
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
4422
|
+
},
|
|
4423
|
+
"500": {
|
|
4424
|
+
"$ref": "#/components/schemas/InternalError"
|
|
4425
|
+
}
|
|
4426
|
+
}
|
|
4427
|
+
}
|
|
4428
|
+
},
|
|
4232
4429
|
"/presentation/create": {
|
|
4233
4430
|
"post": {
|
|
4234
4431
|
"tags": [
|
|
4235
|
-
"
|
|
4432
|
+
"Verifiable Presentations"
|
|
4236
4433
|
],
|
|
4237
4434
|
"summary": "!!! WARN. Such endpoint is made mostly for testing purposes and it is not supposed to be used in production !!! Create a Verifiable Presentation from credential(s).",
|
|
4238
4435
|
"description": "This endpoint creates a Verifiable Presentation from credential(s). As input, it can take the credential(s) as a string or the entire credential(s) itself. \n !!! WARN. Such endpoint is made only for testing purposes !!!",
|
|
@@ -4276,7 +4473,7 @@
|
|
|
4276
4473
|
"/presentation/verify": {
|
|
4277
4474
|
"post": {
|
|
4278
4475
|
"tags": [
|
|
4279
|
-
"
|
|
4476
|
+
"Verifiable Presentations"
|
|
4280
4477
|
],
|
|
4281
4478
|
"summary": "Verify a Verifiable Presentation generated from credential(s).",
|
|
4282
4479
|
"description": "This endpoint verifies the Verifiable Presentation generated from credential(s). As input, it can take the Verifiable Presentation JWT as a string or the entire Verifiable Presentation itself.",
|
|
@@ -4349,7 +4546,7 @@
|
|
|
4349
4546
|
"/resource/create/{did}": {
|
|
4350
4547
|
"post": {
|
|
4351
4548
|
"tags": [
|
|
4352
|
-
"
|
|
4549
|
+
"DID-Linked Resources (DLRs)"
|
|
4353
4550
|
],
|
|
4354
4551
|
"summary": "Create a DID-Linked Resource.",
|
|
4355
4552
|
"description": "This endpoint creates a DID-Linked Resource. As input, it can take the DID identifier and the resource parameters via a form, or the fully-assembled resource itself.",
|
|
@@ -4404,7 +4601,7 @@
|
|
|
4404
4601
|
"/resource/search/{did}": {
|
|
4405
4602
|
"get": {
|
|
4406
4603
|
"tags": [
|
|
4407
|
-
"
|
|
4604
|
+
"DID-Linked Resources (DLRs)"
|
|
4408
4605
|
],
|
|
4409
4606
|
"summary": "Get a DID-Linked Resource.",
|
|
4410
4607
|
"description": "This endpoint returns the DID-Linked Resource for a given DID identifier and resource identifier.",
|
|
@@ -4506,6 +4703,115 @@
|
|
|
4506
4703
|
}
|
|
4507
4704
|
}
|
|
4508
4705
|
}
|
|
4706
|
+
},
|
|
4707
|
+
"/resource/list": {
|
|
4708
|
+
"get": {
|
|
4709
|
+
"tags": [
|
|
4710
|
+
"Resource"
|
|
4711
|
+
],
|
|
4712
|
+
"summary": "Fetch Resources created by the user.",
|
|
4713
|
+
"description": "This endpoint returns the list of DID Linked Resources controlled by the account.",
|
|
4714
|
+
"parameters": [
|
|
4715
|
+
{
|
|
4716
|
+
"in": "query",
|
|
4717
|
+
"name": "network",
|
|
4718
|
+
"description": "Filter resources by the network published.",
|
|
4719
|
+
"schema": {
|
|
4720
|
+
"type": "string",
|
|
4721
|
+
"enum": [
|
|
4722
|
+
"mainnet",
|
|
4723
|
+
"testnet"
|
|
4724
|
+
]
|
|
4725
|
+
},
|
|
4726
|
+
"required": false
|
|
4727
|
+
},
|
|
4728
|
+
{
|
|
4729
|
+
"in": "query",
|
|
4730
|
+
"name": "resourceName",
|
|
4731
|
+
"description": "Filter resources by the resource name",
|
|
4732
|
+
"schema": {
|
|
4733
|
+
"type": "string"
|
|
4734
|
+
},
|
|
4735
|
+
"required": false
|
|
4736
|
+
},
|
|
4737
|
+
{
|
|
4738
|
+
"in": "query",
|
|
4739
|
+
"name": "resourceType",
|
|
4740
|
+
"description": "Filter resources by the resource type",
|
|
4741
|
+
"schema": {
|
|
4742
|
+
"type": "string"
|
|
4743
|
+
},
|
|
4744
|
+
"required": false
|
|
4745
|
+
},
|
|
4746
|
+
{
|
|
4747
|
+
"in": "query",
|
|
4748
|
+
"name": "did",
|
|
4749
|
+
"description": "Filter resources published by a DID",
|
|
4750
|
+
"schema": {
|
|
4751
|
+
"type": "string"
|
|
4752
|
+
},
|
|
4753
|
+
"required": false
|
|
4754
|
+
},
|
|
4755
|
+
{
|
|
4756
|
+
"in": "query",
|
|
4757
|
+
"name": "encrypted",
|
|
4758
|
+
"description": "Filter resource by encryption type",
|
|
4759
|
+
"schema": {
|
|
4760
|
+
"type": "boolean"
|
|
4761
|
+
},
|
|
4762
|
+
"required": false
|
|
4763
|
+
},
|
|
4764
|
+
{
|
|
4765
|
+
"in": "query",
|
|
4766
|
+
"name": "createdAt",
|
|
4767
|
+
"description": "Filter resource by created date",
|
|
4768
|
+
"schema": {
|
|
4769
|
+
"type": "string",
|
|
4770
|
+
"format": "date"
|
|
4771
|
+
},
|
|
4772
|
+
"required": false
|
|
4773
|
+
},
|
|
4774
|
+
{
|
|
4775
|
+
"in": "query",
|
|
4776
|
+
"name": "page",
|
|
4777
|
+
"description": "Page number.",
|
|
4778
|
+
"schema": {
|
|
4779
|
+
"type": "number"
|
|
4780
|
+
},
|
|
4781
|
+
"required": false
|
|
4782
|
+
},
|
|
4783
|
+
{
|
|
4784
|
+
"in": "query",
|
|
4785
|
+
"name": "limit",
|
|
4786
|
+
"description": "Number of items to be listed in a single page.",
|
|
4787
|
+
"schema": {
|
|
4788
|
+
"type": "number"
|
|
4789
|
+
},
|
|
4790
|
+
"required": false
|
|
4791
|
+
}
|
|
4792
|
+
],
|
|
4793
|
+
"responses": {
|
|
4794
|
+
"200": {
|
|
4795
|
+
"description": "The request was successful.",
|
|
4796
|
+
"content": {
|
|
4797
|
+
"application/json": {
|
|
4798
|
+
"schema": {
|
|
4799
|
+
"$ref": "#/components/schemas/ListResourceResult"
|
|
4800
|
+
}
|
|
4801
|
+
}
|
|
4802
|
+
}
|
|
4803
|
+
},
|
|
4804
|
+
"400": {
|
|
4805
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
4806
|
+
},
|
|
4807
|
+
"401": {
|
|
4808
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
4809
|
+
},
|
|
4810
|
+
"500": {
|
|
4811
|
+
"$ref": "#/components/schemas/InternalError"
|
|
4812
|
+
}
|
|
4813
|
+
}
|
|
4814
|
+
}
|
|
4509
4815
|
}
|
|
4510
4816
|
}
|
|
4511
4817
|
}
|
package/dist/types/did.d.ts
CHANGED
|
@@ -38,12 +38,23 @@ export type DeactivateDIDRequestParams = DIDRequest;
|
|
|
38
38
|
export type DeactivateDIDRequestBody = {
|
|
39
39
|
publicKeyHexs?: string[];
|
|
40
40
|
};
|
|
41
|
-
export type GetDIDRequestParams =
|
|
41
|
+
export type GetDIDRequestParams = {
|
|
42
|
+
did?: string;
|
|
43
|
+
} & ListDIDRequestOptions;
|
|
44
|
+
export type ListDIDRequestOptions = {
|
|
45
|
+
network?: CheqdNetwork;
|
|
46
|
+
page?: number;
|
|
47
|
+
limit?: number;
|
|
48
|
+
createdAt?: number;
|
|
49
|
+
};
|
|
42
50
|
export type ResolveDIDRequestParams = DIDRequest;
|
|
43
51
|
export type CreateDidResponseBody = ICheqdIDentifier;
|
|
44
52
|
export type UpdateDidResponseBody = ICheqdIDentifier;
|
|
45
53
|
export type DeactivateDidResponseBody = DIDResolutionResult;
|
|
46
|
-
export type ListDidsResponseBody =
|
|
54
|
+
export type ListDidsResponseBody = {
|
|
55
|
+
total: number;
|
|
56
|
+
dids: string[];
|
|
57
|
+
};
|
|
47
58
|
export type QueryDidResponseBody = DIDResolutionResult;
|
|
48
59
|
export type ResolveDidResponseBody = any;
|
|
49
60
|
export type UnsuccessfulCreateDidResponseBody = UnsuccessfulResponseBody;
|