@triveria/wallet 0.0.322 → 0.0.324

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 (3) hide show
  1. package/api.d.ts +178 -32
  2. package/api.js +279 -13
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -91,10 +91,27 @@ export type CertificateStatus = typeof CertificateStatus[keyof typeof Certificat
91
91
  export interface CertificateStatusUpdateRequest {
92
92
  'status': CertificateStatus;
93
93
  }
94
+ export interface CredentialClaimMetadata {
95
+ 'label': string;
96
+ 'description': string;
97
+ }
98
+ /**
99
+ * A Credential container used to create credential drafts with metadata.
100
+ */
101
+ export interface CredentialCreatePayload {
102
+ [key: string]: any;
103
+ 'credentialSubject': CredentialSubject;
104
+ 'credentialDraftMetadata': CredentialDraftMetadata;
105
+ /**
106
+ * If true, the credential draft is checked against its schema. Defaults to true.
107
+ */
108
+ 'validateSchema'?: boolean;
109
+ }
94
110
  /**
95
111
  * Accompanying information about the verifiable credential draft - schema, type, format etc.
96
112
  */
97
113
  export interface CredentialDraftMetadata {
114
+ 'contexts'?: Array<string>;
98
115
  'id': string;
99
116
  'name': string;
100
117
  'type': string;
@@ -186,6 +203,14 @@ export interface CredentialIssuerDefinition {
186
203
  * When true, the credential request proof must carry a key attestation of the holder key, either as the `key_attestation` header of a `jwt` proof or as an `attestation` proof (OID4VCI 1.0 Appendix D). Defaults to false.
187
204
  */
188
205
  'requiresKeyAttestation'?: boolean;
206
+ /**
207
+ * When true, the token request for this credential must carry a DPoP proof (RFC 9449), so the access token is sender-constrained (FAPI 2.0 Security Profile §5.3.2.1). Defaults to false (DPoP optional).
208
+ */
209
+ 'requiresDpop'?: boolean;
210
+ /**
211
+ * When true, a wallet may request this credential without an offer, by an authorization request naming its credential configuration in `authorization_details` or `scope` (OID4VCI 1.0 §5.1). The holder then authorizes as `authorization` requires; with `none` or `oauthNoAuth` anyone may obtain the credential. Defaults to false.
212
+ */
213
+ 'walletInitiated'?: boolean;
189
214
  }
190
215
  export declare const CredentialIssuerDefinitionCredentialIssuerEnum: {
191
216
  readonly CtWalletSame: "CtWalletSame";
@@ -292,18 +317,6 @@ export interface CredentialPatchPayload {
292
317
  */
293
318
  'validateSchema'?: boolean;
294
319
  }
295
- /**
296
- * A Credential container used to create credentials with metadata.
297
- */
298
- export interface CredentialPayload {
299
- [key: string]: any;
300
- 'credentialSubject': CredentialSubject;
301
- 'credentialDraftMetadata': CredentialDraftMetadata;
302
- /**
303
- * If true, the credential draft is checked against its schema. Defaults to true.
304
- */
305
- 'validateSchema'?: boolean;
306
- }
307
320
  /**
308
321
  * Credential property that will be verified. `verifySchema` is only applicable in W3C VCDM credentials. With other types, this field will be ignored.
309
322
  */
@@ -340,13 +353,9 @@ export interface CredentialRequirementsIssuerConfig {
340
353
  }
341
354
  /**
342
355
  * @type CredentialSubject
343
- * Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSubject. Currently we support only one subject in the verifiable credential because there is no consensus about \"vc-jwt\" encoding of multi-subject verifiable credentials
356
+ * Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential. When the credential is in W3C VCDM, the subject is in its compacted form with claim keys in their full IRI form.
344
357
  */
345
- export type CredentialSubject = Array<CredentialSubjectItem> | CredentialSubjectItem;
346
- export interface CredentialSubjectItem {
347
- [key: string]: any;
348
- 'id'?: string;
349
- }
358
+ export type CredentialSubject = Array<object> | object;
350
359
  export interface CredentialToPresentWrapper {
351
360
  'credential': CredentialMetadata;
352
361
  /**
@@ -399,15 +408,11 @@ export interface CredentialVerifierDefinition {
399
408
  'redirectUri'?: string;
400
409
  }
401
410
  /**
402
- * The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
411
+ * The wrapper contains Verifiable Credential Subject and Metadata.
403
412
  */
404
413
  export interface CredentialWrapper {
405
414
  'metadata': CredentialMetadata;
406
- 'vcSubject'?: CredentialSubject;
407
- /**
408
- * The base64 encoded Verifiable Credential in its final signed form
409
- */
410
- 'signedVc'?: string;
415
+ 'vcSubject': CredentialSubject;
411
416
  }
412
417
  export interface CtWalletSameIssuerConfig {
413
418
  /**
@@ -706,6 +711,10 @@ export interface InitAuthOffer {
706
711
  * ID of the issuer used to issue the credential.
707
712
  */
708
713
  'issuerId': string;
714
+ /**
715
+ * IDs of further issuers whose credentials are offered together with the one of issuerId, one credential configuration each (OID4VCI 1.0 §4.1.1). The issuer of issuerId decides how the holder authorizes. Not supported together with wmpEntityId or issuanceQueueItemId.
716
+ */
717
+ 'issuerIds'?: Array<string>;
709
718
  'offerEndpoint'?: string;
710
719
  'deferred'?: boolean;
711
720
  /**
@@ -733,6 +742,10 @@ export interface InitPreAuthOffer {
733
742
  * ID of the issuer used to issue the credential.
734
743
  */
735
744
  'issuerId': string;
745
+ /**
746
+ * IDs of further issuers whose credentials are offered together with the one of issuerId, one credential configuration each (OID4VCI 1.0 §4.1.1). The issuer of issuerId decides how the holder authorizes. Not supported together with wmpEntityId.
747
+ */
748
+ 'issuerIds'?: Array<string>;
736
749
  'offerEndpoint'?: string;
737
750
  'deferred'?: boolean;
738
751
  /**
@@ -1653,14 +1666,24 @@ export type XadesSignatureType = typeof XadesSignatureType[keyof typeof XadesSig
1653
1666
  * DefaultApi - axios parameter creator
1654
1667
  */
1655
1668
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
1669
+ /**
1670
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
1671
+ * @param {string} credentialId Verifiable Credential Identifier
1672
+ * @param {string} walletId
1673
+ * @param {CredentialClaimMetadataGetMetadataScopeEnum} [metadataScope] Scope of the RDF metadata; - subject: only provide metadata for claims in credential subject - credential: provide metadata for claims in whole credential
1674
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
1675
+ * @param {*} [options] Override http request option.
1676
+ * @throws {RequiredError}
1677
+ */
1678
+ credentialClaimMetadataGet: (credentialId: string, walletId: string, metadataScope?: CredentialClaimMetadataGetMetadataScopeEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1656
1679
  /**
1657
1680
  * Creates a new draft credential.
1658
1681
  * @param {string} walletId
1659
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
1682
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
1660
1683
  * @param {*} [options] Override http request option.
1661
1684
  * @throws {RequiredError}
1662
1685
  */
1663
- credentialCreate: (walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1686
+ credentialCreate: (walletId: string, credentialCreatePayload?: CredentialCreatePayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1664
1687
  /**
1665
1688
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
1666
1689
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1719,6 +1742,25 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1719
1742
  * @throws {RequiredError}
1720
1743
  */
1721
1744
  credentialPatch: (credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1745
+ /**
1746
+ * Returns raw credential payload, with format depending on credential format.
1747
+ * @param {string} credentialId Verifiable Credential Identifier
1748
+ * @param {string} walletId
1749
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
1750
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
1751
+ * @param {*} [options] Override http request option.
1752
+ * @throws {RequiredError}
1753
+ */
1754
+ credentialPayloadGet: (credentialId: string, walletId: string, form?: CredentialPayloadGetFormEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1755
+ /**
1756
+ * Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)
1757
+ * @param {string} credentialId Verifiable Credential Identifier
1758
+ * @param {string} walletId
1759
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
1760
+ * @param {*} [options] Override http request option.
1761
+ * @throws {RequiredError}
1762
+ */
1763
+ credentialRawGet: (credentialId: string, walletId: string, disclosedClaims?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1722
1764
  /**
1723
1765
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
1724
1766
  * @param {string} walletId
@@ -2288,14 +2330,26 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2288
2330
  * DefaultApi - functional programming interface
2289
2331
  */
2290
2332
  export declare const DefaultApiFp: (configuration?: Configuration) => {
2333
+ /**
2334
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
2335
+ * @param {string} credentialId Verifiable Credential Identifier
2336
+ * @param {string} walletId
2337
+ * @param {CredentialClaimMetadataGetMetadataScopeEnum} [metadataScope] Scope of the RDF metadata; - subject: only provide metadata for claims in credential subject - credential: provide metadata for claims in whole credential
2338
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
2339
+ * @param {*} [options] Override http request option.
2340
+ * @throws {RequiredError}
2341
+ */
2342
+ credentialClaimMetadataGet(credentialId: string, walletId: string, metadataScope?: CredentialClaimMetadataGetMetadataScopeEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
2343
+ [key: string]: CredentialClaimMetadata;
2344
+ }>>;
2291
2345
  /**
2292
2346
  * Creates a new draft credential.
2293
2347
  * @param {string} walletId
2294
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
2348
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
2295
2349
  * @param {*} [options] Override http request option.
2296
2350
  * @throws {RequiredError}
2297
2351
  */
2298
- credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2352
+ credentialCreate(walletId: string, credentialCreatePayload?: CredentialCreatePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2299
2353
  /**
2300
2354
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
2301
2355
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2354,6 +2408,25 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2354
2408
  * @throws {RequiredError}
2355
2409
  */
2356
2410
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2411
+ /**
2412
+ * Returns raw credential payload, with format depending on credential format.
2413
+ * @param {string} credentialId Verifiable Credential Identifier
2414
+ * @param {string} walletId
2415
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
2416
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
2417
+ * @param {*} [options] Override http request option.
2418
+ * @throws {RequiredError}
2419
+ */
2420
+ credentialPayloadGet(credentialId: string, walletId: string, form?: CredentialPayloadGetFormEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
2421
+ /**
2422
+ * Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)
2423
+ * @param {string} credentialId Verifiable Credential Identifier
2424
+ * @param {string} walletId
2425
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
2426
+ * @param {*} [options] Override http request option.
2427
+ * @throws {RequiredError}
2428
+ */
2429
+ credentialRawGet(credentialId: string, walletId: string, disclosedClaims?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
2357
2430
  /**
2358
2431
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2359
2432
  * @param {string} walletId
@@ -2925,14 +2998,26 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2925
2998
  * DefaultApi - factory interface
2926
2999
  */
2927
3000
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3001
+ /**
3002
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
3003
+ * @param {string} credentialId Verifiable Credential Identifier
3004
+ * @param {string} walletId
3005
+ * @param {CredentialClaimMetadataGetMetadataScopeEnum} [metadataScope] Scope of the RDF metadata; - subject: only provide metadata for claims in credential subject - credential: provide metadata for claims in whole credential
3006
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
3007
+ * @param {*} [options] Override http request option.
3008
+ * @throws {RequiredError}
3009
+ */
3010
+ credentialClaimMetadataGet(credentialId: string, walletId: string, metadataScope?: CredentialClaimMetadataGetMetadataScopeEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<{
3011
+ [key: string]: CredentialClaimMetadata;
3012
+ }>;
2928
3013
  /**
2929
3014
  * Creates a new draft credential.
2930
3015
  * @param {string} walletId
2931
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
3016
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
2932
3017
  * @param {*} [options] Override http request option.
2933
3018
  * @throws {RequiredError}
2934
3019
  */
2935
- credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
3020
+ credentialCreate(walletId: string, credentialCreatePayload?: CredentialCreatePayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2936
3021
  /**
2937
3022
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
2938
3023
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2991,6 +3076,25 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2991
3076
  * @throws {RequiredError}
2992
3077
  */
2993
3078
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
3079
+ /**
3080
+ * Returns raw credential payload, with format depending on credential format.
3081
+ * @param {string} credentialId Verifiable Credential Identifier
3082
+ * @param {string} walletId
3083
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
3084
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
3085
+ * @param {*} [options] Override http request option.
3086
+ * @throws {RequiredError}
3087
+ */
3088
+ credentialPayloadGet(credentialId: string, walletId: string, form?: CredentialPayloadGetFormEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<object>;
3089
+ /**
3090
+ * Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)
3091
+ * @param {string} credentialId Verifiable Credential Identifier
3092
+ * @param {string} walletId
3093
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
3094
+ * @param {*} [options] Override http request option.
3095
+ * @throws {RequiredError}
3096
+ */
3097
+ credentialRawGet(credentialId: string, walletId: string, disclosedClaims?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<string>;
2994
3098
  /**
2995
3099
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2996
3100
  * @param {string} walletId
@@ -3562,14 +3666,26 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3562
3666
  * DefaultApi - object-oriented interface
3563
3667
  */
3564
3668
  export declare class DefaultApi extends BaseAPI {
3669
+ /**
3670
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
3671
+ * @param {string} credentialId Verifiable Credential Identifier
3672
+ * @param {string} walletId
3673
+ * @param {CredentialClaimMetadataGetMetadataScopeEnum} [metadataScope] Scope of the RDF metadata; - subject: only provide metadata for claims in credential subject - credential: provide metadata for claims in whole credential
3674
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
3675
+ * @param {*} [options] Override http request option.
3676
+ * @throws {RequiredError}
3677
+ */
3678
+ credentialClaimMetadataGet(credentialId: string, walletId: string, metadataScope?: CredentialClaimMetadataGetMetadataScopeEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
3679
+ [key: string]: CredentialClaimMetadata;
3680
+ }, any, {}>>;
3565
3681
  /**
3566
3682
  * Creates a new draft credential.
3567
3683
  * @param {string} walletId
3568
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
3684
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
3569
3685
  * @param {*} [options] Override http request option.
3570
3686
  * @throws {RequiredError}
3571
3687
  */
3572
- credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
3688
+ credentialCreate(walletId: string, credentialCreatePayload?: CredentialCreatePayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
3573
3689
  /**
3574
3690
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
3575
3691
  * @param {string} credentialId Verifiable Credential Identifier
@@ -3628,6 +3744,25 @@ export declare class DefaultApi extends BaseAPI {
3628
3744
  * @throws {RequiredError}
3629
3745
  */
3630
3746
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
3747
+ /**
3748
+ * Returns raw credential payload, with format depending on credential format.
3749
+ * @param {string} credentialId Verifiable Credential Identifier
3750
+ * @param {string} walletId
3751
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
3752
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
3753
+ * @param {*} [options] Override http request option.
3754
+ * @throws {RequiredError}
3755
+ */
3756
+ credentialPayloadGet(credentialId: string, walletId: string, form?: CredentialPayloadGetFormEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
3757
+ /**
3758
+ * Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)
3759
+ * @param {string} credentialId Verifiable Credential Identifier
3760
+ * @param {string} walletId
3761
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
3762
+ * @param {*} [options] Override http request option.
3763
+ * @throws {RequiredError}
3764
+ */
3765
+ credentialRawGet(credentialId: string, walletId: string, disclosedClaims?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
3631
3766
  /**
3632
3767
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3633
3768
  * @param {string} walletId
@@ -4195,6 +4330,11 @@ export declare class DefaultApi extends BaseAPI {
4195
4330
  */
4196
4331
  wmpEntityServerConnect(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4197
4332
  }
4333
+ export declare const CredentialClaimMetadataGetMetadataScopeEnum: {
4334
+ readonly Subject: "subject";
4335
+ readonly Credential: "credential";
4336
+ };
4337
+ export type CredentialClaimMetadataGetMetadataScopeEnum = typeof CredentialClaimMetadataGetMetadataScopeEnum[keyof typeof CredentialClaimMetadataGetMetadataScopeEnum];
4198
4338
  export declare const CredentialListInteractionEnum: {
4199
4339
  readonly Issuance: "issuance";
4200
4340
  readonly Receive: "receive";
@@ -4202,6 +4342,12 @@ export declare const CredentialListInteractionEnum: {
4202
4342
  readonly TaoCredentials: "taoCredentials";
4203
4343
  };
4204
4344
  export type CredentialListInteractionEnum = typeof CredentialListInteractionEnum[keyof typeof CredentialListInteractionEnum];
4345
+ export declare const CredentialPayloadGetFormEnum: {
4346
+ readonly Compacted: "compacted";
4347
+ readonly Expanded: "expanded";
4348
+ readonly Flattened: "flattened";
4349
+ };
4350
+ export type CredentialPayloadGetFormEnum = typeof CredentialPayloadGetFormEnum[keyof typeof CredentialPayloadGetFormEnum];
4205
4351
  export declare const WmpEntityListEntityTypeEnum: {
4206
4352
  readonly Server: "server";
4207
4353
  readonly Client: "client";
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.WmpEntityListEntityTypeEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WmpRequestType = exports.WmpProvideIdentityAssertionTypeEnum = exports.WmpProcessVerificationRequestTypeEnum = exports.WmpProcessOfferRequestTypeEnum = exports.WmpMessageSendStatus = exports.WmpAuthenticateSessionTypeEnum = exports.WmpAckReadRequestTypeEnum = exports.WmpAckProcessedRequestTypeEnum = exports.WalletNotificationEventType = exports.WalletCapability = exports.VaultType = exports.TrustListKind = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialPropertyToVerify = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionAuthorizationEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.CertificateStatus = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.WmpEntityListEntityTypeEnum = exports.CredentialPayloadGetFormEnum = exports.CredentialListInteractionEnum = exports.CredentialClaimMetadataGetMetadataScopeEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WmpRequestType = exports.WmpProvideIdentityAssertionTypeEnum = exports.WmpProcessVerificationRequestTypeEnum = exports.WmpProcessOfferRequestTypeEnum = exports.WmpMessageSendStatus = exports.WmpAuthenticateSessionTypeEnum = exports.WmpAckReadRequestTypeEnum = exports.WmpAckProcessedRequestTypeEnum = exports.WalletNotificationEventType = exports.WalletCapability = exports.VaultType = exports.TrustListKind = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialPropertyToVerify = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionAuthorizationEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.CertificateStatus = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -256,14 +256,60 @@ exports.XadesSignatureType = {
256
256
  */
257
257
  const DefaultApiAxiosParamCreator = function (configuration) {
258
258
  return {
259
+ /**
260
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
261
+ * @param {string} credentialId Verifiable Credential Identifier
262
+ * @param {string} walletId
263
+ * @param {CredentialClaimMetadataGetMetadataScopeEnum} [metadataScope] Scope of the RDF metadata; - subject: only provide metadata for claims in credential subject - credential: provide metadata for claims in whole credential
264
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ credentialClaimMetadataGet: (credentialId_1, walletId_1, metadataScope_1, contexts_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, metadataScope_1, contexts_1, ...args_1], void 0, function* (credentialId, walletId, metadataScope, contexts, options = {}) {
269
+ // verify required parameter 'credentialId' is not null or undefined
270
+ (0, common_1.assertParamExists)('credentialClaimMetadataGet', 'credentialId', credentialId);
271
+ // verify required parameter 'walletId' is not null or undefined
272
+ (0, common_1.assertParamExists)('credentialClaimMetadataGet', 'walletId', walletId);
273
+ const localVarPath = `/credentials/{credential_id}/claim_metadata`
274
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
277
+ let baseOptions;
278
+ if (configuration) {
279
+ baseOptions = configuration.baseOptions;
280
+ }
281
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
282
+ const localVarHeaderParameter = {};
283
+ const localVarQueryParameter = {};
284
+ // authentication accessToken required
285
+ // http bearer authentication required
286
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
287
+ if (metadataScope !== undefined) {
288
+ localVarQueryParameter['metadata_scope'] = metadataScope;
289
+ }
290
+ if (contexts) {
291
+ localVarQueryParameter['contexts'] = contexts;
292
+ }
293
+ localVarHeaderParameter['Accept'] = 'application/json';
294
+ if (walletId != null) {
295
+ localVarHeaderParameter['wallet-id'] = String(walletId);
296
+ }
297
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
300
+ return {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ };
304
+ }),
259
305
  /**
260
306
  * Creates a new draft credential.
261
307
  * @param {string} walletId
262
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
308
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
263
309
  * @param {*} [options] Override http request option.
264
310
  * @throws {RequiredError}
265
311
  */
266
- credentialCreate: (walletId_1, credentialPayload_1, ...args_1) => __awaiter(this, [walletId_1, credentialPayload_1, ...args_1], void 0, function* (walletId, credentialPayload, options = {}) {
312
+ credentialCreate: (walletId_1, credentialCreatePayload_1, ...args_1) => __awaiter(this, [walletId_1, credentialCreatePayload_1, ...args_1], void 0, function* (walletId, credentialCreatePayload, options = {}) {
267
313
  // verify required parameter 'walletId' is not null or undefined
268
314
  (0, common_1.assertParamExists)('credentialCreate', 'walletId', walletId);
269
315
  const localVarPath = `/credentials`;
@@ -287,7 +333,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
287
333
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
288
334
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
335
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
290
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialPayload, localVarRequestOptions, configuration);
336
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialCreatePayload, localVarRequestOptions, configuration);
291
337
  return {
292
338
  url: (0, common_1.toPathString)(localVarUrlObj),
293
339
  options: localVarRequestOptions,
@@ -557,6 +603,94 @@ const DefaultApiAxiosParamCreator = function (configuration) {
557
603
  options: localVarRequestOptions,
558
604
  };
559
605
  }),
606
+ /**
607
+ * Returns raw credential payload, with format depending on credential format.
608
+ * @param {string} credentialId Verifiable Credential Identifier
609
+ * @param {string} walletId
610
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
611
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ credentialPayloadGet: (credentialId_1, walletId_1, form_1, contexts_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, form_1, contexts_1, ...args_1], void 0, function* (credentialId, walletId, form, contexts, options = {}) {
616
+ // verify required parameter 'credentialId' is not null or undefined
617
+ (0, common_1.assertParamExists)('credentialPayloadGet', 'credentialId', credentialId);
618
+ // verify required parameter 'walletId' is not null or undefined
619
+ (0, common_1.assertParamExists)('credentialPayloadGet', 'walletId', walletId);
620
+ const localVarPath = `/credentials/{credential_id}/payload`
621
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
623
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
624
+ let baseOptions;
625
+ if (configuration) {
626
+ baseOptions = configuration.baseOptions;
627
+ }
628
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
629
+ const localVarHeaderParameter = {};
630
+ const localVarQueryParameter = {};
631
+ // authentication accessToken required
632
+ // http bearer authentication required
633
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
634
+ if (form !== undefined) {
635
+ localVarQueryParameter['form'] = form;
636
+ }
637
+ if (contexts) {
638
+ localVarQueryParameter['contexts'] = contexts;
639
+ }
640
+ localVarHeaderParameter['Accept'] = 'application/json,application/ld+json,application/cbor';
641
+ if (walletId != null) {
642
+ localVarHeaderParameter['wallet-id'] = String(walletId);
643
+ }
644
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
646
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
647
+ return {
648
+ url: (0, common_1.toPathString)(localVarUrlObj),
649
+ options: localVarRequestOptions,
650
+ };
651
+ }),
652
+ /**
653
+ * Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)
654
+ * @param {string} credentialId Verifiable Credential Identifier
655
+ * @param {string} walletId
656
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ */
660
+ credentialRawGet: (credentialId_1, walletId_1, disclosedClaims_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, disclosedClaims_1, ...args_1], void 0, function* (credentialId, walletId, disclosedClaims, options = {}) {
661
+ // verify required parameter 'credentialId' is not null or undefined
662
+ (0, common_1.assertParamExists)('credentialRawGet', 'credentialId', credentialId);
663
+ // verify required parameter 'walletId' is not null or undefined
664
+ (0, common_1.assertParamExists)('credentialRawGet', 'walletId', walletId);
665
+ const localVarPath = `/credentials/{credential_id}/raw`
666
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
667
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
668
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
669
+ let baseOptions;
670
+ if (configuration) {
671
+ baseOptions = configuration.baseOptions;
672
+ }
673
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
674
+ const localVarHeaderParameter = {};
675
+ const localVarQueryParameter = {};
676
+ // authentication accessToken required
677
+ // http bearer authentication required
678
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
679
+ if (disclosedClaims) {
680
+ localVarQueryParameter['disclosed_claims'] = disclosedClaims;
681
+ }
682
+ localVarHeaderParameter['Accept'] = 'application/dc+sd-jwt,application/sd-jwt,application/jwt,application/cbor,application/json';
683
+ if (walletId != null) {
684
+ localVarHeaderParameter['wallet-id'] = String(walletId);
685
+ }
686
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
687
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
688
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
689
+ return {
690
+ url: (0, common_1.toPathString)(localVarUrlObj),
691
+ options: localVarRequestOptions,
692
+ };
693
+ }),
560
694
  /**
561
695
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
562
696
  * @param {string} walletId
@@ -3191,17 +3325,35 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
3191
3325
  const DefaultApiFp = function (configuration) {
3192
3326
  const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
3193
3327
  return {
3328
+ /**
3329
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
3330
+ * @param {string} credentialId Verifiable Credential Identifier
3331
+ * @param {string} walletId
3332
+ * @param {CredentialClaimMetadataGetMetadataScopeEnum} [metadataScope] Scope of the RDF metadata; - subject: only provide metadata for claims in credential subject - credential: provide metadata for claims in whole credential
3333
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
3334
+ * @param {*} [options] Override http request option.
3335
+ * @throws {RequiredError}
3336
+ */
3337
+ credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options) {
3338
+ return __awaiter(this, void 0, void 0, function* () {
3339
+ var _a, _b, _c;
3340
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options);
3341
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3342
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialClaimMetadataGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3343
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3344
+ });
3345
+ },
3194
3346
  /**
3195
3347
  * Creates a new draft credential.
3196
3348
  * @param {string} walletId
3197
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
3349
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
3198
3350
  * @param {*} [options] Override http request option.
3199
3351
  * @throws {RequiredError}
3200
3352
  */
3201
- credentialCreate(walletId, credentialPayload, options) {
3353
+ credentialCreate(walletId, credentialCreatePayload, options) {
3202
3354
  return __awaiter(this, void 0, void 0, function* () {
3203
3355
  var _a, _b, _c;
3204
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(walletId, credentialPayload, options);
3356
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(walletId, credentialCreatePayload, options);
3205
3357
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3206
3358
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3207
3359
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3313,6 +3465,41 @@ const DefaultApiFp = function (configuration) {
3313
3465
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3314
3466
  });
3315
3467
  },
3468
+ /**
3469
+ * Returns raw credential payload, with format depending on credential format.
3470
+ * @param {string} credentialId Verifiable Credential Identifier
3471
+ * @param {string} walletId
3472
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
3473
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
3474
+ * @param {*} [options] Override http request option.
3475
+ * @throws {RequiredError}
3476
+ */
3477
+ credentialPayloadGet(credentialId, walletId, form, contexts, options) {
3478
+ return __awaiter(this, void 0, void 0, function* () {
3479
+ var _a, _b, _c;
3480
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialPayloadGet(credentialId, walletId, form, contexts, options);
3481
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3482
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialPayloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3483
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3484
+ });
3485
+ },
3486
+ /**
3487
+ * Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)
3488
+ * @param {string} credentialId Verifiable Credential Identifier
3489
+ * @param {string} walletId
3490
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
3491
+ * @param {*} [options] Override http request option.
3492
+ * @throws {RequiredError}
3493
+ */
3494
+ credentialRawGet(credentialId, walletId, disclosedClaims, options) {
3495
+ return __awaiter(this, void 0, void 0, function* () {
3496
+ var _a, _b, _c;
3497
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRawGet(credentialId, walletId, disclosedClaims, options);
3498
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3499
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialRawGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3500
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3501
+ });
3502
+ },
3316
3503
  /**
3317
3504
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3318
3505
  * @param {string} walletId
@@ -4446,15 +4633,27 @@ exports.DefaultApiFp = DefaultApiFp;
4446
4633
  const DefaultApiFactory = function (configuration, basePath, axios) {
4447
4634
  const localVarFp = (0, exports.DefaultApiFp)(configuration);
4448
4635
  return {
4636
+ /**
4637
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
4638
+ * @param {string} credentialId Verifiable Credential Identifier
4639
+ * @param {string} walletId
4640
+ * @param {CredentialClaimMetadataGetMetadataScopeEnum} [metadataScope] Scope of the RDF metadata; - subject: only provide metadata for claims in credential subject - credential: provide metadata for claims in whole credential
4641
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
4642
+ * @param {*} [options] Override http request option.
4643
+ * @throws {RequiredError}
4644
+ */
4645
+ credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options) {
4646
+ return localVarFp.credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options).then((request) => request(axios, basePath));
4647
+ },
4449
4648
  /**
4450
4649
  * Creates a new draft credential.
4451
4650
  * @param {string} walletId
4452
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
4651
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
4453
4652
  * @param {*} [options] Override http request option.
4454
4653
  * @throws {RequiredError}
4455
4654
  */
4456
- credentialCreate(walletId, credentialPayload, options) {
4457
- return localVarFp.credentialCreate(walletId, credentialPayload, options).then((request) => request(axios, basePath));
4655
+ credentialCreate(walletId, credentialCreatePayload, options) {
4656
+ return localVarFp.credentialCreate(walletId, credentialCreatePayload, options).then((request) => request(axios, basePath));
4458
4657
  },
4459
4658
  /**
4460
4659
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
@@ -4526,6 +4725,29 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4526
4725
  credentialPatch(credentialId, walletId, credentialPatchPayload, options) {
4527
4726
  return localVarFp.credentialPatch(credentialId, walletId, credentialPatchPayload, options).then((request) => request(axios, basePath));
4528
4727
  },
4728
+ /**
4729
+ * Returns raw credential payload, with format depending on credential format.
4730
+ * @param {string} credentialId Verifiable Credential Identifier
4731
+ * @param {string} walletId
4732
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
4733
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
4734
+ * @param {*} [options] Override http request option.
4735
+ * @throws {RequiredError}
4736
+ */
4737
+ credentialPayloadGet(credentialId, walletId, form, contexts, options) {
4738
+ return localVarFp.credentialPayloadGet(credentialId, walletId, form, contexts, options).then((request) => request(axios, basePath));
4739
+ },
4740
+ /**
4741
+ * Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)
4742
+ * @param {string} credentialId Verifiable Credential Identifier
4743
+ * @param {string} walletId
4744
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
4745
+ * @param {*} [options] Override http request option.
4746
+ * @throws {RequiredError}
4747
+ */
4748
+ credentialRawGet(credentialId, walletId, disclosedClaims, options) {
4749
+ return localVarFp.credentialRawGet(credentialId, walletId, disclosedClaims, options).then((request) => request(axios, basePath));
4750
+ },
4529
4751
  /**
4530
4752
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
4531
4753
  * @param {string} walletId
@@ -5237,15 +5459,27 @@ exports.DefaultApiFactory = DefaultApiFactory;
5237
5459
  * DefaultApi - object-oriented interface
5238
5460
  */
5239
5461
  class DefaultApi extends base_1.BaseAPI {
5462
+ /**
5463
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
5464
+ * @param {string} credentialId Verifiable Credential Identifier
5465
+ * @param {string} walletId
5466
+ * @param {CredentialClaimMetadataGetMetadataScopeEnum} [metadataScope] Scope of the RDF metadata; - subject: only provide metadata for claims in credential subject - credential: provide metadata for claims in whole credential
5467
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
5468
+ * @param {*} [options] Override http request option.
5469
+ * @throws {RequiredError}
5470
+ */
5471
+ credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options) {
5472
+ return (0, exports.DefaultApiFp)(this.configuration).credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options).then((request) => request(this.axios, this.basePath));
5473
+ }
5240
5474
  /**
5241
5475
  * Creates a new draft credential.
5242
5476
  * @param {string} walletId
5243
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
5477
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
5244
5478
  * @param {*} [options] Override http request option.
5245
5479
  * @throws {RequiredError}
5246
5480
  */
5247
- credentialCreate(walletId, credentialPayload, options) {
5248
- return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(walletId, credentialPayload, options).then((request) => request(this.axios, this.basePath));
5481
+ credentialCreate(walletId, credentialCreatePayload, options) {
5482
+ return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(walletId, credentialCreatePayload, options).then((request) => request(this.axios, this.basePath));
5249
5483
  }
5250
5484
  /**
5251
5485
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
@@ -5317,6 +5551,29 @@ class DefaultApi extends base_1.BaseAPI {
5317
5551
  credentialPatch(credentialId, walletId, credentialPatchPayload, options) {
5318
5552
  return (0, exports.DefaultApiFp)(this.configuration).credentialPatch(credentialId, walletId, credentialPatchPayload, options).then((request) => request(this.axios, this.basePath));
5319
5553
  }
5554
+ /**
5555
+ * Returns raw credential payload, with format depending on credential format.
5556
+ * @param {string} credentialId Verifiable Credential Identifier
5557
+ * @param {string} walletId
5558
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
5559
+ * @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
5560
+ * @param {*} [options] Override http request option.
5561
+ * @throws {RequiredError}
5562
+ */
5563
+ credentialPayloadGet(credentialId, walletId, form, contexts, options) {
5564
+ return (0, exports.DefaultApiFp)(this.configuration).credentialPayloadGet(credentialId, walletId, form, contexts, options).then((request) => request(this.axios, this.basePath));
5565
+ }
5566
+ /**
5567
+ * Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)
5568
+ * @param {string} credentialId Verifiable Credential Identifier
5569
+ * @param {string} walletId
5570
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
5571
+ * @param {*} [options] Override http request option.
5572
+ * @throws {RequiredError}
5573
+ */
5574
+ credentialRawGet(credentialId, walletId, disclosedClaims, options) {
5575
+ return (0, exports.DefaultApiFp)(this.configuration).credentialRawGet(credentialId, walletId, disclosedClaims, options).then((request) => request(this.axios, this.basePath));
5576
+ }
5320
5577
  /**
5321
5578
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
5322
5579
  * @param {string} walletId
@@ -6023,12 +6280,21 @@ class DefaultApi extends base_1.BaseAPI {
6023
6280
  }
6024
6281
  }
6025
6282
  exports.DefaultApi = DefaultApi;
6283
+ exports.CredentialClaimMetadataGetMetadataScopeEnum = {
6284
+ Subject: 'subject',
6285
+ Credential: 'credential',
6286
+ };
6026
6287
  exports.CredentialListInteractionEnum = {
6027
6288
  Issuance: 'issuance',
6028
6289
  Receive: 'receive',
6029
6290
  StatusList: 'statusList',
6030
6291
  TaoCredentials: 'taoCredentials',
6031
6292
  };
6293
+ exports.CredentialPayloadGetFormEnum = {
6294
+ Compacted: 'compacted',
6295
+ Expanded: 'expanded',
6296
+ Flattened: 'flattened',
6297
+ };
6032
6298
  exports.WmpEntityListEntityTypeEnum = {
6033
6299
  Server: 'server',
6034
6300
  Client: 'client',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.322",
4
+ "version": "0.0.324",
5
5
  "description": "",
6
6
  "repository": {
7
7
  "type": "git",