@triveria/wallet 0.0.328 → 0.0.330
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 +1201 -191
- package/api.js +1403 -347
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -25,7 +25,8 @@ 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.
|
|
28
|
+
exports.CredentialListInteractionEnum = exports.CredentialClaimMetadataGetMetadataScopeEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WmpRequestType = exports.WmpProvideIdentityAssertionTypeEnum = exports.WmpProcessVerificationRequestTypeEnum = exports.WmpProcessOfferRequestTypeEnum = exports.WmpMessageSendStatus = exports.WmpAuthenticateSessionTypeEnum = exports.WmpAckReadRequestTypeEnum = exports.WmpAckProcessedRequestTypeEnum = exports.WalletNotificationEventType = exports.WalletCapability = exports.VcdmVersion = exports.VaultType = exports.UntpRegistrarConfigStatusEnum = exports.UntpConfigurationRoleEnum = exports.TrustListKind = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.StatusPurpose = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.RenderSuite = exports.RenderMethodInfoKindEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialSchemaType = exports.CredentialPropertyToVerify = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionAuthorizationEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.CertificateStatus = exports.AccreditationRequestTypeEnum = void 0;
|
|
29
|
+
exports.WmpEntityListEntityTypeEnum = exports.CredentialPayloadGetFormEnum = void 0;
|
|
29
30
|
const axios_1 = __importDefault(require("axios"));
|
|
30
31
|
// Some imports not used depending on template conditions
|
|
31
32
|
// @ts-ignore
|
|
@@ -162,6 +163,19 @@ exports.PresentationDefinitionSubmissionRequirementsRuleEnum = {
|
|
|
162
163
|
All: 'all',
|
|
163
164
|
Pick: 'pick',
|
|
164
165
|
};
|
|
166
|
+
exports.RenderMethodInfoKindEnum = {
|
|
167
|
+
RenderTemplate2024: 'RenderTemplate2024',
|
|
168
|
+
TemplateRenderMethod: 'TemplateRenderMethod',
|
|
169
|
+
Unknown: 'unknown',
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* A render suite; `template2024` is a UNTP `RenderTemplate2024`.
|
|
173
|
+
*/
|
|
174
|
+
exports.RenderSuite = {
|
|
175
|
+
Html: 'html',
|
|
176
|
+
Card: 'card',
|
|
177
|
+
Template2024: 'template2024',
|
|
178
|
+
};
|
|
165
179
|
exports.RevokeAccreditationRequestTypeEnum = {
|
|
166
180
|
TrustedIssuer: 'TrustedIssuer',
|
|
167
181
|
TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation',
|
|
@@ -184,13 +198,14 @@ exports.SystemImpactStatusEnum = {
|
|
|
184
198
|
Critical: 'critical',
|
|
185
199
|
};
|
|
186
200
|
/**
|
|
187
|
-
* What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure, IDTL - IDUnion Trust List, EUDI - European Digital Identity wallet, Noop - personal key based no-op trust framework (mainly for the personal use)
|
|
201
|
+
* What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure, IDTL - IDUnion Trust List, EUDI - European Digital Identity wallet, Noop - personal key based no-op trust framework (mainly for the personal use), UNTP - UN Transparency Protocol: a self-hosted did:web, and every DID the wallet resolves a key of must be anchored by a Digital Identity Anchor of a trusted registrar.
|
|
188
202
|
*/
|
|
189
203
|
exports.TrustFrameworkType = {
|
|
190
204
|
Ebsi: 'EBSI',
|
|
191
205
|
Idtl: 'IDTL',
|
|
192
206
|
Noop: 'NOOP',
|
|
193
207
|
Eudi: 'EUDI',
|
|
208
|
+
Untp: 'UNTP',
|
|
194
209
|
};
|
|
195
210
|
/**
|
|
196
211
|
* What a trusted list URL names. A `lotl` is a List of Trusted Lists, whose pointers are followed to the lists it names; a `trustList` is a leaf list, holding trust services directly.
|
|
@@ -199,6 +214,15 @@ exports.TrustListKind = {
|
|
|
199
214
|
TrustList: 'trustList',
|
|
200
215
|
Lotl: 'lotl',
|
|
201
216
|
};
|
|
217
|
+
exports.UntpConfigurationRoleEnum = {
|
|
218
|
+
Member: 'member',
|
|
219
|
+
Registrar: 'registrar',
|
|
220
|
+
};
|
|
221
|
+
exports.UntpRegistrarConfigStatusEnum = {
|
|
222
|
+
Active: 'Active',
|
|
223
|
+
Suspended: 'Suspended',
|
|
224
|
+
KeyCompromised: 'KeyCompromised',
|
|
225
|
+
};
|
|
202
226
|
/**
|
|
203
227
|
* Which key store backend holds this wallet\'s signing keys. This property COULD NOT change later: it is only read on wallet creation and is ignored on wallet patch. Leave unset to use the deployment\'s default backend. vaultPlaintext - locally generated and stored WITHOUT encryption, for development only and rejected when the deployment runs with production=true; vaultAwsKms / vaultOvhKms - locally generated, wrapped by AWS KMS / OVH KMS; vaultKmip - generated and held inside a KMIP-speaking appliance (e.g. OVHcloud KMS), never exported.
|
|
204
228
|
*/
|
|
@@ -482,6 +506,51 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
482
506
|
options: localVarRequestOptions,
|
|
483
507
|
};
|
|
484
508
|
}),
|
|
509
|
+
/**
|
|
510
|
+
* Issues a W3C VCDM draft as a credential of the wallet itself, with no holder and no OID4VCI: for a credential that is published rather than handed to anyone, such as a UNTP Digital Product Passport (EN 18246 Annex B.5). The credential gets the wallet\'s status list entry and envelope, and is stored issued on the same record. With `publish`, it is then published as a UNTP link, like `POST /untp/links`; if that fails the response is `502` with the issued `credentialId`, and publishing is retried with `POST /untp/links`.
|
|
511
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
512
|
+
* @param {string} walletId
|
|
513
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
514
|
+
* @param {CredentialIssueDirectRequest} [credentialIssueDirectRequest]
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
credentialIssueDirect: (credentialId_1, walletId_1, idempotencyKey_1, credentialIssueDirectRequest_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, idempotencyKey_1, credentialIssueDirectRequest_1, ...args_1], void 0, function* (credentialId, walletId, idempotencyKey, credentialIssueDirectRequest, options = {}) {
|
|
519
|
+
// verify required parameter 'credentialId' is not null or undefined
|
|
520
|
+
(0, common_1.assertParamExists)('credentialIssueDirect', 'credentialId', credentialId);
|
|
521
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
522
|
+
(0, common_1.assertParamExists)('credentialIssueDirect', 'walletId', walletId);
|
|
523
|
+
const localVarPath = `/credentials/{credential_id}/issue/direct`
|
|
524
|
+
.replace('{credential_id}', encodeURIComponent(String(credentialId)));
|
|
525
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
526
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
527
|
+
let baseOptions;
|
|
528
|
+
if (configuration) {
|
|
529
|
+
baseOptions = configuration.baseOptions;
|
|
530
|
+
}
|
|
531
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
532
|
+
const localVarHeaderParameter = {};
|
|
533
|
+
const localVarQueryParameter = {};
|
|
534
|
+
// authentication accessToken required
|
|
535
|
+
// http bearer authentication required
|
|
536
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
537
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
538
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
539
|
+
if (walletId != null) {
|
|
540
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
541
|
+
}
|
|
542
|
+
if (idempotencyKey != null) {
|
|
543
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
544
|
+
}
|
|
545
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
546
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
547
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
548
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialIssueDirectRequest, localVarRequestOptions, configuration);
|
|
549
|
+
return {
|
|
550
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
551
|
+
options: localVarRequestOptions,
|
|
552
|
+
};
|
|
553
|
+
}),
|
|
485
554
|
/**
|
|
486
555
|
* Retrieves a list of credentials.
|
|
487
556
|
* @param {string} walletId
|
|
@@ -719,55 +788,68 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
719
788
|
};
|
|
720
789
|
}),
|
|
721
790
|
/**
|
|
722
|
-
*
|
|
791
|
+
* Renders a W3C VCDM credential of the wallet with one of its `renderMethod` entries, as `POST /verifier/render` does. HTML is served with a `Content-Security-Policy` that sandboxes it.
|
|
792
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
723
793
|
* @param {string} walletId
|
|
724
|
-
* @param {
|
|
794
|
+
* @param {number} [index] The index of the render method to use, in the credential\'s `renderMethod`.
|
|
795
|
+
* @param {RenderSuite} [suite] Use the first render method of this suite.
|
|
796
|
+
* @param {string} [mediaQuery] Use the first render method with exactly this `mediaQuery`.
|
|
725
797
|
* @param {*} [options] Override http request option.
|
|
726
798
|
* @throws {RequiredError}
|
|
727
799
|
*/
|
|
728
|
-
|
|
800
|
+
credentialRender: (credentialId_1, walletId_1, index_1, suite_1, mediaQuery_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, index_1, suite_1, mediaQuery_1, ...args_1], void 0, function* (credentialId, walletId, index, suite, mediaQuery, options = {}) {
|
|
801
|
+
// verify required parameter 'credentialId' is not null or undefined
|
|
802
|
+
(0, common_1.assertParamExists)('credentialRender', 'credentialId', credentialId);
|
|
729
803
|
// verify required parameter 'walletId' is not null or undefined
|
|
730
|
-
(0, common_1.assertParamExists)('
|
|
731
|
-
const localVarPath = `/credentials/
|
|
804
|
+
(0, common_1.assertParamExists)('credentialRender', 'walletId', walletId);
|
|
805
|
+
const localVarPath = `/credentials/{credential_id}/render`
|
|
806
|
+
.replace('{credential_id}', encodeURIComponent(String(credentialId)));
|
|
732
807
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
733
808
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
734
809
|
let baseOptions;
|
|
735
810
|
if (configuration) {
|
|
736
811
|
baseOptions = configuration.baseOptions;
|
|
737
812
|
}
|
|
738
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
813
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
739
814
|
const localVarHeaderParameter = {};
|
|
740
815
|
const localVarQueryParameter = {};
|
|
741
816
|
// authentication accessToken required
|
|
742
817
|
// http bearer authentication required
|
|
743
818
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
744
|
-
|
|
745
|
-
|
|
819
|
+
if (index !== undefined) {
|
|
820
|
+
localVarQueryParameter['index'] = index;
|
|
821
|
+
}
|
|
822
|
+
if (suite !== undefined) {
|
|
823
|
+
localVarQueryParameter['suite'] = suite;
|
|
824
|
+
}
|
|
825
|
+
if (mediaQuery !== undefined) {
|
|
826
|
+
localVarQueryParameter['mediaQuery'] = mediaQuery;
|
|
827
|
+
}
|
|
828
|
+
localVarHeaderParameter['Accept'] = 'text/html,text/plain,application/json';
|
|
746
829
|
if (walletId != null) {
|
|
747
830
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
748
831
|
}
|
|
749
832
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
750
833
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
751
834
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
752
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialRequest, localVarRequestOptions, configuration);
|
|
753
835
|
return {
|
|
754
836
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
755
837
|
options: localVarRequestOptions,
|
|
756
838
|
};
|
|
757
839
|
}),
|
|
758
840
|
/**
|
|
759
|
-
*
|
|
841
|
+
* Lists the render methods of a W3C VCDM credential of the wallet, for a client to pick one by its media query: media queries are not evaluated by the wallet.
|
|
760
842
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
761
843
|
* @param {string} walletId
|
|
762
844
|
* @param {*} [options] Override http request option.
|
|
763
845
|
* @throws {RequiredError}
|
|
764
846
|
*/
|
|
765
|
-
|
|
847
|
+
credentialRenderMethods: (credentialId_1, walletId_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, ...args_1], void 0, function* (credentialId, walletId, options = {}) {
|
|
766
848
|
// verify required parameter 'credentialId' is not null or undefined
|
|
767
|
-
(0, common_1.assertParamExists)('
|
|
849
|
+
(0, common_1.assertParamExists)('credentialRenderMethods', 'credentialId', credentialId);
|
|
768
850
|
// verify required parameter 'walletId' is not null or undefined
|
|
769
|
-
(0, common_1.assertParamExists)('
|
|
770
|
-
const localVarPath = `/credentials/{credential_id}/
|
|
851
|
+
(0, common_1.assertParamExists)('credentialRenderMethods', 'walletId', walletId);
|
|
852
|
+
const localVarPath = `/credentials/{credential_id}/render/methods`
|
|
771
853
|
.replace('{credential_id}', encodeURIComponent(String(credentialId)));
|
|
772
854
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
773
855
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -775,7 +857,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
775
857
|
if (configuration) {
|
|
776
858
|
baseOptions = configuration.baseOptions;
|
|
777
859
|
}
|
|
778
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
860
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
779
861
|
const localVarHeaderParameter = {};
|
|
780
862
|
const localVarQueryParameter = {};
|
|
781
863
|
// authentication accessToken required
|
|
@@ -794,19 +876,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
794
876
|
};
|
|
795
877
|
}),
|
|
796
878
|
/**
|
|
797
|
-
*
|
|
798
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
879
|
+
* Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
|
|
799
880
|
* @param {string} walletId
|
|
881
|
+
* @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
|
|
800
882
|
* @param {*} [options] Override http request option.
|
|
801
883
|
* @throws {RequiredError}
|
|
802
884
|
*/
|
|
803
|
-
|
|
804
|
-
// verify required parameter 'credentialId' is not null or undefined
|
|
805
|
-
(0, common_1.assertParamExists)('credentialSuspend', 'credentialId', credentialId);
|
|
885
|
+
credentialRequestInit: (walletId_1, credentialRequest_1, ...args_1) => __awaiter(this, [walletId_1, credentialRequest_1, ...args_1], void 0, function* (walletId, credentialRequest, options = {}) {
|
|
806
886
|
// verify required parameter 'walletId' is not null or undefined
|
|
807
|
-
(0, common_1.assertParamExists)('
|
|
808
|
-
const localVarPath = `/credentials/
|
|
809
|
-
.replace('{credential_id}', encodeURIComponent(String(credentialId)));
|
|
887
|
+
(0, common_1.assertParamExists)('credentialRequestInit', 'walletId', walletId);
|
|
888
|
+
const localVarPath = `/credentials/request/init`;
|
|
810
889
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
811
890
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
812
891
|
let baseOptions;
|
|
@@ -819,6 +898,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
819
898
|
// authentication accessToken required
|
|
820
899
|
// http bearer authentication required
|
|
821
900
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
901
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
822
902
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
823
903
|
if (walletId != null) {
|
|
824
904
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
@@ -826,24 +906,26 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
826
906
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
827
907
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
828
908
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
909
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialRequest, localVarRequestOptions, configuration);
|
|
829
910
|
return {
|
|
830
911
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
831
912
|
options: localVarRequestOptions,
|
|
832
913
|
};
|
|
833
914
|
}),
|
|
834
915
|
/**
|
|
835
|
-
*
|
|
916
|
+
* Revoke a specific Verifiable Credential. A credential published as a UNTP link stays published: a verifier following its link finds it and verifies it as revoked. `DELETE /untp/links/{service_id}` unpublishes it.
|
|
836
917
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
837
918
|
* @param {string} walletId
|
|
919
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
838
920
|
* @param {*} [options] Override http request option.
|
|
839
921
|
* @throws {RequiredError}
|
|
840
922
|
*/
|
|
841
|
-
|
|
923
|
+
credentialRevoke: (credentialId_1, walletId_1, idempotencyKey_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, idempotencyKey_1, ...args_1], void 0, function* (credentialId, walletId, idempotencyKey, options = {}) {
|
|
842
924
|
// verify required parameter 'credentialId' is not null or undefined
|
|
843
|
-
(0, common_1.assertParamExists)('
|
|
925
|
+
(0, common_1.assertParamExists)('credentialRevoke', 'credentialId', credentialId);
|
|
844
926
|
// verify required parameter 'walletId' is not null or undefined
|
|
845
|
-
(0, common_1.assertParamExists)('
|
|
846
|
-
const localVarPath = `/credentials/{credential_id}/
|
|
927
|
+
(0, common_1.assertParamExists)('credentialRevoke', 'walletId', walletId);
|
|
928
|
+
const localVarPath = `/credentials/{credential_id}/revoke`
|
|
847
929
|
.replace('{credential_id}', encodeURIComponent(String(credentialId)));
|
|
848
930
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
849
931
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -851,7 +933,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
851
933
|
if (configuration) {
|
|
852
934
|
baseOptions = configuration.baseOptions;
|
|
853
935
|
}
|
|
854
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
936
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
855
937
|
const localVarHeaderParameter = {};
|
|
856
938
|
const localVarQueryParameter = {};
|
|
857
939
|
// authentication accessToken required
|
|
@@ -861,6 +943,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
861
943
|
if (walletId != null) {
|
|
862
944
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
863
945
|
}
|
|
946
|
+
if (idempotencyKey != null) {
|
|
947
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
948
|
+
}
|
|
864
949
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
865
950
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
866
951
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -870,26 +955,26 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
870
955
|
};
|
|
871
956
|
}),
|
|
872
957
|
/**
|
|
873
|
-
*
|
|
874
|
-
* @param {string}
|
|
958
|
+
* Suspend a Verifiable Credential issued with the `suspension` status purpose (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.
|
|
959
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
875
960
|
* @param {string} walletId
|
|
876
961
|
* @param {*} [options] Override http request option.
|
|
877
962
|
* @throws {RequiredError}
|
|
878
963
|
*/
|
|
879
|
-
|
|
880
|
-
// verify required parameter '
|
|
881
|
-
(0, common_1.assertParamExists)('
|
|
964
|
+
credentialSuspend: (credentialId_1, walletId_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, ...args_1], void 0, function* (credentialId, walletId, options = {}) {
|
|
965
|
+
// verify required parameter 'credentialId' is not null or undefined
|
|
966
|
+
(0, common_1.assertParamExists)('credentialSuspend', 'credentialId', credentialId);
|
|
882
967
|
// verify required parameter 'walletId' is not null or undefined
|
|
883
|
-
(0, common_1.assertParamExists)('
|
|
884
|
-
const localVarPath = `/
|
|
885
|
-
.replace('{
|
|
968
|
+
(0, common_1.assertParamExists)('credentialSuspend', 'walletId', walletId);
|
|
969
|
+
const localVarPath = `/credentials/{credential_id}/suspend`
|
|
970
|
+
.replace('{credential_id}', encodeURIComponent(String(credentialId)));
|
|
886
971
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
887
972
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
888
973
|
let baseOptions;
|
|
889
974
|
if (configuration) {
|
|
890
975
|
baseOptions = configuration.baseOptions;
|
|
891
976
|
}
|
|
892
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
977
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
893
978
|
const localVarHeaderParameter = {};
|
|
894
979
|
const localVarQueryParameter = {};
|
|
895
980
|
// authentication accessToken required
|
|
@@ -908,26 +993,35 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
908
993
|
};
|
|
909
994
|
}),
|
|
910
995
|
/**
|
|
911
|
-
*
|
|
996
|
+
* Lift the suspension of a Verifiable Credential.
|
|
997
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
912
998
|
* @param {string} walletId
|
|
913
999
|
* @param {*} [options] Override http request option.
|
|
914
1000
|
* @throws {RequiredError}
|
|
915
1001
|
*/
|
|
916
|
-
|
|
1002
|
+
credentialUnsuspend: (credentialId_1, walletId_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, ...args_1], void 0, function* (credentialId, walletId, options = {}) {
|
|
1003
|
+
// verify required parameter 'credentialId' is not null or undefined
|
|
1004
|
+
(0, common_1.assertParamExists)('credentialUnsuspend', 'credentialId', credentialId);
|
|
917
1005
|
// verify required parameter 'walletId' is not null or undefined
|
|
918
|
-
(0, common_1.assertParamExists)('
|
|
919
|
-
const localVarPath = `/{
|
|
920
|
-
.replace('{
|
|
1006
|
+
(0, common_1.assertParamExists)('credentialUnsuspend', 'walletId', walletId);
|
|
1007
|
+
const localVarPath = `/credentials/{credential_id}/suspend`
|
|
1008
|
+
.replace('{credential_id}', encodeURIComponent(String(credentialId)));
|
|
921
1009
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
922
1010
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
923
1011
|
let baseOptions;
|
|
924
1012
|
if (configuration) {
|
|
925
1013
|
baseOptions = configuration.baseOptions;
|
|
926
1014
|
}
|
|
927
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1015
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
928
1016
|
const localVarHeaderParameter = {};
|
|
929
1017
|
const localVarQueryParameter = {};
|
|
1018
|
+
// authentication accessToken required
|
|
1019
|
+
// http bearer authentication required
|
|
1020
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
930
1021
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1022
|
+
if (walletId != null) {
|
|
1023
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
1024
|
+
}
|
|
931
1025
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
932
1026
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
933
1027
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -937,12 +1031,19 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
937
1031
|
};
|
|
938
1032
|
}),
|
|
939
1033
|
/**
|
|
940
|
-
*
|
|
1034
|
+
* Polls the status of a deferred credential issuance. Returns `in_progress` while the operation is still pending, or `completed` with the resulting credential ID when done. Clients should poll this endpoint until a terminal status is reached.
|
|
1035
|
+
* @param {string} deferredId Deferred token
|
|
1036
|
+
* @param {string} walletId
|
|
941
1037
|
* @param {*} [options] Override http request option.
|
|
942
1038
|
* @throws {RequiredError}
|
|
943
1039
|
*/
|
|
944
|
-
|
|
945
|
-
|
|
1040
|
+
deferredStatus: (deferredId_1, walletId_1, ...args_1) => __awaiter(this, [deferredId_1, walletId_1, ...args_1], void 0, function* (deferredId, walletId, options = {}) {
|
|
1041
|
+
// verify required parameter 'deferredId' is not null or undefined
|
|
1042
|
+
(0, common_1.assertParamExists)('deferredStatus', 'deferredId', deferredId);
|
|
1043
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1044
|
+
(0, common_1.assertParamExists)('deferredStatus', 'walletId', walletId);
|
|
1045
|
+
const localVarPath = `/deferred/{deferred_id}`
|
|
1046
|
+
.replace('{deferred_id}', encodeURIComponent(String(deferredId)));
|
|
946
1047
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
947
1048
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
948
1049
|
let baseOptions;
|
|
@@ -952,7 +1053,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
952
1053
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
953
1054
|
const localVarHeaderParameter = {};
|
|
954
1055
|
const localVarQueryParameter = {};
|
|
1056
|
+
// authentication accessToken required
|
|
1057
|
+
// http bearer authentication required
|
|
1058
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
955
1059
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1060
|
+
if (walletId != null) {
|
|
1061
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
1062
|
+
}
|
|
956
1063
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
957
1064
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
958
1065
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -962,70 +1069,56 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
962
1069
|
};
|
|
963
1070
|
}),
|
|
964
1071
|
/**
|
|
965
|
-
*
|
|
1072
|
+
* Gets the DID Document of the wallet.
|
|
966
1073
|
* @param {string} walletId
|
|
967
|
-
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
968
1074
|
* @param {*} [options] Override http request option.
|
|
969
1075
|
* @throws {RequiredError}
|
|
970
1076
|
*/
|
|
971
|
-
|
|
1077
|
+
didDocumentGet: (walletId_1, ...args_1) => __awaiter(this, [walletId_1, ...args_1], void 0, function* (walletId, options = {}) {
|
|
972
1078
|
// verify required parameter 'walletId' is not null or undefined
|
|
973
|
-
(0, common_1.assertParamExists)('
|
|
974
|
-
const localVarPath = `/
|
|
1079
|
+
(0, common_1.assertParamExists)('didDocumentGet', 'walletId', walletId);
|
|
1080
|
+
const localVarPath = `/{wallet_id}/did.json`
|
|
1081
|
+
.replace('{wallet_id}', encodeURIComponent(String(walletId)));
|
|
975
1082
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
976
1083
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
977
1084
|
let baseOptions;
|
|
978
1085
|
if (configuration) {
|
|
979
1086
|
baseOptions = configuration.baseOptions;
|
|
980
1087
|
}
|
|
981
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1088
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
982
1089
|
const localVarHeaderParameter = {};
|
|
983
1090
|
const localVarQueryParameter = {};
|
|
984
|
-
// authentication accessToken required
|
|
985
|
-
// http bearer authentication required
|
|
986
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
987
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
988
1091
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
989
|
-
if (walletId != null) {
|
|
990
|
-
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
991
|
-
}
|
|
992
1092
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
993
1093
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
994
1094
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
995
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(holderAuthOfferCreationRequest, localVarRequestOptions, configuration);
|
|
996
1095
|
return {
|
|
997
1096
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
998
1097
|
options: localVarRequestOptions,
|
|
999
1098
|
};
|
|
1000
1099
|
}),
|
|
1001
1100
|
/**
|
|
1002
|
-
*
|
|
1101
|
+
* Returns the wallet\'s own DID document, as published at `/{wallet_id}/did.json` for a self-hosted did:web.
|
|
1003
1102
|
* @param {string} walletId
|
|
1004
|
-
* @param {string} interactionId
|
|
1005
|
-
* @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
|
|
1006
1103
|
* @param {*} [options] Override http request option.
|
|
1007
1104
|
* @throws {RequiredError}
|
|
1008
1105
|
*/
|
|
1009
|
-
|
|
1106
|
+
didDocumentLocalGet: (walletId_1, ...args_1) => __awaiter(this, [walletId_1, ...args_1], void 0, function* (walletId, options = {}) {
|
|
1010
1107
|
// verify required parameter 'walletId' is not null or undefined
|
|
1011
|
-
(0, common_1.assertParamExists)('
|
|
1012
|
-
|
|
1013
|
-
(0, common_1.assertParamExists)('holderCredentialsPresentAfterConsent', 'interactionId', interactionId);
|
|
1014
|
-
const localVarPath = `/holder/present/{interaction_id}`
|
|
1015
|
-
.replace('{interaction_id}', encodeURIComponent(String(interactionId)));
|
|
1108
|
+
(0, common_1.assertParamExists)('didDocumentLocalGet', 'walletId', walletId);
|
|
1109
|
+
const localVarPath = `/did`;
|
|
1016
1110
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1017
1111
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1018
1112
|
let baseOptions;
|
|
1019
1113
|
if (configuration) {
|
|
1020
1114
|
baseOptions = configuration.baseOptions;
|
|
1021
1115
|
}
|
|
1022
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1116
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1023
1117
|
const localVarHeaderParameter = {};
|
|
1024
1118
|
const localVarQueryParameter = {};
|
|
1025
1119
|
// authentication accessToken required
|
|
1026
1120
|
// http bearer authentication required
|
|
1027
1121
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1028
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1029
1122
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1030
1123
|
if (walletId != null) {
|
|
1031
1124
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
@@ -1033,30 +1126,31 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1033
1126
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1034
1127
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1035
1128
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1036
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(interactionAuthorizationConsent, localVarRequestOptions, configuration);
|
|
1037
1129
|
return {
|
|
1038
1130
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1039
1131
|
options: localVarRequestOptions,
|
|
1040
1132
|
};
|
|
1041
1133
|
}),
|
|
1042
1134
|
/**
|
|
1043
|
-
*
|
|
1135
|
+
* Changes the wallet\'s DID document: removes the services in `removeServiceIds`, adds the services in `addServices` (a service with the same id is replaced), and, when `alsoKnownAs` is set, replaces the subject\'s other identifiers (an empty list removes them). UNTP identifies an entity\'s Digital Identity Anchor with a service of type `https://test.uncefact.org/vocabulary/link-type/dia` (`untp:dia` in UNTP 0.7) and registered identifiers with `alsoKnownAs`. Only a self-hosted did:web document can be changed; services of an EBSI DID are written to the EBSI DID registry, which does not take `alsoKnownAs`.
|
|
1044
1136
|
* @param {string} walletId
|
|
1045
|
-
* @param {
|
|
1137
|
+
* @param {DidDocumentPatch} didDocumentPatch
|
|
1046
1138
|
* @param {*} [options] Override http request option.
|
|
1047
1139
|
* @throws {RequiredError}
|
|
1048
1140
|
*/
|
|
1049
|
-
|
|
1141
|
+
didDocumentPatch: (walletId_1, didDocumentPatch_1, ...args_1) => __awaiter(this, [walletId_1, didDocumentPatch_1, ...args_1], void 0, function* (walletId, didDocumentPatch, options = {}) {
|
|
1050
1142
|
// verify required parameter 'walletId' is not null or undefined
|
|
1051
|
-
(0, common_1.assertParamExists)('
|
|
1052
|
-
|
|
1143
|
+
(0, common_1.assertParamExists)('didDocumentPatch', 'walletId', walletId);
|
|
1144
|
+
// verify required parameter 'didDocumentPatch' is not null or undefined
|
|
1145
|
+
(0, common_1.assertParamExists)('didDocumentPatch', 'didDocumentPatch', didDocumentPatch);
|
|
1146
|
+
const localVarPath = `/did`;
|
|
1053
1147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1054
1148
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1055
1149
|
let baseOptions;
|
|
1056
1150
|
if (configuration) {
|
|
1057
1151
|
baseOptions = configuration.baseOptions;
|
|
1058
1152
|
}
|
|
1059
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1153
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1060
1154
|
const localVarHeaderParameter = {};
|
|
1061
1155
|
const localVarQueryParameter = {};
|
|
1062
1156
|
// authentication accessToken required
|
|
@@ -1070,75 +1164,61 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1070
1164
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1071
1165
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1072
1166
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1073
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1167
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(didDocumentPatch, localVarRequestOptions, configuration);
|
|
1074
1168
|
return {
|
|
1075
1169
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1076
1170
|
options: localVarRequestOptions,
|
|
1077
1171
|
};
|
|
1078
1172
|
}),
|
|
1079
1173
|
/**
|
|
1080
|
-
*
|
|
1081
|
-
* @param {string} walletId
|
|
1082
|
-
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
1174
|
+
* Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
|
|
1083
1175
|
* @param {*} [options] Override http request option.
|
|
1084
1176
|
* @throws {RequiredError}
|
|
1085
1177
|
*/
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
(0, common_1.assertParamExists)('holderLinkedVpCreate', 'walletId', walletId);
|
|
1089
|
-
const localVarPath = `/holder/linked-vp`;
|
|
1178
|
+
healthCheck: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1179
|
+
const localVarPath = `/health`;
|
|
1090
1180
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1091
1181
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1092
1182
|
let baseOptions;
|
|
1093
1183
|
if (configuration) {
|
|
1094
1184
|
baseOptions = configuration.baseOptions;
|
|
1095
1185
|
}
|
|
1096
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1186
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1097
1187
|
const localVarHeaderParameter = {};
|
|
1098
1188
|
const localVarQueryParameter = {};
|
|
1099
|
-
// authentication accessToken required
|
|
1100
|
-
// http bearer authentication required
|
|
1101
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1102
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1103
1189
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1104
|
-
if (walletId != null) {
|
|
1105
|
-
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
1106
|
-
}
|
|
1107
1190
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1108
1191
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1109
1192
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1110
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkedVpCreateRequest, localVarRequestOptions, configuration);
|
|
1111
1193
|
return {
|
|
1112
1194
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1113
1195
|
options: localVarRequestOptions,
|
|
1114
1196
|
};
|
|
1115
1197
|
}),
|
|
1116
1198
|
/**
|
|
1117
|
-
*
|
|
1199
|
+
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
1118
1200
|
* @param {string} walletId
|
|
1119
|
-
* @param {
|
|
1201
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
1120
1202
|
* @param {*} [options] Override http request option.
|
|
1121
1203
|
* @throws {RequiredError}
|
|
1122
1204
|
*/
|
|
1123
|
-
|
|
1205
|
+
holderCreateAuthOffer: (walletId_1, holderAuthOfferCreationRequest_1, ...args_1) => __awaiter(this, [walletId_1, holderAuthOfferCreationRequest_1, ...args_1], void 0, function* (walletId, holderAuthOfferCreationRequest, options = {}) {
|
|
1124
1206
|
// verify required parameter 'walletId' is not null or undefined
|
|
1125
|
-
(0, common_1.assertParamExists)('
|
|
1126
|
-
|
|
1127
|
-
(0, common_1.assertParamExists)('holderLinkedVpDelete', 'linkedVpId', linkedVpId);
|
|
1128
|
-
const localVarPath = `/holder/linked-vp/{linked_vp_id}`
|
|
1129
|
-
.replace('{linked_vp_id}', encodeURIComponent(String(linkedVpId)));
|
|
1207
|
+
(0, common_1.assertParamExists)('holderCreateAuthOffer', 'walletId', walletId);
|
|
1208
|
+
const localVarPath = `/offer/create/intime`;
|
|
1130
1209
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1131
1210
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1132
1211
|
let baseOptions;
|
|
1133
1212
|
if (configuration) {
|
|
1134
1213
|
baseOptions = configuration.baseOptions;
|
|
1135
1214
|
}
|
|
1136
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1215
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1137
1216
|
const localVarHeaderParameter = {};
|
|
1138
1217
|
const localVarQueryParameter = {};
|
|
1139
1218
|
// authentication accessToken required
|
|
1140
1219
|
// http bearer authentication required
|
|
1141
1220
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1221
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1142
1222
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1143
1223
|
if (walletId != null) {
|
|
1144
1224
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
@@ -1146,37 +1226,40 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1146
1226
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1147
1227
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1148
1228
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1229
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(holderAuthOfferCreationRequest, localVarRequestOptions, configuration);
|
|
1149
1230
|
return {
|
|
1150
1231
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1151
1232
|
options: localVarRequestOptions,
|
|
1152
1233
|
};
|
|
1153
1234
|
}),
|
|
1154
1235
|
/**
|
|
1155
|
-
*
|
|
1236
|
+
* Completes a credential presentation flow: submits the selected credentials to the verifier after the holder\'s explicit consent. The `interaction_id` is obtained from `HolderPresentPassAuthInfo`.
|
|
1156
1237
|
* @param {string} walletId
|
|
1157
|
-
* @param {string}
|
|
1238
|
+
* @param {string} interactionId
|
|
1239
|
+
* @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
|
|
1158
1240
|
* @param {*} [options] Override http request option.
|
|
1159
1241
|
* @throws {RequiredError}
|
|
1160
1242
|
*/
|
|
1161
|
-
|
|
1243
|
+
holderCredentialsPresentAfterConsent: (walletId_1, interactionId_1, interactionAuthorizationConsent_1, ...args_1) => __awaiter(this, [walletId_1, interactionId_1, interactionAuthorizationConsent_1, ...args_1], void 0, function* (walletId, interactionId, interactionAuthorizationConsent, options = {}) {
|
|
1162
1244
|
// verify required parameter 'walletId' is not null or undefined
|
|
1163
|
-
(0, common_1.assertParamExists)('
|
|
1164
|
-
// verify required parameter '
|
|
1165
|
-
(0, common_1.assertParamExists)('
|
|
1166
|
-
const localVarPath = `/holder/
|
|
1167
|
-
.replace('{
|
|
1245
|
+
(0, common_1.assertParamExists)('holderCredentialsPresentAfterConsent', 'walletId', walletId);
|
|
1246
|
+
// verify required parameter 'interactionId' is not null or undefined
|
|
1247
|
+
(0, common_1.assertParamExists)('holderCredentialsPresentAfterConsent', 'interactionId', interactionId);
|
|
1248
|
+
const localVarPath = `/holder/present/{interaction_id}`
|
|
1249
|
+
.replace('{interaction_id}', encodeURIComponent(String(interactionId)));
|
|
1168
1250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1169
1251
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1170
1252
|
let baseOptions;
|
|
1171
1253
|
if (configuration) {
|
|
1172
1254
|
baseOptions = configuration.baseOptions;
|
|
1173
1255
|
}
|
|
1174
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1256
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1175
1257
|
const localVarHeaderParameter = {};
|
|
1176
1258
|
const localVarQueryParameter = {};
|
|
1177
1259
|
// authentication accessToken required
|
|
1178
1260
|
// http bearer authentication required
|
|
1179
1261
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1262
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1180
1263
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1181
1264
|
if (walletId != null) {
|
|
1182
1265
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
@@ -1184,33 +1267,36 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1184
1267
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1185
1268
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1186
1269
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1270
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(interactionAuthorizationConsent, localVarRequestOptions, configuration);
|
|
1187
1271
|
return {
|
|
1188
1272
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1189
1273
|
options: localVarRequestOptions,
|
|
1190
1274
|
};
|
|
1191
1275
|
}),
|
|
1192
1276
|
/**
|
|
1193
|
-
*
|
|
1277
|
+
* Responds to an ID token request
|
|
1194
1278
|
* @param {string} walletId
|
|
1279
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
1195
1280
|
* @param {*} [options] Override http request option.
|
|
1196
1281
|
* @throws {RequiredError}
|
|
1197
1282
|
*/
|
|
1198
|
-
|
|
1283
|
+
holderIdTokenSend: (walletId_1, idTokenSendRequest_1, ...args_1) => __awaiter(this, [walletId_1, idTokenSendRequest_1, ...args_1], void 0, function* (walletId, idTokenSendRequest, options = {}) {
|
|
1199
1284
|
// verify required parameter 'walletId' is not null or undefined
|
|
1200
|
-
(0, common_1.assertParamExists)('
|
|
1201
|
-
const localVarPath = `/holder/
|
|
1285
|
+
(0, common_1.assertParamExists)('holderIdTokenSend', 'walletId', walletId);
|
|
1286
|
+
const localVarPath = `/holder/id-token/send`;
|
|
1202
1287
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1203
1288
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1204
1289
|
let baseOptions;
|
|
1205
1290
|
if (configuration) {
|
|
1206
1291
|
baseOptions = configuration.baseOptions;
|
|
1207
1292
|
}
|
|
1208
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1293
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1209
1294
|
const localVarHeaderParameter = {};
|
|
1210
1295
|
const localVarQueryParameter = {};
|
|
1211
1296
|
// authentication accessToken required
|
|
1212
1297
|
// http bearer authentication required
|
|
1213
1298
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1299
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1214
1300
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1215
1301
|
if (walletId != null) {
|
|
1216
1302
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
@@ -1218,6 +1304,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1218
1304
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1219
1305
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1220
1306
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1307
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(idTokenSendRequest, localVarRequestOptions, configuration);
|
|
1221
1308
|
return {
|
|
1222
1309
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1223
1310
|
options: localVarRequestOptions,
|
|
@@ -1407,16 +1494,19 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1407
1494
|
};
|
|
1408
1495
|
}),
|
|
1409
1496
|
/**
|
|
1410
|
-
*
|
|
1497
|
+
* Signs an opaque payload, such as an audit log entry, with the wallet\'s DID key, as a compact detached JWS with an unencoded payload (RFC 7515 Appendix F, RFC 7797: `b64: false`, `crit: [\"b64\"]`): `<protected header>..<signature>`. The signature is verified offline against the key in the wallet\'s DID document, with the payload put back. `typ` must be one the deployment allows, which no credential or presentation verifier accepts, so a signature from here never passes as a credential.
|
|
1411
1498
|
* @param {string} walletId
|
|
1412
|
-
* @param {
|
|
1499
|
+
* @param {IssuerDetachedJwsSignRequest} issuerDetachedJwsSignRequest
|
|
1500
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
1413
1501
|
* @param {*} [options] Override http request option.
|
|
1414
1502
|
* @throws {RequiredError}
|
|
1415
1503
|
*/
|
|
1416
|
-
|
|
1504
|
+
issuerDetachedJwsSign: (walletId_1, issuerDetachedJwsSignRequest_1, idempotencyKey_1, ...args_1) => __awaiter(this, [walletId_1, issuerDetachedJwsSignRequest_1, idempotencyKey_1, ...args_1], void 0, function* (walletId, issuerDetachedJwsSignRequest, idempotencyKey, options = {}) {
|
|
1417
1505
|
// verify required parameter 'walletId' is not null or undefined
|
|
1418
|
-
(0, common_1.assertParamExists)('
|
|
1419
|
-
|
|
1506
|
+
(0, common_1.assertParamExists)('issuerDetachedJwsSign', 'walletId', walletId);
|
|
1507
|
+
// verify required parameter 'issuerDetachedJwsSignRequest' is not null or undefined
|
|
1508
|
+
(0, common_1.assertParamExists)('issuerDetachedJwsSign', 'issuerDetachedJwsSignRequest', issuerDetachedJwsSignRequest);
|
|
1509
|
+
const localVarPath = `/issuer/jws/detached`;
|
|
1420
1510
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1421
1511
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1422
1512
|
let baseOptions;
|
|
@@ -1434,26 +1524,29 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1434
1524
|
if (walletId != null) {
|
|
1435
1525
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
1436
1526
|
}
|
|
1527
|
+
if (idempotencyKey != null) {
|
|
1528
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
1529
|
+
}
|
|
1437
1530
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1438
1531
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1439
1532
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1440
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1533
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(issuerDetachedJwsSignRequest, localVarRequestOptions, configuration);
|
|
1441
1534
|
return {
|
|
1442
1535
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1443
1536
|
options: localVarRequestOptions,
|
|
1444
1537
|
};
|
|
1445
1538
|
}),
|
|
1446
1539
|
/**
|
|
1447
|
-
* Generates
|
|
1540
|
+
* Generates an authorized credential offer URL for the holder to initiate the credential issuance flow. The resulting offer URL is typically presented as a QR code or deep link. If `wmpEntityId` is provided, the offer is delivered directly via WMP and 204 is returned.
|
|
1448
1541
|
* @param {string} walletId
|
|
1449
|
-
* @param {
|
|
1542
|
+
* @param {InitAuthOffer} [initAuthOffer]
|
|
1450
1543
|
* @param {*} [options] Override http request option.
|
|
1451
1544
|
* @throws {RequiredError}
|
|
1452
1545
|
*/
|
|
1453
|
-
|
|
1546
|
+
issuerInitiateAuthOffer: (walletId_1, initAuthOffer_1, ...args_1) => __awaiter(this, [walletId_1, initAuthOffer_1, ...args_1], void 0, function* (walletId, initAuthOffer, options = {}) {
|
|
1454
1547
|
// verify required parameter 'walletId' is not null or undefined
|
|
1455
|
-
(0, common_1.assertParamExists)('
|
|
1456
|
-
const localVarPath = `/issuer/offer/
|
|
1548
|
+
(0, common_1.assertParamExists)('issuerInitiateAuthOffer', 'walletId', walletId);
|
|
1549
|
+
const localVarPath = `/issuer/offer/auth`;
|
|
1457
1550
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1458
1551
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1459
1552
|
let baseOptions;
|
|
@@ -1474,17 +1567,54 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1474
1567
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1475
1568
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1476
1569
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1477
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1570
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initAuthOffer, localVarRequestOptions, configuration);
|
|
1478
1571
|
return {
|
|
1479
1572
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1480
1573
|
options: localVarRequestOptions,
|
|
1481
1574
|
};
|
|
1482
1575
|
}),
|
|
1483
1576
|
/**
|
|
1484
|
-
*
|
|
1577
|
+
* Generates a pre-authorized credential offer for the holder. Unlike the authorized flow, the holder does not need to authenticate with the issuer — instead a pre-authorized code (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and can be shared as a QR code or deep link.
|
|
1485
1578
|
* @param {string} walletId
|
|
1486
|
-
* @param {
|
|
1487
|
-
* @param {
|
|
1579
|
+
* @param {InitPreAuthOffer} [initPreAuthOffer]
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
issuerInitiatePreauthOffer: (walletId_1, initPreAuthOffer_1, ...args_1) => __awaiter(this, [walletId_1, initPreAuthOffer_1, ...args_1], void 0, function* (walletId, initPreAuthOffer, options = {}) {
|
|
1584
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1585
|
+
(0, common_1.assertParamExists)('issuerInitiatePreauthOffer', 'walletId', walletId);
|
|
1586
|
+
const localVarPath = `/issuer/offer/preauth`;
|
|
1587
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1588
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1589
|
+
let baseOptions;
|
|
1590
|
+
if (configuration) {
|
|
1591
|
+
baseOptions = configuration.baseOptions;
|
|
1592
|
+
}
|
|
1593
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1594
|
+
const localVarHeaderParameter = {};
|
|
1595
|
+
const localVarQueryParameter = {};
|
|
1596
|
+
// authentication accessToken required
|
|
1597
|
+
// http bearer authentication required
|
|
1598
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1599
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1600
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1601
|
+
if (walletId != null) {
|
|
1602
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
1603
|
+
}
|
|
1604
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1605
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1606
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1607
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initPreAuthOffer, localVarRequestOptions, configuration);
|
|
1608
|
+
return {
|
|
1609
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1610
|
+
options: localVarRequestOptions,
|
|
1611
|
+
};
|
|
1612
|
+
}),
|
|
1613
|
+
/**
|
|
1614
|
+
* Signs an XML document with XAdES signature
|
|
1615
|
+
* @param {string} walletId
|
|
1616
|
+
* @param {XadesSignatureType} xadesSignatureType
|
|
1617
|
+
* @param {File} [xml]
|
|
1488
1618
|
* @param {*} [options] Override http request option.
|
|
1489
1619
|
* @throws {RequiredError}
|
|
1490
1620
|
*/
|
|
@@ -1692,6 +1822,147 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1692
1822
|
options: localVarRequestOptions,
|
|
1693
1823
|
};
|
|
1694
1824
|
}),
|
|
1825
|
+
/**
|
|
1826
|
+
* Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
|
|
1827
|
+
* @param {string} tenantId
|
|
1828
|
+
* @param {string} state The enrollment state from TenantEnrollmentInit.
|
|
1829
|
+
* @param {*} [options] Override http request option.
|
|
1830
|
+
* @throws {RequiredError}
|
|
1831
|
+
*/
|
|
1832
|
+
tenantEnrollmentEnroll: (tenantId_1, state_1, ...args_1) => __awaiter(this, [tenantId_1, state_1, ...args_1], void 0, function* (tenantId, state, options = {}) {
|
|
1833
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
1834
|
+
(0, common_1.assertParamExists)('tenantEnrollmentEnroll', 'tenantId', tenantId);
|
|
1835
|
+
// verify required parameter 'state' is not null or undefined
|
|
1836
|
+
(0, common_1.assertParamExists)('tenantEnrollmentEnroll', 'state', state);
|
|
1837
|
+
const localVarPath = `/tenant/{tenant_id}/enrollment/{state}`
|
|
1838
|
+
.replace('{tenant_id}', encodeURIComponent(String(tenantId)))
|
|
1839
|
+
.replace('{state}', encodeURIComponent(String(state)));
|
|
1840
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1841
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1842
|
+
let baseOptions;
|
|
1843
|
+
if (configuration) {
|
|
1844
|
+
baseOptions = configuration.baseOptions;
|
|
1845
|
+
}
|
|
1846
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1847
|
+
const localVarHeaderParameter = {};
|
|
1848
|
+
const localVarQueryParameter = {};
|
|
1849
|
+
// authentication accessToken required
|
|
1850
|
+
// http bearer authentication required
|
|
1851
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1852
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1853
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1854
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1855
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1856
|
+
return {
|
|
1857
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1858
|
+
options: localVarRequestOptions,
|
|
1859
|
+
};
|
|
1860
|
+
}),
|
|
1861
|
+
/**
|
|
1862
|
+
* Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
|
|
1863
|
+
* @param {string} tenantId
|
|
1864
|
+
* @param {EnrollmentInitPayload} enrollmentInitPayload
|
|
1865
|
+
* @param {*} [options] Override http request option.
|
|
1866
|
+
* @throws {RequiredError}
|
|
1867
|
+
*/
|
|
1868
|
+
tenantEnrollmentInit: (tenantId_1, enrollmentInitPayload_1, ...args_1) => __awaiter(this, [tenantId_1, enrollmentInitPayload_1, ...args_1], void 0, function* (tenantId, enrollmentInitPayload, options = {}) {
|
|
1869
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
1870
|
+
(0, common_1.assertParamExists)('tenantEnrollmentInit', 'tenantId', tenantId);
|
|
1871
|
+
// verify required parameter 'enrollmentInitPayload' is not null or undefined
|
|
1872
|
+
(0, common_1.assertParamExists)('tenantEnrollmentInit', 'enrollmentInitPayload', enrollmentInitPayload);
|
|
1873
|
+
const localVarPath = `/tenant/{tenant_id}/enrollment/init`
|
|
1874
|
+
.replace('{tenant_id}', encodeURIComponent(String(tenantId)));
|
|
1875
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1876
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1877
|
+
let baseOptions;
|
|
1878
|
+
if (configuration) {
|
|
1879
|
+
baseOptions = configuration.baseOptions;
|
|
1880
|
+
}
|
|
1881
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1882
|
+
const localVarHeaderParameter = {};
|
|
1883
|
+
const localVarQueryParameter = {};
|
|
1884
|
+
// authentication accessToken required
|
|
1885
|
+
// http bearer authentication required
|
|
1886
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1887
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1888
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1889
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1890
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1891
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1892
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(enrollmentInitPayload, localVarRequestOptions, configuration);
|
|
1893
|
+
return {
|
|
1894
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1895
|
+
options: localVarRequestOptions,
|
|
1896
|
+
};
|
|
1897
|
+
}),
|
|
1898
|
+
/**
|
|
1899
|
+
* Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
|
|
1900
|
+
* @param {string} tenantId
|
|
1901
|
+
* @param {*} [options] Override http request option.
|
|
1902
|
+
* @throws {RequiredError}
|
|
1903
|
+
*/
|
|
1904
|
+
tenantEnrollmentList: (tenantId_1, ...args_1) => __awaiter(this, [tenantId_1, ...args_1], void 0, function* (tenantId, options = {}) {
|
|
1905
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
1906
|
+
(0, common_1.assertParamExists)('tenantEnrollmentList', 'tenantId', tenantId);
|
|
1907
|
+
const localVarPath = `/tenant/{tenant_id}/enrollments`
|
|
1908
|
+
.replace('{tenant_id}', encodeURIComponent(String(tenantId)));
|
|
1909
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1910
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1911
|
+
let baseOptions;
|
|
1912
|
+
if (configuration) {
|
|
1913
|
+
baseOptions = configuration.baseOptions;
|
|
1914
|
+
}
|
|
1915
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1916
|
+
const localVarHeaderParameter = {};
|
|
1917
|
+
const localVarQueryParameter = {};
|
|
1918
|
+
// authentication accessToken required
|
|
1919
|
+
// http bearer authentication required
|
|
1920
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1921
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1922
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1923
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1924
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1925
|
+
return {
|
|
1926
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1927
|
+
options: localVarRequestOptions,
|
|
1928
|
+
};
|
|
1929
|
+
}),
|
|
1930
|
+
/**
|
|
1931
|
+
* Revokes a pending enrollment, so that its state no longer creates a wallet.
|
|
1932
|
+
* @param {string} tenantId
|
|
1933
|
+
* @param {string} enrollmentId
|
|
1934
|
+
* @param {*} [options] Override http request option.
|
|
1935
|
+
* @throws {RequiredError}
|
|
1936
|
+
*/
|
|
1937
|
+
tenantEnrollmentRevoke: (tenantId_1, enrollmentId_1, ...args_1) => __awaiter(this, [tenantId_1, enrollmentId_1, ...args_1], void 0, function* (tenantId, enrollmentId, options = {}) {
|
|
1938
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
1939
|
+
(0, common_1.assertParamExists)('tenantEnrollmentRevoke', 'tenantId', tenantId);
|
|
1940
|
+
// verify required parameter 'enrollmentId' is not null or undefined
|
|
1941
|
+
(0, common_1.assertParamExists)('tenantEnrollmentRevoke', 'enrollmentId', enrollmentId);
|
|
1942
|
+
const localVarPath = `/tenant/{tenant_id}/enrollments/{enrollment_id}`
|
|
1943
|
+
.replace('{tenant_id}', encodeURIComponent(String(tenantId)))
|
|
1944
|
+
.replace('{enrollment_id}', encodeURIComponent(String(enrollmentId)));
|
|
1945
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1946
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1947
|
+
let baseOptions;
|
|
1948
|
+
if (configuration) {
|
|
1949
|
+
baseOptions = configuration.baseOptions;
|
|
1950
|
+
}
|
|
1951
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1952
|
+
const localVarHeaderParameter = {};
|
|
1953
|
+
const localVarQueryParameter = {};
|
|
1954
|
+
// authentication accessToken required
|
|
1955
|
+
// http bearer authentication required
|
|
1956
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1957
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1958
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1959
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1960
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1961
|
+
return {
|
|
1962
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1963
|
+
options: localVarRequestOptions,
|
|
1964
|
+
};
|
|
1965
|
+
}),
|
|
1695
1966
|
/**
|
|
1696
1967
|
* Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
|
|
1697
1968
|
* @param {string} walletId
|
|
@@ -2155,16 +2426,90 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2155
2426
|
};
|
|
2156
2427
|
}),
|
|
2157
2428
|
/**
|
|
2158
|
-
*
|
|
2429
|
+
* Removes a UNTP link from the wallet\'s DID document and stops serving its credential.
|
|
2159
2430
|
* @param {string} walletId
|
|
2160
|
-
* @param {
|
|
2431
|
+
* @param {string} serviceId The service id of the link, in full (`<did>#<fragment>`) or as its fragment.
|
|
2161
2432
|
* @param {*} [options] Override http request option.
|
|
2162
2433
|
* @throws {RequiredError}
|
|
2163
2434
|
*/
|
|
2164
|
-
|
|
2435
|
+
untpLinkDelete: (walletId_1, serviceId_1, ...args_1) => __awaiter(this, [walletId_1, serviceId_1, ...args_1], void 0, function* (walletId, serviceId, options = {}) {
|
|
2165
2436
|
// verify required parameter 'walletId' is not null or undefined
|
|
2166
|
-
(0, common_1.assertParamExists)('
|
|
2167
|
-
|
|
2437
|
+
(0, common_1.assertParamExists)('untpLinkDelete', 'walletId', walletId);
|
|
2438
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
2439
|
+
(0, common_1.assertParamExists)('untpLinkDelete', 'serviceId', serviceId);
|
|
2440
|
+
const localVarPath = `/untp/links/{service_id}`
|
|
2441
|
+
.replace('{service_id}', encodeURIComponent(String(serviceId)));
|
|
2442
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2443
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2444
|
+
let baseOptions;
|
|
2445
|
+
if (configuration) {
|
|
2446
|
+
baseOptions = configuration.baseOptions;
|
|
2447
|
+
}
|
|
2448
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2449
|
+
const localVarHeaderParameter = {};
|
|
2450
|
+
const localVarQueryParameter = {};
|
|
2451
|
+
// authentication accessToken required
|
|
2452
|
+
// http bearer authentication required
|
|
2453
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2454
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2455
|
+
if (walletId != null) {
|
|
2456
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
2457
|
+
}
|
|
2458
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2460
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2461
|
+
return {
|
|
2462
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2463
|
+
options: localVarRequestOptions,
|
|
2464
|
+
};
|
|
2465
|
+
}),
|
|
2466
|
+
/**
|
|
2467
|
+
* The UNTP links the wallet\'s DID document advertises for its published credentials.
|
|
2468
|
+
* @param {string} walletId
|
|
2469
|
+
* @param {*} [options] Override http request option.
|
|
2470
|
+
* @throws {RequiredError}
|
|
2471
|
+
*/
|
|
2472
|
+
untpLinkList: (walletId_1, ...args_1) => __awaiter(this, [walletId_1, ...args_1], void 0, function* (walletId, options = {}) {
|
|
2473
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2474
|
+
(0, common_1.assertParamExists)('untpLinkList', 'walletId', walletId);
|
|
2475
|
+
const localVarPath = `/untp/links`;
|
|
2476
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2477
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2478
|
+
let baseOptions;
|
|
2479
|
+
if (configuration) {
|
|
2480
|
+
baseOptions = configuration.baseOptions;
|
|
2481
|
+
}
|
|
2482
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2483
|
+
const localVarHeaderParameter = {};
|
|
2484
|
+
const localVarQueryParameter = {};
|
|
2485
|
+
// authentication accessToken required
|
|
2486
|
+
// http bearer authentication required
|
|
2487
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2488
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2489
|
+
if (walletId != null) {
|
|
2490
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
2491
|
+
}
|
|
2492
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2493
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2494
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2495
|
+
return {
|
|
2496
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2497
|
+
options: localVarRequestOptions,
|
|
2498
|
+
};
|
|
2499
|
+
}),
|
|
2500
|
+
/**
|
|
2501
|
+
* Publishes an issued, valid W3C VCDM credential as a UNTP link: it is served at its public URL (`/api/v1/{wallet_id}/vc/{credential_id}`) and the wallet\'s DID document gets a service of the link type, whose endpoint is a link target to that URL. Publishing a credential again as the same link type returns the existing link. The wallet\'s DID document must be one it hosts (a self-hosted did:web, or an EBSI DID).
|
|
2502
|
+
* @param {string} walletId
|
|
2503
|
+
* @param {UntpLinkPublishRequest} untpLinkPublishRequest
|
|
2504
|
+
* @param {*} [options] Override http request option.
|
|
2505
|
+
* @throws {RequiredError}
|
|
2506
|
+
*/
|
|
2507
|
+
untpLinkPublish: (walletId_1, untpLinkPublishRequest_1, ...args_1) => __awaiter(this, [walletId_1, untpLinkPublishRequest_1, ...args_1], void 0, function* (walletId, untpLinkPublishRequest, options = {}) {
|
|
2508
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2509
|
+
(0, common_1.assertParamExists)('untpLinkPublish', 'walletId', walletId);
|
|
2510
|
+
// verify required parameter 'untpLinkPublishRequest' is not null or undefined
|
|
2511
|
+
(0, common_1.assertParamExists)('untpLinkPublish', 'untpLinkPublishRequest', untpLinkPublishRequest);
|
|
2512
|
+
const localVarPath = `/untp/links`;
|
|
2168
2513
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2169
2514
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2170
2515
|
let baseOptions;
|
|
@@ -2185,25 +2530,59 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2185
2530
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2186
2531
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2187
2532
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2188
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2533
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(untpLinkPublishRequest, localVarRequestOptions, configuration);
|
|
2189
2534
|
return {
|
|
2190
2535
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2191
2536
|
options: localVarRequestOptions,
|
|
2192
2537
|
};
|
|
2193
2538
|
}),
|
|
2194
2539
|
/**
|
|
2195
|
-
*
|
|
2540
|
+
* Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet\'s own DID is one of them.
|
|
2196
2541
|
* @param {string} walletId
|
|
2197
|
-
* @param {string} did
|
|
2198
2542
|
* @param {*} [options] Override http request option.
|
|
2199
2543
|
* @throws {RequiredError}
|
|
2200
2544
|
*/
|
|
2201
|
-
|
|
2545
|
+
untpRegistryList: (walletId_1, ...args_1) => __awaiter(this, [walletId_1, ...args_1], void 0, function* (walletId, options = {}) {
|
|
2202
2546
|
// verify required parameter 'walletId' is not null or undefined
|
|
2203
|
-
(0, common_1.assertParamExists)('
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
const
|
|
2547
|
+
(0, common_1.assertParamExists)('untpRegistryList', 'walletId', walletId);
|
|
2548
|
+
const localVarPath = `/untp/registry`;
|
|
2549
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2550
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2551
|
+
let baseOptions;
|
|
2552
|
+
if (configuration) {
|
|
2553
|
+
baseOptions = configuration.baseOptions;
|
|
2554
|
+
}
|
|
2555
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2556
|
+
const localVarHeaderParameter = {};
|
|
2557
|
+
const localVarQueryParameter = {};
|
|
2558
|
+
// authentication accessToken required
|
|
2559
|
+
// http bearer authentication required
|
|
2560
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2561
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2562
|
+
if (walletId != null) {
|
|
2563
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
2564
|
+
}
|
|
2565
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2566
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2567
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2568
|
+
return {
|
|
2569
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2570
|
+
options: localVarRequestOptions,
|
|
2571
|
+
};
|
|
2572
|
+
}),
|
|
2573
|
+
/**
|
|
2574
|
+
* Verifies a credential, given raw or by URL, with the wallet\'s trust framework, and reports each check: the signature (with the key the issuer\'s identifier resolves to), the validity dates, and, unless turned off, the JSON-LD document (W3C VCDM 2.0), the status, the schema and the issuer\'s trust. A credential that fails is still `200`, with `verified: false`; `code` reuses the error codes of `/verifier/untp/resolve`. A `url` must be https, and is never fetched from a private, loopback or link-local address, so a localhost URL is refused too. It is fetched within 10 s, 5 MiB and 3 redirects on the same host, and only as a credential media type.
|
|
2575
|
+
* @param {string} walletId
|
|
2576
|
+
* @param {VerifierCredentialRequest} verifierCredentialRequest
|
|
2577
|
+
* @param {*} [options] Override http request option.
|
|
2578
|
+
* @throws {RequiredError}
|
|
2579
|
+
*/
|
|
2580
|
+
verifierCredentialVerify: (walletId_1, verifierCredentialRequest_1, ...args_1) => __awaiter(this, [walletId_1, verifierCredentialRequest_1, ...args_1], void 0, function* (walletId, verifierCredentialRequest, options = {}) {
|
|
2581
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2582
|
+
(0, common_1.assertParamExists)('verifierCredentialVerify', 'walletId', walletId);
|
|
2583
|
+
// verify required parameter 'verifierCredentialRequest' is not null or undefined
|
|
2584
|
+
(0, common_1.assertParamExists)('verifierCredentialVerify', 'verifierCredentialRequest', verifierCredentialRequest);
|
|
2585
|
+
const localVarPath = `/verifier/credential`;
|
|
2207
2586
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2208
2587
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2209
2588
|
let baseOptions;
|
|
@@ -2216,9 +2595,52 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2216
2595
|
// authentication accessToken required
|
|
2217
2596
|
// http bearer authentication required
|
|
2218
2597
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2598
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2599
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2600
|
+
if (walletId != null) {
|
|
2601
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
2602
|
+
}
|
|
2603
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2604
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2605
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2606
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifierCredentialRequest, localVarRequestOptions, configuration);
|
|
2607
|
+
return {
|
|
2608
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2609
|
+
options: localVarRequestOptions,
|
|
2610
|
+
};
|
|
2611
|
+
}),
|
|
2612
|
+
/**
|
|
2613
|
+
* Verifies whether the wallet\'s trust framework trusts a DID, beyond resolving its key. A UNTP wallet requires a Digital Identity Anchor (UNTP 0.8.0, a profile of W3C Recognized Entities): the DID\'s DIA, found through its DID document\'s `https://test.uncefact.org/vocabulary/link-type/dia` service (or `untp:dia`), or a W3C `WhoisService`, is verified (signature, validity, status, the UNTP profile) and chained up, DIA by DIA, to a registrar the wallet trusts: its own (`UNTP.trustedRegistrars`), then the deployment\'s (`untp.dia.trustedRegistrars`, `untp.dia.registryUrl`). A registrar is itself trusted without a DIA. The details are in `untp`. A DID that is not trusted is still `200`, with `trusted: false` and the reasons in `failures`. With `credentialType`, the issuer policy for that credential type is evaluated too. A wallet whose trust framework does not verify DIDs is `422`.
|
|
2614
|
+
* @param {string} walletId
|
|
2615
|
+
* @param {string} did The DID to verify.
|
|
2616
|
+
* @param {string} [credentialType] Evaluate the issuer policy of this credential type, e.g. `DigitalProductPassport`.
|
|
2617
|
+
* @param {*} [options] Override http request option.
|
|
2618
|
+
* @throws {RequiredError}
|
|
2619
|
+
*/
|
|
2620
|
+
verifierDidVerify: (walletId_1, did_1, credentialType_1, ...args_1) => __awaiter(this, [walletId_1, did_1, credentialType_1, ...args_1], void 0, function* (walletId, did, credentialType, options = {}) {
|
|
2621
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2622
|
+
(0, common_1.assertParamExists)('verifierDidVerify', 'walletId', walletId);
|
|
2623
|
+
// verify required parameter 'did' is not null or undefined
|
|
2624
|
+
(0, common_1.assertParamExists)('verifierDidVerify', 'did', did);
|
|
2625
|
+
const localVarPath = `/verifier/did`;
|
|
2626
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2627
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2628
|
+
let baseOptions;
|
|
2629
|
+
if (configuration) {
|
|
2630
|
+
baseOptions = configuration.baseOptions;
|
|
2631
|
+
}
|
|
2632
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2633
|
+
const localVarHeaderParameter = {};
|
|
2634
|
+
const localVarQueryParameter = {};
|
|
2635
|
+
// authentication accessToken required
|
|
2636
|
+
// http bearer authentication required
|
|
2637
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2219
2638
|
if (did !== undefined) {
|
|
2220
2639
|
localVarQueryParameter['did'] = did;
|
|
2221
2640
|
}
|
|
2641
|
+
if (credentialType !== undefined) {
|
|
2642
|
+
localVarQueryParameter['credentialType'] = credentialType;
|
|
2643
|
+
}
|
|
2222
2644
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2223
2645
|
if (walletId != null) {
|
|
2224
2646
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
@@ -2231,6 +2653,43 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2231
2653
|
options: localVarRequestOptions,
|
|
2232
2654
|
};
|
|
2233
2655
|
}),
|
|
2656
|
+
/**
|
|
2657
|
+
* Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
|
|
2658
|
+
* @param {string} walletId
|
|
2659
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
2660
|
+
* @param {*} [options] Override http request option.
|
|
2661
|
+
* @throws {RequiredError}
|
|
2662
|
+
*/
|
|
2663
|
+
verifierInitUrlCreate: (walletId_1, verifyInitRequest_1, ...args_1) => __awaiter(this, [walletId_1, verifyInitRequest_1, ...args_1], void 0, function* (walletId, verifyInitRequest, options = {}) {
|
|
2664
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2665
|
+
(0, common_1.assertParamExists)('verifierInitUrlCreate', 'walletId', walletId);
|
|
2666
|
+
const localVarPath = `/verifier/init`;
|
|
2667
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2668
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2669
|
+
let baseOptions;
|
|
2670
|
+
if (configuration) {
|
|
2671
|
+
baseOptions = configuration.baseOptions;
|
|
2672
|
+
}
|
|
2673
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2674
|
+
const localVarHeaderParameter = {};
|
|
2675
|
+
const localVarQueryParameter = {};
|
|
2676
|
+
// authentication accessToken required
|
|
2677
|
+
// http bearer authentication required
|
|
2678
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2679
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2680
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2681
|
+
if (walletId != null) {
|
|
2682
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
2683
|
+
}
|
|
2684
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2685
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2686
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2687
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyInitRequest, localVarRequestOptions, configuration);
|
|
2688
|
+
return {
|
|
2689
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2690
|
+
options: localVarRequestOptions,
|
|
2691
|
+
};
|
|
2692
|
+
}),
|
|
2234
2693
|
/**
|
|
2235
2694
|
* Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document Maximum size of the PDF document is 50 MB.
|
|
2236
2695
|
* @param {string} walletId
|
|
@@ -2290,6 +2749,101 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2290
2749
|
options: localVarRequestOptions,
|
|
2291
2750
|
};
|
|
2292
2751
|
}),
|
|
2752
|
+
/**
|
|
2753
|
+
* Renders a credential for a human with one of its `renderMethod` entries: a UNTP `RenderTemplate2024` (Handlebars, the output in its `mediaType`: `text/html`, the default, or `text/plain`) or a W3C `TemplateRenderMethod` of the `html` suite (a wrapper document to show in an `iframe` with `sandbox=\"allow-scripts\"` and `srcdoc`) or the `card` suite (a JSON card). By default the first method that can be rendered is used. A `signedVc` is verified (its signature, validity and status) before it is rendered, and `X-Credential-Verified` is `true`; one that fails is `422`. A `vc` is a credential document rendered as it is, with `X-Credential-Verified: false`. A credential with no render method that matches, or a method that cannot be rendered (`nfc`, a template of another `mediaType`, or an unknown type), is `422` with `no render method` or `render suite unsupported`; an invalid one is `422` with `invalid render method`, a template that cannot be fetched or does not match its digest `render template unavailable`, and one that fails or runs too long `render failed`. A remote template is fetched over https only, within 5 s and 1 MiB, and must match its `digestMultibase`. Rendering stops after 2 s or 1 MiB of output. A template that runs on past that still counts against the renderings the wallet runs at once (`render.maxConcurrent`); when none is free, the response is `503`.
|
|
2754
|
+
* @param {string} walletId
|
|
2755
|
+
* @param {VerifierRenderRequest} verifierRenderRequest
|
|
2756
|
+
* @param {*} [options] Override http request option.
|
|
2757
|
+
* @throws {RequiredError}
|
|
2758
|
+
*/
|
|
2759
|
+
verifierRender: (walletId_1, verifierRenderRequest_1, ...args_1) => __awaiter(this, [walletId_1, verifierRenderRequest_1, ...args_1], void 0, function* (walletId, verifierRenderRequest, options = {}) {
|
|
2760
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2761
|
+
(0, common_1.assertParamExists)('verifierRender', 'walletId', walletId);
|
|
2762
|
+
// verify required parameter 'verifierRenderRequest' is not null or undefined
|
|
2763
|
+
(0, common_1.assertParamExists)('verifierRender', 'verifierRenderRequest', verifierRenderRequest);
|
|
2764
|
+
const localVarPath = `/verifier/render`;
|
|
2765
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2766
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2767
|
+
let baseOptions;
|
|
2768
|
+
if (configuration) {
|
|
2769
|
+
baseOptions = configuration.baseOptions;
|
|
2770
|
+
}
|
|
2771
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2772
|
+
const localVarHeaderParameter = {};
|
|
2773
|
+
const localVarQueryParameter = {};
|
|
2774
|
+
// authentication accessToken required
|
|
2775
|
+
// http bearer authentication required
|
|
2776
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2777
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2778
|
+
localVarHeaderParameter['Accept'] = 'text/html,text/plain,application/json';
|
|
2779
|
+
if (walletId != null) {
|
|
2780
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
2781
|
+
}
|
|
2782
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2783
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2784
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2785
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifierRenderRequest, localVarRequestOptions, configuration);
|
|
2786
|
+
return {
|
|
2787
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2788
|
+
options: localVarRequestOptions,
|
|
2789
|
+
};
|
|
2790
|
+
}),
|
|
2791
|
+
/**
|
|
2792
|
+
* Resolves a DID into the RFC 9264 linkset of the UNTP links its DID document advertises and, with `fetch`, fetches the linked credentials and verifies them. A credential that fails is reported in `credentials` and `verification.failed`, with the response still 200: `verification.ok` is the verdict.
|
|
2793
|
+
* @param {string} walletId
|
|
2794
|
+
* @param {string} identifier The DID to resolve.
|
|
2795
|
+
* @param {string} [linkType] The link types to fetch, comma separated (e.g. `dpp,dcc`), or `all` (the default). The linkset uses the UNTP 0.8.0 relations: `dpp`, `linkset` for an identity resolver, and `https://test.uncefact.org/vocabulary/link-type/<type>` for the others. A DID document\'s UNTP 0.7 service types (`untp:dia`, bare `dcc`) are read as the same link types.
|
|
2796
|
+
* @param {boolean} [fetch] Fetch and verify the linked credentials.
|
|
2797
|
+
* @param {boolean} [verify] Verify the fetched credentials\' dates, status and schema, besides their signature.
|
|
2798
|
+
* @param {boolean} [verifyIssuer] Also verify whether the wallet\'s trust framework trusts the DID, as `/verifier/did` does, and report it as `issuer`. A wallet whose trust framework does not verify DIDs reports no `issuer`, and is `422` when `verifyIssuer` is set explicitly. A UNTP wallet enforces the anchor on every signature anyway; this reports it.
|
|
2799
|
+
* @param {*} [options] Override http request option.
|
|
2800
|
+
* @throws {RequiredError}
|
|
2801
|
+
*/
|
|
2802
|
+
verifierUntpResolve: (walletId_1, identifier_1, linkType_1, fetch_1, verify_1, verifyIssuer_1, ...args_1) => __awaiter(this, [walletId_1, identifier_1, linkType_1, fetch_1, verify_1, verifyIssuer_1, ...args_1], void 0, function* (walletId, identifier, linkType, fetch, verify, verifyIssuer, options = {}) {
|
|
2803
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2804
|
+
(0, common_1.assertParamExists)('verifierUntpResolve', 'walletId', walletId);
|
|
2805
|
+
// verify required parameter 'identifier' is not null or undefined
|
|
2806
|
+
(0, common_1.assertParamExists)('verifierUntpResolve', 'identifier', identifier);
|
|
2807
|
+
const localVarPath = `/verifier/untp/resolve`;
|
|
2808
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2809
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2810
|
+
let baseOptions;
|
|
2811
|
+
if (configuration) {
|
|
2812
|
+
baseOptions = configuration.baseOptions;
|
|
2813
|
+
}
|
|
2814
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2815
|
+
const localVarHeaderParameter = {};
|
|
2816
|
+
const localVarQueryParameter = {};
|
|
2817
|
+
// authentication accessToken required
|
|
2818
|
+
// http bearer authentication required
|
|
2819
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2820
|
+
if (identifier !== undefined) {
|
|
2821
|
+
localVarQueryParameter['identifier'] = identifier;
|
|
2822
|
+
}
|
|
2823
|
+
if (linkType !== undefined) {
|
|
2824
|
+
localVarQueryParameter['linkType'] = linkType;
|
|
2825
|
+
}
|
|
2826
|
+
if (fetch !== undefined) {
|
|
2827
|
+
localVarQueryParameter['fetch'] = fetch;
|
|
2828
|
+
}
|
|
2829
|
+
if (verify !== undefined) {
|
|
2830
|
+
localVarQueryParameter['verify'] = verify;
|
|
2831
|
+
}
|
|
2832
|
+
if (verifyIssuer !== undefined) {
|
|
2833
|
+
localVarQueryParameter['verifyIssuer'] = verifyIssuer;
|
|
2834
|
+
}
|
|
2835
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2836
|
+
if (walletId != null) {
|
|
2837
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
2838
|
+
}
|
|
2839
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2840
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2841
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2842
|
+
return {
|
|
2843
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2844
|
+
options: localVarRequestOptions,
|
|
2845
|
+
};
|
|
2846
|
+
}),
|
|
2293
2847
|
/**
|
|
2294
2848
|
* Creates a new wallet for the authenticated client.
|
|
2295
2849
|
* @param {WalletCreatePayload} [walletCreatePayload]
|
|
@@ -2455,10 +3009,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2455
3009
|
* Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
|
|
2456
3010
|
* @param {string} [ownerId]
|
|
2457
3011
|
* @param {string} [searchName] Wallet name to search using \"begins-with\" filter
|
|
3012
|
+
* @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
|
|
2458
3013
|
* @param {*} [options] Override http request option.
|
|
2459
3014
|
* @throws {RequiredError}
|
|
2460
3015
|
*/
|
|
2461
|
-
walletList: (ownerId_1, searchName_1, ...args_1) => __awaiter(this, [ownerId_1, searchName_1, ...args_1], void 0, function* (ownerId, searchName, options = {}) {
|
|
3016
|
+
walletList: (ownerId_1, searchName_1, tenantId_1, ...args_1) => __awaiter(this, [ownerId_1, searchName_1, tenantId_1, ...args_1], void 0, function* (ownerId, searchName, tenantId, options = {}) {
|
|
2462
3017
|
const localVarPath = `/wallets`;
|
|
2463
3018
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2464
3019
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2478,6 +3033,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2478
3033
|
if (searchName !== undefined) {
|
|
2479
3034
|
localVarQueryParameter['searchName'] = searchName;
|
|
2480
3035
|
}
|
|
3036
|
+
if (tenantId !== undefined) {
|
|
3037
|
+
localVarQueryParameter['tenantId'] = tenantId;
|
|
3038
|
+
}
|
|
2481
3039
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2482
3040
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2483
3041
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2624,7 +3182,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2624
3182
|
};
|
|
2625
3183
|
}),
|
|
2626
3184
|
/**
|
|
2627
|
-
* Update wallet metadata and configuration.
|
|
3185
|
+
* Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
|
|
2628
3186
|
* @param {string} walletId
|
|
2629
3187
|
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
2630
3188
|
* @param {*} [options] Override http request option.
|
|
@@ -3498,16 +4056,34 @@ const DefaultApiFp = function (configuration) {
|
|
|
3498
4056
|
* Prepares created Verifiable Credential draft for its issuance for a specific client.
|
|
3499
4057
|
* @param {string} credentialId
|
|
3500
4058
|
* @param {string} walletId
|
|
3501
|
-
* @param {CredentialIssuanceInit} [credentialIssuanceInit]
|
|
4059
|
+
* @param {CredentialIssuanceInit} [credentialIssuanceInit]
|
|
4060
|
+
* @param {*} [options] Override http request option.
|
|
4061
|
+
* @throws {RequiredError}
|
|
4062
|
+
*/
|
|
4063
|
+
credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options) {
|
|
4064
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4065
|
+
var _a, _b, _c;
|
|
4066
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options);
|
|
4067
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4068
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialIssuanceInit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4069
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4070
|
+
});
|
|
4071
|
+
},
|
|
4072
|
+
/**
|
|
4073
|
+
* Issues a W3C VCDM draft as a credential of the wallet itself, with no holder and no OID4VCI: for a credential that is published rather than handed to anyone, such as a UNTP Digital Product Passport (EN 18246 Annex B.5). The credential gets the wallet\'s status list entry and envelope, and is stored issued on the same record. With `publish`, it is then published as a UNTP link, like `POST /untp/links`; if that fails the response is `502` with the issued `credentialId`, and publishing is retried with `POST /untp/links`.
|
|
4074
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
4075
|
+
* @param {string} walletId
|
|
4076
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
4077
|
+
* @param {CredentialIssueDirectRequest} [credentialIssueDirectRequest]
|
|
3502
4078
|
* @param {*} [options] Override http request option.
|
|
3503
4079
|
* @throws {RequiredError}
|
|
3504
4080
|
*/
|
|
3505
|
-
|
|
4081
|
+
credentialIssueDirect(credentialId, walletId, idempotencyKey, credentialIssueDirectRequest, options) {
|
|
3506
4082
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3507
4083
|
var _a, _b, _c;
|
|
3508
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4084
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssueDirect(credentialId, walletId, idempotencyKey, credentialIssueDirectRequest, options);
|
|
3509
4085
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3510
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
4086
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialIssueDirect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3511
4087
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3512
4088
|
});
|
|
3513
4089
|
},
|
|
@@ -3603,6 +4179,41 @@ const DefaultApiFp = function (configuration) {
|
|
|
3603
4179
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3604
4180
|
});
|
|
3605
4181
|
},
|
|
4182
|
+
/**
|
|
4183
|
+
* Renders a W3C VCDM credential of the wallet with one of its `renderMethod` entries, as `POST /verifier/render` does. HTML is served with a `Content-Security-Policy` that sandboxes it.
|
|
4184
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
4185
|
+
* @param {string} walletId
|
|
4186
|
+
* @param {number} [index] The index of the render method to use, in the credential\'s `renderMethod`.
|
|
4187
|
+
* @param {RenderSuite} [suite] Use the first render method of this suite.
|
|
4188
|
+
* @param {string} [mediaQuery] Use the first render method with exactly this `mediaQuery`.
|
|
4189
|
+
* @param {*} [options] Override http request option.
|
|
4190
|
+
* @throws {RequiredError}
|
|
4191
|
+
*/
|
|
4192
|
+
credentialRender(credentialId, walletId, index, suite, mediaQuery, options) {
|
|
4193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4194
|
+
var _a, _b, _c;
|
|
4195
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRender(credentialId, walletId, index, suite, mediaQuery, options);
|
|
4196
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4197
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialRender']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4198
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4199
|
+
});
|
|
4200
|
+
},
|
|
4201
|
+
/**
|
|
4202
|
+
* Lists the render methods of a W3C VCDM credential of the wallet, for a client to pick one by its media query: media queries are not evaluated by the wallet.
|
|
4203
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
4204
|
+
* @param {string} walletId
|
|
4205
|
+
* @param {*} [options] Override http request option.
|
|
4206
|
+
* @throws {RequiredError}
|
|
4207
|
+
*/
|
|
4208
|
+
credentialRenderMethods(credentialId, walletId, options) {
|
|
4209
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4210
|
+
var _a, _b, _c;
|
|
4211
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRenderMethods(credentialId, walletId, options);
|
|
4212
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4213
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialRenderMethods']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4214
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4215
|
+
});
|
|
4216
|
+
},
|
|
3606
4217
|
/**
|
|
3607
4218
|
* Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
|
|
3608
4219
|
* @param {string} walletId
|
|
@@ -3620,16 +4231,17 @@ const DefaultApiFp = function (configuration) {
|
|
|
3620
4231
|
});
|
|
3621
4232
|
},
|
|
3622
4233
|
/**
|
|
3623
|
-
* Revoke a specific Verifiable Credential
|
|
4234
|
+
* Revoke a specific Verifiable Credential. A credential published as a UNTP link stays published: a verifier following its link finds it and verifies it as revoked. `DELETE /untp/links/{service_id}` unpublishes it.
|
|
3624
4235
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
3625
4236
|
* @param {string} walletId
|
|
4237
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
3626
4238
|
* @param {*} [options] Override http request option.
|
|
3627
4239
|
* @throws {RequiredError}
|
|
3628
4240
|
*/
|
|
3629
|
-
credentialRevoke(credentialId, walletId, options) {
|
|
4241
|
+
credentialRevoke(credentialId, walletId, idempotencyKey, options) {
|
|
3630
4242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3631
4243
|
var _a, _b, _c;
|
|
3632
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRevoke(credentialId, walletId, options);
|
|
4244
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRevoke(credentialId, walletId, idempotencyKey, options);
|
|
3633
4245
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3634
4246
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialRevoke']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3635
4247
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3699,128 +4311,96 @@ const DefaultApiFp = function (configuration) {
|
|
|
3699
4311
|
});
|
|
3700
4312
|
},
|
|
3701
4313
|
/**
|
|
3702
|
-
*
|
|
3703
|
-
* @param {*} [options] Override http request option.
|
|
3704
|
-
* @throws {RequiredError}
|
|
3705
|
-
*/
|
|
3706
|
-
healthCheck(options) {
|
|
3707
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3708
|
-
var _a, _b, _c;
|
|
3709
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.healthCheck(options);
|
|
3710
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3711
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.healthCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3712
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3713
|
-
});
|
|
3714
|
-
},
|
|
3715
|
-
/**
|
|
3716
|
-
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
3717
|
-
* @param {string} walletId
|
|
3718
|
-
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
3719
|
-
* @param {*} [options] Override http request option.
|
|
3720
|
-
* @throws {RequiredError}
|
|
3721
|
-
*/
|
|
3722
|
-
holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
|
|
3723
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3724
|
-
var _a, _b, _c;
|
|
3725
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options);
|
|
3726
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3727
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderCreateAuthOffer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3728
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3729
|
-
});
|
|
3730
|
-
},
|
|
3731
|
-
/**
|
|
3732
|
-
* Completes a credential presentation flow: submits the selected credentials to the verifier after the holder\'s explicit consent. The `interaction_id` is obtained from `HolderPresentPassAuthInfo`.
|
|
4314
|
+
* Returns the wallet\'s own DID document, as published at `/{wallet_id}/did.json` for a self-hosted did:web.
|
|
3733
4315
|
* @param {string} walletId
|
|
3734
|
-
* @param {string} interactionId
|
|
3735
|
-
* @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
|
|
3736
4316
|
* @param {*} [options] Override http request option.
|
|
3737
4317
|
* @throws {RequiredError}
|
|
3738
4318
|
*/
|
|
3739
|
-
|
|
4319
|
+
didDocumentLocalGet(walletId, options) {
|
|
3740
4320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3741
4321
|
var _a, _b, _c;
|
|
3742
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4322
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didDocumentLocalGet(walletId, options);
|
|
3743
4323
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3744
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
4324
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didDocumentLocalGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3745
4325
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3746
4326
|
});
|
|
3747
4327
|
},
|
|
3748
4328
|
/**
|
|
3749
|
-
*
|
|
4329
|
+
* Changes the wallet\'s DID document: removes the services in `removeServiceIds`, adds the services in `addServices` (a service with the same id is replaced), and, when `alsoKnownAs` is set, replaces the subject\'s other identifiers (an empty list removes them). UNTP identifies an entity\'s Digital Identity Anchor with a service of type `https://test.uncefact.org/vocabulary/link-type/dia` (`untp:dia` in UNTP 0.7) and registered identifiers with `alsoKnownAs`. Only a self-hosted did:web document can be changed; services of an EBSI DID are written to the EBSI DID registry, which does not take `alsoKnownAs`.
|
|
3750
4330
|
* @param {string} walletId
|
|
3751
|
-
* @param {
|
|
4331
|
+
* @param {DidDocumentPatch} didDocumentPatch
|
|
3752
4332
|
* @param {*} [options] Override http request option.
|
|
3753
4333
|
* @throws {RequiredError}
|
|
3754
4334
|
*/
|
|
3755
|
-
|
|
4335
|
+
didDocumentPatch(walletId, didDocumentPatch, options) {
|
|
3756
4336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3757
4337
|
var _a, _b, _c;
|
|
3758
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4338
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didDocumentPatch(walletId, didDocumentPatch, options);
|
|
3759
4339
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3760
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
4340
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didDocumentPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3761
4341
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3762
4342
|
});
|
|
3763
4343
|
},
|
|
3764
4344
|
/**
|
|
3765
|
-
*
|
|
3766
|
-
* @param {string} walletId
|
|
3767
|
-
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
4345
|
+
* Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
|
|
3768
4346
|
* @param {*} [options] Override http request option.
|
|
3769
4347
|
* @throws {RequiredError}
|
|
3770
4348
|
*/
|
|
3771
|
-
|
|
4349
|
+
healthCheck(options) {
|
|
3772
4350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3773
4351
|
var _a, _b, _c;
|
|
3774
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4352
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.healthCheck(options);
|
|
3775
4353
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3776
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
4354
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.healthCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3777
4355
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3778
4356
|
});
|
|
3779
4357
|
},
|
|
3780
4358
|
/**
|
|
3781
|
-
*
|
|
4359
|
+
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
3782
4360
|
* @param {string} walletId
|
|
3783
|
-
* @param {
|
|
4361
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
3784
4362
|
* @param {*} [options] Override http request option.
|
|
3785
4363
|
* @throws {RequiredError}
|
|
3786
4364
|
*/
|
|
3787
|
-
|
|
4365
|
+
holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
|
|
3788
4366
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3789
4367
|
var _a, _b, _c;
|
|
3790
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4368
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options);
|
|
3791
4369
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3792
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
4370
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderCreateAuthOffer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3793
4371
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3794
4372
|
});
|
|
3795
4373
|
},
|
|
3796
4374
|
/**
|
|
3797
|
-
*
|
|
4375
|
+
* Completes a credential presentation flow: submits the selected credentials to the verifier after the holder\'s explicit consent. The `interaction_id` is obtained from `HolderPresentPassAuthInfo`.
|
|
3798
4376
|
* @param {string} walletId
|
|
3799
|
-
* @param {string}
|
|
4377
|
+
* @param {string} interactionId
|
|
4378
|
+
* @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
|
|
3800
4379
|
* @param {*} [options] Override http request option.
|
|
3801
4380
|
* @throws {RequiredError}
|
|
3802
4381
|
*/
|
|
3803
|
-
|
|
4382
|
+
holderCredentialsPresentAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options) {
|
|
3804
4383
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3805
4384
|
var _a, _b, _c;
|
|
3806
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4385
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCredentialsPresentAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options);
|
|
3807
4386
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3808
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
4387
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderCredentialsPresentAfterConsent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3809
4388
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3810
4389
|
});
|
|
3811
4390
|
},
|
|
3812
4391
|
/**
|
|
3813
|
-
*
|
|
4392
|
+
* Responds to an ID token request
|
|
3814
4393
|
* @param {string} walletId
|
|
4394
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
3815
4395
|
* @param {*} [options] Override http request option.
|
|
3816
4396
|
* @throws {RequiredError}
|
|
3817
4397
|
*/
|
|
3818
|
-
|
|
4398
|
+
holderIdTokenSend(walletId, idTokenSendRequest, options) {
|
|
3819
4399
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3820
4400
|
var _a, _b, _c;
|
|
3821
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4401
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderIdTokenSend(walletId, idTokenSendRequest, options);
|
|
3822
4402
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3823
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
4403
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderIdTokenSend']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3824
4404
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3825
4405
|
});
|
|
3826
4406
|
},
|
|
@@ -3903,6 +4483,23 @@ const DefaultApiFp = function (configuration) {
|
|
|
3903
4483
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3904
4484
|
});
|
|
3905
4485
|
},
|
|
4486
|
+
/**
|
|
4487
|
+
* Signs an opaque payload, such as an audit log entry, with the wallet\'s DID key, as a compact detached JWS with an unencoded payload (RFC 7515 Appendix F, RFC 7797: `b64: false`, `crit: [\"b64\"]`): `<protected header>..<signature>`. The signature is verified offline against the key in the wallet\'s DID document, with the payload put back. `typ` must be one the deployment allows, which no credential or presentation verifier accepts, so a signature from here never passes as a credential.
|
|
4488
|
+
* @param {string} walletId
|
|
4489
|
+
* @param {IssuerDetachedJwsSignRequest} issuerDetachedJwsSignRequest
|
|
4490
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
4491
|
+
* @param {*} [options] Override http request option.
|
|
4492
|
+
* @throws {RequiredError}
|
|
4493
|
+
*/
|
|
4494
|
+
issuerDetachedJwsSign(walletId, issuerDetachedJwsSignRequest, idempotencyKey, options) {
|
|
4495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4496
|
+
var _a, _b, _c;
|
|
4497
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerDetachedJwsSign(walletId, issuerDetachedJwsSignRequest, idempotencyKey, options);
|
|
4498
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4499
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerDetachedJwsSign']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4500
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4501
|
+
});
|
|
4502
|
+
},
|
|
3906
4503
|
/**
|
|
3907
4504
|
* Generates an authorized credential offer URL for the holder to initiate the credential issuance flow. The resulting offer URL is typically presented as a QR code or deep link. If `wmpEntityId` is provided, the offer is delivered directly via WMP and 204 is returned.
|
|
3908
4505
|
* @param {string} walletId
|
|
@@ -4018,6 +4615,69 @@ const DefaultApiFp = function (configuration) {
|
|
|
4018
4615
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4019
4616
|
});
|
|
4020
4617
|
},
|
|
4618
|
+
/**
|
|
4619
|
+
* Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
|
|
4620
|
+
* @param {string} tenantId
|
|
4621
|
+
* @param {string} state The enrollment state from TenantEnrollmentInit.
|
|
4622
|
+
* @param {*} [options] Override http request option.
|
|
4623
|
+
* @throws {RequiredError}
|
|
4624
|
+
*/
|
|
4625
|
+
tenantEnrollmentEnroll(tenantId, state, options) {
|
|
4626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4627
|
+
var _a, _b, _c;
|
|
4628
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tenantEnrollmentEnroll(tenantId, state, options);
|
|
4629
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4630
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tenantEnrollmentEnroll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4631
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4632
|
+
});
|
|
4633
|
+
},
|
|
4634
|
+
/**
|
|
4635
|
+
* Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
|
|
4636
|
+
* @param {string} tenantId
|
|
4637
|
+
* @param {EnrollmentInitPayload} enrollmentInitPayload
|
|
4638
|
+
* @param {*} [options] Override http request option.
|
|
4639
|
+
* @throws {RequiredError}
|
|
4640
|
+
*/
|
|
4641
|
+
tenantEnrollmentInit(tenantId, enrollmentInitPayload, options) {
|
|
4642
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4643
|
+
var _a, _b, _c;
|
|
4644
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tenantEnrollmentInit(tenantId, enrollmentInitPayload, options);
|
|
4645
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4646
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tenantEnrollmentInit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4647
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4648
|
+
});
|
|
4649
|
+
},
|
|
4650
|
+
/**
|
|
4651
|
+
* Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
|
|
4652
|
+
* @param {string} tenantId
|
|
4653
|
+
* @param {*} [options] Override http request option.
|
|
4654
|
+
* @throws {RequiredError}
|
|
4655
|
+
*/
|
|
4656
|
+
tenantEnrollmentList(tenantId, options) {
|
|
4657
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4658
|
+
var _a, _b, _c;
|
|
4659
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tenantEnrollmentList(tenantId, options);
|
|
4660
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4661
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tenantEnrollmentList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4662
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4663
|
+
});
|
|
4664
|
+
},
|
|
4665
|
+
/**
|
|
4666
|
+
* Revokes a pending enrollment, so that its state no longer creates a wallet.
|
|
4667
|
+
* @param {string} tenantId
|
|
4668
|
+
* @param {string} enrollmentId
|
|
4669
|
+
* @param {*} [options] Override http request option.
|
|
4670
|
+
* @throws {RequiredError}
|
|
4671
|
+
*/
|
|
4672
|
+
tenantEnrollmentRevoke(tenantId, enrollmentId, options) {
|
|
4673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4674
|
+
var _a, _b, _c;
|
|
4675
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tenantEnrollmentRevoke(tenantId, enrollmentId, options);
|
|
4676
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4677
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tenantEnrollmentRevoke']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4678
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4679
|
+
});
|
|
4680
|
+
},
|
|
4021
4681
|
/**
|
|
4022
4682
|
* Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
|
|
4023
4683
|
* @param {string} walletId
|
|
@@ -4222,34 +4882,113 @@ const DefaultApiFp = function (configuration) {
|
|
|
4222
4882
|
});
|
|
4223
4883
|
},
|
|
4224
4884
|
/**
|
|
4225
|
-
*
|
|
4885
|
+
* Removes a UNTP link from the wallet\'s DID document and stops serving its credential.
|
|
4226
4886
|
* @param {string} walletId
|
|
4227
|
-
* @param {
|
|
4887
|
+
* @param {string} serviceId The service id of the link, in full (`<did>#<fragment>`) or as its fragment.
|
|
4228
4888
|
* @param {*} [options] Override http request option.
|
|
4229
4889
|
* @throws {RequiredError}
|
|
4230
4890
|
*/
|
|
4231
|
-
|
|
4891
|
+
untpLinkDelete(walletId, serviceId, options) {
|
|
4232
4892
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4233
4893
|
var _a, _b, _c;
|
|
4234
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4894
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.untpLinkDelete(walletId, serviceId, options);
|
|
4235
4895
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4236
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
4896
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.untpLinkDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4897
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4898
|
+
});
|
|
4899
|
+
},
|
|
4900
|
+
/**
|
|
4901
|
+
* The UNTP links the wallet\'s DID document advertises for its published credentials.
|
|
4902
|
+
* @param {string} walletId
|
|
4903
|
+
* @param {*} [options] Override http request option.
|
|
4904
|
+
* @throws {RequiredError}
|
|
4905
|
+
*/
|
|
4906
|
+
untpLinkList(walletId, options) {
|
|
4907
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4908
|
+
var _a, _b, _c;
|
|
4909
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.untpLinkList(walletId, options);
|
|
4910
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4911
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.untpLinkList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4912
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4913
|
+
});
|
|
4914
|
+
},
|
|
4915
|
+
/**
|
|
4916
|
+
* Publishes an issued, valid W3C VCDM credential as a UNTP link: it is served at its public URL (`/api/v1/{wallet_id}/vc/{credential_id}`) and the wallet\'s DID document gets a service of the link type, whose endpoint is a link target to that URL. Publishing a credential again as the same link type returns the existing link. The wallet\'s DID document must be one it hosts (a self-hosted did:web, or an EBSI DID).
|
|
4917
|
+
* @param {string} walletId
|
|
4918
|
+
* @param {UntpLinkPublishRequest} untpLinkPublishRequest
|
|
4919
|
+
* @param {*} [options] Override http request option.
|
|
4920
|
+
* @throws {RequiredError}
|
|
4921
|
+
*/
|
|
4922
|
+
untpLinkPublish(walletId, untpLinkPublishRequest, options) {
|
|
4923
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4924
|
+
var _a, _b, _c;
|
|
4925
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.untpLinkPublish(walletId, untpLinkPublishRequest, options);
|
|
4926
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4927
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.untpLinkPublish']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4928
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4929
|
+
});
|
|
4930
|
+
},
|
|
4931
|
+
/**
|
|
4932
|
+
* Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet\'s own DID is one of them.
|
|
4933
|
+
* @param {string} walletId
|
|
4934
|
+
* @param {*} [options] Override http request option.
|
|
4935
|
+
* @throws {RequiredError}
|
|
4936
|
+
*/
|
|
4937
|
+
untpRegistryList(walletId, options) {
|
|
4938
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4939
|
+
var _a, _b, _c;
|
|
4940
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.untpRegistryList(walletId, options);
|
|
4941
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4942
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.untpRegistryList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4943
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4944
|
+
});
|
|
4945
|
+
},
|
|
4946
|
+
/**
|
|
4947
|
+
* Verifies a credential, given raw or by URL, with the wallet\'s trust framework, and reports each check: the signature (with the key the issuer\'s identifier resolves to), the validity dates, and, unless turned off, the JSON-LD document (W3C VCDM 2.0), the status, the schema and the issuer\'s trust. A credential that fails is still `200`, with `verified: false`; `code` reuses the error codes of `/verifier/untp/resolve`. A `url` must be https, and is never fetched from a private, loopback or link-local address, so a localhost URL is refused too. It is fetched within 10 s, 5 MiB and 3 redirects on the same host, and only as a credential media type.
|
|
4948
|
+
* @param {string} walletId
|
|
4949
|
+
* @param {VerifierCredentialRequest} verifierCredentialRequest
|
|
4950
|
+
* @param {*} [options] Override http request option.
|
|
4951
|
+
* @throws {RequiredError}
|
|
4952
|
+
*/
|
|
4953
|
+
verifierCredentialVerify(walletId, verifierCredentialRequest, options) {
|
|
4954
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4955
|
+
var _a, _b, _c;
|
|
4956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierCredentialVerify(walletId, verifierCredentialRequest, options);
|
|
4957
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4958
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.verifierCredentialVerify']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4959
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4960
|
+
});
|
|
4961
|
+
},
|
|
4962
|
+
/**
|
|
4963
|
+
* Verifies whether the wallet\'s trust framework trusts a DID, beyond resolving its key. A UNTP wallet requires a Digital Identity Anchor (UNTP 0.8.0, a profile of W3C Recognized Entities): the DID\'s DIA, found through its DID document\'s `https://test.uncefact.org/vocabulary/link-type/dia` service (or `untp:dia`), or a W3C `WhoisService`, is verified (signature, validity, status, the UNTP profile) and chained up, DIA by DIA, to a registrar the wallet trusts: its own (`UNTP.trustedRegistrars`), then the deployment\'s (`untp.dia.trustedRegistrars`, `untp.dia.registryUrl`). A registrar is itself trusted without a DIA. The details are in `untp`. A DID that is not trusted is still `200`, with `trusted: false` and the reasons in `failures`. With `credentialType`, the issuer policy for that credential type is evaluated too. A wallet whose trust framework does not verify DIDs is `422`.
|
|
4964
|
+
* @param {string} walletId
|
|
4965
|
+
* @param {string} did The DID to verify.
|
|
4966
|
+
* @param {string} [credentialType] Evaluate the issuer policy of this credential type, e.g. `DigitalProductPassport`.
|
|
4967
|
+
* @param {*} [options] Override http request option.
|
|
4968
|
+
* @throws {RequiredError}
|
|
4969
|
+
*/
|
|
4970
|
+
verifierDidVerify(walletId, did, credentialType, options) {
|
|
4971
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4972
|
+
var _a, _b, _c;
|
|
4973
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierDidVerify(walletId, did, credentialType, options);
|
|
4974
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4975
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.verifierDidVerify']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4237
4976
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4238
4977
|
});
|
|
4239
4978
|
},
|
|
4240
4979
|
/**
|
|
4241
|
-
*
|
|
4980
|
+
* Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
|
|
4242
4981
|
* @param {string} walletId
|
|
4243
|
-
* @param {
|
|
4982
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
4244
4983
|
* @param {*} [options] Override http request option.
|
|
4245
4984
|
* @throws {RequiredError}
|
|
4246
4985
|
*/
|
|
4247
|
-
|
|
4986
|
+
verifierInitUrlCreate(walletId, verifyInitRequest, options) {
|
|
4248
4987
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4249
4988
|
var _a, _b, _c;
|
|
4250
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4989
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierInitUrlCreate(walletId, verifyInitRequest, options);
|
|
4251
4990
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4252
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
4991
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.verifierInitUrlCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4253
4992
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4254
4993
|
});
|
|
4255
4994
|
},
|
|
@@ -4273,6 +5012,42 @@ const DefaultApiFp = function (configuration) {
|
|
|
4273
5012
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4274
5013
|
});
|
|
4275
5014
|
},
|
|
5015
|
+
/**
|
|
5016
|
+
* Renders a credential for a human with one of its `renderMethod` entries: a UNTP `RenderTemplate2024` (Handlebars, the output in its `mediaType`: `text/html`, the default, or `text/plain`) or a W3C `TemplateRenderMethod` of the `html` suite (a wrapper document to show in an `iframe` with `sandbox=\"allow-scripts\"` and `srcdoc`) or the `card` suite (a JSON card). By default the first method that can be rendered is used. A `signedVc` is verified (its signature, validity and status) before it is rendered, and `X-Credential-Verified` is `true`; one that fails is `422`. A `vc` is a credential document rendered as it is, with `X-Credential-Verified: false`. A credential with no render method that matches, or a method that cannot be rendered (`nfc`, a template of another `mediaType`, or an unknown type), is `422` with `no render method` or `render suite unsupported`; an invalid one is `422` with `invalid render method`, a template that cannot be fetched or does not match its digest `render template unavailable`, and one that fails or runs too long `render failed`. A remote template is fetched over https only, within 5 s and 1 MiB, and must match its `digestMultibase`. Rendering stops after 2 s or 1 MiB of output. A template that runs on past that still counts against the renderings the wallet runs at once (`render.maxConcurrent`); when none is free, the response is `503`.
|
|
5017
|
+
* @param {string} walletId
|
|
5018
|
+
* @param {VerifierRenderRequest} verifierRenderRequest
|
|
5019
|
+
* @param {*} [options] Override http request option.
|
|
5020
|
+
* @throws {RequiredError}
|
|
5021
|
+
*/
|
|
5022
|
+
verifierRender(walletId, verifierRenderRequest, options) {
|
|
5023
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5024
|
+
var _a, _b, _c;
|
|
5025
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierRender(walletId, verifierRenderRequest, options);
|
|
5026
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5027
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.verifierRender']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5028
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5029
|
+
});
|
|
5030
|
+
},
|
|
5031
|
+
/**
|
|
5032
|
+
* Resolves a DID into the RFC 9264 linkset of the UNTP links its DID document advertises and, with `fetch`, fetches the linked credentials and verifies them. A credential that fails is reported in `credentials` and `verification.failed`, with the response still 200: `verification.ok` is the verdict.
|
|
5033
|
+
* @param {string} walletId
|
|
5034
|
+
* @param {string} identifier The DID to resolve.
|
|
5035
|
+
* @param {string} [linkType] The link types to fetch, comma separated (e.g. `dpp,dcc`), or `all` (the default). The linkset uses the UNTP 0.8.0 relations: `dpp`, `linkset` for an identity resolver, and `https://test.uncefact.org/vocabulary/link-type/<type>` for the others. A DID document\'s UNTP 0.7 service types (`untp:dia`, bare `dcc`) are read as the same link types.
|
|
5036
|
+
* @param {boolean} [fetch] Fetch and verify the linked credentials.
|
|
5037
|
+
* @param {boolean} [verify] Verify the fetched credentials\' dates, status and schema, besides their signature.
|
|
5038
|
+
* @param {boolean} [verifyIssuer] Also verify whether the wallet\'s trust framework trusts the DID, as `/verifier/did` does, and report it as `issuer`. A wallet whose trust framework does not verify DIDs reports no `issuer`, and is `422` when `verifyIssuer` is set explicitly. A UNTP wallet enforces the anchor on every signature anyway; this reports it.
|
|
5039
|
+
* @param {*} [options] Override http request option.
|
|
5040
|
+
* @throws {RequiredError}
|
|
5041
|
+
*/
|
|
5042
|
+
verifierUntpResolve(walletId, identifier, linkType, fetch, verify, verifyIssuer, options) {
|
|
5043
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5044
|
+
var _a, _b, _c;
|
|
5045
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierUntpResolve(walletId, identifier, linkType, fetch, verify, verifyIssuer, options);
|
|
5046
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5047
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.verifierUntpResolve']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5048
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5049
|
+
});
|
|
5050
|
+
},
|
|
4276
5051
|
/**
|
|
4277
5052
|
* Creates a new wallet for the authenticated client.
|
|
4278
5053
|
* @param {WalletCreatePayload} [walletCreatePayload]
|
|
@@ -4352,13 +5127,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
4352
5127
|
* Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
|
|
4353
5128
|
* @param {string} [ownerId]
|
|
4354
5129
|
* @param {string} [searchName] Wallet name to search using \"begins-with\" filter
|
|
5130
|
+
* @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
|
|
4355
5131
|
* @param {*} [options] Override http request option.
|
|
4356
5132
|
* @throws {RequiredError}
|
|
4357
5133
|
*/
|
|
4358
|
-
walletList(ownerId, searchName, options) {
|
|
5134
|
+
walletList(ownerId, searchName, tenantId, options) {
|
|
4359
5135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4360
5136
|
var _a, _b, _c;
|
|
4361
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletList(ownerId, searchName, options);
|
|
5137
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletList(ownerId, searchName, tenantId, options);
|
|
4362
5138
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4363
5139
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4364
5140
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4420,7 +5196,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
4420
5196
|
});
|
|
4421
5197
|
},
|
|
4422
5198
|
/**
|
|
4423
|
-
* Update wallet metadata and configuration.
|
|
5199
|
+
* Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
|
|
4424
5200
|
* @param {string} walletId
|
|
4425
5201
|
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
4426
5202
|
* @param {*} [options] Override http request option.
|
|
@@ -4821,6 +5597,18 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4821
5597
|
credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options) {
|
|
4822
5598
|
return localVarFp.credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options).then((request) => request(axios, basePath));
|
|
4823
5599
|
},
|
|
5600
|
+
/**
|
|
5601
|
+
* Issues a W3C VCDM draft as a credential of the wallet itself, with no holder and no OID4VCI: for a credential that is published rather than handed to anyone, such as a UNTP Digital Product Passport (EN 18246 Annex B.5). The credential gets the wallet\'s status list entry and envelope, and is stored issued on the same record. With `publish`, it is then published as a UNTP link, like `POST /untp/links`; if that fails the response is `502` with the issued `credentialId`, and publishing is retried with `POST /untp/links`.
|
|
5602
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
5603
|
+
* @param {string} walletId
|
|
5604
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
5605
|
+
* @param {CredentialIssueDirectRequest} [credentialIssueDirectRequest]
|
|
5606
|
+
* @param {*} [options] Override http request option.
|
|
5607
|
+
* @throws {RequiredError}
|
|
5608
|
+
*/
|
|
5609
|
+
credentialIssueDirect(credentialId, walletId, idempotencyKey, credentialIssueDirectRequest, options) {
|
|
5610
|
+
return localVarFp.credentialIssueDirect(credentialId, walletId, idempotencyKey, credentialIssueDirectRequest, options).then((request) => request(axios, basePath));
|
|
5611
|
+
},
|
|
4824
5612
|
/**
|
|
4825
5613
|
* Retrieves a list of credentials.
|
|
4826
5614
|
* @param {string} walletId
|
|
@@ -4861,27 +5649,50 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4861
5649
|
return localVarFp.credentialPatch(credentialId, walletId, credentialPatchPayload, options).then((request) => request(axios, basePath));
|
|
4862
5650
|
},
|
|
4863
5651
|
/**
|
|
4864
|
-
* Returns raw credential payload, with format depending on credential format.
|
|
5652
|
+
* Returns raw credential payload, with format depending on credential format.
|
|
5653
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
5654
|
+
* @param {string} walletId
|
|
5655
|
+
* @param {CredentialPayloadGetFormEnum} [form] Form of the returned credential payload (supported only with JSON-LD credentials)
|
|
5656
|
+
* @param {Array<string>} [contexts] JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
|
|
5657
|
+
* @param {*} [options] Override http request option.
|
|
5658
|
+
* @throws {RequiredError}
|
|
5659
|
+
*/
|
|
5660
|
+
credentialPayloadGet(credentialId, walletId, form, contexts, options) {
|
|
5661
|
+
return localVarFp.credentialPayloadGet(credentialId, walletId, form, contexts, options).then((request) => request(axios, basePath));
|
|
5662
|
+
},
|
|
5663
|
+
/**
|
|
5664
|
+
* Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)
|
|
5665
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
5666
|
+
* @param {string} walletId
|
|
5667
|
+
* @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
|
|
5668
|
+
* @param {*} [options] Override http request option.
|
|
5669
|
+
* @throws {RequiredError}
|
|
5670
|
+
*/
|
|
5671
|
+
credentialRawGet(credentialId, walletId, disclosedClaims, options) {
|
|
5672
|
+
return localVarFp.credentialRawGet(credentialId, walletId, disclosedClaims, options).then((request) => request(axios, basePath));
|
|
5673
|
+
},
|
|
5674
|
+
/**
|
|
5675
|
+
* Renders a W3C VCDM credential of the wallet with one of its `renderMethod` entries, as `POST /verifier/render` does. HTML is served with a `Content-Security-Policy` that sandboxes it.
|
|
4865
5676
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
4866
5677
|
* @param {string} walletId
|
|
4867
|
-
* @param {
|
|
4868
|
-
* @param {
|
|
5678
|
+
* @param {number} [index] The index of the render method to use, in the credential\'s `renderMethod`.
|
|
5679
|
+
* @param {RenderSuite} [suite] Use the first render method of this suite.
|
|
5680
|
+
* @param {string} [mediaQuery] Use the first render method with exactly this `mediaQuery`.
|
|
4869
5681
|
* @param {*} [options] Override http request option.
|
|
4870
5682
|
* @throws {RequiredError}
|
|
4871
5683
|
*/
|
|
4872
|
-
|
|
4873
|
-
return localVarFp.
|
|
5684
|
+
credentialRender(credentialId, walletId, index, suite, mediaQuery, options) {
|
|
5685
|
+
return localVarFp.credentialRender(credentialId, walletId, index, suite, mediaQuery, options).then((request) => request(axios, basePath));
|
|
4874
5686
|
},
|
|
4875
5687
|
/**
|
|
4876
|
-
*
|
|
5688
|
+
* Lists the render methods of a W3C VCDM credential of the wallet, for a client to pick one by its media query: media queries are not evaluated by the wallet.
|
|
4877
5689
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
4878
5690
|
* @param {string} walletId
|
|
4879
|
-
* @param {Array<string>} [disclosedClaims] List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
|
|
4880
5691
|
* @param {*} [options] Override http request option.
|
|
4881
5692
|
* @throws {RequiredError}
|
|
4882
5693
|
*/
|
|
4883
|
-
|
|
4884
|
-
return localVarFp.
|
|
5694
|
+
credentialRenderMethods(credentialId, walletId, options) {
|
|
5695
|
+
return localVarFp.credentialRenderMethods(credentialId, walletId, options).then((request) => request(axios, basePath));
|
|
4885
5696
|
},
|
|
4886
5697
|
/**
|
|
4887
5698
|
* Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
|
|
@@ -4894,14 +5705,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4894
5705
|
return localVarFp.credentialRequestInit(walletId, credentialRequest, options).then((request) => request(axios, basePath));
|
|
4895
5706
|
},
|
|
4896
5707
|
/**
|
|
4897
|
-
* Revoke a specific Verifiable Credential
|
|
5708
|
+
* Revoke a specific Verifiable Credential. A credential published as a UNTP link stays published: a verifier following its link finds it and verifies it as revoked. `DELETE /untp/links/{service_id}` unpublishes it.
|
|
4898
5709
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
4899
5710
|
* @param {string} walletId
|
|
5711
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
4900
5712
|
* @param {*} [options] Override http request option.
|
|
4901
5713
|
* @throws {RequiredError}
|
|
4902
5714
|
*/
|
|
4903
|
-
credentialRevoke(credentialId, walletId, options) {
|
|
4904
|
-
return localVarFp.credentialRevoke(credentialId, walletId, options).then((request) => request(axios, basePath));
|
|
5715
|
+
credentialRevoke(credentialId, walletId, idempotencyKey, options) {
|
|
5716
|
+
return localVarFp.credentialRevoke(credentialId, walletId, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
4905
5717
|
},
|
|
4906
5718
|
/**
|
|
4907
5719
|
* Suspend a Verifiable Credential issued with the `suspension` status purpose (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.
|
|
@@ -4942,6 +5754,25 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4942
5754
|
didDocumentGet(walletId, options) {
|
|
4943
5755
|
return localVarFp.didDocumentGet(walletId, options).then((request) => request(axios, basePath));
|
|
4944
5756
|
},
|
|
5757
|
+
/**
|
|
5758
|
+
* Returns the wallet\'s own DID document, as published at `/{wallet_id}/did.json` for a self-hosted did:web.
|
|
5759
|
+
* @param {string} walletId
|
|
5760
|
+
* @param {*} [options] Override http request option.
|
|
5761
|
+
* @throws {RequiredError}
|
|
5762
|
+
*/
|
|
5763
|
+
didDocumentLocalGet(walletId, options) {
|
|
5764
|
+
return localVarFp.didDocumentLocalGet(walletId, options).then((request) => request(axios, basePath));
|
|
5765
|
+
},
|
|
5766
|
+
/**
|
|
5767
|
+
* Changes the wallet\'s DID document: removes the services in `removeServiceIds`, adds the services in `addServices` (a service with the same id is replaced), and, when `alsoKnownAs` is set, replaces the subject\'s other identifiers (an empty list removes them). UNTP identifies an entity\'s Digital Identity Anchor with a service of type `https://test.uncefact.org/vocabulary/link-type/dia` (`untp:dia` in UNTP 0.7) and registered identifiers with `alsoKnownAs`. Only a self-hosted did:web document can be changed; services of an EBSI DID are written to the EBSI DID registry, which does not take `alsoKnownAs`.
|
|
5768
|
+
* @param {string} walletId
|
|
5769
|
+
* @param {DidDocumentPatch} didDocumentPatch
|
|
5770
|
+
* @param {*} [options] Override http request option.
|
|
5771
|
+
* @throws {RequiredError}
|
|
5772
|
+
*/
|
|
5773
|
+
didDocumentPatch(walletId, didDocumentPatch, options) {
|
|
5774
|
+
return localVarFp.didDocumentPatch(walletId, didDocumentPatch, options).then((request) => request(axios, basePath));
|
|
5775
|
+
},
|
|
4945
5776
|
/**
|
|
4946
5777
|
* Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
|
|
4947
5778
|
* @param {*} [options] Override http request option.
|
|
@@ -4981,45 +5812,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4981
5812
|
holderIdTokenSend(walletId, idTokenSendRequest, options) {
|
|
4982
5813
|
return localVarFp.holderIdTokenSend(walletId, idTokenSendRequest, options).then((request) => request(axios, basePath));
|
|
4983
5814
|
},
|
|
4984
|
-
/**
|
|
4985
|
-
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
4986
|
-
* @param {string} walletId
|
|
4987
|
-
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
4988
|
-
* @param {*} [options] Override http request option.
|
|
4989
|
-
* @throws {RequiredError}
|
|
4990
|
-
*/
|
|
4991
|
-
holderLinkedVpCreate(walletId, linkedVpCreateRequest, options) {
|
|
4992
|
-
return localVarFp.holderLinkedVpCreate(walletId, linkedVpCreateRequest, options).then((request) => request(axios, basePath));
|
|
4993
|
-
},
|
|
4994
|
-
/**
|
|
4995
|
-
* Deletes a linked VP
|
|
4996
|
-
* @param {string} walletId
|
|
4997
|
-
* @param {string} linkedVpId
|
|
4998
|
-
* @param {*} [options] Override http request option.
|
|
4999
|
-
* @throws {RequiredError}
|
|
5000
|
-
*/
|
|
5001
|
-
holderLinkedVpDelete(walletId, linkedVpId, options) {
|
|
5002
|
-
return localVarFp.holderLinkedVpDelete(walletId, linkedVpId, options).then((request) => request(axios, basePath));
|
|
5003
|
-
},
|
|
5004
|
-
/**
|
|
5005
|
-
* Returns metadata and content of a specific linked Verifiable Presentation, including the credentials it contains and its DID document service entry URL.
|
|
5006
|
-
* @param {string} walletId
|
|
5007
|
-
* @param {string} linkedVpId
|
|
5008
|
-
* @param {*} [options] Override http request option.
|
|
5009
|
-
* @throws {RequiredError}
|
|
5010
|
-
*/
|
|
5011
|
-
holderLinkedVpGetDetails(walletId, linkedVpId, options) {
|
|
5012
|
-
return localVarFp.holderLinkedVpGetDetails(walletId, linkedVpId, options).then((request) => request(axios, basePath));
|
|
5013
|
-
},
|
|
5014
|
-
/**
|
|
5015
|
-
* Returns all linked Verifiable Presentations published in the wallet\'s DID document,
|
|
5016
|
-
* @param {string} walletId
|
|
5017
|
-
* @param {*} [options] Override http request option.
|
|
5018
|
-
* @throws {RequiredError}
|
|
5019
|
-
*/
|
|
5020
|
-
holderLinkedVpList(walletId, options) {
|
|
5021
|
-
return localVarFp.holderLinkedVpList(walletId, options).then((request) => request(axios, basePath));
|
|
5022
|
-
},
|
|
5023
5815
|
/**
|
|
5024
5816
|
* Processes a credential offer URL (received from an issuer via QR code, deep link, or WMP) and returns what authorization is required to accept it - pin, credential presentation or a redirect to custom authorization flow. holder needs to present to the issuer, along with matching candidates from the wallet. The returned `interactionId` is used in the subsequent `HolderOfferProcessAfterConsent` call.
|
|
5025
5817
|
* @param {string} walletId
|
|
@@ -5069,6 +5861,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5069
5861
|
issuerCredentialTypesList(url, options) {
|
|
5070
5862
|
return localVarFp.issuerCredentialTypesList(url, options).then((request) => request(axios, basePath));
|
|
5071
5863
|
},
|
|
5864
|
+
/**
|
|
5865
|
+
* Signs an opaque payload, such as an audit log entry, with the wallet\'s DID key, as a compact detached JWS with an unencoded payload (RFC 7515 Appendix F, RFC 7797: `b64: false`, `crit: [\"b64\"]`): `<protected header>..<signature>`. The signature is verified offline against the key in the wallet\'s DID document, with the payload put back. `typ` must be one the deployment allows, which no credential or presentation verifier accepts, so a signature from here never passes as a credential.
|
|
5866
|
+
* @param {string} walletId
|
|
5867
|
+
* @param {IssuerDetachedJwsSignRequest} issuerDetachedJwsSignRequest
|
|
5868
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
5869
|
+
* @param {*} [options] Override http request option.
|
|
5870
|
+
* @throws {RequiredError}
|
|
5871
|
+
*/
|
|
5872
|
+
issuerDetachedJwsSign(walletId, issuerDetachedJwsSignRequest, idempotencyKey, options) {
|
|
5873
|
+
return localVarFp.issuerDetachedJwsSign(walletId, issuerDetachedJwsSignRequest, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
5874
|
+
},
|
|
5072
5875
|
/**
|
|
5073
5876
|
* Generates an authorized credential offer URL for the holder to initiate the credential issuance flow. The resulting offer URL is typically presented as a QR code or deep link. If `wmpEntityId` is provided, the offer is delivered directly via WMP and 204 is returned.
|
|
5074
5877
|
* @param {string} walletId
|
|
@@ -5142,6 +5945,45 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5142
5945
|
pdfCredentialTwinUpload(credentialId, walletId, pdf, options) {
|
|
5143
5946
|
return localVarFp.pdfCredentialTwinUpload(credentialId, walletId, pdf, options).then((request) => request(axios, basePath));
|
|
5144
5947
|
},
|
|
5948
|
+
/**
|
|
5949
|
+
* Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
|
|
5950
|
+
* @param {string} tenantId
|
|
5951
|
+
* @param {string} state The enrollment state from TenantEnrollmentInit.
|
|
5952
|
+
* @param {*} [options] Override http request option.
|
|
5953
|
+
* @throws {RequiredError}
|
|
5954
|
+
*/
|
|
5955
|
+
tenantEnrollmentEnroll(tenantId, state, options) {
|
|
5956
|
+
return localVarFp.tenantEnrollmentEnroll(tenantId, state, options).then((request) => request(axios, basePath));
|
|
5957
|
+
},
|
|
5958
|
+
/**
|
|
5959
|
+
* Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
|
|
5960
|
+
* @param {string} tenantId
|
|
5961
|
+
* @param {EnrollmentInitPayload} enrollmentInitPayload
|
|
5962
|
+
* @param {*} [options] Override http request option.
|
|
5963
|
+
* @throws {RequiredError}
|
|
5964
|
+
*/
|
|
5965
|
+
tenantEnrollmentInit(tenantId, enrollmentInitPayload, options) {
|
|
5966
|
+
return localVarFp.tenantEnrollmentInit(tenantId, enrollmentInitPayload, options).then((request) => request(axios, basePath));
|
|
5967
|
+
},
|
|
5968
|
+
/**
|
|
5969
|
+
* Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
|
|
5970
|
+
* @param {string} tenantId
|
|
5971
|
+
* @param {*} [options] Override http request option.
|
|
5972
|
+
* @throws {RequiredError}
|
|
5973
|
+
*/
|
|
5974
|
+
tenantEnrollmentList(tenantId, options) {
|
|
5975
|
+
return localVarFp.tenantEnrollmentList(tenantId, options).then((request) => request(axios, basePath));
|
|
5976
|
+
},
|
|
5977
|
+
/**
|
|
5978
|
+
* Revokes a pending enrollment, so that its state no longer creates a wallet.
|
|
5979
|
+
* @param {string} tenantId
|
|
5980
|
+
* @param {string} enrollmentId
|
|
5981
|
+
* @param {*} [options] Override http request option.
|
|
5982
|
+
* @throws {RequiredError}
|
|
5983
|
+
*/
|
|
5984
|
+
tenantEnrollmentRevoke(tenantId, enrollmentId, options) {
|
|
5985
|
+
return localVarFp.tenantEnrollmentRevoke(tenantId, enrollmentId, options).then((request) => request(axios, basePath));
|
|
5986
|
+
},
|
|
5145
5987
|
/**
|
|
5146
5988
|
* Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
|
|
5147
5989
|
* @param {string} walletId
|
|
@@ -5268,24 +6110,73 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5268
6110
|
return localVarFp.trustListsGet(options).then((request) => request(axios, basePath));
|
|
5269
6111
|
},
|
|
5270
6112
|
/**
|
|
5271
|
-
*
|
|
6113
|
+
* Removes a UNTP link from the wallet\'s DID document and stops serving its credential.
|
|
5272
6114
|
* @param {string} walletId
|
|
5273
|
-
* @param {
|
|
6115
|
+
* @param {string} serviceId The service id of the link, in full (`<did>#<fragment>`) or as its fragment.
|
|
5274
6116
|
* @param {*} [options] Override http request option.
|
|
5275
6117
|
* @throws {RequiredError}
|
|
5276
6118
|
*/
|
|
5277
|
-
|
|
5278
|
-
return localVarFp.
|
|
6119
|
+
untpLinkDelete(walletId, serviceId, options) {
|
|
6120
|
+
return localVarFp.untpLinkDelete(walletId, serviceId, options).then((request) => request(axios, basePath));
|
|
6121
|
+
},
|
|
6122
|
+
/**
|
|
6123
|
+
* The UNTP links the wallet\'s DID document advertises for its published credentials.
|
|
6124
|
+
* @param {string} walletId
|
|
6125
|
+
* @param {*} [options] Override http request option.
|
|
6126
|
+
* @throws {RequiredError}
|
|
6127
|
+
*/
|
|
6128
|
+
untpLinkList(walletId, options) {
|
|
6129
|
+
return localVarFp.untpLinkList(walletId, options).then((request) => request(axios, basePath));
|
|
6130
|
+
},
|
|
6131
|
+
/**
|
|
6132
|
+
* Publishes an issued, valid W3C VCDM credential as a UNTP link: it is served at its public URL (`/api/v1/{wallet_id}/vc/{credential_id}`) and the wallet\'s DID document gets a service of the link type, whose endpoint is a link target to that URL. Publishing a credential again as the same link type returns the existing link. The wallet\'s DID document must be one it hosts (a self-hosted did:web, or an EBSI DID).
|
|
6133
|
+
* @param {string} walletId
|
|
6134
|
+
* @param {UntpLinkPublishRequest} untpLinkPublishRequest
|
|
6135
|
+
* @param {*} [options] Override http request option.
|
|
6136
|
+
* @throws {RequiredError}
|
|
6137
|
+
*/
|
|
6138
|
+
untpLinkPublish(walletId, untpLinkPublishRequest, options) {
|
|
6139
|
+
return localVarFp.untpLinkPublish(walletId, untpLinkPublishRequest, options).then((request) => request(axios, basePath));
|
|
6140
|
+
},
|
|
6141
|
+
/**
|
|
6142
|
+
* Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet\'s own DID is one of them.
|
|
6143
|
+
* @param {string} walletId
|
|
6144
|
+
* @param {*} [options] Override http request option.
|
|
6145
|
+
* @throws {RequiredError}
|
|
6146
|
+
*/
|
|
6147
|
+
untpRegistryList(walletId, options) {
|
|
6148
|
+
return localVarFp.untpRegistryList(walletId, options).then((request) => request(axios, basePath));
|
|
6149
|
+
},
|
|
6150
|
+
/**
|
|
6151
|
+
* Verifies a credential, given raw or by URL, with the wallet\'s trust framework, and reports each check: the signature (with the key the issuer\'s identifier resolves to), the validity dates, and, unless turned off, the JSON-LD document (W3C VCDM 2.0), the status, the schema and the issuer\'s trust. A credential that fails is still `200`, with `verified: false`; `code` reuses the error codes of `/verifier/untp/resolve`. A `url` must be https, and is never fetched from a private, loopback or link-local address, so a localhost URL is refused too. It is fetched within 10 s, 5 MiB and 3 redirects on the same host, and only as a credential media type.
|
|
6152
|
+
* @param {string} walletId
|
|
6153
|
+
* @param {VerifierCredentialRequest} verifierCredentialRequest
|
|
6154
|
+
* @param {*} [options] Override http request option.
|
|
6155
|
+
* @throws {RequiredError}
|
|
6156
|
+
*/
|
|
6157
|
+
verifierCredentialVerify(walletId, verifierCredentialRequest, options) {
|
|
6158
|
+
return localVarFp.verifierCredentialVerify(walletId, verifierCredentialRequest, options).then((request) => request(axios, basePath));
|
|
6159
|
+
},
|
|
6160
|
+
/**
|
|
6161
|
+
* Verifies whether the wallet\'s trust framework trusts a DID, beyond resolving its key. A UNTP wallet requires a Digital Identity Anchor (UNTP 0.8.0, a profile of W3C Recognized Entities): the DID\'s DIA, found through its DID document\'s `https://test.uncefact.org/vocabulary/link-type/dia` service (or `untp:dia`), or a W3C `WhoisService`, is verified (signature, validity, status, the UNTP profile) and chained up, DIA by DIA, to a registrar the wallet trusts: its own (`UNTP.trustedRegistrars`), then the deployment\'s (`untp.dia.trustedRegistrars`, `untp.dia.registryUrl`). A registrar is itself trusted without a DIA. The details are in `untp`. A DID that is not trusted is still `200`, with `trusted: false` and the reasons in `failures`. With `credentialType`, the issuer policy for that credential type is evaluated too. A wallet whose trust framework does not verify DIDs is `422`.
|
|
6162
|
+
* @param {string} walletId
|
|
6163
|
+
* @param {string} did The DID to verify.
|
|
6164
|
+
* @param {string} [credentialType] Evaluate the issuer policy of this credential type, e.g. `DigitalProductPassport`.
|
|
6165
|
+
* @param {*} [options] Override http request option.
|
|
6166
|
+
* @throws {RequiredError}
|
|
6167
|
+
*/
|
|
6168
|
+
verifierDidVerify(walletId, did, credentialType, options) {
|
|
6169
|
+
return localVarFp.verifierDidVerify(walletId, did, credentialType, options).then((request) => request(axios, basePath));
|
|
5279
6170
|
},
|
|
5280
6171
|
/**
|
|
5281
|
-
*
|
|
6172
|
+
* Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
|
|
5282
6173
|
* @param {string} walletId
|
|
5283
|
-
* @param {
|
|
6174
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
5284
6175
|
* @param {*} [options] Override http request option.
|
|
5285
6176
|
* @throws {RequiredError}
|
|
5286
6177
|
*/
|
|
5287
|
-
|
|
5288
|
-
return localVarFp.
|
|
6178
|
+
verifierInitUrlCreate(walletId, verifyInitRequest, options) {
|
|
6179
|
+
return localVarFp.verifierInitUrlCreate(walletId, verifyInitRequest, options).then((request) => request(axios, basePath));
|
|
5289
6180
|
},
|
|
5290
6181
|
/**
|
|
5291
6182
|
* Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document Maximum size of the PDF document is 50 MB.
|
|
@@ -5301,6 +6192,30 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5301
6192
|
verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options) {
|
|
5302
6193
|
return localVarFp.verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options).then((request) => request(axios, basePath));
|
|
5303
6194
|
},
|
|
6195
|
+
/**
|
|
6196
|
+
* Renders a credential for a human with one of its `renderMethod` entries: a UNTP `RenderTemplate2024` (Handlebars, the output in its `mediaType`: `text/html`, the default, or `text/plain`) or a W3C `TemplateRenderMethod` of the `html` suite (a wrapper document to show in an `iframe` with `sandbox=\"allow-scripts\"` and `srcdoc`) or the `card` suite (a JSON card). By default the first method that can be rendered is used. A `signedVc` is verified (its signature, validity and status) before it is rendered, and `X-Credential-Verified` is `true`; one that fails is `422`. A `vc` is a credential document rendered as it is, with `X-Credential-Verified: false`. A credential with no render method that matches, or a method that cannot be rendered (`nfc`, a template of another `mediaType`, or an unknown type), is `422` with `no render method` or `render suite unsupported`; an invalid one is `422` with `invalid render method`, a template that cannot be fetched or does not match its digest `render template unavailable`, and one that fails or runs too long `render failed`. A remote template is fetched over https only, within 5 s and 1 MiB, and must match its `digestMultibase`. Rendering stops after 2 s or 1 MiB of output. A template that runs on past that still counts against the renderings the wallet runs at once (`render.maxConcurrent`); when none is free, the response is `503`.
|
|
6197
|
+
* @param {string} walletId
|
|
6198
|
+
* @param {VerifierRenderRequest} verifierRenderRequest
|
|
6199
|
+
* @param {*} [options] Override http request option.
|
|
6200
|
+
* @throws {RequiredError}
|
|
6201
|
+
*/
|
|
6202
|
+
verifierRender(walletId, verifierRenderRequest, options) {
|
|
6203
|
+
return localVarFp.verifierRender(walletId, verifierRenderRequest, options).then((request) => request(axios, basePath));
|
|
6204
|
+
},
|
|
6205
|
+
/**
|
|
6206
|
+
* Resolves a DID into the RFC 9264 linkset of the UNTP links its DID document advertises and, with `fetch`, fetches the linked credentials and verifies them. A credential that fails is reported in `credentials` and `verification.failed`, with the response still 200: `verification.ok` is the verdict.
|
|
6207
|
+
* @param {string} walletId
|
|
6208
|
+
* @param {string} identifier The DID to resolve.
|
|
6209
|
+
* @param {string} [linkType] The link types to fetch, comma separated (e.g. `dpp,dcc`), or `all` (the default). The linkset uses the UNTP 0.8.0 relations: `dpp`, `linkset` for an identity resolver, and `https://test.uncefact.org/vocabulary/link-type/<type>` for the others. A DID document\'s UNTP 0.7 service types (`untp:dia`, bare `dcc`) are read as the same link types.
|
|
6210
|
+
* @param {boolean} [fetch] Fetch and verify the linked credentials.
|
|
6211
|
+
* @param {boolean} [verify] Verify the fetched credentials\' dates, status and schema, besides their signature.
|
|
6212
|
+
* @param {boolean} [verifyIssuer] Also verify whether the wallet\'s trust framework trusts the DID, as `/verifier/did` does, and report it as `issuer`. A wallet whose trust framework does not verify DIDs reports no `issuer`, and is `422` when `verifyIssuer` is set explicitly. A UNTP wallet enforces the anchor on every signature anyway; this reports it.
|
|
6213
|
+
* @param {*} [options] Override http request option.
|
|
6214
|
+
* @throws {RequiredError}
|
|
6215
|
+
*/
|
|
6216
|
+
verifierUntpResolve(walletId, identifier, linkType, fetch, verify, verifyIssuer, options) {
|
|
6217
|
+
return localVarFp.verifierUntpResolve(walletId, identifier, linkType, fetch, verify, verifyIssuer, options).then((request) => request(axios, basePath));
|
|
6218
|
+
},
|
|
5304
6219
|
/**
|
|
5305
6220
|
* Creates a new wallet for the authenticated client.
|
|
5306
6221
|
* @param {WalletCreatePayload} [walletCreatePayload]
|
|
@@ -5350,11 +6265,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5350
6265
|
* Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
|
|
5351
6266
|
* @param {string} [ownerId]
|
|
5352
6267
|
* @param {string} [searchName] Wallet name to search using \"begins-with\" filter
|
|
6268
|
+
* @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
|
|
5353
6269
|
* @param {*} [options] Override http request option.
|
|
5354
6270
|
* @throws {RequiredError}
|
|
5355
6271
|
*/
|
|
5356
|
-
walletList(ownerId, searchName, options) {
|
|
5357
|
-
return localVarFp.walletList(ownerId, searchName, options).then((request) => request(axios, basePath));
|
|
6272
|
+
walletList(ownerId, searchName, tenantId, options) {
|
|
6273
|
+
return localVarFp.walletList(ownerId, searchName, tenantId, options).then((request) => request(axios, basePath));
|
|
5358
6274
|
},
|
|
5359
6275
|
/**
|
|
5360
6276
|
* Gets a specific notification by state
|
|
@@ -5394,7 +6310,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5394
6310
|
return localVarFp.walletNotifications(walletId, eventType, state, lastEventID, options).then((request) => request(axios, basePath));
|
|
5395
6311
|
},
|
|
5396
6312
|
/**
|
|
5397
|
-
* Update wallet metadata and configuration.
|
|
6313
|
+
* Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
|
|
5398
6314
|
* @param {string} walletId
|
|
5399
6315
|
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
5400
6316
|
* @param {*} [options] Override http request option.
|
|
@@ -5667,6 +6583,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5667
6583
|
credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options) {
|
|
5668
6584
|
return (0, exports.DefaultApiFp)(this.configuration).credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options).then((request) => request(this.axios, this.basePath));
|
|
5669
6585
|
}
|
|
6586
|
+
/**
|
|
6587
|
+
* Issues a W3C VCDM draft as a credential of the wallet itself, with no holder and no OID4VCI: for a credential that is published rather than handed to anyone, such as a UNTP Digital Product Passport (EN 18246 Annex B.5). The credential gets the wallet\'s status list entry and envelope, and is stored issued on the same record. With `publish`, it is then published as a UNTP link, like `POST /untp/links`; if that fails the response is `502` with the issued `credentialId`, and publishing is retried with `POST /untp/links`.
|
|
6588
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
6589
|
+
* @param {string} walletId
|
|
6590
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
6591
|
+
* @param {CredentialIssueDirectRequest} [credentialIssueDirectRequest]
|
|
6592
|
+
* @param {*} [options] Override http request option.
|
|
6593
|
+
* @throws {RequiredError}
|
|
6594
|
+
*/
|
|
6595
|
+
credentialIssueDirect(credentialId, walletId, idempotencyKey, credentialIssueDirectRequest, options) {
|
|
6596
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialIssueDirect(credentialId, walletId, idempotencyKey, credentialIssueDirectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6597
|
+
}
|
|
5670
6598
|
/**
|
|
5671
6599
|
* Retrieves a list of credentials.
|
|
5672
6600
|
* @param {string} walletId
|
|
@@ -5729,6 +6657,29 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5729
6657
|
credentialRawGet(credentialId, walletId, disclosedClaims, options) {
|
|
5730
6658
|
return (0, exports.DefaultApiFp)(this.configuration).credentialRawGet(credentialId, walletId, disclosedClaims, options).then((request) => request(this.axios, this.basePath));
|
|
5731
6659
|
}
|
|
6660
|
+
/**
|
|
6661
|
+
* Renders a W3C VCDM credential of the wallet with one of its `renderMethod` entries, as `POST /verifier/render` does. HTML is served with a `Content-Security-Policy` that sandboxes it.
|
|
6662
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
6663
|
+
* @param {string} walletId
|
|
6664
|
+
* @param {number} [index] The index of the render method to use, in the credential\'s `renderMethod`.
|
|
6665
|
+
* @param {RenderSuite} [suite] Use the first render method of this suite.
|
|
6666
|
+
* @param {string} [mediaQuery] Use the first render method with exactly this `mediaQuery`.
|
|
6667
|
+
* @param {*} [options] Override http request option.
|
|
6668
|
+
* @throws {RequiredError}
|
|
6669
|
+
*/
|
|
6670
|
+
credentialRender(credentialId, walletId, index, suite, mediaQuery, options) {
|
|
6671
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialRender(credentialId, walletId, index, suite, mediaQuery, options).then((request) => request(this.axios, this.basePath));
|
|
6672
|
+
}
|
|
6673
|
+
/**
|
|
6674
|
+
* Lists the render methods of a W3C VCDM credential of the wallet, for a client to pick one by its media query: media queries are not evaluated by the wallet.
|
|
6675
|
+
* @param {string} credentialId Verifiable Credential Identifier
|
|
6676
|
+
* @param {string} walletId
|
|
6677
|
+
* @param {*} [options] Override http request option.
|
|
6678
|
+
* @throws {RequiredError}
|
|
6679
|
+
*/
|
|
6680
|
+
credentialRenderMethods(credentialId, walletId, options) {
|
|
6681
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialRenderMethods(credentialId, walletId, options).then((request) => request(this.axios, this.basePath));
|
|
6682
|
+
}
|
|
5732
6683
|
/**
|
|
5733
6684
|
* Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
|
|
5734
6685
|
* @param {string} walletId
|
|
@@ -5740,14 +6691,15 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5740
6691
|
return (0, exports.DefaultApiFp)(this.configuration).credentialRequestInit(walletId, credentialRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5741
6692
|
}
|
|
5742
6693
|
/**
|
|
5743
|
-
* Revoke a specific Verifiable Credential
|
|
6694
|
+
* Revoke a specific Verifiable Credential. A credential published as a UNTP link stays published: a verifier following its link finds it and verifies it as revoked. `DELETE /untp/links/{service_id}` unpublishes it.
|
|
5744
6695
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
5745
6696
|
* @param {string} walletId
|
|
6697
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
5746
6698
|
* @param {*} [options] Override http request option.
|
|
5747
6699
|
* @throws {RequiredError}
|
|
5748
6700
|
*/
|
|
5749
|
-
credentialRevoke(credentialId, walletId, options) {
|
|
5750
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialRevoke(credentialId, walletId, options).then((request) => request(this.axios, this.basePath));
|
|
6701
|
+
credentialRevoke(credentialId, walletId, idempotencyKey, options) {
|
|
6702
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialRevoke(credentialId, walletId, idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
5751
6703
|
}
|
|
5752
6704
|
/**
|
|
5753
6705
|
* Suspend a Verifiable Credential issued with the `suspension` status purpose (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.
|
|
@@ -5788,6 +6740,25 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5788
6740
|
didDocumentGet(walletId, options) {
|
|
5789
6741
|
return (0, exports.DefaultApiFp)(this.configuration).didDocumentGet(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
5790
6742
|
}
|
|
6743
|
+
/**
|
|
6744
|
+
* Returns the wallet\'s own DID document, as published at `/{wallet_id}/did.json` for a self-hosted did:web.
|
|
6745
|
+
* @param {string} walletId
|
|
6746
|
+
* @param {*} [options] Override http request option.
|
|
6747
|
+
* @throws {RequiredError}
|
|
6748
|
+
*/
|
|
6749
|
+
didDocumentLocalGet(walletId, options) {
|
|
6750
|
+
return (0, exports.DefaultApiFp)(this.configuration).didDocumentLocalGet(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
6751
|
+
}
|
|
6752
|
+
/**
|
|
6753
|
+
* Changes the wallet\'s DID document: removes the services in `removeServiceIds`, adds the services in `addServices` (a service with the same id is replaced), and, when `alsoKnownAs` is set, replaces the subject\'s other identifiers (an empty list removes them). UNTP identifies an entity\'s Digital Identity Anchor with a service of type `https://test.uncefact.org/vocabulary/link-type/dia` (`untp:dia` in UNTP 0.7) and registered identifiers with `alsoKnownAs`. Only a self-hosted did:web document can be changed; services of an EBSI DID are written to the EBSI DID registry, which does not take `alsoKnownAs`.
|
|
6754
|
+
* @param {string} walletId
|
|
6755
|
+
* @param {DidDocumentPatch} didDocumentPatch
|
|
6756
|
+
* @param {*} [options] Override http request option.
|
|
6757
|
+
* @throws {RequiredError}
|
|
6758
|
+
*/
|
|
6759
|
+
didDocumentPatch(walletId, didDocumentPatch, options) {
|
|
6760
|
+
return (0, exports.DefaultApiFp)(this.configuration).didDocumentPatch(walletId, didDocumentPatch, options).then((request) => request(this.axios, this.basePath));
|
|
6761
|
+
}
|
|
5791
6762
|
/**
|
|
5792
6763
|
* Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
|
|
5793
6764
|
* @param {*} [options] Override http request option.
|
|
@@ -5827,45 +6798,6 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5827
6798
|
holderIdTokenSend(walletId, idTokenSendRequest, options) {
|
|
5828
6799
|
return (0, exports.DefaultApiFp)(this.configuration).holderIdTokenSend(walletId, idTokenSendRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5829
6800
|
}
|
|
5830
|
-
/**
|
|
5831
|
-
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
5832
|
-
* @param {string} walletId
|
|
5833
|
-
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
5834
|
-
* @param {*} [options] Override http request option.
|
|
5835
|
-
* @throws {RequiredError}
|
|
5836
|
-
*/
|
|
5837
|
-
holderLinkedVpCreate(walletId, linkedVpCreateRequest, options) {
|
|
5838
|
-
return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpCreate(walletId, linkedVpCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5839
|
-
}
|
|
5840
|
-
/**
|
|
5841
|
-
* Deletes a linked VP
|
|
5842
|
-
* @param {string} walletId
|
|
5843
|
-
* @param {string} linkedVpId
|
|
5844
|
-
* @param {*} [options] Override http request option.
|
|
5845
|
-
* @throws {RequiredError}
|
|
5846
|
-
*/
|
|
5847
|
-
holderLinkedVpDelete(walletId, linkedVpId, options) {
|
|
5848
|
-
return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpDelete(walletId, linkedVpId, options).then((request) => request(this.axios, this.basePath));
|
|
5849
|
-
}
|
|
5850
|
-
/**
|
|
5851
|
-
* Returns metadata and content of a specific linked Verifiable Presentation, including the credentials it contains and its DID document service entry URL.
|
|
5852
|
-
* @param {string} walletId
|
|
5853
|
-
* @param {string} linkedVpId
|
|
5854
|
-
* @param {*} [options] Override http request option.
|
|
5855
|
-
* @throws {RequiredError}
|
|
5856
|
-
*/
|
|
5857
|
-
holderLinkedVpGetDetails(walletId, linkedVpId, options) {
|
|
5858
|
-
return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpGetDetails(walletId, linkedVpId, options).then((request) => request(this.axios, this.basePath));
|
|
5859
|
-
}
|
|
5860
|
-
/**
|
|
5861
|
-
* Returns all linked Verifiable Presentations published in the wallet\'s DID document,
|
|
5862
|
-
* @param {string} walletId
|
|
5863
|
-
* @param {*} [options] Override http request option.
|
|
5864
|
-
* @throws {RequiredError}
|
|
5865
|
-
*/
|
|
5866
|
-
holderLinkedVpList(walletId, options) {
|
|
5867
|
-
return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpList(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
5868
|
-
}
|
|
5869
6801
|
/**
|
|
5870
6802
|
* Processes a credential offer URL (received from an issuer via QR code, deep link, or WMP) and returns what authorization is required to accept it - pin, credential presentation or a redirect to custom authorization flow. holder needs to present to the issuer, along with matching candidates from the wallet. The returned `interactionId` is used in the subsequent `HolderOfferProcessAfterConsent` call.
|
|
5871
6803
|
* @param {string} walletId
|
|
@@ -5915,6 +6847,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5915
6847
|
issuerCredentialTypesList(url, options) {
|
|
5916
6848
|
return (0, exports.DefaultApiFp)(this.configuration).issuerCredentialTypesList(url, options).then((request) => request(this.axios, this.basePath));
|
|
5917
6849
|
}
|
|
6850
|
+
/**
|
|
6851
|
+
* Signs an opaque payload, such as an audit log entry, with the wallet\'s DID key, as a compact detached JWS with an unencoded payload (RFC 7515 Appendix F, RFC 7797: `b64: false`, `crit: [\"b64\"]`): `<protected header>..<signature>`. The signature is verified offline against the key in the wallet\'s DID document, with the payload put back. `typ` must be one the deployment allows, which no credential or presentation verifier accepts, so a signature from here never passes as a credential.
|
|
6852
|
+
* @param {string} walletId
|
|
6853
|
+
* @param {IssuerDetachedJwsSignRequest} issuerDetachedJwsSignRequest
|
|
6854
|
+
* @param {string} [idempotencyKey] Makes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
|
|
6855
|
+
* @param {*} [options] Override http request option.
|
|
6856
|
+
* @throws {RequiredError}
|
|
6857
|
+
*/
|
|
6858
|
+
issuerDetachedJwsSign(walletId, issuerDetachedJwsSignRequest, idempotencyKey, options) {
|
|
6859
|
+
return (0, exports.DefaultApiFp)(this.configuration).issuerDetachedJwsSign(walletId, issuerDetachedJwsSignRequest, idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
6860
|
+
}
|
|
5918
6861
|
/**
|
|
5919
6862
|
* Generates an authorized credential offer URL for the holder to initiate the credential issuance flow. The resulting offer URL is typically presented as a QR code or deep link. If `wmpEntityId` is provided, the offer is delivered directly via WMP and 204 is returned.
|
|
5920
6863
|
* @param {string} walletId
|
|
@@ -5988,6 +6931,45 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5988
6931
|
pdfCredentialTwinUpload(credentialId, walletId, pdf, options) {
|
|
5989
6932
|
return (0, exports.DefaultApiFp)(this.configuration).pdfCredentialTwinUpload(credentialId, walletId, pdf, options).then((request) => request(this.axios, this.basePath));
|
|
5990
6933
|
}
|
|
6934
|
+
/**
|
|
6935
|
+
* Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.
|
|
6936
|
+
* @param {string} tenantId
|
|
6937
|
+
* @param {string} state The enrollment state from TenantEnrollmentInit.
|
|
6938
|
+
* @param {*} [options] Override http request option.
|
|
6939
|
+
* @throws {RequiredError}
|
|
6940
|
+
*/
|
|
6941
|
+
tenantEnrollmentEnroll(tenantId, state, options) {
|
|
6942
|
+
return (0, exports.DefaultApiFp)(this.configuration).tenantEnrollmentEnroll(tenantId, state, options).then((request) => request(this.axios, this.basePath));
|
|
6943
|
+
}
|
|
6944
|
+
/**
|
|
6945
|
+
* Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
|
|
6946
|
+
* @param {string} tenantId
|
|
6947
|
+
* @param {EnrollmentInitPayload} enrollmentInitPayload
|
|
6948
|
+
* @param {*} [options] Override http request option.
|
|
6949
|
+
* @throws {RequiredError}
|
|
6950
|
+
*/
|
|
6951
|
+
tenantEnrollmentInit(tenantId, enrollmentInitPayload, options) {
|
|
6952
|
+
return (0, exports.DefaultApiFp)(this.configuration).tenantEnrollmentInit(tenantId, enrollmentInitPayload, options).then((request) => request(this.axios, this.basePath));
|
|
6953
|
+
}
|
|
6954
|
+
/**
|
|
6955
|
+
* Lists the tenant\'s pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
|
|
6956
|
+
* @param {string} tenantId
|
|
6957
|
+
* @param {*} [options] Override http request option.
|
|
6958
|
+
* @throws {RequiredError}
|
|
6959
|
+
*/
|
|
6960
|
+
tenantEnrollmentList(tenantId, options) {
|
|
6961
|
+
return (0, exports.DefaultApiFp)(this.configuration).tenantEnrollmentList(tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
6962
|
+
}
|
|
6963
|
+
/**
|
|
6964
|
+
* Revokes a pending enrollment, so that its state no longer creates a wallet.
|
|
6965
|
+
* @param {string} tenantId
|
|
6966
|
+
* @param {string} enrollmentId
|
|
6967
|
+
* @param {*} [options] Override http request option.
|
|
6968
|
+
* @throws {RequiredError}
|
|
6969
|
+
*/
|
|
6970
|
+
tenantEnrollmentRevoke(tenantId, enrollmentId, options) {
|
|
6971
|
+
return (0, exports.DefaultApiFp)(this.configuration).tenantEnrollmentRevoke(tenantId, enrollmentId, options).then((request) => request(this.axios, this.basePath));
|
|
6972
|
+
}
|
|
5991
6973
|
/**
|
|
5992
6974
|
* Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.
|
|
5993
6975
|
* @param {string} walletId
|
|
@@ -6114,24 +7096,73 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
6114
7096
|
return (0, exports.DefaultApiFp)(this.configuration).trustListsGet(options).then((request) => request(this.axios, this.basePath));
|
|
6115
7097
|
}
|
|
6116
7098
|
/**
|
|
6117
|
-
*
|
|
7099
|
+
* Removes a UNTP link from the wallet\'s DID document and stops serving its credential.
|
|
6118
7100
|
* @param {string} walletId
|
|
6119
|
-
* @param {
|
|
7101
|
+
* @param {string} serviceId The service id of the link, in full (`<did>#<fragment>`) or as its fragment.
|
|
6120
7102
|
* @param {*} [options] Override http request option.
|
|
6121
7103
|
* @throws {RequiredError}
|
|
6122
7104
|
*/
|
|
6123
|
-
|
|
6124
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
7105
|
+
untpLinkDelete(walletId, serviceId, options) {
|
|
7106
|
+
return (0, exports.DefaultApiFp)(this.configuration).untpLinkDelete(walletId, serviceId, options).then((request) => request(this.axios, this.basePath));
|
|
7107
|
+
}
|
|
7108
|
+
/**
|
|
7109
|
+
* The UNTP links the wallet\'s DID document advertises for its published credentials.
|
|
7110
|
+
* @param {string} walletId
|
|
7111
|
+
* @param {*} [options] Override http request option.
|
|
7112
|
+
* @throws {RequiredError}
|
|
7113
|
+
*/
|
|
7114
|
+
untpLinkList(walletId, options) {
|
|
7115
|
+
return (0, exports.DefaultApiFp)(this.configuration).untpLinkList(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
7116
|
+
}
|
|
7117
|
+
/**
|
|
7118
|
+
* Publishes an issued, valid W3C VCDM credential as a UNTP link: it is served at its public URL (`/api/v1/{wallet_id}/vc/{credential_id}`) and the wallet\'s DID document gets a service of the link type, whose endpoint is a link target to that URL. Publishing a credential again as the same link type returns the existing link. The wallet\'s DID document must be one it hosts (a self-hosted did:web, or an EBSI DID).
|
|
7119
|
+
* @param {string} walletId
|
|
7120
|
+
* @param {UntpLinkPublishRequest} untpLinkPublishRequest
|
|
7121
|
+
* @param {*} [options] Override http request option.
|
|
7122
|
+
* @throws {RequiredError}
|
|
7123
|
+
*/
|
|
7124
|
+
untpLinkPublish(walletId, untpLinkPublishRequest, options) {
|
|
7125
|
+
return (0, exports.DefaultApiFp)(this.configuration).untpLinkPublish(walletId, untpLinkPublishRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7126
|
+
}
|
|
7127
|
+
/**
|
|
7128
|
+
* Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet\'s own DID is one of them.
|
|
7129
|
+
* @param {string} walletId
|
|
7130
|
+
* @param {*} [options] Override http request option.
|
|
7131
|
+
* @throws {RequiredError}
|
|
7132
|
+
*/
|
|
7133
|
+
untpRegistryList(walletId, options) {
|
|
7134
|
+
return (0, exports.DefaultApiFp)(this.configuration).untpRegistryList(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
7135
|
+
}
|
|
7136
|
+
/**
|
|
7137
|
+
* Verifies a credential, given raw or by URL, with the wallet\'s trust framework, and reports each check: the signature (with the key the issuer\'s identifier resolves to), the validity dates, and, unless turned off, the JSON-LD document (W3C VCDM 2.0), the status, the schema and the issuer\'s trust. A credential that fails is still `200`, with `verified: false`; `code` reuses the error codes of `/verifier/untp/resolve`. A `url` must be https, and is never fetched from a private, loopback or link-local address, so a localhost URL is refused too. It is fetched within 10 s, 5 MiB and 3 redirects on the same host, and only as a credential media type.
|
|
7138
|
+
* @param {string} walletId
|
|
7139
|
+
* @param {VerifierCredentialRequest} verifierCredentialRequest
|
|
7140
|
+
* @param {*} [options] Override http request option.
|
|
7141
|
+
* @throws {RequiredError}
|
|
7142
|
+
*/
|
|
7143
|
+
verifierCredentialVerify(walletId, verifierCredentialRequest, options) {
|
|
7144
|
+
return (0, exports.DefaultApiFp)(this.configuration).verifierCredentialVerify(walletId, verifierCredentialRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7145
|
+
}
|
|
7146
|
+
/**
|
|
7147
|
+
* Verifies whether the wallet\'s trust framework trusts a DID, beyond resolving its key. A UNTP wallet requires a Digital Identity Anchor (UNTP 0.8.0, a profile of W3C Recognized Entities): the DID\'s DIA, found through its DID document\'s `https://test.uncefact.org/vocabulary/link-type/dia` service (or `untp:dia`), or a W3C `WhoisService`, is verified (signature, validity, status, the UNTP profile) and chained up, DIA by DIA, to a registrar the wallet trusts: its own (`UNTP.trustedRegistrars`), then the deployment\'s (`untp.dia.trustedRegistrars`, `untp.dia.registryUrl`). A registrar is itself trusted without a DIA. The details are in `untp`. A DID that is not trusted is still `200`, with `trusted: false` and the reasons in `failures`. With `credentialType`, the issuer policy for that credential type is evaluated too. A wallet whose trust framework does not verify DIDs is `422`.
|
|
7148
|
+
* @param {string} walletId
|
|
7149
|
+
* @param {string} did The DID to verify.
|
|
7150
|
+
* @param {string} [credentialType] Evaluate the issuer policy of this credential type, e.g. `DigitalProductPassport`.
|
|
7151
|
+
* @param {*} [options] Override http request option.
|
|
7152
|
+
* @throws {RequiredError}
|
|
7153
|
+
*/
|
|
7154
|
+
verifierDidVerify(walletId, did, credentialType, options) {
|
|
7155
|
+
return (0, exports.DefaultApiFp)(this.configuration).verifierDidVerify(walletId, did, credentialType, options).then((request) => request(this.axios, this.basePath));
|
|
6125
7156
|
}
|
|
6126
7157
|
/**
|
|
6127
|
-
*
|
|
7158
|
+
* Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
|
|
6128
7159
|
* @param {string} walletId
|
|
6129
|
-
* @param {
|
|
7160
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
6130
7161
|
* @param {*} [options] Override http request option.
|
|
6131
7162
|
* @throws {RequiredError}
|
|
6132
7163
|
*/
|
|
6133
|
-
|
|
6134
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
7164
|
+
verifierInitUrlCreate(walletId, verifyInitRequest, options) {
|
|
7165
|
+
return (0, exports.DefaultApiFp)(this.configuration).verifierInitUrlCreate(walletId, verifyInitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6135
7166
|
}
|
|
6136
7167
|
/**
|
|
6137
7168
|
* Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document Maximum size of the PDF document is 50 MB.
|
|
@@ -6147,6 +7178,30 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
6147
7178
|
verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options) {
|
|
6148
7179
|
return (0, exports.DefaultApiFp)(this.configuration).verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options).then((request) => request(this.axios, this.basePath));
|
|
6149
7180
|
}
|
|
7181
|
+
/**
|
|
7182
|
+
* Renders a credential for a human with one of its `renderMethod` entries: a UNTP `RenderTemplate2024` (Handlebars, the output in its `mediaType`: `text/html`, the default, or `text/plain`) or a W3C `TemplateRenderMethod` of the `html` suite (a wrapper document to show in an `iframe` with `sandbox=\"allow-scripts\"` and `srcdoc`) or the `card` suite (a JSON card). By default the first method that can be rendered is used. A `signedVc` is verified (its signature, validity and status) before it is rendered, and `X-Credential-Verified` is `true`; one that fails is `422`. A `vc` is a credential document rendered as it is, with `X-Credential-Verified: false`. A credential with no render method that matches, or a method that cannot be rendered (`nfc`, a template of another `mediaType`, or an unknown type), is `422` with `no render method` or `render suite unsupported`; an invalid one is `422` with `invalid render method`, a template that cannot be fetched or does not match its digest `render template unavailable`, and one that fails or runs too long `render failed`. A remote template is fetched over https only, within 5 s and 1 MiB, and must match its `digestMultibase`. Rendering stops after 2 s or 1 MiB of output. A template that runs on past that still counts against the renderings the wallet runs at once (`render.maxConcurrent`); when none is free, the response is `503`.
|
|
7183
|
+
* @param {string} walletId
|
|
7184
|
+
* @param {VerifierRenderRequest} verifierRenderRequest
|
|
7185
|
+
* @param {*} [options] Override http request option.
|
|
7186
|
+
* @throws {RequiredError}
|
|
7187
|
+
*/
|
|
7188
|
+
verifierRender(walletId, verifierRenderRequest, options) {
|
|
7189
|
+
return (0, exports.DefaultApiFp)(this.configuration).verifierRender(walletId, verifierRenderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7190
|
+
}
|
|
7191
|
+
/**
|
|
7192
|
+
* Resolves a DID into the RFC 9264 linkset of the UNTP links its DID document advertises and, with `fetch`, fetches the linked credentials and verifies them. A credential that fails is reported in `credentials` and `verification.failed`, with the response still 200: `verification.ok` is the verdict.
|
|
7193
|
+
* @param {string} walletId
|
|
7194
|
+
* @param {string} identifier The DID to resolve.
|
|
7195
|
+
* @param {string} [linkType] The link types to fetch, comma separated (e.g. `dpp,dcc`), or `all` (the default). The linkset uses the UNTP 0.8.0 relations: `dpp`, `linkset` for an identity resolver, and `https://test.uncefact.org/vocabulary/link-type/<type>` for the others. A DID document\'s UNTP 0.7 service types (`untp:dia`, bare `dcc`) are read as the same link types.
|
|
7196
|
+
* @param {boolean} [fetch] Fetch and verify the linked credentials.
|
|
7197
|
+
* @param {boolean} [verify] Verify the fetched credentials\' dates, status and schema, besides their signature.
|
|
7198
|
+
* @param {boolean} [verifyIssuer] Also verify whether the wallet\'s trust framework trusts the DID, as `/verifier/did` does, and report it as `issuer`. A wallet whose trust framework does not verify DIDs reports no `issuer`, and is `422` when `verifyIssuer` is set explicitly. A UNTP wallet enforces the anchor on every signature anyway; this reports it.
|
|
7199
|
+
* @param {*} [options] Override http request option.
|
|
7200
|
+
* @throws {RequiredError}
|
|
7201
|
+
*/
|
|
7202
|
+
verifierUntpResolve(walletId, identifier, linkType, fetch, verify, verifyIssuer, options) {
|
|
7203
|
+
return (0, exports.DefaultApiFp)(this.configuration).verifierUntpResolve(walletId, identifier, linkType, fetch, verify, verifyIssuer, options).then((request) => request(this.axios, this.basePath));
|
|
7204
|
+
}
|
|
6150
7205
|
/**
|
|
6151
7206
|
* Creates a new wallet for the authenticated client.
|
|
6152
7207
|
* @param {WalletCreatePayload} [walletCreatePayload]
|
|
@@ -6196,11 +7251,12 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
6196
7251
|
* Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.
|
|
6197
7252
|
* @param {string} [ownerId]
|
|
6198
7253
|
* @param {string} [searchName] Wallet name to search using \"begins-with\" filter
|
|
7254
|
+
* @param {string} [tenantId] Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
|
|
6199
7255
|
* @param {*} [options] Override http request option.
|
|
6200
7256
|
* @throws {RequiredError}
|
|
6201
7257
|
*/
|
|
6202
|
-
walletList(ownerId, searchName, options) {
|
|
6203
|
-
return (0, exports.DefaultApiFp)(this.configuration).walletList(ownerId, searchName, options).then((request) => request(this.axios, this.basePath));
|
|
7258
|
+
walletList(ownerId, searchName, tenantId, options) {
|
|
7259
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletList(ownerId, searchName, tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
6204
7260
|
}
|
|
6205
7261
|
/**
|
|
6206
7262
|
* Gets a specific notification by state
|
|
@@ -6240,7 +7296,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
6240
7296
|
return (0, exports.DefaultApiFp)(this.configuration).walletNotifications(walletId, eventType, state, lastEventID, options).then((request) => request(this.axios, this.basePath));
|
|
6241
7297
|
}
|
|
6242
7298
|
/**
|
|
6243
|
-
* Update wallet metadata and configuration.
|
|
7299
|
+
* Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. A Tenant Owner of the wallet\'s tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
|
|
6244
7300
|
* @param {string} walletId
|
|
6245
7301
|
* @param {WalletPatchPayload} [walletPatchPayload]
|
|
6246
7302
|
* @param {*} [options] Override http request option.
|