@triveria/wallet 0.0.200 → 0.0.201
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.
- package/api.d.ts +22 -8
- package/api.js +12 -12
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -413,6 +413,20 @@ export declare const CredentialMetadataStatusEnum: {
|
|
|
413
413
|
readonly Invalid: "invalid";
|
|
414
414
|
};
|
|
415
415
|
export type CredentialMetadataStatusEnum = typeof CredentialMetadataStatusEnum[keyof typeof CredentialMetadataStatusEnum];
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @export
|
|
419
|
+
* @interface CredentialMetadataPatchPayload
|
|
420
|
+
*/
|
|
421
|
+
export interface CredentialMetadataPatchPayload {
|
|
422
|
+
[key: string]: any;
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* @type {string}
|
|
426
|
+
* @memberof CredentialMetadataPatchPayload
|
|
427
|
+
*/
|
|
428
|
+
'name'?: string;
|
|
429
|
+
}
|
|
416
430
|
/**
|
|
417
431
|
* A Credential container used to create credentials with metadata.
|
|
418
432
|
* @export
|
|
@@ -2180,11 +2194,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2180
2194
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
2181
2195
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
2182
2196
|
* @param {string} walletId
|
|
2183
|
-
* @param {
|
|
2197
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
2184
2198
|
* @param {*} [options] Override http request option.
|
|
2185
2199
|
* @throws {RequiredError}
|
|
2186
2200
|
*/
|
|
2187
|
-
credentialMetadataPatch: (credentialId: string, walletId: string,
|
|
2201
|
+
credentialMetadataPatch: (credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2188
2202
|
/**
|
|
2189
2203
|
* 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.
|
|
2190
2204
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2560,11 +2574,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2560
2574
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
2561
2575
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
2562
2576
|
* @param {string} walletId
|
|
2563
|
-
* @param {
|
|
2577
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
2564
2578
|
* @param {*} [options] Override http request option.
|
|
2565
2579
|
* @throws {RequiredError}
|
|
2566
2580
|
*/
|
|
2567
|
-
credentialMetadataPatch(credentialId: string, walletId: string,
|
|
2581
|
+
credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
|
|
2568
2582
|
/**
|
|
2569
2583
|
* 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.
|
|
2570
2584
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2942,11 +2956,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2942
2956
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
2943
2957
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
2944
2958
|
* @param {string} walletId
|
|
2945
|
-
* @param {
|
|
2959
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
2946
2960
|
* @param {*} [options] Override http request option.
|
|
2947
2961
|
* @throws {RequiredError}
|
|
2948
2962
|
*/
|
|
2949
|
-
credentialMetadataPatch(credentialId: string, walletId: string,
|
|
2963
|
+
credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
|
|
2950
2964
|
/**
|
|
2951
2965
|
* 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.
|
|
2952
2966
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -3331,12 +3345,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3331
3345
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
3332
3346
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
3333
3347
|
* @param {string} walletId
|
|
3334
|
-
* @param {
|
|
3348
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
3335
3349
|
* @param {*} [options] Override http request option.
|
|
3336
3350
|
* @throws {RequiredError}
|
|
3337
3351
|
* @memberof DefaultApi
|
|
3338
3352
|
*/
|
|
3339
|
-
credentialMetadataPatch(credentialId: string, walletId: string,
|
|
3353
|
+
credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
|
|
3340
3354
|
/**
|
|
3341
3355
|
* 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.
|
|
3342
3356
|
* @param {string} credentialId Verifiable Credential Identifier
|
package/api.js
CHANGED
|
@@ -361,11 +361,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
361
361
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
362
362
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
363
363
|
* @param {string} walletId
|
|
364
|
-
* @param {
|
|
364
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
365
365
|
* @param {*} [options] Override http request option.
|
|
366
366
|
* @throws {RequiredError}
|
|
367
367
|
*/
|
|
368
|
-
credentialMetadataPatch: (credentialId, walletId,
|
|
368
|
+
credentialMetadataPatch: (credentialId, walletId, credentialMetadataPatchPayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
369
369
|
// verify required parameter 'credentialId' is not null or undefined
|
|
370
370
|
(0, common_1.assertParamExists)('credentialMetadataPatch', 'credentialId', credentialId);
|
|
371
371
|
// verify required parameter 'walletId' is not null or undefined
|
|
@@ -388,7 +388,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
388
388
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
389
389
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
390
390
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
391
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
391
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialMetadataPatchPayload, localVarRequestOptions, configuration);
|
|
392
392
|
return {
|
|
393
393
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
394
394
|
options: localVarRequestOptions,
|
|
@@ -1883,14 +1883,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
1883
1883
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
1884
1884
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
1885
1885
|
* @param {string} walletId
|
|
1886
|
-
* @param {
|
|
1886
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
1887
1887
|
* @param {*} [options] Override http request option.
|
|
1888
1888
|
* @throws {RequiredError}
|
|
1889
1889
|
*/
|
|
1890
|
-
credentialMetadataPatch(credentialId, walletId,
|
|
1890
|
+
credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options) {
|
|
1891
1891
|
var _a, _b, _c;
|
|
1892
1892
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1893
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialMetadataPatch(credentialId, walletId,
|
|
1893
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options);
|
|
1894
1894
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1895
1895
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialMetadataPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1896
1896
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2613,12 +2613,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2613
2613
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
2614
2614
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
2615
2615
|
* @param {string} walletId
|
|
2616
|
-
* @param {
|
|
2616
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
2617
2617
|
* @param {*} [options] Override http request option.
|
|
2618
2618
|
* @throws {RequiredError}
|
|
2619
2619
|
*/
|
|
2620
|
-
credentialMetadataPatch(credentialId, walletId,
|
|
2621
|
-
return localVarFp.credentialMetadataPatch(credentialId, walletId,
|
|
2620
|
+
credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options) {
|
|
2621
|
+
return localVarFp.credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options).then((request) => request(axios, basePath));
|
|
2622
2622
|
},
|
|
2623
2623
|
/**
|
|
2624
2624
|
* 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.
|
|
@@ -3096,13 +3096,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3096
3096
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
3097
3097
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
3098
3098
|
* @param {string} walletId
|
|
3099
|
-
* @param {
|
|
3099
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
3100
3100
|
* @param {*} [options] Override http request option.
|
|
3101
3101
|
* @throws {RequiredError}
|
|
3102
3102
|
* @memberof DefaultApi
|
|
3103
3103
|
*/
|
|
3104
|
-
credentialMetadataPatch(credentialId, walletId,
|
|
3105
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialMetadataPatch(credentialId, walletId,
|
|
3104
|
+
credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options) {
|
|
3105
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options).then((request) => request(this.axios, this.basePath));
|
|
3106
3106
|
}
|
|
3107
3107
|
/**
|
|
3108
3108
|
* 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.
|