@cheqd/studio 3.3.0-develop.6 → 3.4.0-develop.1
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 +4 -0
- package/dist/app.js.map +1 -1
- package/dist/controllers/api/accreditation.d.ts +94 -0
- package/dist/controllers/api/accreditation.d.ts.map +1 -0
- package/dist/controllers/api/accreditation.js +376 -0
- package/dist/controllers/api/accreditation.js.map +1 -0
- package/dist/controllers/validator/index.d.ts +1 -1
- package/dist/controllers/validator/index.d.ts.map +1 -1
- package/dist/controllers/validator/index.js +1 -1
- package/dist/controllers/validator/index.js.map +1 -1
- package/dist/helpers/helpers.d.ts +1 -0
- package/dist/helpers/helpers.d.ts.map +1 -1
- package/dist/helpers/helpers.js +3 -0
- package/dist/helpers/helpers.js.map +1 -1
- package/dist/middleware/auth/routes/api/accreditation-auth.d.ts +5 -0
- package/dist/middleware/auth/routes/api/accreditation-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/accreditation-auth.js +15 -0
- package/dist/middleware/auth/routes/api/accreditation-auth.js.map +1 -0
- 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/accreditation.d.ts +11 -0
- package/dist/services/api/accreditation.d.ts.map +1 -0
- package/dist/services/api/accreditation.js +116 -0
- package/dist/services/api/accreditation.js.map +1 -0
- package/dist/services/api/credentials.d.ts +1 -1
- package/dist/services/api/credentials.d.ts.map +1 -1
- package/dist/services/api/credentials.js +10 -2
- package/dist/services/api/credentials.js.map +1 -1
- package/dist/services/connectors/resource.d.ts +22 -0
- package/dist/services/connectors/resource.d.ts.map +1 -0
- package/dist/services/connectors/resource.js +38 -0
- package/dist/services/connectors/resource.js.map +1 -0
- package/dist/services/w3c-credential.d.ts +1 -0
- package/dist/services/w3c-credential.d.ts.map +1 -1
- package/dist/services/w3c-credential.js +2 -0
- package/dist/services/w3c-credential.js.map +1 -1
- package/dist/static/swagger-api.json +403 -0
- package/dist/types/accreditation.d.ts +66 -0
- package/dist/types/accreditation.d.ts.map +1 -0
- package/dist/types/accreditation.js +23 -0
- package/dist/types/accreditation.js.map +1 -0
- package/dist/types/credential.d.ts +6 -0
- package/dist/types/credential.d.ts.map +1 -1
- package/dist/types/credential.js +5 -1
- package/dist/types/credential.js.map +1 -1
- package/dist/types/swagger-api-types.d.ts +200 -0
- package/dist/types/swagger-api-types.d.ts.map +1 -1
- package/dist/types/swagger-api-types.js +200 -0
- package/dist/types/swagger-api-types.js.map +1 -1
- package/package.json +23 -23
|
@@ -130,6 +130,11 @@
|
|
|
130
130
|
* documentPresence: Physical,
|
|
131
131
|
* licenseNumber: 123AB4567
|
|
132
132
|
* }
|
|
133
|
+
* connector:
|
|
134
|
+
* type: string
|
|
135
|
+
* enum:
|
|
136
|
+
* - verida
|
|
137
|
+
* - resource
|
|
133
138
|
* required:
|
|
134
139
|
* - issuerDid
|
|
135
140
|
* - subjectDid
|
|
@@ -322,6 +327,194 @@
|
|
|
322
327
|
* id: did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0#key-1
|
|
323
328
|
* publicKeyBase58: BTJiso1S4iSiReP6wGksSneGfiKHxz9SYcm2KknpqBJt
|
|
324
329
|
* type: Ed25519VerificationKey2018
|
|
330
|
+
* AccreditationIssueRequest:
|
|
331
|
+
* description: Input fields for the creating a Verifiable Accreditation.
|
|
332
|
+
* type: object
|
|
333
|
+
* additionalProperties: false
|
|
334
|
+
* properties:
|
|
335
|
+
* issuerDid:
|
|
336
|
+
* description: DID of the Verifiable Accreditation issuer. This needs to be a `did:cheqd` DID.
|
|
337
|
+
* type: string
|
|
338
|
+
* example: did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0
|
|
339
|
+
* subjectDid:
|
|
340
|
+
* description: DID of the Verifiable Accreditation holder/subject. This needs to be a `did:cheqd` DID.
|
|
341
|
+
* type: string
|
|
342
|
+
* example: did:cheqd:testnet:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK
|
|
343
|
+
* schemas:
|
|
344
|
+
* description: The list of schemas the subject DID is accredited for.
|
|
345
|
+
* type: array
|
|
346
|
+
* items:
|
|
347
|
+
* $ref: '#/components/schemas/SchemaUrl'
|
|
348
|
+
* attributes:
|
|
349
|
+
* description: JSON object containing the attributes to be included in the Accreditation.
|
|
350
|
+
* type: object
|
|
351
|
+
* '@context':
|
|
352
|
+
* description: Optional properties to be included in the `@context` property of the Accreditation.
|
|
353
|
+
* type: array
|
|
354
|
+
* items:
|
|
355
|
+
* type: string
|
|
356
|
+
* example: [https://schema.org/schema.jsonld, https://veramo.io/contexts/profile/v1]
|
|
357
|
+
* parentAccreditation:
|
|
358
|
+
* description: DID Url of the parent Verifiable Accreditation.
|
|
359
|
+
* type: string
|
|
360
|
+
* rootAuthorization:
|
|
361
|
+
* description: DID Url of the root Verifiable Accreditation.
|
|
362
|
+
* type: string
|
|
363
|
+
* type:
|
|
364
|
+
* description: Optional properties to be included in the `type` property of the Accreditation.
|
|
365
|
+
* type: array
|
|
366
|
+
* items:
|
|
367
|
+
* type: string
|
|
368
|
+
* example: [Person]
|
|
369
|
+
* expirationDate:
|
|
370
|
+
* description: Optional expiration date according to the <a href=https://www.w3.org/TR/vc-data-model/#expiration> VC Data Model specification</a>.
|
|
371
|
+
* type: string
|
|
372
|
+
* format: date-time
|
|
373
|
+
* example: 2023-06-08T13:49:28.000Z
|
|
374
|
+
* format:
|
|
375
|
+
* description: Format of the Verifiable Accreditation. Defaults to VC-JWT.
|
|
376
|
+
* type: string
|
|
377
|
+
* enum:
|
|
378
|
+
* - jwt
|
|
379
|
+
* - jsonld
|
|
380
|
+
* example: jwt
|
|
381
|
+
* credentialStatus:
|
|
382
|
+
* description: Optional `credentialStatus` properties for VC revocation or suspension. Takes `statusListName` and `statusListPurpose` as inputs.
|
|
383
|
+
* type: object
|
|
384
|
+
* required:
|
|
385
|
+
* - statusPurpose
|
|
386
|
+
* - statusListName
|
|
387
|
+
* properties:
|
|
388
|
+
* statusPurpose:
|
|
389
|
+
* type: string
|
|
390
|
+
* enum:
|
|
391
|
+
* - revocation
|
|
392
|
+
* - suspension
|
|
393
|
+
* statusListName:
|
|
394
|
+
* type: string
|
|
395
|
+
* statusListIndex:
|
|
396
|
+
* type: number
|
|
397
|
+
* statusListVersion:
|
|
398
|
+
* type: string
|
|
399
|
+
* format: date-time
|
|
400
|
+
* statusListRangeStart:
|
|
401
|
+
* type: number
|
|
402
|
+
* statusListRangeEnd:
|
|
403
|
+
* type: number
|
|
404
|
+
* indexNotIn:
|
|
405
|
+
* type: number
|
|
406
|
+
* example:
|
|
407
|
+
* statusPurpose: revocation
|
|
408
|
+
* statusListName: employee-credentials
|
|
409
|
+
* termsOfUse:
|
|
410
|
+
* description: Terms of use can be utilized by an issuer or a holder to communicate the terms under which a verifiable credential was issued.
|
|
411
|
+
* type: array
|
|
412
|
+
* items:
|
|
413
|
+
* type: object
|
|
414
|
+
* example: {
|
|
415
|
+
* type: IssuerPolicy,
|
|
416
|
+
* id: http://example.com/policies/credential/4,
|
|
417
|
+
* profile: http://example.com/profiles/credential,
|
|
418
|
+
* prohibition: [{
|
|
419
|
+
* assigner: https://example.edu/issuers/14,
|
|
420
|
+
* assignee: AllVerifiers,
|
|
421
|
+
* target: http://example.edu/credentials/3732,
|
|
422
|
+
* action: [ "Archival" ]
|
|
423
|
+
* }]
|
|
424
|
+
* }
|
|
425
|
+
* refreshService:
|
|
426
|
+
* description: RefreshService property MUST be one or more refresh services that provides enough information to the recipient's software such that the recipient can refresh the verifiable credential.
|
|
427
|
+
* type: array
|
|
428
|
+
* items:
|
|
429
|
+
* type: object
|
|
430
|
+
* example: {
|
|
431
|
+
* type: ManualRefreshService2018,
|
|
432
|
+
* id: https://example.edu/refresh/3732
|
|
433
|
+
* }
|
|
434
|
+
* evidence:
|
|
435
|
+
* description: Evidence property MUST be one or more evidence schemes providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential.
|
|
436
|
+
* type: array
|
|
437
|
+
* items:
|
|
438
|
+
* type: object
|
|
439
|
+
* example: {
|
|
440
|
+
* type: ["DocumentVerification"],
|
|
441
|
+
* id: https://example.edu/evidence/f2aeec97-fc0d-42bf-8ca7-0548192d4231,
|
|
442
|
+
* verifier: "https://example.edu/issuers/14",
|
|
443
|
+
* evidenceDocument: DriversLicense,
|
|
444
|
+
* subjectPresence: Physical,
|
|
445
|
+
* documentPresence: Physical,
|
|
446
|
+
* licenseNumber: 123AB4567
|
|
447
|
+
* }
|
|
448
|
+
* connector:
|
|
449
|
+
* type: string
|
|
450
|
+
* enum:
|
|
451
|
+
* - verida
|
|
452
|
+
* - resource
|
|
453
|
+
* required:
|
|
454
|
+
* - issuerDid
|
|
455
|
+
* - subjectDid
|
|
456
|
+
* - schemas
|
|
457
|
+
* example:
|
|
458
|
+
* issuerDid: did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0
|
|
459
|
+
* subjectDid: did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK
|
|
460
|
+
* schemas:
|
|
461
|
+
* - type: MuseumPassCredential
|
|
462
|
+
* url: https://resolver.cheqd.net/1.0/identifiers/did:cheqd:testnet:0a5b94d0-a417-48ed-a6f5-4abc9e95888d?resourceName=MuseumPassCredentialSchema&resourceType=JsonSchemaValidator2018
|
|
463
|
+
* '@context':
|
|
464
|
+
* - https://schema.org
|
|
465
|
+
* type:
|
|
466
|
+
* - Person
|
|
467
|
+
* format: jwt
|
|
468
|
+
* credentialStatus:
|
|
469
|
+
* statusPurpose: revocation
|
|
470
|
+
* statusListName: employee-credentials
|
|
471
|
+
* statusListIndex: 10
|
|
472
|
+
* AccreditationVerifyRequest:
|
|
473
|
+
* type: object
|
|
474
|
+
* properties:
|
|
475
|
+
* subjectDid:
|
|
476
|
+
* description: DID of the Verifiable Accreditation holder/subject. This needs to be a `did:key` DID.
|
|
477
|
+
* type: string
|
|
478
|
+
* example: did:cheqd:testnet:5efa5126-c070-420f-a9c2-d22ae6eefb92
|
|
479
|
+
* didUrl:
|
|
480
|
+
* description: Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.
|
|
481
|
+
* type: string
|
|
482
|
+
* example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e?resourceName=cheqd-issuer-logo&resourceType=CredentialArtwork
|
|
483
|
+
* did:
|
|
484
|
+
* type: string
|
|
485
|
+
* example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e
|
|
486
|
+
* resourceId:
|
|
487
|
+
* type: string
|
|
488
|
+
* example: 398cee0a-efac-4643-9f4c-74c48c72a14b
|
|
489
|
+
* resourceName:
|
|
490
|
+
* type: string
|
|
491
|
+
* example: cheqd-issuer-logo
|
|
492
|
+
* resourceType:
|
|
493
|
+
* type: string
|
|
494
|
+
* example: CredentialArtwork
|
|
495
|
+
* schemas:
|
|
496
|
+
* description: The list of schemas the subject DID is accredited for.
|
|
497
|
+
* type: array
|
|
498
|
+
* items:
|
|
499
|
+
* $ref: '#/components/schemas/SchemaUrl'
|
|
500
|
+
* policies:
|
|
501
|
+
* description: Custom verification policies to execute when verifying Accreditation.
|
|
502
|
+
* type: object
|
|
503
|
+
* properties:
|
|
504
|
+
* issuanceDate:
|
|
505
|
+
* description: Policy to skip the `issuanceDate` (`nbf`) timestamp check when set to `false`.
|
|
506
|
+
* type: boolean
|
|
507
|
+
* default: true
|
|
508
|
+
* expirationDate:
|
|
509
|
+
* description: Policy to skip the `expirationDate` (`exp`) timestamp check when set to `false`.
|
|
510
|
+
* type: boolean
|
|
511
|
+
* default: true
|
|
512
|
+
* audience:
|
|
513
|
+
* description: Policy to skip the audience check when set to `false`.
|
|
514
|
+
* type: boolean
|
|
515
|
+
* default: false
|
|
516
|
+
* required:
|
|
517
|
+
* - subjectDid
|
|
325
518
|
* PresentationCreateRequest:
|
|
326
519
|
* type: object
|
|
327
520
|
* required:
|
|
@@ -1345,6 +1538,13 @@
|
|
|
1345
1538
|
* type: string
|
|
1346
1539
|
* primaryEmail:
|
|
1347
1540
|
* type: string
|
|
1541
|
+
* SchemaUrl:
|
|
1542
|
+
* type: object
|
|
1543
|
+
* properties:
|
|
1544
|
+
* type:
|
|
1545
|
+
* type: string
|
|
1546
|
+
* url:
|
|
1547
|
+
* type: string
|
|
1348
1548
|
* InvalidRequest:
|
|
1349
1549
|
* description: A problem with the input fields has occurred. Additional state information plus metadata may be available in the response body.
|
|
1350
1550
|
* type: object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger-api-types.d.ts","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"swagger-api-types.d.ts","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgiDG"}
|
|
@@ -131,6 +131,11 @@
|
|
|
131
131
|
* documentPresence: Physical,
|
|
132
132
|
* licenseNumber: 123AB4567
|
|
133
133
|
* }
|
|
134
|
+
* connector:
|
|
135
|
+
* type: string
|
|
136
|
+
* enum:
|
|
137
|
+
* - verida
|
|
138
|
+
* - resource
|
|
134
139
|
* required:
|
|
135
140
|
* - issuerDid
|
|
136
141
|
* - subjectDid
|
|
@@ -323,6 +328,194 @@
|
|
|
323
328
|
* id: did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0#key-1
|
|
324
329
|
* publicKeyBase58: BTJiso1S4iSiReP6wGksSneGfiKHxz9SYcm2KknpqBJt
|
|
325
330
|
* type: Ed25519VerificationKey2018
|
|
331
|
+
* AccreditationIssueRequest:
|
|
332
|
+
* description: Input fields for the creating a Verifiable Accreditation.
|
|
333
|
+
* type: object
|
|
334
|
+
* additionalProperties: false
|
|
335
|
+
* properties:
|
|
336
|
+
* issuerDid:
|
|
337
|
+
* description: DID of the Verifiable Accreditation issuer. This needs to be a `did:cheqd` DID.
|
|
338
|
+
* type: string
|
|
339
|
+
* example: did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0
|
|
340
|
+
* subjectDid:
|
|
341
|
+
* description: DID of the Verifiable Accreditation holder/subject. This needs to be a `did:cheqd` DID.
|
|
342
|
+
* type: string
|
|
343
|
+
* example: did:cheqd:testnet:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK
|
|
344
|
+
* schemas:
|
|
345
|
+
* description: The list of schemas the subject DID is accredited for.
|
|
346
|
+
* type: array
|
|
347
|
+
* items:
|
|
348
|
+
* $ref: '#/components/schemas/SchemaUrl'
|
|
349
|
+
* attributes:
|
|
350
|
+
* description: JSON object containing the attributes to be included in the Accreditation.
|
|
351
|
+
* type: object
|
|
352
|
+
* '@context':
|
|
353
|
+
* description: Optional properties to be included in the `@context` property of the Accreditation.
|
|
354
|
+
* type: array
|
|
355
|
+
* items:
|
|
356
|
+
* type: string
|
|
357
|
+
* example: [https://schema.org/schema.jsonld, https://veramo.io/contexts/profile/v1]
|
|
358
|
+
* parentAccreditation:
|
|
359
|
+
* description: DID Url of the parent Verifiable Accreditation.
|
|
360
|
+
* type: string
|
|
361
|
+
* rootAuthorization:
|
|
362
|
+
* description: DID Url of the root Verifiable Accreditation.
|
|
363
|
+
* type: string
|
|
364
|
+
* type:
|
|
365
|
+
* description: Optional properties to be included in the `type` property of the Accreditation.
|
|
366
|
+
* type: array
|
|
367
|
+
* items:
|
|
368
|
+
* type: string
|
|
369
|
+
* example: [Person]
|
|
370
|
+
* expirationDate:
|
|
371
|
+
* description: Optional expiration date according to the <a href=https://www.w3.org/TR/vc-data-model/#expiration> VC Data Model specification</a>.
|
|
372
|
+
* type: string
|
|
373
|
+
* format: date-time
|
|
374
|
+
* example: 2023-06-08T13:49:28.000Z
|
|
375
|
+
* format:
|
|
376
|
+
* description: Format of the Verifiable Accreditation. Defaults to VC-JWT.
|
|
377
|
+
* type: string
|
|
378
|
+
* enum:
|
|
379
|
+
* - jwt
|
|
380
|
+
* - jsonld
|
|
381
|
+
* example: jwt
|
|
382
|
+
* credentialStatus:
|
|
383
|
+
* description: Optional `credentialStatus` properties for VC revocation or suspension. Takes `statusListName` and `statusListPurpose` as inputs.
|
|
384
|
+
* type: object
|
|
385
|
+
* required:
|
|
386
|
+
* - statusPurpose
|
|
387
|
+
* - statusListName
|
|
388
|
+
* properties:
|
|
389
|
+
* statusPurpose:
|
|
390
|
+
* type: string
|
|
391
|
+
* enum:
|
|
392
|
+
* - revocation
|
|
393
|
+
* - suspension
|
|
394
|
+
* statusListName:
|
|
395
|
+
* type: string
|
|
396
|
+
* statusListIndex:
|
|
397
|
+
* type: number
|
|
398
|
+
* statusListVersion:
|
|
399
|
+
* type: string
|
|
400
|
+
* format: date-time
|
|
401
|
+
* statusListRangeStart:
|
|
402
|
+
* type: number
|
|
403
|
+
* statusListRangeEnd:
|
|
404
|
+
* type: number
|
|
405
|
+
* indexNotIn:
|
|
406
|
+
* type: number
|
|
407
|
+
* example:
|
|
408
|
+
* statusPurpose: revocation
|
|
409
|
+
* statusListName: employee-credentials
|
|
410
|
+
* termsOfUse:
|
|
411
|
+
* description: Terms of use can be utilized by an issuer or a holder to communicate the terms under which a verifiable credential was issued.
|
|
412
|
+
* type: array
|
|
413
|
+
* items:
|
|
414
|
+
* type: object
|
|
415
|
+
* example: {
|
|
416
|
+
* type: IssuerPolicy,
|
|
417
|
+
* id: http://example.com/policies/credential/4,
|
|
418
|
+
* profile: http://example.com/profiles/credential,
|
|
419
|
+
* prohibition: [{
|
|
420
|
+
* assigner: https://example.edu/issuers/14,
|
|
421
|
+
* assignee: AllVerifiers,
|
|
422
|
+
* target: http://example.edu/credentials/3732,
|
|
423
|
+
* action: [ "Archival" ]
|
|
424
|
+
* }]
|
|
425
|
+
* }
|
|
426
|
+
* refreshService:
|
|
427
|
+
* description: RefreshService property MUST be one or more refresh services that provides enough information to the recipient's software such that the recipient can refresh the verifiable credential.
|
|
428
|
+
* type: array
|
|
429
|
+
* items:
|
|
430
|
+
* type: object
|
|
431
|
+
* example: {
|
|
432
|
+
* type: ManualRefreshService2018,
|
|
433
|
+
* id: https://example.edu/refresh/3732
|
|
434
|
+
* }
|
|
435
|
+
* evidence:
|
|
436
|
+
* description: Evidence property MUST be one or more evidence schemes providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential.
|
|
437
|
+
* type: array
|
|
438
|
+
* items:
|
|
439
|
+
* type: object
|
|
440
|
+
* example: {
|
|
441
|
+
* type: ["DocumentVerification"],
|
|
442
|
+
* id: https://example.edu/evidence/f2aeec97-fc0d-42bf-8ca7-0548192d4231,
|
|
443
|
+
* verifier: "https://example.edu/issuers/14",
|
|
444
|
+
* evidenceDocument: DriversLicense,
|
|
445
|
+
* subjectPresence: Physical,
|
|
446
|
+
* documentPresence: Physical,
|
|
447
|
+
* licenseNumber: 123AB4567
|
|
448
|
+
* }
|
|
449
|
+
* connector:
|
|
450
|
+
* type: string
|
|
451
|
+
* enum:
|
|
452
|
+
* - verida
|
|
453
|
+
* - resource
|
|
454
|
+
* required:
|
|
455
|
+
* - issuerDid
|
|
456
|
+
* - subjectDid
|
|
457
|
+
* - schemas
|
|
458
|
+
* example:
|
|
459
|
+
* issuerDid: did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0
|
|
460
|
+
* subjectDid: did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK
|
|
461
|
+
* schemas:
|
|
462
|
+
* - type: MuseumPassCredential
|
|
463
|
+
* url: https://resolver.cheqd.net/1.0/identifiers/did:cheqd:testnet:0a5b94d0-a417-48ed-a6f5-4abc9e95888d?resourceName=MuseumPassCredentialSchema&resourceType=JsonSchemaValidator2018
|
|
464
|
+
* '@context':
|
|
465
|
+
* - https://schema.org
|
|
466
|
+
* type:
|
|
467
|
+
* - Person
|
|
468
|
+
* format: jwt
|
|
469
|
+
* credentialStatus:
|
|
470
|
+
* statusPurpose: revocation
|
|
471
|
+
* statusListName: employee-credentials
|
|
472
|
+
* statusListIndex: 10
|
|
473
|
+
* AccreditationVerifyRequest:
|
|
474
|
+
* type: object
|
|
475
|
+
* properties:
|
|
476
|
+
* subjectDid:
|
|
477
|
+
* description: DID of the Verifiable Accreditation holder/subject. This needs to be a `did:key` DID.
|
|
478
|
+
* type: string
|
|
479
|
+
* example: did:cheqd:testnet:5efa5126-c070-420f-a9c2-d22ae6eefb92
|
|
480
|
+
* didUrl:
|
|
481
|
+
* description: Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.
|
|
482
|
+
* type: string
|
|
483
|
+
* example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e?resourceName=cheqd-issuer-logo&resourceType=CredentialArtwork
|
|
484
|
+
* did:
|
|
485
|
+
* type: string
|
|
486
|
+
* example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e
|
|
487
|
+
* resourceId:
|
|
488
|
+
* type: string
|
|
489
|
+
* example: 398cee0a-efac-4643-9f4c-74c48c72a14b
|
|
490
|
+
* resourceName:
|
|
491
|
+
* type: string
|
|
492
|
+
* example: cheqd-issuer-logo
|
|
493
|
+
* resourceType:
|
|
494
|
+
* type: string
|
|
495
|
+
* example: CredentialArtwork
|
|
496
|
+
* schemas:
|
|
497
|
+
* description: The list of schemas the subject DID is accredited for.
|
|
498
|
+
* type: array
|
|
499
|
+
* items:
|
|
500
|
+
* $ref: '#/components/schemas/SchemaUrl'
|
|
501
|
+
* policies:
|
|
502
|
+
* description: Custom verification policies to execute when verifying Accreditation.
|
|
503
|
+
* type: object
|
|
504
|
+
* properties:
|
|
505
|
+
* issuanceDate:
|
|
506
|
+
* description: Policy to skip the `issuanceDate` (`nbf`) timestamp check when set to `false`.
|
|
507
|
+
* type: boolean
|
|
508
|
+
* default: true
|
|
509
|
+
* expirationDate:
|
|
510
|
+
* description: Policy to skip the `expirationDate` (`exp`) timestamp check when set to `false`.
|
|
511
|
+
* type: boolean
|
|
512
|
+
* default: true
|
|
513
|
+
* audience:
|
|
514
|
+
* description: Policy to skip the audience check when set to `false`.
|
|
515
|
+
* type: boolean
|
|
516
|
+
* default: false
|
|
517
|
+
* required:
|
|
518
|
+
* - subjectDid
|
|
326
519
|
* PresentationCreateRequest:
|
|
327
520
|
* type: object
|
|
328
521
|
* required:
|
|
@@ -1346,6 +1539,13 @@
|
|
|
1346
1539
|
* type: string
|
|
1347
1540
|
* primaryEmail:
|
|
1348
1541
|
* type: string
|
|
1542
|
+
* SchemaUrl:
|
|
1543
|
+
* type: object
|
|
1544
|
+
* properties:
|
|
1545
|
+
* type:
|
|
1546
|
+
* type: string
|
|
1547
|
+
* url:
|
|
1548
|
+
* type: string
|
|
1349
1549
|
* InvalidRequest:
|
|
1350
1550
|
* description: A problem with the input fields has occurred. Additional state information plus metadata may be available in the response body.
|
|
1351
1551
|
* type: object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger-api-types.js","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"swagger-api-types.js","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgiDG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cheqd/studio",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0-develop.1",
|
|
4
4
|
"description": "cheqd Studio Backend",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@cheqd/did-provider-cheqd": "^4.2.0",
|
|
57
|
-
"@cheqd/sdk": "^4.0.
|
|
57
|
+
"@cheqd/sdk": "^4.0.4",
|
|
58
58
|
"@cheqd/ts-proto": "^3.4.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.4",
|
|
60
60
|
"@cosmjs/encoding": "^0.32.4",
|
|
61
|
-
"@logto/express": "^2.3.
|
|
61
|
+
"@logto/express": "^2.3.16",
|
|
62
62
|
"@stablelib/ed25519": "^1.0.3",
|
|
63
63
|
"@veramo/core": "^6.0.0",
|
|
64
64
|
"@veramo/credential-ld": "^6.0.0",
|
|
@@ -76,42 +76,42 @@
|
|
|
76
76
|
"@verida/types": "^3.0.2",
|
|
77
77
|
"@verida/vda-did-resolver": "^3.0.3",
|
|
78
78
|
"bcrypt": "^5.1.1",
|
|
79
|
-
"bs58": "^
|
|
79
|
+
"bs58": "^6.0.0",
|
|
80
80
|
"cookie-parser": "^1.4.6",
|
|
81
81
|
"copyfiles": "^2.4.1",
|
|
82
82
|
"cors": "^2.8.5",
|
|
83
83
|
"cross-env": "^7.0.3",
|
|
84
84
|
"did-resolver": "^4.1.0",
|
|
85
85
|
"dotenv": "^16.4.5",
|
|
86
|
-
"express": "^4.
|
|
86
|
+
"express": "^4.21.0",
|
|
87
87
|
"express-session": "^1.18.0",
|
|
88
88
|
"express-validator": "^7.2.0",
|
|
89
|
-
"helmet": "^7.
|
|
89
|
+
"helmet": "^7.2.0",
|
|
90
90
|
"http-status-codes": "^2.3.0",
|
|
91
91
|
"js-sha3": "^0.9.3",
|
|
92
92
|
"json-stringify-safe": "^5.0.1",
|
|
93
93
|
"jsonwebtoken": "^9.0.2",
|
|
94
94
|
"jwt-decode": "^4.0.0",
|
|
95
|
-
"loglevel": "^1.9.
|
|
96
|
-
"multiformats": "^13.
|
|
95
|
+
"loglevel": "^1.9.2",
|
|
96
|
+
"multiformats": "^13.3.0",
|
|
97
97
|
"node-cache": "^5.1.2",
|
|
98
|
-
"pg": "^8.
|
|
99
|
-
"pg-connection-string": "^2.
|
|
98
|
+
"pg": "^8.13.0",
|
|
99
|
+
"pg-connection-string": "^2.7.0",
|
|
100
100
|
"secp256k1": "^5.0.0",
|
|
101
101
|
"sqlite3": "^5.1.7",
|
|
102
102
|
"stripe": "^14.25.0",
|
|
103
|
-
"swagger-ui-dist": "5.
|
|
103
|
+
"swagger-ui-dist": "5.17.14",
|
|
104
104
|
"swagger-ui-express": "^5.0.1",
|
|
105
105
|
"typeorm": "^0.3.20",
|
|
106
106
|
"uint8arrays": "^5.1.0",
|
|
107
107
|
"uri-js": "^4.4.1"
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
|
-
"@playwright/test": "^1.
|
|
110
|
+
"@playwright/test": "^1.47.2",
|
|
111
111
|
"@semantic-release/changelog": "^6.0.3",
|
|
112
112
|
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
113
113
|
"@semantic-release/git": "^10.0.1",
|
|
114
|
-
"@semantic-release/github": "^10.
|
|
114
|
+
"@semantic-release/github": "^10.3.5",
|
|
115
115
|
"@semantic-release/npm": "^12.0.1",
|
|
116
116
|
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
117
117
|
"@types/bcrypt": "^5.0.2",
|
|
@@ -123,29 +123,29 @@
|
|
|
123
123
|
"@types/express-session": "^1.18.0",
|
|
124
124
|
"@types/helmet": "^4.0.0",
|
|
125
125
|
"@types/json-stringify-safe": "^5.0.3",
|
|
126
|
-
"@types/jsonwebtoken": "^9.0.
|
|
127
|
-
"@types/node": "^20.16.
|
|
126
|
+
"@types/jsonwebtoken": "^9.0.7",
|
|
127
|
+
"@types/node": "^20.16.10",
|
|
128
128
|
"@types/secp256k1": "^4.0.6",
|
|
129
129
|
"@types/swagger-jsdoc": "^6.0.4",
|
|
130
130
|
"@types/swagger-ui-express": "^4.1.6",
|
|
131
|
-
"@types/uuid": "^
|
|
132
|
-
"@types/validator": "^13.12.
|
|
133
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
134
|
-
"@typescript-eslint/parser": "^
|
|
131
|
+
"@types/uuid": "^10.0.0",
|
|
132
|
+
"@types/validator": "^13.12.2",
|
|
133
|
+
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
|
134
|
+
"@typescript-eslint/parser": "^8.8.0",
|
|
135
135
|
"buffer": "6.0.3",
|
|
136
136
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
137
|
-
"eslint": "^8.57.
|
|
137
|
+
"eslint": "^8.57.1",
|
|
138
138
|
"eslint-config-prettier": "^9.1.0",
|
|
139
139
|
"eslint-config-typescript": "^3.0.0",
|
|
140
140
|
"jest": "^29.7.0",
|
|
141
141
|
"prettier": "^3.3.3",
|
|
142
|
-
"semantic-release": "^24.1.
|
|
142
|
+
"semantic-release": "^24.1.2",
|
|
143
143
|
"swagger-jsdoc": "^6.2.8",
|
|
144
144
|
"ts-jest": "^29.2.5",
|
|
145
145
|
"ts-loader": "^9.5.1",
|
|
146
146
|
"ts-node": "^10.9.2",
|
|
147
|
-
"tsx": "^4.19.
|
|
148
|
-
"typescript": "^5.
|
|
147
|
+
"tsx": "^4.19.1",
|
|
148
|
+
"typescript": "^5.6.2",
|
|
149
149
|
"uint8arrays": "^5.1.0"
|
|
150
150
|
},
|
|
151
151
|
"publishConfig": {
|