@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.
Files changed (33) hide show
  1. package/dist/app.d.ts.map +1 -1
  2. package/dist/app.js +3 -0
  3. package/dist/app.js.map +1 -1
  4. package/dist/controllers/api/accreditation.d.ts +133 -0
  5. package/dist/controllers/api/accreditation.d.ts.map +1 -1
  6. package/dist/controllers/api/accreditation.js +315 -24
  7. package/dist/controllers/api/accreditation.js.map +1 -1
  8. package/dist/helpers/helpers.d.ts +2 -0
  9. package/dist/helpers/helpers.d.ts.map +1 -1
  10. package/dist/helpers/helpers.js +14 -0
  11. package/dist/helpers/helpers.js.map +1 -1
  12. package/dist/middleware/auth/routes/api/accreditation-auth.d.ts.map +1 -1
  13. package/dist/middleware/auth/routes/api/accreditation-auth.js +6 -0
  14. package/dist/middleware/auth/routes/api/accreditation-auth.js.map +1 -1
  15. package/dist/services/api/accreditation.d.ts.map +1 -1
  16. package/dist/services/api/accreditation.js +24 -16
  17. package/dist/services/api/accreditation.js.map +1 -1
  18. package/dist/static/swagger-api.json +228 -18
  19. package/dist/types/accreditation.d.ts +23 -5
  20. package/dist/types/accreditation.d.ts.map +1 -1
  21. package/dist/types/accreditation.js.map +1 -1
  22. package/dist/types/common.d.ts +1 -0
  23. package/dist/types/common.d.ts.map +1 -1
  24. package/dist/types/constants.d.ts.map +1 -1
  25. package/dist/types/constants.js +1 -1
  26. package/dist/types/constants.js.map +1 -1
  27. package/dist/types/credential.d.ts +4 -4
  28. package/dist/types/credential.d.ts.map +1 -1
  29. package/dist/types/swagger-api-types.d.ts +45 -13
  30. package/dist/types/swagger-api-types.d.ts.map +1 -1
  31. package/dist/types/swagger-api-types.js +45 -13
  32. package/dist/types/swagger-api-types.js.map +1 -1
  33. package/package.json +1 -1
@@ -534,6 +534,10 @@
534
534
  "$ref": "#/components/schemas/SchemaUrl"
535
535
  }
536
536
  },
537
+ "accreditationName": {
538
+ "description": "Unique name of the Verifiable Accreditation.",
539
+ "type": "string"
540
+ },
537
541
  "attributes": {
538
542
  "description": "JSON object containing the attributes to be included in the Accreditation.",
539
543
  "type": "object"
@@ -550,11 +554,19 @@
550
554
  ]
551
555
  },
552
556
  "parentAccreditation": {
553
- "description": "DID Url of the parent Verifiable Accreditation.",
557
+ "description": "DID URL of the parent Verifiable Accreditation, required for accredit/attest operation.",
554
558
  "type": "string"
555
559
  },
556
560
  "rootAuthorization": {
557
- "description": "DID Url of the root Verifiable Accreditation.",
561
+ "description": "DID URL of the root Verifiable Accreditation, required for accredit/attest operation.",
562
+ "type": "string"
563
+ },
564
+ "trustFramework": {
565
+ "description": "Name or Type of the Trust Framework, required for authorize operation.",
566
+ "type": "string"
567
+ },
568
+ "trustFrameworkId": {
569
+ "description": "Url of the Trust Framework, required for authorize operation.",
558
570
  "type": "string"
559
571
  },
560
572
  "type": {
@@ -674,34 +686,27 @@
674
686
  }
675
687
  }
676
688
  },
677
- "connector": {
678
- "type": "string",
679
- "enum": [
680
- "verida",
681
- "resource"
682
- ]
683
- },
684
689
  "required": [
685
690
  "issuerDid",
686
691
  "subjectDid",
687
- "schemas"
692
+ "schemas",
693
+ "accreditationName"
688
694
  ],
689
695
  "example": {
690
696
  "issuerDid": "did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0",
691
- "subjectDid": "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK",
697
+ "subjectDid": "did:cheqd:testnet:2582fe17-9b25-45e4-8104-1cfca430f0c3",
692
698
  "schemas": [
693
699
  {
694
700
  "type": "MuseumPassCredential",
695
701
  "url": "https://resolver.cheqd.net/1.0/identifiers/did:cheqd:testnet:0a5b94d0-a417-48ed-a6f5-4abc9e95888d?resourceName=MuseumPassCredentialSchema&resourceType=JsonSchemaValidator2018"
696
702
  }
697
703
  ],
698
- "@context": [
699
- "https://schema.org"
700
- ],
701
- "type": [
702
- "Person"
703
- ],
704
704
  "format": "jwt",
705
+ "accreditationName": "authorizeAccreditation",
706
+ "trustFramework": "https://learn.cheqd.io/governance/start",
707
+ "trustFrameworkId": "cheqd Governance Framework",
708
+ "parentAccreditation": "did:cheqd:testnet:15b74787-6e48-4fd5-8020-eab24e990578?resourceName=accreditAccreditation&resourceType=VerifiableAccreditationToAccredit",
709
+ "rootAuthorization": "did:cheqd:testnet:5RpEg66jhhbmASWPXJRWrA?resourceName=authorizeAccreditation&resourceType=VerifiableAuthorisationForTrustChain",
705
710
  "credentialStatus": {
706
711
  "statusPurpose": "revocation",
707
712
  "statusListName": "employee-credentials",
@@ -718,23 +723,27 @@
718
723
  "example": "did:cheqd:testnet:5efa5126-c070-420f-a9c2-d22ae6eefb92"
719
724
  },
720
725
  "didUrl": {
721
- "description": "Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.",
726
+ "description": "DID URL of the Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.",
722
727
  "type": "string",
723
728
  "example": "did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e?resourceName=cheqd-issuer-logo&resourceType=CredentialArtwork"
724
729
  },
725
730
  "did": {
731
+ "description": "DID of the Verifiable Accreditation holder/subject",
726
732
  "type": "string",
727
733
  "example": "did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e"
728
734
  },
729
735
  "resourceId": {
736
+ "description": "Unique resource identifier of the Verifiable Accreditation",
730
737
  "type": "string",
731
738
  "example": "398cee0a-efac-4643-9f4c-74c48c72a14b"
732
739
  },
733
740
  "resourceName": {
741
+ "description": "Resource name of the Verifiable Accreditation",
734
742
  "type": "string",
735
743
  "example": "cheqd-issuer-logo"
736
744
  },
737
745
  "resourceType": {
746
+ "description": "Resource type of the Verifiable Accreditation",
738
747
  "type": "string",
739
748
  "example": "CredentialArtwork"
740
749
  },
@@ -771,6 +780,36 @@
771
780
  "subjectDid"
772
781
  ]
773
782
  },
783
+ "AccreditationRevokeRequest": {
784
+ "type": "object",
785
+ "properties": {
786
+ "didUrl": {
787
+ "description": "Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.",
788
+ "type": "string",
789
+ "example": "did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e?resourceName=cheqd-issuer-logo&resourceType=CredentialArtwork"
790
+ },
791
+ "did": {
792
+ "type": "string",
793
+ "example": "did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e"
794
+ },
795
+ "resourceId": {
796
+ "type": "string",
797
+ "example": "398cee0a-efac-4643-9f4c-74c48c72a14b"
798
+ },
799
+ "resourceName": {
800
+ "type": "string",
801
+ "example": "cheqd-issuer-logo"
802
+ },
803
+ "resourceType": {
804
+ "type": "string",
805
+ "example": "CredentialArtwork"
806
+ },
807
+ "symmetricKey": {
808
+ "description": "The symmetric key used to encrypt the StatusList2021 DID-Linked Resource. Required if the StatusList2021 DID-Linked Resource is encrypted.",
809
+ "type": "string"
810
+ }
811
+ }
812
+ },
774
813
  "PresentationCreateRequest": {
775
814
  "type": "object",
776
815
  "required": [
@@ -2588,6 +2627,177 @@
2588
2627
  }
2589
2628
  }
2590
2629
  },
2630
+ "/trust-registry/accreditation/revoke": {
2631
+ "post": {
2632
+ "tags": [
2633
+ "Trust Registry"
2634
+ ],
2635
+ "summary": "Revoke a Verifiable Accreditation.",
2636
+ "description": "This endpoint revokes a given Verifiable Accreditation. As input, it can take the didUrl as a string. The StatusList2021 resource should already be setup in the VC and `credentialStatus` property present in the VC.",
2637
+ "operationId": "accredit-revoke",
2638
+ "parameters": [
2639
+ {
2640
+ "in": "query",
2641
+ "name": "publish",
2642
+ "description": "Set whether the StatusList2021 resource should be published to the ledger or not. If set to `false`, the StatusList2021 publisher should manually publish the resource.",
2643
+ "required": true,
2644
+ "schema": {
2645
+ "type": "boolean",
2646
+ "default": true
2647
+ }
2648
+ }
2649
+ ],
2650
+ "requestBody": {
2651
+ "content": {
2652
+ "application/x-www-form-urlencoded": {
2653
+ "schema": {
2654
+ "$ref": "#/components/schemas/AccreditationRevokeRequest"
2655
+ }
2656
+ },
2657
+ "application/json": {
2658
+ "schema": {
2659
+ "$ref": "#/components/schemas/AccreditationRevokeRequest"
2660
+ }
2661
+ }
2662
+ }
2663
+ },
2664
+ "responses": {
2665
+ "200": {
2666
+ "description": "The request was successful.",
2667
+ "content": {
2668
+ "application/json": {
2669
+ "schema": {
2670
+ "$ref": "#/components/schemas/RevocationResult"
2671
+ }
2672
+ }
2673
+ }
2674
+ },
2675
+ "400": {
2676
+ "$ref": "#/components/schemas/InvalidRequest"
2677
+ },
2678
+ "401": {
2679
+ "$ref": "#/components/schemas/UnauthorizedError"
2680
+ },
2681
+ "500": {
2682
+ "$ref": "#/components/schemas/InternalError"
2683
+ }
2684
+ }
2685
+ }
2686
+ },
2687
+ "/trust-registry/accreditation/suspend": {
2688
+ "post": {
2689
+ "tags": [
2690
+ "Trust Registry"
2691
+ ],
2692
+ "summary": "Suspend a Verifiable Accreditation.",
2693
+ "description": "This endpoint suspends a given Verifiable Accreditation. As input, it can take the didUrl as a string. The StatusList2021 resource should already be setup in the VC and `credentialStatus` property present in the VC.",
2694
+ "operationId": "accredit-suspend",
2695
+ "parameters": [
2696
+ {
2697
+ "in": "query",
2698
+ "name": "publish",
2699
+ "description": "Set whether the StatusList2021 resource should be published to the ledger or not. If set to `false`, the StatusList2021 publisher should manually publish the resource.",
2700
+ "required": true,
2701
+ "schema": {
2702
+ "type": "boolean",
2703
+ "default": true
2704
+ }
2705
+ }
2706
+ ],
2707
+ "requestBody": {
2708
+ "content": {
2709
+ "application/x-www-form-urlencoded": {
2710
+ "schema": {
2711
+ "$ref": "#/components/schemas/AccreditationRevokeRequest"
2712
+ }
2713
+ },
2714
+ "application/json": {
2715
+ "schema": {
2716
+ "$ref": "#/components/schemas/AccreditationRevokeRequest"
2717
+ }
2718
+ }
2719
+ }
2720
+ },
2721
+ "responses": {
2722
+ "200": {
2723
+ "description": "The request was successful.",
2724
+ "content": {
2725
+ "application/json": {
2726
+ "schema": {
2727
+ "$ref": "#/components/schemas/RevocationResult"
2728
+ }
2729
+ }
2730
+ }
2731
+ },
2732
+ "400": {
2733
+ "$ref": "#/components/schemas/InvalidRequest"
2734
+ },
2735
+ "401": {
2736
+ "$ref": "#/components/schemas/UnauthorizedError"
2737
+ },
2738
+ "500": {
2739
+ "$ref": "#/components/schemas/InternalError"
2740
+ }
2741
+ }
2742
+ }
2743
+ },
2744
+ "/trust-registry/accreditation/reinstate": {
2745
+ "post": {
2746
+ "tags": [
2747
+ "Trust Registry"
2748
+ ],
2749
+ "summary": "Reinstate a Verifiable Accreditation.",
2750
+ "description": "This endpoint reinstates a given Verifiable Accreditation. As input, it can take the didUrl as a string. The StatusList2021 resource should already be setup in the VC and `credentialStatus` property present in the VC.",
2751
+ "operationId": "accredit-reinstate",
2752
+ "parameters": [
2753
+ {
2754
+ "in": "query",
2755
+ "name": "publish",
2756
+ "description": "Set whether the StatusList2021 resource should be published to the ledger or not. If set to `false`, the StatusList2021 publisher should manually publish the resource.",
2757
+ "required": true,
2758
+ "schema": {
2759
+ "type": "boolean",
2760
+ "default": true
2761
+ }
2762
+ }
2763
+ ],
2764
+ "requestBody": {
2765
+ "content": {
2766
+ "application/x-www-form-urlencoded": {
2767
+ "schema": {
2768
+ "$ref": "#/components/schemas/AccreditationRevokeRequest"
2769
+ }
2770
+ },
2771
+ "application/json": {
2772
+ "schema": {
2773
+ "$ref": "#/components/schemas/AccreditationRevokeRequest"
2774
+ }
2775
+ }
2776
+ }
2777
+ },
2778
+ "responses": {
2779
+ "200": {
2780
+ "description": "The request was successful.",
2781
+ "content": {
2782
+ "application/json": {
2783
+ "schema": {
2784
+ "$ref": "#/components/schemas/RevocationResult"
2785
+ }
2786
+ }
2787
+ }
2788
+ },
2789
+ "400": {
2790
+ "$ref": "#/components/schemas/InvalidRequest"
2791
+ },
2792
+ "401": {
2793
+ "$ref": "#/components/schemas/UnauthorizedError"
2794
+ },
2795
+ "500": {
2796
+ "$ref": "#/components/schemas/InternalError"
2797
+ }
2798
+ }
2799
+ }
2800
+ },
2591
2801
  "/credential-status/create/unencrypted": {
2592
2802
  "post": {
2593
2803
  "tags": [
@@ -1,5 +1,6 @@
1
1
  import { VerifiableCredential } from '@veramo/core';
2
- import type { CredentialRequest, VerifyCredentialRequestBody } from './credential';
2
+ import type { CredentialRequest, PublishRequest, VerifyCredentialRequestBody } from './credential';
3
+ import { BulkRevocationResult, BulkSuspensionResult, BulkUnsuspensionResult, RevocationResult, SuspensionResult, UnsuspensionResult } from '@cheqd/did-provider-cheqd/build/types';
3
4
  export declare enum DIDAccreditationTypes {
4
5
  VerifiableAuthorisationForTrustChain = "VerifiableAuthorisationForTrustChain",
5
6
  VerifiableAccreditationToAccredit = "VerifiableAccreditationToAccredit",
@@ -31,12 +32,14 @@ export type DIDAccreditationRequestBody = Omit<CredentialRequest, 'attributes' |
31
32
  export type DIDAccreditationRequestParams = {
32
33
  accreditationType: 'authorize' | 'accredit' | 'attest';
33
34
  };
34
- export interface VerifyAccreditationRequestBody extends Pick<VerifyCredentialRequestBody, 'policies'> {
35
+ export interface DIDUrlParams {
35
36
  didUrl?: string;
36
37
  did?: string;
37
38
  resourceId?: string;
38
39
  resourceName?: string;
39
40
  resourceType?: string;
41
+ }
42
+ export interface VerifyAccreditationRequestBody extends Pick<VerifyCredentialRequestBody, 'policies'>, DIDUrlParams {
40
43
  subjectDid: string;
41
44
  schemas?: SchemaUrlType[];
42
45
  }
@@ -53,14 +56,29 @@ type DidResourceNameAndType = Pick<VerifyAccreditationRequestBody, 'policies' |
53
56
  resourceType: string;
54
57
  };
55
58
  export type VerifyAccreditationRequest = DidUrl | DidAndResourceId | DidResourceNameAndType;
56
- export declare function isDidUrl(body: VerifyAccreditationRequestBody): body is DidUrl;
57
- export declare function isDidAndResourceId(body: VerifyAccreditationRequestBody): body is DidAndResourceId;
58
- export declare function isDidAndResourceName(body: VerifyAccreditationRequestBody): body is DidResourceNameAndType;
59
+ export declare function isDidUrl(body: DIDUrlParams): body is DidUrl;
60
+ export declare function isDidAndResourceId(body: DIDUrlParams): body is DidAndResourceId;
61
+ export declare function isDidAndResourceName(body: DIDUrlParams): body is DidResourceNameAndType;
59
62
  export interface VerfifiableAccreditation extends VerifiableCredential {
60
63
  credentialSubject: {
61
64
  id: string;
62
65
  accreditedFor: AccreditationSchemaType[];
63
66
  };
64
67
  }
68
+ export interface RevokeAccreditationRequestBody extends DIDUrlParams {
69
+ symmetricKey?: string;
70
+ }
71
+ export interface SuspendAccreditationRequestBody extends DIDUrlParams {
72
+ symmetricKey?: string;
73
+ }
74
+ export interface UnsuspendAccreditationRequestBody extends DIDUrlParams {
75
+ symmetricKey?: string;
76
+ }
77
+ export type RevokeAccreditationResponseBody = RevocationResult | BulkRevocationResult;
78
+ export type SuspendAccreditationResponseBody = SuspensionResult | BulkSuspensionResult;
79
+ export type UnsuspendAccreditationResponseBody = UnsuspensionResult | BulkUnsuspensionResult;
80
+ export type RevokeAccreditationRequestQuery = PublishRequest;
81
+ export type SuspendAccreditationRequestQuery = PublishRequest;
82
+ export type UnsuspendAccreditationRequestQuery = PublishRequest;
65
83
  export {};
66
84
  //# sourceMappingURL=accreditation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accreditation.d.ts","sourceRoot":"","sources":["../../src/types/accreditation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAGnF,oBAAY,qBAAqB;IAChC,oCAAoC,yCAAyC;IAC7E,iCAAiC,sCAAsC;IACvE,+BAA+B,oCAAoC;CACnE;AAED,oBAAY,wBAAwB;IACnC,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;CACjB;AAED,MAAM,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC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M,gCAAgC,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEvF,MAAM,MAAM,kCAAkC,GAAG,kBAAkB,GAAG,sBAAsB,CAAC;AAE7F,MAAM,MAAM,+BAA+B,GAAG,cAAc,CAAC;AAE7D,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAC;AAE9D,MAAM,MAAM,kCAAkC,GAAG,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"accreditation.js","sourceRoot":"","sources":["../../src/types/accreditation.ts"],"names":[],"mappings":"AAGA,QAAQ;AACR,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,sGAA6E,CAAA;IAC7E,gGAAuE,CAAA;IACvE,4FAAmE,CAAA;AACpE,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC;AAED,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;IACrB,6CAAiB,CAAA;AAClB,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC;AAuDD,MAAM,UAAU,QAAQ,CAAC,IAAoC;IAC5D,OAAO,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAoC;IACtE,OAAO,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAoC;IACxE,OAAO,CACN,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,CAC9G,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"accreditation.js","sourceRoot":"","sources":["../../src/types/accreditation.ts"],"names":[],"mappings":"AAWA,QAAQ;AACR,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,sGAA6E,CAAA;IAC7E,gGAAuE,CAAA;IACvE,4FAAmE,CAAA;AACpE,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC;AAED,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;IACrB,6CAAiB,CAAA;AAClB,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC;AA0DD,MAAM,UAAU,QAAQ,CAAC,IAAkB;IAC1C,OAAO,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAkB;IACpD,OAAO,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAkB;IACtD,OAAO,CACN,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,CAC9G,CAAC;AACH,CAAC"}
@@ -7,6 +7,7 @@ export type APIErrorResponse<Input> = {
7
7
  success: false;
8
8
  status: number;
9
9
  error: Input;
10
+ data?: any;
10
11
  };
11
12
  export type SafeAPIResponse<Output, Input = string> = APISuccessResponse<Output> | APIErrorResponse<Input>;
12
13
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,CAAC,MAAM,IAAI;IACxC,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,KAAK,IAAI;IACrC,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,IAAI,kBAAkB,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,CAAC,MAAM,IAAI;IACxC,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,KAAK,IAAI;IACrC,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,IAAI,kBAAkB,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,eAAO,MAAM,OAAO;;;;;;;CAGnB,CAAC;AAGF,eAAO,MAAM,oBAAoB,QAA8D,CAAC;AAChG,eAAO,MAAM,oBAAoB,KAA2D,CAAC;AAC7F,eAAO,MAAM,cAAc,SAAS,CAAC;AACrC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,QAAkC,CAAC;AAKzD,eAAO,MAAM,oBAAoB,QAAsE,CAAC;AAExG,eAAO,MAAM,kB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BAAoB,yBAAyB;IAE7C,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,oBAAoB,yBAAyB;IAE7C,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,QAAQ,aAAa;IAErB,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAE3C,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAC3C,2BAA2B,gCAAgC;IAG3D,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAG7B,qBAAqB,0BAA0B;CAC/C;AAED,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAC7C,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,kBAAkB,UAA2E,CAAC;AAC3G,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAChD,eAAO,MAAM,qBAAqB,WAAqB,CAAC"}
@@ -48,7 +48,7 @@ export const FAUCET_URI = process.env.FAUCET_URI || 'https://faucet-api.cheqd.ne
48
48
  export const DEFAULT_DENOM_EXPONENT = 9;
49
49
  export const TESTNET_MINIMUM_BALANCE = process.env.TESTNET_MINIMUM_BALANCE || 1000;
50
50
  // Verifiable Credential constants
51
- export const VC_CONTEXT = ['https://www.w3.org/2018/credentials/v1', 'https://veramo.io/contexts/profile/v1'];
51
+ export const VC_CONTEXT = ['https://www.w3.org/2018/credentials/v1'];
52
52
  export const VC_TYPE = 'VerifiableCredential';
53
53
  export const VC_PROOF_FORMAT = 'jwt';
54
54
  export const VC_REMOVE_ORIGINAL_FIELDS = true;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,mBAAmB;AACnB,MAAM,CAAC,MAAM,O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AAA;IACrB,sBAAsB;IACtB,wDAAmC,CAAA;IACnC,wDAAmC,CAAA;IAEnC,4BAA4B;IAC5B,kGAA6E,CAAA;IAC7E,8FAAyE,CAAA;IACzE,kGAA6E,CAAA;IAC7E,8FAAyE,CAAA;IACzE,wEAAmD,CAAA;IACnD,0EAAqD,CAAA;IACrD,wBAAwB;IACxB,0DAAqC,CAAA;IACrC,4DAAuC,CAAA;IACvC,4DAAuC,CAAA;IACvC,8DAAyC,CAAA;IACzC,kEAA6C,CAAA;IAC7C,UAAU;IACV,sDAAiC,CAAA;IACjC,gDAA2B,CAAA;IAC3B,kEAA6C,CAAA;IAC7C,iBAAiB;IACjB,8CAAyB,CAAA;IACzB,8CAAyB,CAAA;IACzB,0CAAqB,CAAA;IACrB,0BAA0B;IAC1B,gEAA2C,CAAA;IAC3C,gEAA2C,CAAA;IAC3C,eAAe;IACf,gEAA2C,CAAA;IAC3C,gEAA2C,CAAA;IAC3C,gEAA2C,CAAA;IAC3C,gFAA2D,CAAA;IAE3D,qBAAqB;IACrB,sDAAiC,CAAA;IACjC,sDAAiC,CAAA;IACjC,sDAAiC,CAAA;IACjC,gDAA2B,CAAA;IAC3B,kDAA6B,CAAA;IAE7B,oBAAoB;IACpB,oEAA+C,CAAA;AAChD,CAAC,EAnDW,iBAAiB,KAAjB,iBAAiB,QAmD5B;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC;AAC7C,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,sBAAsB,CAAC,CAAC;AAC3G,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAkB,CAAC"}
@@ -34,7 +34,7 @@ export type AdditionalData = {
34
34
  export type VerificationPoliciesRequest = {
35
35
  policies: VerificationPolicies;
36
36
  };
37
- export type PubslishRequest = {
37
+ export type PublishRequest = {
38
38
  publish?: boolean;
39
39
  };
40
40
  export type SymmetricKeyRequest = {
@@ -50,11 +50,11 @@ export type VerifyCredentialRequestBody = {
50
50
  } & VerificationPoliciesRequest;
51
51
  export type VerifyCredentialRequestQuery = VerificationOptions;
52
52
  export type RevokeCredentialRequestBody = CredentialRequestBody;
53
- export type RevokeCredentialRequestQuery = PubslishRequest;
53
+ export type RevokeCredentialRequestQuery = PublishRequest;
54
54
  export type SuspendCredentialRequestBody = CredentialRequestBody;
55
- export type SuspendCredentialRequestQuery = PubslishRequest;
55
+ export type SuspendCredentialRequestQuery = PublishRequest;
56
56
  export type UnsuspendCredentialRequestBody = CredentialRequestBody;
57
- export type UnsuspendCredentialRequestQuery = PubslishRequest;
57
+ export type UnsuspendCredentialRequestQuery = PublishRequest;
58
58
  export type IssueCredentialResponseBody = VerifiableCredential;
59
59
  export type VerifyCredentialResponseBody = IVerifyResult;
60
60
  export type RevokeCredentialResponseBody = RevocationResult | BulkRevocationResult;
@@ -1 +1 @@
1
- {"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../../src/types/credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EACX,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,oBAAY,oBAAoB;IAC/B,MAAM,IAAA;IACN,QAAQ,IAAA;CACR;AAED,MAAM,WAAW,iBAAiB;IACjC,UAAU,EAAE,MAAM,CA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AAC;AAEzD,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEnF,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEpF,MAAM,MAAM,+BAA+B,GAAG,kBAAkB,GAAG,sBAAsB,CAAC;AAI1F,MAAM,MAAM,sCAAsC,GAAG,wBAAwB,CAAC;AAE9E,MAAM,MAAM,sCAAsC,GAAG,wBAAwB,CAAC;AAE9E,MAAM,MAAM,0CAA0C,GAAG,wBAAwB,CAAC;AAElF,MAAM,MAAM,uCAAuC,GAAG,wBAAwB,GAAG,4BAA4B,CAAC;AAE9G,MAAM,MAAM,uCAAuC,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG,wBAAwB,CAAC;AAEnH,MAAM,MAAM,wCAAwC,GAAG,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,GAAG,wBAAwB,CAAC;AAEtH,MAAM,MAAM,0CAA0C,GACnD,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,GACvC,wBAAwB,CAAC"}
@@ -345,6 +345,9 @@
345
345
  * type: array
346
346
  * items:
347
347
  * $ref: '#/components/schemas/SchemaUrl'
348
+ * accreditationName:
349
+ * description: Unique name of the Verifiable Accreditation.
350
+ * type: string
348
351
  * attributes:
349
352
  * description: JSON object containing the attributes to be included in the Accreditation.
350
353
  * type: object
@@ -355,10 +358,16 @@
355
358
  * type: string
356
359
  * example: [https://schema.org/schema.jsonld, https://veramo.io/contexts/profile/v1]
357
360
  * parentAccreditation:
358
- * description: DID Url of the parent Verifiable Accreditation.
361
+ * description: DID URL of the parent Verifiable Accreditation, required for accredit/attest operation.
359
362
  * type: string
360
363
  * rootAuthorization:
361
- * description: DID Url of the root Verifiable Accreditation.
364
+ * description: DID URL of the root Verifiable Accreditation, required for accredit/attest operation.
365
+ * type: string
366
+ * trustFramework:
367
+ * description: Name or Type of the Trust Framework, required for authorize operation.
368
+ * type: string
369
+ * trustFrameworkId:
370
+ * description: Url of the Trust Framework, required for authorize operation.
362
371
  * type: string
363
372
  * type:
364
373
  * description: Optional properties to be included in the `type` property of the Accreditation.
@@ -445,26 +454,23 @@
445
454
  * documentPresence: Physical,
446
455
  * licenseNumber: 123AB4567
447
456
  * }
448
- * connector:
449
- * type: string
450
- * enum:
451
- * - verida
452
- * - resource
453
457
  * required:
454
458
  * - issuerDid
455
459
  * - subjectDid
456
460
  * - schemas
461
+ * - accreditationName
457
462
  * example:
458
463
  * issuerDid: did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0
459
- * subjectDid: did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK
464
+ * subjectDid: did:cheqd:testnet:2582fe17-9b25-45e4-8104-1cfca430f0c3
460
465
  * schemas:
461
466
  * - type: MuseumPassCredential
462
467
  * 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
468
  * format: jwt
469
+ * accreditationName: authorizeAccreditation
470
+ * trustFramework: https://learn.cheqd.io/governance/start
471
+ * trustFrameworkId: cheqd Governance Framework
472
+ * parentAccreditation: did:cheqd:testnet:15b74787-6e48-4fd5-8020-eab24e990578?resourceName=accreditAccreditation&resourceType=VerifiableAccreditationToAccredit
473
+ * rootAuthorization: did:cheqd:testnet:5RpEg66jhhbmASWPXJRWrA?resourceName=authorizeAccreditation&resourceType=VerifiableAuthorisationForTrustChain
468
474
  * credentialStatus:
469
475
  * statusPurpose: revocation
470
476
  * statusListName: employee-credentials
@@ -477,19 +483,23 @@
477
483
  * type: string
478
484
  * example: did:cheqd:testnet:5efa5126-c070-420f-a9c2-d22ae6eefb92
479
485
  * didUrl:
480
- * description: Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.
486
+ * description: DID URL of the Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.
481
487
  * type: string
482
488
  * example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e?resourceName=cheqd-issuer-logo&resourceType=CredentialArtwork
483
489
  * did:
490
+ * description: DID of the Verifiable Accreditation holder/subject
484
491
  * type: string
485
492
  * example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e
486
493
  * resourceId:
494
+ * description: Unique resource identifier of the Verifiable Accreditation
487
495
  * type: string
488
496
  * example: 398cee0a-efac-4643-9f4c-74c48c72a14b
489
497
  * resourceName:
498
+ * description: Resource name of the Verifiable Accreditation
490
499
  * type: string
491
500
  * example: cheqd-issuer-logo
492
501
  * resourceType:
502
+ * description: Resource type of the Verifiable Accreditation
493
503
  * type: string
494
504
  * example: CredentialArtwork
495
505
  * schemas:
@@ -515,6 +525,28 @@
515
525
  * default: false
516
526
  * required:
517
527
  * - subjectDid
528
+ * AccreditationRevokeRequest:
529
+ * type: object
530
+ * properties:
531
+ * didUrl:
532
+ * description: Verifiable Accreditation to be verified as a VC-JWT string or a JSON object.
533
+ * type: string
534
+ * example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e?resourceName=cheqd-issuer-logo&resourceType=CredentialArtwork
535
+ * did:
536
+ * type: string
537
+ * example: did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e
538
+ * resourceId:
539
+ * type: string
540
+ * example: 398cee0a-efac-4643-9f4c-74c48c72a14b
541
+ * resourceName:
542
+ * type: string
543
+ * example: cheqd-issuer-logo
544
+ * resourceType:
545
+ * type: string
546
+ * example: CredentialArtwork
547
+ * symmetricKey:
548
+ * description: The symmetric key used to encrypt the StatusList2021 DID-Linked Resource. Required if the StatusList2021 DID-Linked Resource is encrypted.
549
+ * type: string
518
550
  * PresentationCreateRequest:
519
551
  * type: object
520
552
  * required:
@@ -1 +1 @@
1
- {"version":3,"file":"swagger-api-types.d.ts","sourceRoot":"","sources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