@triveria/wallet 0.0.244 → 0.0.245
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 +65 -0
- package/api.js +71 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -132,6 +132,38 @@ export interface CertificateImportRequest {
|
|
|
132
132
|
*/
|
|
133
133
|
'certificate': string;
|
|
134
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @export
|
|
138
|
+
* @interface CertificateIssueRequest
|
|
139
|
+
*/
|
|
140
|
+
export interface CertificateIssueRequest {
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof CertificateIssueRequest
|
|
145
|
+
*/
|
|
146
|
+
'csr': string;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof CertificateIssueRequest
|
|
151
|
+
*/
|
|
152
|
+
'expirationDate': string;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @export
|
|
157
|
+
* @interface CertificateIssueResponse
|
|
158
|
+
*/
|
|
159
|
+
export interface CertificateIssueResponse {
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof CertificateIssueResponse
|
|
164
|
+
*/
|
|
165
|
+
'certificate': string;
|
|
166
|
+
}
|
|
135
167
|
/**
|
|
136
168
|
* Accompanying information about the verifiable credential draft - schema, type, format etc.
|
|
137
169
|
* @export
|
|
@@ -2735,6 +2767,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2735
2767
|
* @throws {RequiredError}
|
|
2736
2768
|
*/
|
|
2737
2769
|
tfRevokeAccreditation: (walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2770
|
+
/**
|
|
2771
|
+
* Issues a certificate based on the provided certificate request
|
|
2772
|
+
* @param {string} walletId
|
|
2773
|
+
* @param {CertificateIssueRequest} [certificateIssueRequest]
|
|
2774
|
+
* @param {*} [options] Override http request option.
|
|
2775
|
+
* @throws {RequiredError}
|
|
2776
|
+
*/
|
|
2777
|
+
tfX509CertificateIssue: (walletId: string, certificateIssueRequest?: CertificateIssueRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2738
2778
|
/**
|
|
2739
2779
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2740
2780
|
* @param {string} walletId
|
|
@@ -3128,6 +3168,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3128
3168
|
* @throws {RequiredError}
|
|
3129
3169
|
*/
|
|
3130
3170
|
tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
3171
|
+
/**
|
|
3172
|
+
* Issues a certificate based on the provided certificate request
|
|
3173
|
+
* @param {string} walletId
|
|
3174
|
+
* @param {CertificateIssueRequest} [certificateIssueRequest]
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
*/
|
|
3178
|
+
tfX509CertificateIssue(walletId: string, certificateIssueRequest?: CertificateIssueRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CertificateIssueResponse>>;
|
|
3131
3179
|
/**
|
|
3132
3180
|
* Returns an url where verifier accepts presentations from a holder.
|
|
3133
3181
|
* @param {string} walletId
|
|
@@ -3523,6 +3571,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3523
3571
|
* @throws {RequiredError}
|
|
3524
3572
|
*/
|
|
3525
3573
|
tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3574
|
+
/**
|
|
3575
|
+
* Issues a certificate based on the provided certificate request
|
|
3576
|
+
* @param {string} walletId
|
|
3577
|
+
* @param {CertificateIssueRequest} [certificateIssueRequest]
|
|
3578
|
+
* @param {*} [options] Override http request option.
|
|
3579
|
+
* @throws {RequiredError}
|
|
3580
|
+
*/
|
|
3581
|
+
tfX509CertificateIssue(walletId: string, certificateIssueRequest?: CertificateIssueRequest, options?: RawAxiosRequestConfig): AxiosPromise<CertificateIssueResponse>;
|
|
3526
3582
|
/**
|
|
3527
3583
|
* Returns an url where verifier accepts presentations from a holder.
|
|
3528
3584
|
* @param {string} walletId
|
|
@@ -3951,6 +4007,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3951
4007
|
* @memberof DefaultApi
|
|
3952
4008
|
*/
|
|
3953
4009
|
tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4010
|
+
/**
|
|
4011
|
+
* Issues a certificate based on the provided certificate request
|
|
4012
|
+
* @param {string} walletId
|
|
4013
|
+
* @param {CertificateIssueRequest} [certificateIssueRequest]
|
|
4014
|
+
* @param {*} [options] Override http request option.
|
|
4015
|
+
* @throws {RequiredError}
|
|
4016
|
+
* @memberof DefaultApi
|
|
4017
|
+
*/
|
|
4018
|
+
tfX509CertificateIssue(walletId: string, certificateIssueRequest?: CertificateIssueRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CertificateIssueResponse, any>>;
|
|
3954
4019
|
/**
|
|
3955
4020
|
* Returns an url where verifier accepts presentations from a holder.
|
|
3956
4021
|
* @param {string} walletId
|
package/api.js
CHANGED
|
@@ -1294,6 +1294,40 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1294
1294
|
options: localVarRequestOptions,
|
|
1295
1295
|
};
|
|
1296
1296
|
}),
|
|
1297
|
+
/**
|
|
1298
|
+
* Issues a certificate based on the provided certificate request
|
|
1299
|
+
* @param {string} walletId
|
|
1300
|
+
* @param {CertificateIssueRequest} [certificateIssueRequest]
|
|
1301
|
+
* @param {*} [options] Override http request option.
|
|
1302
|
+
* @throws {RequiredError}
|
|
1303
|
+
*/
|
|
1304
|
+
tfX509CertificateIssue: (walletId, certificateIssueRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1305
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1306
|
+
(0, common_1.assertParamExists)('tfX509CertificateIssue', 'walletId', walletId);
|
|
1307
|
+
const localVarPath = `/tf/{wallet_id}/x509`
|
|
1308
|
+
.replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
|
|
1309
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1310
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1311
|
+
let baseOptions;
|
|
1312
|
+
if (configuration) {
|
|
1313
|
+
baseOptions = configuration.baseOptions;
|
|
1314
|
+
}
|
|
1315
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1316
|
+
const localVarHeaderParameter = {};
|
|
1317
|
+
const localVarQueryParameter = {};
|
|
1318
|
+
// authentication accessToken required
|
|
1319
|
+
// http bearer authentication required
|
|
1320
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1321
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1322
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1324
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1325
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(certificateIssueRequest, localVarRequestOptions, configuration);
|
|
1326
|
+
return {
|
|
1327
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1328
|
+
options: localVarRequestOptions,
|
|
1329
|
+
};
|
|
1330
|
+
}),
|
|
1297
1331
|
/**
|
|
1298
1332
|
* Returns an url where verifier accepts presentations from a holder.
|
|
1299
1333
|
* @param {string} walletId
|
|
@@ -2396,6 +2430,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
2396
2430
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2397
2431
|
});
|
|
2398
2432
|
},
|
|
2433
|
+
/**
|
|
2434
|
+
* Issues a certificate based on the provided certificate request
|
|
2435
|
+
* @param {string} walletId
|
|
2436
|
+
* @param {CertificateIssueRequest} [certificateIssueRequest]
|
|
2437
|
+
* @param {*} [options] Override http request option.
|
|
2438
|
+
* @throws {RequiredError}
|
|
2439
|
+
*/
|
|
2440
|
+
tfX509CertificateIssue(walletId, certificateIssueRequest, options) {
|
|
2441
|
+
var _a, _b, _c;
|
|
2442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2443
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tfX509CertificateIssue(walletId, certificateIssueRequest, options);
|
|
2444
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2445
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfX509CertificateIssue']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2446
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2447
|
+
});
|
|
2448
|
+
},
|
|
2399
2449
|
/**
|
|
2400
2450
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2401
2451
|
* @param {string} walletId
|
|
@@ -2991,6 +3041,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2991
3041
|
tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
|
|
2992
3042
|
return localVarFp.tfRevokeAccreditation(walletId, revokeAccreditationRequest, options).then((request) => request(axios, basePath));
|
|
2993
3043
|
},
|
|
3044
|
+
/**
|
|
3045
|
+
* Issues a certificate based on the provided certificate request
|
|
3046
|
+
* @param {string} walletId
|
|
3047
|
+
* @param {CertificateIssueRequest} [certificateIssueRequest]
|
|
3048
|
+
* @param {*} [options] Override http request option.
|
|
3049
|
+
* @throws {RequiredError}
|
|
3050
|
+
*/
|
|
3051
|
+
tfX509CertificateIssue(walletId, certificateIssueRequest, options) {
|
|
3052
|
+
return localVarFp.tfX509CertificateIssue(walletId, certificateIssueRequest, options).then((request) => request(axios, basePath));
|
|
3053
|
+
},
|
|
2994
3054
|
/**
|
|
2995
3055
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2996
3056
|
* @param {string} walletId
|
|
@@ -3515,6 +3575,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3515
3575
|
tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
|
|
3516
3576
|
return (0, exports.DefaultApiFp)(this.configuration).tfRevokeAccreditation(walletId, revokeAccreditationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3517
3577
|
}
|
|
3578
|
+
/**
|
|
3579
|
+
* Issues a certificate based on the provided certificate request
|
|
3580
|
+
* @param {string} walletId
|
|
3581
|
+
* @param {CertificateIssueRequest} [certificateIssueRequest]
|
|
3582
|
+
* @param {*} [options] Override http request option.
|
|
3583
|
+
* @throws {RequiredError}
|
|
3584
|
+
* @memberof DefaultApi
|
|
3585
|
+
*/
|
|
3586
|
+
tfX509CertificateIssue(walletId, certificateIssueRequest, options) {
|
|
3587
|
+
return (0, exports.DefaultApiFp)(this.configuration).tfX509CertificateIssue(walletId, certificateIssueRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3588
|
+
}
|
|
3518
3589
|
/**
|
|
3519
3590
|
* Returns an url where verifier accepts presentations from a holder.
|
|
3520
3591
|
* @param {string} walletId
|