@triveria/wallet 0.0.251 → 0.0.253
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 +72 -26
- package/api.js +98 -8
- package/base.js +1 -1
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -37,10 +37,12 @@ export interface AuthOffer {
|
|
|
37
37
|
}
|
|
38
38
|
export interface CSRCreateRequest {
|
|
39
39
|
'organizationName': string;
|
|
40
|
+
'organizationWebsite': string;
|
|
41
|
+
'streetAddress': string;
|
|
40
42
|
'locality': string;
|
|
43
|
+
'postalCode': string;
|
|
41
44
|
'province'?: string;
|
|
42
45
|
'country': string;
|
|
43
|
-
'email'?: string;
|
|
44
46
|
}
|
|
45
47
|
export interface CSRCreateResponse {
|
|
46
48
|
'csr': string;
|
|
@@ -360,6 +362,29 @@ export declare const DeferredStatusEnum: {
|
|
|
360
362
|
readonly Error: "error";
|
|
361
363
|
};
|
|
362
364
|
export type DeferredStatusEnum = typeof DeferredStatusEnum[keyof typeof DeferredStatusEnum];
|
|
365
|
+
export interface DocumentSignatureValidity {
|
|
366
|
+
'verificationResult': DocumentSignatureValidityVerificationResultEnum;
|
|
367
|
+
/**
|
|
368
|
+
* Details about document signature verification errors/warnings
|
|
369
|
+
*/
|
|
370
|
+
'details'?: Array<string>;
|
|
371
|
+
/**
|
|
372
|
+
* Qualification of the signing certificate (QSig, QSeal etc.)
|
|
373
|
+
*/
|
|
374
|
+
'signingCertificateQualification': string;
|
|
375
|
+
/**
|
|
376
|
+
* Signing certificate in base64 encoded form
|
|
377
|
+
*/
|
|
378
|
+
'signingCertificate': string;
|
|
379
|
+
}
|
|
380
|
+
export declare const DocumentSignatureValidityVerificationResultEnum: {
|
|
381
|
+
readonly Valid: "valid";
|
|
382
|
+
readonly InvalidSignature: "invalid_signature";
|
|
383
|
+
readonly Revoked: "revoked";
|
|
384
|
+
readonly Expired: "expired";
|
|
385
|
+
readonly UntrustedCertificate: "untrusted_certificate";
|
|
386
|
+
};
|
|
387
|
+
export type DocumentSignatureValidityVerificationResultEnum = typeof DocumentSignatureValidityVerificationResultEnum[keyof typeof DocumentSignatureValidityVerificationResultEnum];
|
|
363
388
|
/**
|
|
364
389
|
* URLs of EBSI services
|
|
365
390
|
*/
|
|
@@ -655,33 +680,10 @@ export type OidcRevisionOidc4vpEnum = typeof OidcRevisionOidc4vpEnum[keyof typeo
|
|
|
655
680
|
export interface OnboardResult {
|
|
656
681
|
'did': string;
|
|
657
682
|
}
|
|
658
|
-
export interface PdfSignatureValidity {
|
|
659
|
-
'verificationResult': PdfSignatureValidityVerificationResultEnum;
|
|
660
|
-
/**
|
|
661
|
-
* Details about PDF signature verification errors/warnings
|
|
662
|
-
*/
|
|
663
|
-
'details'?: Array<string>;
|
|
664
|
-
/**
|
|
665
|
-
* Qualification of the signing certificate (QSig, QSeal etc.)
|
|
666
|
-
*/
|
|
667
|
-
'signingCertificateQualification': string;
|
|
668
|
-
/**
|
|
669
|
-
* Signing certificate in base64 encoded form
|
|
670
|
-
*/
|
|
671
|
-
'signingCertificate': string;
|
|
672
|
-
}
|
|
673
|
-
export declare const PdfSignatureValidityVerificationResultEnum: {
|
|
674
|
-
readonly Valid: "valid";
|
|
675
|
-
readonly InvalidSignature: "invalid_signature";
|
|
676
|
-
readonly Revoked: "revoked";
|
|
677
|
-
readonly Expired: "expired";
|
|
678
|
-
readonly UntrustedCertificate: "untrusted_certificate";
|
|
679
|
-
};
|
|
680
|
-
export type PdfSignatureValidityVerificationResultEnum = typeof PdfSignatureValidityVerificationResultEnum[keyof typeof PdfSignatureValidityVerificationResultEnum];
|
|
681
683
|
export interface PdfVerificationResponse {
|
|
682
684
|
'vpValid'?: boolean;
|
|
683
685
|
'verifiedCredentials'?: VerifiedWrapper;
|
|
684
|
-
'signatures'?: Array<
|
|
686
|
+
'signatures'?: Array<DocumentSignatureValidity>;
|
|
685
687
|
}
|
|
686
688
|
/**
|
|
687
689
|
* Result of the preauthorized issuance process start. Consists of the preauthorized code, pin, and the issuer url.
|
|
@@ -886,6 +888,10 @@ export interface VerifyInitResponse {
|
|
|
886
888
|
*/
|
|
887
889
|
'verifierState': string;
|
|
888
890
|
}
|
|
891
|
+
export interface VpInvalidNotification {
|
|
892
|
+
'verifierId': string;
|
|
893
|
+
'error': string;
|
|
894
|
+
}
|
|
889
895
|
export interface VpVerifiedNotification {
|
|
890
896
|
'verifierId': string;
|
|
891
897
|
}
|
|
@@ -979,7 +985,7 @@ export interface WalletNotification {
|
|
|
979
985
|
/**
|
|
980
986
|
* @type WalletNotificationEventDetails
|
|
981
987
|
*/
|
|
982
|
-
export type WalletNotificationEventDetails = CredentialIssuedNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpVerifiedNotification;
|
|
988
|
+
export type WalletNotificationEventDetails = CredentialIssuedNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpInvalidNotification | VpVerifiedNotification;
|
|
983
989
|
export declare const WalletNotificationEventType: {
|
|
984
990
|
readonly VpVerified: "vp.verified";
|
|
985
991
|
readonly VpInvalid: "vp.invalid";
|
|
@@ -1008,6 +1014,10 @@ export interface WalletPatchPayload {
|
|
|
1008
1014
|
[key: string]: any;
|
|
1009
1015
|
};
|
|
1010
1016
|
}
|
|
1017
|
+
export declare const XadesSignatureType: {
|
|
1018
|
+
readonly Tsl: "tsl";
|
|
1019
|
+
};
|
|
1020
|
+
export type XadesSignatureType = typeof XadesSignatureType[keyof typeof XadesSignatureType];
|
|
1011
1021
|
/**
|
|
1012
1022
|
* DefaultApi - axios parameter creator
|
|
1013
1023
|
*/
|
|
@@ -1226,6 +1236,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1226
1236
|
* @throws {RequiredError}
|
|
1227
1237
|
*/
|
|
1228
1238
|
issuerInitiatePreauthOffer: (walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1239
|
+
/**
|
|
1240
|
+
* Signs an XML document with XAdES signature
|
|
1241
|
+
* @param {string} walletId
|
|
1242
|
+
* @param {File} xml
|
|
1243
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
1244
|
+
* @param {*} [options] Override http request option.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
*/
|
|
1247
|
+
issuerXadesSign: (walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1229
1248
|
/**
|
|
1230
1249
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
1231
1250
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1679,6 +1698,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1679
1698
|
* @throws {RequiredError}
|
|
1680
1699
|
*/
|
|
1681
1700
|
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreAuthOffer>>;
|
|
1701
|
+
/**
|
|
1702
|
+
* Signs an XML document with XAdES signature
|
|
1703
|
+
* @param {string} walletId
|
|
1704
|
+
* @param {File} xml
|
|
1705
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
1706
|
+
* @param {*} [options] Override http request option.
|
|
1707
|
+
* @throws {RequiredError}
|
|
1708
|
+
*/
|
|
1709
|
+
issuerXadesSign(walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
|
|
1682
1710
|
/**
|
|
1683
1711
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
1684
1712
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2134,6 +2162,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2134
2162
|
* @throws {RequiredError}
|
|
2135
2163
|
*/
|
|
2136
2164
|
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): AxiosPromise<PreAuthOffer>;
|
|
2165
|
+
/**
|
|
2166
|
+
* Signs an XML document with XAdES signature
|
|
2167
|
+
* @param {string} walletId
|
|
2168
|
+
* @param {File} xml
|
|
2169
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
2170
|
+
* @param {*} [options] Override http request option.
|
|
2171
|
+
* @throws {RequiredError}
|
|
2172
|
+
*/
|
|
2173
|
+
issuerXadesSign(walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig): AxiosPromise<AuthOffer>;
|
|
2137
2174
|
/**
|
|
2138
2175
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
2139
2176
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2589,6 +2626,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2589
2626
|
* @throws {RequiredError}
|
|
2590
2627
|
*/
|
|
2591
2628
|
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreAuthOffer, any>>;
|
|
2629
|
+
/**
|
|
2630
|
+
* Signs an XML document with XAdES signature
|
|
2631
|
+
* @param {string} walletId
|
|
2632
|
+
* @param {File} xml
|
|
2633
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
2634
|
+
* @param {*} [options] Override http request option.
|
|
2635
|
+
* @throws {RequiredError}
|
|
2636
|
+
*/
|
|
2637
|
+
issuerXadesSign(walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
|
|
2592
2638
|
/**
|
|
2593
2639
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
2594
2640
|
* @param {string} credentialId Verifiable Credential Identifier
|
package/api.js
CHANGED
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.
|
|
28
|
+
exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -67,6 +67,13 @@ exports.DeferredStatusEnum = {
|
|
|
67
67
|
Completed: 'completed',
|
|
68
68
|
Error: 'error'
|
|
69
69
|
};
|
|
70
|
+
exports.DocumentSignatureValidityVerificationResultEnum = {
|
|
71
|
+
Valid: 'valid',
|
|
72
|
+
InvalidSignature: 'invalid_signature',
|
|
73
|
+
Revoked: 'revoked',
|
|
74
|
+
Expired: 'expired',
|
|
75
|
+
UntrustedCertificate: 'untrusted_certificate'
|
|
76
|
+
};
|
|
70
77
|
exports.HealthStatusStatusEnum = {
|
|
71
78
|
Ok: 'ok',
|
|
72
79
|
Limited: 'limited',
|
|
@@ -103,13 +110,6 @@ exports.OidcRevisionOidc4vpEnum = {
|
|
|
103
110
|
Draft16: 'Draft16',
|
|
104
111
|
Draft23: 'Draft23'
|
|
105
112
|
};
|
|
106
|
-
exports.PdfSignatureValidityVerificationResultEnum = {
|
|
107
|
-
Valid: 'valid',
|
|
108
|
-
InvalidSignature: 'invalid_signature',
|
|
109
|
-
Revoked: 'revoked',
|
|
110
|
-
Expired: 'expired',
|
|
111
|
-
UntrustedCertificate: 'untrusted_certificate'
|
|
112
|
-
};
|
|
113
113
|
exports.PrepareToAccreditRequestTypeEnum = {
|
|
114
114
|
TrustedIssuer: 'TrustedIssuer',
|
|
115
115
|
TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
|
|
@@ -159,6 +159,9 @@ exports.WalletNotificationEventType = {
|
|
|
159
159
|
CredentialIssued: 'credential.issued',
|
|
160
160
|
CredentialReceived: 'credential.received'
|
|
161
161
|
};
|
|
162
|
+
exports.XadesSignatureType = {
|
|
163
|
+
Tsl: 'tsl'
|
|
164
|
+
};
|
|
162
165
|
/**
|
|
163
166
|
* DefaultApi - axios parameter creator
|
|
164
167
|
*/
|
|
@@ -1125,6 +1128,54 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1125
1128
|
options: localVarRequestOptions,
|
|
1126
1129
|
};
|
|
1127
1130
|
}),
|
|
1131
|
+
/**
|
|
1132
|
+
* Signs an XML document with XAdES signature
|
|
1133
|
+
* @param {string} walletId
|
|
1134
|
+
* @param {File} xml
|
|
1135
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
1136
|
+
* @param {*} [options] Override http request option.
|
|
1137
|
+
* @throws {RequiredError}
|
|
1138
|
+
*/
|
|
1139
|
+
issuerXadesSign: (walletId, xml, xadesSignatureType, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1140
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1141
|
+
(0, common_1.assertParamExists)('issuerXadesSign', 'walletId', walletId);
|
|
1142
|
+
// verify required parameter 'xml' is not null or undefined
|
|
1143
|
+
(0, common_1.assertParamExists)('issuerXadesSign', 'xml', xml);
|
|
1144
|
+
// verify required parameter 'xadesSignatureType' is not null or undefined
|
|
1145
|
+
(0, common_1.assertParamExists)('issuerXadesSign', 'xadesSignatureType', xadesSignatureType);
|
|
1146
|
+
const localVarPath = `/issuer/xades`;
|
|
1147
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1148
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1149
|
+
let baseOptions;
|
|
1150
|
+
if (configuration) {
|
|
1151
|
+
baseOptions = configuration.baseOptions;
|
|
1152
|
+
}
|
|
1153
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1154
|
+
const localVarHeaderParameter = {};
|
|
1155
|
+
const localVarQueryParameter = {};
|
|
1156
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1157
|
+
// authentication accessToken required
|
|
1158
|
+
// http bearer authentication required
|
|
1159
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1160
|
+
if (xml !== undefined) {
|
|
1161
|
+
localVarFormParams.append('xml', xml);
|
|
1162
|
+
}
|
|
1163
|
+
if (xadesSignatureType !== undefined) {
|
|
1164
|
+
localVarFormParams.append('xadesSignatureType', xadesSignatureType);
|
|
1165
|
+
}
|
|
1166
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1167
|
+
if (walletId != null) {
|
|
1168
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
1169
|
+
}
|
|
1170
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1172
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1173
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1174
|
+
return {
|
|
1175
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1176
|
+
options: localVarRequestOptions,
|
|
1177
|
+
};
|
|
1178
|
+
}),
|
|
1128
1179
|
/**
|
|
1129
1180
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
1130
1181
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2595,6 +2646,23 @@ const DefaultApiFp = function (configuration) {
|
|
|
2595
2646
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2596
2647
|
});
|
|
2597
2648
|
},
|
|
2649
|
+
/**
|
|
2650
|
+
* Signs an XML document with XAdES signature
|
|
2651
|
+
* @param {string} walletId
|
|
2652
|
+
* @param {File} xml
|
|
2653
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
2654
|
+
* @param {*} [options] Override http request option.
|
|
2655
|
+
* @throws {RequiredError}
|
|
2656
|
+
*/
|
|
2657
|
+
issuerXadesSign(walletId, xml, xadesSignatureType, options) {
|
|
2658
|
+
var _a, _b, _c;
|
|
2659
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2660
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerXadesSign(walletId, xml, xadesSignatureType, options);
|
|
2661
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2662
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerXadesSign']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2663
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2664
|
+
});
|
|
2665
|
+
},
|
|
2598
2666
|
/**
|
|
2599
2667
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
2600
2668
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -3336,6 +3404,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3336
3404
|
issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options) {
|
|
3337
3405
|
return localVarFp.issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options).then((request) => request(axios, basePath));
|
|
3338
3406
|
},
|
|
3407
|
+
/**
|
|
3408
|
+
* Signs an XML document with XAdES signature
|
|
3409
|
+
* @param {string} walletId
|
|
3410
|
+
* @param {File} xml
|
|
3411
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
3412
|
+
* @param {*} [options] Override http request option.
|
|
3413
|
+
* @throws {RequiredError}
|
|
3414
|
+
*/
|
|
3415
|
+
issuerXadesSign(walletId, xml, xadesSignatureType, options) {
|
|
3416
|
+
return localVarFp.issuerXadesSign(walletId, xml, xadesSignatureType, options).then((request) => request(axios, basePath));
|
|
3417
|
+
},
|
|
3339
3418
|
/**
|
|
3340
3419
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
3341
3420
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -3901,6 +3980,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3901
3980
|
issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options) {
|
|
3902
3981
|
return (0, exports.DefaultApiFp)(this.configuration).issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
3903
3982
|
}
|
|
3983
|
+
/**
|
|
3984
|
+
* Signs an XML document with XAdES signature
|
|
3985
|
+
* @param {string} walletId
|
|
3986
|
+
* @param {File} xml
|
|
3987
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
3988
|
+
* @param {*} [options] Override http request option.
|
|
3989
|
+
* @throws {RequiredError}
|
|
3990
|
+
*/
|
|
3991
|
+
issuerXadesSign(walletId, xml, xadesSignatureType, options) {
|
|
3992
|
+
return (0, exports.DefaultApiFp)(this.configuration).issuerXadesSign(walletId, xml, xadesSignatureType, options).then((request) => request(this.axios, this.basePath));
|
|
3993
|
+
}
|
|
3904
3994
|
/**
|
|
3905
3995
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
3906
3996
|
* @param {string} credentialId Verifiable Credential Identifier
|
package/base.js
CHANGED
|
@@ -18,7 +18,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
|
-
exports.BASE_PATH = "
|
|
21
|
+
exports.BASE_PATH = "/api/v1".replace(/\/+$/, "");
|
|
22
22
|
exports.COLLECTION_FORMATS = {
|
|
23
23
|
csv: ",",
|
|
24
24
|
ssv: " ",
|