@triveria/wallet 0.0.323 → 0.0.325

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 +183 -32
  2. package/api.js +286 -13
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -91,10 +91,31 @@ 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
+ /**
115
+ * Contexts of the credential. When the first one is not a base VC context, the base context of `vcdmVersion` is put in front of them.
116
+ */
117
+ 'contexts'?: Array<string>;
118
+ 'vcdmVersion'?: VcdmVersion;
98
119
  'id': string;
99
120
  'name': string;
100
121
  'type': string;
@@ -300,18 +321,6 @@ export interface CredentialPatchPayload {
300
321
  */
301
322
  'validateSchema'?: boolean;
302
323
  }
303
- /**
304
- * A Credential container used to create credentials with metadata.
305
- */
306
- export interface CredentialPayload {
307
- [key: string]: any;
308
- 'credentialSubject': CredentialSubject;
309
- 'credentialDraftMetadata': CredentialDraftMetadata;
310
- /**
311
- * If true, the credential draft is checked against its schema. Defaults to true.
312
- */
313
- 'validateSchema'?: boolean;
314
- }
315
324
  /**
316
325
  * Credential property that will be verified. `verifySchema` is only applicable in W3C VCDM credentials. With other types, this field will be ignored.
317
326
  */
@@ -348,13 +357,9 @@ export interface CredentialRequirementsIssuerConfig {
348
357
  }
349
358
  /**
350
359
  * @type CredentialSubject
351
- * 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
360
+ * 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.
352
361
  */
353
- export type CredentialSubject = Array<CredentialSubjectItem> | CredentialSubjectItem;
354
- export interface CredentialSubjectItem {
355
- [key: string]: any;
356
- 'id'?: string;
357
- }
362
+ export type CredentialSubject = Array<object> | object;
358
363
  export interface CredentialToPresentWrapper {
359
364
  'credential': CredentialMetadata;
360
365
  /**
@@ -407,15 +412,11 @@ export interface CredentialVerifierDefinition {
407
412
  'redirectUri'?: string;
408
413
  }
409
414
  /**
410
- * The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
415
+ * The wrapper contains Verifiable Credential Subject and Metadata.
411
416
  */
412
417
  export interface CredentialWrapper {
413
418
  'metadata': CredentialMetadata;
414
- 'vcSubject'?: CredentialSubject;
415
- /**
416
- * The base64 encoded Verifiable Credential in its final signed form
417
- */
418
- 'signedVc'?: string;
419
+ 'vcSubject': CredentialSubject;
419
420
  }
420
421
  export interface CtWalletSameIssuerConfig {
421
422
  /**
@@ -582,6 +583,15 @@ export interface EbsiConfiguration {
582
583
  'trustedSchemasRegistry': string;
583
584
  'mainSchema': string;
584
585
  'statusListSchema': string;
586
+ 'trustChainVcdm'?: VcdmVersion;
587
+ /**
588
+ * Schema of VCDM 2.0 trust chain credentials (`VerifiableTrustModel`), used when trustChainVcdm is 2.0.
589
+ */
590
+ 'trustModelSchema'?: string;
591
+ /**
592
+ * TIR URL of the root authorisation of the wallet\'s trust chain, which VCDM 2.0 accreditations name in their `AccreditationPolicy`. Required when trustChainVcdm is 2.0.
593
+ */
594
+ 'trustChainRootAuthorisation'?: string;
585
595
  }
586
596
  /**
587
597
  * EBSI specific data
@@ -1154,6 +1164,14 @@ export interface VcOffer {
1154
1164
  */
1155
1165
  'Url': string;
1156
1166
  }
1167
+ /**
1168
+ * The W3C VC Data Model version of a W3C VCDM credential: `1.1` (https://www.w3.org/2018/credentials/v1) or `2.0` (https://www.w3.org/ns/credentials/v2). The wallet does not choose it. On a draft, the client sets it, and it defaults to 2.0; a draft whose `contexts` start with a base context must not name a different version. On an EBSI configuration (`trustChainVcdm`), it is the version of the trust chain credentials the wallet issues; that one defaults to 1.1.
1169
+ */
1170
+ export declare const VcdmVersion: {
1171
+ readonly _11: "1.1";
1172
+ readonly _20: "2.0";
1173
+ };
1174
+ export type VcdmVersion = typeof VcdmVersion[keyof typeof VcdmVersion];
1157
1175
  export interface VerifiedLinkedVp {
1158
1176
  'linkedVpId': string;
1159
1177
  /**
@@ -1669,14 +1687,24 @@ export type XadesSignatureType = typeof XadesSignatureType[keyof typeof XadesSig
1669
1687
  * DefaultApi - axios parameter creator
1670
1688
  */
1671
1689
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
1690
+ /**
1691
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
1692
+ * @param {string} credentialId Verifiable Credential Identifier
1693
+ * @param {string} walletId
1694
+ * @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
1695
+ * @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.
1696
+ * @param {*} [options] Override http request option.
1697
+ * @throws {RequiredError}
1698
+ */
1699
+ credentialClaimMetadataGet: (credentialId: string, walletId: string, metadataScope?: CredentialClaimMetadataGetMetadataScopeEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1672
1700
  /**
1673
1701
  * Creates a new draft credential.
1674
1702
  * @param {string} walletId
1675
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
1703
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
1676
1704
  * @param {*} [options] Override http request option.
1677
1705
  * @throws {RequiredError}
1678
1706
  */
1679
- credentialCreate: (walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1707
+ credentialCreate: (walletId: string, credentialCreatePayload?: CredentialCreatePayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1680
1708
  /**
1681
1709
  * 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.
1682
1710
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1735,6 +1763,25 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1735
1763
  * @throws {RequiredError}
1736
1764
  */
1737
1765
  credentialPatch: (credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1766
+ /**
1767
+ * Returns raw credential payload, with format depending on credential format.
1768
+ * @param {string} credentialId Verifiable Credential Identifier
1769
+ * @param {string} walletId
1770
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
1771
+ * @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.
1772
+ * @param {*} [options] Override http request option.
1773
+ * @throws {RequiredError}
1774
+ */
1775
+ credentialPayloadGet: (credentialId: string, walletId: string, form?: CredentialPayloadGetFormEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1776
+ /**
1777
+ * 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)
1778
+ * @param {string} credentialId Verifiable Credential Identifier
1779
+ * @param {string} walletId
1780
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ credentialRawGet: (credentialId: string, walletId: string, disclosedClaims?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1738
1785
  /**
1739
1786
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
1740
1787
  * @param {string} walletId
@@ -2304,14 +2351,26 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2304
2351
  * DefaultApi - functional programming interface
2305
2352
  */
2306
2353
  export declare const DefaultApiFp: (configuration?: Configuration) => {
2354
+ /**
2355
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
2356
+ * @param {string} credentialId Verifiable Credential Identifier
2357
+ * @param {string} walletId
2358
+ * @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
2359
+ * @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.
2360
+ * @param {*} [options] Override http request option.
2361
+ * @throws {RequiredError}
2362
+ */
2363
+ credentialClaimMetadataGet(credentialId: string, walletId: string, metadataScope?: CredentialClaimMetadataGetMetadataScopeEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
2364
+ [key: string]: CredentialClaimMetadata;
2365
+ }>>;
2307
2366
  /**
2308
2367
  * Creates a new draft credential.
2309
2368
  * @param {string} walletId
2310
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
2369
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
2311
2370
  * @param {*} [options] Override http request option.
2312
2371
  * @throws {RequiredError}
2313
2372
  */
2314
- credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2373
+ credentialCreate(walletId: string, credentialCreatePayload?: CredentialCreatePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2315
2374
  /**
2316
2375
  * 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.
2317
2376
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2370,6 +2429,25 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2370
2429
  * @throws {RequiredError}
2371
2430
  */
2372
2431
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2432
+ /**
2433
+ * Returns raw credential payload, with format depending on credential format.
2434
+ * @param {string} credentialId Verifiable Credential Identifier
2435
+ * @param {string} walletId
2436
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
2437
+ * @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.
2438
+ * @param {*} [options] Override http request option.
2439
+ * @throws {RequiredError}
2440
+ */
2441
+ credentialPayloadGet(credentialId: string, walletId: string, form?: CredentialPayloadGetFormEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
2442
+ /**
2443
+ * 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)
2444
+ * @param {string} credentialId Verifiable Credential Identifier
2445
+ * @param {string} walletId
2446
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
2447
+ * @param {*} [options] Override http request option.
2448
+ * @throws {RequiredError}
2449
+ */
2450
+ credentialRawGet(credentialId: string, walletId: string, disclosedClaims?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
2373
2451
  /**
2374
2452
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2375
2453
  * @param {string} walletId
@@ -2941,14 +3019,26 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2941
3019
  * DefaultApi - factory interface
2942
3020
  */
2943
3021
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3022
+ /**
3023
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
3024
+ * @param {string} credentialId Verifiable Credential Identifier
3025
+ * @param {string} walletId
3026
+ * @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
3027
+ * @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.
3028
+ * @param {*} [options] Override http request option.
3029
+ * @throws {RequiredError}
3030
+ */
3031
+ credentialClaimMetadataGet(credentialId: string, walletId: string, metadataScope?: CredentialClaimMetadataGetMetadataScopeEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<{
3032
+ [key: string]: CredentialClaimMetadata;
3033
+ }>;
2944
3034
  /**
2945
3035
  * Creates a new draft credential.
2946
3036
  * @param {string} walletId
2947
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
3037
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
2948
3038
  * @param {*} [options] Override http request option.
2949
3039
  * @throws {RequiredError}
2950
3040
  */
2951
- credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
3041
+ credentialCreate(walletId: string, credentialCreatePayload?: CredentialCreatePayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2952
3042
  /**
2953
3043
  * 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.
2954
3044
  * @param {string} credentialId Verifiable Credential Identifier
@@ -3007,6 +3097,25 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3007
3097
  * @throws {RequiredError}
3008
3098
  */
3009
3099
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
3100
+ /**
3101
+ * Returns raw credential payload, with format depending on credential format.
3102
+ * @param {string} credentialId Verifiable Credential Identifier
3103
+ * @param {string} walletId
3104
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
3105
+ * @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.
3106
+ * @param {*} [options] Override http request option.
3107
+ * @throws {RequiredError}
3108
+ */
3109
+ credentialPayloadGet(credentialId: string, walletId: string, form?: CredentialPayloadGetFormEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<object>;
3110
+ /**
3111
+ * 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)
3112
+ * @param {string} credentialId Verifiable Credential Identifier
3113
+ * @param {string} walletId
3114
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
3115
+ * @param {*} [options] Override http request option.
3116
+ * @throws {RequiredError}
3117
+ */
3118
+ credentialRawGet(credentialId: string, walletId: string, disclosedClaims?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<string>;
3010
3119
  /**
3011
3120
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3012
3121
  * @param {string} walletId
@@ -3578,14 +3687,26 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3578
3687
  * DefaultApi - object-oriented interface
3579
3688
  */
3580
3689
  export declare class DefaultApi extends BaseAPI {
3690
+ /**
3691
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
3692
+ * @param {string} credentialId Verifiable Credential Identifier
3693
+ * @param {string} walletId
3694
+ * @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
3695
+ * @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.
3696
+ * @param {*} [options] Override http request option.
3697
+ * @throws {RequiredError}
3698
+ */
3699
+ credentialClaimMetadataGet(credentialId: string, walletId: string, metadataScope?: CredentialClaimMetadataGetMetadataScopeEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
3700
+ [key: string]: CredentialClaimMetadata;
3701
+ }, any, {}>>;
3581
3702
  /**
3582
3703
  * Creates a new draft credential.
3583
3704
  * @param {string} walletId
3584
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
3705
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
3585
3706
  * @param {*} [options] Override http request option.
3586
3707
  * @throws {RequiredError}
3587
3708
  */
3588
- credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
3709
+ credentialCreate(walletId: string, credentialCreatePayload?: CredentialCreatePayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
3589
3710
  /**
3590
3711
  * 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.
3591
3712
  * @param {string} credentialId Verifiable Credential Identifier
@@ -3644,6 +3765,25 @@ export declare class DefaultApi extends BaseAPI {
3644
3765
  * @throws {RequiredError}
3645
3766
  */
3646
3767
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
3768
+ /**
3769
+ * Returns raw credential payload, with format depending on credential format.
3770
+ * @param {string} credentialId Verifiable Credential Identifier
3771
+ * @param {string} walletId
3772
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
3773
+ * @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.
3774
+ * @param {*} [options] Override http request option.
3775
+ * @throws {RequiredError}
3776
+ */
3777
+ credentialPayloadGet(credentialId: string, walletId: string, form?: CredentialPayloadGetFormEnum, contexts?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
3778
+ /**
3779
+ * 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)
3780
+ * @param {string} credentialId Verifiable Credential Identifier
3781
+ * @param {string} walletId
3782
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
3783
+ * @param {*} [options] Override http request option.
3784
+ * @throws {RequiredError}
3785
+ */
3786
+ credentialRawGet(credentialId: string, walletId: string, disclosedClaims?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
3647
3787
  /**
3648
3788
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3649
3789
  * @param {string} walletId
@@ -4211,6 +4351,11 @@ export declare class DefaultApi extends BaseAPI {
4211
4351
  */
4212
4352
  wmpEntityServerConnect(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4213
4353
  }
4354
+ export declare const CredentialClaimMetadataGetMetadataScopeEnum: {
4355
+ readonly Subject: "subject";
4356
+ readonly Credential: "credential";
4357
+ };
4358
+ export type CredentialClaimMetadataGetMetadataScopeEnum = typeof CredentialClaimMetadataGetMetadataScopeEnum[keyof typeof CredentialClaimMetadataGetMetadataScopeEnum];
4214
4359
  export declare const CredentialListInteractionEnum: {
4215
4360
  readonly Issuance: "issuance";
4216
4361
  readonly Receive: "receive";
@@ -4218,6 +4363,12 @@ export declare const CredentialListInteractionEnum: {
4218
4363
  readonly TaoCredentials: "taoCredentials";
4219
4364
  };
4220
4365
  export type CredentialListInteractionEnum = typeof CredentialListInteractionEnum[keyof typeof CredentialListInteractionEnum];
4366
+ export declare const CredentialPayloadGetFormEnum: {
4367
+ readonly Compacted: "compacted";
4368
+ readonly Expanded: "expanded";
4369
+ readonly Flattened: "flattened";
4370
+ };
4371
+ export type CredentialPayloadGetFormEnum = typeof CredentialPayloadGetFormEnum[keyof typeof CredentialPayloadGetFormEnum];
4221
4372
  export declare const WmpEntityListEntityTypeEnum: {
4222
4373
  readonly Server: "server";
4223
4374
  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.VcdmVersion = 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
@@ -190,6 +190,13 @@ exports.VaultType = {
190
190
  VaultOvhKms: 'vaultOvhKms',
191
191
  VaultKmip: 'vaultKmip',
192
192
  };
193
+ /**
194
+ * The W3C VC Data Model version of a W3C VCDM credential: `1.1` (https://www.w3.org/2018/credentials/v1) or `2.0` (https://www.w3.org/ns/credentials/v2). The wallet does not choose it. On a draft, the client sets it, and it defaults to 2.0; a draft whose `contexts` start with a base context must not name a different version. On an EBSI configuration (`trustChainVcdm`), it is the version of the trust chain credentials the wallet issues; that one defaults to 1.1.
195
+ */
196
+ exports.VcdmVersion = {
197
+ _11: '1.1',
198
+ _20: '2.0',
199
+ };
193
200
  /**
194
201
  * Defines the capabilities which the wallet has. It may be any of \"holder\", \"issuer\" and \"verifier\".
195
202
  */
@@ -256,14 +263,60 @@ exports.XadesSignatureType = {
256
263
  */
257
264
  const DefaultApiAxiosParamCreator = function (configuration) {
258
265
  return {
266
+ /**
267
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
268
+ * @param {string} credentialId Verifiable Credential Identifier
269
+ * @param {string} walletId
270
+ * @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
271
+ * @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.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ 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 = {}) {
276
+ // verify required parameter 'credentialId' is not null or undefined
277
+ (0, common_1.assertParamExists)('credentialClaimMetadataGet', 'credentialId', credentialId);
278
+ // verify required parameter 'walletId' is not null or undefined
279
+ (0, common_1.assertParamExists)('credentialClaimMetadataGet', 'walletId', walletId);
280
+ const localVarPath = `/credentials/{credential_id}/claim_metadata`
281
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
283
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
284
+ let baseOptions;
285
+ if (configuration) {
286
+ baseOptions = configuration.baseOptions;
287
+ }
288
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
289
+ const localVarHeaderParameter = {};
290
+ const localVarQueryParameter = {};
291
+ // authentication accessToken required
292
+ // http bearer authentication required
293
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
294
+ if (metadataScope !== undefined) {
295
+ localVarQueryParameter['metadata_scope'] = metadataScope;
296
+ }
297
+ if (contexts) {
298
+ localVarQueryParameter['contexts'] = contexts;
299
+ }
300
+ localVarHeaderParameter['Accept'] = 'application/json';
301
+ if (walletId != null) {
302
+ localVarHeaderParameter['wallet-id'] = String(walletId);
303
+ }
304
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
305
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
307
+ return {
308
+ url: (0, common_1.toPathString)(localVarUrlObj),
309
+ options: localVarRequestOptions,
310
+ };
311
+ }),
259
312
  /**
260
313
  * Creates a new draft credential.
261
314
  * @param {string} walletId
262
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
315
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
263
316
  * @param {*} [options] Override http request option.
264
317
  * @throws {RequiredError}
265
318
  */
266
- credentialCreate: (walletId_1, credentialPayload_1, ...args_1) => __awaiter(this, [walletId_1, credentialPayload_1, ...args_1], void 0, function* (walletId, credentialPayload, options = {}) {
319
+ credentialCreate: (walletId_1, credentialCreatePayload_1, ...args_1) => __awaiter(this, [walletId_1, credentialCreatePayload_1, ...args_1], void 0, function* (walletId, credentialCreatePayload, options = {}) {
267
320
  // verify required parameter 'walletId' is not null or undefined
268
321
  (0, common_1.assertParamExists)('credentialCreate', 'walletId', walletId);
269
322
  const localVarPath = `/credentials`;
@@ -287,7 +340,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
287
340
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
288
341
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
342
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
290
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialPayload, localVarRequestOptions, configuration);
343
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialCreatePayload, localVarRequestOptions, configuration);
291
344
  return {
292
345
  url: (0, common_1.toPathString)(localVarUrlObj),
293
346
  options: localVarRequestOptions,
@@ -557,6 +610,94 @@ const DefaultApiAxiosParamCreator = function (configuration) {
557
610
  options: localVarRequestOptions,
558
611
  };
559
612
  }),
613
+ /**
614
+ * Returns raw credential payload, with format depending on credential format.
615
+ * @param {string} credentialId Verifiable Credential Identifier
616
+ * @param {string} walletId
617
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
618
+ * @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.
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ */
622
+ 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 = {}) {
623
+ // verify required parameter 'credentialId' is not null or undefined
624
+ (0, common_1.assertParamExists)('credentialPayloadGet', 'credentialId', credentialId);
625
+ // verify required parameter 'walletId' is not null or undefined
626
+ (0, common_1.assertParamExists)('credentialPayloadGet', 'walletId', walletId);
627
+ const localVarPath = `/credentials/{credential_id}/payload`
628
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
629
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
630
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
631
+ let baseOptions;
632
+ if (configuration) {
633
+ baseOptions = configuration.baseOptions;
634
+ }
635
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
636
+ const localVarHeaderParameter = {};
637
+ const localVarQueryParameter = {};
638
+ // authentication accessToken required
639
+ // http bearer authentication required
640
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
641
+ if (form !== undefined) {
642
+ localVarQueryParameter['form'] = form;
643
+ }
644
+ if (contexts) {
645
+ localVarQueryParameter['contexts'] = contexts;
646
+ }
647
+ localVarHeaderParameter['Accept'] = 'application/json,application/ld+json,application/cbor';
648
+ if (walletId != null) {
649
+ localVarHeaderParameter['wallet-id'] = String(walletId);
650
+ }
651
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
652
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
653
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
654
+ return {
655
+ url: (0, common_1.toPathString)(localVarUrlObj),
656
+ options: localVarRequestOptions,
657
+ };
658
+ }),
659
+ /**
660
+ * 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)
661
+ * @param {string} credentialId Verifiable Credential Identifier
662
+ * @param {string} walletId
663
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ 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 = {}) {
668
+ // verify required parameter 'credentialId' is not null or undefined
669
+ (0, common_1.assertParamExists)('credentialRawGet', 'credentialId', credentialId);
670
+ // verify required parameter 'walletId' is not null or undefined
671
+ (0, common_1.assertParamExists)('credentialRawGet', 'walletId', walletId);
672
+ const localVarPath = `/credentials/{credential_id}/raw`
673
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
674
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
675
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
676
+ let baseOptions;
677
+ if (configuration) {
678
+ baseOptions = configuration.baseOptions;
679
+ }
680
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
681
+ const localVarHeaderParameter = {};
682
+ const localVarQueryParameter = {};
683
+ // authentication accessToken required
684
+ // http bearer authentication required
685
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
686
+ if (disclosedClaims) {
687
+ localVarQueryParameter['disclosed_claims'] = disclosedClaims;
688
+ }
689
+ localVarHeaderParameter['Accept'] = 'application/dc+sd-jwt,application/sd-jwt,application/jwt,application/cbor,application/json';
690
+ if (walletId != null) {
691
+ localVarHeaderParameter['wallet-id'] = String(walletId);
692
+ }
693
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
694
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
695
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
696
+ return {
697
+ url: (0, common_1.toPathString)(localVarUrlObj),
698
+ options: localVarRequestOptions,
699
+ };
700
+ }),
560
701
  /**
561
702
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
562
703
  * @param {string} walletId
@@ -3191,17 +3332,35 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
3191
3332
  const DefaultApiFp = function (configuration) {
3192
3333
  const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
3193
3334
  return {
3335
+ /**
3336
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
3337
+ * @param {string} credentialId Verifiable Credential Identifier
3338
+ * @param {string} walletId
3339
+ * @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
3340
+ * @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.
3341
+ * @param {*} [options] Override http request option.
3342
+ * @throws {RequiredError}
3343
+ */
3344
+ credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options) {
3345
+ return __awaiter(this, void 0, void 0, function* () {
3346
+ var _a, _b, _c;
3347
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options);
3348
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3349
+ 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;
3350
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3351
+ });
3352
+ },
3194
3353
  /**
3195
3354
  * Creates a new draft credential.
3196
3355
  * @param {string} walletId
3197
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
3356
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
3198
3357
  * @param {*} [options] Override http request option.
3199
3358
  * @throws {RequiredError}
3200
3359
  */
3201
- credentialCreate(walletId, credentialPayload, options) {
3360
+ credentialCreate(walletId, credentialCreatePayload, options) {
3202
3361
  return __awaiter(this, void 0, void 0, function* () {
3203
3362
  var _a, _b, _c;
3204
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(walletId, credentialPayload, options);
3363
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(walletId, credentialCreatePayload, options);
3205
3364
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3206
3365
  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
3366
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3313,6 +3472,41 @@ const DefaultApiFp = function (configuration) {
3313
3472
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3314
3473
  });
3315
3474
  },
3475
+ /**
3476
+ * Returns raw credential payload, with format depending on credential format.
3477
+ * @param {string} credentialId Verifiable Credential Identifier
3478
+ * @param {string} walletId
3479
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
3480
+ * @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.
3481
+ * @param {*} [options] Override http request option.
3482
+ * @throws {RequiredError}
3483
+ */
3484
+ credentialPayloadGet(credentialId, walletId, form, contexts, options) {
3485
+ return __awaiter(this, void 0, void 0, function* () {
3486
+ var _a, _b, _c;
3487
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialPayloadGet(credentialId, walletId, form, contexts, options);
3488
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3489
+ 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;
3490
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3491
+ });
3492
+ },
3493
+ /**
3494
+ * 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)
3495
+ * @param {string} credentialId Verifiable Credential Identifier
3496
+ * @param {string} walletId
3497
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
3498
+ * @param {*} [options] Override http request option.
3499
+ * @throws {RequiredError}
3500
+ */
3501
+ credentialRawGet(credentialId, walletId, disclosedClaims, options) {
3502
+ return __awaiter(this, void 0, void 0, function* () {
3503
+ var _a, _b, _c;
3504
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRawGet(credentialId, walletId, disclosedClaims, options);
3505
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3506
+ 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;
3507
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3508
+ });
3509
+ },
3316
3510
  /**
3317
3511
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3318
3512
  * @param {string} walletId
@@ -4446,15 +4640,27 @@ exports.DefaultApiFp = DefaultApiFp;
4446
4640
  const DefaultApiFactory = function (configuration, basePath, axios) {
4447
4641
  const localVarFp = (0, exports.DefaultApiFp)(configuration);
4448
4642
  return {
4643
+ /**
4644
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
4645
+ * @param {string} credentialId Verifiable Credential Identifier
4646
+ * @param {string} walletId
4647
+ * @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
4648
+ * @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.
4649
+ * @param {*} [options] Override http request option.
4650
+ * @throws {RequiredError}
4651
+ */
4652
+ credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options) {
4653
+ return localVarFp.credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options).then((request) => request(axios, basePath));
4654
+ },
4449
4655
  /**
4450
4656
  * Creates a new draft credential.
4451
4657
  * @param {string} walletId
4452
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
4658
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
4453
4659
  * @param {*} [options] Override http request option.
4454
4660
  * @throws {RequiredError}
4455
4661
  */
4456
- credentialCreate(walletId, credentialPayload, options) {
4457
- return localVarFp.credentialCreate(walletId, credentialPayload, options).then((request) => request(axios, basePath));
4662
+ credentialCreate(walletId, credentialCreatePayload, options) {
4663
+ return localVarFp.credentialCreate(walletId, credentialCreatePayload, options).then((request) => request(axios, basePath));
4458
4664
  },
4459
4665
  /**
4460
4666
  * 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 +4732,29 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4526
4732
  credentialPatch(credentialId, walletId, credentialPatchPayload, options) {
4527
4733
  return localVarFp.credentialPatch(credentialId, walletId, credentialPatchPayload, options).then((request) => request(axios, basePath));
4528
4734
  },
4735
+ /**
4736
+ * Returns raw credential payload, with format depending on credential format.
4737
+ * @param {string} credentialId Verifiable Credential Identifier
4738
+ * @param {string} walletId
4739
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
4740
+ * @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.
4741
+ * @param {*} [options] Override http request option.
4742
+ * @throws {RequiredError}
4743
+ */
4744
+ credentialPayloadGet(credentialId, walletId, form, contexts, options) {
4745
+ return localVarFp.credentialPayloadGet(credentialId, walletId, form, contexts, options).then((request) => request(axios, basePath));
4746
+ },
4747
+ /**
4748
+ * 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)
4749
+ * @param {string} credentialId Verifiable Credential Identifier
4750
+ * @param {string} walletId
4751
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
4752
+ * @param {*} [options] Override http request option.
4753
+ * @throws {RequiredError}
4754
+ */
4755
+ credentialRawGet(credentialId, walletId, disclosedClaims, options) {
4756
+ return localVarFp.credentialRawGet(credentialId, walletId, disclosedClaims, options).then((request) => request(axios, basePath));
4757
+ },
4529
4758
  /**
4530
4759
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
4531
4760
  * @param {string} walletId
@@ -5237,15 +5466,27 @@ exports.DefaultApiFactory = DefaultApiFactory;
5237
5466
  * DefaultApi - object-oriented interface
5238
5467
  */
5239
5468
  class DefaultApi extends base_1.BaseAPI {
5469
+ /**
5470
+ * Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
5471
+ * @param {string} credentialId Verifiable Credential Identifier
5472
+ * @param {string} walletId
5473
+ * @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
5474
+ * @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.
5475
+ * @param {*} [options] Override http request option.
5476
+ * @throws {RequiredError}
5477
+ */
5478
+ credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options) {
5479
+ return (0, exports.DefaultApiFp)(this.configuration).credentialClaimMetadataGet(credentialId, walletId, metadataScope, contexts, options).then((request) => request(this.axios, this.basePath));
5480
+ }
5240
5481
  /**
5241
5482
  * Creates a new draft credential.
5242
5483
  * @param {string} walletId
5243
- * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
5484
+ * @param {CredentialCreatePayload} [credentialCreatePayload] A Verifiable Credential payload in JSON format.
5244
5485
  * @param {*} [options] Override http request option.
5245
5486
  * @throws {RequiredError}
5246
5487
  */
5247
- credentialCreate(walletId, credentialPayload, options) {
5248
- return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(walletId, credentialPayload, options).then((request) => request(this.axios, this.basePath));
5488
+ credentialCreate(walletId, credentialCreatePayload, options) {
5489
+ return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(walletId, credentialCreatePayload, options).then((request) => request(this.axios, this.basePath));
5249
5490
  }
5250
5491
  /**
5251
5492
  * 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 +5558,29 @@ class DefaultApi extends base_1.BaseAPI {
5317
5558
  credentialPatch(credentialId, walletId, credentialPatchPayload, options) {
5318
5559
  return (0, exports.DefaultApiFp)(this.configuration).credentialPatch(credentialId, walletId, credentialPatchPayload, options).then((request) => request(this.axios, this.basePath));
5319
5560
  }
5561
+ /**
5562
+ * Returns raw credential payload, with format depending on credential format.
5563
+ * @param {string} credentialId Verifiable Credential Identifier
5564
+ * @param {string} walletId
5565
+ * @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
5566
+ * @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.
5567
+ * @param {*} [options] Override http request option.
5568
+ * @throws {RequiredError}
5569
+ */
5570
+ credentialPayloadGet(credentialId, walletId, form, contexts, options) {
5571
+ return (0, exports.DefaultApiFp)(this.configuration).credentialPayloadGet(credentialId, walletId, form, contexts, options).then((request) => request(this.axios, this.basePath));
5572
+ }
5573
+ /**
5574
+ * 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)
5575
+ * @param {string} credentialId Verifiable Credential Identifier
5576
+ * @param {string} walletId
5577
+ * @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
5578
+ * @param {*} [options] Override http request option.
5579
+ * @throws {RequiredError}
5580
+ */
5581
+ credentialRawGet(credentialId, walletId, disclosedClaims, options) {
5582
+ return (0, exports.DefaultApiFp)(this.configuration).credentialRawGet(credentialId, walletId, disclosedClaims, options).then((request) => request(this.axios, this.basePath));
5583
+ }
5320
5584
  /**
5321
5585
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
5322
5586
  * @param {string} walletId
@@ -6023,12 +6287,21 @@ class DefaultApi extends base_1.BaseAPI {
6023
6287
  }
6024
6288
  }
6025
6289
  exports.DefaultApi = DefaultApi;
6290
+ exports.CredentialClaimMetadataGetMetadataScopeEnum = {
6291
+ Subject: 'subject',
6292
+ Credential: 'credential',
6293
+ };
6026
6294
  exports.CredentialListInteractionEnum = {
6027
6295
  Issuance: 'issuance',
6028
6296
  Receive: 'receive',
6029
6297
  StatusList: 'statusList',
6030
6298
  TaoCredentials: 'taoCredentials',
6031
6299
  };
6300
+ exports.CredentialPayloadGetFormEnum = {
6301
+ Compacted: 'compacted',
6302
+ Expanded: 'expanded',
6303
+ Flattened: 'flattened',
6304
+ };
6032
6305
  exports.WmpEntityListEntityTypeEnum = {
6033
6306
  Server: 'server',
6034
6307
  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.323",
4
+ "version": "0.0.325",
5
5
  "description": "",
6
6
  "repository": {
7
7
  "type": "git",