@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
package/dist/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;;AAqU9B,wBAAiC"}
|
package/dist/app.js
CHANGED
|
@@ -30,6 +30,7 @@ import { WebhookController } from './controllers/admin/webhook.js';
|
|
|
30
30
|
import { APIKeyController } from './controllers/admin/api-key.js';
|
|
31
31
|
import { OrganisationController } from './controllers/admin/organisation.js';
|
|
32
32
|
import { AccreditationController } from './controllers/api/accreditation.js';
|
|
33
|
+
import { OperationController } from './controllers/api/operation.js';
|
|
33
34
|
dotenv.config();
|
|
34
35
|
class App {
|
|
35
36
|
express;
|
|
@@ -131,7 +132,7 @@ class App {
|
|
|
131
132
|
app.post('/did/update', DIDController.updateDIDValidator, new DIDController().updateDid);
|
|
132
133
|
app.post('/did/import', DIDController.importDIDValidator, new DIDController().importDid);
|
|
133
134
|
app.post('/did/deactivate/:did', DIDController.deactivateDIDValidator, new DIDController().deactivateDid);
|
|
134
|
-
app.get('/did/list', new DIDController().getDids);
|
|
135
|
+
app.get('/did/list', DIDController.listDIDValidator, new DIDController().getDids);
|
|
135
136
|
app.get('/did/search/:did', new DIDController().resolveDidUrl);
|
|
136
137
|
// Trust Registry API
|
|
137
138
|
app.post('/trust-registry/accreditation/issue', AccreditationController.issueValidator, new AccreditationController().issue);
|
|
@@ -141,7 +142,10 @@ class App {
|
|
|
141
142
|
app.post('/trust-registry/accreditation/reinstate', AccreditationController.publishValidator, new AccreditationController().reinstate);
|
|
142
143
|
// Resource API
|
|
143
144
|
app.post('/resource/create/:did', ResourceController.createResourceValidator, new ResourceController().createResource);
|
|
145
|
+
app.get(`/resource/list`, ResourceController.listResourceValidator, new ResourceController().listResources);
|
|
144
146
|
app.get('/resource/search/:did', ResourceController.searchResourceValidator, new ResourceController().searchResource);
|
|
147
|
+
// Events API
|
|
148
|
+
app.get(`/event/list`, OperationController.listOperationValidator, new OperationController().listOperations);
|
|
145
149
|
// Account API
|
|
146
150
|
app.post('/account/create', AccountController.createValidator, new AccountController().create);
|
|
147
151
|
app.get('/account', new AccountController().get);
|
package/dist/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC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AG,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,kBAAkB,EAAE,IAAI,gBAAgB,EAAE,CAAC,GAAG,CAAC,CAAC;YAC/F,GAAG,CAAC,GAAG,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,mBAAmB,EAAE,IAAI,gBAAgB,EAAE,CAAC,IAAI,CAAC,CAAC;YAClG,GAAG,CAAC,MAAM,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,qBAAqB,EAAE,IAAI,gBAAgB,EAAE,CAAC,MAAM,CAAC,CAAC;YAE3G,UAAU;YACV,GAAG,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,iBAAiB,EAAE,CAAC,aAAa,CAAC,CAAC;YAElE,WAAW;YACX,GAAG,CAAC,IAAI,CACP,4BAA4B,EAC5B,sBAAsB,CAAC,2BAA2B,EAClD,IAAI,sBAAsB,EAAE,CAAC,MAAM,CACnC,CAAC;YACF,GAAG,CAAC,GAAG,CAAC,yBAAyB,EAAE,IAAI,sBAAsB,EAAE,CAAC,GAAG,CAAC,CAAC;QACtE,CAAC;QAED,6BAA6B;QAC7B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IACtF,CAAC;CACD;AAED,eAAe,IAAI,GAAG,EAAE,CAAC,OAAO,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare class AccreditationController {
|
|
|
8
8
|
*
|
|
9
9
|
* /trust-registry/accreditation/issue:
|
|
10
10
|
* post:
|
|
11
|
-
* tags: [ Trust
|
|
11
|
+
* tags: [ Trust Registries ]
|
|
12
12
|
* summary: Publish a verifiable accreditation for a DID.
|
|
13
13
|
* description: Generate and publish a Verifiable Accreditation for a subject DID as a DID Linked resource.
|
|
14
14
|
* operationId: accredit-issue
|
|
@@ -51,7 +51,7 @@ export declare class AccreditationController {
|
|
|
51
51
|
*
|
|
52
52
|
* /trust-registry/accreditation/verify:
|
|
53
53
|
* post:
|
|
54
|
-
* tags: [ Trust
|
|
54
|
+
* tags: [ Trust Registries ]
|
|
55
55
|
* summary: Verify a verifiable accreditation for a DID.
|
|
56
56
|
* description: Generate and publish a Verifiable Accreditation for a subject DID as a DID Linked resource.
|
|
57
57
|
* operationId: accredit-verify
|
|
@@ -96,7 +96,7 @@ export declare class AccreditationController {
|
|
|
96
96
|
*
|
|
97
97
|
* /trust-registry/accreditation/revoke:
|
|
98
98
|
* post:
|
|
99
|
-
* tags: [ Trust
|
|
99
|
+
* tags: [ Trust Registries ]
|
|
100
100
|
* summary: Revoke a Verifiable Accreditation.
|
|
101
101
|
* 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.
|
|
102
102
|
* operationId: accredit-revoke
|
|
@@ -136,7 +136,7 @@ export declare class AccreditationController {
|
|
|
136
136
|
*
|
|
137
137
|
* /trust-registry/accreditation/suspend:
|
|
138
138
|
* post:
|
|
139
|
-
* tags: [ Trust
|
|
139
|
+
* tags: [ Trust Registries ]
|
|
140
140
|
* summary: Suspend a Verifiable Accreditation.
|
|
141
141
|
* 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.
|
|
142
142
|
* operationId: accredit-suspend
|
|
@@ -180,7 +180,7 @@ export declare class AccreditationController {
|
|
|
180
180
|
*
|
|
181
181
|
* /trust-registry/accreditation/reinstate:
|
|
182
182
|
* post:
|
|
183
|
-
* tags: [ Trust
|
|
183
|
+
* tags: [ Trust Registries ]
|
|
184
184
|
* summary: Reinstate a Verifiable Accreditation.
|
|
185
185
|
* 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.
|
|
186
186
|
* operationId: accredit-reinstate
|
|
@@ -111,7 +111,7 @@ export class AccreditationController {
|
|
|
111
111
|
*
|
|
112
112
|
* /trust-registry/accreditation/issue:
|
|
113
113
|
* post:
|
|
114
|
-
* tags: [ Trust
|
|
114
|
+
* tags: [ Trust Registries ]
|
|
115
115
|
* summary: Publish a verifiable accreditation for a DID.
|
|
116
116
|
* description: Generate and publish a Verifiable Accreditation for a subject DID as a DID Linked resource.
|
|
117
117
|
* operationId: accredit-issue
|
|
@@ -281,7 +281,7 @@ export class AccreditationController {
|
|
|
281
281
|
*
|
|
282
282
|
* /trust-registry/accreditation/verify:
|
|
283
283
|
* post:
|
|
284
|
-
* tags: [ Trust
|
|
284
|
+
* tags: [ Trust Registries ]
|
|
285
285
|
* summary: Verify a verifiable accreditation for a DID.
|
|
286
286
|
* description: Generate and publish a Verifiable Accreditation for a subject DID as a DID Linked resource.
|
|
287
287
|
* operationId: accredit-verify
|
|
@@ -366,7 +366,7 @@ export class AccreditationController {
|
|
|
366
366
|
*
|
|
367
367
|
* /trust-registry/accreditation/revoke:
|
|
368
368
|
* post:
|
|
369
|
-
* tags: [ Trust
|
|
369
|
+
* tags: [ Trust Registries ]
|
|
370
370
|
* summary: Revoke a Verifiable Accreditation.
|
|
371
371
|
* 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.
|
|
372
372
|
* operationId: accredit-revoke
|
|
@@ -461,7 +461,7 @@ export class AccreditationController {
|
|
|
461
461
|
*
|
|
462
462
|
* /trust-registry/accreditation/suspend:
|
|
463
463
|
* post:
|
|
464
|
-
* tags: [ Trust
|
|
464
|
+
* tags: [ Trust Registries ]
|
|
465
465
|
* summary: Suspend a Verifiable Accreditation.
|
|
466
466
|
* 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.
|
|
467
467
|
* operationId: accredit-suspend
|
|
@@ -558,7 +558,7 @@ export class AccreditationController {
|
|
|
558
558
|
*
|
|
559
559
|
* /trust-registry/accreditation/reinstate:
|
|
560
560
|
* post:
|
|
561
|
-
* tags: [ Trust
|
|
561
|
+
* tags: [ Trust Registries ]
|
|
562
562
|
* summary: Reinstate a Verifiable Accreditation.
|
|
563
563
|
* 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.
|
|
564
564
|
* operationId: accredit-reinstate
|
|
@@ -11,7 +11,7 @@ export declare class CredentialStatusController {
|
|
|
11
11
|
*
|
|
12
12
|
* /credential-status/create/unencrypted:
|
|
13
13
|
* post:
|
|
14
|
-
* tags: [
|
|
14
|
+
* tags: [ Status Lists ]
|
|
15
15
|
* summary: Create an unencrypted StatusList2021 or BitstringStatusList credential status list.
|
|
16
16
|
* 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.
|
|
17
17
|
* parameters:
|
|
@@ -81,7 +81,7 @@ export declare class CredentialStatusController {
|
|
|
81
81
|
*
|
|
82
82
|
* /credential-status/create/encrypted:
|
|
83
83
|
* post:
|
|
84
|
-
* tags: [
|
|
84
|
+
* tags: [ Status Lists ]
|
|
85
85
|
* summary: Create an encrypted StatusList2021 or BitstringStatusList credential status list.
|
|
86
86
|
* 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.
|
|
87
87
|
* parameters:
|
|
@@ -151,7 +151,7 @@ export declare class CredentialStatusController {
|
|
|
151
151
|
*
|
|
152
152
|
* /credential-status/update/unencrypted:
|
|
153
153
|
* post:
|
|
154
|
-
* tags: [
|
|
154
|
+
* tags: [ Status Lists ]
|
|
155
155
|
* summary: Update an existing unencrypted StatusList2021 or BitstringStatusList credential status list.
|
|
156
156
|
* parameters:
|
|
157
157
|
* - in: query
|
|
@@ -201,7 +201,7 @@ export declare class CredentialStatusController {
|
|
|
201
201
|
*
|
|
202
202
|
* /credential-status/update/encrypted:
|
|
203
203
|
* post:
|
|
204
|
-
* tags: [
|
|
204
|
+
* tags: [ Status Lists ]
|
|
205
205
|
* summary: Update an existing encrypted StatusList2021 or BitstringStatusList credential status list.
|
|
206
206
|
* parameters:
|
|
207
207
|
* - in: query
|
|
@@ -251,7 +251,7 @@ export declare class CredentialStatusController {
|
|
|
251
251
|
*
|
|
252
252
|
* /credential-status/check:
|
|
253
253
|
* post:
|
|
254
|
-
* tags: [
|
|
254
|
+
* tags: [ Status Lists ]
|
|
255
255
|
* summary: Check a StatusList2021 index for a given Verifiable Credential.
|
|
256
256
|
* 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.
|
|
257
257
|
* parameters:
|
|
@@ -292,7 +292,7 @@ export declare class CredentialStatusController {
|
|
|
292
292
|
*
|
|
293
293
|
* /credential-status/search:
|
|
294
294
|
* get:
|
|
295
|
-
* tags: [
|
|
295
|
+
* tags: [ Status Lists ]
|
|
296
296
|
* summary: Fetch StatusList2021 or BitstringStatusList DID-Linked Resource based on search criteria.
|
|
297
297
|
* parameters:
|
|
298
298
|
* - in: query
|
|
@@ -487,7 +487,7 @@ export class CredentialStatusController {
|
|
|
487
487
|
*
|
|
488
488
|
* /credential-status/create/unencrypted:
|
|
489
489
|
* post:
|
|
490
|
-
* tags: [
|
|
490
|
+
* tags: [ Status Lists ]
|
|
491
491
|
* summary: Create an unencrypted StatusList2021 or BitstringStatusList credential status list.
|
|
492
492
|
* 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.
|
|
493
493
|
* parameters:
|
|
@@ -638,7 +638,7 @@ export class CredentialStatusController {
|
|
|
638
638
|
*
|
|
639
639
|
* /credential-status/create/encrypted:
|
|
640
640
|
* post:
|
|
641
|
-
* tags: [
|
|
641
|
+
* tags: [ Status Lists ]
|
|
642
642
|
* summary: Create an encrypted StatusList2021 or BitstringStatusList credential status list.
|
|
643
643
|
* 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.
|
|
644
644
|
* parameters:
|
|
@@ -785,7 +785,7 @@ export class CredentialStatusController {
|
|
|
785
785
|
*
|
|
786
786
|
* /credential-status/update/unencrypted:
|
|
787
787
|
* post:
|
|
788
|
-
* tags: [
|
|
788
|
+
* tags: [ Status Lists ]
|
|
789
789
|
* summary: Update an existing unencrypted StatusList2021 or BitstringStatusList credential status list.
|
|
790
790
|
* parameters:
|
|
791
791
|
* - in: query
|
|
@@ -931,7 +931,7 @@ export class CredentialStatusController {
|
|
|
931
931
|
*
|
|
932
932
|
* /credential-status/update/encrypted:
|
|
933
933
|
* post:
|
|
934
|
-
* tags: [
|
|
934
|
+
* tags: [ Status Lists ]
|
|
935
935
|
* summary: Update an existing encrypted StatusList2021 or BitstringStatusList credential status list.
|
|
936
936
|
* parameters:
|
|
937
937
|
* - in: query
|
|
@@ -1083,7 +1083,7 @@ export class CredentialStatusController {
|
|
|
1083
1083
|
*
|
|
1084
1084
|
* /credential-status/check:
|
|
1085
1085
|
* post:
|
|
1086
|
-
* tags: [
|
|
1086
|
+
* tags: [ Status Lists ]
|
|
1087
1087
|
* summary: Check a StatusList2021 index for a given Verifiable Credential.
|
|
1088
1088
|
* 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.
|
|
1089
1089
|
* parameters:
|
|
@@ -1239,7 +1239,7 @@ export class CredentialStatusController {
|
|
|
1239
1239
|
*
|
|
1240
1240
|
* /credential-status/search:
|
|
1241
1241
|
* get:
|
|
1242
|
-
* tags: [
|
|
1242
|
+
* tags: [ Status Lists ]
|
|
1243
1243
|
* summary: Fetch StatusList2021 or BitstringStatusList DID-Linked Resource based on search criteria.
|
|
1244
1244
|
* parameters:
|
|
1245
1245
|
* - in: query
|
|
@@ -8,7 +8,7 @@ export declare class CredentialController {
|
|
|
8
8
|
*
|
|
9
9
|
* /credential/issue:
|
|
10
10
|
* post:
|
|
11
|
-
* tags: [
|
|
11
|
+
* tags: [ Verifiable Credentials ]
|
|
12
12
|
* summary: Issue a Verifiable Credential
|
|
13
13
|
* 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.
|
|
14
14
|
* requestBody:
|
|
@@ -39,7 +39,7 @@ export declare class CredentialController {
|
|
|
39
39
|
*
|
|
40
40
|
* /credential/verify:
|
|
41
41
|
* post:
|
|
42
|
-
* tags: [
|
|
42
|
+
* tags: [ Verifiable Credentials ]
|
|
43
43
|
* summary: Verify a Verifiable Credential.
|
|
44
44
|
* 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.
|
|
45
45
|
* operationId: verify
|
|
@@ -90,7 +90,7 @@ export declare class CredentialController {
|
|
|
90
90
|
*
|
|
91
91
|
* /credential/revoke:
|
|
92
92
|
* post:
|
|
93
|
-
* tags: [
|
|
93
|
+
* tags: [ Verifiable Credentials ]
|
|
94
94
|
* summary: Revoke a Verifiable Credential.
|
|
95
95
|
* 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.
|
|
96
96
|
* operationId: revoke
|
|
@@ -139,7 +139,7 @@ export declare class CredentialController {
|
|
|
139
139
|
*
|
|
140
140
|
* /credential/suspend:
|
|
141
141
|
* post:
|
|
142
|
-
* tags: [
|
|
142
|
+
* tags: [ Verifiable Credentials ]
|
|
143
143
|
* summary: Suspend a Verifiable Credential.
|
|
144
144
|
* description: This endpoint suspends a given Verifiable Credential. As input, it can take the VC-JWT as a string or the entire credential itself.
|
|
145
145
|
* operationId: suspend
|
|
@@ -186,7 +186,7 @@ export declare class CredentialController {
|
|
|
186
186
|
*
|
|
187
187
|
* /credential/reinstate:
|
|
188
188
|
* post:
|
|
189
|
-
* tags: [
|
|
189
|
+
* tags: [ Verifiable Credentials ]
|
|
190
190
|
* summary: Reinstate a suspended Verifiable Credential.
|
|
191
191
|
* 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.
|
|
192
192
|
* operationId: reinstate
|
|
@@ -83,7 +83,7 @@ export class CredentialController {
|
|
|
83
83
|
*
|
|
84
84
|
* /credential/issue:
|
|
85
85
|
* post:
|
|
86
|
-
* tags: [
|
|
86
|
+
* tags: [ Verifiable Credentials ]
|
|
87
87
|
* summary: Issue a Verifiable Credential
|
|
88
88
|
* 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.
|
|
89
89
|
* requestBody:
|
|
@@ -161,7 +161,7 @@ export class CredentialController {
|
|
|
161
161
|
*
|
|
162
162
|
* /credential/verify:
|
|
163
163
|
* post:
|
|
164
|
-
* tags: [
|
|
164
|
+
* tags: [ Verifiable Credentials ]
|
|
165
165
|
* summary: Verify a Verifiable Credential.
|
|
166
166
|
* 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.
|
|
167
167
|
* operationId: verify
|
|
@@ -257,7 +257,7 @@ export class CredentialController {
|
|
|
257
257
|
*
|
|
258
258
|
* /credential/revoke:
|
|
259
259
|
* post:
|
|
260
|
-
* tags: [
|
|
260
|
+
* tags: [ Verifiable Credentials ]
|
|
261
261
|
* summary: Revoke a Verifiable Credential.
|
|
262
262
|
* 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.
|
|
263
263
|
* operationId: revoke
|
|
@@ -350,7 +350,7 @@ export class CredentialController {
|
|
|
350
350
|
*
|
|
351
351
|
* /credential/suspend:
|
|
352
352
|
* post:
|
|
353
|
-
* tags: [
|
|
353
|
+
* tags: [ Verifiable Credentials ]
|
|
354
354
|
* summary: Suspend a Verifiable Credential.
|
|
355
355
|
* description: This endpoint suspends a given Verifiable Credential. As input, it can take the VC-JWT as a string or the entire credential itself.
|
|
356
356
|
* operationId: suspend
|
|
@@ -440,7 +440,7 @@ export class CredentialController {
|
|
|
440
440
|
*
|
|
441
441
|
* /credential/reinstate:
|
|
442
442
|
* post:
|
|
443
|
-
* tags: [
|
|
443
|
+
* tags: [ Verifiable Credentials ]
|
|
444
444
|
* summary: Reinstate a suspended Verifiable Credential.
|
|
445
445
|
* 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.
|
|
446
446
|
* operationId: reinstate
|
|
@@ -4,12 +4,13 @@ export declare class DIDController {
|
|
|
4
4
|
static updateDIDValidator: import("express-validator").ValidationChainWithExtensions<"isDID" | "isDIDArray" | "isDIDDocument" | "isVerificationMethod" | "isCreateDIDDocumentService" | "isService" | "isCheqdDidLinkedAlsoKnownAs" | "isKeyDID" | "isW3CCheqdCredential" | "isW3CCheqdCredentials" | "isW3CCheqdPresentation" | "isVeridaDID">[];
|
|
5
5
|
static deactivateDIDValidator: import("express-validator").ValidationChainWithExtensions<"isDID" | "isDIDArray" | "isDIDDocument" | "isVerificationMethod" | "isCreateDIDDocumentService" | "isService" | "isCheqdDidLinkedAlsoKnownAs" | "isKeyDID" | "isW3CCheqdCredential" | "isW3CCheqdCredentials" | "isW3CCheqdPresentation" | "isVeridaDID">[];
|
|
6
6
|
static importDIDValidator: import("express-validator").ValidationChainWithExtensions<"isDID" | "isDIDArray" | "isDIDDocument" | "isVerificationMethod" | "isCreateDIDDocumentService" | "isService" | "isCheqdDidLinkedAlsoKnownAs" | "isKeyDID" | "isW3CCheqdCredential" | "isW3CCheqdCredentials" | "isW3CCheqdPresentation" | "isVeridaDID">[];
|
|
7
|
+
static listDIDValidator: import("express-validator").ValidationChain[];
|
|
7
8
|
/**
|
|
8
9
|
* @openapi
|
|
9
10
|
*
|
|
10
11
|
* /did/create:
|
|
11
12
|
* post:
|
|
12
|
-
* tags: [
|
|
13
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
13
14
|
* summary: Create a DID Document.
|
|
14
15
|
* 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.
|
|
15
16
|
* requestBody:
|
|
@@ -52,7 +53,7 @@ export declare class DIDController {
|
|
|
52
53
|
*
|
|
53
54
|
* /did/update:
|
|
54
55
|
* post:
|
|
55
|
-
* tags: [
|
|
56
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
56
57
|
* summary: Update a DID Document.
|
|
57
58
|
* 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.
|
|
58
59
|
* requestBody:
|
|
@@ -83,7 +84,7 @@ export declare class DIDController {
|
|
|
83
84
|
*
|
|
84
85
|
* /did/import:
|
|
85
86
|
* post:
|
|
86
|
-
* tags: [
|
|
87
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
87
88
|
* summary: Import a DID Document.
|
|
88
89
|
* description: This endpoint imports a decentralized identifier associated with the user's account for custodian-mode clients.
|
|
89
90
|
* requestBody:
|
|
@@ -126,7 +127,7 @@ export declare class DIDController {
|
|
|
126
127
|
*
|
|
127
128
|
* /did/deactivate/{did}:
|
|
128
129
|
* post:
|
|
129
|
-
* tags: [
|
|
130
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
130
131
|
* summary: Deactivate a DID Document.
|
|
131
132
|
* description: This endpoint deactivates a DID Document by taking the DID identifier as input. Must be called and signed by the DID owner.
|
|
132
133
|
* parameters:
|
|
@@ -164,18 +165,45 @@ export declare class DIDController {
|
|
|
164
165
|
*
|
|
165
166
|
* /did/list:
|
|
166
167
|
* get:
|
|
167
|
-
* tags: [
|
|
168
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
168
169
|
* summary: Fetch DIDs associated with an account.
|
|
169
170
|
* description: This endpoint returns the list of DIDs controlled by the account.
|
|
171
|
+
* parameters:
|
|
172
|
+
* - in: query
|
|
173
|
+
* name: network
|
|
174
|
+
* description: Filter DID by the network published.
|
|
175
|
+
* schema:
|
|
176
|
+
* type: string
|
|
177
|
+
* enum:
|
|
178
|
+
* - mainnet
|
|
179
|
+
* - testnet
|
|
180
|
+
* required: false
|
|
181
|
+
* - in: query
|
|
182
|
+
* name: createdAt
|
|
183
|
+
* description: Filter resource by created date
|
|
184
|
+
* schema:
|
|
185
|
+
* type: string
|
|
186
|
+
* format: date
|
|
187
|
+
* required: false
|
|
188
|
+
* - in: query
|
|
189
|
+
* name: page
|
|
190
|
+
* description: Page number.
|
|
191
|
+
* schema:
|
|
192
|
+
* type: number
|
|
193
|
+
* required: false
|
|
194
|
+
* - in: query
|
|
195
|
+
* name: limit
|
|
196
|
+
* description: Number of items to be listed in a single page.
|
|
197
|
+
* schema:
|
|
198
|
+
* type: number
|
|
199
|
+
* required: false
|
|
170
200
|
* responses:
|
|
171
201
|
* 200:
|
|
172
202
|
* description: The request was successful.
|
|
173
203
|
* content:
|
|
174
204
|
* application/json:
|
|
175
205
|
* schema:
|
|
176
|
-
*
|
|
177
|
-
* items:
|
|
178
|
-
* type: string
|
|
206
|
+
* $ref: '#/components/schemas/ListDidResult'
|
|
179
207
|
* 400:
|
|
180
208
|
* $ref: '#/components/schemas/InvalidRequest'
|
|
181
209
|
* 401:
|
|
@@ -189,7 +217,7 @@ export declare class DIDController {
|
|
|
189
217
|
*
|
|
190
218
|
* /did/search/{did}:
|
|
191
219
|
* get:
|
|
192
|
-
* tags: [
|
|
220
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
193
221
|
* summary: Resolve a DID Document.
|
|
194
222
|
* 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>.
|
|
195
223
|
* parameters:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"did.d.ts","sourceRoot":"","sources":["../../../src/controllers/api/did.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"did.d.ts","sourceRoot":"","sources":["../../../src/controllers/api/did.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAgDjD,qBAAa,aAAa;IACzB,OAAc,kBAAkB,yTA0D9B;IAEF,OAAc,kBAAkB,yTAyB9B;IAEF,OAAc,sBAAsB,yTAAqD;IAEzF,OAAc,kBAAkB,yTAoB9B;IAEF,OAAc,gBAAgB,gDAO5B;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IAEU,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;IAgI3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IAEU,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;IA0F3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IAEU,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;IA6E3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IAEU,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;IA2C/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;IACU,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;IAuBzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqEG;IACU,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;CA8B/D"}
|
|
@@ -18,6 +18,7 @@ import { OperationCategoryNameEnum, OperationNameEnum } from '../../types/consta
|
|
|
18
18
|
import { arePublicKeyHexsInWallet } from '../../services/helpers.js';
|
|
19
19
|
import { CheqdProviderErrorCodes } from '@cheqd/did-provider-cheqd';
|
|
20
20
|
import { validate } from '../validator/decorator.js';
|
|
21
|
+
import { query } from 'express-validator';
|
|
21
22
|
export class DIDController {
|
|
22
23
|
static createDIDValidator = [
|
|
23
24
|
check('didDocument').optional().isObject().withMessage('Should be JSON object').bail().isDIDDocument(),
|
|
@@ -121,12 +122,20 @@ export class DIDController {
|
|
|
121
122
|
.withMessage('KeyImportRequest object is invalid, privateKeyHex is required, Property ivHex, salt is required when encrypted is set to true, property type should be Ed25519 or Secp256k1')
|
|
122
123
|
.bail(),
|
|
123
124
|
];
|
|
125
|
+
static listDIDValidator = [
|
|
126
|
+
query('network')
|
|
127
|
+
.optional()
|
|
128
|
+
.isString()
|
|
129
|
+
.isIn([CheqdNetwork.Mainnet, CheqdNetwork.Testnet])
|
|
130
|
+
.withMessage('Invalid network')
|
|
131
|
+
.bail(),
|
|
132
|
+
];
|
|
124
133
|
/**
|
|
125
134
|
* @openapi
|
|
126
135
|
*
|
|
127
136
|
* /did/create:
|
|
128
137
|
* post:
|
|
129
|
-
* tags: [
|
|
138
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
130
139
|
* summary: Create a DID Document.
|
|
131
140
|
* 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.
|
|
132
141
|
* requestBody:
|
|
@@ -275,7 +284,7 @@ export class DIDController {
|
|
|
275
284
|
*
|
|
276
285
|
* /did/update:
|
|
277
286
|
* post:
|
|
278
|
-
* tags: [
|
|
287
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
279
288
|
* summary: Update a DID Document.
|
|
280
289
|
* 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.
|
|
281
290
|
* requestBody:
|
|
@@ -383,7 +392,7 @@ export class DIDController {
|
|
|
383
392
|
*
|
|
384
393
|
* /did/import:
|
|
385
394
|
* post:
|
|
386
|
-
* tags: [
|
|
395
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
387
396
|
* summary: Import a DID Document.
|
|
388
397
|
* description: This endpoint imports a decentralized identifier associated with the user's account for custodian-mode clients.
|
|
389
398
|
* requestBody:
|
|
@@ -486,7 +495,7 @@ export class DIDController {
|
|
|
486
495
|
*
|
|
487
496
|
* /did/deactivate/{did}:
|
|
488
497
|
* post:
|
|
489
|
-
* tags: [
|
|
498
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
490
499
|
* summary: Deactivate a DID Document.
|
|
491
500
|
* description: This endpoint deactivates a DID Document by taking the DID identifier as input. Must be called and signed by the DID owner.
|
|
492
501
|
* parameters:
|
|
@@ -561,18 +570,45 @@ export class DIDController {
|
|
|
561
570
|
*
|
|
562
571
|
* /did/list:
|
|
563
572
|
* get:
|
|
564
|
-
* tags: [
|
|
573
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
565
574
|
* summary: Fetch DIDs associated with an account.
|
|
566
575
|
* description: This endpoint returns the list of DIDs controlled by the account.
|
|
576
|
+
* parameters:
|
|
577
|
+
* - in: query
|
|
578
|
+
* name: network
|
|
579
|
+
* description: Filter DID by the network published.
|
|
580
|
+
* schema:
|
|
581
|
+
* type: string
|
|
582
|
+
* enum:
|
|
583
|
+
* - mainnet
|
|
584
|
+
* - testnet
|
|
585
|
+
* required: false
|
|
586
|
+
* - in: query
|
|
587
|
+
* name: createdAt
|
|
588
|
+
* description: Filter resource by created date
|
|
589
|
+
* schema:
|
|
590
|
+
* type: string
|
|
591
|
+
* format: date
|
|
592
|
+
* required: false
|
|
593
|
+
* - in: query
|
|
594
|
+
* name: page
|
|
595
|
+
* description: Page number.
|
|
596
|
+
* schema:
|
|
597
|
+
* type: number
|
|
598
|
+
* required: false
|
|
599
|
+
* - in: query
|
|
600
|
+
* name: limit
|
|
601
|
+
* description: Number of items to be listed in a single page.
|
|
602
|
+
* schema:
|
|
603
|
+
* type: number
|
|
604
|
+
* required: false
|
|
567
605
|
* responses:
|
|
568
606
|
* 200:
|
|
569
607
|
* description: The request was successful.
|
|
570
608
|
* content:
|
|
571
609
|
* application/json:
|
|
572
610
|
* schema:
|
|
573
|
-
*
|
|
574
|
-
* items:
|
|
575
|
-
* type: string
|
|
611
|
+
* $ref: '#/components/schemas/ListDidResult'
|
|
576
612
|
* 400:
|
|
577
613
|
* $ref: '#/components/schemas/InvalidRequest'
|
|
578
614
|
* 401:
|
|
@@ -582,7 +618,7 @@ export class DIDController {
|
|
|
582
618
|
*/
|
|
583
619
|
async getDids(request, response) {
|
|
584
620
|
// Extract did from params
|
|
585
|
-
const { did } = request.
|
|
621
|
+
const { did, network, page, limit } = request.query;
|
|
586
622
|
// Get strategy e.g. postgres or local
|
|
587
623
|
const identityServiceStrategySetup = response.locals.customer
|
|
588
624
|
? new IdentityServiceStrategySetup(response.locals.customer.customerId)
|
|
@@ -590,7 +626,7 @@ export class DIDController {
|
|
|
590
626
|
try {
|
|
591
627
|
const didDocument = did
|
|
592
628
|
? await identityServiceStrategySetup.agent.resolveDid(did)
|
|
593
|
-
: await identityServiceStrategySetup.agent.listDids(response.locals.customer);
|
|
629
|
+
: await identityServiceStrategySetup.agent.listDids({ network, page, limit }, response.locals.customer);
|
|
594
630
|
return response
|
|
595
631
|
.status(StatusCodes.OK)
|
|
596
632
|
.json(didDocument);
|
|
@@ -606,7 +642,7 @@ export class DIDController {
|
|
|
606
642
|
*
|
|
607
643
|
* /did/search/{did}:
|
|
608
644
|
* get:
|
|
609
|
-
* tags: [
|
|
645
|
+
* tags: [ Decentralized Identifiers (DIDs) ]
|
|
610
646
|
* summary: Resolve a DID Document.
|
|
611
647
|
* 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>.
|
|
612
648
|
* parameters:
|