@triveria/wallet 0.0.296 → 0.0.297
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 +68 -0
- package/api.js +122 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -151,6 +151,10 @@ export interface CredentialIssuerDefinition {
|
|
|
151
151
|
* JSON paths of credential claims which will support being disclosed partially.
|
|
152
152
|
*/
|
|
153
153
|
'disclosableClaims'?: Array<string>;
|
|
154
|
+
/**
|
|
155
|
+
* When true, credential issuance for this issuer requires the wallet to present a valid EUDI Wallet Instance Attestation (WIA, TS3). The issuer verifies the WIA signature, expiry, status and key binding before issuing. Defaults to false (no WIA check).
|
|
156
|
+
*/
|
|
157
|
+
'requiresWalletInstanceAttestation'?: boolean;
|
|
154
158
|
}
|
|
155
159
|
export declare const CredentialIssuerDefinitionCredentialIssuerEnum: {
|
|
156
160
|
readonly CtWalletSame: "CtWalletSame";
|
|
@@ -1122,6 +1126,18 @@ export interface WalletPatchPayload {
|
|
|
1122
1126
|
[key: string]: any;
|
|
1123
1127
|
};
|
|
1124
1128
|
}
|
|
1129
|
+
export interface WalletProviderCertificateRequest {
|
|
1130
|
+
/**
|
|
1131
|
+
* PEM-encoded certificate chain (leaf first) issued for the provider key.
|
|
1132
|
+
*/
|
|
1133
|
+
'certificate_chain': Array<string>;
|
|
1134
|
+
}
|
|
1135
|
+
export interface WalletProviderCsrResponse {
|
|
1136
|
+
/**
|
|
1137
|
+
* PEM-encoded PKCS#10 certificate signing request.
|
|
1138
|
+
*/
|
|
1139
|
+
'csr': string;
|
|
1140
|
+
}
|
|
1125
1141
|
export interface WmpAcceptInvitationPayload {
|
|
1126
1142
|
/**
|
|
1127
1143
|
* URL of the invitation JWT
|
|
@@ -1609,6 +1625,19 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1609
1625
|
* @throws {RequiredError}
|
|
1610
1626
|
*/
|
|
1611
1627
|
walletPatch: (walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1628
|
+
/**
|
|
1629
|
+
* Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
|
|
1630
|
+
* @param {WalletProviderCertificateRequest} [walletProviderCertificateRequest]
|
|
1631
|
+
* @param {*} [options] Override http request option.
|
|
1632
|
+
* @throws {RequiredError}
|
|
1633
|
+
*/
|
|
1634
|
+
walletProviderCertificateImport: (walletProviderCertificateRequest?: WalletProviderCertificateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.
|
|
1637
|
+
* @param {*} [options] Override http request option.
|
|
1638
|
+
* @throws {RequiredError}
|
|
1639
|
+
*/
|
|
1640
|
+
walletProviderCsrGenerate: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1612
1641
|
/**
|
|
1613
1642
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
1614
1643
|
* @param {string} walletId Wallet ID
|
|
@@ -2137,6 +2166,19 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2137
2166
|
* @throws {RequiredError}
|
|
2138
2167
|
*/
|
|
2139
2168
|
walletPatch(walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
|
|
2169
|
+
/**
|
|
2170
|
+
* Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
|
|
2171
|
+
* @param {WalletProviderCertificateRequest} [walletProviderCertificateRequest]
|
|
2172
|
+
* @param {*} [options] Override http request option.
|
|
2173
|
+
* @throws {RequiredError}
|
|
2174
|
+
*/
|
|
2175
|
+
walletProviderCertificateImport(walletProviderCertificateRequest?: WalletProviderCertificateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2176
|
+
/**
|
|
2177
|
+
* Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.
|
|
2178
|
+
* @param {*} [options] Override http request option.
|
|
2179
|
+
* @throws {RequiredError}
|
|
2180
|
+
*/
|
|
2181
|
+
walletProviderCsrGenerate(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletProviderCsrResponse>>;
|
|
2140
2182
|
/**
|
|
2141
2183
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
2142
2184
|
* @param {string} walletId Wallet ID
|
|
@@ -2665,6 +2707,19 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2665
2707
|
* @throws {RequiredError}
|
|
2666
2708
|
*/
|
|
2667
2709
|
walletPatch(walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdObject>;
|
|
2710
|
+
/**
|
|
2711
|
+
* Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
|
|
2712
|
+
* @param {WalletProviderCertificateRequest} [walletProviderCertificateRequest]
|
|
2713
|
+
* @param {*} [options] Override http request option.
|
|
2714
|
+
* @throws {RequiredError}
|
|
2715
|
+
*/
|
|
2716
|
+
walletProviderCertificateImport(walletProviderCertificateRequest?: WalletProviderCertificateRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2717
|
+
/**
|
|
2718
|
+
* Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.
|
|
2719
|
+
* @param {*} [options] Override http request option.
|
|
2720
|
+
* @throws {RequiredError}
|
|
2721
|
+
*/
|
|
2722
|
+
walletProviderCsrGenerate(options?: RawAxiosRequestConfig): AxiosPromise<WalletProviderCsrResponse>;
|
|
2668
2723
|
/**
|
|
2669
2724
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
2670
2725
|
* @param {string} walletId Wallet ID
|
|
@@ -3193,6 +3248,19 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3193
3248
|
* @throws {RequiredError}
|
|
3194
3249
|
*/
|
|
3195
3250
|
walletPatch(walletId: string, walletPatchPayload?: WalletPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any, {}>>;
|
|
3251
|
+
/**
|
|
3252
|
+
* Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
|
|
3253
|
+
* @param {WalletProviderCertificateRequest} [walletProviderCertificateRequest]
|
|
3254
|
+
* @param {*} [options] Override http request option.
|
|
3255
|
+
* @throws {RequiredError}
|
|
3256
|
+
*/
|
|
3257
|
+
walletProviderCertificateImport(walletProviderCertificateRequest?: WalletProviderCertificateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
3258
|
+
/**
|
|
3259
|
+
* Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.
|
|
3260
|
+
* @param {*} [options] Override http request option.
|
|
3261
|
+
* @throws {RequiredError}
|
|
3262
|
+
*/
|
|
3263
|
+
walletProviderCsrGenerate(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletProviderCsrResponse, any, {}>>;
|
|
3196
3264
|
/**
|
|
3197
3265
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
3198
3266
|
* @param {string} walletId Wallet ID
|
package/api.js
CHANGED
|
@@ -2115,6 +2115,65 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2115
2115
|
options: localVarRequestOptions,
|
|
2116
2116
|
};
|
|
2117
2117
|
}),
|
|
2118
|
+
/**
|
|
2119
|
+
* Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
|
|
2120
|
+
* @param {WalletProviderCertificateRequest} [walletProviderCertificateRequest]
|
|
2121
|
+
* @param {*} [options] Override http request option.
|
|
2122
|
+
* @throws {RequiredError}
|
|
2123
|
+
*/
|
|
2124
|
+
walletProviderCertificateImport: (walletProviderCertificateRequest_1, ...args_1) => __awaiter(this, [walletProviderCertificateRequest_1, ...args_1], void 0, function* (walletProviderCertificateRequest, options = {}) {
|
|
2125
|
+
const localVarPath = `/admin/wallet-provider/certificate`;
|
|
2126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2127
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2128
|
+
let baseOptions;
|
|
2129
|
+
if (configuration) {
|
|
2130
|
+
baseOptions = configuration.baseOptions;
|
|
2131
|
+
}
|
|
2132
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2133
|
+
const localVarHeaderParameter = {};
|
|
2134
|
+
const localVarQueryParameter = {};
|
|
2135
|
+
// authentication accessToken required
|
|
2136
|
+
// http bearer authentication required
|
|
2137
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2138
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2139
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2140
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2142
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2143
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(walletProviderCertificateRequest, localVarRequestOptions, configuration);
|
|
2144
|
+
return {
|
|
2145
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2146
|
+
options: localVarRequestOptions,
|
|
2147
|
+
};
|
|
2148
|
+
}),
|
|
2149
|
+
/**
|
|
2150
|
+
* Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.
|
|
2151
|
+
* @param {*} [options] Override http request option.
|
|
2152
|
+
* @throws {RequiredError}
|
|
2153
|
+
*/
|
|
2154
|
+
walletProviderCsrGenerate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2155
|
+
const localVarPath = `/admin/wallet-provider/csr`;
|
|
2156
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2157
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2158
|
+
let baseOptions;
|
|
2159
|
+
if (configuration) {
|
|
2160
|
+
baseOptions = configuration.baseOptions;
|
|
2161
|
+
}
|
|
2162
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2163
|
+
const localVarHeaderParameter = {};
|
|
2164
|
+
const localVarQueryParameter = {};
|
|
2165
|
+
// authentication accessToken required
|
|
2166
|
+
// http bearer authentication required
|
|
2167
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2168
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2169
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2170
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2171
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2172
|
+
return {
|
|
2173
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2174
|
+
options: localVarRequestOptions,
|
|
2175
|
+
};
|
|
2176
|
+
}),
|
|
2118
2177
|
/**
|
|
2119
2178
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
2120
2179
|
* @param {string} walletId Wallet ID
|
|
@@ -3442,6 +3501,35 @@ const DefaultApiFp = function (configuration) {
|
|
|
3442
3501
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3443
3502
|
});
|
|
3444
3503
|
},
|
|
3504
|
+
/**
|
|
3505
|
+
* Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
|
|
3506
|
+
* @param {WalletProviderCertificateRequest} [walletProviderCertificateRequest]
|
|
3507
|
+
* @param {*} [options] Override http request option.
|
|
3508
|
+
* @throws {RequiredError}
|
|
3509
|
+
*/
|
|
3510
|
+
walletProviderCertificateImport(walletProviderCertificateRequest, options) {
|
|
3511
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3512
|
+
var _a, _b, _c;
|
|
3513
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletProviderCertificateImport(walletProviderCertificateRequest, options);
|
|
3514
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3515
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletProviderCertificateImport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3516
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3517
|
+
});
|
|
3518
|
+
},
|
|
3519
|
+
/**
|
|
3520
|
+
* Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.
|
|
3521
|
+
* @param {*} [options] Override http request option.
|
|
3522
|
+
* @throws {RequiredError}
|
|
3523
|
+
*/
|
|
3524
|
+
walletProviderCsrGenerate(options) {
|
|
3525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3526
|
+
var _a, _b, _c;
|
|
3527
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletProviderCsrGenerate(options);
|
|
3528
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3529
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletProviderCsrGenerate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3530
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3531
|
+
});
|
|
3532
|
+
},
|
|
3445
3533
|
/**
|
|
3446
3534
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
3447
3535
|
* @param {string} walletId Wallet ID
|
|
@@ -4184,6 +4272,23 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4184
4272
|
walletPatch(walletId, walletPatchPayload, options) {
|
|
4185
4273
|
return localVarFp.walletPatch(walletId, walletPatchPayload, options).then((request) => request(axios, basePath));
|
|
4186
4274
|
},
|
|
4275
|
+
/**
|
|
4276
|
+
* Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
|
|
4277
|
+
* @param {WalletProviderCertificateRequest} [walletProviderCertificateRequest]
|
|
4278
|
+
* @param {*} [options] Override http request option.
|
|
4279
|
+
* @throws {RequiredError}
|
|
4280
|
+
*/
|
|
4281
|
+
walletProviderCertificateImport(walletProviderCertificateRequest, options) {
|
|
4282
|
+
return localVarFp.walletProviderCertificateImport(walletProviderCertificateRequest, options).then((request) => request(axios, basePath));
|
|
4283
|
+
},
|
|
4284
|
+
/**
|
|
4285
|
+
* Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.
|
|
4286
|
+
* @param {*} [options] Override http request option.
|
|
4287
|
+
* @throws {RequiredError}
|
|
4288
|
+
*/
|
|
4289
|
+
walletProviderCsrGenerate(options) {
|
|
4290
|
+
return localVarFp.walletProviderCsrGenerate(options).then((request) => request(axios, basePath));
|
|
4291
|
+
},
|
|
4187
4292
|
/**
|
|
4188
4293
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
4189
4294
|
* @param {string} walletId Wallet ID
|
|
@@ -4840,6 +4945,23 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4840
4945
|
walletPatch(walletId, walletPatchPayload, options) {
|
|
4841
4946
|
return (0, exports.DefaultApiFp)(this.configuration).walletPatch(walletId, walletPatchPayload, options).then((request) => request(this.axios, this.basePath));
|
|
4842
4947
|
}
|
|
4948
|
+
/**
|
|
4949
|
+
* Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
|
|
4950
|
+
* @param {WalletProviderCertificateRequest} [walletProviderCertificateRequest]
|
|
4951
|
+
* @param {*} [options] Override http request option.
|
|
4952
|
+
* @throws {RequiredError}
|
|
4953
|
+
*/
|
|
4954
|
+
walletProviderCertificateImport(walletProviderCertificateRequest, options) {
|
|
4955
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletProviderCertificateImport(walletProviderCertificateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4956
|
+
}
|
|
4957
|
+
/**
|
|
4958
|
+
* Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.
|
|
4959
|
+
* @param {*} [options] Override http request option.
|
|
4960
|
+
* @throws {RequiredError}
|
|
4961
|
+
*/
|
|
4962
|
+
walletProviderCsrGenerate(options) {
|
|
4963
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletProviderCsrGenerate(options).then((request) => request(this.axios, this.basePath));
|
|
4964
|
+
}
|
|
4843
4965
|
/**
|
|
4844
4966
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
4845
4967
|
* @param {string} walletId Wallet ID
|