@triveria/wallet 0.0.329 → 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.
Files changed (3) hide show
  1. package/api.d.ts +1011 -177
  2. package/api.js +1111 -344
  3. 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.WmpEntityListEntityTypeEnum = exports.CredentialPayloadGetFormEnum = 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.TrustListKind = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.StatusPurpose = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = 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;
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
- * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
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 {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
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
- credentialRequestInit: (walletId_1, credentialRequest_1, ...args_1) => __awaiter(this, [walletId_1, credentialRequest_1, ...args_1], void 0, function* (walletId, credentialRequest, options = {}) {
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)('credentialRequestInit', 'walletId', walletId);
731
- const localVarPath = `/credentials/request/init`;
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: 'POST' }, baseOptions), options);
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
- localVarHeaderParameter['Content-Type'] = 'application/json';
745
- localVarHeaderParameter['Accept'] = 'application/json';
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
- * Revoke a specific Verifiable Credential
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
- credentialRevoke: (credentialId_1, walletId_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, ...args_1], void 0, function* (credentialId, walletId, options = {}) {
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)('credentialRevoke', 'credentialId', credentialId);
849
+ (0, common_1.assertParamExists)('credentialRenderMethods', 'credentialId', credentialId);
768
850
  // verify required parameter 'walletId' is not null or undefined
769
- (0, common_1.assertParamExists)('credentialRevoke', 'walletId', walletId);
770
- const localVarPath = `/credentials/{credential_id}/revoke`
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: 'POST' }, baseOptions), options);
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
- * Suspend a Verifiable Credential issued with the `suspension` status purpose (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.
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
- credentialSuspend: (credentialId_1, walletId_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, ...args_1], void 0, function* (credentialId, walletId, options = {}) {
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)('credentialSuspend', 'walletId', walletId);
808
- const localVarPath = `/credentials/{credential_id}/suspend`
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
- * Lift the suspension of a Verifiable Credential.
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
- credentialUnsuspend: (credentialId_1, walletId_1, ...args_1) => __awaiter(this, [credentialId_1, walletId_1, ...args_1], void 0, function* (credentialId, walletId, options = {}) {
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)('credentialUnsuspend', 'credentialId', credentialId);
925
+ (0, common_1.assertParamExists)('credentialRevoke', 'credentialId', credentialId);
844
926
  // verify required parameter 'walletId' is not null or undefined
845
- (0, common_1.assertParamExists)('credentialUnsuspend', 'walletId', walletId);
846
- const localVarPath = `/credentials/{credential_id}/suspend`
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: 'DELETE' }, baseOptions), options);
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
- * 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.
874
- * @param {string} deferredId Deferred token
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
- deferredStatus: (deferredId_1, walletId_1, ...args_1) => __awaiter(this, [deferredId_1, walletId_1, ...args_1], void 0, function* (deferredId, walletId, options = {}) {
880
- // verify required parameter 'deferredId' is not null or undefined
881
- (0, common_1.assertParamExists)('deferredStatus', 'deferredId', deferredId);
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)('deferredStatus', 'walletId', walletId);
884
- const localVarPath = `/deferred/{deferred_id}`
885
- .replace('{deferred_id}', encodeURIComponent(String(deferredId)));
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: 'GET' }, baseOptions), options);
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
- * Gets the DID Document of the wallet.
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
- didDocumentGet: (walletId_1, ...args_1) => __awaiter(this, [walletId_1, ...args_1], void 0, function* (walletId, options = {}) {
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)('didDocumentGet', 'walletId', walletId);
919
- const localVarPath = `/{wallet_id}/did.json`
920
- .replace('{wallet_id}', encodeURIComponent(String(walletId)));
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: 'GET' }, baseOptions), options);
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
- * Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
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
- healthCheck: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
945
- const localVarPath = `/health`;
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
- * 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.
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
- holderCreateAuthOffer: (walletId_1, holderAuthOfferCreationRequest_1, ...args_1) => __awaiter(this, [walletId_1, holderAuthOfferCreationRequest_1, ...args_1], void 0, function* (walletId, holderAuthOfferCreationRequest, options = {}) {
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)('holderCreateAuthOffer', 'walletId', walletId);
974
- const localVarPath = `/offer/create/intime`;
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: 'POST' }, baseOptions), options);
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
- * 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`.
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
- 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 = {}) {
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)('holderCredentialsPresentAfterConsent', 'walletId', walletId);
1012
- // verify required parameter 'interactionId' is not null or undefined
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: 'POST' }, baseOptions), options);
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
- * Responds to an ID token request
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 {IdTokenSendRequest} [idTokenSendRequest]
1137
+ * @param {DidDocumentPatch} didDocumentPatch
1046
1138
  * @param {*} [options] Override http request option.
1047
1139
  * @throws {RequiredError}
1048
1140
  */
1049
- holderIdTokenSend: (walletId_1, idTokenSendRequest_1, ...args_1) => __awaiter(this, [walletId_1, idTokenSendRequest_1, ...args_1], void 0, function* (walletId, idTokenSendRequest, options = {}) {
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)('holderIdTokenSend', 'walletId', walletId);
1052
- const localVarPath = `/holder/id-token/send`;
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: 'POST' }, baseOptions), options);
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)(idTokenSendRequest, localVarRequestOptions, configuration);
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
- * Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
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
- holderLinkedVpCreate: (walletId_1, linkedVpCreateRequest_1, ...args_1) => __awaiter(this, [walletId_1, linkedVpCreateRequest_1, ...args_1], void 0, function* (walletId, linkedVpCreateRequest, options = {}) {
1087
- // verify required parameter 'walletId' is not null or undefined
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: 'POST' }, baseOptions), options);
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
- * Deletes a linked VP
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 {string} linkedVpId
1201
+ * @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
1120
1202
  * @param {*} [options] Override http request option.
1121
1203
  * @throws {RequiredError}
1122
1204
  */
1123
- holderLinkedVpDelete: (walletId_1, linkedVpId_1, ...args_1) => __awaiter(this, [walletId_1, linkedVpId_1, ...args_1], void 0, function* (walletId, linkedVpId, options = {}) {
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)('holderLinkedVpDelete', 'walletId', walletId);
1126
- // verify required parameter 'linkedVpId' is not null or undefined
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: 'DELETE' }, baseOptions), options);
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
- * Returns metadata and content of a specific linked Verifiable Presentation, including the credentials it contains and its DID document service entry URL.
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} linkedVpId
1238
+ * @param {string} interactionId
1239
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
1158
1240
  * @param {*} [options] Override http request option.
1159
1241
  * @throws {RequiredError}
1160
1242
  */
1161
- holderLinkedVpGetDetails: (walletId_1, linkedVpId_1, ...args_1) => __awaiter(this, [walletId_1, linkedVpId_1, ...args_1], void 0, function* (walletId, linkedVpId, options = {}) {
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)('holderLinkedVpGetDetails', 'walletId', walletId);
1164
- // verify required parameter 'linkedVpId' is not null or undefined
1165
- (0, common_1.assertParamExists)('holderLinkedVpGetDetails', 'linkedVpId', linkedVpId);
1166
- const localVarPath = `/holder/linked-vp/{linked_vp_id}`
1167
- .replace('{linked_vp_id}', encodeURIComponent(String(linkedVpId)));
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: 'GET' }, baseOptions), options);
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
- * Returns all linked Verifiable Presentations published in the wallet\'s DID document,
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
- holderLinkedVpList: (walletId_1, ...args_1) => __awaiter(this, [walletId_1, ...args_1], void 0, function* (walletId, options = {}) {
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)('holderLinkedVpList', 'walletId', walletId);
1201
- const localVarPath = `/holder/linked-vp`;
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: 'GET' }, baseOptions), options);
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,
@@ -1406,6 +1493,49 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1406
1493
  options: localVarRequestOptions,
1407
1494
  };
1408
1495
  }),
1496
+ /**
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.
1498
+ * @param {string} walletId
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
1501
+ * @param {*} [options] Override http request option.
1502
+ * @throws {RequiredError}
1503
+ */
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 = {}) {
1505
+ // verify required parameter 'walletId' is not null or undefined
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`;
1510
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1511
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1512
+ let baseOptions;
1513
+ if (configuration) {
1514
+ baseOptions = configuration.baseOptions;
1515
+ }
1516
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1517
+ const localVarHeaderParameter = {};
1518
+ const localVarQueryParameter = {};
1519
+ // authentication accessToken required
1520
+ // http bearer authentication required
1521
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1522
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1523
+ localVarHeaderParameter['Accept'] = 'application/json';
1524
+ if (walletId != null) {
1525
+ localVarHeaderParameter['wallet-id'] = String(walletId);
1526
+ }
1527
+ if (idempotencyKey != null) {
1528
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
1529
+ }
1530
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1531
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1532
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1533
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(issuerDetachedJwsSignRequest, localVarRequestOptions, configuration);
1534
+ return {
1535
+ url: (0, common_1.toPathString)(localVarUrlObj),
1536
+ options: localVarRequestOptions,
1537
+ };
1538
+ }),
1409
1539
  /**
1410
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.
1411
1541
  * @param {string} walletId
@@ -2280,32 +2410,303 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2280
2410
  if (configuration) {
2281
2411
  baseOptions = configuration.baseOptions;
2282
2412
  }
2283
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2413
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2414
+ const localVarHeaderParameter = {};
2415
+ const localVarQueryParameter = {};
2416
+ // authentication accessToken required
2417
+ // http bearer authentication required
2418
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2419
+ localVarHeaderParameter['Accept'] = 'application/json';
2420
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2421
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2422
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2423
+ return {
2424
+ url: (0, common_1.toPathString)(localVarUrlObj),
2425
+ options: localVarRequestOptions,
2426
+ };
2427
+ }),
2428
+ /**
2429
+ * Removes a UNTP link from the wallet\'s DID document and stops serving its credential.
2430
+ * @param {string} walletId
2431
+ * @param {string} serviceId The service id of the link, in full (&#x60;&lt;did&gt;#&lt;fragment&gt;&#x60;) or as its fragment.
2432
+ * @param {*} [options] Override http request option.
2433
+ * @throws {RequiredError}
2434
+ */
2435
+ untpLinkDelete: (walletId_1, serviceId_1, ...args_1) => __awaiter(this, [walletId_1, serviceId_1, ...args_1], void 0, function* (walletId, serviceId, options = {}) {
2436
+ // verify required parameter 'walletId' is not null or undefined
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`;
2513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2514
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2515
+ let baseOptions;
2516
+ if (configuration) {
2517
+ baseOptions = configuration.baseOptions;
2518
+ }
2519
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2520
+ const localVarHeaderParameter = {};
2521
+ const localVarQueryParameter = {};
2522
+ // authentication accessToken required
2523
+ // http bearer authentication required
2524
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2525
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2526
+ localVarHeaderParameter['Accept'] = 'application/json';
2527
+ if (walletId != null) {
2528
+ localVarHeaderParameter['wallet-id'] = String(walletId);
2529
+ }
2530
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2531
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2532
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2533
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(untpLinkPublishRequest, localVarRequestOptions, configuration);
2534
+ return {
2535
+ url: (0, common_1.toPathString)(localVarUrlObj),
2536
+ options: localVarRequestOptions,
2537
+ };
2538
+ }),
2539
+ /**
2540
+ * Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet\'s own DID is one of them.
2541
+ * @param {string} walletId
2542
+ * @param {*} [options] Override http request option.
2543
+ * @throws {RequiredError}
2544
+ */
2545
+ untpRegistryList: (walletId_1, ...args_1) => __awaiter(this, [walletId_1, ...args_1], void 0, function* (walletId, options = {}) {
2546
+ // verify required parameter 'walletId' is not null or undefined
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`;
2586
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2587
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2588
+ let baseOptions;
2589
+ if (configuration) {
2590
+ baseOptions = configuration.baseOptions;
2591
+ }
2592
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2593
+ const localVarHeaderParameter = {};
2594
+ const localVarQueryParameter = {};
2595
+ // authentication accessToken required
2596
+ // http bearer authentication required
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. &#x60;DigitalProductPassport&#x60;.
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);
2638
+ if (did !== undefined) {
2639
+ localVarQueryParameter['did'] = did;
2640
+ }
2641
+ if (credentialType !== undefined) {
2642
+ localVarQueryParameter['credentialType'] = credentialType;
2643
+ }
2644
+ localVarHeaderParameter['Accept'] = 'application/json';
2645
+ if (walletId != null) {
2646
+ localVarHeaderParameter['wallet-id'] = String(walletId);
2647
+ }
2648
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2649
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2650
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2651
+ return {
2652
+ url: (0, common_1.toPathString)(localVarUrlObj),
2653
+ options: localVarRequestOptions,
2654
+ };
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);
2284
2674
  const localVarHeaderParameter = {};
2285
2675
  const localVarQueryParameter = {};
2286
2676
  // authentication accessToken required
2287
2677
  // http bearer authentication required
2288
2678
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2679
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2289
2680
  localVarHeaderParameter['Accept'] = 'application/json';
2681
+ if (walletId != null) {
2682
+ localVarHeaderParameter['wallet-id'] = String(walletId);
2683
+ }
2290
2684
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2291
2685
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2292
2686
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2687
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyInitRequest, localVarRequestOptions, configuration);
2293
2688
  return {
2294
2689
  url: (0, common_1.toPathString)(localVarUrlObj),
2295
2690
  options: localVarRequestOptions,
2296
2691
  };
2297
2692
  }),
2298
2693
  /**
2299
- * 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.
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.
2300
2695
  * @param {string} walletId
2301
- * @param {VerifyInitRequest} [verifyInitRequest]
2696
+ * @param {boolean} extractVp Whether to extract VP attachment from the PDF
2697
+ * @param {File} [pdf]
2698
+ * @param {Array<string>} [trustedCertificates] Base64 encoded x509 certificates with which the PDF may be signed.
2699
+ * @param {Array<string>} [trustedListsUrl] URLs of ETSI trusted lists that will be used for verification purposes. If not provided, ETSI trust list configured for the wallet will be used.
2700
+ * @param {Array<string>} [trustedListSigningCertificates] Base64 encoded x509 certificates with which the ETSI trusted lists may be signed. If not provided, values from wallet config will be used.
2302
2701
  * @param {*} [options] Override http request option.
2303
2702
  * @throws {RequiredError}
2304
2703
  */
2305
- verifierInitUrlCreate: (walletId_1, verifyInitRequest_1, ...args_1) => __awaiter(this, [walletId_1, verifyInitRequest_1, ...args_1], void 0, function* (walletId, verifyInitRequest, options = {}) {
2704
+ verifierPdfVerify: (walletId_1, extractVp_1, pdf_1, trustedCertificates_1, trustedListsUrl_1, trustedListSigningCertificates_1, ...args_1) => __awaiter(this, [walletId_1, extractVp_1, pdf_1, trustedCertificates_1, trustedListsUrl_1, trustedListSigningCertificates_1, ...args_1], void 0, function* (walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options = {}) {
2306
2705
  // verify required parameter 'walletId' is not null or undefined
2307
- (0, common_1.assertParamExists)('verifierInitUrlCreate', 'walletId', walletId);
2308
- const localVarPath = `/verifier/init`;
2706
+ (0, common_1.assertParamExists)('verifierPdfVerify', 'walletId', walletId);
2707
+ // verify required parameter 'extractVp' is not null or undefined
2708
+ (0, common_1.assertParamExists)('verifierPdfVerify', 'extractVp', extractVp);
2709
+ const localVarPath = `/verifier/pdf`;
2309
2710
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2310
2711
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2311
2712
  let baseOptions;
@@ -2315,10 +2716,26 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2315
2716
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2316
2717
  const localVarHeaderParameter = {};
2317
2718
  const localVarQueryParameter = {};
2719
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
2318
2720
  // authentication accessToken required
2319
2721
  // http bearer authentication required
2320
2722
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2321
- localVarHeaderParameter['Content-Type'] = 'application/json';
2723
+ if (pdf !== undefined) {
2724
+ localVarFormParams.append('pdf', pdf);
2725
+ }
2726
+ if (extractVp !== undefined) {
2727
+ localVarFormParams.append('extractVp', String(extractVp));
2728
+ }
2729
+ if (trustedCertificates) {
2730
+ localVarFormParams.append('trustedCertificates', trustedCertificates.join(base_1.COLLECTION_FORMATS.csv));
2731
+ }
2732
+ if (trustedListsUrl) {
2733
+ localVarFormParams.append('trustedListsUrl', trustedListsUrl.join(base_1.COLLECTION_FORMATS.csv));
2734
+ }
2735
+ if (trustedListSigningCertificates) {
2736
+ localVarFormParams.append('trustedListSigningCertificates', trustedListSigningCertificates.join(base_1.COLLECTION_FORMATS.csv));
2737
+ }
2738
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
2322
2739
  localVarHeaderParameter['Accept'] = 'application/json';
2323
2740
  if (walletId != null) {
2324
2741
  localVarHeaderParameter['wallet-id'] = String(walletId);
@@ -2326,25 +2743,25 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2326
2743
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2327
2744
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2328
2745
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2329
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyInitRequest, localVarRequestOptions, configuration);
2746
+ localVarRequestOptions.data = localVarFormParams;
2330
2747
  return {
2331
2748
  url: (0, common_1.toPathString)(localVarUrlObj),
2332
2749
  options: localVarRequestOptions,
2333
2750
  };
2334
2751
  }),
2335
2752
  /**
2336
- * Fetches linked presentations from DID document and verifies them.
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`.
2337
2754
  * @param {string} walletId
2338
- * @param {string} did
2755
+ * @param {VerifierRenderRequest} verifierRenderRequest
2339
2756
  * @param {*} [options] Override http request option.
2340
2757
  * @throws {RequiredError}
2341
2758
  */
2342
- verifierLinkedVpVerify: (walletId_1, did_1, ...args_1) => __awaiter(this, [walletId_1, did_1, ...args_1], void 0, function* (walletId, did, options = {}) {
2759
+ verifierRender: (walletId_1, verifierRenderRequest_1, ...args_1) => __awaiter(this, [walletId_1, verifierRenderRequest_1, ...args_1], void 0, function* (walletId, verifierRenderRequest, options = {}) {
2343
2760
  // verify required parameter 'walletId' is not null or undefined
2344
- (0, common_1.assertParamExists)('verifierLinkedVpVerify', 'walletId', walletId);
2345
- // verify required parameter 'did' is not null or undefined
2346
- (0, common_1.assertParamExists)('verifierLinkedVpVerify', 'did', did);
2347
- const localVarPath = `/verifier/linked-vp`;
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`;
2348
2765
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2349
2766
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2350
2767
  let baseOptions;
@@ -2357,67 +2774,64 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2357
2774
  // authentication accessToken required
2358
2775
  // http bearer authentication required
2359
2776
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2360
- if (did !== undefined) {
2361
- localVarQueryParameter['did'] = did;
2362
- }
2363
- localVarHeaderParameter['Accept'] = 'application/json';
2777
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2778
+ localVarHeaderParameter['Accept'] = 'text/html,text/plain,application/json';
2364
2779
  if (walletId != null) {
2365
2780
  localVarHeaderParameter['wallet-id'] = String(walletId);
2366
2781
  }
2367
2782
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2368
2783
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2369
2784
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2785
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifierRenderRequest, localVarRequestOptions, configuration);
2370
2786
  return {
2371
2787
  url: (0, common_1.toPathString)(localVarUrlObj),
2372
2788
  options: localVarRequestOptions,
2373
2789
  };
2374
2790
  }),
2375
2791
  /**
2376
- * Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document Maximum size of the PDF document is 50 MB.
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.
2377
2793
  * @param {string} walletId
2378
- * @param {boolean} extractVp Whether to extract VP attachment from the PDF
2379
- * @param {File} [pdf]
2380
- * @param {Array<string>} [trustedCertificates] Base64 encoded x509 certificates with which the PDF may be signed.
2381
- * @param {Array<string>} [trustedListsUrl] URLs of ETSI trusted lists that will be used for verification purposes. If not provided, ETSI trust list configured for the wallet will be used.
2382
- * @param {Array<string>} [trustedListSigningCertificates] Base64 encoded x509 certificates with which the ETSI trusted lists may be signed. If not provided, values from wallet config will be used.
2794
+ * @param {string} identifier The DID to resolve.
2795
+ * @param {string} [linkType] The link types to fetch, comma separated (e.g. &#x60;dpp,dcc&#x60;), or &#x60;all&#x60; (the default). The linkset uses the UNTP 0.8.0 relations: &#x60;dpp&#x60;, &#x60;linkset&#x60; for an identity resolver, and &#x60;https://test.uncefact.org/vocabulary/link-type/&lt;type&gt;&#x60; for the others. A DID document\&#39;s UNTP 0.7 service types (&#x60;untp:dia&#x60;, bare &#x60;dcc&#x60;) 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\&#39; dates, status and schema, besides their signature.
2798
+ * @param {boolean} [verifyIssuer] Also verify whether the wallet\&#39;s trust framework trusts the DID, as &#x60;/verifier/did&#x60; does, and report it as &#x60;issuer&#x60;. A wallet whose trust framework does not verify DIDs reports no &#x60;issuer&#x60;, and is &#x60;422&#x60; when &#x60;verifyIssuer&#x60; is set explicitly. A UNTP wallet enforces the anchor on every signature anyway; this reports it.
2383
2799
  * @param {*} [options] Override http request option.
2384
2800
  * @throws {RequiredError}
2385
2801
  */
2386
- verifierPdfVerify: (walletId_1, extractVp_1, pdf_1, trustedCertificates_1, trustedListsUrl_1, trustedListSigningCertificates_1, ...args_1) => __awaiter(this, [walletId_1, extractVp_1, pdf_1, trustedCertificates_1, trustedListsUrl_1, trustedListSigningCertificates_1, ...args_1], void 0, function* (walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options = {}) {
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 = {}) {
2387
2803
  // verify required parameter 'walletId' is not null or undefined
2388
- (0, common_1.assertParamExists)('verifierPdfVerify', 'walletId', walletId);
2389
- // verify required parameter 'extractVp' is not null or undefined
2390
- (0, common_1.assertParamExists)('verifierPdfVerify', 'extractVp', extractVp);
2391
- const localVarPath = `/verifier/pdf`;
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`;
2392
2808
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2393
2809
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2394
2810
  let baseOptions;
2395
2811
  if (configuration) {
2396
2812
  baseOptions = configuration.baseOptions;
2397
2813
  }
2398
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2814
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2399
2815
  const localVarHeaderParameter = {};
2400
2816
  const localVarQueryParameter = {};
2401
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
2402
2817
  // authentication accessToken required
2403
2818
  // http bearer authentication required
2404
2819
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2405
- if (pdf !== undefined) {
2406
- localVarFormParams.append('pdf', pdf);
2820
+ if (identifier !== undefined) {
2821
+ localVarQueryParameter['identifier'] = identifier;
2407
2822
  }
2408
- if (extractVp !== undefined) {
2409
- localVarFormParams.append('extractVp', String(extractVp));
2823
+ if (linkType !== undefined) {
2824
+ localVarQueryParameter['linkType'] = linkType;
2410
2825
  }
2411
- if (trustedCertificates) {
2412
- localVarFormParams.append('trustedCertificates', trustedCertificates.join(base_1.COLLECTION_FORMATS.csv));
2826
+ if (fetch !== undefined) {
2827
+ localVarQueryParameter['fetch'] = fetch;
2413
2828
  }
2414
- if (trustedListsUrl) {
2415
- localVarFormParams.append('trustedListsUrl', trustedListsUrl.join(base_1.COLLECTION_FORMATS.csv));
2829
+ if (verify !== undefined) {
2830
+ localVarQueryParameter['verify'] = verify;
2416
2831
  }
2417
- if (trustedListSigningCertificates) {
2418
- localVarFormParams.append('trustedListSigningCertificates', trustedListSigningCertificates.join(base_1.COLLECTION_FORMATS.csv));
2832
+ if (verifyIssuer !== undefined) {
2833
+ localVarQueryParameter['verifyIssuer'] = verifyIssuer;
2419
2834
  }
2420
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
2421
2835
  localVarHeaderParameter['Accept'] = 'application/json';
2422
2836
  if (walletId != null) {
2423
2837
  localVarHeaderParameter['wallet-id'] = String(walletId);
@@ -2425,7 +2839,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2425
2839
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2426
2840
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2427
2841
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2428
- localVarRequestOptions.data = localVarFormParams;
2429
2842
  return {
2430
2843
  url: (0, common_1.toPathString)(localVarUrlObj),
2431
2844
  options: localVarRequestOptions,
@@ -3656,6 +4069,24 @@ const DefaultApiFp = function (configuration) {
3656
4069
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3657
4070
  });
3658
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
4077
+ * @param {CredentialIssueDirectRequest} [credentialIssueDirectRequest]
4078
+ * @param {*} [options] Override http request option.
4079
+ * @throws {RequiredError}
4080
+ */
4081
+ credentialIssueDirect(credentialId, walletId, idempotencyKey, credentialIssueDirectRequest, options) {
4082
+ return __awaiter(this, void 0, void 0, function* () {
4083
+ var _a, _b, _c;
4084
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssueDirect(credentialId, walletId, idempotencyKey, credentialIssueDirectRequest, options);
4085
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
4087
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4088
+ });
4089
+ },
3659
4090
  /**
3660
4091
  * Retrieves a list of credentials.
3661
4092
  * @param {string} walletId
@@ -3748,6 +4179,41 @@ const DefaultApiFp = function (configuration) {
3748
4179
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3749
4180
  });
3750
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\&#39;s &#x60;renderMethod&#x60;.
4187
+ * @param {RenderSuite} [suite] Use the first render method of this suite.
4188
+ * @param {string} [mediaQuery] Use the first render method with exactly this &#x60;mediaQuery&#x60;.
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
+ },
3751
4217
  /**
3752
4218
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3753
4219
  * @param {string} walletId
@@ -3765,16 +4231,17 @@ const DefaultApiFp = function (configuration) {
3765
4231
  });
3766
4232
  },
3767
4233
  /**
3768
- * 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.
3769
4235
  * @param {string} credentialId Verifiable Credential Identifier
3770
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
3771
4238
  * @param {*} [options] Override http request option.
3772
4239
  * @throws {RequiredError}
3773
4240
  */
3774
- credentialRevoke(credentialId, walletId, options) {
4241
+ credentialRevoke(credentialId, walletId, idempotencyKey, options) {
3775
4242
  return __awaiter(this, void 0, void 0, function* () {
3776
4243
  var _a, _b, _c;
3777
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRevoke(credentialId, walletId, options);
4244
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRevoke(credentialId, walletId, idempotencyKey, options);
3778
4245
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3779
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;
3780
4247
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3844,128 +4311,96 @@ const DefaultApiFp = function (configuration) {
3844
4311
  });
3845
4312
  },
3846
4313
  /**
3847
- * Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
3848
- * @param {*} [options] Override http request option.
3849
- * @throws {RequiredError}
3850
- */
3851
- healthCheck(options) {
3852
- return __awaiter(this, void 0, void 0, function* () {
3853
- var _a, _b, _c;
3854
- const localVarAxiosArgs = yield localVarAxiosParamCreator.healthCheck(options);
3855
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3856
- 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;
3857
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3858
- });
3859
- },
3860
- /**
3861
- * 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.
3862
- * @param {string} walletId
3863
- * @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
3864
- * @param {*} [options] Override http request option.
3865
- * @throws {RequiredError}
3866
- */
3867
- holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
3868
- return __awaiter(this, void 0, void 0, function* () {
3869
- var _a, _b, _c;
3870
- const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options);
3871
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3872
- 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;
3873
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3874
- });
3875
- },
3876
- /**
3877
- * 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.
3878
4315
  * @param {string} walletId
3879
- * @param {string} interactionId
3880
- * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
3881
4316
  * @param {*} [options] Override http request option.
3882
4317
  * @throws {RequiredError}
3883
4318
  */
3884
- holderCredentialsPresentAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options) {
4319
+ didDocumentLocalGet(walletId, options) {
3885
4320
  return __awaiter(this, void 0, void 0, function* () {
3886
4321
  var _a, _b, _c;
3887
- const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCredentialsPresentAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options);
4322
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.didDocumentLocalGet(walletId, options);
3888
4323
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3889
- 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;
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;
3890
4325
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3891
4326
  });
3892
4327
  },
3893
4328
  /**
3894
- * Responds to an ID token request
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`.
3895
4330
  * @param {string} walletId
3896
- * @param {IdTokenSendRequest} [idTokenSendRequest]
4331
+ * @param {DidDocumentPatch} didDocumentPatch
3897
4332
  * @param {*} [options] Override http request option.
3898
4333
  * @throws {RequiredError}
3899
4334
  */
3900
- holderIdTokenSend(walletId, idTokenSendRequest, options) {
4335
+ didDocumentPatch(walletId, didDocumentPatch, options) {
3901
4336
  return __awaiter(this, void 0, void 0, function* () {
3902
4337
  var _a, _b, _c;
3903
- const localVarAxiosArgs = yield localVarAxiosParamCreator.holderIdTokenSend(walletId, idTokenSendRequest, options);
4338
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.didDocumentPatch(walletId, didDocumentPatch, options);
3904
4339
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3905
- 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;
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;
3906
4341
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3907
4342
  });
3908
4343
  },
3909
4344
  /**
3910
- * Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
3911
- * @param {string} walletId
3912
- * @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
4345
+ * Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
3913
4346
  * @param {*} [options] Override http request option.
3914
4347
  * @throws {RequiredError}
3915
4348
  */
3916
- holderLinkedVpCreate(walletId, linkedVpCreateRequest, options) {
4349
+ healthCheck(options) {
3917
4350
  return __awaiter(this, void 0, void 0, function* () {
3918
4351
  var _a, _b, _c;
3919
- const localVarAxiosArgs = yield localVarAxiosParamCreator.holderLinkedVpCreate(walletId, linkedVpCreateRequest, options);
4352
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.healthCheck(options);
3920
4353
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3921
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderLinkedVpCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
3922
4355
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3923
4356
  });
3924
4357
  },
3925
4358
  /**
3926
- * Deletes a linked VP
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.
3927
4360
  * @param {string} walletId
3928
- * @param {string} linkedVpId
4361
+ * @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
3929
4362
  * @param {*} [options] Override http request option.
3930
4363
  * @throws {RequiredError}
3931
4364
  */
3932
- holderLinkedVpDelete(walletId, linkedVpId, options) {
4365
+ holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
3933
4366
  return __awaiter(this, void 0, void 0, function* () {
3934
4367
  var _a, _b, _c;
3935
- const localVarAxiosArgs = yield localVarAxiosParamCreator.holderLinkedVpDelete(walletId, linkedVpId, options);
4368
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options);
3936
4369
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3937
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderLinkedVpDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
3938
4371
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3939
4372
  });
3940
4373
  },
3941
4374
  /**
3942
- * Returns metadata and content of a specific linked Verifiable Presentation, including the credentials it contains and its DID document service entry URL.
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`.
3943
4376
  * @param {string} walletId
3944
- * @param {string} linkedVpId
4377
+ * @param {string} interactionId
4378
+ * @param {InteractionAuthorizationConsent} [interactionAuthorizationConsent]
3945
4379
  * @param {*} [options] Override http request option.
3946
4380
  * @throws {RequiredError}
3947
4381
  */
3948
- holderLinkedVpGetDetails(walletId, linkedVpId, options) {
4382
+ holderCredentialsPresentAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options) {
3949
4383
  return __awaiter(this, void 0, void 0, function* () {
3950
4384
  var _a, _b, _c;
3951
- const localVarAxiosArgs = yield localVarAxiosParamCreator.holderLinkedVpGetDetails(walletId, linkedVpId, options);
4385
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCredentialsPresentAfterConsent(walletId, interactionId, interactionAuthorizationConsent, options);
3952
4386
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3953
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderLinkedVpGetDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
3954
4388
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3955
4389
  });
3956
4390
  },
3957
4391
  /**
3958
- * Returns all linked Verifiable Presentations published in the wallet\'s DID document,
4392
+ * Responds to an ID token request
3959
4393
  * @param {string} walletId
4394
+ * @param {IdTokenSendRequest} [idTokenSendRequest]
3960
4395
  * @param {*} [options] Override http request option.
3961
4396
  * @throws {RequiredError}
3962
4397
  */
3963
- holderLinkedVpList(walletId, options) {
4398
+ holderIdTokenSend(walletId, idTokenSendRequest, options) {
3964
4399
  return __awaiter(this, void 0, void 0, function* () {
3965
4400
  var _a, _b, _c;
3966
- const localVarAxiosArgs = yield localVarAxiosParamCreator.holderLinkedVpList(walletId, options);
4401
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.holderIdTokenSend(walletId, idTokenSendRequest, options);
3967
4402
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3968
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderLinkedVpList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
3969
4404
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3970
4405
  });
3971
4406
  },
@@ -4048,6 +4483,23 @@ const DefaultApiFp = function (configuration) {
4048
4483
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4049
4484
  });
4050
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
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
+ },
4051
4503
  /**
4052
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.
4053
4505
  * @param {string} walletId
@@ -4425,7 +4877,102 @@ const DefaultApiFp = function (configuration) {
4425
4877
  var _a, _b, _c;
4426
4878
  const localVarAxiosArgs = yield localVarAxiosParamCreator.trustListsGet(options);
4427
4879
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4428
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.trustListsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4880
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.trustListsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4881
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4882
+ });
4883
+ },
4884
+ /**
4885
+ * Removes a UNTP link from the wallet\'s DID document and stops serving its credential.
4886
+ * @param {string} walletId
4887
+ * @param {string} serviceId The service id of the link, in full (&#x60;&lt;did&gt;#&lt;fragment&gt;&#x60;) or as its fragment.
4888
+ * @param {*} [options] Override http request option.
4889
+ * @throws {RequiredError}
4890
+ */
4891
+ untpLinkDelete(walletId, serviceId, options) {
4892
+ return __awaiter(this, void 0, void 0, function* () {
4893
+ var _a, _b, _c;
4894
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.untpLinkDelete(walletId, serviceId, options);
4895
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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. &#x60;DigitalProductPassport&#x60;.
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;
4429
4976
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4430
4977
  });
4431
4978
  },
@@ -4446,38 +4993,58 @@ const DefaultApiFp = function (configuration) {
4446
4993
  });
4447
4994
  },
4448
4995
  /**
4449
- * Fetches linked presentations from DID document and verifies them.
4996
+ * Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document Maximum size of the PDF document is 50 MB.
4450
4997
  * @param {string} walletId
4451
- * @param {string} did
4998
+ * @param {boolean} extractVp Whether to extract VP attachment from the PDF
4999
+ * @param {File} [pdf]
5000
+ * @param {Array<string>} [trustedCertificates] Base64 encoded x509 certificates with which the PDF may be signed.
5001
+ * @param {Array<string>} [trustedListsUrl] URLs of ETSI trusted lists that will be used for verification purposes. If not provided, ETSI trust list configured for the wallet will be used.
5002
+ * @param {Array<string>} [trustedListSigningCertificates] Base64 encoded x509 certificates with which the ETSI trusted lists may be signed. If not provided, values from wallet config will be used.
4452
5003
  * @param {*} [options] Override http request option.
4453
5004
  * @throws {RequiredError}
4454
5005
  */
4455
- verifierLinkedVpVerify(walletId, did, options) {
5006
+ verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options) {
4456
5007
  return __awaiter(this, void 0, void 0, function* () {
4457
5008
  var _a, _b, _c;
4458
- const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierLinkedVpVerify(walletId, did, options);
5009
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options);
4459
5010
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4460
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.verifierLinkedVpVerify']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5011
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.verifierPdfVerify']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4461
5012
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4462
5013
  });
4463
5014
  },
4464
5015
  /**
4465
- * Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document Maximum size of the PDF document is 50 MB.
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`.
4466
5017
  * @param {string} walletId
4467
- * @param {boolean} extractVp Whether to extract VP attachment from the PDF
4468
- * @param {File} [pdf]
4469
- * @param {Array<string>} [trustedCertificates] Base64 encoded x509 certificates with which the PDF may be signed.
4470
- * @param {Array<string>} [trustedListsUrl] URLs of ETSI trusted lists that will be used for verification purposes. If not provided, ETSI trust list configured for the wallet will be used.
4471
- * @param {Array<string>} [trustedListSigningCertificates] Base64 encoded x509 certificates with which the ETSI trusted lists may be signed. If not provided, values from wallet config will be used.
5018
+ * @param {VerifierRenderRequest} verifierRenderRequest
4472
5019
  * @param {*} [options] Override http request option.
4473
5020
  * @throws {RequiredError}
4474
5021
  */
4475
- verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options) {
5022
+ verifierRender(walletId, verifierRenderRequest, options) {
4476
5023
  return __awaiter(this, void 0, void 0, function* () {
4477
5024
  var _a, _b, _c;
4478
- const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options);
5025
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierRender(walletId, verifierRenderRequest, options);
4479
5026
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4480
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.verifierPdfVerify']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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. &#x60;dpp,dcc&#x60;), or &#x60;all&#x60; (the default). The linkset uses the UNTP 0.8.0 relations: &#x60;dpp&#x60;, &#x60;linkset&#x60; for an identity resolver, and &#x60;https://test.uncefact.org/vocabulary/link-type/&lt;type&gt;&#x60; for the others. A DID document\&#39;s UNTP 0.7 service types (&#x60;untp:dia&#x60;, bare &#x60;dcc&#x60;) 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\&#39; dates, status and schema, besides their signature.
5038
+ * @param {boolean} [verifyIssuer] Also verify whether the wallet\&#39;s trust framework trusts the DID, as &#x60;/verifier/did&#x60; does, and report it as &#x60;issuer&#x60;. A wallet whose trust framework does not verify DIDs reports no &#x60;issuer&#x60;, and is &#x60;422&#x60; when &#x60;verifyIssuer&#x60; 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;
4481
5048
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4482
5049
  });
4483
5050
  },
@@ -5030,6 +5597,18 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5030
5597
  credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options) {
5031
5598
  return localVarFp.credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options).then((request) => request(axios, basePath));
5032
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
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
+ },
5033
5612
  /**
5034
5613
  * Retrieves a list of credentials.
5035
5614
  * @param {string} walletId
@@ -5092,6 +5671,29 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5092
5671
  credentialRawGet(credentialId, walletId, disclosedClaims, options) {
5093
5672
  return localVarFp.credentialRawGet(credentialId, walletId, disclosedClaims, options).then((request) => request(axios, basePath));
5094
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.
5676
+ * @param {string} credentialId Verifiable Credential Identifier
5677
+ * @param {string} walletId
5678
+ * @param {number} [index] The index of the render method to use, in the credential\&#39;s &#x60;renderMethod&#x60;.
5679
+ * @param {RenderSuite} [suite] Use the first render method of this suite.
5680
+ * @param {string} [mediaQuery] Use the first render method with exactly this &#x60;mediaQuery&#x60;.
5681
+ * @param {*} [options] Override http request option.
5682
+ * @throws {RequiredError}
5683
+ */
5684
+ credentialRender(credentialId, walletId, index, suite, mediaQuery, options) {
5685
+ return localVarFp.credentialRender(credentialId, walletId, index, suite, mediaQuery, options).then((request) => request(axios, basePath));
5686
+ },
5687
+ /**
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.
5689
+ * @param {string} credentialId Verifiable Credential Identifier
5690
+ * @param {string} walletId
5691
+ * @param {*} [options] Override http request option.
5692
+ * @throws {RequiredError}
5693
+ */
5694
+ credentialRenderMethods(credentialId, walletId, options) {
5695
+ return localVarFp.credentialRenderMethods(credentialId, walletId, options).then((request) => request(axios, basePath));
5696
+ },
5095
5697
  /**
5096
5698
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
5097
5699
  * @param {string} walletId
@@ -5103,14 +5705,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5103
5705
  return localVarFp.credentialRequestInit(walletId, credentialRequest, options).then((request) => request(axios, basePath));
5104
5706
  },
5105
5707
  /**
5106
- * 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.
5107
5709
  * @param {string} credentialId Verifiable Credential Identifier
5108
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
5109
5712
  * @param {*} [options] Override http request option.
5110
5713
  * @throws {RequiredError}
5111
5714
  */
5112
- credentialRevoke(credentialId, walletId, options) {
5113
- 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));
5114
5717
  },
5115
5718
  /**
5116
5719
  * Suspend a Verifiable Credential issued with the `suspension` status purpose (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.
@@ -5151,6 +5754,25 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5151
5754
  didDocumentGet(walletId, options) {
5152
5755
  return localVarFp.didDocumentGet(walletId, options).then((request) => request(axios, basePath));
5153
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
+ },
5154
5776
  /**
5155
5777
  * Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
5156
5778
  * @param {*} [options] Override http request option.
@@ -5190,45 +5812,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5190
5812
  holderIdTokenSend(walletId, idTokenSendRequest, options) {
5191
5813
  return localVarFp.holderIdTokenSend(walletId, idTokenSendRequest, options).then((request) => request(axios, basePath));
5192
5814
  },
5193
- /**
5194
- * Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
5195
- * @param {string} walletId
5196
- * @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
5197
- * @param {*} [options] Override http request option.
5198
- * @throws {RequiredError}
5199
- */
5200
- holderLinkedVpCreate(walletId, linkedVpCreateRequest, options) {
5201
- return localVarFp.holderLinkedVpCreate(walletId, linkedVpCreateRequest, options).then((request) => request(axios, basePath));
5202
- },
5203
- /**
5204
- * Deletes a linked VP
5205
- * @param {string} walletId
5206
- * @param {string} linkedVpId
5207
- * @param {*} [options] Override http request option.
5208
- * @throws {RequiredError}
5209
- */
5210
- holderLinkedVpDelete(walletId, linkedVpId, options) {
5211
- return localVarFp.holderLinkedVpDelete(walletId, linkedVpId, options).then((request) => request(axios, basePath));
5212
- },
5213
- /**
5214
- * Returns metadata and content of a specific linked Verifiable Presentation, including the credentials it contains and its DID document service entry URL.
5215
- * @param {string} walletId
5216
- * @param {string} linkedVpId
5217
- * @param {*} [options] Override http request option.
5218
- * @throws {RequiredError}
5219
- */
5220
- holderLinkedVpGetDetails(walletId, linkedVpId, options) {
5221
- return localVarFp.holderLinkedVpGetDetails(walletId, linkedVpId, options).then((request) => request(axios, basePath));
5222
- },
5223
- /**
5224
- * Returns all linked Verifiable Presentations published in the wallet\'s DID document,
5225
- * @param {string} walletId
5226
- * @param {*} [options] Override http request option.
5227
- * @throws {RequiredError}
5228
- */
5229
- holderLinkedVpList(walletId, options) {
5230
- return localVarFp.holderLinkedVpList(walletId, options).then((request) => request(axios, basePath));
5231
- },
5232
5815
  /**
5233
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.
5234
5817
  * @param {string} walletId
@@ -5278,6 +5861,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5278
5861
  issuerCredentialTypesList(url, options) {
5279
5862
  return localVarFp.issuerCredentialTypesList(url, options).then((request) => request(axios, basePath));
5280
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
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
+ },
5281
5875
  /**
5282
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.
5283
5877
  * @param {string} walletId
@@ -5516,24 +6110,73 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5516
6110
  return localVarFp.trustListsGet(options).then((request) => request(axios, basePath));
5517
6111
  },
5518
6112
  /**
5519
- * 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.
6113
+ * Removes a UNTP link from the wallet\'s DID document and stops serving its credential.
5520
6114
  * @param {string} walletId
5521
- * @param {VerifyInitRequest} [verifyInitRequest]
6115
+ * @param {string} serviceId The service id of the link, in full (&#x60;&lt;did&gt;#&lt;fragment&gt;&#x60;) or as its fragment.
5522
6116
  * @param {*} [options] Override http request option.
5523
6117
  * @throws {RequiredError}
5524
6118
  */
5525
- verifierInitUrlCreate(walletId, verifyInitRequest, options) {
5526
- return localVarFp.verifierInitUrlCreate(walletId, verifyInitRequest, options).then((request) => request(axios, basePath));
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. &#x60;DigitalProductPassport&#x60;.
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));
5527
6170
  },
5528
6171
  /**
5529
- * Fetches linked presentations from DID document and verifies them.
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.
5530
6173
  * @param {string} walletId
5531
- * @param {string} did
6174
+ * @param {VerifyInitRequest} [verifyInitRequest]
5532
6175
  * @param {*} [options] Override http request option.
5533
6176
  * @throws {RequiredError}
5534
6177
  */
5535
- verifierLinkedVpVerify(walletId, did, options) {
5536
- return localVarFp.verifierLinkedVpVerify(walletId, did, options).then((request) => request(axios, basePath));
6178
+ verifierInitUrlCreate(walletId, verifyInitRequest, options) {
6179
+ return localVarFp.verifierInitUrlCreate(walletId, verifyInitRequest, options).then((request) => request(axios, basePath));
5537
6180
  },
5538
6181
  /**
5539
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.
@@ -5549,6 +6192,30 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
5549
6192
  verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options) {
5550
6193
  return localVarFp.verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options).then((request) => request(axios, basePath));
5551
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. &#x60;dpp,dcc&#x60;), or &#x60;all&#x60; (the default). The linkset uses the UNTP 0.8.0 relations: &#x60;dpp&#x60;, &#x60;linkset&#x60; for an identity resolver, and &#x60;https://test.uncefact.org/vocabulary/link-type/&lt;type&gt;&#x60; for the others. A DID document\&#39;s UNTP 0.7 service types (&#x60;untp:dia&#x60;, bare &#x60;dcc&#x60;) 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\&#39; dates, status and schema, besides their signature.
6212
+ * @param {boolean} [verifyIssuer] Also verify whether the wallet\&#39;s trust framework trusts the DID, as &#x60;/verifier/did&#x60; does, and report it as &#x60;issuer&#x60;. A wallet whose trust framework does not verify DIDs reports no &#x60;issuer&#x60;, and is &#x60;422&#x60; when &#x60;verifyIssuer&#x60; 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
+ },
5552
6219
  /**
5553
6220
  * Creates a new wallet for the authenticated client.
5554
6221
  * @param {WalletCreatePayload} [walletCreatePayload]
@@ -5916,6 +6583,18 @@ class DefaultApi extends base_1.BaseAPI {
5916
6583
  credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options) {
5917
6584
  return (0, exports.DefaultApiFp)(this.configuration).credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options).then((request) => request(this.axios, this.basePath));
5918
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
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
+ }
5919
6598
  /**
5920
6599
  * Retrieves a list of credentials.
5921
6600
  * @param {string} walletId
@@ -5978,6 +6657,29 @@ class DefaultApi extends base_1.BaseAPI {
5978
6657
  credentialRawGet(credentialId, walletId, disclosedClaims, options) {
5979
6658
  return (0, exports.DefaultApiFp)(this.configuration).credentialRawGet(credentialId, walletId, disclosedClaims, options).then((request) => request(this.axios, this.basePath));
5980
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\&#39;s &#x60;renderMethod&#x60;.
6665
+ * @param {RenderSuite} [suite] Use the first render method of this suite.
6666
+ * @param {string} [mediaQuery] Use the first render method with exactly this &#x60;mediaQuery&#x60;.
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
+ }
5981
6683
  /**
5982
6684
  * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
5983
6685
  * @param {string} walletId
@@ -5989,14 +6691,15 @@ class DefaultApi extends base_1.BaseAPI {
5989
6691
  return (0, exports.DefaultApiFp)(this.configuration).credentialRequestInit(walletId, credentialRequest, options).then((request) => request(this.axios, this.basePath));
5990
6692
  }
5991
6693
  /**
5992
- * 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.
5993
6695
  * @param {string} credentialId Verifiable Credential Identifier
5994
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
5995
6698
  * @param {*} [options] Override http request option.
5996
6699
  * @throws {RequiredError}
5997
6700
  */
5998
- credentialRevoke(credentialId, walletId, options) {
5999
- 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));
6000
6703
  }
6001
6704
  /**
6002
6705
  * Suspend a Verifiable Credential issued with the `suspension` status purpose (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.
@@ -6037,6 +6740,25 @@ class DefaultApi extends base_1.BaseAPI {
6037
6740
  didDocumentGet(walletId, options) {
6038
6741
  return (0, exports.DefaultApiFp)(this.configuration).didDocumentGet(walletId, options).then((request) => request(this.axios, this.basePath));
6039
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
+ }
6040
6762
  /**
6041
6763
  * Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
6042
6764
  * @param {*} [options] Override http request option.
@@ -6076,45 +6798,6 @@ class DefaultApi extends base_1.BaseAPI {
6076
6798
  holderIdTokenSend(walletId, idTokenSendRequest, options) {
6077
6799
  return (0, exports.DefaultApiFp)(this.configuration).holderIdTokenSend(walletId, idTokenSendRequest, options).then((request) => request(this.axios, this.basePath));
6078
6800
  }
6079
- /**
6080
- * Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
6081
- * @param {string} walletId
6082
- * @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
6083
- * @param {*} [options] Override http request option.
6084
- * @throws {RequiredError}
6085
- */
6086
- holderLinkedVpCreate(walletId, linkedVpCreateRequest, options) {
6087
- return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpCreate(walletId, linkedVpCreateRequest, options).then((request) => request(this.axios, this.basePath));
6088
- }
6089
- /**
6090
- * Deletes a linked VP
6091
- * @param {string} walletId
6092
- * @param {string} linkedVpId
6093
- * @param {*} [options] Override http request option.
6094
- * @throws {RequiredError}
6095
- */
6096
- holderLinkedVpDelete(walletId, linkedVpId, options) {
6097
- return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpDelete(walletId, linkedVpId, options).then((request) => request(this.axios, this.basePath));
6098
- }
6099
- /**
6100
- * Returns metadata and content of a specific linked Verifiable Presentation, including the credentials it contains and its DID document service entry URL.
6101
- * @param {string} walletId
6102
- * @param {string} linkedVpId
6103
- * @param {*} [options] Override http request option.
6104
- * @throws {RequiredError}
6105
- */
6106
- holderLinkedVpGetDetails(walletId, linkedVpId, options) {
6107
- return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpGetDetails(walletId, linkedVpId, options).then((request) => request(this.axios, this.basePath));
6108
- }
6109
- /**
6110
- * Returns all linked Verifiable Presentations published in the wallet\'s DID document,
6111
- * @param {string} walletId
6112
- * @param {*} [options] Override http request option.
6113
- * @throws {RequiredError}
6114
- */
6115
- holderLinkedVpList(walletId, options) {
6116
- return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpList(walletId, options).then((request) => request(this.axios, this.basePath));
6117
- }
6118
6801
  /**
6119
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.
6120
6803
  * @param {string} walletId
@@ -6164,6 +6847,17 @@ class DefaultApi extends base_1.BaseAPI {
6164
6847
  issuerCredentialTypesList(url, options) {
6165
6848
  return (0, exports.DefaultApiFp)(this.configuration).issuerCredentialTypesList(url, options).then((request) => request(this.axios, this.basePath));
6166
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 &#x60;Idempotent-Replayed: true&#x60;) for 24 hours. The same key with a different request is &#x60;422&#x60;. A &#x60;5xx&#x60; 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 &#x60;409&#x60;.
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
+ }
6167
6861
  /**
6168
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.
6169
6863
  * @param {string} walletId
@@ -6402,24 +7096,73 @@ class DefaultApi extends base_1.BaseAPI {
6402
7096
  return (0, exports.DefaultApiFp)(this.configuration).trustListsGet(options).then((request) => request(this.axios, this.basePath));
6403
7097
  }
6404
7098
  /**
6405
- * 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.
7099
+ * Removes a UNTP link from the wallet\'s DID document and stops serving its credential.
6406
7100
  * @param {string} walletId
6407
- * @param {VerifyInitRequest} [verifyInitRequest]
7101
+ * @param {string} serviceId The service id of the link, in full (&#x60;&lt;did&gt;#&lt;fragment&gt;&#x60;) or as its fragment.
6408
7102
  * @param {*} [options] Override http request option.
6409
7103
  * @throws {RequiredError}
6410
7104
  */
6411
- verifierInitUrlCreate(walletId, verifyInitRequest, options) {
6412
- return (0, exports.DefaultApiFp)(this.configuration).verifierInitUrlCreate(walletId, verifyInitRequest, options).then((request) => request(this.axios, this.basePath));
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. &#x60;DigitalProductPassport&#x60;.
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));
6413
7156
  }
6414
7157
  /**
6415
- * Fetches linked presentations from DID document and verifies them.
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.
6416
7159
  * @param {string} walletId
6417
- * @param {string} did
7160
+ * @param {VerifyInitRequest} [verifyInitRequest]
6418
7161
  * @param {*} [options] Override http request option.
6419
7162
  * @throws {RequiredError}
6420
7163
  */
6421
- verifierLinkedVpVerify(walletId, did, options) {
6422
- return (0, exports.DefaultApiFp)(this.configuration).verifierLinkedVpVerify(walletId, did, options).then((request) => request(this.axios, this.basePath));
7164
+ verifierInitUrlCreate(walletId, verifyInitRequest, options) {
7165
+ return (0, exports.DefaultApiFp)(this.configuration).verifierInitUrlCreate(walletId, verifyInitRequest, options).then((request) => request(this.axios, this.basePath));
6423
7166
  }
6424
7167
  /**
6425
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.
@@ -6435,6 +7178,30 @@ class DefaultApi extends base_1.BaseAPI {
6435
7178
  verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options) {
6436
7179
  return (0, exports.DefaultApiFp)(this.configuration).verifierPdfVerify(walletId, extractVp, pdf, trustedCertificates, trustedListsUrl, trustedListSigningCertificates, options).then((request) => request(this.axios, this.basePath));
6437
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. &#x60;dpp,dcc&#x60;), or &#x60;all&#x60; (the default). The linkset uses the UNTP 0.8.0 relations: &#x60;dpp&#x60;, &#x60;linkset&#x60; for an identity resolver, and &#x60;https://test.uncefact.org/vocabulary/link-type/&lt;type&gt;&#x60; for the others. A DID document\&#39;s UNTP 0.7 service types (&#x60;untp:dia&#x60;, bare &#x60;dcc&#x60;) 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\&#39; dates, status and schema, besides their signature.
7198
+ * @param {boolean} [verifyIssuer] Also verify whether the wallet\&#39;s trust framework trusts the DID, as &#x60;/verifier/did&#x60; does, and report it as &#x60;issuer&#x60;. A wallet whose trust framework does not verify DIDs reports no &#x60;issuer&#x60;, and is &#x60;422&#x60; when &#x60;verifyIssuer&#x60; 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
+ }
6438
7205
  /**
6439
7206
  * Creates a new wallet for the authenticated client.
6440
7207
  * @param {WalletCreatePayload} [walletCreatePayload]