@triveria/wallet 0.0.195 → 0.0.197

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 +40 -8
  2. package/api.js +12 -12
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -376,6 +376,32 @@ export declare const CredentialMetadataStatusEnum: {
376
376
  readonly Invalid: "invalid";
377
377
  };
378
378
  export type CredentialMetadataStatusEnum = typeof CredentialMetadataStatusEnum[keyof typeof CredentialMetadataStatusEnum];
379
+ /**
380
+ * A Credential container used to create credentials with metadata.
381
+ * @export
382
+ * @interface CredentialPatchPayload
383
+ */
384
+ export interface CredentialPatchPayload {
385
+ [key: string]: any;
386
+ /**
387
+ *
388
+ * @type {CredentialSubject}
389
+ * @memberof CredentialPatchPayload
390
+ */
391
+ 'credentialSubject': CredentialSubject;
392
+ /**
393
+ *
394
+ * @type {string}
395
+ * @memberof CredentialPatchPayload
396
+ */
397
+ 'name': string;
398
+ /**
399
+ * If true, the credential draft is checked against its schema. Defaults to true.
400
+ * @type {boolean}
401
+ * @memberof CredentialPatchPayload
402
+ */
403
+ 'validateSchema'?: boolean;
404
+ }
379
405
  /**
380
406
  * A Credential container used to create credentials with metadata.
381
407
  * @export
@@ -877,6 +903,12 @@ export interface IdTokenReceivedNotification {
877
903
  * @memberof IdTokenReceivedNotification
878
904
  */
879
905
  'idTokenRequestId': string;
906
+ /**
907
+ *
908
+ * @type {string}
909
+ * @memberof IdTokenReceivedNotification
910
+ */
911
+ 'clientId': string;
880
912
  }
881
913
  /**
882
914
  *
@@ -2065,11 +2097,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2065
2097
  * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
2066
2098
  * @param {string} credentialId Verifiable Credential Identifier
2067
2099
  * @param {string} walletId
2068
- * @param {CredentialPayload} [credentialPayload]
2100
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
2069
2101
  * @param {*} [options] Override http request option.
2070
2102
  * @throws {RequiredError}
2071
2103
  */
2072
- credentialPatch: (credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2104
+ credentialPatch: (credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2073
2105
  /**
2074
2106
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2075
2107
  * @param {string} walletId
@@ -2399,11 +2431,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2399
2431
  * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
2400
2432
  * @param {string} credentialId Verifiable Credential Identifier
2401
2433
  * @param {string} walletId
2402
- * @param {CredentialPayload} [credentialPayload]
2434
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
2403
2435
  * @param {*} [options] Override http request option.
2404
2436
  * @throws {RequiredError}
2405
2437
  */
2406
- credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2438
+ credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2407
2439
  /**
2408
2440
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2409
2441
  * @param {string} walletId
@@ -2733,11 +2765,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2733
2765
  * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
2734
2766
  * @param {string} credentialId Verifiable Credential Identifier
2735
2767
  * @param {string} walletId
2736
- * @param {CredentialPayload} [credentialPayload]
2768
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
2737
2769
  * @param {*} [options] Override http request option.
2738
2770
  * @throws {RequiredError}
2739
2771
  */
2740
- credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2772
+ credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2741
2773
  /**
2742
2774
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2743
2775
  * @param {string} walletId
@@ -3075,12 +3107,12 @@ export declare class DefaultApi extends BaseAPI {
3075
3107
  * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
3076
3108
  * @param {string} credentialId Verifiable Credential Identifier
3077
3109
  * @param {string} walletId
3078
- * @param {CredentialPayload} [credentialPayload]
3110
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
3079
3111
  * @param {*} [options] Override http request option.
3080
3112
  * @throws {RequiredError}
3081
3113
  * @memberof DefaultApi
3082
3114
  */
3083
- credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
3115
+ credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
3084
3116
  /**
3085
3117
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3086
3118
  * @param {string} walletId
package/api.js CHANGED
@@ -392,11 +392,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
392
392
  * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
393
393
  * @param {string} credentialId Verifiable Credential Identifier
394
394
  * @param {string} walletId
395
- * @param {CredentialPayload} [credentialPayload]
395
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
396
396
  * @param {*} [options] Override http request option.
397
397
  * @throws {RequiredError}
398
398
  */
399
- credentialPatch: (credentialId, walletId, credentialPayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
399
+ credentialPatch: (credentialId, walletId, credentialPatchPayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
400
400
  // verify required parameter 'credentialId' is not null or undefined
401
401
  (0, common_1.assertParamExists)('credentialPatch', 'credentialId', credentialId);
402
402
  // verify required parameter 'walletId' is not null or undefined
@@ -419,7 +419,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
419
419
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
420
420
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
421
421
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
422
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialPayload, localVarRequestOptions, configuration);
422
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialPatchPayload, localVarRequestOptions, configuration);
423
423
  return {
424
424
  url: (0, common_1.toPathString)(localVarUrlObj),
425
425
  options: localVarRequestOptions,
@@ -1693,14 +1693,14 @@ const DefaultApiFp = function (configuration) {
1693
1693
  * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
1694
1694
  * @param {string} credentialId Verifiable Credential Identifier
1695
1695
  * @param {string} walletId
1696
- * @param {CredentialPayload} [credentialPayload]
1696
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
1697
1697
  * @param {*} [options] Override http request option.
1698
1698
  * @throws {RequiredError}
1699
1699
  */
1700
- credentialPatch(credentialId, walletId, credentialPayload, options) {
1700
+ credentialPatch(credentialId, walletId, credentialPatchPayload, options) {
1701
1701
  var _a, _b, _c;
1702
1702
  return __awaiter(this, void 0, void 0, function* () {
1703
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialPatch(credentialId, walletId, credentialPayload, options);
1703
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialPatch(credentialId, walletId, credentialPatchPayload, options);
1704
1704
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1705
1705
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1706
1706
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2323,12 +2323,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2323
2323
  * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
2324
2324
  * @param {string} credentialId Verifiable Credential Identifier
2325
2325
  * @param {string} walletId
2326
- * @param {CredentialPayload} [credentialPayload]
2326
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
2327
2327
  * @param {*} [options] Override http request option.
2328
2328
  * @throws {RequiredError}
2329
2329
  */
2330
- credentialPatch(credentialId, walletId, credentialPayload, options) {
2331
- return localVarFp.credentialPatch(credentialId, walletId, credentialPayload, options).then((request) => request(axios, basePath));
2330
+ credentialPatch(credentialId, walletId, credentialPatchPayload, options) {
2331
+ return localVarFp.credentialPatch(credentialId, walletId, credentialPatchPayload, options).then((request) => request(axios, basePath));
2332
2332
  },
2333
2333
  /**
2334
2334
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
@@ -2749,13 +2749,13 @@ class DefaultApi extends base_1.BaseAPI {
2749
2749
  * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
2750
2750
  * @param {string} credentialId Verifiable Credential Identifier
2751
2751
  * @param {string} walletId
2752
- * @param {CredentialPayload} [credentialPayload]
2752
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
2753
2753
  * @param {*} [options] Override http request option.
2754
2754
  * @throws {RequiredError}
2755
2755
  * @memberof DefaultApi
2756
2756
  */
2757
- credentialPatch(credentialId, walletId, credentialPayload, options) {
2758
- return (0, exports.DefaultApiFp)(this.configuration).credentialPatch(credentialId, walletId, credentialPayload, options).then((request) => request(this.axios, this.basePath));
2757
+ credentialPatch(credentialId, walletId, credentialPatchPayload, options) {
2758
+ return (0, exports.DefaultApiFp)(this.configuration).credentialPatch(credentialId, walletId, credentialPatchPayload, options).then((request) => request(this.axios, this.basePath));
2759
2759
  }
2760
2760
  /**
2761
2761
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.195",
4
+ "version": "0.0.197",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {