@cheqd/studio 3.4.0-develop.1 → 3.4.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 +3 -0
- package/dist/app.js.map +1 -1
- package/dist/controllers/api/accreditation.d.ts +133 -0
- package/dist/controllers/api/accreditation.d.ts.map +1 -1
- package/dist/controllers/api/accreditation.js +315 -24
- package/dist/controllers/api/accreditation.js.map +1 -1
- package/dist/helpers/helpers.d.ts +2 -0
- package/dist/helpers/helpers.d.ts.map +1 -1
- package/dist/helpers/helpers.js +14 -0
- package/dist/helpers/helpers.js.map +1 -1
- package/dist/middleware/auth/routes/api/accreditation-auth.d.ts.map +1 -1
- package/dist/middleware/auth/routes/api/accreditation-auth.js +6 -0
- package/dist/middleware/auth/routes/api/accreditation-auth.js.map +1 -1
- package/dist/services/api/accreditation.d.ts.map +1 -1
- package/dist/services/api/accreditation.js +24 -16
- package/dist/services/api/accreditation.js.map +1 -1
- package/dist/static/swagger-api.json +228 -18
- package/dist/types/accreditation.d.ts +23 -5
- package/dist/types/accreditation.d.ts.map +1 -1
- package/dist/types/accreditation.js.map +1 -1
- package/dist/types/common.d.ts +1 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/constants.js +1 -1
- package/dist/types/constants.js.map +1 -1
- package/dist/types/credential.d.ts +4 -4
- package/dist/types/credential.d.ts.map +1 -1
- package/dist/types/swagger-api-types.d.ts +45 -13
- package/dist/types/swagger-api-types.d.ts.map +1 -1
- package/dist/types/swagger-api-types.js +45 -13
- package/dist/types/swagger-api-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -346,6 +346,9 @@
|
|
|
346
346
|
* type: array
|
|
347
347
|
* items:
|
|
348
348
|
* $ref: '#/components/schemas/SchemaUrl'
|
|
349
|
+
* accreditationName:
|
|
350
|
+
* description: Unique name of the Verifiable Accreditation.
|
|
351
|
+
* type: string
|
|
349
352
|
* attributes:
|
|
350
353
|
* description: JSON object containing the attributes to be included in the Accreditation.
|
|
351
354
|
* type: object
|
|
@@ -356,10 +359,16 @@
|
|
|
356
359
|
* type: string
|
|
357
360
|
* example: [https://schema.org/schema.jsonld, https://veramo.io/contexts/profile/v1]
|
|
358
361
|
* parentAccreditation:
|
|
359
|
-
* description: DID
|
|
362
|
+
* description: DID URL of the parent Verifiable Accreditation, required for accredit/attest operation.
|
|
360
363
|
* type: string
|
|
361
364
|
* rootAuthorization:
|
|
362
|
-
* description: DID
|
|
365
|
+
* description: DID URL of the root Verifiable Accreditation, required for accredit/attest operation.
|
|
366
|
+
* type: string
|
|
367
|
+
* trustFramework:
|
|
368
|
+
* description: Name or Type of the Trust Framework, required for authorize operation.
|
|
369
|
+
* type: string
|
|
370
|
+
* trustFrameworkId:
|
|
371
|
+
* description: Url of the Trust Framework, required for authorize operation.
|
|
363
372
|
* type: string
|
|
364
373
|
* type:
|
|
365
374
|
* description: Optional properties to be included in the `type` property of the Accreditation.
|
|
@@ -446,26 +455,23 @@
|
|
|
446
455
|
* documentPresence: Physical,
|
|
447
456
|
* licenseNumber: 123AB4567
|
|
448
457
|
* }
|
|
449
|
-
* connector:
|
|
450
|
-
* type: string
|
|
451
|
-
* enum:
|
|
452
|
-
* - verida
|
|
453
|
-
* - resource
|
|
454
458
|
* required:
|
|
455
459
|
* - issuerDid
|
|
456
460
|
* - subjectDid
|
|
457
461
|
* - schemas
|
|
462
|
+
* - accreditationName
|
|
458
463
|
* example:
|
|
459
464
|
* issuerDid: did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0
|
|
460
|
-
* subjectDid: did:
|
|
465
|
+
* subjectDid: did:cheqd:testnet:2582fe17-9b25-45e4-8104-1cfca430f0c3
|
|
461
466
|
* schemas:
|
|
462
467
|
* - type: MuseumPassCredential
|
|
463
468
|
* 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
469
|
* format: jwt
|
|
470
|
+
* accreditationName: authorizeAccreditation
|
|
471
|
+
* trustFramework: https://learn.cheqd.io/governance/start
|
|
472
|
+
* trustFrameworkId: cheqd Governance Framework
|
|
473
|
+
* parentAccreditation: did:cheqd:testnet:15b74787-6e48-4fd5-8020-eab24e990578?resourceName=accreditAccreditation&resourceType=VerifiableAccreditationToAccredit
|
|
474
|
+
* rootAuthorization: did:cheqd:testnet:5RpEg66jhhbmASWPXJRWrA?resourceName=authorizeAccreditation&resourceType=VerifiableAuthorisationForTrustChain
|
|
469
475
|
* credentialStatus:
|
|
470
476
|
* statusPurpose: revocation
|
|
471
477
|
* statusListName: employee-credentials
|
|
@@ -478,19 +484,23 @@
|
|
|
478
484
|
* type: string
|
|
479
485
|
* example: did:cheqd:testnet:5efa5126-c070-420f-a9c2-d22ae6eefb92
|
|
480
486
|
* didUrl:
|
|
481
|
-
* description: Verifiable
|
|
487
|
+
* description: DID URL of the Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.
|
|
482
488
|
* type: string
|
|
483
489
|
* example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e?resourceName=cheqd-issuer-logo&resourceType=CredentialArtwork
|
|
484
490
|
* did:
|
|
491
|
+
* description: DID of the Verifiable Accreditation holder/subject
|
|
485
492
|
* type: string
|
|
486
493
|
* example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e
|
|
487
494
|
* resourceId:
|
|
495
|
+
* description: Unique resource identifier of the Verifiable Accreditation
|
|
488
496
|
* type: string
|
|
489
497
|
* example: 398cee0a-efac-4643-9f4c-74c48c72a14b
|
|
490
498
|
* resourceName:
|
|
499
|
+
* description: Resource name of the Verifiable Accreditation
|
|
491
500
|
* type: string
|
|
492
501
|
* example: cheqd-issuer-logo
|
|
493
502
|
* resourceType:
|
|
503
|
+
* description: Resource type of the Verifiable Accreditation
|
|
494
504
|
* type: string
|
|
495
505
|
* example: CredentialArtwork
|
|
496
506
|
* schemas:
|
|
@@ -516,6 +526,28 @@
|
|
|
516
526
|
* default: false
|
|
517
527
|
* required:
|
|
518
528
|
* - subjectDid
|
|
529
|
+
* AccreditationRevokeRequest:
|
|
530
|
+
* type: object
|
|
531
|
+
* properties:
|
|
532
|
+
* didUrl:
|
|
533
|
+
* description: Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.
|
|
534
|
+
* type: string
|
|
535
|
+
* example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e?resourceName=cheqd-issuer-logo&resourceType=CredentialArtwork
|
|
536
|
+
* did:
|
|
537
|
+
* type: string
|
|
538
|
+
* example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e
|
|
539
|
+
* resourceId:
|
|
540
|
+
* type: string
|
|
541
|
+
* example: 398cee0a-efac-4643-9f4c-74c48c72a14b
|
|
542
|
+
* resourceName:
|
|
543
|
+
* type: string
|
|
544
|
+
* example: cheqd-issuer-logo
|
|
545
|
+
* resourceType:
|
|
546
|
+
* type: string
|
|
547
|
+
* example: CredentialArtwork
|
|
548
|
+
* symmetricKey:
|
|
549
|
+
* description: The symmetric key used to encrypt the StatusList2021 DID-Linked Resource. Required if the StatusList2021 DID-Linked Resource is encrypted.
|
|
550
|
+
* type: string
|
|
519
551
|
* PresentationCreateRequest:
|
|
520
552
|
* type: object
|
|
521
553
|
* required:
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;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