@triveria/wallet 0.0.200 → 0.0.202
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 -14
- package/api.js +12 -12
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -357,12 +357,6 @@ export interface CredentialMetadata {
|
|
|
357
357
|
* @memberof CredentialMetadata
|
|
358
358
|
*/
|
|
359
359
|
'type': string;
|
|
360
|
-
/**
|
|
361
|
-
*
|
|
362
|
-
* @type {string}
|
|
363
|
-
* @memberof CredentialMetadata
|
|
364
|
-
*/
|
|
365
|
-
'customId'?: string;
|
|
366
360
|
/**
|
|
367
361
|
* In case of issued credential this is the DID of the holder wallet
|
|
368
362
|
* @type {string}
|
|
@@ -413,6 +407,20 @@ export declare const CredentialMetadataStatusEnum: {
|
|
|
413
407
|
readonly Invalid: "invalid";
|
|
414
408
|
};
|
|
415
409
|
export type CredentialMetadataStatusEnum = typeof CredentialMetadataStatusEnum[keyof typeof CredentialMetadataStatusEnum];
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @export
|
|
413
|
+
* @interface CredentialMetadataPatchPayload
|
|
414
|
+
*/
|
|
415
|
+
export interface CredentialMetadataPatchPayload {
|
|
416
|
+
[key: string]: any;
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* @type {string}
|
|
420
|
+
* @memberof CredentialMetadataPatchPayload
|
|
421
|
+
*/
|
|
422
|
+
'name'?: string;
|
|
423
|
+
}
|
|
416
424
|
/**
|
|
417
425
|
* A Credential container used to create credentials with metadata.
|
|
418
426
|
* @export
|
|
@@ -2180,11 +2188,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2180
2188
|
* 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
2189
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
2182
2190
|
* @param {string} walletId
|
|
2183
|
-
* @param {
|
|
2191
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
2184
2192
|
* @param {*} [options] Override http request option.
|
|
2185
2193
|
* @throws {RequiredError}
|
|
2186
2194
|
*/
|
|
2187
|
-
credentialMetadataPatch: (credentialId: string, walletId: string,
|
|
2195
|
+
credentialMetadataPatch: (credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2188
2196
|
/**
|
|
2189
2197
|
* 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
2198
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2560,11 +2568,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2560
2568
|
* 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
2569
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
2562
2570
|
* @param {string} walletId
|
|
2563
|
-
* @param {
|
|
2571
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
2564
2572
|
* @param {*} [options] Override http request option.
|
|
2565
2573
|
* @throws {RequiredError}
|
|
2566
2574
|
*/
|
|
2567
|
-
credentialMetadataPatch(credentialId: string, walletId: string,
|
|
2575
|
+
credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
|
|
2568
2576
|
/**
|
|
2569
2577
|
* 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
2578
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2942,11 +2950,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2942
2950
|
* 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
2951
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
2944
2952
|
* @param {string} walletId
|
|
2945
|
-
* @param {
|
|
2953
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
2946
2954
|
* @param {*} [options] Override http request option.
|
|
2947
2955
|
* @throws {RequiredError}
|
|
2948
2956
|
*/
|
|
2949
|
-
credentialMetadataPatch(credentialId: string, walletId: string,
|
|
2957
|
+
credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
|
|
2950
2958
|
/**
|
|
2951
2959
|
* 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
2960
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -3331,12 +3339,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3331
3339
|
* 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
3340
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
3333
3341
|
* @param {string} walletId
|
|
3334
|
-
* @param {
|
|
3342
|
+
* @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
|
|
3335
3343
|
* @param {*} [options] Override http request option.
|
|
3336
3344
|
* @throws {RequiredError}
|
|
3337
3345
|
* @memberof DefaultApi
|
|
3338
3346
|
*/
|
|
3339
|
-
credentialMetadataPatch(credentialId: string, walletId: string,
|
|
3347
|
+
credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
|
|
3340
3348
|
/**
|
|
3341
3349
|
* 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
3350
|
* @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.
|