@triveria/wallet 0.0.222 → 0.0.224

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 (2) hide show
  1. package/api.d.ts +45 -7
  2. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -227,7 +227,7 @@ export interface CredentialImport {
227
227
  'name': string;
228
228
  }
229
229
  /**
230
- * Request for addition of already created VC draft to issuance queue for a client specified either by client_id or idTokenRequestId. Either clientId or idTokenRequestId MUST be present.
230
+ * Request for addition of already created VC draft to issuance queue for a client. If clientId is used, it will be used as the queue item id, otherwise a new ID will be created.
231
231
  * @export
232
232
  * @interface CredentialIssuanceInit
233
233
  */
@@ -257,6 +257,19 @@ export interface CredentialIssuanceInit {
257
257
  */
258
258
  'issuanceRequirementsToVerify'?: IssuanceRequirementsToVerify;
259
259
  }
260
+ /**
261
+ *
262
+ * @export
263
+ * @interface CredentialIssuanceInitResult
264
+ */
265
+ export interface CredentialIssuanceInitResult {
266
+ /**
267
+ *
268
+ * @type {string}
269
+ * @memberof CredentialIssuanceInitResult
270
+ */
271
+ 'issuanceQueueItemId': string;
272
+ }
260
273
  /**
261
274
  *
262
275
  * @export
@@ -1099,6 +1112,12 @@ export interface InitAuthOffer {
1099
1112
  * @memberof InitAuthOffer
1100
1113
  */
1101
1114
  'deferred'?: boolean;
1115
+ /**
1116
+ * Id of issuance queue item. Required when issuer type is CredentialQueue type and no clientId was provided when adding credential to queue.
1117
+ * @type {string}
1118
+ * @memberof InitAuthOffer
1119
+ */
1120
+ 'issuanceQueueItemId'?: string;
1102
1121
  }
1103
1122
  /**
1104
1123
  * Request for pre-authorized issuance process start. Consists of client id or id token request id, credential offer endpoint(most commonly only schema) and id\'s of credentials to be issued to client. Either clientId or idTokenRequestId MUST be present in the request.
@@ -2025,6 +2044,25 @@ export interface VerifiedLinkedVp {
2025
2044
  */
2026
2045
  'credentials': Array<Credential>;
2027
2046
  }
2047
+ /**
2048
+ * Wrapped result of successful verification interaction.
2049
+ * @export
2050
+ * @interface VerifiedWrapper
2051
+ */
2052
+ export interface VerifiedWrapper {
2053
+ /**
2054
+ *
2055
+ * @type {Array<Credential>}
2056
+ * @memberof VerifiedWrapper
2057
+ */
2058
+ 'credentials': Array<Credential>;
2059
+ /**
2060
+ * The Verifiable Presentation that was presented during the interaction.
2061
+ * @type {string}
2062
+ * @memberof VerifiedWrapper
2063
+ */
2064
+ 'vp': string;
2065
+ }
2028
2066
  /**
2029
2067
  * Request for the creation of URL used by holder to present credentials to a verifier.
2030
2068
  * @export
@@ -2679,7 +2717,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2679
2717
  * @param {*} [options] Override http request option.
2680
2718
  * @throws {RequiredError}
2681
2719
  */
2682
- credentialIssuanceInit(credentialId: string, walletId: string, credentialIssuanceInit?: CredentialIssuanceInit, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2720
+ credentialIssuanceInit(credentialId: string, walletId: string, credentialIssuanceInit?: CredentialIssuanceInit, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIssuanceInitResult>>;
2683
2721
  /**
2684
2722
  * Retrieves a list of credentials.
2685
2723
  * @param {string} walletId
@@ -3015,7 +3053,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3015
3053
  * @param {*} [options] Override http request option.
3016
3054
  * @throws {RequiredError}
3017
3055
  */
3018
- walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Credential>>>;
3056
+ walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifiedWrapper>>;
3019
3057
  /**
3020
3058
  * Deletes a specific verified credentials by state
3021
3059
  * @param {string} walletId Wallet ID
@@ -3062,7 +3100,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3062
3100
  * @param {*} [options] Override http request option.
3063
3101
  * @throws {RequiredError}
3064
3102
  */
3065
- credentialIssuanceInit(credentialId: string, walletId: string, credentialIssuanceInit?: CredentialIssuanceInit, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3103
+ credentialIssuanceInit(credentialId: string, walletId: string, credentialIssuanceInit?: CredentialIssuanceInit, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIssuanceInitResult>;
3066
3104
  /**
3067
3105
  * Retrieves a list of credentials.
3068
3106
  * @param {string} walletId
@@ -3398,7 +3436,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3398
3436
  * @param {*} [options] Override http request option.
3399
3437
  * @throws {RequiredError}
3400
3438
  */
3401
- walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Credential>>;
3439
+ walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<VerifiedWrapper>;
3402
3440
  /**
3403
3441
  * Deletes a specific verified credentials by state
3404
3442
  * @param {string} walletId Wallet ID
@@ -3451,7 +3489,7 @@ export declare class DefaultApi extends BaseAPI {
3451
3489
  * @throws {RequiredError}
3452
3490
  * @memberof DefaultApi
3453
3491
  */
3454
- credentialIssuanceInit(credentialId: string, walletId: string, credentialIssuanceInit?: CredentialIssuanceInit, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3492
+ credentialIssuanceInit(credentialId: string, walletId: string, credentialIssuanceInit?: CredentialIssuanceInit, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIssuanceInitResult, any>>;
3455
3493
  /**
3456
3494
  * Retrieves a list of credentials.
3457
3495
  * @param {string} walletId
@@ -3829,7 +3867,7 @@ export declare class DefaultApi extends BaseAPI {
3829
3867
  * @throws {RequiredError}
3830
3868
  * @memberof DefaultApi
3831
3869
  */
3832
- walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential[], any>>;
3870
+ walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifiedWrapper, any>>;
3833
3871
  /**
3834
3872
  * Deletes a specific verified credentials by state
3835
3873
  * @param {string} walletId Wallet ID
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.222",
4
+ "version": "0.0.224",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {