@triveria/wallet 0.0.250 → 0.0.252
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 +73 -25
- package/api.js +98 -8
- package/base.js +1 -1
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -360,6 +360,29 @@ export declare const DeferredStatusEnum: {
|
|
|
360
360
|
readonly Error: "error";
|
|
361
361
|
};
|
|
362
362
|
export type DeferredStatusEnum = typeof DeferredStatusEnum[keyof typeof DeferredStatusEnum];
|
|
363
|
+
export interface DocumentSignatureValidity {
|
|
364
|
+
'verificationResult': DocumentSignatureValidityVerificationResultEnum;
|
|
365
|
+
/**
|
|
366
|
+
* Details about document signature verification errors/warnings
|
|
367
|
+
*/
|
|
368
|
+
'details'?: Array<string>;
|
|
369
|
+
/**
|
|
370
|
+
* Qualification of the signing certificate (QSig, QSeal etc.)
|
|
371
|
+
*/
|
|
372
|
+
'signingCertificateQualification': string;
|
|
373
|
+
/**
|
|
374
|
+
* Signing certificate in base64 encoded form
|
|
375
|
+
*/
|
|
376
|
+
'signingCertificate': string;
|
|
377
|
+
}
|
|
378
|
+
export declare const DocumentSignatureValidityVerificationResultEnum: {
|
|
379
|
+
readonly Valid: "valid";
|
|
380
|
+
readonly InvalidSignature: "invalid_signature";
|
|
381
|
+
readonly Revoked: "revoked";
|
|
382
|
+
readonly Expired: "expired";
|
|
383
|
+
readonly UntrustedCertificate: "untrusted_certificate";
|
|
384
|
+
};
|
|
385
|
+
export type DocumentSignatureValidityVerificationResultEnum = typeof DocumentSignatureValidityVerificationResultEnum[keyof typeof DocumentSignatureValidityVerificationResultEnum];
|
|
363
386
|
/**
|
|
364
387
|
* URLs of EBSI services
|
|
365
388
|
*/
|
|
@@ -655,33 +678,10 @@ export type OidcRevisionOidc4vpEnum = typeof OidcRevisionOidc4vpEnum[keyof typeo
|
|
|
655
678
|
export interface OnboardResult {
|
|
656
679
|
'did': string;
|
|
657
680
|
}
|
|
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
681
|
export interface PdfVerificationResponse {
|
|
682
682
|
'vpValid'?: boolean;
|
|
683
683
|
'verifiedCredentials'?: VerifiedWrapper;
|
|
684
|
-
'signatures'?: Array<
|
|
684
|
+
'signatures'?: Array<DocumentSignatureValidity>;
|
|
685
685
|
}
|
|
686
686
|
/**
|
|
687
687
|
* Result of the preauthorized issuance process start. Consists of the preauthorized code, pin, and the issuer url.
|
|
@@ -865,6 +865,10 @@ export interface VerifiedWrapper {
|
|
|
865
865
|
* The Verifiable Presentation that was presented during the interaction.
|
|
866
866
|
*/
|
|
867
867
|
'vp': string;
|
|
868
|
+
/**
|
|
869
|
+
* The holder property of the Verifiable Presentation provided for convenience in case the client needs to verify the holder of enclosed Verifiable Credentials.
|
|
870
|
+
*/
|
|
871
|
+
'holder': string;
|
|
868
872
|
}
|
|
869
873
|
/**
|
|
870
874
|
* Request for the creation of URL used by holder to present credentials to a verifier.
|
|
@@ -882,6 +886,10 @@ export interface VerifyInitResponse {
|
|
|
882
886
|
*/
|
|
883
887
|
'verifierState': string;
|
|
884
888
|
}
|
|
889
|
+
export interface VpInvalidNotification {
|
|
890
|
+
'verifierId': string;
|
|
891
|
+
'error': string;
|
|
892
|
+
}
|
|
885
893
|
export interface VpVerifiedNotification {
|
|
886
894
|
'verifierId': string;
|
|
887
895
|
}
|
|
@@ -975,7 +983,7 @@ export interface WalletNotification {
|
|
|
975
983
|
/**
|
|
976
984
|
* @type WalletNotificationEventDetails
|
|
977
985
|
*/
|
|
978
|
-
export type WalletNotificationEventDetails = CredentialIssuedNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpVerifiedNotification;
|
|
986
|
+
export type WalletNotificationEventDetails = CredentialIssuedNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpInvalidNotification | VpVerifiedNotification;
|
|
979
987
|
export declare const WalletNotificationEventType: {
|
|
980
988
|
readonly VpVerified: "vp.verified";
|
|
981
989
|
readonly VpInvalid: "vp.invalid";
|
|
@@ -1004,6 +1012,10 @@ export interface WalletPatchPayload {
|
|
|
1004
1012
|
[key: string]: any;
|
|
1005
1013
|
};
|
|
1006
1014
|
}
|
|
1015
|
+
export declare const XadesSignatureType: {
|
|
1016
|
+
readonly Tsl: "tsl";
|
|
1017
|
+
};
|
|
1018
|
+
export type XadesSignatureType = typeof XadesSignatureType[keyof typeof XadesSignatureType];
|
|
1007
1019
|
/**
|
|
1008
1020
|
* DefaultApi - axios parameter creator
|
|
1009
1021
|
*/
|
|
@@ -1222,6 +1234,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1222
1234
|
* @throws {RequiredError}
|
|
1223
1235
|
*/
|
|
1224
1236
|
issuerInitiatePreauthOffer: (walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Signs an XML document with XAdES signature
|
|
1239
|
+
* @param {string} walletId
|
|
1240
|
+
* @param {File} xml
|
|
1241
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
1242
|
+
* @param {*} [options] Override http request option.
|
|
1243
|
+
* @throws {RequiredError}
|
|
1244
|
+
*/
|
|
1245
|
+
issuerXadesSign: (walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1225
1246
|
/**
|
|
1226
1247
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
1227
1248
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1675,6 +1696,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1675
1696
|
* @throws {RequiredError}
|
|
1676
1697
|
*/
|
|
1677
1698
|
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreAuthOffer>>;
|
|
1699
|
+
/**
|
|
1700
|
+
* Signs an XML document with XAdES signature
|
|
1701
|
+
* @param {string} walletId
|
|
1702
|
+
* @param {File} xml
|
|
1703
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
1704
|
+
* @param {*} [options] Override http request option.
|
|
1705
|
+
* @throws {RequiredError}
|
|
1706
|
+
*/
|
|
1707
|
+
issuerXadesSign(walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
|
|
1678
1708
|
/**
|
|
1679
1709
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
1680
1710
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2130,6 +2160,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2130
2160
|
* @throws {RequiredError}
|
|
2131
2161
|
*/
|
|
2132
2162
|
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): AxiosPromise<PreAuthOffer>;
|
|
2163
|
+
/**
|
|
2164
|
+
* Signs an XML document with XAdES signature
|
|
2165
|
+
* @param {string} walletId
|
|
2166
|
+
* @param {File} xml
|
|
2167
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
2168
|
+
* @param {*} [options] Override http request option.
|
|
2169
|
+
* @throws {RequiredError}
|
|
2170
|
+
*/
|
|
2171
|
+
issuerXadesSign(walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig): AxiosPromise<AuthOffer>;
|
|
2133
2172
|
/**
|
|
2134
2173
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
2135
2174
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2585,6 +2624,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2585
2624
|
* @throws {RequiredError}
|
|
2586
2625
|
*/
|
|
2587
2626
|
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreAuthOffer, any>>;
|
|
2627
|
+
/**
|
|
2628
|
+
* Signs an XML document with XAdES signature
|
|
2629
|
+
* @param {string} walletId
|
|
2630
|
+
* @param {File} xml
|
|
2631
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
2632
|
+
* @param {*} [options] Override http request option.
|
|
2633
|
+
* @throws {RequiredError}
|
|
2634
|
+
*/
|
|
2635
|
+
issuerXadesSign(walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
|
|
2588
2636
|
/**
|
|
2589
2637
|
* Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
|
|
2590
2638
|
* @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: " ",
|