@triveria/wallet 0.0.196 → 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 +34 -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
@@ -2071,11 +2097,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2071
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.
2072
2098
  * @param {string} credentialId Verifiable Credential Identifier
2073
2099
  * @param {string} walletId
2074
- * @param {CredentialPayload} [credentialPayload]
2100
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
2075
2101
  * @param {*} [options] Override http request option.
2076
2102
  * @throws {RequiredError}
2077
2103
  */
2078
- credentialPatch: (credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2104
+ credentialPatch: (credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2079
2105
  /**
2080
2106
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2081
2107
  * @param {string} walletId
@@ -2405,11 +2431,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2405
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.
2406
2432
  * @param {string} credentialId Verifiable Credential Identifier
2407
2433
  * @param {string} walletId
2408
- * @param {CredentialPayload} [credentialPayload]
2434
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
2409
2435
  * @param {*} [options] Override http request option.
2410
2436
  * @throws {RequiredError}
2411
2437
  */
2412
- 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>>;
2413
2439
  /**
2414
2440
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2415
2441
  * @param {string} walletId
@@ -2739,11 +2765,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2739
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.
2740
2766
  * @param {string} credentialId Verifiable Credential Identifier
2741
2767
  * @param {string} walletId
2742
- * @param {CredentialPayload} [credentialPayload]
2768
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
2743
2769
  * @param {*} [options] Override http request option.
2744
2770
  * @throws {RequiredError}
2745
2771
  */
2746
- credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2772
+ credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2747
2773
  /**
2748
2774
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2749
2775
  * @param {string} walletId
@@ -3081,12 +3107,12 @@ export declare class DefaultApi extends BaseAPI {
3081
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.
3082
3108
  * @param {string} credentialId Verifiable Credential Identifier
3083
3109
  * @param {string} walletId
3084
- * @param {CredentialPayload} [credentialPayload]
3110
+ * @param {CredentialPatchPayload} [credentialPatchPayload]
3085
3111
  * @param {*} [options] Override http request option.
3086
3112
  * @throws {RequiredError}
3087
3113
  * @memberof DefaultApi
3088
3114
  */
3089
- 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>>;
3090
3116
  /**
3091
3117
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3092
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.196",
4
+ "version": "0.0.197",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {