Skip to main content

sdk

import "github.com/triveria-com/wallet-sdk-go"

Package sdk provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index​

Constants​

const (
AuthenticationTypeOAuth = "oauth"
AuthenticationTypeNone = "none"
)

func ContextWithTokenSource​

func ContextWithTokenSource(ctx context.Context, ts oauth2.TokenSource) context.Context

ContextWithTokenSource returns a context under which calls made by a client from NewClientWithTokenSource or NewAuthenticatedClient (OAuth) authenticate with ts instead of the client's own token source. It lets one client serve requests on behalf of different parties, e.g. a service that forwards each caller's token.

func NewCredentialClaimMetadataGetRequest​

func NewCredentialClaimMetadataGetRequest(server string, credentialId CredentialId, params *CredentialClaimMetadataGetParams) (*http.Request, error)

NewCredentialClaimMetadataGetRequest constructs an http.Request for the CredentialClaimMetadataGet method

func NewCredentialCreateRequest​

func NewCredentialCreateRequest(server string, params *CredentialCreateParams, body CredentialCreateJSONRequestBody) (*http.Request, error)

NewCredentialCreateRequest calls the generic CredentialCreate builder with application/json body

func NewCredentialCreateRequestWithBody​

func NewCredentialCreateRequestWithBody(server string, params *CredentialCreateParams, contentType string, body io.Reader) (*http.Request, error)

NewCredentialCreateRequestWithBody constructs an http.Request for the CredentialCreate method, with any body, and a specified content type

func NewCredentialGetRequest​

func NewCredentialGetRequest(server string, credentialId CredentialId, params *CredentialGetParams) (*http.Request, error)

NewCredentialGetRequest constructs an http.Request for the CredentialGet method

func NewCredentialImportRequest​

func NewCredentialImportRequest(server string, params *CredentialImportParams, body CredentialImportJSONRequestBody) (*http.Request, error)

NewCredentialImportRequest calls the generic CredentialImport builder with application/json body

func NewCredentialImportRequestWithBody​

func NewCredentialImportRequestWithBody(server string, params *CredentialImportParams, contentType string, body io.Reader) (*http.Request, error)

NewCredentialImportRequestWithBody constructs an http.Request for the CredentialImport method, with any body, and a specified content type

func NewCredentialIssuanceInitRequest​

func NewCredentialIssuanceInitRequest(server string, credentialId string, params *CredentialIssuanceInitParams, body CredentialIssuanceInitJSONRequestBody) (*http.Request, error)

NewCredentialIssuanceInitRequest calls the generic CredentialIssuanceInit builder with application/json body

func NewCredentialIssuanceInitRequestWithBody​

func NewCredentialIssuanceInitRequestWithBody(server string, credentialId string, params *CredentialIssuanceInitParams, contentType string, body io.Reader) (*http.Request, error)

NewCredentialIssuanceInitRequestWithBody constructs an http.Request for the CredentialIssuanceInit method, with any body, and a specified content type

func NewCredentialIssueDirectRequest​

func NewCredentialIssueDirectRequest(server string, credentialId CredentialId, params *CredentialIssueDirectParams, body CredentialIssueDirectJSONRequestBody) (*http.Request, error)

NewCredentialIssueDirectRequest calls the generic CredentialIssueDirect builder with application/json body

func NewCredentialIssueDirectRequestWithBody​

func NewCredentialIssueDirectRequestWithBody(server string, credentialId CredentialId, params *CredentialIssueDirectParams, contentType string, body io.Reader) (*http.Request, error)

NewCredentialIssueDirectRequestWithBody constructs an http.Request for the CredentialIssueDirect method, with any body, and a specified content type

func NewCredentialListRequest​

func NewCredentialListRequest(server string, params *CredentialListParams) (*http.Request, error)

NewCredentialListRequest constructs an http.Request for the CredentialList method

func NewCredentialMetadataPatchRequest​

func NewCredentialMetadataPatchRequest(server string, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody) (*http.Request, error)

NewCredentialMetadataPatchRequest calls the generic CredentialMetadataPatch builder with application/json body

func NewCredentialMetadataPatchRequestWithBody​

func NewCredentialMetadataPatchRequestWithBody(server string, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader) (*http.Request, error)

NewCredentialMetadataPatchRequestWithBody constructs an http.Request for the CredentialMetadataPatch method, with any body, and a specified content type

func NewCredentialPatchRequest​

func NewCredentialPatchRequest(server string, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody) (*http.Request, error)

NewCredentialPatchRequest calls the generic CredentialPatch builder with application/json body

func NewCredentialPatchRequestWithBody​

func NewCredentialPatchRequestWithBody(server string, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader) (*http.Request, error)

NewCredentialPatchRequestWithBody constructs an http.Request for the CredentialPatch method, with any body, and a specified content type

func NewCredentialPayloadGetRequest​

func NewCredentialPayloadGetRequest(server string, credentialId CredentialId, params *CredentialPayloadGetParams) (*http.Request, error)

NewCredentialPayloadGetRequest constructs an http.Request for the CredentialPayloadGet method

func NewCredentialRawGetRequest​

func NewCredentialRawGetRequest(server string, credentialId CredentialId, params *CredentialRawGetParams) (*http.Request, error)

NewCredentialRawGetRequest constructs an http.Request for the CredentialRawGet method

func NewCredentialRenderMethodsRequest​

func NewCredentialRenderMethodsRequest(server string, credentialId CredentialId, params *CredentialRenderMethodsParams) (*http.Request, error)

NewCredentialRenderMethodsRequest constructs an http.Request for the CredentialRenderMethods method

func NewCredentialRenderRequest​

func NewCredentialRenderRequest(server string, credentialId CredentialId, params *CredentialRenderParams) (*http.Request, error)

NewCredentialRenderRequest constructs an http.Request for the CredentialRender method

func NewCredentialRequestInitRequest​

func NewCredentialRequestInitRequest(server string, params *CredentialRequestInitParams, body CredentialRequestInitJSONRequestBody) (*http.Request, error)

NewCredentialRequestInitRequest calls the generic CredentialRequestInit builder with application/json body

func NewCredentialRequestInitRequestWithBody​

func NewCredentialRequestInitRequestWithBody(server string, params *CredentialRequestInitParams, contentType string, body io.Reader) (*http.Request, error)

NewCredentialRequestInitRequestWithBody constructs an http.Request for the CredentialRequestInit method, with any body, and a specified content type

func NewCredentialRevokeRequest​

func NewCredentialRevokeRequest(server string, credentialId CredentialId, params *CredentialRevokeParams) (*http.Request, error)

NewCredentialRevokeRequest constructs an http.Request for the CredentialRevoke method

func NewCredentialSuspendRequest​

func NewCredentialSuspendRequest(server string, credentialId CredentialId, params *CredentialSuspendParams) (*http.Request, error)

NewCredentialSuspendRequest constructs an http.Request for the CredentialSuspend method

func NewCredentialUnsuspendRequest​

func NewCredentialUnsuspendRequest(server string, credentialId CredentialId, params *CredentialUnsuspendParams) (*http.Request, error)

NewCredentialUnsuspendRequest constructs an http.Request for the CredentialUnsuspend method

func NewDeferredStatusRequest​

func NewDeferredStatusRequest(server string, deferredId string, params *DeferredStatusParams) (*http.Request, error)

NewDeferredStatusRequest constructs an http.Request for the DeferredStatus method

func NewDidDocumentGetRequest​

func NewDidDocumentGetRequest(server string, walletId string) (*http.Request, error)

NewDidDocumentGetRequest constructs an http.Request for the DidDocumentGet method

func NewDidDocumentLocalGetRequest​

func NewDidDocumentLocalGetRequest(server string, params *DidDocumentLocalGetParams) (*http.Request, error)

NewDidDocumentLocalGetRequest constructs an http.Request for the DidDocumentLocalGet method

func NewDidDocumentPatchRequest​

func NewDidDocumentPatchRequest(server string, params *DidDocumentPatchParams, body DidDocumentPatchJSONRequestBody) (*http.Request, error)

NewDidDocumentPatchRequest calls the generic DidDocumentPatch builder with application/json body

func NewDidDocumentPatchRequestWithBody​

func NewDidDocumentPatchRequestWithBody(server string, params *DidDocumentPatchParams, contentType string, body io.Reader) (*http.Request, error)

NewDidDocumentPatchRequestWithBody constructs an http.Request for the DidDocumentPatch method, with any body, and a specified content type

func NewHealthCheckRequest​

func NewHealthCheckRequest(server string) (*http.Request, error)

NewHealthCheckRequest constructs an http.Request for the HealthCheck method

func NewHolderCreateAuthOfferRequest​

func NewHolderCreateAuthOfferRequest(server string, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody) (*http.Request, error)

NewHolderCreateAuthOfferRequest calls the generic HolderCreateAuthOffer builder with application/json body

func NewHolderCreateAuthOfferRequestWithBody​

func NewHolderCreateAuthOfferRequestWithBody(server string, params *HolderCreateAuthOfferParams, contentType string, body io.Reader) (*http.Request, error)

NewHolderCreateAuthOfferRequestWithBody constructs an http.Request for the HolderCreateAuthOffer method, with any body, and a specified content type

func NewHolderCredentialsPresentAfterConsentRequest​

func NewHolderCredentialsPresentAfterConsentRequest(server string, interactionId string, params *HolderCredentialsPresentAfterConsentParams, body HolderCredentialsPresentAfterConsentJSONRequestBody) (*http.Request, error)

NewHolderCredentialsPresentAfterConsentRequest calls the generic HolderCredentialsPresentAfterConsent builder with application/json body

func NewHolderCredentialsPresentAfterConsentRequestWithBody​

func NewHolderCredentialsPresentAfterConsentRequestWithBody(server string, interactionId string, params *HolderCredentialsPresentAfterConsentParams, contentType string, body io.Reader) (*http.Request, error)

NewHolderCredentialsPresentAfterConsentRequestWithBody constructs an http.Request for the HolderCredentialsPresentAfterConsent method, with any body, and a specified content type

func NewHolderIdTokenSendRequest​

func NewHolderIdTokenSendRequest(server string, params *HolderIdTokenSendParams, body HolderIdTokenSendJSONRequestBody) (*http.Request, error)

NewHolderIdTokenSendRequest calls the generic HolderIdTokenSend builder with application/json body

func NewHolderIdTokenSendRequestWithBody​

func NewHolderIdTokenSendRequestWithBody(server string, params *HolderIdTokenSendParams, contentType string, body io.Reader) (*http.Request, error)

NewHolderIdTokenSendRequestWithBody constructs an http.Request for the HolderIdTokenSend method, with any body, and a specified content type

func NewHolderOfferPassAuthInfoRequest​

func NewHolderOfferPassAuthInfoRequest(server string, params *HolderOfferPassAuthInfoParams, body HolderOfferPassAuthInfoJSONRequestBody) (*http.Request, error)

NewHolderOfferPassAuthInfoRequest calls the generic HolderOfferPassAuthInfo builder with application/json body

func NewHolderOfferPassAuthInfoRequestWithBody​

func NewHolderOfferPassAuthInfoRequestWithBody(server string, params *HolderOfferPassAuthInfoParams, contentType string, body io.Reader) (*http.Request, error)

NewHolderOfferPassAuthInfoRequestWithBody constructs an http.Request for the HolderOfferPassAuthInfo method, with any body, and a specified content type

func NewHolderOfferProcessAfterConsentRequest​

func NewHolderOfferProcessAfterConsentRequest(server string, interactionId string, params *HolderOfferProcessAfterConsentParams, body HolderOfferProcessAfterConsentJSONRequestBody) (*http.Request, error)

NewHolderOfferProcessAfterConsentRequest calls the generic HolderOfferProcessAfterConsent builder with application/json body

func NewHolderOfferProcessAfterConsentRequestWithBody​

func NewHolderOfferProcessAfterConsentRequestWithBody(server string, interactionId string, params *HolderOfferProcessAfterConsentParams, contentType string, body io.Reader) (*http.Request, error)

NewHolderOfferProcessAfterConsentRequestWithBody constructs an http.Request for the HolderOfferProcessAfterConsent method, with any body, and a specified content type

func NewHolderPresentPassAuthInfoRequest​

func NewHolderPresentPassAuthInfoRequest(server string, params *HolderPresentPassAuthInfoParams, body HolderPresentPassAuthInfoJSONRequestBody) (*http.Request, error)

NewHolderPresentPassAuthInfoRequest calls the generic HolderPresentPassAuthInfo builder with application/json body

func NewHolderPresentPassAuthInfoRequestWithBody​

func NewHolderPresentPassAuthInfoRequestWithBody(server string, params *HolderPresentPassAuthInfoParams, contentType string, body io.Reader) (*http.Request, error)

NewHolderPresentPassAuthInfoRequestWithBody constructs an http.Request for the HolderPresentPassAuthInfo method, with any body, and a specified content type

func NewIdTokenRequestCreateRequest​

func NewIdTokenRequestCreateRequest(server string, params *IdTokenRequestCreateParams) (*http.Request, error)

NewIdTokenRequestCreateRequest constructs an http.Request for the IdTokenRequestCreate method

func NewIssuerCredentialTypesListRequest​

func NewIssuerCredentialTypesListRequest(server string, params *IssuerCredentialTypesListParams) (*http.Request, error)

NewIssuerCredentialTypesListRequest constructs an http.Request for the IssuerCredentialTypesList method

func NewIssuerDetachedJwsSignRequest​

func NewIssuerDetachedJwsSignRequest(server string, params *IssuerDetachedJwsSignParams, body IssuerDetachedJwsSignJSONRequestBody) (*http.Request, error)

NewIssuerDetachedJwsSignRequest calls the generic IssuerDetachedJwsSign builder with application/json body

func NewIssuerDetachedJwsSignRequestWithBody​

func NewIssuerDetachedJwsSignRequestWithBody(server string, params *IssuerDetachedJwsSignParams, contentType string, body io.Reader) (*http.Request, error)

NewIssuerDetachedJwsSignRequestWithBody constructs an http.Request for the IssuerDetachedJwsSign method, with any body, and a specified content type

func NewIssuerInitiateAuthOfferRequest​

func NewIssuerInitiateAuthOfferRequest(server string, params *IssuerInitiateAuthOfferParams, body IssuerInitiateAuthOfferJSONRequestBody) (*http.Request, error)

NewIssuerInitiateAuthOfferRequest calls the generic IssuerInitiateAuthOffer builder with application/json body

func NewIssuerInitiateAuthOfferRequestWithBody​

func NewIssuerInitiateAuthOfferRequestWithBody(server string, params *IssuerInitiateAuthOfferParams, contentType string, body io.Reader) (*http.Request, error)

NewIssuerInitiateAuthOfferRequestWithBody constructs an http.Request for the IssuerInitiateAuthOffer method, with any body, and a specified content type

func NewIssuerInitiatePreauthOfferRequest​

func NewIssuerInitiatePreauthOfferRequest(server string, params *IssuerInitiatePreauthOfferParams, body IssuerInitiatePreauthOfferJSONRequestBody) (*http.Request, error)

NewIssuerInitiatePreauthOfferRequest calls the generic IssuerInitiatePreauthOffer builder with application/json body

func NewIssuerInitiatePreauthOfferRequestWithBody​

func NewIssuerInitiatePreauthOfferRequestWithBody(server string, params *IssuerInitiatePreauthOfferParams, contentType string, body io.Reader) (*http.Request, error)

NewIssuerInitiatePreauthOfferRequestWithBody constructs an http.Request for the IssuerInitiatePreauthOffer method, with any body, and a specified content type

func NewIssuerXadesSignRequestWithBody​

func NewIssuerXadesSignRequestWithBody(server string, params *IssuerXadesSignParams, contentType string, body io.Reader) (*http.Request, error)

NewIssuerXadesSignRequestWithBody constructs an http.Request for the IssuerXadesSign method, with any body, and a specified content type

func NewOAuthTokenSource​

func NewOAuthTokenSource(ctx context.Context, config AuthenticationOAuth, defaultAudience string) (oauth2.TokenSource, error)

NewOAuthTokenSource returns a refreshing client credentials token source for config. The audience defaults to defaultAudience when config.Audience is empty.

ctx is used for every token request, including later refreshes, so it must outlive the token source. An *http.Client stored in ctx under the oauth2.HTTPClient key is used for the token requests; otherwise a client with a 30 s timeout is used.

func NewPdfCredentialMakeVpRequest​

func NewPdfCredentialMakeVpRequest(server string, credentialId CredentialId, params *PdfCredentialMakeVpParams) (*http.Request, error)

NewPdfCredentialMakeVpRequest constructs an http.Request for the PdfCredentialMakeVp method

func NewPdfCredentialTwinDeleteRequest​

func NewPdfCredentialTwinDeleteRequest(server string, credentialId CredentialId, params *PdfCredentialTwinDeleteParams) (*http.Request, error)

NewPdfCredentialTwinDeleteRequest constructs an http.Request for the PdfCredentialTwinDelete method

func NewPdfCredentialTwinGetRequest​

func NewPdfCredentialTwinGetRequest(server string, credentialId CredentialId, params *PdfCredentialTwinGetParams) (*http.Request, error)

NewPdfCredentialTwinGetRequest constructs an http.Request for the PdfCredentialTwinGet method

func NewPdfCredentialTwinUploadRequestWithBody​

func NewPdfCredentialTwinUploadRequestWithBody(server string, credentialId CredentialId, params *PdfCredentialTwinUploadParams, contentType string, body io.Reader) (*http.Request, error)

NewPdfCredentialTwinUploadRequestWithBody constructs an http.Request for the PdfCredentialTwinUpload method, with any body, and a specified content type

func NewTenantEnrollmentEnrollRequest​

func NewTenantEnrollmentEnrollRequest(server string, tenantId string, state string) (*http.Request, error)

NewTenantEnrollmentEnrollRequest constructs an http.Request for the TenantEnrollmentEnroll method

func NewTenantEnrollmentInitRequest​

func NewTenantEnrollmentInitRequest(server string, tenantId string, body TenantEnrollmentInitJSONRequestBody) (*http.Request, error)

NewTenantEnrollmentInitRequest calls the generic TenantEnrollmentInit builder with application/json body

func NewTenantEnrollmentInitRequestWithBody​

func NewTenantEnrollmentInitRequestWithBody(server string, tenantId string, contentType string, body io.Reader) (*http.Request, error)

NewTenantEnrollmentInitRequestWithBody constructs an http.Request for the TenantEnrollmentInit method, with any body, and a specified content type

func NewTenantEnrollmentListRequest​

func NewTenantEnrollmentListRequest(server string, tenantId string) (*http.Request, error)

NewTenantEnrollmentListRequest constructs an http.Request for the TenantEnrollmentList method

func NewTenantEnrollmentRevokeRequest​

func NewTenantEnrollmentRevokeRequest(server string, tenantId string, enrollmentId string) (*http.Request, error)

NewTenantEnrollmentRevokeRequest constructs an http.Request for the TenantEnrollmentRevoke method

func NewTfAccreditAsRequest​

func NewTfAccreditAsRequest(server string, params *TfAccreditAsParams, body TfAccreditAsJSONRequestBody) (*http.Request, error)

NewTfAccreditAsRequest calls the generic TfAccreditAs builder with application/json body

func NewTfAccreditAsRequestWithBody​

func NewTfAccreditAsRequestWithBody(server string, params *TfAccreditAsParams, contentType string, body io.Reader) (*http.Request, error)

NewTfAccreditAsRequestWithBody constructs an http.Request for the TfAccreditAs method, with any body, and a specified content type

func NewTfAccreditRequestRequest​

func NewTfAccreditRequestRequest(server string, params *TfAccreditRequestParams, body TfAccreditRequestJSONRequestBody) (*http.Request, error)

NewTfAccreditRequestRequest calls the generic TfAccreditRequest builder with application/json body

func NewTfAccreditRequestRequestWithBody​

func NewTfAccreditRequestRequestWithBody(server string, params *TfAccreditRequestParams, contentType string, body io.Reader) (*http.Request, error)

NewTfAccreditRequestRequestWithBody constructs an http.Request for the TfAccreditRequest method, with any body, and a specified content type

func NewTfOnboardRequest​

func NewTfOnboardRequest(server string, params *TfOnboardParams, body TfOnboardJSONRequestBody) (*http.Request, error)

NewTfOnboardRequest calls the generic TfOnboard builder with application/json body

func NewTfOnboardRequestRequest​

func NewTfOnboardRequestRequest(server string, params *TfOnboardRequestParams, body TfOnboardRequestJSONRequestBody) (*http.Request, error)

NewTfOnboardRequestRequest calls the generic TfOnboardRequest builder with application/json body

func NewTfOnboardRequestRequestWithBody​

func NewTfOnboardRequestRequestWithBody(server string, params *TfOnboardRequestParams, contentType string, body io.Reader) (*http.Request, error)

NewTfOnboardRequestRequestWithBody constructs an http.Request for the TfOnboardRequest method, with any body, and a specified content type

func NewTfOnboardRequestWithBody​

func NewTfOnboardRequestWithBody(server string, params *TfOnboardParams, contentType string, body io.Reader) (*http.Request, error)

NewTfOnboardRequestWithBody constructs an http.Request for the TfOnboard method, with any body, and a specified content type

func NewTfRevokeAccreditationRequest​

func NewTfRevokeAccreditationRequest(server string, params *TfRevokeAccreditationParams, body TfRevokeAccreditationJSONRequestBody) (*http.Request, error)

NewTfRevokeAccreditationRequest calls the generic TfRevokeAccreditation builder with application/json body

func NewTfRevokeAccreditationRequestWithBody​

func NewTfRevokeAccreditationRequestWithBody(server string, params *TfRevokeAccreditationParams, contentType string, body io.Reader) (*http.Request, error)

NewTfRevokeAccreditationRequestWithBody constructs an http.Request for the TfRevokeAccreditation method, with any body, and a specified content type

func NewTfUntpDiaIssueRequest​

func NewTfUntpDiaIssueRequest(server string, params *TfUntpDiaIssueParams, body TfUntpDiaIssueJSONRequestBody) (*http.Request, error)

NewTfUntpDiaIssueRequest calls the generic TfUntpDiaIssue builder with application/json body

func NewTfUntpDiaIssueRequestWithBody​

func NewTfUntpDiaIssueRequestWithBody(server string, params *TfUntpDiaIssueParams, contentType string, body io.Reader) (*http.Request, error)

NewTfUntpDiaIssueRequestWithBody constructs an http.Request for the TfUntpDiaIssue method, with any body, and a specified content type

func NewTfUntpDiaListRequest​

func NewTfUntpDiaListRequest(server string, params *TfUntpDiaListParams) (*http.Request, error)

NewTfUntpDiaListRequest constructs an http.Request for the TfUntpDiaList method

func NewTfUntpRequestListRequest​

func NewTfUntpRequestListRequest(server string, params *TfUntpRequestListParams) (*http.Request, error)

NewTfUntpRequestListRequest constructs an http.Request for the TfUntpRequestList method

func NewTfX509CertificateGetRecordRequest​

func NewTfX509CertificateGetRecordRequest(server string, serialNumber string, params *TfX509CertificateGetRecordParams) (*http.Request, error)

NewTfX509CertificateGetRecordRequest constructs an http.Request for the TfX509CertificateGetRecord method

func NewTfX509CertificateIssueRequest​

func NewTfX509CertificateIssueRequest(server string, params *TfX509CertificateIssueParams, body TfX509CertificateIssueJSONRequestBody) (*http.Request, error)

NewTfX509CertificateIssueRequest calls the generic TfX509CertificateIssue builder with application/json body

func NewTfX509CertificateIssueRequestWithBody​

func NewTfX509CertificateIssueRequestWithBody(server string, params *TfX509CertificateIssueParams, contentType string, body io.Reader) (*http.Request, error)

NewTfX509CertificateIssueRequestWithBody constructs an http.Request for the TfX509CertificateIssue method, with any body, and a specified content type

func NewTfX509CertificateListRecordsRequest​

func NewTfX509CertificateListRecordsRequest(server string, params *TfX509CertificateListRecordsParams) (*http.Request, error)

NewTfX509CertificateListRecordsRequest constructs an http.Request for the TfX509CertificateListRecords method

func NewTfX509CertificateUpdateStatusRequest​

func NewTfX509CertificateUpdateStatusRequest(server string, serialNumber string, params *TfX509CertificateUpdateStatusParams, body TfX509CertificateUpdateStatusJSONRequestBody) (*http.Request, error)

NewTfX509CertificateUpdateStatusRequest calls the generic TfX509CertificateUpdateStatus builder with application/json body

func NewTfX509CertificateUpdateStatusRequestWithBody​

func NewTfX509CertificateUpdateStatusRequestWithBody(server string, serialNumber string, params *TfX509CertificateUpdateStatusParams, contentType string, body io.Reader) (*http.Request, error)

NewTfX509CertificateUpdateStatusRequestWithBody constructs an http.Request for the TfX509CertificateUpdateStatus method, with any body, and a specified content type

func NewTrustListAddRequest​

func NewTrustListAddRequest(server string, body TrustListAddJSONRequestBody) (*http.Request, error)

NewTrustListAddRequest calls the generic TrustListAdd builder with application/json body

func NewTrustListAddRequestWithBody​

func NewTrustListAddRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewTrustListAddRequestWithBody constructs an http.Request for the TrustListAdd method, with any body, and a specified content type

func NewTrustListDeleteRequest​

func NewTrustListDeleteRequest(server string, params *TrustListDeleteParams) (*http.Request, error)

NewTrustListDeleteRequest constructs an http.Request for the TrustListDelete method

func NewTrustListRefreshRequest​

func NewTrustListRefreshRequest(server string, params *TrustListRefreshParams) (*http.Request, error)

NewTrustListRefreshRequest constructs an http.Request for the TrustListRefresh method

func NewTrustListsGetRequest​

func NewTrustListsGetRequest(server string) (*http.Request, error)

NewTrustListsGetRequest constructs an http.Request for the TrustListsGet method

func NewUntpLinkDeleteRequest​

func NewUntpLinkDeleteRequest(server string, serviceId string, params *UntpLinkDeleteParams) (*http.Request, error)

NewUntpLinkDeleteRequest constructs an http.Request for the UntpLinkDelete method

func NewUntpLinkListRequest​

func NewUntpLinkListRequest(server string, params *UntpLinkListParams) (*http.Request, error)

NewUntpLinkListRequest constructs an http.Request for the UntpLinkList method

func NewUntpLinkPublishRequest​

func NewUntpLinkPublishRequest(server string, params *UntpLinkPublishParams, body UntpLinkPublishJSONRequestBody) (*http.Request, error)

NewUntpLinkPublishRequest calls the generic UntpLinkPublish builder with application/json body

func NewUntpLinkPublishRequestWithBody​

func NewUntpLinkPublishRequestWithBody(server string, params *UntpLinkPublishParams, contentType string, body io.Reader) (*http.Request, error)

NewUntpLinkPublishRequestWithBody constructs an http.Request for the UntpLinkPublish method, with any body, and a specified content type

func NewUntpRegistryListRequest​

func NewUntpRegistryListRequest(server string, params *UntpRegistryListParams) (*http.Request, error)

NewUntpRegistryListRequest constructs an http.Request for the UntpRegistryList method

func NewVerifierCredentialVerifyRequest​

func NewVerifierCredentialVerifyRequest(server string, params *VerifierCredentialVerifyParams, body VerifierCredentialVerifyJSONRequestBody) (*http.Request, error)

NewVerifierCredentialVerifyRequest calls the generic VerifierCredentialVerify builder with application/json body

func NewVerifierCredentialVerifyRequestWithBody​

func NewVerifierCredentialVerifyRequestWithBody(server string, params *VerifierCredentialVerifyParams, contentType string, body io.Reader) (*http.Request, error)

NewVerifierCredentialVerifyRequestWithBody constructs an http.Request for the VerifierCredentialVerify method, with any body, and a specified content type

func NewVerifierDidVerifyRequest​

func NewVerifierDidVerifyRequest(server string, params *VerifierDidVerifyParams) (*http.Request, error)

NewVerifierDidVerifyRequest constructs an http.Request for the VerifierDidVerify method

func NewVerifierInitUrlCreateRequest​

func NewVerifierInitUrlCreateRequest(server string, params *VerifierInitUrlCreateParams, body VerifierInitUrlCreateJSONRequestBody) (*http.Request, error)

NewVerifierInitUrlCreateRequest calls the generic VerifierInitUrlCreate builder with application/json body

func NewVerifierInitUrlCreateRequestWithBody​

func NewVerifierInitUrlCreateRequestWithBody(server string, params *VerifierInitUrlCreateParams, contentType string, body io.Reader) (*http.Request, error)

NewVerifierInitUrlCreateRequestWithBody constructs an http.Request for the VerifierInitUrlCreate method, with any body, and a specified content type

func NewVerifierPdfVerifyRequestWithBody​

func NewVerifierPdfVerifyRequestWithBody(server string, params *VerifierPdfVerifyParams, contentType string, body io.Reader) (*http.Request, error)

NewVerifierPdfVerifyRequestWithBody constructs an http.Request for the VerifierPdfVerify method, with any body, and a specified content type

func NewVerifierRenderRequest​

func NewVerifierRenderRequest(server string, params *VerifierRenderParams, body VerifierRenderJSONRequestBody) (*http.Request, error)

NewVerifierRenderRequest calls the generic VerifierRender builder with application/json body

func NewVerifierRenderRequestWithBody​

func NewVerifierRenderRequestWithBody(server string, params *VerifierRenderParams, contentType string, body io.Reader) (*http.Request, error)

NewVerifierRenderRequestWithBody constructs an http.Request for the VerifierRender method, with any body, and a specified content type

func NewVerifierUntpResolveRequest​

func NewVerifierUntpResolveRequest(server string, params *VerifierUntpResolveParams) (*http.Request, error)

NewVerifierUntpResolveRequest constructs an http.Request for the VerifierUntpResolve method

func NewWalletCreateRequest​

func NewWalletCreateRequest(server string, body WalletCreateJSONRequestBody) (*http.Request, error)

NewWalletCreateRequest calls the generic WalletCreate builder with application/json body

func NewWalletCreateRequestWithBody​

func NewWalletCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewWalletCreateRequestWithBody constructs an http.Request for the WalletCreate method, with any body, and a specified content type

func NewWalletDeleteRequest​

func NewWalletDeleteRequest(server string, walletId string) (*http.Request, error)

NewWalletDeleteRequest constructs an http.Request for the WalletDelete method

func NewWalletGetRequest​

func NewWalletGetRequest(server string, walletId string) (*http.Request, error)

NewWalletGetRequest constructs an http.Request for the WalletGet method

func NewWalletIdentifierGetRequest​

func NewWalletIdentifierGetRequest(server string, params *WalletIdentifierGetParams) (*http.Request, error)

NewWalletIdentifierGetRequest constructs an http.Request for the WalletIdentifierGet method

func NewWalletKeysRequest​

func NewWalletKeysRequest(server string, walletId string) (*http.Request, error)

NewWalletKeysRequest constructs an http.Request for the WalletKeys method

func NewWalletListRequest​

func NewWalletListRequest(server string, params *WalletListParams) (*http.Request, error)

NewWalletListRequest constructs an http.Request for the WalletList method

func NewWalletNotificationGetByStateRequest​

func NewWalletNotificationGetByStateRequest(server string, walletId string, eventType string, state string) (*http.Request, error)

NewWalletNotificationGetByStateRequest constructs an http.Request for the WalletNotificationGetByState method

func NewWalletNotificationHistoryRequest​

func NewWalletNotificationHistoryRequest(server string, walletId string, params *WalletNotificationHistoryParams) (*http.Request, error)

NewWalletNotificationHistoryRequest constructs an http.Request for the WalletNotificationHistory method

func NewWalletNotificationsRequest​

func NewWalletNotificationsRequest(server string, walletId string, params *WalletNotificationsParams) (*http.Request, error)

NewWalletNotificationsRequest constructs an http.Request for the WalletNotifications method

func NewWalletPatchRequest​

func NewWalletPatchRequest(server string, walletId string, body WalletPatchJSONRequestBody) (*http.Request, error)

NewWalletPatchRequest calls the generic WalletPatch builder with application/json body

func NewWalletPatchRequestWithBody​

func NewWalletPatchRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)

NewWalletPatchRequestWithBody constructs an http.Request for the WalletPatch method, with any body, and a specified content type

func NewWalletProviderCertificateImportRequest​

func NewWalletProviderCertificateImportRequest(server string, body WalletProviderCertificateImportJSONRequestBody) (*http.Request, error)

NewWalletProviderCertificateImportRequest calls the generic WalletProviderCertificateImport builder with application/json body

func NewWalletProviderCertificateImportRequestWithBody​

func NewWalletProviderCertificateImportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewWalletProviderCertificateImportRequestWithBody constructs an http.Request for the WalletProviderCertificateImport method, with any body, and a specified content type

func NewWalletProviderCsrGenerateRequest​

func NewWalletProviderCsrGenerateRequest(server string) (*http.Request, error)

NewWalletProviderCsrGenerateRequest constructs an http.Request for the WalletProviderCsrGenerate method

func NewWalletVerifiedCredentialsByStateRequest​

func NewWalletVerifiedCredentialsByStateRequest(server string, walletId string, state string, params *WalletVerifiedCredentialsByStateParams) (*http.Request, error)

NewWalletVerifiedCredentialsByStateRequest constructs an http.Request for the WalletVerifiedCredentialsByState method

func NewWalletVerifiedCredentialsDeleteByStateRequest​

func NewWalletVerifiedCredentialsDeleteByStateRequest(server string, walletId string, state string) (*http.Request, error)

NewWalletVerifiedCredentialsDeleteByStateRequest constructs an http.Request for the WalletVerifiedCredentialsDeleteByState method

func NewWalletX509CSRCreateRequest​

func NewWalletX509CSRCreateRequest(server string, walletId string, body WalletX509CSRCreateJSONRequestBody) (*http.Request, error)

NewWalletX509CSRCreateRequest calls the generic WalletX509CSRCreate builder with application/json body

func NewWalletX509CSRCreateRequestWithBody​

func NewWalletX509CSRCreateRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)

NewWalletX509CSRCreateRequestWithBody constructs an http.Request for the WalletX509CSRCreate method, with any body, and a specified content type

func NewWalletX509CertificateGetRequest​

func NewWalletX509CertificateGetRequest(server string, walletId string) (*http.Request, error)

NewWalletX509CertificateGetRequest constructs an http.Request for the WalletX509CertificateGet method

func NewWalletX509CertificateImportRequest​

func NewWalletX509CertificateImportRequest(server string, walletId string, body WalletX509CertificateImportJSONRequestBody) (*http.Request, error)

NewWalletX509CertificateImportRequest calls the generic WalletX509CertificateImport builder with application/json body

func NewWalletX509CertificateImportRequestWithBody​

func NewWalletX509CertificateImportRequestWithBody(server string, walletId string, contentType string, body io.Reader) (*http.Request, error)

NewWalletX509CertificateImportRequestWithBody constructs an http.Request for the WalletX509CertificateImport method, with any body, and a specified content type

func NewWmpAcceptInvitationRequest​

func NewWmpAcceptInvitationRequest(server string, params *WmpAcceptInvitationParams, body WmpAcceptInvitationJSONRequestBody) (*http.Request, error)

NewWmpAcceptInvitationRequest calls the generic WmpAcceptInvitation builder with application/json body

func NewWmpAcceptInvitationRequestWithBody​

func NewWmpAcceptInvitationRequestWithBody(server string, params *WmpAcceptInvitationParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpAcceptInvitationRequestWithBody constructs an http.Request for the WmpAcceptInvitation method, with any body, and a specified content type

func NewWmpClientGetPendingRequestsRequest​

func NewWmpClientGetPendingRequestsRequest(server string, params *WmpClientGetPendingRequestsParams) (*http.Request, error)

NewWmpClientGetPendingRequestsRequest constructs an http.Request for the WmpClientGetPendingRequests method

func NewWmpClientGetRequestRequest​

func NewWmpClientGetRequestRequest(server string, requestId string, params *WmpClientGetRequestParams) (*http.Request, error)

NewWmpClientGetRequestRequest constructs an http.Request for the WmpClientGetRequest method

func NewWmpClientProcessRequestRequest​

func NewWmpClientProcessRequestRequest(server string, requestId string, params *WmpClientProcessRequestParams, body WmpClientProcessRequestJSONRequestBody) (*http.Request, error)

NewWmpClientProcessRequestRequest calls the generic WmpClientProcessRequest builder with application/json body

func NewWmpClientProcessRequestRequestWithBody​

func NewWmpClientProcessRequestRequestWithBody(server string, requestId string, params *WmpClientProcessRequestParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpClientProcessRequestRequestWithBody constructs an http.Request for the WmpClientProcessRequest method, with any body, and a specified content type

func NewWmpCreateNewInvitationRequest​

func NewWmpCreateNewInvitationRequest(server string, params *WmpCreateNewInvitationParams) (*http.Request, error)

NewWmpCreateNewInvitationRequest constructs an http.Request for the WmpCreateNewInvitation method

func NewWmpEntityConnectionGetRequest​

func NewWmpEntityConnectionGetRequest(server string, entityId string, params *WmpEntityConnectionGetParams) (*http.Request, error)

NewWmpEntityConnectionGetRequest constructs an http.Request for the WmpEntityConnectionGet method

func NewWmpEntityDeleteRequest​

func NewWmpEntityDeleteRequest(server string, entityId string, params *WmpEntityDeleteParams) (*http.Request, error)

NewWmpEntityDeleteRequest constructs an http.Request for the WmpEntityDelete method

func NewWmpEntityGetMessageHistoryRequest​

func NewWmpEntityGetMessageHistoryRequest(server string, entityId string, messageId string, params *WmpEntityGetMessageHistoryParams) (*http.Request, error)

NewWmpEntityGetMessageHistoryRequest constructs an http.Request for the WmpEntityGetMessageHistory method

func NewWmpEntityGetRequest​

func NewWmpEntityGetRequest(server string, entityId string, params *WmpEntityGetParams) (*http.Request, error)

NewWmpEntityGetRequest constructs an http.Request for the WmpEntityGet method

func NewWmpEntityListMessageHistoryRequest​

func NewWmpEntityListMessageHistoryRequest(server string, entityId string, params *WmpEntityListMessageHistoryParams) (*http.Request, error)

NewWmpEntityListMessageHistoryRequest constructs an http.Request for the WmpEntityListMessageHistory method

func NewWmpEntityListRequest​

func NewWmpEntityListRequest(server string, params *WmpEntityListParams) (*http.Request, error)

NewWmpEntityListRequest constructs an http.Request for the WmpEntityList method

func NewWmpEntityMessageDecisionRequest​

func NewWmpEntityMessageDecisionRequest(server string, entityId string, messageId string, params *WmpEntityMessageDecisionParams, body WmpEntityMessageDecisionJSONRequestBody) (*http.Request, error)

NewWmpEntityMessageDecisionRequest calls the generic WmpEntityMessageDecision builder with application/json body

func NewWmpEntityMessageDecisionRequestWithBody​

func NewWmpEntityMessageDecisionRequestWithBody(server string, entityId string, messageId string, params *WmpEntityMessageDecisionParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpEntityMessageDecisionRequestWithBody constructs an http.Request for the WmpEntityMessageDecision method, with any body, and a specified content type

func NewWmpEntitySendMessageRequestWithBody​

func NewWmpEntitySendMessageRequestWithBody(server string, entityId string, params *WmpEntitySendMessageParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpEntitySendMessageRequestWithBody constructs an http.Request for the WmpEntitySendMessage method, with any body, and a specified content type

func NewWmpEntityServerConnectRequest​

func NewWmpEntityServerConnectRequest(server string, entityId string, params *WmpEntityServerConnectParams) (*http.Request, error)

NewWmpEntityServerConnectRequest constructs an http.Request for the WmpEntityServerConnect method

func NewWmpEvidenceGetRequest​

func NewWmpEvidenceGetRequest(server string, evidenceId string, params *WmpEvidenceGetParams) (*http.Request, error)

NewWmpEvidenceGetRequest constructs an http.Request for the WmpEvidenceGet method

func NewWmpEvidenceListRequest​

func NewWmpEvidenceListRequest(server string, params *WmpEvidenceListParams) (*http.Request, error)

NewWmpEvidenceListRequest constructs an http.Request for the WmpEvidenceList method

func NewWmpEvidenceVerifyRequest​

func NewWmpEvidenceVerifyRequest(server string, params *WmpEvidenceVerifyParams, body WmpEvidenceVerifyJSONRequestBody) (*http.Request, error)

NewWmpEvidenceVerifyRequest calls the generic WmpEvidenceVerify builder with application/json body

func NewWmpEvidenceVerifyRequestWithBody​

func NewWmpEvidenceVerifyRequestWithBody(server string, params *WmpEvidenceVerifyParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpEvidenceVerifyRequestWithBody constructs an http.Request for the WmpEvidenceVerify method, with any body, and a specified content type

func NewWmpRelayCorrespondentConnectRequest​

func NewWmpRelayCorrespondentConnectRequest(server string, params *WmpRelayCorrespondentConnectParams, body WmpRelayCorrespondentConnectJSONRequestBody) (*http.Request, error)

NewWmpRelayCorrespondentConnectRequest calls the generic WmpRelayCorrespondentConnect builder with application/json body

func NewWmpRelayCorrespondentConnectRequestWithBody​

func NewWmpRelayCorrespondentConnectRequestWithBody(server string, params *WmpRelayCorrespondentConnectParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpRelayCorrespondentConnectRequestWithBody constructs an http.Request for the WmpRelayCorrespondentConnect method, with any body, and a specified content type

func NewWmpRelayDeleteRequest​

func NewWmpRelayDeleteRequest(server string, params *WmpRelayDeleteParams) (*http.Request, error)

NewWmpRelayDeleteRequest constructs an http.Request for the WmpRelayDelete method

func NewWmpRelayGetRequest​

func NewWmpRelayGetRequest(server string, params *WmpRelayGetParams) (*http.Request, error)

NewWmpRelayGetRequest constructs an http.Request for the WmpRelayGet method

func NewWmpRelayOnboardingCompleteRequest​

func NewWmpRelayOnboardingCompleteRequest(server string, onboardingId string, params *WmpRelayOnboardingCompleteParams, body WmpRelayOnboardingCompleteJSONRequestBody) (*http.Request, error)

NewWmpRelayOnboardingCompleteRequest calls the generic WmpRelayOnboardingComplete builder with application/json body

func NewWmpRelayOnboardingCompleteRequestWithBody​

func NewWmpRelayOnboardingCompleteRequestWithBody(server string, onboardingId string, params *WmpRelayOnboardingCompleteParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpRelayOnboardingCompleteRequestWithBody constructs an http.Request for the WmpRelayOnboardingComplete method, with any body, and a specified content type

func NewWmpRelayOnboardingStartRequest​

func NewWmpRelayOnboardingStartRequest(server string, params *WmpRelayOnboardingStartParams, body WmpRelayOnboardingStartJSONRequestBody) (*http.Request, error)

NewWmpRelayOnboardingStartRequest calls the generic WmpRelayOnboardingStart builder with application/json body

func NewWmpRelayOnboardingStartRequestWithBody​

func NewWmpRelayOnboardingStartRequestWithBody(server string, params *WmpRelayOnboardingStartParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpRelayOnboardingStartRequestWithBody constructs an http.Request for the WmpRelayOnboardingStart method, with any body, and a specified content type

func NewWmpRelayRegistrationCompleteRequest​

func NewWmpRelayRegistrationCompleteRequest(server string, params *WmpRelayRegistrationCompleteParams, body WmpRelayRegistrationCompleteJSONRequestBody) (*http.Request, error)

NewWmpRelayRegistrationCompleteRequest calls the generic WmpRelayRegistrationComplete builder with application/json body

func NewWmpRelayRegistrationCompleteRequestWithBody​

func NewWmpRelayRegistrationCompleteRequestWithBody(server string, params *WmpRelayRegistrationCompleteParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpRelayRegistrationCompleteRequestWithBody constructs an http.Request for the WmpRelayRegistrationComplete method, with any body, and a specified content type

func NewWmpRelayRegistrationStartRequest​

func NewWmpRelayRegistrationStartRequest(server string, params *WmpRelayRegistrationStartParams, body WmpRelayRegistrationStartJSONRequestBody) (*http.Request, error)

NewWmpRelayRegistrationStartRequest calls the generic WmpRelayRegistrationStart builder with application/json body

func NewWmpRelayRegistrationStartRequestWithBody​

func NewWmpRelayRegistrationStartRequestWithBody(server string, params *WmpRelayRegistrationStartParams, contentType string, body io.Reader) (*http.Request, error)

NewWmpRelayRegistrationStartRequestWithBody constructs an http.Request for the WmpRelayRegistrationStart method, with any body, and a specified content type

func NewWmpRelayRotateRequest​

func NewWmpRelayRotateRequest(server string, params *WmpRelayRotateParams) (*http.Request, error)

NewWmpRelayRotateRequest constructs an http.Request for the WmpRelayRotate method

type AccreditationRequest​

AccreditationRequest Accreditation request of own wallet.

type AccreditationRequest struct {
Type AccreditationRequestType `json:"type"`
}

type AccreditationRequestType​

AccreditationRequestType defines model for AccreditationRequest.Type.

type AccreditationRequestType string

Defines values for AccreditationRequestType.

const (
AccreditationRequestTypeRootTrustedAccreditationOrganisation AccreditationRequestType = "RootTrustedAccreditationOrganisation"
AccreditationRequestTypeTrustedAccreditationOrganisation AccreditationRequestType = "TrustedAccreditationOrganisation"
AccreditationRequestTypeTrustedIssuer AccreditationRequestType = "TrustedIssuer"
)

func (AccreditationRequestType) Valid​

func (e AccreditationRequestType) Valid() bool

Valid indicates whether the value is a known member of the AccreditationRequestType enum.

type AuthOffer​

AuthOffer The authorized flow initiation result consisting of the issuer state and URL

type AuthOffer struct {
IssuerUrl string `json:"issuerUrl"`
Offer string `json:"offer"`
OfferId string `json:"offerId"`
State string `json:"state"`
ValidUntil time.Time `json:"validUntil"`
}

type AuthenticationOAuth​

type AuthenticationOAuth struct {
TokenUrl string `yaml:"tokenUrl"`
ClientId string `yaml:"clientId"`
ClientSecret string `yaml:"clientSecret"`
// Audience requested for the token. Defaults to Config.WalletUrl.
Audience string `yaml:"audience"`
}

type BadRequestError​

BadRequestError Common error message

type BadRequestError = Error

type CSRCreateRequest​

CSRCreateRequest defines model for CSRCreateRequest.

type CSRCreateRequest struct {
Country string `json:"country"`

// Did DID identifier that will be added among Subject Alternative Names
Did *string `json:"did,omitempty"`
Email string `json:"email"`
Locality string `json:"locality"`
OrganizationName string `json:"organizationName"`
OrganizationWebsite string `json:"organizationWebsite"`
PostalCode string `json:"postalCode"`
Province *string `json:"province,omitempty"`
StreetAddress string `json:"streetAddress"`
TradeName *string `json:"tradeName,omitempty"`
}

type CSRCreateResponse​

CSRCreateResponse defines model for CSRCreateResponse.

type CSRCreateResponse struct {
Csr string `json:"csr"`
}

type CertificateImportRequest​

CertificateImportRequest defines model for CertificateImportRequest.

type CertificateImportRequest struct {
Certificate string `json:"certificate"`
}

type CertificateIssueRequest​

CertificateIssueRequest defines model for CertificateIssueRequest.

type CertificateIssueRequest struct {
AttachStatus *bool `json:"attachStatus,omitempty"`
Ca *bool `json:"ca,omitempty"`
Csr string `json:"csr"`
ExpirationDate time.Time `json:"expirationDate"`

// Subject Replaces attributes of the CSR's subject. A given attribute replaces the CSR's; an empty string removes it; an omitted one keeps the CSR's. Attributes not listed here are always kept. The subject alternative names are always taken from the CSR.
Subject *CertificateSubject `json:"subject,omitempty"`
}

type CertificateIssueResponse​

CertificateIssueResponse defines model for CertificateIssueResponse.

type CertificateIssueResponse struct {
Certificate string `json:"certificate"`
}

type CertificateRecordGetResponse​

CertificateRecordGetResponse defines model for CertificateRecordGetResponse.

type CertificateRecordGetResponse struct {
CertificateStatus CertificateStatus `json:"certificateStatus"`
Country string `json:"country"`
Email string `json:"email"`
Locality string `json:"locality"`
OrganizationName string `json:"organizationName"`
OrganizationWebsite string `json:"organizationWebsite"`
PostalCode string `json:"postalCode"`
SerialNumber string `json:"serialNumber"`
StreetAddress string `json:"streetAddress"`
TradeName string `json:"tradeName"`
Uris []string `json:"uris"`
}

type CertificateRecordList​

CertificateRecordList defines model for CertificateRecordList.

type CertificateRecordList = []CertificateRecordGetResponse

type CertificateStatus​

CertificateStatus defines model for CertificateStatus.

type CertificateStatus string

Defines values for CertificateStatus.

const (
CertificateStatusRevokedAffiliationChanged CertificateStatus = "revoked_affiliationChanged"
CertificateStatusRevokedCessationOfOperation CertificateStatus = "revoked_cessationOfOperation"
CertificateStatusRevokedKeyCompromise CertificateStatus = "revoked_keyCompromise"
CertificateStatusRevokedPrivilegeWithdrawn CertificateStatus = "revoked_privilegeWithdrawn"
CertificateStatusRevokedSuperseded CertificateStatus = "revoked_superseded"
CertificateStatusRevokedUnspecified CertificateStatus = "revoked_unspecified"
CertificateStatusValid CertificateStatus = "valid"
)

func (CertificateStatus) Valid​

func (e CertificateStatus) Valid() bool

Valid indicates whether the value is a known member of the CertificateStatus enum.

type CertificateStatusUpdateRequest​

CertificateStatusUpdateRequest defines model for CertificateStatusUpdateRequest.

type CertificateStatusUpdateRequest struct {
Status CertificateStatus `json:"status"`
}

type CertificateSubject​

CertificateSubject Replaces attributes of the CSR's subject. A given attribute replaces the CSR's; an empty string removes it; an omitted one keeps the CSR's. Attributes not listed here are always kept. The subject alternative names are always taken from the CSR.

type CertificateSubject struct {
// CommonName commonName (2.5.4.3)
CommonName *string `json:"commonName,omitempty"`

// Country countryName (2.5.4.6), an ISO 3166-1 alpha-2 code in upper case
Country *string `json:"country,omitempty"`

// Locality localityName (2.5.4.7)
Locality *string `json:"locality,omitempty"`

// Organization organizationName (2.5.4.10)
Organization *string `json:"organization,omitempty"`

// OrganizationIdentifier organizationIdentifier (2.5.4.97) in the ETSI EN 319 412-1 (5.1.4) form: a three letter identity type, a two letter country code, a hyphen and the identifier, e.g. VATDE-123456789
OrganizationIdentifier *string `json:"organizationIdentifier,omitempty"`

// PostalCode postalCode (2.5.4.17)
PostalCode *string `json:"postalCode,omitempty"`

// Province stateOrProvinceName (2.5.4.8)
Province *string `json:"province,omitempty"`

// StreetAddress streetAddress (2.5.4.9)
StreetAddress *string `json:"streetAddress,omitempty"`
}

type Client​

Client which conforms to the OpenAPI3 specification for this service.

type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string

// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer

// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}

func NewClient​

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CredentialClaimMetadataGet​

func (c *Client) CredentialClaimMetadataGet(ctx context.Context, credentialId CredentialId, params *CredentialClaimMetadataGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialClaimMetadataGet performs a GET /credentials/{credential_id}/claim_metadata (the `CredentialClaimMetadataGet` operationId) request.

Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).

func (*Client) CredentialCreate​

func (c *Client) CredentialCreate(ctx context.Context, params *CredentialCreateParams, body CredentialCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialCreate performs a POST /credentials (the `CredentialCreate` operationId) request. Takes a body of the `application/json` content type.

Creates a new draft credential.

func (*Client) CredentialCreateWithBody​

func (c *Client) CredentialCreateWithBody(ctx context.Context, params *CredentialCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialCreateWithBody performs a POST /credentials (the `CredentialCreate` operationId) request, with any type of body and a specified content type.

Creates a new draft credential.

func (*Client) CredentialGet​

func (c *Client) CredentialGet(ctx context.Context, credentialId CredentialId, params *CredentialGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialGet performs a GET /credentials/{credential_id} (the `CredentialGet` operationId) request.

Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.

func (*Client) CredentialImport​

func (c *Client) CredentialImport(ctx context.Context, params *CredentialImportParams, body CredentialImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialImport performs a POST /credentials/import (the `CredentialImport` operationId) request. Takes a body of the `application/json` content type.

Import pre-signed credential into wallet.

func (*Client) CredentialImportWithBody​

func (c *Client) CredentialImportWithBody(ctx context.Context, params *CredentialImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialImportWithBody performs a POST /credentials/import (the `CredentialImport` operationId) request, with any type of body and a specified content type.

Import pre-signed credential into wallet.

func (*Client) CredentialIssuanceInit​

func (c *Client) CredentialIssuanceInit(ctx context.Context, credentialId string, params *CredentialIssuanceInitParams, body CredentialIssuanceInitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialIssuanceInit performs a POST /credentials/{credential_id}/issue/init (the `CredentialIssuanceInit` operationId) request. Takes a body of the `application/json` content type.

Prepares created Verifiable Credential draft for its issuance for a specific client.

func (*Client) CredentialIssuanceInitWithBody​

func (c *Client) CredentialIssuanceInitWithBody(ctx context.Context, credentialId string, params *CredentialIssuanceInitParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialIssuanceInitWithBody performs a POST /credentials/{credential_id}/issue/init (the `CredentialIssuanceInit` operationId) request, with any type of body and a specified content type.

Prepares created Verifiable Credential draft for its issuance for a specific client.

func (*Client) CredentialIssueDirect​

func (c *Client) CredentialIssueDirect(ctx context.Context, credentialId CredentialId, params *CredentialIssueDirectParams, body CredentialIssueDirectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialIssueDirect performs a POST /credentials/{credential_id}/issue/direct (the `CredentialIssueDirect` operationId) request. Takes a body of the `application/json` content type.

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`.

func (*Client) CredentialIssueDirectWithBody​

func (c *Client) CredentialIssueDirectWithBody(ctx context.Context, credentialId CredentialId, params *CredentialIssueDirectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialIssueDirectWithBody performs a POST /credentials/{credential_id}/issue/direct (the `CredentialIssueDirect` operationId) request, with any type of body and a specified content type.

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`.

func (*Client) CredentialList​

func (c *Client) CredentialList(ctx context.Context, params *CredentialListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialList performs a GET /credentials (the `CredentialList` operationId) request.

Retrieves a list of credentials.

func (*Client) CredentialMetadataPatch​

func (c *Client) CredentialMetadataPatch(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialMetadataPatch performs a PATCH /credentials/{credential_id}/metadata (the `CredentialMetadataPatch` operationId) request. Takes a body of the `application/json` content type.

Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.

func (*Client) CredentialMetadataPatchWithBody​

func (c *Client) CredentialMetadataPatchWithBody(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialMetadataPatchWithBody performs a PATCH /credentials/{credential_id}/metadata (the `CredentialMetadataPatch` operationId) request, with any type of body and a specified content type.

Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.

func (*Client) CredentialPatch​

func (c *Client) CredentialPatch(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialPatch performs a PATCH /credentials/{credential_id} (the `CredentialPatch` operationId) request. Takes a body of the `application/json` content type.

Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.

func (*Client) CredentialPatchWithBody​

func (c *Client) CredentialPatchWithBody(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialPatchWithBody performs a PATCH /credentials/{credential_id} (the `CredentialPatch` operationId) request, with any type of body and a specified content type.

Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.

func (*Client) CredentialPayloadGet​

func (c *Client) CredentialPayloadGet(ctx context.Context, credentialId CredentialId, params *CredentialPayloadGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialPayloadGet performs a GET /credentials/{credential_id}/payload (the `CredentialPayloadGet` operationId) request.

Returns raw credential payload, with format depending on credential format.

func (*Client) CredentialRawGet​

func (c *Client) CredentialRawGet(ctx context.Context, credentialId CredentialId, params *CredentialRawGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialRawGet performs a GET /credentials/{credential_id}/raw (the `CredentialRawGet` operationId) request.

Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)

func (*Client) CredentialRender​

func (c *Client) CredentialRender(ctx context.Context, credentialId CredentialId, params *CredentialRenderParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialRender performs a GET /credentials/{credential_id}/render (the `CredentialRender` operationId) request.

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.

func (*Client) CredentialRenderMethods​

func (c *Client) CredentialRenderMethods(ctx context.Context, credentialId CredentialId, params *CredentialRenderMethodsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialRenderMethods performs a GET /credentials/{credential_id}/render/methods (the `CredentialRenderMethods` operationId) request.

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.

func (*Client) CredentialRequestInit​

func (c *Client) CredentialRequestInit(ctx context.Context, params *CredentialRequestInitParams, body CredentialRequestInitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialRequestInit performs a POST /credentials/request/init (the `CredentialRequestInit` operationId) request. Takes a body of the `application/json` content type.

Requests a credential issuance from the issuer and retrieves requirements for holder authorization.

func (*Client) CredentialRequestInitWithBody​

func (c *Client) CredentialRequestInitWithBody(ctx context.Context, params *CredentialRequestInitParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialRequestInitWithBody performs a POST /credentials/request/init (the `CredentialRequestInit` operationId) request, with any type of body and a specified content type.

Requests a credential issuance from the issuer and retrieves requirements for holder authorization.

func (*Client) CredentialRevoke​

func (c *Client) CredentialRevoke(ctx context.Context, credentialId CredentialId, params *CredentialRevokeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialRevoke performs a POST /credentials/{credential_id}/revoke (the `CredentialRevoke` operationId) request.

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.

func (*Client) CredentialSuspend​

func (c *Client) CredentialSuspend(ctx context.Context, credentialId CredentialId, params *CredentialSuspendParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialSuspend performs a POST /credentials/{credential_id}/suspend (the `CredentialSuspend` operationId) request.

Suspend a Verifiable Credential issued with the `suspension` status purpose (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.

func (*Client) CredentialUnsuspend​

func (c *Client) CredentialUnsuspend(ctx context.Context, credentialId CredentialId, params *CredentialUnsuspendParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialUnsuspend performs a DELETE /credentials/{credential_id}/suspend (the `CredentialUnsuspend` operationId) request.

Lift the suspension of a Verifiable Credential.

func (*Client) DeferredStatus​

func (c *Client) DeferredStatus(ctx context.Context, deferredId string, params *DeferredStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeferredStatus performs a GET /deferred/{deferred_id} (the `DeferredStatus` operationId) request.

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.

func (*Client) DidDocumentGet​

func (c *Client) DidDocumentGet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)

DidDocumentGet performs a GET /{wallet_id}/did.json (the `DidDocumentGet` operationId) request.

Gets the DID Document of the wallet.

func (*Client) DidDocumentLocalGet​

func (c *Client) DidDocumentLocalGet(ctx context.Context, params *DidDocumentLocalGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DidDocumentLocalGet performs a GET /did (the `DidDocumentLocalGet` operationId) request.

Returns the wallet's own DID document, as published at `/{wallet_id}/did.json` for a self-hosted did:web.

func (*Client) DidDocumentPatch​

func (c *Client) DidDocumentPatch(ctx context.Context, params *DidDocumentPatchParams, body DidDocumentPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

DidDocumentPatch performs a PATCH /did (the `DidDocumentPatch` operationId) request. Takes a body of the `application/json` content type.

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`.

func (*Client) DidDocumentPatchWithBody​

func (c *Client) DidDocumentPatchWithBody(ctx context.Context, params *DidDocumentPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

DidDocumentPatchWithBody performs a PATCH /did (the `DidDocumentPatch` operationId) request, with any type of body and a specified content type.

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`.

func (*Client) HealthCheck​

func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

HealthCheck performs a GET /health (the `HealthCheck` operationId) request.

Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.

func (*Client) HolderCreateAuthOffer​

func (c *Client) HolderCreateAuthOffer(ctx context.Context, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderCreateAuthOffer performs a POST /offer/create/intime (the `HolderCreateAuthOffer` operationId) request. Takes a body of the `application/json` content type.

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.

func (*Client) HolderCreateAuthOfferWithBody​

func (c *Client) HolderCreateAuthOfferWithBody(ctx context.Context, params *HolderCreateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderCreateAuthOfferWithBody performs a POST /offer/create/intime (the `HolderCreateAuthOffer` operationId) request, with any type of body and a specified content type.

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.

func (*Client) HolderCredentialsPresentAfterConsent​

func (c *Client) HolderCredentialsPresentAfterConsent(ctx context.Context, interactionId string, params *HolderCredentialsPresentAfterConsentParams, body HolderCredentialsPresentAfterConsentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderCredentialsPresentAfterConsent performs a POST /holder/present/{interaction_id} (the `HolderCredentialsPresentAfterConsent` operationId) request. Takes a body of the `application/json` content type.

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`.

func (*Client) HolderCredentialsPresentAfterConsentWithBody​

func (c *Client) HolderCredentialsPresentAfterConsentWithBody(ctx context.Context, interactionId string, params *HolderCredentialsPresentAfterConsentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderCredentialsPresentAfterConsentWithBody performs a POST /holder/present/{interaction_id} (the `HolderCredentialsPresentAfterConsent` operationId) request, with any type of body and a specified content type.

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`.

func (*Client) HolderIdTokenSend​

func (c *Client) HolderIdTokenSend(ctx context.Context, params *HolderIdTokenSendParams, body HolderIdTokenSendJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderIdTokenSend performs a POST /holder/id-token/send (the `HolderIdTokenSend` operationId) request. Takes a body of the `application/json` content type.

Responds to an ID token request.

func (*Client) HolderIdTokenSendWithBody​

func (c *Client) HolderIdTokenSendWithBody(ctx context.Context, params *HolderIdTokenSendParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderIdTokenSendWithBody performs a POST /holder/id-token/send (the `HolderIdTokenSend` operationId) request, with any type of body and a specified content type.

Responds to an ID token request.

func (*Client) HolderOfferPassAuthInfo​

func (c *Client) HolderOfferPassAuthInfo(ctx context.Context, params *HolderOfferPassAuthInfoParams, body HolderOfferPassAuthInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderOfferPassAuthInfo performs a POST /holder/offer/pass-auth-info (the `HolderOfferPassAuthInfo` operationId) request. Takes a body of the `application/json` content type.

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.

func (*Client) HolderOfferPassAuthInfoWithBody​

func (c *Client) HolderOfferPassAuthInfoWithBody(ctx context.Context, params *HolderOfferPassAuthInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderOfferPassAuthInfoWithBody performs a POST /holder/offer/pass-auth-info (the `HolderOfferPassAuthInfo` operationId) request, with any type of body and a specified content type.

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.

func (*Client) HolderOfferProcessAfterConsent​

func (c *Client) HolderOfferProcessAfterConsent(ctx context.Context, interactionId string, params *HolderOfferProcessAfterConsentParams, body HolderOfferProcessAfterConsentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderOfferProcessAfterConsent performs a POST /holder/offer/{interaction_id}/process (the `HolderOfferProcessAfterConsent` operationId) request. Takes a body of the `application/json` content type.

Completes a credential offer flow after holder consent: submits data needed for the holder to authorize candidates to the issuer for holder authorization and retrieves the issued credential(s) into the wallet. The `interaction_id` is obtained from `HolderOfferPassAuthInfo`.

func (*Client) HolderOfferProcessAfterConsentWithBody​

func (c *Client) HolderOfferProcessAfterConsentWithBody(ctx context.Context, interactionId string, params *HolderOfferProcessAfterConsentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderOfferProcessAfterConsentWithBody performs a POST /holder/offer/{interaction_id}/process (the `HolderOfferProcessAfterConsent` operationId) request, with any type of body and a specified content type.

Completes a credential offer flow after holder consent: submits data needed for the holder to authorize candidates to the issuer for holder authorization and retrieves the issued credential(s) into the wallet. The `interaction_id` is obtained from `HolderOfferPassAuthInfo`.

func (*Client) HolderPresentPassAuthInfo​

func (c *Client) HolderPresentPassAuthInfo(ctx context.Context, params *HolderPresentPassAuthInfoParams, body HolderPresentPassAuthInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderPresentPassAuthInfo performs a POST /holder/present/pass-auth-info (the `HolderPresentPassAuthInfo` operationId) request. Takes a body of the `application/json` content type.

Processes a verifier's presentation request URL and returns the presentation definition along with matching credential candidates from the wallet. The holder reviews which credentials will be disclosed before giving consent. The returned `interactionId` is used in the subsequent `HolderCredentialsPresentAfterConsent` call.

func (*Client) HolderPresentPassAuthInfoWithBody​

func (c *Client) HolderPresentPassAuthInfoWithBody(ctx context.Context, params *HolderPresentPassAuthInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

HolderPresentPassAuthInfoWithBody performs a POST /holder/present/pass-auth-info (the `HolderPresentPassAuthInfo` operationId) request, with any type of body and a specified content type.

Processes a verifier's presentation request URL and returns the presentation definition along with matching credential candidates from the wallet. The holder reviews which credentials will be disclosed before giving consent. The returned `interactionId` is used in the subsequent `HolderCredentialsPresentAfterConsent` call.

func (*Client) IdTokenRequestCreate​

func (c *Client) IdTokenRequestCreate(ctx context.Context, params *IdTokenRequestCreateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

IdTokenRequestCreate performs a POST /id-token/request (the `IdTokenRequestCreate` operationId) request.

Creates an ID token request that will be sent to the holder for DID-based authentication. Used during the authorized credential issuance flow when the issuer requires the holder to prove control of their DID before the credential is issued. The returned request ID is passed to `CredentialIssuanceInit` as `idTokenRequestId`.

func (*Client) IssuerCredentialTypesList​

func (c *Client) IssuerCredentialTypesList(ctx context.Context, params *IssuerCredentialTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuerCredentialTypesList performs a GET /issuer/credential/types (the `IssuerCredentialTypesList` operationId) request.

Returns verifiable credential format and types that are supported by the issuer.

  • format: the verifiable credential format (for example "jwt_vc")
  • type: a list of strings that define supported verifiable credential type(s)

func (*Client) IssuerDetachedJwsSign​

func (c *Client) IssuerDetachedJwsSign(ctx context.Context, params *IssuerDetachedJwsSignParams, body IssuerDetachedJwsSignJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuerDetachedJwsSign performs a POST /issuer/jws/detached (the `IssuerDetachedJwsSign` operationId) request. Takes a body of the `application/json` content type.

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.

func (*Client) IssuerDetachedJwsSignWithBody​

func (c *Client) IssuerDetachedJwsSignWithBody(ctx context.Context, params *IssuerDetachedJwsSignParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuerDetachedJwsSignWithBody performs a POST /issuer/jws/detached (the `IssuerDetachedJwsSign` operationId) request, with any type of body and a specified content type.

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.

func (*Client) IssuerInitiateAuthOffer​

func (c *Client) IssuerInitiateAuthOffer(ctx context.Context, params *IssuerInitiateAuthOfferParams, body IssuerInitiateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuerInitiateAuthOffer performs a POST /issuer/offer/auth (the `IssuerInitiateAuthOffer` operationId) request. Takes a body of the `application/json` content type.

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.

func (*Client) IssuerInitiateAuthOfferWithBody​

func (c *Client) IssuerInitiateAuthOfferWithBody(ctx context.Context, params *IssuerInitiateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuerInitiateAuthOfferWithBody performs a POST /issuer/offer/auth (the `IssuerInitiateAuthOffer` operationId) request, with any type of body and a specified content type.

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.

func (*Client) IssuerInitiatePreauthOffer​

func (c *Client) IssuerInitiatePreauthOffer(ctx context.Context, params *IssuerInitiatePreauthOfferParams, body IssuerInitiatePreauthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuerInitiatePreauthOffer performs a POST /issuer/offer/preauth (the `IssuerInitiatePreauthOffer` operationId) request. Takes a body of the `application/json` content type.

Generates a pre-authorized credential offer for the holder. Unlike the authorized flow, the holder does not need to authenticate with the issuer — instead a pre-authorized code (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and can be shared as a QR code or deep link.

func (*Client) IssuerInitiatePreauthOfferWithBody​

func (c *Client) IssuerInitiatePreauthOfferWithBody(ctx context.Context, params *IssuerInitiatePreauthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuerInitiatePreauthOfferWithBody performs a POST /issuer/offer/preauth (the `IssuerInitiatePreauthOffer` operationId) request, with any type of body and a specified content type.

Generates a pre-authorized credential offer for the holder. Unlike the authorized flow, the holder does not need to authenticate with the issuer — instead a pre-authorized code (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and can be shared as a QR code or deep link.

func (*Client) IssuerXadesSignWithBody​

func (c *Client) IssuerXadesSignWithBody(ctx context.Context, params *IssuerXadesSignParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuerXadesSignWithBody performs a POST /issuer/xades (the `IssuerXadesSign` operationId) request, with any type of body and a specified content type.

Signs an XML document with XAdES signature.

func (*Client) PdfCredentialMakeVp​

func (c *Client) PdfCredentialMakeVp(ctx context.Context, credentialId CredentialId, params *PdfCredentialMakeVpParams, reqEditors ...RequestEditorFn) (*http.Response, error)

PdfCredentialMakeVp performs a POST /credentials/{credential_id}/pdf/vp (the `PdfCredentialMakeVp` operationId) request.

Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.

func (*Client) PdfCredentialTwinDelete​

func (c *Client) PdfCredentialTwinDelete(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

PdfCredentialTwinDelete performs a DELETE /credentials/{credential_id}/pdf (the `PdfCredentialTwinDelete` operationId) request.

Deletes the PDF associated with the verifiable credential. Can be used only for credentials in Draft state.

func (*Client) PdfCredentialTwinGet​

func (c *Client) PdfCredentialTwinGet(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

PdfCredentialTwinGet performs a GET /credentials/{credential_id}/pdf (the `PdfCredentialTwinGet` operationId) request.

Returns either an unsigned PDF that was uploaded to be signed and embedded into a verifiable credential in case of credential in Draft state, or a signed PDF embedded in an issued VC.

func (*Client) PdfCredentialTwinUploadWithBody​

func (c *Client) PdfCredentialTwinUploadWithBody(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinUploadParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PdfCredentialTwinUploadWithBody performs a POST /credentials/{credential_id}/pdf (the `PdfCredentialTwinUpload` operationId) request, with any type of body and a specified content type.

Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 20 MB.

func (*Client) TenantEnrollmentEnroll​

func (c *Client) TenantEnrollmentEnroll(ctx context.Context, tenantId string, state string, reqEditors ...RequestEditorFn) (*http.Response, error)

TenantEnrollmentEnroll performs a POST /tenant/{tenant_id}/enrollment/{state} (the `TenantEnrollmentEnroll` operationId) request.

Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.

func (*Client) TenantEnrollmentInit​

func (c *Client) TenantEnrollmentInit(ctx context.Context, tenantId string, body TenantEnrollmentInitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TenantEnrollmentInit performs a POST /tenant/{tenant_id}/enrollment/init (the `TenantEnrollmentInit` operationId) request. Takes a body of the `application/json` content type.

Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.

func (*Client) TenantEnrollmentInitWithBody​

func (c *Client) TenantEnrollmentInitWithBody(ctx context.Context, tenantId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TenantEnrollmentInitWithBody performs a POST /tenant/{tenant_id}/enrollment/init (the `TenantEnrollmentInit` operationId) request, with any type of body and a specified content type.

Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.

func (*Client) TenantEnrollmentList​

func (c *Client) TenantEnrollmentList(ctx context.Context, tenantId string, reqEditors ...RequestEditorFn) (*http.Response, error)

TenantEnrollmentList performs a GET /tenant/{tenant_id}/enrollments (the `TenantEnrollmentList` operationId) request.

Lists the tenant's pending enrollments, oldest first. Only a Tenant Owner of the tenant may.

func (*Client) TenantEnrollmentRevoke​

func (c *Client) TenantEnrollmentRevoke(ctx context.Context, tenantId string, enrollmentId string, reqEditors ...RequestEditorFn) (*http.Response, error)

TenantEnrollmentRevoke performs a DELETE /tenant/{tenant_id}/enrollments/{enrollment_id} (the `TenantEnrollmentRevoke` operationId) request.

Revokes a pending enrollment, so that its state no longer creates a wallet.

func (*Client) TfAccreditAs​

func (c *Client) TfAccreditAs(ctx context.Context, params *TfAccreditAsParams, body TfAccreditAsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TfAccreditAs performs a POST /tf/accredit (the `TfAccreditAs` operationId) request. Takes a body of the `application/json` content type.

Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.

func (*Client) TfAccreditAsWithBody​

func (c *Client) TfAccreditAsWithBody(ctx context.Context, params *TfAccreditAsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TfAccreditAsWithBody performs a POST /tf/accredit (the `TfAccreditAs` operationId) request, with any type of body and a specified content type.

Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.

func (*Client) TfAccreditRequest​

func (c *Client) TfAccreditRequest(ctx context.Context, params *TfAccreditRequestParams, body TfAccreditRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TfAccreditRequest performs a POST /tf/accreditation_request (the `TfAccreditRequest` operationId) request. Takes a body of the `application/json` content type.

Used by a TAO/RTAO wallet to process and approve an incoming accreditation request from another legal entity. Issues an accreditation credential authorizing the entity to issue credentials of the specified type within the trust framework.

func (*Client) TfAccreditRequestWithBody​

func (c *Client) TfAccreditRequestWithBody(ctx context.Context, params *TfAccreditRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TfAccreditRequestWithBody performs a POST /tf/accreditation_request (the `TfAccreditRequest` operationId) request, with any type of body and a specified content type.

Used by a TAO/RTAO wallet to process and approve an incoming accreditation request from another legal entity. Issues an accreditation credential authorizing the entity to issue credentials of the specified type within the trust framework.

func (*Client) TfOnboard​

func (c *Client) TfOnboard(ctx context.Context, params *TfOnboardParams, body TfOnboardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TfOnboard performs a POST /tf/onboard (the `TfOnboard` operationId) request. Takes a body of the `application/json` content type.

Completes the trust framework onboarding of this wallet using the specified onboarding credential. After successful onboarding, the wallet's DID is registered in the trust framework's TAO/TI hierarchy, enabling it to issue or verify trust-framework credentials. A UNTP wallet onboards with a Digital Identity Anchor of its DID, held (`onboardingCredentialId`) or offered (`offer`): it verifies it, publishes it in its DID document as a `dia` link, and replaces the DIA it published before.

func (*Client) TfOnboardRequest​

func (c *Client) TfOnboardRequest(ctx context.Context, params *TfOnboardRequestParams, body TfOnboardRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TfOnboardRequest performs a POST /tf/onboard_request (the `TfOnboardRequest` operationId) request. Takes a body of the `application/json` content type.

Used by a TAO/RTAO wallet to process and approve an incoming onboarding request from another legal entity. Issues an onboarding credential (TIA) to the requesting entity, registering them in the trust framework. A UNTP registrar wallet makes a Digital Identity Anchor (`untp`) pending for the DID: the member obtains it through the OpenID4VCI issuance of `untp-dia` (an offer from `/issuer/offer/preauth` with the DID as `clientId`), signing its proof with the DID's key.

func (*Client) TfOnboardRequestWithBody​

func (c *Client) TfOnboardRequestWithBody(ctx context.Context, params *TfOnboardRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TfOnboardRequestWithBody performs a POST /tf/onboard_request (the `TfOnboardRequest` operationId) request, with any type of body and a specified content type.

Used by a TAO/RTAO wallet to process and approve an incoming onboarding request from another legal entity. Issues an onboarding credential (TIA) to the requesting entity, registering them in the trust framework. A UNTP registrar wallet makes a Digital Identity Anchor (`untp`) pending for the DID: the member obtains it through the OpenID4VCI issuance of `untp-dia` (an offer from `/issuer/offer/preauth` with the DID as `clientId`), signing its proof with the DID's key.

func (*Client) TfOnboardWithBody​

func (c *Client) TfOnboardWithBody(ctx context.Context, params *TfOnboardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TfOnboardWithBody performs a POST /tf/onboard (the `TfOnboard` operationId) request, with any type of body and a specified content type.

Completes the trust framework onboarding of this wallet using the specified onboarding credential. After successful onboarding, the wallet's DID is registered in the trust framework's TAO/TI hierarchy, enabling it to issue or verify trust-framework credentials. A UNTP wallet onboards with a Digital Identity Anchor of its DID, held (`onboardingCredentialId`) or offered (`offer`): it verifies it, publishes it in its DID document as a `dia` link, and replaces the DIA it published before.

func (*Client) TfRevokeAccreditation​

func (c *Client) TfRevokeAccreditation(ctx context.Context, params *TfRevokeAccreditationParams, body TfRevokeAccreditationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TfRevokeAccreditation performs a POST /tf/revoke-accredit (the `TfRevokeAccreditation` operationId) request. Takes a body of the `application/json` content type.

Revokes another legal entity's accreditation or trust framework registration by invalidating their credential in the trust status list.

func (*Client) TfRevokeAccreditationWithBody​

func (c *Client) TfRevokeAccreditationWithBody(ctx context.Context, params *TfRevokeAccreditationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TfRevokeAccreditationWithBody performs a POST /tf/revoke-accredit (the `TfRevokeAccreditation` operationId) request, with any type of body and a specified content type.

Revokes another legal entity's accreditation or trust framework registration by invalidating their credential in the trust status list.

func (*Client) TfUntpDiaIssue​

func (c *Client) TfUntpDiaIssue(ctx context.Context, params *TfUntpDiaIssueParams, body TfUntpDiaIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TfUntpDiaIssue performs a POST /tf/untp/dia (the `TfUntpDiaIssue` operationId) request. Takes a body of the `application/json` content type.

Issues a Digital Identity Anchor to a DID without the OpenID4VCI proof that the member controls it, for closed pilots: 403 unless the deployment sets `untp.registrar.allowUnverifiedDidBinding`. The member onboards with it (`POST /tf/onboard` with `onboardingCredentialId`, once it holds it). Another wallet than a UNTP registrar is 422.

func (*Client) TfUntpDiaIssueWithBody​

func (c *Client) TfUntpDiaIssueWithBody(ctx context.Context, params *TfUntpDiaIssueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TfUntpDiaIssueWithBody performs a POST /tf/untp/dia (the `TfUntpDiaIssue` operationId) request, with any type of body and a specified content type.

Issues a Digital Identity Anchor to a DID without the OpenID4VCI proof that the member controls it, for closed pilots: 403 unless the deployment sets `untp.registrar.allowUnverifiedDidBinding`. The member onboards with it (`POST /tf/onboard` with `onboardingCredentialId`, once it holds it). Another wallet than a UNTP registrar is 422.

func (*Client) TfUntpDiaList​

func (c *Client) TfUntpDiaList(ctx context.Context, params *TfUntpDiaListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

TfUntpDiaList performs a GET /tf/untp/dia (the `TfUntpDiaList` operationId) request.

Lists the Digital Identity Anchors a UNTP registrar wallet issued. Another wallet is 422.

func (*Client) TfUntpRequestList​

func (c *Client) TfUntpRequestList(ctx context.Context, params *TfUntpRequestListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

TfUntpRequestList performs a GET /tf/untp/requests (the `TfUntpRequestList` operationId) request.

Lists the DIDs a UNTP registrar wallet is ready to issue a Digital Identity Anchor to (`POST /tf/onboard_request`), until they obtain it or the request expires. Another wallet is 422.

func (*Client) TfX509CertificateGetRecord​

func (c *Client) TfX509CertificateGetRecord(ctx context.Context, serialNumber string, params *TfX509CertificateGetRecordParams, reqEditors ...RequestEditorFn) (*http.Response, error)

TfX509CertificateGetRecord performs a GET /tf/x509/{serial_number} (the `TfX509CertificateGetRecord` operationId) request.

Returns a record of an issued X509 certificate.

func (*Client) TfX509CertificateIssue​

func (c *Client) TfX509CertificateIssue(ctx context.Context, params *TfX509CertificateIssueParams, body TfX509CertificateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TfX509CertificateIssue performs a POST /tf/x509 (the `TfX509CertificateIssue` operationId) request. Takes a body of the `application/json` content type.

Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.

func (*Client) TfX509CertificateIssueWithBody​

func (c *Client) TfX509CertificateIssueWithBody(ctx context.Context, params *TfX509CertificateIssueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TfX509CertificateIssueWithBody performs a POST /tf/x509 (the `TfX509CertificateIssue` operationId) request, with any type of body and a specified content type.

Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.

func (*Client) TfX509CertificateListRecords​

func (c *Client) TfX509CertificateListRecords(ctx context.Context, params *TfX509CertificateListRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

TfX509CertificateListRecords performs a GET /tf/x509 (the `TfX509CertificateListRecords` operationId) request.

Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.

func (*Client) TfX509CertificateUpdateStatus​

func (c *Client) TfX509CertificateUpdateStatus(ctx context.Context, serialNumber string, params *TfX509CertificateUpdateStatusParams, body TfX509CertificateUpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TfX509CertificateUpdateStatus performs a POST /tf/x509/{serial_number}/status (the `TfX509CertificateUpdateStatus` operationId) request. Takes a body of the `application/json` content type.

Updates a status of an already issued X509 certificate.

func (*Client) TfX509CertificateUpdateStatusWithBody​

func (c *Client) TfX509CertificateUpdateStatusWithBody(ctx context.Context, serialNumber string, params *TfX509CertificateUpdateStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TfX509CertificateUpdateStatusWithBody performs a POST /tf/x509/{serial_number}/status (the `TfX509CertificateUpdateStatus` operationId) request, with any type of body and a specified content type.

Updates a status of an already issued X509 certificate.

func (*Client) TrustListAdd​

func (c *Client) TrustListAdd(ctx context.Context, body TrustListAddJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

TrustListAdd performs a POST /admin/trust-lists (the `TrustListAdd` operationId) request. Takes a body of the `application/json` content type.

Starts tracking the trusted list published at the given URL, storing its contents and pinning it to the certificate that signed it. Adding a list that is already tracked refreshes it. Requires the `admin` role and the `trustListProviderPostgres` provider.

This fetches the list before it answers, and adding a List of Trusted Lists also walks every list it points at, so the call takes as long as those fetches do. A list that could not be reached through the walk is left out rather than failing the registration.

func (*Client) TrustListAddWithBody​

func (c *Client) TrustListAddWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

TrustListAddWithBody performs a POST /admin/trust-lists (the `TrustListAdd` operationId) request, with any type of body and a specified content type.

Starts tracking the trusted list published at the given URL, storing its contents and pinning it to the certificate that signed it. Adding a list that is already tracked refreshes it. Requires the `admin` role and the `trustListProviderPostgres` provider.

This fetches the list before it answers, and adding a List of Trusted Lists also walks every list it points at, so the call takes as long as those fetches do. A list that could not be reached through the walk is left out rather than failing the registration.

func (*Client) TrustListDelete​

func (c *Client) TrustListDelete(ctx context.Context, params *TrustListDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

TrustListDelete performs a DELETE /admin/trust-lists (the `TrustListDelete` operationId) request.

Stops tracking the trusted list published at the given URL and removes its contents. Removing a List of Trusted Lists removes the lists reached through it as well. Requires the `admin` role and the `trustListProviderPostgres` provider.

A wallet whose configuration still names this list will register it again the next time it verifies against it.

func (*Client) TrustListRefresh​

func (c *Client) TrustListRefresh(ctx context.Context, params *TrustListRefreshParams, reqEditors ...RequestEditorFn) (*http.Response, error)

TrustListRefresh performs a POST /admin/trust-lists/refresh (the `TrustListRefresh` operationId) request.

Refetches the tracked trusted list published at the given URL and stores what it fetched, whether or not the publisher has issued a new version of it. This is what separates a forced refresh from the sweep the wallet makes on its own interval, which leaves an unchanged list alone. Requires the `admin` role and the `trustListProviderPostgres` provider.

The refetch is pinned to the certificate already recorded for the list, so a list cannot be moved onto a new signer by refreshing it: one signed by a different certificate is rejected with 409 and the stored copy is kept.

func (*Client) TrustListsGet​

func (c *Client) TrustListsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

TrustListsGet performs a GET /admin/trust-lists (the `TrustListsGet` operationId) request.

Lists the trusted lists the wallet tracks. Requires the `admin` role, and a wallet configured with the `trustListProviderPostgres` trust list provider: one that fetches its lists from their publisher as it needs them tracks nothing, and answers 501.

A list reached through a List of Trusted Lists is not a source of its own and is not returned here. It is refreshed and removed along with the list that points at it.

func (*Client) UntpLinkDelete​

func (c *Client) UntpLinkDelete(ctx context.Context, serviceId string, params *UntpLinkDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

UntpLinkDelete performs a DELETE /untp/links/{service_id} (the `UntpLinkDelete` operationId) request.

Removes a UNTP link from the wallet's DID document and stops serving its credential.

func (c *Client) UntpLinkList(ctx context.Context, params *UntpLinkListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

UntpLinkList performs a GET /untp/links (the `UntpLinkList` operationId) request.

The UNTP links the wallet's DID document advertises for its published credentials.

func (*Client) UntpLinkPublish​

func (c *Client) UntpLinkPublish(ctx context.Context, params *UntpLinkPublishParams, body UntpLinkPublishJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UntpLinkPublish performs a POST /untp/links (the `UntpLinkPublish` operationId) request. Takes a body of the `application/json` content type.

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).

func (*Client) UntpLinkPublishWithBody​

func (c *Client) UntpLinkPublishWithBody(ctx context.Context, params *UntpLinkPublishParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UntpLinkPublishWithBody performs a POST /untp/links (the `UntpLinkPublish` operationId) request, with any type of body and a specified content type.

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).

func (*Client) UntpRegistryList​

func (c *Client) UntpRegistryList(ctx context.Context, params *UntpRegistryListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

UntpRegistryList performs a GET /untp/registry (the `UntpRegistryList` operationId) request.

Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet's own DID is one of them. Each registrar says where it is listed (`source`): in the wallet's `UNTP.trustedRegistrars`, the deployment's `untp.dia.trustedRegistrars`, or the deployment's remote registry (`untp.dia.registryUrl`), in that order of precedence. With a remote registry, `registry` says which copy of it is in use; one that cannot be fetched is reported there, and the other registrars are still listed.

func (*Client) VerifierCredentialVerify​

func (c *Client) VerifierCredentialVerify(ctx context.Context, params *VerifierCredentialVerifyParams, body VerifierCredentialVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifierCredentialVerify performs a POST /verifier/credential (the `VerifierCredentialVerify` operationId) request. Takes a body of the `application/json` content type.

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.

func (*Client) VerifierCredentialVerifyWithBody​

func (c *Client) VerifierCredentialVerifyWithBody(ctx context.Context, params *VerifierCredentialVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifierCredentialVerifyWithBody performs a POST /verifier/credential (the `VerifierCredentialVerify` operationId) request, with any type of body and a specified content type.

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.

func (*Client) VerifierDidVerify​

func (c *Client) VerifierDidVerify(ctx context.Context, params *VerifierDidVerifyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifierDidVerify performs a GET /verifier/did (the `VerifierDidVerify` operationId) request.

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`.

func (*Client) VerifierInitUrlCreate​

func (c *Client) VerifierInitUrlCreate(ctx context.Context, params *VerifierInitUrlCreateParams, body VerifierInitUrlCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifierInitUrlCreate performs a POST /verifier/init (the `VerifierInitUrlCreate` operationId) request. Takes a body of the `application/json` content type.

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.

func (*Client) VerifierInitUrlCreateWithBody​

func (c *Client) VerifierInitUrlCreateWithBody(ctx context.Context, params *VerifierInitUrlCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifierInitUrlCreateWithBody performs a POST /verifier/init (the `VerifierInitUrlCreate` operationId) request, with any type of body and a specified content type.

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.

func (*Client) VerifierPdfVerifyWithBody​

func (c *Client) VerifierPdfVerifyWithBody(ctx context.Context, params *VerifierPdfVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifierPdfVerifyWithBody performs a POST /verifier/pdf (the `VerifierPdfVerify` operationId) request, with any type of body and a specified content type.

Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document Maximum size of the PDF document is 50 MB.

func (*Client) VerifierRender​

func (c *Client) VerifierRender(ctx context.Context, params *VerifierRenderParams, body VerifierRenderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifierRender performs a POST /verifier/render (the `VerifierRender` operationId) request. Takes a body of the `application/json` content type.

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`.

func (*Client) VerifierRenderWithBody​

func (c *Client) VerifierRenderWithBody(ctx context.Context, params *VerifierRenderParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifierRenderWithBody performs a POST /verifier/render (the `VerifierRender` operationId) request, with any type of body and a specified content type.

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`.

func (*Client) VerifierUntpResolve​

func (c *Client) VerifierUntpResolve(ctx context.Context, params *VerifierUntpResolveParams, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifierUntpResolve performs a GET /verifier/untp/resolve (the `VerifierUntpResolve` operationId) request.

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.

func (*Client) WalletCreate​

func (c *Client) WalletCreate(ctx context.Context, body WalletCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletCreate performs a POST /wallets (the `WalletCreate` operationId) request. Takes a body of the `application/json` content type.

Creates a new wallet for the authenticated client.

func (*Client) WalletCreateWithBody​

func (c *Client) WalletCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletCreateWithBody performs a POST /wallets (the `WalletCreate` operationId) request, with any type of body and a specified content type.

Creates a new wallet for the authenticated client.

func (*Client) WalletDelete​

func (c *Client) WalletDelete(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletDelete performs a DELETE /wallets/{wallet_id} (the `WalletDelete` operationId) request.

Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.

func (*Client) WalletGet​

func (c *Client) WalletGet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletGet performs a GET /wallets/{wallet_id} (the `WalletGet` operationId) request.

Provides wallet details.

func (*Client) WalletIdentifierGet​

func (c *Client) WalletIdentifierGet(ctx context.Context, params *WalletIdentifierGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletIdentifierGet performs a GET /identifier (the `WalletIdentifierGet` operationId) request.

Returns the wallet's public identifier — e.g. a DID (Decentralized Identifier) or a wallet URL. Used by other parties to reference this wallet in trust framework interactions and credential exchanges.

func (*Client) WalletKeys​

func (c *Client) WalletKeys(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletKeys performs a GET /wallets/{wallet_id}/keys (the `WalletKeys` operationId) request.

Provides wallet keys used for signing.

func (*Client) WalletList​

func (c *Client) WalletList(ctx context.Context, params *WalletListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletList performs a GET /wallets (the `WalletList` operationId) request.

Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.

func (*Client) WalletNotificationGetByState​

func (c *Client) WalletNotificationGetByState(ctx context.Context, walletId string, eventType string, state string, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletNotificationGetByState performs a GET /wallets/{wallet_id}/notification_history/{event_type}/{state} (the `WalletNotificationGetByState` operationId) request.

Gets a specific notification by state.

func (*Client) WalletNotificationHistory​

func (c *Client) WalletNotificationHistory(ctx context.Context, walletId string, params *WalletNotificationHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletNotificationHistory performs a GET /wallets/{wallet_id}/notification_history (the `WalletNotificationHistory` operationId) request.

Provides wallet notifications that can be used to audit the wallet activity.

func (*Client) WalletNotifications​

func (c *Client) WalletNotifications(ctx context.Context, walletId string, params *WalletNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletNotifications performs a GET /wallets/{wallet_id}/notifications (the `WalletNotifications` operationId) request.

Provides SSE stream of notifications for a specific wallet. Supports replay of queued notifications via `Last-Event-Id` header parameter.

func (*Client) WalletPatch​

func (c *Client) WalletPatch(ctx context.Context, walletId string, body WalletPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletPatch performs a PATCH /wallets/{wallet_id} (the `WalletPatch` operationId) request. Takes a body of the `application/json` content type.

Update wallet metadata and configuration.

The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. `config.UNTP` replaces the wallet's UNTP config, but for the read-only `isOnboarded` and `role`, which keep their stored values; an invalid one is `400`. A Tenant Owner of the wallet's tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.

func (*Client) WalletPatchWithBody​

func (c *Client) WalletPatchWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletPatchWithBody performs a PATCH /wallets/{wallet_id} (the `WalletPatch` operationId) request, with any type of body and a specified content type.

Update wallet metadata and configuration.

The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. `config.UNTP` replaces the wallet's UNTP config, but for the read-only `isOnboarded` and `role`, which keep their stored values; an invalid one is `400`. A Tenant Owner of the wallet's tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.

func (*Client) WalletProviderCertificateImport​

func (c *Client) WalletProviderCertificateImport(ctx context.Context, body WalletProviderCertificateImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletProviderCertificateImport performs a POST /admin/wallet-provider/certificate (the `WalletProviderCertificateImport` operationId) request. Takes a body of the `application/json` content type.

Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.

func (*Client) WalletProviderCertificateImportWithBody​

func (c *Client) WalletProviderCertificateImportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletProviderCertificateImportWithBody performs a POST /admin/wallet-provider/certificate (the `WalletProviderCertificateImport` operationId) request, with any type of body and a specified content type.

Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.

func (*Client) WalletProviderCsrGenerate​

func (c *Client) WalletProviderCsrGenerate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletProviderCsrGenerate performs a POST /admin/wallet-provider/csr (the `WalletProviderCsrGenerate` operationId) request.

Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.

func (*Client) WalletVerifiedCredentialsByState​

func (c *Client) WalletVerifiedCredentialsByState(ctx context.Context, walletId string, state string, params *WalletVerifiedCredentialsByStateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletVerifiedCredentialsByState performs a GET /wallets/{wallet_id}/verified_credentials/{state} (the `WalletVerifiedCredentialsByState` operationId) request.

Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.

func (*Client) WalletVerifiedCredentialsDeleteByState​

func (c *Client) WalletVerifiedCredentialsDeleteByState(ctx context.Context, walletId string, state string, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletVerifiedCredentialsDeleteByState performs a DELETE /wallets/{wallet_id}/verified_credentials/{state} (the `WalletVerifiedCredentialsDeleteByState` operationId) request.

Deletes a specific verified credentials by state.

func (*Client) WalletX509CSRCreate​

func (c *Client) WalletX509CSRCreate(ctx context.Context, walletId string, body WalletX509CSRCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletX509CSRCreate performs a POST /wallets/{wallet_id}/csr (the `WalletX509CSRCreate` operationId) request. Takes a body of the `application/json` content type.

Creates an X509 Certificate Signing Request (CSR) for the wallet's signing key.

The resulting certificate is imported back via `WalletX509CertificateImport` to enable issuing credentials signed by X509 certificate chain it or XAdES/PDF signing.

func (*Client) WalletX509CSRCreateWithBody​

func (c *Client) WalletX509CSRCreateWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletX509CSRCreateWithBody performs a POST /wallets/{wallet_id}/csr (the `WalletX509CSRCreate` operationId) request, with any type of body and a specified content type.

Creates an X509 Certificate Signing Request (CSR) for the wallet's signing key.

The resulting certificate is imported back via `WalletX509CertificateImport` to enable issuing credentials signed by X509 certificate chain it or XAdES/PDF signing.

func (*Client) WalletX509CertificateGet​

func (c *Client) WalletX509CertificateGet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletX509CertificateGet performs a GET /wallets/{wallet_id}/certificate (the `WalletX509CertificateGet` operationId) request.

Returns the wallet's currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.

func (*Client) WalletX509CertificateImport​

func (c *Client) WalletX509CertificateImport(ctx context.Context, walletId string, body WalletX509CertificateImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletX509CertificateImport performs a POST /wallets/{wallet_id}/certificate (the `WalletX509CertificateImport` operationId) request. Takes a body of the `application/json` content type.

Imports an X509 certificate to be used when signing credentials.

func (*Client) WalletX509CertificateImportWithBody​

func (c *Client) WalletX509CertificateImportWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletX509CertificateImportWithBody performs a POST /wallets/{wallet_id}/certificate (the `WalletX509CertificateImport` operationId) request, with any type of body and a specified content type.

Imports an X509 certificate to be used when signing credentials.

func (*Client) WmpAcceptInvitation​

func (c *Client) WmpAcceptInvitation(ctx context.Context, params *WmpAcceptInvitationParams, body WmpAcceptInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpAcceptInvitation performs a POST /wmp/invitation/accept (the `WmpAcceptInvitation` operationId) request. Takes a body of the `application/json` content type.

Accepts a WMP invitation URL from another wallet (issuer or verifier) to establish a peer-to-peer WMP connection. After acceptance, the connected entity appears in the WMP entity list and can send credential offers or verification requests directly to this wallet.

func (*Client) WmpAcceptInvitationWithBody​

func (c *Client) WmpAcceptInvitationWithBody(ctx context.Context, params *WmpAcceptInvitationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpAcceptInvitationWithBody performs a POST /wmp/invitation/accept (the `WmpAcceptInvitation` operationId) request, with any type of body and a specified content type.

Accepts a WMP invitation URL from another wallet (issuer or verifier) to establish a peer-to-peer WMP connection. After acceptance, the connected entity appears in the WMP entity list and can send credential offers or verification requests directly to this wallet.

func (*Client) WmpClientGetPendingRequests​

func (c *Client) WmpClientGetPendingRequests(ctx context.Context, params *WmpClientGetPendingRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpClientGetPendingRequests performs a GET /wmp/client/requests (the `WmpClientGetPendingRequests` operationId) request.

Not implemented: always answers 501. Received requests arrive as wallet notifications; read one with `GET /wmp/client/requests/{request_id}`. Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (*Client) WmpClientGetRequest​

func (c *Client) WmpClientGetRequest(ctx context.Context, requestId string, params *WmpClientGetRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpClientGetRequest performs a GET /wmp/client/requests/{request_id} (the `WmpClientGetRequest` operationId) request.

Returns metadata for the received message identified by `request_id` (delivered via a `wmp.message` notification carrying its id): its content type and body download link. The body is fetched as raw bytes from the download link included in the response (`bodyUrl`).

func (*Client) WmpClientProcessRequest​

func (c *Client) WmpClientProcessRequest(ctx context.Context, requestId string, params *WmpClientProcessRequestParams, body WmpClientProcessRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpClientProcessRequest performs a POST /wmp/client/requests/{request_id} (the `WmpClientProcessRequest` operationId) request. Takes a body of the `application/json` content type.

Acts on a pending WMP client request identified by `request_id`. The body's `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender), or `accept`/`reject` to accept or refuse the content of a received message (on a session that negotiated the `evidence` capability, sends `acceptance_confirmed`/`acceptance_rejected` evidence to the original sender, WMP evidence §3.5).

func (*Client) WmpClientProcessRequestWithBody​

func (c *Client) WmpClientProcessRequestWithBody(ctx context.Context, requestId string, params *WmpClientProcessRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpClientProcessRequestWithBody performs a POST /wmp/client/requests/{request_id} (the `WmpClientProcessRequest` operationId) request, with any type of body and a specified content type.

Acts on a pending WMP client request identified by `request_id`. The body's `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender), or `accept`/`reject` to accept or refuse the content of a received message (on a session that negotiated the `evidence` capability, sends `acceptance_confirmed`/`acceptance_rejected` evidence to the original sender, WMP evidence §3.5).

func (*Client) WmpCreateNewInvitation​

func (c *Client) WmpCreateNewInvitation(ctx context.Context, params *WmpCreateNewInvitationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpCreateNewInvitation performs a POST /wmp/invitation (the `WmpCreateNewInvitation` operationId) request.

Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with another wallet to establish a secure peer-to-peer communication channel. Issuers and verifiers use this to connect with holder wallets for direct credential delivery and verification without requiring QR codes or redirects on each interaction.

func (*Client) WmpEntityConnectionGet​

func (c *Client) WmpEntityConnectionGet(ctx context.Context, entityId string, params *WmpEntityConnectionGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntityConnectionGet performs a GET /wmp/entities/{entity_id}/connection (the `WmpEntityConnectionGet` operationId) request.

Get entity connection status.

func (*Client) WmpEntityDelete​

func (c *Client) WmpEntityDelete(ctx context.Context, entityId string, params *WmpEntityDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntityDelete performs a DELETE /wmp/entities/{entity_id} (the `WmpEntityDelete` operationId) request.

Delete entity based on the entity ID.

func (*Client) WmpEntityGet​

func (c *Client) WmpEntityGet(ctx context.Context, entityId string, params *WmpEntityGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntityGet performs a GET /wmp/entities/{entity_id} (the `WmpEntityGet` operationId) request.

Get entity based on the entity ID.

func (*Client) WmpEntityGetMessageHistory​

func (c *Client) WmpEntityGetMessageHistory(ctx context.Context, entityId string, messageId string, params *WmpEntityGetMessageHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntityGetMessageHistory performs a GET /wmp/entities/{entity_id}/messages/{message_id} (the `WmpEntityGetMessageHistory` operationId) request.

Returns this wallet's own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.

func (*Client) WmpEntityList​

func (c *Client) WmpEntityList(ctx context.Context, params *WmpEntityListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntityList performs a GET /wmp/entities (the `WmpEntityList` operationId) request.

Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), `entityType=client` for entities that accepted it (holders), `entityType=relay` for the wallet's QTSP relay account, or `entityType=correspondent` for Subscribers reached through the relay.

func (*Client) WmpEntityListMessageHistory​

func (c *Client) WmpEntityListMessageHistory(ctx context.Context, entityId string, params *WmpEntityListMessageHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntityListMessageHistory performs a GET /wmp/entities/{entity_id}/messages/history (the `WmpEntityListMessageHistory` operationId) request.

Lists this wallet's own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.

func (*Client) WmpEntityMessageDecision​

func (c *Client) WmpEntityMessageDecision(ctx context.Context, entityId string, messageId string, params *WmpEntityMessageDecisionParams, body WmpEntityMessageDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntityMessageDecision performs a POST /wmp/entities/{entity_id}/messages/{message_id}/decision (the `WmpEntityMessageDecision` operationId) request. Takes a body of the `application/json` content type.

Accepts or rejects a received `consented` / `consented_signed` message from a relay correspondent (CS-15 §14). The wallet answers with a `processed` or `rejected` acknowledgement, signed with the Subscriber key under `consented_signed`; the QTSP turns it into acceptance or rejection evidence.

func (*Client) WmpEntityMessageDecisionWithBody​

func (c *Client) WmpEntityMessageDecisionWithBody(ctx context.Context, entityId string, messageId string, params *WmpEntityMessageDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntityMessageDecisionWithBody performs a POST /wmp/entities/{entity_id}/messages/{message_id}/decision (the `WmpEntityMessageDecision` operationId) request, with any type of body and a specified content type.

Accepts or rejects a received `consented` / `consented_signed` message from a relay correspondent (CS-15 §14). The wallet answers with a `processed` or `rejected` acknowledgement, signed with the Subscriber key under `consented_signed`; the QTSP turns it into acceptance or rejection evidence.

func (*Client) WmpEntitySendMessageWithBody​

func (c *Client) WmpEntitySendMessageWithBody(ctx context.Context, entityId string, params *WmpEntitySendMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntitySendMessageWithBody performs a POST /wmp/entities/{entity_id}/messages (the `WmpEntitySendMessage` operationId) request, with any type of body and a specified content type.

Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet's own view of the message's delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification.

The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).

func (*Client) WmpEntityServerConnect​

func (c *Client) WmpEntityServerConnect(ctx context.Context, entityId string, params *WmpEntityServerConnectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEntityServerConnect performs a POST /wmp/entities/{entity_id}/connection (the `WmpEntityServerConnect` operationId) request.

Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.

func (*Client) WmpEvidenceGet​

func (c *Client) WmpEvidenceGet(ctx context.Context, evidenceId string, params *WmpEvidenceGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEvidenceGet performs a GET /wmp/evidence/{evidence_id} (the `WmpEvidenceGet` operationId) request.

Returns one record of this wallet's evidence repository (WMP evidence §6.1).

func (*Client) WmpEvidenceList​

func (c *Client) WmpEvidenceList(ctx context.Context, params *WmpEvidenceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEvidenceList performs a GET /wmp/evidence (the `WmpEvidenceList` operationId) request.

Searches this wallet's evidence repository (WMP evidence §6.1): the evidence it issued and the evidence its peers sent it. Either `message_id` or `session_id` is required. Records are ordered by event time; a search by session is paginated with `limit` and `continuation_token`.

func (*Client) WmpEvidenceVerify​

func (c *Client) WmpEvidenceVerify(ctx context.Context, params *WmpEvidenceVerifyParams, body WmpEvidenceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEvidenceVerify performs a POST /wmp/evidence/verify (the `WmpEvidenceVerify` operationId) request. Takes a body of the `application/json` content type.

Verifies the params of a `wmp.evidence.notify` (WMP evidence §4.1), independently of any session: the signature and its `x5c` chain, the timestamp token and, when the evidence is about a message this wallet sent, the content hash. Nothing is stored.

func (*Client) WmpEvidenceVerifyWithBody​

func (c *Client) WmpEvidenceVerifyWithBody(ctx context.Context, params *WmpEvidenceVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpEvidenceVerifyWithBody performs a POST /wmp/evidence/verify (the `WmpEvidenceVerify` operationId) request, with any type of body and a specified content type.

Verifies the params of a `wmp.evidence.notify` (WMP evidence §4.1), independently of any session: the signature and its `x5c` chain, the timestamp token and, when the evidence is about a message this wallet sent, the content hash. Nothing is stored.

func (*Client) WmpRelayCorrespondentConnect​

func (c *Client) WmpRelayCorrespondentConnect(ctx context.Context, params *WmpRelayCorrespondentConnectParams, body WmpRelayCorrespondentConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayCorrespondentConnect performs a POST /wmp/relay/correspondents (the `WmpRelayCorrespondentConnect` operationId) request. Takes a body of the `application/json` content type.

Connects to another Subscriber through the QTSP (CS-15 §7.3, §10.4): resolves the participant and one of its KeyPackages, validates its credential and sets up the dedicated relay session and MLS group. Messages are then sent with `POST /wmp/entities/{entity_id}/messages`.

func (*Client) WmpRelayCorrespondentConnectWithBody​

func (c *Client) WmpRelayCorrespondentConnectWithBody(ctx context.Context, params *WmpRelayCorrespondentConnectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayCorrespondentConnectWithBody performs a POST /wmp/relay/correspondents (the `WmpRelayCorrespondentConnect` operationId) request, with any type of body and a specified content type.

Connects to another Subscriber through the QTSP (CS-15 §7.3, §10.4): resolves the participant and one of its KeyPackages, validates its credential and sets up the dedicated relay session and MLS group. Messages are then sent with `POST /wmp/entities/{entity_id}/messages`.

func (*Client) WmpRelayDelete​

func (c *Client) WmpRelayDelete(ctx context.Context, params *WmpRelayDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayDelete performs a DELETE /wmp/relay (the `WmpRelayDelete` operationId) request.

Closes the relay sessions and forgets the relay account and its correspondents. The QTSP keeps the Subscriber registration and the evidence it holds.

func (*Client) WmpRelayGet​

func (c *Client) WmpRelayGet(ctx context.Context, params *WmpRelayGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayGet performs a GET /wmp/relay (the `WmpRelayGet` operationId) request.

Returns the wallet's account at its QTSP relay (CS-15 EBW role).

func (*Client) WmpRelayOnboardingComplete​

func (c *Client) WmpRelayOnboardingComplete(ctx context.Context, onboardingId string, params *WmpRelayOnboardingCompleteParams, body WmpRelayOnboardingCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayOnboardingComplete performs a POST /wmp/relay/onboarding/{onboarding_id}/complete (the `WmpRelayOnboardingComplete` operationId) request. Takes a body of the `application/json` content type.

Completes onboarding with the onboarding result the QTSP answered the presentation with (CS-15 §8.5): the `response` of `HolderCredentialsPresentAfterConsent`, as is. Checks that the certificate names the Subscriber and chains to the Subscriber CAs, stores it, connects the inbox session and publishes KeyPackages.

func (*Client) WmpRelayOnboardingCompleteWithBody​

func (c *Client) WmpRelayOnboardingCompleteWithBody(ctx context.Context, onboardingId string, params *WmpRelayOnboardingCompleteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayOnboardingCompleteWithBody performs a POST /wmp/relay/onboarding/{onboarding_id}/complete (the `WmpRelayOnboardingComplete` operationId) request, with any type of body and a specified content type.

Completes onboarding with the onboarding result the QTSP answered the presentation with (CS-15 §8.5): the `response` of `HolderCredentialsPresentAfterConsent`, as is. Checks that the certificate names the Subscriber and chains to the Subscriber CAs, stores it, connects the inbox session and publishes KeyPackages.

func (*Client) WmpRelayOnboardingStart​

func (c *Client) WmpRelayOnboardingStart(ctx context.Context, params *WmpRelayOnboardingStartParams, body WmpRelayOnboardingStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayOnboardingStart performs a POST /wmp/relay/onboarding (the `WmpRelayOnboardingStart` operationId) request. Takes a body of the `application/json` content type.

Starts Subscriber onboarding at a QTSP relay (CS-15 §8): checks the QTSP's discovery document and qualified status, generates the Subscriber key and CSR and sends them to the QTSP. The returned OpenID4VP authorization request is presented with the holder endpoints (`HolderPresentPassAuthInfo`, `HolderCredentialsPresentAfterConsent`); the QTSP answers the presentation with the onboarding result, returned as `response`, which is then passed to `WmpRelayOnboardingComplete`.

func (*Client) WmpRelayOnboardingStartWithBody​

func (c *Client) WmpRelayOnboardingStartWithBody(ctx context.Context, params *WmpRelayOnboardingStartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayOnboardingStartWithBody performs a POST /wmp/relay/onboarding (the `WmpRelayOnboardingStart` operationId) request, with any type of body and a specified content type.

Starts Subscriber onboarding at a QTSP relay (CS-15 §8): checks the QTSP's discovery document and qualified status, generates the Subscriber key and CSR and sends them to the QTSP. The returned OpenID4VP authorization request is presented with the holder endpoints (`HolderPresentPassAuthInfo`, `HolderCredentialsPresentAfterConsent`); the QTSP answers the presentation with the onboarding result, returned as `response`, which is then passed to `WmpRelayOnboardingComplete`.

func (*Client) WmpRelayRegistrationComplete​

func (c *Client) WmpRelayRegistrationComplete(ctx context.Context, params *WmpRelayRegistrationCompleteParams, body WmpRelayRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayRegistrationComplete performs a POST /wmp/relay/registration/certificate (the `WmpRelayRegistrationComplete` operationId) request. Takes a body of the `application/json` content type.

Completes a manual registration with the certificate the QTSP issued for the CSR: stores it, connects the inbox session and publishes KeyPackages. The certificate must name the Subscriber, certify the CSR's key and chain to the Subscriber CAs (`wmpRelay.subscriberTrustAnchors`, or the uploaded chain's own CAs).

func (*Client) WmpRelayRegistrationCompleteWithBody​

func (c *Client) WmpRelayRegistrationCompleteWithBody(ctx context.Context, params *WmpRelayRegistrationCompleteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayRegistrationCompleteWithBody performs a POST /wmp/relay/registration/certificate (the `WmpRelayRegistrationComplete` operationId) request, with any type of body and a specified content type.

Completes a manual registration with the certificate the QTSP issued for the CSR: stores it, connects the inbox session and publishes KeyPackages. The certificate must name the Subscriber, certify the CSR's key and chain to the Subscriber CAs (`wmpRelay.subscriberTrustAnchors`, or the uploaded chain's own CAs).

func (*Client) WmpRelayRegistrationStart​

func (c *Client) WmpRelayRegistrationStart(ctx context.Context, params *WmpRelayRegistrationStartParams, body WmpRelayRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayRegistrationStart performs a POST /wmp/relay/registration (the `WmpRelayRegistrationStart` operationId) request. Takes a body of the `application/json` content type.

Starts a manual Subscriber registration, for a QTSP without the onboarding API (CS-15 §8.1): checks the QTSP's discovery document and qualified status and generates the Subscriber key. The returned CSR is given to the QTSP by other means; then upload the certificate it issued with `POST /wmp/relay/registration/certificate`. A pending onboarding or registration is replaced.

func (*Client) WmpRelayRegistrationStartWithBody​

func (c *Client) WmpRelayRegistrationStartWithBody(ctx context.Context, params *WmpRelayRegistrationStartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayRegistrationStartWithBody performs a POST /wmp/relay/registration (the `WmpRelayRegistrationStart` operationId) request, with any type of body and a specified content type.

Starts a manual Subscriber registration, for a QTSP without the onboarding API (CS-15 §8.1): checks the QTSP's discovery document and qualified status and generates the Subscriber key. The returned CSR is given to the QTSP by other means; then upload the certificate it issued with `POST /wmp/relay/registration/certificate`. A pending onboarding or registration is replaced.

func (*Client) WmpRelayRotate​

func (c *Client) WmpRelayRotate(ctx context.Context, params *WmpRelayRotateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

WmpRelayRotate performs a POST /wmp/relay/rotate (the `WmpRelayRotate` operationId) request.

Rotates the Subscriber key and certificate over mutual TLS (CS-15 §8.6) and republishes KeyPackages. Existing correspondent groups move to the new certificate on their next message.

type ClientInterface​

The interface specification for the client above.

type ClientInterface interface {

// TrustListDelete performs a DELETE /admin/trust-lists (the `TrustListDelete` operationId) request.
//
// Stops tracking the trusted list published at the given URL and removes its contents.
// Removing a List of Trusted Lists removes the lists reached through it as well. Requires
// the `admin` role and the `trustListProviderPostgres` provider.
//
// A wallet whose configuration still names this list will register it again the next time it
// verifies against it.
TrustListDelete(ctx context.Context, params *TrustListDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// TrustListsGet performs a GET /admin/trust-lists (the `TrustListsGet` operationId) request.
//
// Lists the trusted lists the wallet tracks. Requires the `admin` role, and a wallet
// configured with the `trustListProviderPostgres` trust list provider: one that fetches its
// lists from their publisher as it needs them tracks nothing, and answers 501.
//
// A list reached through a List of Trusted Lists is not a source of its own and is not
// returned here. It is refreshed and removed along with the list that points at it.
TrustListsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

// TrustListAddWithBody performs a POST /admin/trust-lists (the `TrustListAdd` operationId) request,
// with any type of body and a specified content type.
//
// Starts tracking the trusted list published at the given URL, storing its contents and
// pinning it to the certificate that signed it. Adding a list that is already tracked
// refreshes it. Requires the `admin` role and the `trustListProviderPostgres` provider.
//
// This fetches the list before it answers, and adding a List of Trusted Lists also walks
// every list it points at, so the call takes as long as those fetches do. A list that could
// not be reached through the walk is left out rather than failing the registration.
TrustListAddWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TrustListAdd performs a POST /admin/trust-lists (the `TrustListAdd` operationId) request.
// Takes a body of the `application/json` content type.
//
// Starts tracking the trusted list published at the given URL, storing its contents and
// pinning it to the certificate that signed it. Adding a list that is already tracked
// refreshes it. Requires the `admin` role and the `trustListProviderPostgres` provider.
//
// This fetches the list before it answers, and adding a List of Trusted Lists also walks
// every list it points at, so the call takes as long as those fetches do. A list that could
// not be reached through the walk is left out rather than failing the registration.
TrustListAdd(ctx context.Context, body TrustListAddJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TrustListRefresh performs a POST /admin/trust-lists/refresh (the `TrustListRefresh` operationId) request.
//
// Refetches the tracked trusted list published at the given URL and stores what it fetched,
// whether or not the publisher has issued a new version of it. This is what separates a
// forced refresh from the sweep the wallet makes on its own interval, which leaves an
// unchanged list alone. Requires the `admin` role and the `trustListProviderPostgres`
// provider.
//
// The refetch is pinned to the certificate already recorded for the list, so a list cannot
// be moved onto a new signer by refreshing it: one signed by a different certificate is
// rejected with 409 and the stored copy is kept.
TrustListRefresh(ctx context.Context, params *TrustListRefreshParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletProviderCertificateImportWithBody performs a POST /admin/wallet-provider/certificate (the `WalletProviderCertificateImport` operationId) request,
// with any type of body and a specified content type.
//
// Installs the externally-issued certificate chain for the Wallet Provider key. Requires the
// `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
WalletProviderCertificateImportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletProviderCertificateImport performs a POST /admin/wallet-provider/certificate (the `WalletProviderCertificateImport` operationId) request.
// Takes a body of the `application/json` content type.
//
// Installs the externally-issued certificate chain for the Wallet Provider key. Requires the
// `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
WalletProviderCertificateImport(ctx context.Context, body WalletProviderCertificateImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletProviderCsrGenerate performs a POST /admin/wallet-provider/csr (the `WalletProviderCsrGenerate` operationId) request.
//
// Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to
// sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated
// on first call if it does not exist yet.
WalletProviderCsrGenerate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialList performs a GET /credentials (the `CredentialList` operationId) request.
//
// Retrieves a list of credentials.
CredentialList(ctx context.Context, params *CredentialListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialCreateWithBody performs a POST /credentials (the `CredentialCreate` operationId) request,
// with any type of body and a specified content type.
//
// Creates a new draft credential.
CredentialCreateWithBody(ctx context.Context, params *CredentialCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialCreate performs a POST /credentials (the `CredentialCreate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Creates a new draft credential.
CredentialCreate(ctx context.Context, params *CredentialCreateParams, body CredentialCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialImportWithBody performs a POST /credentials/import (the `CredentialImport` operationId) request,
// with any type of body and a specified content type.
//
// Import pre-signed credential into wallet.
CredentialImportWithBody(ctx context.Context, params *CredentialImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialImport performs a POST /credentials/import (the `CredentialImport` operationId) request.
// Takes a body of the `application/json` content type.
//
// Import pre-signed credential into wallet.
CredentialImport(ctx context.Context, params *CredentialImportParams, body CredentialImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialRequestInitWithBody performs a POST /credentials/request/init (the `CredentialRequestInit` operationId) request,
// with any type of body and a specified content type.
//
// Requests a credential issuance from the issuer and retrieves requirements
// for holder authorization.
CredentialRequestInitWithBody(ctx context.Context, params *CredentialRequestInitParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialRequestInit performs a POST /credentials/request/init (the `CredentialRequestInit` operationId) request.
// Takes a body of the `application/json` content type.
//
// Requests a credential issuance from the issuer and retrieves requirements
// for holder authorization.
CredentialRequestInit(ctx context.Context, params *CredentialRequestInitParams, body CredentialRequestInitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialGet performs a GET /credentials/{credential_id} (the `CredentialGet` operationId) request.
//
// Retrieves a specific verifiable credential based on the provided identifier.
// Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
CredentialGet(ctx context.Context, credentialId CredentialId, params *CredentialGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialPatchWithBody performs a PATCH /credentials/{credential_id} (the `CredentialPatch` operationId) request,
// with any type of body and a specified content type.
//
// Endpoint used to update an existing Credential in draft state. Can be used for additional updates
// before the Credential is issued. After credential is issued it may not be changed in any way.
CredentialPatchWithBody(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialPatch performs a PATCH /credentials/{credential_id} (the `CredentialPatch` operationId) request.
// Takes a body of the `application/json` content type.
//
// Endpoint used to update an existing Credential in draft state. Can be used for additional updates
// before the Credential is issued. After credential is issued it may not be changed in any way.
CredentialPatch(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialClaimMetadataGet performs a GET /credentials/{credential_id}/claim_metadata (the `CredentialClaimMetadataGet` operationId) request.
//
// Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
CredentialClaimMetadataGet(ctx context.Context, credentialId CredentialId, params *CredentialClaimMetadataGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialIssueDirectWithBody performs a POST /credentials/{credential_id}/issue/direct (the `CredentialIssueDirect` operationId) request,
// with any type of body and a specified content type.
//
// 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`.
CredentialIssueDirectWithBody(ctx context.Context, credentialId CredentialId, params *CredentialIssueDirectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialIssueDirect performs a POST /credentials/{credential_id}/issue/direct (the `CredentialIssueDirect` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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`.
CredentialIssueDirect(ctx context.Context, credentialId CredentialId, params *CredentialIssueDirectParams, body CredentialIssueDirectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialIssuanceInitWithBody performs a POST /credentials/{credential_id}/issue/init (the `CredentialIssuanceInit` operationId) request,
// with any type of body and a specified content type.
//
// Prepares created Verifiable Credential draft for its issuance for a specific client.
CredentialIssuanceInitWithBody(ctx context.Context, credentialId string, params *CredentialIssuanceInitParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialIssuanceInit performs a POST /credentials/{credential_id}/issue/init (the `CredentialIssuanceInit` operationId) request.
// Takes a body of the `application/json` content type.
//
// Prepares created Verifiable Credential draft for its issuance for a specific client.
CredentialIssuanceInit(ctx context.Context, credentialId string, params *CredentialIssuanceInitParams, body CredentialIssuanceInitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialMetadataPatchWithBody performs a PATCH /credentials/{credential_id}/metadata (the `CredentialMetadataPatch` operationId) request,
// with any type of body and a specified content type.
//
// Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key
// value storage for a client to store any additional data for the credential.
CredentialMetadataPatchWithBody(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialMetadataPatch performs a PATCH /credentials/{credential_id}/metadata (the `CredentialMetadataPatch` operationId) request.
// Takes a body of the `application/json` content type.
//
// Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key
// value storage for a client to store any additional data for the credential.
CredentialMetadataPatch(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialPayloadGet performs a GET /credentials/{credential_id}/payload (the `CredentialPayloadGet` operationId) request.
//
// Returns raw credential payload, with format depending on credential format.
CredentialPayloadGet(ctx context.Context, credentialId CredentialId, params *CredentialPayloadGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// PdfCredentialTwinDelete performs a DELETE /credentials/{credential_id}/pdf (the `PdfCredentialTwinDelete` operationId) request.
//
// Deletes the PDF associated with the verifiable credential.
// Can be used only for credentials in Draft state.
PdfCredentialTwinDelete(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// PdfCredentialTwinGet performs a GET /credentials/{credential_id}/pdf (the `PdfCredentialTwinGet` operationId) request.
//
// Returns either an unsigned PDF that was uploaded to be signed and embedded into a verifiable credential in case
// of credential in Draft state, or a signed PDF embedded in an issued VC.
PdfCredentialTwinGet(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// PdfCredentialTwinUploadWithBody performs a POST /credentials/{credential_id}/pdf (the `PdfCredentialTwinUpload` operationId) request,
// with any type of body and a specified content type.
//
// Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued.
// Can be used only for credentials in Draft state.
// Maximum size of the PDF document is 20 MB.
PdfCredentialTwinUploadWithBody(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinUploadParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// PdfCredentialMakeVp performs a POST /credentials/{credential_id}/pdf/vp (the `PdfCredentialMakeVp` operationId) request.
//
// Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment
// in incremental update.
PdfCredentialMakeVp(ctx context.Context, credentialId CredentialId, params *PdfCredentialMakeVpParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialRawGet performs a GET /credentials/{credential_id}/raw (the `CredentialRawGet` operationId) request.
//
// Returns raw signed credential, with format depending on credential format:
// - SD-JWT VC: application/dc+sd-jwt
// - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise
// - mdoc: CBOR encoded DeviceResponse (application/cbor)
CredentialRawGet(ctx context.Context, credentialId CredentialId, params *CredentialRawGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialRender performs a GET /credentials/{credential_id}/render (the `CredentialRender` operationId) request.
//
// 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.
CredentialRender(ctx context.Context, credentialId CredentialId, params *CredentialRenderParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialRenderMethods performs a GET /credentials/{credential_id}/render/methods (the `CredentialRenderMethods` operationId) request.
//
// 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.
CredentialRenderMethods(ctx context.Context, credentialId CredentialId, params *CredentialRenderMethodsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialRevoke performs a POST /credentials/{credential_id}/revoke (the `CredentialRevoke` operationId) request.
//
// 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.
CredentialRevoke(ctx context.Context, credentialId CredentialId, params *CredentialRevokeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialUnsuspend performs a DELETE /credentials/{credential_id}/suspend (the `CredentialUnsuspend` operationId) request.
//
// Lift the suspension of a Verifiable Credential.
CredentialUnsuspend(ctx context.Context, credentialId CredentialId, params *CredentialUnsuspendParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialSuspend performs a POST /credentials/{credential_id}/suspend (the `CredentialSuspend` operationId) request.
//
// Suspend a Verifiable Credential issued with the `suspension` status purpose
// (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.
CredentialSuspend(ctx context.Context, credentialId CredentialId, params *CredentialSuspendParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// DeferredStatus performs a GET /deferred/{deferred_id} (the `DeferredStatus` operationId) request.
//
// 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.
DeferredStatus(ctx context.Context, deferredId string, params *DeferredStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// DidDocumentLocalGet performs a GET /did (the `DidDocumentLocalGet` operationId) request.
//
// Returns the wallet's own DID document, as published at `/{wallet_id}/did.json` for a self-hosted
// did:web.
DidDocumentLocalGet(ctx context.Context, params *DidDocumentLocalGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// DidDocumentPatchWithBody performs a PATCH /did (the `DidDocumentPatch` operationId) request,
// with any type of body and a specified content type.
//
// 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`.
DidDocumentPatchWithBody(ctx context.Context, params *DidDocumentPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// DidDocumentPatch performs a PATCH /did (the `DidDocumentPatch` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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`.
DidDocumentPatch(ctx context.Context, params *DidDocumentPatchParams, body DidDocumentPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// HealthCheck performs a GET /health (the `HealthCheck` operationId) request.
//
// Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderIdTokenSendWithBody performs a POST /holder/id-token/send (the `HolderIdTokenSend` operationId) request,
// with any type of body and a specified content type.
//
// Responds to an ID token request.
HolderIdTokenSendWithBody(ctx context.Context, params *HolderIdTokenSendParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderIdTokenSend performs a POST /holder/id-token/send (the `HolderIdTokenSend` operationId) request.
// Takes a body of the `application/json` content type.
//
// Responds to an ID token request.
HolderIdTokenSend(ctx context.Context, params *HolderIdTokenSendParams, body HolderIdTokenSendJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderOfferPassAuthInfoWithBody performs a POST /holder/offer/pass-auth-info (the `HolderOfferPassAuthInfo` operationId) request,
// with any type of body and a specified content type.
//
// 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.
HolderOfferPassAuthInfoWithBody(ctx context.Context, params *HolderOfferPassAuthInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderOfferPassAuthInfo performs a POST /holder/offer/pass-auth-info (the `HolderOfferPassAuthInfo` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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.
HolderOfferPassAuthInfo(ctx context.Context, params *HolderOfferPassAuthInfoParams, body HolderOfferPassAuthInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderOfferProcessAfterConsentWithBody performs a POST /holder/offer/{interaction_id}/process (the `HolderOfferProcessAfterConsent` operationId) request,
// with any type of body and a specified content type.
//
// Completes a credential offer flow after holder consent: submits data needed for the holder to authorize
// candidates to the issuer for holder authorization and retrieves the issued credential(s)
// into the wallet. The `interaction_id` is obtained from `HolderOfferPassAuthInfo`.
HolderOfferProcessAfterConsentWithBody(ctx context.Context, interactionId string, params *HolderOfferProcessAfterConsentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderOfferProcessAfterConsent performs a POST /holder/offer/{interaction_id}/process (the `HolderOfferProcessAfterConsent` operationId) request.
// Takes a body of the `application/json` content type.
//
// Completes a credential offer flow after holder consent: submits data needed for the holder to authorize
// candidates to the issuer for holder authorization and retrieves the issued credential(s)
// into the wallet. The `interaction_id` is obtained from `HolderOfferPassAuthInfo`.
HolderOfferProcessAfterConsent(ctx context.Context, interactionId string, params *HolderOfferProcessAfterConsentParams, body HolderOfferProcessAfterConsentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderPresentPassAuthInfoWithBody performs a POST /holder/present/pass-auth-info (the `HolderPresentPassAuthInfo` operationId) request,
// with any type of body and a specified content type.
//
// Processes a verifier's presentation request URL and returns the presentation definition
// along with matching credential candidates from the wallet. The holder reviews which
// credentials will be disclosed before giving consent. The returned `interactionId` is
// used in the subsequent `HolderCredentialsPresentAfterConsent` call.
HolderPresentPassAuthInfoWithBody(ctx context.Context, params *HolderPresentPassAuthInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderPresentPassAuthInfo performs a POST /holder/present/pass-auth-info (the `HolderPresentPassAuthInfo` operationId) request.
// Takes a body of the `application/json` content type.
//
// Processes a verifier's presentation request URL and returns the presentation definition
// along with matching credential candidates from the wallet. The holder reviews which
// credentials will be disclosed before giving consent. The returned `interactionId` is
// used in the subsequent `HolderCredentialsPresentAfterConsent` call.
HolderPresentPassAuthInfo(ctx context.Context, params *HolderPresentPassAuthInfoParams, body HolderPresentPassAuthInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderCredentialsPresentAfterConsentWithBody performs a POST /holder/present/{interaction_id} (the `HolderCredentialsPresentAfterConsent` operationId) request,
// with any type of body and a specified content type.
//
// 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`.
HolderCredentialsPresentAfterConsentWithBody(ctx context.Context, interactionId string, params *HolderCredentialsPresentAfterConsentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderCredentialsPresentAfterConsent performs a POST /holder/present/{interaction_id} (the `HolderCredentialsPresentAfterConsent` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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`.
HolderCredentialsPresentAfterConsent(ctx context.Context, interactionId string, params *HolderCredentialsPresentAfterConsentParams, body HolderCredentialsPresentAfterConsentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// IdTokenRequestCreate performs a POST /id-token/request (the `IdTokenRequestCreate` operationId) request.
//
// Creates an ID token request that will be sent to the holder for DID-based authentication.
// Used during the authorized credential issuance flow when the issuer requires the holder to
// prove control of their DID before the credential is issued. The returned request ID is passed
// to `CredentialIssuanceInit` as `idTokenRequestId`.
IdTokenRequestCreate(ctx context.Context, params *IdTokenRequestCreateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletIdentifierGet performs a GET /identifier (the `WalletIdentifierGet` operationId) request.
//
// Returns the wallet's public identifier — e.g. a DID (Decentralized Identifier) or a wallet URL.
// Used by other parties to reference this wallet in trust framework interactions and credential exchanges.
WalletIdentifierGet(ctx context.Context, params *WalletIdentifierGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// IssuerCredentialTypesList performs a GET /issuer/credential/types (the `IssuerCredentialTypesList` operationId) request.
//
// Returns verifiable credential format and types that are supported by the issuer.
// - format: the verifiable credential format (for example "jwt_vc")
// - type: a list of strings that define supported verifiable credential type(s)
IssuerCredentialTypesList(ctx context.Context, params *IssuerCredentialTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// IssuerDetachedJwsSignWithBody performs a POST /issuer/jws/detached (the `IssuerDetachedJwsSign` operationId) request,
// with any type of body and a specified content type.
//
// 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.
IssuerDetachedJwsSignWithBody(ctx context.Context, params *IssuerDetachedJwsSignParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// IssuerDetachedJwsSign performs a POST /issuer/jws/detached (the `IssuerDetachedJwsSign` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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.
IssuerDetachedJwsSign(ctx context.Context, params *IssuerDetachedJwsSignParams, body IssuerDetachedJwsSignJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// IssuerInitiateAuthOfferWithBody performs a POST /issuer/offer/auth (the `IssuerInitiateAuthOffer` operationId) request,
// with any type of body and a specified content type.
//
// 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.
IssuerInitiateAuthOfferWithBody(ctx context.Context, params *IssuerInitiateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// IssuerInitiateAuthOffer performs a POST /issuer/offer/auth (the `IssuerInitiateAuthOffer` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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.
IssuerInitiateAuthOffer(ctx context.Context, params *IssuerInitiateAuthOfferParams, body IssuerInitiateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// IssuerInitiatePreauthOfferWithBody performs a POST /issuer/offer/preauth (the `IssuerInitiatePreauthOffer` operationId) request,
// with any type of body and a specified content type.
//
// Generates a pre-authorized credential offer for the holder. Unlike the authorized flow,
// the holder does not need to authenticate with the issuer — instead a pre-authorized code
// (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and
// Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and
// can be shared as a QR code or deep link.
IssuerInitiatePreauthOfferWithBody(ctx context.Context, params *IssuerInitiatePreauthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// IssuerInitiatePreauthOffer performs a POST /issuer/offer/preauth (the `IssuerInitiatePreauthOffer` operationId) request.
// Takes a body of the `application/json` content type.
//
// Generates a pre-authorized credential offer for the holder. Unlike the authorized flow,
// the holder does not need to authenticate with the issuer — instead a pre-authorized code
// (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and
// Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and
// can be shared as a QR code or deep link.
IssuerInitiatePreauthOffer(ctx context.Context, params *IssuerInitiatePreauthOfferParams, body IssuerInitiatePreauthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// IssuerXadesSignWithBody performs a POST /issuer/xades (the `IssuerXadesSign` operationId) request,
// with any type of body and a specified content type.
//
// Signs an XML document with XAdES signature.
IssuerXadesSignWithBody(ctx context.Context, params *IssuerXadesSignParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderCreateAuthOfferWithBody performs a POST /offer/create/intime (the `HolderCreateAuthOffer` operationId) request,
// with any type of body and a specified content type.
//
// 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.
HolderCreateAuthOfferWithBody(ctx context.Context, params *HolderCreateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderCreateAuthOffer performs a POST /offer/create/intime (the `HolderCreateAuthOffer` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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.
HolderCreateAuthOffer(ctx context.Context, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TenantEnrollmentInitWithBody performs a POST /tenant/{tenant_id}/enrollment/init (the `TenantEnrollmentInit` operationId) request,
// with any type of body and a specified content type.
//
// Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to
// POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a
// Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored.
// The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
TenantEnrollmentInitWithBody(ctx context.Context, tenantId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TenantEnrollmentInit performs a POST /tenant/{tenant_id}/enrollment/init (the `TenantEnrollmentInit` operationId) request.
// Takes a body of the `application/json` content type.
//
// Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to
// POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a
// Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored.
// The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
TenantEnrollmentInit(ctx context.Context, tenantId string, body TenantEnrollmentInitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TenantEnrollmentEnroll performs a POST /tenant/{tenant_id}/enrollment/{state} (the `TenantEnrollmentEnroll` operationId) request.
//
// Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A
// caller whose token names another tenant is refused.
TenantEnrollmentEnroll(ctx context.Context, tenantId string, state string, reqEditors ...RequestEditorFn) (*http.Response, error)

// TenantEnrollmentList performs a GET /tenant/{tenant_id}/enrollments (the `TenantEnrollmentList` operationId) request.
//
// Lists the tenant's pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
TenantEnrollmentList(ctx context.Context, tenantId string, reqEditors ...RequestEditorFn) (*http.Response, error)

// TenantEnrollmentRevoke performs a DELETE /tenant/{tenant_id}/enrollments/{enrollment_id} (the `TenantEnrollmentRevoke` operationId) request.
//
// Revokes a pending enrollment, so that its state no longer creates a wallet.
TenantEnrollmentRevoke(ctx context.Context, tenantId string, enrollmentId string, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfAccreditAsWithBody performs a POST /tf/accredit (the `TfAccreditAs` operationId) request,
// with any type of body and a specified content type.
//
// Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor
// Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing
// the appropriate accreditation credential to their DID.
TfAccreditAsWithBody(ctx context.Context, params *TfAccreditAsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfAccreditAs performs a POST /tf/accredit (the `TfAccreditAs` operationId) request.
// Takes a body of the `application/json` content type.
//
// Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor
// Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing
// the appropriate accreditation credential to their DID.
TfAccreditAs(ctx context.Context, params *TfAccreditAsParams, body TfAccreditAsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfAccreditRequestWithBody performs a POST /tf/accreditation_request (the `TfAccreditRequest` operationId) request,
// with any type of body and a specified content type.
//
// Used by a TAO/RTAO wallet to process and approve an incoming accreditation request from
// another legal entity. Issues an accreditation credential authorizing the entity to issue
// credentials of the specified type within the trust framework.
TfAccreditRequestWithBody(ctx context.Context, params *TfAccreditRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfAccreditRequest performs a POST /tf/accreditation_request (the `TfAccreditRequest` operationId) request.
// Takes a body of the `application/json` content type.
//
// Used by a TAO/RTAO wallet to process and approve an incoming accreditation request from
// another legal entity. Issues an accreditation credential authorizing the entity to issue
// credentials of the specified type within the trust framework.
TfAccreditRequest(ctx context.Context, params *TfAccreditRequestParams, body TfAccreditRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfOnboardWithBody performs a POST /tf/onboard (the `TfOnboard` operationId) request,
// with any type of body and a specified content type.
//
// Completes the trust framework onboarding of this wallet using the specified onboarding
// credential. After successful onboarding, the wallet's DID is registered in the trust
// framework's TAO/TI hierarchy, enabling it to issue or verify trust-framework credentials.
// A UNTP wallet onboards with a Digital Identity Anchor of its DID, held (`onboardingCredentialId`) or offered
// (`offer`): it verifies it, publishes it in its DID document as a `dia` link, and replaces the DIA it published
// before.
TfOnboardWithBody(ctx context.Context, params *TfOnboardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfOnboard performs a POST /tf/onboard (the `TfOnboard` operationId) request.
// Takes a body of the `application/json` content type.
//
// Completes the trust framework onboarding of this wallet using the specified onboarding
// credential. After successful onboarding, the wallet's DID is registered in the trust
// framework's TAO/TI hierarchy, enabling it to issue or verify trust-framework credentials.
// A UNTP wallet onboards with a Digital Identity Anchor of its DID, held (`onboardingCredentialId`) or offered
// (`offer`): it verifies it, publishes it in its DID document as a `dia` link, and replaces the DIA it published
// before.
TfOnboard(ctx context.Context, params *TfOnboardParams, body TfOnboardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfOnboardRequestWithBody performs a POST /tf/onboard_request (the `TfOnboardRequest` operationId) request,
// with any type of body and a specified content type.
//
// Used by a TAO/RTAO wallet to process and approve an incoming onboarding request from
// another legal entity. Issues an onboarding credential (TIA) to the requesting entity,
// registering them in the trust framework.
// A UNTP registrar wallet makes a Digital Identity Anchor (`untp`) pending for the DID: the member obtains it
// through the OpenID4VCI issuance of `untp-dia` (an offer from `/issuer/offer/preauth` with the DID as
// `clientId`), signing its proof with the DID's key.
TfOnboardRequestWithBody(ctx context.Context, params *TfOnboardRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfOnboardRequest performs a POST /tf/onboard_request (the `TfOnboardRequest` operationId) request.
// Takes a body of the `application/json` content type.
//
// Used by a TAO/RTAO wallet to process and approve an incoming onboarding request from
// another legal entity. Issues an onboarding credential (TIA) to the requesting entity,
// registering them in the trust framework.
// A UNTP registrar wallet makes a Digital Identity Anchor (`untp`) pending for the DID: the member obtains it
// through the OpenID4VCI issuance of `untp-dia` (an offer from `/issuer/offer/preauth` with the DID as
// `clientId`), signing its proof with the DID's key.
TfOnboardRequest(ctx context.Context, params *TfOnboardRequestParams, body TfOnboardRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfRevokeAccreditationWithBody performs a POST /tf/revoke-accredit (the `TfRevokeAccreditation` operationId) request,
// with any type of body and a specified content type.
//
// Revokes another legal entity's accreditation or trust framework registration by
// invalidating their credential in the trust status list.
TfRevokeAccreditationWithBody(ctx context.Context, params *TfRevokeAccreditationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfRevokeAccreditation performs a POST /tf/revoke-accredit (the `TfRevokeAccreditation` operationId) request.
// Takes a body of the `application/json` content type.
//
// Revokes another legal entity's accreditation or trust framework registration by
// invalidating their credential in the trust status list.
TfRevokeAccreditation(ctx context.Context, params *TfRevokeAccreditationParams, body TfRevokeAccreditationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfUntpDiaList performs a GET /tf/untp/dia (the `TfUntpDiaList` operationId) request.
//
// Lists the Digital Identity Anchors a UNTP registrar wallet issued. Another wallet is 422.
TfUntpDiaList(ctx context.Context, params *TfUntpDiaListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfUntpDiaIssueWithBody performs a POST /tf/untp/dia (the `TfUntpDiaIssue` operationId) request,
// with any type of body and a specified content type.
//
// Issues a Digital Identity Anchor to a DID without the OpenID4VCI proof that the member controls it, for closed
// pilots: 403 unless the deployment sets `untp.registrar.allowUnverifiedDidBinding`. The member onboards with it
// (`POST /tf/onboard` with `onboardingCredentialId`, once it holds it). Another wallet than a UNTP registrar is
// 422.
TfUntpDiaIssueWithBody(ctx context.Context, params *TfUntpDiaIssueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfUntpDiaIssue performs a POST /tf/untp/dia (the `TfUntpDiaIssue` operationId) request.
// Takes a body of the `application/json` content type.
//
// Issues a Digital Identity Anchor to a DID without the OpenID4VCI proof that the member controls it, for closed
// pilots: 403 unless the deployment sets `untp.registrar.allowUnverifiedDidBinding`. The member onboards with it
// (`POST /tf/onboard` with `onboardingCredentialId`, once it holds it). Another wallet than a UNTP registrar is
// 422.
TfUntpDiaIssue(ctx context.Context, params *TfUntpDiaIssueParams, body TfUntpDiaIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfUntpRequestList performs a GET /tf/untp/requests (the `TfUntpRequestList` operationId) request.
//
// Lists the DIDs a UNTP registrar wallet is ready to issue a Digital Identity Anchor to (`POST
// /tf/onboard_request`), until they obtain it or the request expires. Another wallet is 422.
TfUntpRequestList(ctx context.Context, params *TfUntpRequestListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfX509CertificateListRecords performs a GET /tf/x509 (the `TfX509CertificateListRecords` operationId) request.
//
// Returns the records of all X509 certificates the wallet has issued, including their
// current status. The list is empty when the wallet has not issued any certificate.
TfX509CertificateListRecords(ctx context.Context, params *TfX509CertificateListRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfX509CertificateIssueWithBody performs a POST /tf/x509 (the `TfX509CertificateIssue` operationId) request,
// with any type of body and a specified content type.
//
// Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet
// to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
TfX509CertificateIssueWithBody(ctx context.Context, params *TfX509CertificateIssueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfX509CertificateIssue performs a POST /tf/x509 (the `TfX509CertificateIssue` operationId) request.
// Takes a body of the `application/json` content type.
//
// Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet
// to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
TfX509CertificateIssue(ctx context.Context, params *TfX509CertificateIssueParams, body TfX509CertificateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfX509CertificateGetRecord performs a GET /tf/x509/{serial_number} (the `TfX509CertificateGetRecord` operationId) request.
//
// Returns a record of an issued X509 certificate.
TfX509CertificateGetRecord(ctx context.Context, serialNumber string, params *TfX509CertificateGetRecordParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfX509CertificateUpdateStatusWithBody performs a POST /tf/x509/{serial_number}/status (the `TfX509CertificateUpdateStatus` operationId) request,
// with any type of body and a specified content type.
//
// Updates a status of an already issued X509 certificate.
TfX509CertificateUpdateStatusWithBody(ctx context.Context, serialNumber string, params *TfX509CertificateUpdateStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// TfX509CertificateUpdateStatus performs a POST /tf/x509/{serial_number}/status (the `TfX509CertificateUpdateStatus` operationId) request.
// Takes a body of the `application/json` content type.
//
// Updates a status of an already issued X509 certificate.
TfX509CertificateUpdateStatus(ctx context.Context, serialNumber string, params *TfX509CertificateUpdateStatusParams, body TfX509CertificateUpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// UntpLinkList performs a GET /untp/links (the `UntpLinkList` operationId) request.
//
// The UNTP links the wallet's DID document advertises for its published credentials.
UntpLinkList(ctx context.Context, params *UntpLinkListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// UntpLinkPublishWithBody performs a POST /untp/links (the `UntpLinkPublish` operationId) request,
// with any type of body and a specified content type.
//
// 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).
UntpLinkPublishWithBody(ctx context.Context, params *UntpLinkPublishParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// UntpLinkPublish performs a POST /untp/links (the `UntpLinkPublish` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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).
UntpLinkPublish(ctx context.Context, params *UntpLinkPublishParams, body UntpLinkPublishJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// UntpLinkDelete performs a DELETE /untp/links/{service_id} (the `UntpLinkDelete` operationId) request.
//
// Removes a UNTP link from the wallet's DID document and stops serving its credential.
UntpLinkDelete(ctx context.Context, serviceId string, params *UntpLinkDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// UntpRegistryList performs a GET /untp/registry (the `UntpRegistryList` operationId) request.
//
// Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet's own DID is
// one of them. Each registrar says where it is listed (`source`): in the wallet's `UNTP.trustedRegistrars`, the
// deployment's `untp.dia.trustedRegistrars`, or the deployment's remote registry (`untp.dia.registryUrl`), in
// that order of precedence. With a remote registry, `registry` says which copy of it is in use; one that cannot
// be fetched is reported there, and the other registrars are still listed.
UntpRegistryList(ctx context.Context, params *UntpRegistryListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// VerifierCredentialVerifyWithBody performs a POST /verifier/credential (the `VerifierCredentialVerify` operationId) request,
// with any type of body and a specified content type.
//
// 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.
VerifierCredentialVerifyWithBody(ctx context.Context, params *VerifierCredentialVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// VerifierCredentialVerify performs a POST /verifier/credential (the `VerifierCredentialVerify` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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.
VerifierCredentialVerify(ctx context.Context, params *VerifierCredentialVerifyParams, body VerifierCredentialVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// VerifierDidVerify performs a GET /verifier/did (the `VerifierDidVerify` operationId) request.
//
// 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`.
VerifierDidVerify(ctx context.Context, params *VerifierDidVerifyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// VerifierInitUrlCreateWithBody performs a POST /verifier/init (the `VerifierInitUrlCreate` operationId) request,
// with any type of body and a specified content type.
//
// 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.
VerifierInitUrlCreateWithBody(ctx context.Context, params *VerifierInitUrlCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// VerifierInitUrlCreate performs a POST /verifier/init (the `VerifierInitUrlCreate` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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.
VerifierInitUrlCreate(ctx context.Context, params *VerifierInitUrlCreateParams, body VerifierInitUrlCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// VerifierPdfVerifyWithBody performs a POST /verifier/pdf (the `VerifierPdfVerify` operationId) request,
// with any type of body and a specified content type.
//
// Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document
// Maximum size of the PDF document is 50 MB.
VerifierPdfVerifyWithBody(ctx context.Context, params *VerifierPdfVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// VerifierRenderWithBody performs a POST /verifier/render (the `VerifierRender` operationId) request,
// with any type of body and a specified content type.
//
// 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`.
VerifierRenderWithBody(ctx context.Context, params *VerifierRenderParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// VerifierRender performs a POST /verifier/render (the `VerifierRender` operationId) request.
// Takes a body of the `application/json` content type.
//
// 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`.
VerifierRender(ctx context.Context, params *VerifierRenderParams, body VerifierRenderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// VerifierUntpResolve performs a GET /verifier/untp/resolve (the `VerifierUntpResolve` operationId) request.
//
// 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.
VerifierUntpResolve(ctx context.Context, params *VerifierUntpResolveParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletList performs a GET /wallets (the `WalletList` operationId) request.
//
// Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order
// (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with
// the same name are in the order they were created.
WalletList(ctx context.Context, params *WalletListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletCreateWithBody performs a POST /wallets (the `WalletCreate` operationId) request,
// with any type of body and a specified content type.
//
// Creates a new wallet for the authenticated client.
WalletCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletCreate performs a POST /wallets (the `WalletCreate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Creates a new wallet for the authenticated client.
WalletCreate(ctx context.Context, body WalletCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletDelete performs a DELETE /wallets/{wallet_id} (the `WalletDelete` operationId) request.
//
// Permanently deletes the wallet with all credentials and keys.
// Make sure you know what you are doing before hitting this endpoint.
WalletDelete(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletGet performs a GET /wallets/{wallet_id} (the `WalletGet` operationId) request.
//
// Provides wallet details.
WalletGet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletPatchWithBody performs a PATCH /wallets/{wallet_id} (the `WalletPatch` operationId) request,
// with any type of body and a specified content type.
//
// Update wallet metadata and configuration.
//
// The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them.
// `config.UNTP` replaces the wallet's UNTP config, but for the read-only `isOnboarded` and `role`, which keep
// their stored values; an invalid one is `400`.
// A Tenant Owner of the wallet's tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other
// owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
WalletPatchWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletPatch performs a PATCH /wallets/{wallet_id} (the `WalletPatch` operationId) request.
// Takes a body of the `application/json` content type.
//
// Update wallet metadata and configuration.
//
// The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them.
// `config.UNTP` replaces the wallet's UNTP config, but for the read-only `isOnboarded` and `role`, which keep
// their stored values; an invalid one is `400`.
// A Tenant Owner of the wallet's tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other
// owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
WalletPatch(ctx context.Context, walletId string, body WalletPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletX509CertificateGet performs a GET /wallets/{wallet_id}/certificate (the `WalletX509CertificateGet` operationId) request.
//
// Returns the wallet's currently active X509 certificate in PEM format, used for XAdES/PDF
// signing.
// certificate for signature verification.
WalletX509CertificateGet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletX509CertificateImportWithBody performs a POST /wallets/{wallet_id}/certificate (the `WalletX509CertificateImport` operationId) request,
// with any type of body and a specified content type.
//
// Imports an X509 certificate to be used when signing credentials.
WalletX509CertificateImportWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletX509CertificateImport performs a POST /wallets/{wallet_id}/certificate (the `WalletX509CertificateImport` operationId) request.
// Takes a body of the `application/json` content type.
//
// Imports an X509 certificate to be used when signing credentials.
WalletX509CertificateImport(ctx context.Context, walletId string, body WalletX509CertificateImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletX509CSRCreateWithBody performs a POST /wallets/{wallet_id}/csr (the `WalletX509CSRCreate` operationId) request,
// with any type of body and a specified content type.
//
// Creates an X509 Certificate Signing Request (CSR) for the wallet's signing key.
//
// The resulting certificate is imported back via `WalletX509CertificateImport` to enable issuing credentials signed by X509 certificate chain it or
// XAdES/PDF signing.
WalletX509CSRCreateWithBody(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletX509CSRCreate performs a POST /wallets/{wallet_id}/csr (the `WalletX509CSRCreate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Creates an X509 Certificate Signing Request (CSR) for the wallet's signing key.
//
// The resulting certificate is imported back via `WalletX509CertificateImport` to enable issuing credentials signed by X509 certificate chain it or
// XAdES/PDF signing.
WalletX509CSRCreate(ctx context.Context, walletId string, body WalletX509CSRCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletKeys performs a GET /wallets/{wallet_id}/keys (the `WalletKeys` operationId) request.
//
// Provides wallet keys used for signing.
WalletKeys(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletNotificationHistory performs a GET /wallets/{wallet_id}/notification_history (the `WalletNotificationHistory` operationId) request.
//
// Provides wallet notifications that can be used to audit the wallet activity.
WalletNotificationHistory(ctx context.Context, walletId string, params *WalletNotificationHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletNotificationGetByState performs a GET /wallets/{wallet_id}/notification_history/{event_type}/{state} (the `WalletNotificationGetByState` operationId) request.
//
// Gets a specific notification by state.
WalletNotificationGetByState(ctx context.Context, walletId string, eventType string, state string, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletNotifications performs a GET /wallets/{wallet_id}/notifications (the `WalletNotifications` operationId) request.
//
// Provides SSE stream of notifications for a specific wallet. Supports replay of queued notifications via
// `Last-Event-Id` header parameter.
WalletNotifications(ctx context.Context, walletId string, params *WalletNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletVerifiedCredentialsDeleteByState performs a DELETE /wallets/{wallet_id}/verified_credentials/{state} (the `WalletVerifiedCredentialsDeleteByState` operationId) request.
//
// Deletes a specific verified credentials by state.
WalletVerifiedCredentialsDeleteByState(ctx context.Context, walletId string, state string, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletVerifiedCredentialsByState performs a GET /wallets/{wallet_id}/verified_credentials/{state} (the `WalletVerifiedCredentialsByState` operationId) request.
//
// Retrieves the result of a credential verification session identified by the verifier state.
// Called by the verifier after a holder has presented credentials in response to a
// `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
WalletVerifiedCredentialsByState(ctx context.Context, walletId string, state string, params *WalletVerifiedCredentialsByStateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpClientGetPendingRequests performs a GET /wmp/client/requests (the `WmpClientGetPendingRequests` operationId) request.
//
// Not implemented: always answers 501. Received requests arrive as wallet notifications; read one with
// `GET /wmp/client/requests/{request_id}`.
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
WmpClientGetPendingRequests(ctx context.Context, params *WmpClientGetPendingRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpClientGetRequest performs a GET /wmp/client/requests/{request_id} (the `WmpClientGetRequest` operationId) request.
//
// Returns metadata for the received message identified by `request_id` (delivered via a
// `wmp.message` notification carrying its id): its content type and body download link.
// The body is fetched as raw bytes from the download link included in the response
// (`bodyUrl`).
WmpClientGetRequest(ctx context.Context, requestId string, params *WmpClientGetRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpClientProcessRequestWithBody performs a POST /wmp/client/requests/{request_id} (the `WmpClientProcessRequest` operationId) request,
// with any type of body and a specified content type.
//
// Acts on a pending WMP client request identified by `request_id`. The body's `type`
// selects the action: `process_offer` a pending credential offer or
// `process_verification_request` a pending verification request (either returns its
// authorization requirements), `identity_assertion` to present a credential as the session
// identity assertion, `authenticate` to open the session after the assertion exchange, or
// `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed
// (sends a `wmp.message.ack`, core §5.3, to the original sender), or `accept`/`reject` to
// accept or refuse the content of a received message (on a session that negotiated the
// `evidence` capability, sends `acceptance_confirmed`/`acceptance_rejected` evidence to the
// original sender, WMP evidence §3.5).
WmpClientProcessRequestWithBody(ctx context.Context, requestId string, params *WmpClientProcessRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpClientProcessRequest performs a POST /wmp/client/requests/{request_id} (the `WmpClientProcessRequest` operationId) request.
// Takes a body of the `application/json` content type.
//
// Acts on a pending WMP client request identified by `request_id`. The body's `type`
// selects the action: `process_offer` a pending credential offer or
// `process_verification_request` a pending verification request (either returns its
// authorization requirements), `identity_assertion` to present a credential as the session
// identity assertion, `authenticate` to open the session after the assertion exchange, or
// `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed
// (sends a `wmp.message.ack`, core §5.3, to the original sender), or `accept`/`reject` to
// accept or refuse the content of a received message (on a session that negotiated the
// `evidence` capability, sends `acceptance_confirmed`/`acceptance_rejected` evidence to the
// original sender, WMP evidence §3.5).
WmpClientProcessRequest(ctx context.Context, requestId string, params *WmpClientProcessRequestParams, body WmpClientProcessRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntityList performs a GET /wmp/entities (the `WmpEntityList` operationId) request.
//
// Lists all wallets that have established a WMP connection with this wallet.
// Filter by `entityType=server` for entities that created the invitation (issuers/verifiers),
// `entityType=client` for entities that accepted it (holders), `entityType=relay` for the wallet's
// QTSP relay account, or `entityType=correspondent` for Subscribers reached through the relay.
WmpEntityList(ctx context.Context, params *WmpEntityListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntityDelete performs a DELETE /wmp/entities/{entity_id} (the `WmpEntityDelete` operationId) request.
//
// Delete entity based on the entity ID.
WmpEntityDelete(ctx context.Context, entityId string, params *WmpEntityDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntityGet performs a GET /wmp/entities/{entity_id} (the `WmpEntityGet` operationId) request.
//
// Get entity based on the entity ID.
WmpEntityGet(ctx context.Context, entityId string, params *WmpEntityGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntityConnectionGet performs a GET /wmp/entities/{entity_id}/connection (the `WmpEntityConnectionGet` operationId) request.
//
// Get entity connection status.
WmpEntityConnectionGet(ctx context.Context, entityId string, params *WmpEntityConnectionGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntityServerConnect performs a POST /wmp/entities/{entity_id}/connection (the `WmpEntityServerConnect` operationId) request.
//
// Re-establishes or confirms the connection to a WMP server entity. Used to
// reconnect after a dropped connection so the wallet can resume receiving pending requests.
WmpEntityServerConnect(ctx context.Context, entityId string, params *WmpEntityServerConnectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntitySendMessageWithBody performs a POST /wmp/entities/{entity_id}/messages (the `WmpEntitySendMessage` operationId) request,
// with any type of body and a specified content type.
//
// Sends a free-form WMP message to a connected entity. If the session is live the message is
// delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the
// `offline` capability, the message is queued and replayed once the peer reconnects or polls
// (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails
// with 409/400 (see below). The peer receives a delivered message as a `wmp.message`
// notification and can then read its metadata from `GET /wmp/client/requests/{request_id}`
// and download its body via the download link it contains. This wallet's own view of the
// message's delivery lifecycle is available afterwards via
// `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status`
// notification.
//
// The request is `multipart/form-data`. Supply the primary body as either the `body` text
// field (plain text) or a `body` file part (any content type, taken from the part).
WmpEntitySendMessageWithBody(ctx context.Context, entityId string, params *WmpEntitySendMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntityListMessageHistory performs a GET /wmp/entities/{entity_id}/messages/history (the `WmpEntityListMessageHistory` operationId) request.
//
// Lists this wallet's own delivery-lifecycle records (core §5.3.1/§5.3) for every message it
// has sent to entityId, across every session, ordered by sentAt.
WmpEntityListMessageHistory(ctx context.Context, entityId string, params *WmpEntityListMessageHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntityGetMessageHistory performs a GET /wmp/entities/{entity_id}/messages/{message_id} (the `WmpEntityGetMessageHistory` operationId) request.
//
// Returns this wallet's own delivery-lifecycle record for a message it previously sent via
// `POST /wmp/entities/{entity_id}/messages`.
WmpEntityGetMessageHistory(ctx context.Context, entityId string, messageId string, params *WmpEntityGetMessageHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntityMessageDecisionWithBody performs a POST /wmp/entities/{entity_id}/messages/{message_id}/decision (the `WmpEntityMessageDecision` operationId) request,
// with any type of body and a specified content type.
//
// Accepts or rejects a received `consented` / `consented_signed` message from a relay correspondent
// (CS-15 §14). The wallet answers with a `processed` or `rejected` acknowledgement, signed with the
// Subscriber key under `consented_signed`; the QTSP turns it into acceptance or rejection evidence.
WmpEntityMessageDecisionWithBody(ctx context.Context, entityId string, messageId string, params *WmpEntityMessageDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEntityMessageDecision performs a POST /wmp/entities/{entity_id}/messages/{message_id}/decision (the `WmpEntityMessageDecision` operationId) request.
// Takes a body of the `application/json` content type.
//
// Accepts or rejects a received `consented` / `consented_signed` message from a relay correspondent
// (CS-15 §14). The wallet answers with a `processed` or `rejected` acknowledgement, signed with the
// Subscriber key under `consented_signed`; the QTSP turns it into acceptance or rejection evidence.
WmpEntityMessageDecision(ctx context.Context, entityId string, messageId string, params *WmpEntityMessageDecisionParams, body WmpEntityMessageDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEvidenceList performs a GET /wmp/evidence (the `WmpEvidenceList` operationId) request.
//
// Searches this wallet's evidence repository (WMP evidence §6.1): the evidence it issued and the
// evidence its peers sent it. Either `message_id` or `session_id` is required. Records are ordered by
// event time; a search by session is paginated with `limit` and `continuation_token`.
WmpEvidenceList(ctx context.Context, params *WmpEvidenceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEvidenceVerifyWithBody performs a POST /wmp/evidence/verify (the `WmpEvidenceVerify` operationId) request,
// with any type of body and a specified content type.
//
// Verifies the params of a `wmp.evidence.notify` (WMP evidence §4.1), independently of any session:
// the signature and its `x5c` chain, the timestamp token and, when the evidence is about a message this
// wallet sent, the content hash. Nothing is stored.
WmpEvidenceVerifyWithBody(ctx context.Context, params *WmpEvidenceVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEvidenceVerify performs a POST /wmp/evidence/verify (the `WmpEvidenceVerify` operationId) request.
// Takes a body of the `application/json` content type.
//
// Verifies the params of a `wmp.evidence.notify` (WMP evidence §4.1), independently of any session:
// the signature and its `x5c` chain, the timestamp token and, when the evidence is about a message this
// wallet sent, the content hash. Nothing is stored.
WmpEvidenceVerify(ctx context.Context, params *WmpEvidenceVerifyParams, body WmpEvidenceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpEvidenceGet performs a GET /wmp/evidence/{evidence_id} (the `WmpEvidenceGet` operationId) request.
//
// Returns one record of this wallet's evidence repository (WMP evidence §6.1).
WmpEvidenceGet(ctx context.Context, evidenceId string, params *WmpEvidenceGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpCreateNewInvitation performs a POST /wmp/invitation (the `WmpCreateNewInvitation` operationId) request.
//
// Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with
// another wallet to establish a secure peer-to-peer communication channel. Issuers and
// verifiers use this to connect with holder wallets for direct credential delivery and
// verification without requiring QR codes or redirects on each interaction.
WmpCreateNewInvitation(ctx context.Context, params *WmpCreateNewInvitationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpAcceptInvitationWithBody performs a POST /wmp/invitation/accept (the `WmpAcceptInvitation` operationId) request,
// with any type of body and a specified content type.
//
// Accepts a WMP invitation URL from another wallet (issuer or verifier) to establish a
// peer-to-peer WMP connection. After acceptance, the connected entity appears in the WMP
// entity list and can send credential offers or verification requests directly to this wallet.
WmpAcceptInvitationWithBody(ctx context.Context, params *WmpAcceptInvitationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpAcceptInvitation performs a POST /wmp/invitation/accept (the `WmpAcceptInvitation` operationId) request.
// Takes a body of the `application/json` content type.
//
// Accepts a WMP invitation URL from another wallet (issuer or verifier) to establish a
// peer-to-peer WMP connection. After acceptance, the connected entity appears in the WMP
// entity list and can send credential offers or verification requests directly to this wallet.
WmpAcceptInvitation(ctx context.Context, params *WmpAcceptInvitationParams, body WmpAcceptInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayDelete performs a DELETE /wmp/relay (the `WmpRelayDelete` operationId) request.
//
// Closes the relay sessions and forgets the relay account and its correspondents. The QTSP keeps the
// Subscriber registration and the evidence it holds.
WmpRelayDelete(ctx context.Context, params *WmpRelayDeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayGet performs a GET /wmp/relay (the `WmpRelayGet` operationId) request.
//
// Returns the wallet's account at its QTSP relay (CS-15 EBW role).
WmpRelayGet(ctx context.Context, params *WmpRelayGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayCorrespondentConnectWithBody performs a POST /wmp/relay/correspondents (the `WmpRelayCorrespondentConnect` operationId) request,
// with any type of body and a specified content type.
//
// Connects to another Subscriber through the QTSP (CS-15 §7.3, §10.4): resolves the participant and
// one of its KeyPackages, validates its credential and sets up the dedicated relay session and MLS
// group. Messages are then sent with `POST /wmp/entities/{entity_id}/messages`.
WmpRelayCorrespondentConnectWithBody(ctx context.Context, params *WmpRelayCorrespondentConnectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayCorrespondentConnect performs a POST /wmp/relay/correspondents (the `WmpRelayCorrespondentConnect` operationId) request.
// Takes a body of the `application/json` content type.
//
// Connects to another Subscriber through the QTSP (CS-15 §7.3, §10.4): resolves the participant and
// one of its KeyPackages, validates its credential and sets up the dedicated relay session and MLS
// group. Messages are then sent with `POST /wmp/entities/{entity_id}/messages`.
WmpRelayCorrespondentConnect(ctx context.Context, params *WmpRelayCorrespondentConnectParams, body WmpRelayCorrespondentConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayOnboardingStartWithBody performs a POST /wmp/relay/onboarding (the `WmpRelayOnboardingStart` operationId) request,
// with any type of body and a specified content type.
//
// Starts Subscriber onboarding at a QTSP relay (CS-15 §8): checks the QTSP's discovery document and
// qualified status, generates the Subscriber key and CSR and sends them to the QTSP. The returned
// OpenID4VP authorization request is presented with the holder endpoints (`HolderPresentPassAuthInfo`,
// `HolderCredentialsPresentAfterConsent`); the QTSP answers the presentation with the onboarding result,
// returned as `response`, which is then passed to `WmpRelayOnboardingComplete`.
WmpRelayOnboardingStartWithBody(ctx context.Context, params *WmpRelayOnboardingStartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayOnboardingStart performs a POST /wmp/relay/onboarding (the `WmpRelayOnboardingStart` operationId) request.
// Takes a body of the `application/json` content type.
//
// Starts Subscriber onboarding at a QTSP relay (CS-15 §8): checks the QTSP's discovery document and
// qualified status, generates the Subscriber key and CSR and sends them to the QTSP. The returned
// OpenID4VP authorization request is presented with the holder endpoints (`HolderPresentPassAuthInfo`,
// `HolderCredentialsPresentAfterConsent`); the QTSP answers the presentation with the onboarding result,
// returned as `response`, which is then passed to `WmpRelayOnboardingComplete`.
WmpRelayOnboardingStart(ctx context.Context, params *WmpRelayOnboardingStartParams, body WmpRelayOnboardingStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayOnboardingCompleteWithBody performs a POST /wmp/relay/onboarding/{onboarding_id}/complete (the `WmpRelayOnboardingComplete` operationId) request,
// with any type of body and a specified content type.
//
// Completes onboarding with the onboarding result the QTSP answered the presentation with (CS-15 §8.5): the
// `response` of `HolderCredentialsPresentAfterConsent`, as is. Checks that the certificate names the
// Subscriber and chains to the Subscriber CAs, stores it, connects the inbox session and publishes
// KeyPackages.
WmpRelayOnboardingCompleteWithBody(ctx context.Context, onboardingId string, params *WmpRelayOnboardingCompleteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayOnboardingComplete performs a POST /wmp/relay/onboarding/{onboarding_id}/complete (the `WmpRelayOnboardingComplete` operationId) request.
// Takes a body of the `application/json` content type.
//
// Completes onboarding with the onboarding result the QTSP answered the presentation with (CS-15 §8.5): the
// `response` of `HolderCredentialsPresentAfterConsent`, as is. Checks that the certificate names the
// Subscriber and chains to the Subscriber CAs, stores it, connects the inbox session and publishes
// KeyPackages.
WmpRelayOnboardingComplete(ctx context.Context, onboardingId string, params *WmpRelayOnboardingCompleteParams, body WmpRelayOnboardingCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayRegistrationStartWithBody performs a POST /wmp/relay/registration (the `WmpRelayRegistrationStart` operationId) request,
// with any type of body and a specified content type.
//
// Starts a manual Subscriber registration, for a QTSP without the onboarding API (CS-15 §8.1): checks the
// QTSP's discovery document and qualified status and generates the Subscriber key. The returned CSR is
// given to the QTSP by other means; then upload the certificate it issued with
// `POST /wmp/relay/registration/certificate`. A pending onboarding or registration is replaced.
WmpRelayRegistrationStartWithBody(ctx context.Context, params *WmpRelayRegistrationStartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayRegistrationStart performs a POST /wmp/relay/registration (the `WmpRelayRegistrationStart` operationId) request.
// Takes a body of the `application/json` content type.
//
// Starts a manual Subscriber registration, for a QTSP without the onboarding API (CS-15 §8.1): checks the
// QTSP's discovery document and qualified status and generates the Subscriber key. The returned CSR is
// given to the QTSP by other means; then upload the certificate it issued with
// `POST /wmp/relay/registration/certificate`. A pending onboarding or registration is replaced.
WmpRelayRegistrationStart(ctx context.Context, params *WmpRelayRegistrationStartParams, body WmpRelayRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayRegistrationCompleteWithBody performs a POST /wmp/relay/registration/certificate (the `WmpRelayRegistrationComplete` operationId) request,
// with any type of body and a specified content type.
//
// Completes a manual registration with the certificate the QTSP issued for the CSR: stores it, connects the
// inbox session and publishes KeyPackages. The certificate must name the Subscriber, certify the CSR's key
// and chain to the Subscriber CAs (`wmpRelay.subscriberTrustAnchors`, or the uploaded chain's own CAs).
WmpRelayRegistrationCompleteWithBody(ctx context.Context, params *WmpRelayRegistrationCompleteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayRegistrationComplete performs a POST /wmp/relay/registration/certificate (the `WmpRelayRegistrationComplete` operationId) request.
// Takes a body of the `application/json` content type.
//
// Completes a manual registration with the certificate the QTSP issued for the CSR: stores it, connects the
// inbox session and publishes KeyPackages. The certificate must name the Subscriber, certify the CSR's key
// and chain to the Subscriber CAs (`wmpRelay.subscriberTrustAnchors`, or the uploaded chain's own CAs).
WmpRelayRegistrationComplete(ctx context.Context, params *WmpRelayRegistrationCompleteParams, body WmpRelayRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WmpRelayRotate performs a POST /wmp/relay/rotate (the `WmpRelayRotate` operationId) request.
//
// Rotates the Subscriber key and certificate over mutual TLS (CS-15 §8.6) and republishes KeyPackages.
// Existing correspondent groups move to the new certificate on their next message.
WmpRelayRotate(ctx context.Context, params *WmpRelayRotateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// DidDocumentGet performs a GET /{wallet_id}/did.json (the `DidDocumentGet` operationId) request.
//
// Gets the DID Document of the wallet.
DidDocumentGet(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

type ClientOption​

ClientOption allows setting custom parameters during construction

type ClientOption func(*Client) error

func WithBaseURL​

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient​

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn​

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

func WithWalletId​

func WithWalletId(walletId string) ClientOption

WithWalletId sets the wallet-id header on requests that leave it empty, so a client bound to a single wallet does not need the id on every call. An id passed in the operation params takes precedence.

type ClientWithResponses​

ClientWithResponses builds on ClientInterface to offer response payloads

type ClientWithResponses struct {
ClientInterface
}

func NewClientWithResponses​

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CredentialClaimMetadataGetWithResponse​

func (c *ClientWithResponses) CredentialClaimMetadataGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialClaimMetadataGetParams, reqEditors ...RequestEditorFn) (*CredentialClaimMetadataGetResponse, error)

CredentialClaimMetadataGetWithResponse performs a GET /credentials/{credential_id}/claim_metadata (the `CredentialClaimMetadataGet` operationId) request.

Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialCreateWithBodyWithResponse​

func (c *ClientWithResponses) CredentialCreateWithBodyWithResponse(ctx context.Context, params *CredentialCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)

CredentialCreateWithBodyWithResponse performs a POST /credentials (the `CredentialCreate` operationId) request, with any type of body and a specified content type.

Creates a new draft credential.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialCreateWithResponse​

func (c *ClientWithResponses) CredentialCreateWithResponse(ctx context.Context, params *CredentialCreateParams, body CredentialCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)

CredentialCreateWithResponse performs a POST /credentials (the `CredentialCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Creates a new draft credential.

func (*ClientWithResponses) CredentialGetWithResponse​

func (c *ClientWithResponses) CredentialGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialGetParams, reqEditors ...RequestEditorFn) (*CredentialGetResponse, error)

CredentialGetWithResponse performs a GET /credentials/{credential_id} (the `CredentialGet` operationId) request.

Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialImportWithBodyWithResponse​

func (c *ClientWithResponses) CredentialImportWithBodyWithResponse(ctx context.Context, params *CredentialImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)

CredentialImportWithBodyWithResponse performs a POST /credentials/import (the `CredentialImport` operationId) request, with any type of body and a specified content type.

Import pre-signed credential into wallet.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialImportWithResponse​

func (c *ClientWithResponses) CredentialImportWithResponse(ctx context.Context, params *CredentialImportParams, body CredentialImportJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)

CredentialImportWithResponse performs a POST /credentials/import (the `CredentialImport` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Import pre-signed credential into wallet.

func (*ClientWithResponses) CredentialIssuanceInitWithBodyWithResponse​

func (c *ClientWithResponses) CredentialIssuanceInitWithBodyWithResponse(ctx context.Context, credentialId string, params *CredentialIssuanceInitParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialIssuanceInitResponse, error)

CredentialIssuanceInitWithBodyWithResponse performs a POST /credentials/{credential_id}/issue/init (the `CredentialIssuanceInit` operationId) request, with any type of body and a specified content type.

Prepares created Verifiable Credential draft for its issuance for a specific client.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialIssuanceInitWithResponse​

func (c *ClientWithResponses) CredentialIssuanceInitWithResponse(ctx context.Context, credentialId string, params *CredentialIssuanceInitParams, body CredentialIssuanceInitJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialIssuanceInitResponse, error)

CredentialIssuanceInitWithResponse performs a POST /credentials/{credential_id}/issue/init (the `CredentialIssuanceInit` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Prepares created Verifiable Credential draft for its issuance for a specific client.

func (*ClientWithResponses) CredentialIssueDirectWithBodyWithResponse​

func (c *ClientWithResponses) CredentialIssueDirectWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialIssueDirectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialIssueDirectResponse, error)

CredentialIssueDirectWithBodyWithResponse performs a POST /credentials/{credential_id}/issue/direct (the `CredentialIssueDirect` operationId) request, with any type of body and a specified content type.

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`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialIssueDirectWithResponse​

func (c *ClientWithResponses) CredentialIssueDirectWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialIssueDirectParams, body CredentialIssueDirectJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialIssueDirectResponse, error)

CredentialIssueDirectWithResponse performs a POST /credentials/{credential_id}/issue/direct (the `CredentialIssueDirect` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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`.

func (*ClientWithResponses) CredentialListWithResponse​

func (c *ClientWithResponses) CredentialListWithResponse(ctx context.Context, params *CredentialListParams, reqEditors ...RequestEditorFn) (*CredentialListResponse, error)

CredentialListWithResponse performs a GET /credentials (the `CredentialList` operationId) request.

Retrieves a list of credentials.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialMetadataPatchWithBodyWithResponse​

func (c *ClientWithResponses) CredentialMetadataPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)

CredentialMetadataPatchWithBodyWithResponse performs a PATCH /credentials/{credential_id}/metadata (the `CredentialMetadataPatch` operationId) request, with any type of body and a specified content type.

Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialMetadataPatchWithResponse​

func (c *ClientWithResponses) CredentialMetadataPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)

CredentialMetadataPatchWithResponse performs a PATCH /credentials/{credential_id}/metadata (the `CredentialMetadataPatch` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.

func (*ClientWithResponses) CredentialPatchWithBodyWithResponse​

func (c *ClientWithResponses) CredentialPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)

CredentialPatchWithBodyWithResponse performs a PATCH /credentials/{credential_id} (the `CredentialPatch` operationId) request, with any type of body and a specified content type.

Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialPatchWithResponse​

func (c *ClientWithResponses) CredentialPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)

CredentialPatchWithResponse performs a PATCH /credentials/{credential_id} (the `CredentialPatch` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.

func (*ClientWithResponses) CredentialPayloadGetWithResponse​

func (c *ClientWithResponses) CredentialPayloadGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPayloadGetParams, reqEditors ...RequestEditorFn) (*CredentialPayloadGetResponse, error)

CredentialPayloadGetWithResponse performs a GET /credentials/{credential_id}/payload (the `CredentialPayloadGet` operationId) request.

Returns raw credential payload, with format depending on credential format.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialRawGetWithResponse​

func (c *ClientWithResponses) CredentialRawGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialRawGetParams, reqEditors ...RequestEditorFn) (*CredentialRawGetResponse, error)

CredentialRawGetWithResponse performs a GET /credentials/{credential_id}/raw (the `CredentialRawGet` operationId) request.

Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialRenderMethodsWithResponse​

func (c *ClientWithResponses) CredentialRenderMethodsWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialRenderMethodsParams, reqEditors ...RequestEditorFn) (*CredentialRenderMethodsResponse, error)

CredentialRenderMethodsWithResponse performs a GET /credentials/{credential_id}/render/methods (the `CredentialRenderMethods` operationId) request.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialRenderWithResponse​

func (c *ClientWithResponses) CredentialRenderWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialRenderParams, reqEditors ...RequestEditorFn) (*CredentialRenderResponse, error)

CredentialRenderWithResponse performs a GET /credentials/{credential_id}/render (the `CredentialRender` operationId) request.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialRequestInitWithBodyWithResponse​

func (c *ClientWithResponses) CredentialRequestInitWithBodyWithResponse(ctx context.Context, params *CredentialRequestInitParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialRequestInitResponse, error)

CredentialRequestInitWithBodyWithResponse performs a POST /credentials/request/init (the `CredentialRequestInit` operationId) request, with any type of body and a specified content type.

Requests a credential issuance from the issuer and retrieves requirements for holder authorization.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialRequestInitWithResponse​

func (c *ClientWithResponses) CredentialRequestInitWithResponse(ctx context.Context, params *CredentialRequestInitParams, body CredentialRequestInitJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialRequestInitResponse, error)

CredentialRequestInitWithResponse performs a POST /credentials/request/init (the `CredentialRequestInit` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Requests a credential issuance from the issuer and retrieves requirements for holder authorization.

func (*ClientWithResponses) CredentialRevokeWithResponse​

func (c *ClientWithResponses) CredentialRevokeWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialRevokeParams, reqEditors ...RequestEditorFn) (*CredentialRevokeResponse, error)

CredentialRevokeWithResponse performs a POST /credentials/{credential_id}/revoke (the `CredentialRevoke` operationId) request.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialSuspendWithResponse​

func (c *ClientWithResponses) CredentialSuspendWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialSuspendParams, reqEditors ...RequestEditorFn) (*CredentialSuspendResponse, error)

CredentialSuspendWithResponse performs a POST /credentials/{credential_id}/suspend (the `CredentialSuspend` operationId) request.

Suspend a Verifiable Credential issued with the `suspension` status purpose (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CredentialUnsuspendWithResponse​

func (c *ClientWithResponses) CredentialUnsuspendWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialUnsuspendParams, reqEditors ...RequestEditorFn) (*CredentialUnsuspendResponse, error)

CredentialUnsuspendWithResponse performs a DELETE /credentials/{credential_id}/suspend (the `CredentialUnsuspend` operationId) request.

Lift the suspension of a Verifiable Credential.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DeferredStatusWithResponse​

func (c *ClientWithResponses) DeferredStatusWithResponse(ctx context.Context, deferredId string, params *DeferredStatusParams, reqEditors ...RequestEditorFn) (*DeferredStatusResponse, error)

DeferredStatusWithResponse performs a GET /deferred/{deferred_id} (the `DeferredStatus` operationId) request.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DidDocumentGetWithResponse​

func (c *ClientWithResponses) DidDocumentGetWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*DidDocumentGetResponse, error)

DidDocumentGetWithResponse performs a GET /{wallet_id}/did.json (the `DidDocumentGet` operationId) request.

Gets the DID Document of the wallet.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DidDocumentLocalGetWithResponse​

func (c *ClientWithResponses) DidDocumentLocalGetWithResponse(ctx context.Context, params *DidDocumentLocalGetParams, reqEditors ...RequestEditorFn) (*DidDocumentLocalGetResponse, error)

DidDocumentLocalGetWithResponse performs a GET /did (the `DidDocumentLocalGet` operationId) request.

Returns the wallet's own DID document, as published at `/{wallet_id}/did.json` for a self-hosted did:web.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DidDocumentPatchWithBodyWithResponse​

func (c *ClientWithResponses) DidDocumentPatchWithBodyWithResponse(ctx context.Context, params *DidDocumentPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DidDocumentPatchResponse, error)

DidDocumentPatchWithBodyWithResponse performs a PATCH /did (the `DidDocumentPatch` operationId) request, with any type of body and a specified content type.

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`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DidDocumentPatchWithResponse​

func (c *ClientWithResponses) DidDocumentPatchWithResponse(ctx context.Context, params *DidDocumentPatchParams, body DidDocumentPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*DidDocumentPatchResponse, error)

DidDocumentPatchWithResponse performs a PATCH /did (the `DidDocumentPatch` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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`.

func (*ClientWithResponses) HealthCheckWithResponse​

func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

HealthCheckWithResponse performs a GET /health (the `HealthCheck` operationId) request.

Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) HolderCreateAuthOfferWithBodyWithResponse​

func (c *ClientWithResponses) HolderCreateAuthOfferWithBodyWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)

HolderCreateAuthOfferWithBodyWithResponse performs a POST /offer/create/intime (the `HolderCreateAuthOffer` operationId) request, with any type of body and a specified content type.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) HolderCreateAuthOfferWithResponse​

func (c *ClientWithResponses) HolderCreateAuthOfferWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)

HolderCreateAuthOfferWithResponse performs a POST /offer/create/intime (the `HolderCreateAuthOffer` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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.

func (*ClientWithResponses) HolderCredentialsPresentAfterConsentWithBodyWithResponse​

func (c *ClientWithResponses) HolderCredentialsPresentAfterConsentWithBodyWithResponse(ctx context.Context, interactionId string, params *HolderCredentialsPresentAfterConsentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderCredentialsPresentAfterConsentResponse, error)

HolderCredentialsPresentAfterConsentWithBodyWithResponse performs a POST /holder/present/{interaction_id} (the `HolderCredentialsPresentAfterConsent` operationId) request, with any type of body and a specified content type.

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`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) HolderCredentialsPresentAfterConsentWithResponse​

func (c *ClientWithResponses) HolderCredentialsPresentAfterConsentWithResponse(ctx context.Context, interactionId string, params *HolderCredentialsPresentAfterConsentParams, body HolderCredentialsPresentAfterConsentJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderCredentialsPresentAfterConsentResponse, error)

HolderCredentialsPresentAfterConsentWithResponse performs a POST /holder/present/{interaction_id} (the `HolderCredentialsPresentAfterConsent` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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`.

func (*ClientWithResponses) HolderIdTokenSendWithBodyWithResponse​

func (c *ClientWithResponses) HolderIdTokenSendWithBodyWithResponse(ctx context.Context, params *HolderIdTokenSendParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderIdTokenSendResponse, error)

HolderIdTokenSendWithBodyWithResponse performs a POST /holder/id-token/send (the `HolderIdTokenSend` operationId) request, with any type of body and a specified content type.

Responds to an ID token request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) HolderIdTokenSendWithResponse​

func (c *ClientWithResponses) HolderIdTokenSendWithResponse(ctx context.Context, params *HolderIdTokenSendParams, body HolderIdTokenSendJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderIdTokenSendResponse, error)

HolderIdTokenSendWithResponse performs a POST /holder/id-token/send (the `HolderIdTokenSend` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Responds to an ID token request.

func (*ClientWithResponses) HolderOfferPassAuthInfoWithBodyWithResponse​

func (c *ClientWithResponses) HolderOfferPassAuthInfoWithBodyWithResponse(ctx context.Context, params *HolderOfferPassAuthInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderOfferPassAuthInfoResponse, error)

HolderOfferPassAuthInfoWithBodyWithResponse performs a POST /holder/offer/pass-auth-info (the `HolderOfferPassAuthInfo` operationId) request, with any type of body and a specified content type.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) HolderOfferPassAuthInfoWithResponse​

func (c *ClientWithResponses) HolderOfferPassAuthInfoWithResponse(ctx context.Context, params *HolderOfferPassAuthInfoParams, body HolderOfferPassAuthInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderOfferPassAuthInfoResponse, error)

HolderOfferPassAuthInfoWithResponse performs a POST /holder/offer/pass-auth-info (the `HolderOfferPassAuthInfo` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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.

func (*ClientWithResponses) HolderOfferProcessAfterConsentWithBodyWithResponse​

func (c *ClientWithResponses) HolderOfferProcessAfterConsentWithBodyWithResponse(ctx context.Context, interactionId string, params *HolderOfferProcessAfterConsentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderOfferProcessAfterConsentResponse, error)

HolderOfferProcessAfterConsentWithBodyWithResponse performs a POST /holder/offer/{interaction_id}/process (the `HolderOfferProcessAfterConsent` operationId) request, with any type of body and a specified content type.

Completes a credential offer flow after holder consent: submits data needed for the holder to authorize candidates to the issuer for holder authorization and retrieves the issued credential(s) into the wallet. The `interaction_id` is obtained from `HolderOfferPassAuthInfo`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) HolderOfferProcessAfterConsentWithResponse​

func (c *ClientWithResponses) HolderOfferProcessAfterConsentWithResponse(ctx context.Context, interactionId string, params *HolderOfferProcessAfterConsentParams, body HolderOfferProcessAfterConsentJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderOfferProcessAfterConsentResponse, error)

HolderOfferProcessAfterConsentWithResponse performs a POST /holder/offer/{interaction_id}/process (the `HolderOfferProcessAfterConsent` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Completes a credential offer flow after holder consent: submits data needed for the holder to authorize candidates to the issuer for holder authorization and retrieves the issued credential(s) into the wallet. The `interaction_id` is obtained from `HolderOfferPassAuthInfo`.

func (*ClientWithResponses) HolderPresentPassAuthInfoWithBodyWithResponse​

func (c *ClientWithResponses) HolderPresentPassAuthInfoWithBodyWithResponse(ctx context.Context, params *HolderPresentPassAuthInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderPresentPassAuthInfoResponse, error)

HolderPresentPassAuthInfoWithBodyWithResponse performs a POST /holder/present/pass-auth-info (the `HolderPresentPassAuthInfo` operationId) request, with any type of body and a specified content type.

Processes a verifier's presentation request URL and returns the presentation definition along with matching credential candidates from the wallet. The holder reviews which credentials will be disclosed before giving consent. The returned `interactionId` is used in the subsequent `HolderCredentialsPresentAfterConsent` call.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) HolderPresentPassAuthInfoWithResponse​

func (c *ClientWithResponses) HolderPresentPassAuthInfoWithResponse(ctx context.Context, params *HolderPresentPassAuthInfoParams, body HolderPresentPassAuthInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderPresentPassAuthInfoResponse, error)

HolderPresentPassAuthInfoWithResponse performs a POST /holder/present/pass-auth-info (the `HolderPresentPassAuthInfo` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Processes a verifier's presentation request URL and returns the presentation definition along with matching credential candidates from the wallet. The holder reviews which credentials will be disclosed before giving consent. The returned `interactionId` is used in the subsequent `HolderCredentialsPresentAfterConsent` call.

func (*ClientWithResponses) IdTokenRequestCreateWithResponse​

func (c *ClientWithResponses) IdTokenRequestCreateWithResponse(ctx context.Context, params *IdTokenRequestCreateParams, reqEditors ...RequestEditorFn) (*IdTokenRequestCreateResponse, error)

IdTokenRequestCreateWithResponse performs a POST /id-token/request (the `IdTokenRequestCreate` operationId) request.

Creates an ID token request that will be sent to the holder for DID-based authentication. Used during the authorized credential issuance flow when the issuer requires the holder to prove control of their DID before the credential is issued. The returned request ID is passed to `CredentialIssuanceInit` as `idTokenRequestId`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuerCredentialTypesListWithResponse​

func (c *ClientWithResponses) IssuerCredentialTypesListWithResponse(ctx context.Context, params *IssuerCredentialTypesListParams, reqEditors ...RequestEditorFn) (*IssuerCredentialTypesListResponse, error)

IssuerCredentialTypesListWithResponse performs a GET /issuer/credential/types (the `IssuerCredentialTypesList` operationId) request.

Returns verifiable credential format and types that are supported by the issuer.

  • format: the verifiable credential format (for example "jwt_vc")
  • type: a list of strings that define supported verifiable credential type(s)

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuerDetachedJwsSignWithBodyWithResponse​

func (c *ClientWithResponses) IssuerDetachedJwsSignWithBodyWithResponse(ctx context.Context, params *IssuerDetachedJwsSignParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuerDetachedJwsSignResponse, error)

IssuerDetachedJwsSignWithBodyWithResponse performs a POST /issuer/jws/detached (the `IssuerDetachedJwsSign` operationId) request, with any type of body and a specified content type.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuerDetachedJwsSignWithResponse​

func (c *ClientWithResponses) IssuerDetachedJwsSignWithResponse(ctx context.Context, params *IssuerDetachedJwsSignParams, body IssuerDetachedJwsSignJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuerDetachedJwsSignResponse, error)

IssuerDetachedJwsSignWithResponse performs a POST /issuer/jws/detached (the `IssuerDetachedJwsSign` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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.

func (*ClientWithResponses) IssuerInitiateAuthOfferWithBodyWithResponse​

func (c *ClientWithResponses) IssuerInitiateAuthOfferWithBodyWithResponse(ctx context.Context, params *IssuerInitiateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuerInitiateAuthOfferResponse, error)

IssuerInitiateAuthOfferWithBodyWithResponse performs a POST /issuer/offer/auth (the `IssuerInitiateAuthOffer` operationId) request, with any type of body and a specified content type.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuerInitiateAuthOfferWithResponse​

func (c *ClientWithResponses) IssuerInitiateAuthOfferWithResponse(ctx context.Context, params *IssuerInitiateAuthOfferParams, body IssuerInitiateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuerInitiateAuthOfferResponse, error)

IssuerInitiateAuthOfferWithResponse performs a POST /issuer/offer/auth (the `IssuerInitiateAuthOffer` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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.

func (*ClientWithResponses) IssuerInitiatePreauthOfferWithBodyWithResponse​

func (c *ClientWithResponses) IssuerInitiatePreauthOfferWithBodyWithResponse(ctx context.Context, params *IssuerInitiatePreauthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuerInitiatePreauthOfferResponse, error)

IssuerInitiatePreauthOfferWithBodyWithResponse performs a POST /issuer/offer/preauth (the `IssuerInitiatePreauthOffer` operationId) request, with any type of body and a specified content type.

Generates a pre-authorized credential offer for the holder. Unlike the authorized flow, the holder does not need to authenticate with the issuer — instead a pre-authorized code (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and can be shared as a QR code or deep link.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuerInitiatePreauthOfferWithResponse​

func (c *ClientWithResponses) IssuerInitiatePreauthOfferWithResponse(ctx context.Context, params *IssuerInitiatePreauthOfferParams, body IssuerInitiatePreauthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuerInitiatePreauthOfferResponse, error)

IssuerInitiatePreauthOfferWithResponse performs a POST /issuer/offer/preauth (the `IssuerInitiatePreauthOffer` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Generates a pre-authorized credential offer for the holder. Unlike the authorized flow, the holder does not need to authenticate with the issuer — instead a pre-authorized code (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and can be shared as a QR code or deep link.

func (*ClientWithResponses) IssuerXadesSignWithBodyWithResponse​

func (c *ClientWithResponses) IssuerXadesSignWithBodyWithResponse(ctx context.Context, params *IssuerXadesSignParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuerXadesSignResponse, error)

IssuerXadesSignWithBodyWithResponse performs a POST /issuer/xades (the `IssuerXadesSign` operationId) request, with any type of body and a specified content type.

Signs an XML document with XAdES signature.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PdfCredentialMakeVpWithResponse​

func (c *ClientWithResponses) PdfCredentialMakeVpWithResponse(ctx context.Context, credentialId CredentialId, params *PdfCredentialMakeVpParams, reqEditors ...RequestEditorFn) (*PdfCredentialMakeVpResponse, error)

PdfCredentialMakeVpWithResponse performs a POST /credentials/{credential_id}/pdf/vp (the `PdfCredentialMakeVp` operationId) request.

Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PdfCredentialTwinDeleteWithResponse​

func (c *ClientWithResponses) PdfCredentialTwinDeleteWithResponse(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinDeleteParams, reqEditors ...RequestEditorFn) (*PdfCredentialTwinDeleteResponse, error)

PdfCredentialTwinDeleteWithResponse performs a DELETE /credentials/{credential_id}/pdf (the `PdfCredentialTwinDelete` operationId) request.

Deletes the PDF associated with the verifiable credential. Can be used only for credentials in Draft state.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PdfCredentialTwinGetWithResponse​

func (c *ClientWithResponses) PdfCredentialTwinGetWithResponse(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinGetParams, reqEditors ...RequestEditorFn) (*PdfCredentialTwinGetResponse, error)

PdfCredentialTwinGetWithResponse performs a GET /credentials/{credential_id}/pdf (the `PdfCredentialTwinGet` operationId) request.

Returns either an unsigned PDF that was uploaded to be signed and embedded into a verifiable credential in case of credential in Draft state, or a signed PDF embedded in an issued VC.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PdfCredentialTwinUploadWithBodyWithResponse​

func (c *ClientWithResponses) PdfCredentialTwinUploadWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinUploadParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PdfCredentialTwinUploadResponse, error)

PdfCredentialTwinUploadWithBodyWithResponse performs a POST /credentials/{credential_id}/pdf (the `PdfCredentialTwinUpload` operationId) request, with any type of body and a specified content type.

Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 20 MB.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TenantEnrollmentEnrollWithResponse​

func (c *ClientWithResponses) TenantEnrollmentEnrollWithResponse(ctx context.Context, tenantId string, state string, reqEditors ...RequestEditorFn) (*TenantEnrollmentEnrollResponse, error)

TenantEnrollmentEnrollWithResponse performs a POST /tenant/{tenant_id}/enrollment/{state} (the `TenantEnrollmentEnroll` operationId) request.

Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TenantEnrollmentInitWithBodyWithResponse​

func (c *ClientWithResponses) TenantEnrollmentInitWithBodyWithResponse(ctx context.Context, tenantId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenantEnrollmentInitResponse, error)

TenantEnrollmentInitWithBodyWithResponse performs a POST /tenant/{tenant_id}/enrollment/init (the `TenantEnrollmentInit` operationId) request, with any type of body and a specified content type.

Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TenantEnrollmentInitWithResponse​

func (c *ClientWithResponses) TenantEnrollmentInitWithResponse(ctx context.Context, tenantId string, body TenantEnrollmentInitJSONRequestBody, reqEditors ...RequestEditorFn) (*TenantEnrollmentInitResponse, error)

TenantEnrollmentInitWithResponse performs a POST /tenant/{tenant_id}/enrollment/init (the `TenantEnrollmentInit` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.

func (*ClientWithResponses) TenantEnrollmentListWithResponse​

func (c *ClientWithResponses) TenantEnrollmentListWithResponse(ctx context.Context, tenantId string, reqEditors ...RequestEditorFn) (*TenantEnrollmentListResponse, error)

TenantEnrollmentListWithResponse performs a GET /tenant/{tenant_id}/enrollments (the `TenantEnrollmentList` operationId) request.

Lists the tenant's pending enrollments, oldest first. Only a Tenant Owner of the tenant may.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TenantEnrollmentRevokeWithResponse​

func (c *ClientWithResponses) TenantEnrollmentRevokeWithResponse(ctx context.Context, tenantId string, enrollmentId string, reqEditors ...RequestEditorFn) (*TenantEnrollmentRevokeResponse, error)

TenantEnrollmentRevokeWithResponse performs a DELETE /tenant/{tenant_id}/enrollments/{enrollment_id} (the `TenantEnrollmentRevoke` operationId) request.

Revokes a pending enrollment, so that its state no longer creates a wallet.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfAccreditAsWithBodyWithResponse​

func (c *ClientWithResponses) TfAccreditAsWithBodyWithResponse(ctx context.Context, params *TfAccreditAsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfAccreditAsResponse, error)

TfAccreditAsWithBodyWithResponse performs a POST /tf/accredit (the `TfAccreditAs` operationId) request, with any type of body and a specified content type.

Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfAccreditAsWithResponse​

func (c *ClientWithResponses) TfAccreditAsWithResponse(ctx context.Context, params *TfAccreditAsParams, body TfAccreditAsJSONRequestBody, reqEditors ...RequestEditorFn) (*TfAccreditAsResponse, error)

TfAccreditAsWithResponse performs a POST /tf/accredit (the `TfAccreditAs` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.

func (*ClientWithResponses) TfAccreditRequestWithBodyWithResponse​

func (c *ClientWithResponses) TfAccreditRequestWithBodyWithResponse(ctx context.Context, params *TfAccreditRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfAccreditRequestResponse, error)

TfAccreditRequestWithBodyWithResponse performs a POST /tf/accreditation_request (the `TfAccreditRequest` operationId) request, with any type of body and a specified content type.

Used by a TAO/RTAO wallet to process and approve an incoming accreditation request from another legal entity. Issues an accreditation credential authorizing the entity to issue credentials of the specified type within the trust framework.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfAccreditRequestWithResponse​

func (c *ClientWithResponses) TfAccreditRequestWithResponse(ctx context.Context, params *TfAccreditRequestParams, body TfAccreditRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*TfAccreditRequestResponse, error)

TfAccreditRequestWithResponse performs a POST /tf/accreditation_request (the `TfAccreditRequest` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Used by a TAO/RTAO wallet to process and approve an incoming accreditation request from another legal entity. Issues an accreditation credential authorizing the entity to issue credentials of the specified type within the trust framework.

func (*ClientWithResponses) TfOnboardRequestWithBodyWithResponse​

func (c *ClientWithResponses) TfOnboardRequestWithBodyWithResponse(ctx context.Context, params *TfOnboardRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfOnboardRequestResponse, error)

TfOnboardRequestWithBodyWithResponse performs a POST /tf/onboard_request (the `TfOnboardRequest` operationId) request, with any type of body and a specified content type.

Used by a TAO/RTAO wallet to process and approve an incoming onboarding request from another legal entity. Issues an onboarding credential (TIA) to the requesting entity, registering them in the trust framework. A UNTP registrar wallet makes a Digital Identity Anchor (`untp`) pending for the DID: the member obtains it through the OpenID4VCI issuance of `untp-dia` (an offer from `/issuer/offer/preauth` with the DID as `clientId`), signing its proof with the DID's key.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfOnboardRequestWithResponse​

func (c *ClientWithResponses) TfOnboardRequestWithResponse(ctx context.Context, params *TfOnboardRequestParams, body TfOnboardRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*TfOnboardRequestResponse, error)

TfOnboardRequestWithResponse performs a POST /tf/onboard_request (the `TfOnboardRequest` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Used by a TAO/RTAO wallet to process and approve an incoming onboarding request from another legal entity. Issues an onboarding credential (TIA) to the requesting entity, registering them in the trust framework. A UNTP registrar wallet makes a Digital Identity Anchor (`untp`) pending for the DID: the member obtains it through the OpenID4VCI issuance of `untp-dia` (an offer from `/issuer/offer/preauth` with the DID as `clientId`), signing its proof with the DID's key.

func (*ClientWithResponses) TfOnboardWithBodyWithResponse​

func (c *ClientWithResponses) TfOnboardWithBodyWithResponse(ctx context.Context, params *TfOnboardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfOnboardResponse, error)

TfOnboardWithBodyWithResponse performs a POST /tf/onboard (the `TfOnboard` operationId) request, with any type of body and a specified content type.

Completes the trust framework onboarding of this wallet using the specified onboarding credential. After successful onboarding, the wallet's DID is registered in the trust framework's TAO/TI hierarchy, enabling it to issue or verify trust-framework credentials. A UNTP wallet onboards with a Digital Identity Anchor of its DID, held (`onboardingCredentialId`) or offered (`offer`): it verifies it, publishes it in its DID document as a `dia` link, and replaces the DIA it published before.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfOnboardWithResponse​

func (c *ClientWithResponses) TfOnboardWithResponse(ctx context.Context, params *TfOnboardParams, body TfOnboardJSONRequestBody, reqEditors ...RequestEditorFn) (*TfOnboardResponse, error)

TfOnboardWithResponse performs a POST /tf/onboard (the `TfOnboard` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Completes the trust framework onboarding of this wallet using the specified onboarding credential. After successful onboarding, the wallet's DID is registered in the trust framework's TAO/TI hierarchy, enabling it to issue or verify trust-framework credentials. A UNTP wallet onboards with a Digital Identity Anchor of its DID, held (`onboardingCredentialId`) or offered (`offer`): it verifies it, publishes it in its DID document as a `dia` link, and replaces the DIA it published before.

func (*ClientWithResponses) TfRevokeAccreditationWithBodyWithResponse​

func (c *ClientWithResponses) TfRevokeAccreditationWithBodyWithResponse(ctx context.Context, params *TfRevokeAccreditationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfRevokeAccreditationResponse, error)

TfRevokeAccreditationWithBodyWithResponse performs a POST /tf/revoke-accredit (the `TfRevokeAccreditation` operationId) request, with any type of body and a specified content type.

Revokes another legal entity's accreditation or trust framework registration by invalidating their credential in the trust status list.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfRevokeAccreditationWithResponse​

func (c *ClientWithResponses) TfRevokeAccreditationWithResponse(ctx context.Context, params *TfRevokeAccreditationParams, body TfRevokeAccreditationJSONRequestBody, reqEditors ...RequestEditorFn) (*TfRevokeAccreditationResponse, error)

TfRevokeAccreditationWithResponse performs a POST /tf/revoke-accredit (the `TfRevokeAccreditation` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Revokes another legal entity's accreditation or trust framework registration by invalidating their credential in the trust status list.

func (*ClientWithResponses) TfUntpDiaIssueWithBodyWithResponse​

func (c *ClientWithResponses) TfUntpDiaIssueWithBodyWithResponse(ctx context.Context, params *TfUntpDiaIssueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfUntpDiaIssueResponse, error)

TfUntpDiaIssueWithBodyWithResponse performs a POST /tf/untp/dia (the `TfUntpDiaIssue` operationId) request, with any type of body and a specified content type.

Issues a Digital Identity Anchor to a DID without the OpenID4VCI proof that the member controls it, for closed pilots: 403 unless the deployment sets `untp.registrar.allowUnverifiedDidBinding`. The member onboards with it (`POST /tf/onboard` with `onboardingCredentialId`, once it holds it). Another wallet than a UNTP registrar is 422.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfUntpDiaIssueWithResponse​

func (c *ClientWithResponses) TfUntpDiaIssueWithResponse(ctx context.Context, params *TfUntpDiaIssueParams, body TfUntpDiaIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*TfUntpDiaIssueResponse, error)

TfUntpDiaIssueWithResponse performs a POST /tf/untp/dia (the `TfUntpDiaIssue` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Issues a Digital Identity Anchor to a DID without the OpenID4VCI proof that the member controls it, for closed pilots: 403 unless the deployment sets `untp.registrar.allowUnverifiedDidBinding`. The member onboards with it (`POST /tf/onboard` with `onboardingCredentialId`, once it holds it). Another wallet than a UNTP registrar is 422.

func (*ClientWithResponses) TfUntpDiaListWithResponse​

func (c *ClientWithResponses) TfUntpDiaListWithResponse(ctx context.Context, params *TfUntpDiaListParams, reqEditors ...RequestEditorFn) (*TfUntpDiaListResponse, error)

TfUntpDiaListWithResponse performs a GET /tf/untp/dia (the `TfUntpDiaList` operationId) request.

Lists the Digital Identity Anchors a UNTP registrar wallet issued. Another wallet is 422.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfUntpRequestListWithResponse​

func (c *ClientWithResponses) TfUntpRequestListWithResponse(ctx context.Context, params *TfUntpRequestListParams, reqEditors ...RequestEditorFn) (*TfUntpRequestListResponse, error)

TfUntpRequestListWithResponse performs a GET /tf/untp/requests (the `TfUntpRequestList` operationId) request.

Lists the DIDs a UNTP registrar wallet is ready to issue a Digital Identity Anchor to (`POST /tf/onboard_request`), until they obtain it or the request expires. Another wallet is 422.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfX509CertificateGetRecordWithResponse​

func (c *ClientWithResponses) TfX509CertificateGetRecordWithResponse(ctx context.Context, serialNumber string, params *TfX509CertificateGetRecordParams, reqEditors ...RequestEditorFn) (*TfX509CertificateGetRecordResponse, error)

TfX509CertificateGetRecordWithResponse performs a GET /tf/x509/{serial_number} (the `TfX509CertificateGetRecord` operationId) request.

Returns a record of an issued X509 certificate.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfX509CertificateIssueWithBodyWithResponse​

func (c *ClientWithResponses) TfX509CertificateIssueWithBodyWithResponse(ctx context.Context, params *TfX509CertificateIssueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfX509CertificateIssueResponse, error)

TfX509CertificateIssueWithBodyWithResponse performs a POST /tf/x509 (the `TfX509CertificateIssue` operationId) request, with any type of body and a specified content type.

Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfX509CertificateIssueWithResponse​

func (c *ClientWithResponses) TfX509CertificateIssueWithResponse(ctx context.Context, params *TfX509CertificateIssueParams, body TfX509CertificateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*TfX509CertificateIssueResponse, error)

TfX509CertificateIssueWithResponse performs a POST /tf/x509 (the `TfX509CertificateIssue` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.

func (*ClientWithResponses) TfX509CertificateListRecordsWithResponse​

func (c *ClientWithResponses) TfX509CertificateListRecordsWithResponse(ctx context.Context, params *TfX509CertificateListRecordsParams, reqEditors ...RequestEditorFn) (*TfX509CertificateListRecordsResponse, error)

TfX509CertificateListRecordsWithResponse performs a GET /tf/x509 (the `TfX509CertificateListRecords` operationId) request.

Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfX509CertificateUpdateStatusWithBodyWithResponse​

func (c *ClientWithResponses) TfX509CertificateUpdateStatusWithBodyWithResponse(ctx context.Context, serialNumber string, params *TfX509CertificateUpdateStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfX509CertificateUpdateStatusResponse, error)

TfX509CertificateUpdateStatusWithBodyWithResponse performs a POST /tf/x509/{serial_number}/status (the `TfX509CertificateUpdateStatus` operationId) request, with any type of body and a specified content type.

Updates a status of an already issued X509 certificate.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TfX509CertificateUpdateStatusWithResponse​

func (c *ClientWithResponses) TfX509CertificateUpdateStatusWithResponse(ctx context.Context, serialNumber string, params *TfX509CertificateUpdateStatusParams, body TfX509CertificateUpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*TfX509CertificateUpdateStatusResponse, error)

TfX509CertificateUpdateStatusWithResponse performs a POST /tf/x509/{serial_number}/status (the `TfX509CertificateUpdateStatus` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Updates a status of an already issued X509 certificate.

func (*ClientWithResponses) TrustListAddWithBodyWithResponse​

func (c *ClientWithResponses) TrustListAddWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TrustListAddResponse, error)

TrustListAddWithBodyWithResponse performs a POST /admin/trust-lists (the `TrustListAdd` operationId) request, with any type of body and a specified content type.

Starts tracking the trusted list published at the given URL, storing its contents and pinning it to the certificate that signed it. Adding a list that is already tracked refreshes it. Requires the `admin` role and the `trustListProviderPostgres` provider.

This fetches the list before it answers, and adding a List of Trusted Lists also walks every list it points at, so the call takes as long as those fetches do. A list that could not be reached through the walk is left out rather than failing the registration.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TrustListAddWithResponse​

func (c *ClientWithResponses) TrustListAddWithResponse(ctx context.Context, body TrustListAddJSONRequestBody, reqEditors ...RequestEditorFn) (*TrustListAddResponse, error)

TrustListAddWithResponse performs a POST /admin/trust-lists (the `TrustListAdd` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Starts tracking the trusted list published at the given URL, storing its contents and pinning it to the certificate that signed it. Adding a list that is already tracked refreshes it. Requires the `admin` role and the `trustListProviderPostgres` provider.

This fetches the list before it answers, and adding a List of Trusted Lists also walks every list it points at, so the call takes as long as those fetches do. A list that could not be reached through the walk is left out rather than failing the registration.

func (*ClientWithResponses) TrustListDeleteWithResponse​

func (c *ClientWithResponses) TrustListDeleteWithResponse(ctx context.Context, params *TrustListDeleteParams, reqEditors ...RequestEditorFn) (*TrustListDeleteResponse, error)

TrustListDeleteWithResponse performs a DELETE /admin/trust-lists (the `TrustListDelete` operationId) request.

Stops tracking the trusted list published at the given URL and removes its contents. Removing a List of Trusted Lists removes the lists reached through it as well. Requires the `admin` role and the `trustListProviderPostgres` provider.

A wallet whose configuration still names this list will register it again the next time it verifies against it.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TrustListRefreshWithResponse​

func (c *ClientWithResponses) TrustListRefreshWithResponse(ctx context.Context, params *TrustListRefreshParams, reqEditors ...RequestEditorFn) (*TrustListRefreshResponse, error)

TrustListRefreshWithResponse performs a POST /admin/trust-lists/refresh (the `TrustListRefresh` operationId) request.

Refetches the tracked trusted list published at the given URL and stores what it fetched, whether or not the publisher has issued a new version of it. This is what separates a forced refresh from the sweep the wallet makes on its own interval, which leaves an unchanged list alone. Requires the `admin` role and the `trustListProviderPostgres` provider.

The refetch is pinned to the certificate already recorded for the list, so a list cannot be moved onto a new signer by refreshing it: one signed by a different certificate is rejected with 409 and the stored copy is kept.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) TrustListsGetWithResponse​

func (c *ClientWithResponses) TrustListsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TrustListsGetResponse, error)

TrustListsGetWithResponse performs a GET /admin/trust-lists (the `TrustListsGet` operationId) request.

Lists the trusted lists the wallet tracks. Requires the `admin` role, and a wallet configured with the `trustListProviderPostgres` trust list provider: one that fetches its lists from their publisher as it needs them tracks nothing, and answers 501.

A list reached through a List of Trusted Lists is not a source of its own and is not returned here. It is refreshed and removed along with the list that points at it.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UntpLinkDeleteWithResponse​

func (c *ClientWithResponses) UntpLinkDeleteWithResponse(ctx context.Context, serviceId string, params *UntpLinkDeleteParams, reqEditors ...RequestEditorFn) (*UntpLinkDeleteResponse, error)

UntpLinkDeleteWithResponse performs a DELETE /untp/links/{service_id} (the `UntpLinkDelete` operationId) request.

Removes a UNTP link from the wallet's DID document and stops serving its credential.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UntpLinkListWithResponse​

func (c *ClientWithResponses) UntpLinkListWithResponse(ctx context.Context, params *UntpLinkListParams, reqEditors ...RequestEditorFn) (*UntpLinkListResponse, error)

UntpLinkListWithResponse performs a GET /untp/links (the `UntpLinkList` operationId) request.

The UNTP links the wallet's DID document advertises for its published credentials.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UntpLinkPublishWithBodyWithResponse​

func (c *ClientWithResponses) UntpLinkPublishWithBodyWithResponse(ctx context.Context, params *UntpLinkPublishParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UntpLinkPublishResponse, error)

UntpLinkPublishWithBodyWithResponse performs a POST /untp/links (the `UntpLinkPublish` operationId) request, with any type of body and a specified content type.

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).

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UntpLinkPublishWithResponse​

func (c *ClientWithResponses) UntpLinkPublishWithResponse(ctx context.Context, params *UntpLinkPublishParams, body UntpLinkPublishJSONRequestBody, reqEditors ...RequestEditorFn) (*UntpLinkPublishResponse, error)

UntpLinkPublishWithResponse performs a POST /untp/links (the `UntpLinkPublish` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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).

func (*ClientWithResponses) UntpRegistryListWithResponse​

func (c *ClientWithResponses) UntpRegistryListWithResponse(ctx context.Context, params *UntpRegistryListParams, reqEditors ...RequestEditorFn) (*UntpRegistryListResponse, error)

UntpRegistryListWithResponse performs a GET /untp/registry (the `UntpRegistryList` operationId) request.

Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet's own DID is one of them. Each registrar says where it is listed (`source`): in the wallet's `UNTP.trustedRegistrars`, the deployment's `untp.dia.trustedRegistrars`, or the deployment's remote registry (`untp.dia.registryUrl`), in that order of precedence. With a remote registry, `registry` says which copy of it is in use; one that cannot be fetched is reported there, and the other registrars are still listed.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) VerifierCredentialVerifyWithBodyWithResponse​

func (c *ClientWithResponses) VerifierCredentialVerifyWithBodyWithResponse(ctx context.Context, params *VerifierCredentialVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifierCredentialVerifyResponse, error)

VerifierCredentialVerifyWithBodyWithResponse performs a POST /verifier/credential (the `VerifierCredentialVerify` operationId) request, with any type of body and a specified content type.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) VerifierCredentialVerifyWithResponse​

func (c *ClientWithResponses) VerifierCredentialVerifyWithResponse(ctx context.Context, params *VerifierCredentialVerifyParams, body VerifierCredentialVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifierCredentialVerifyResponse, error)

VerifierCredentialVerifyWithResponse performs a POST /verifier/credential (the `VerifierCredentialVerify` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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.

func (*ClientWithResponses) VerifierDidVerifyWithResponse​

func (c *ClientWithResponses) VerifierDidVerifyWithResponse(ctx context.Context, params *VerifierDidVerifyParams, reqEditors ...RequestEditorFn) (*VerifierDidVerifyResponse, error)

VerifierDidVerifyWithResponse performs a GET /verifier/did (the `VerifierDidVerify` operationId) request.

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`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) VerifierInitUrlCreateWithBodyWithResponse​

func (c *ClientWithResponses) VerifierInitUrlCreateWithBodyWithResponse(ctx context.Context, params *VerifierInitUrlCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifierInitUrlCreateResponse, error)

VerifierInitUrlCreateWithBodyWithResponse performs a POST /verifier/init (the `VerifierInitUrlCreate` operationId) request, with any type of body and a specified content type.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) VerifierInitUrlCreateWithResponse​

func (c *ClientWithResponses) VerifierInitUrlCreateWithResponse(ctx context.Context, params *VerifierInitUrlCreateParams, body VerifierInitUrlCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifierInitUrlCreateResponse, error)

VerifierInitUrlCreateWithResponse performs a POST /verifier/init (the `VerifierInitUrlCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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.

func (*ClientWithResponses) VerifierPdfVerifyWithBodyWithResponse​

func (c *ClientWithResponses) VerifierPdfVerifyWithBodyWithResponse(ctx context.Context, params *VerifierPdfVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifierPdfVerifyResponse, error)

VerifierPdfVerifyWithBodyWithResponse performs a POST /verifier/pdf (the `VerifierPdfVerify` operationId) request, with any type of body and a specified content type.

Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document Maximum size of the PDF document is 50 MB.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) VerifierRenderWithBodyWithResponse​

func (c *ClientWithResponses) VerifierRenderWithBodyWithResponse(ctx context.Context, params *VerifierRenderParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifierRenderResponse, error)

VerifierRenderWithBodyWithResponse performs a POST /verifier/render (the `VerifierRender` operationId) request, with any type of body and a specified content type.

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`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) VerifierRenderWithResponse​

func (c *ClientWithResponses) VerifierRenderWithResponse(ctx context.Context, params *VerifierRenderParams, body VerifierRenderJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifierRenderResponse, error)

VerifierRenderWithResponse performs a POST /verifier/render (the `VerifierRender` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

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`.

func (*ClientWithResponses) VerifierUntpResolveWithResponse​

func (c *ClientWithResponses) VerifierUntpResolveWithResponse(ctx context.Context, params *VerifierUntpResolveParams, reqEditors ...RequestEditorFn) (*VerifierUntpResolveResponse, error)

VerifierUntpResolveWithResponse performs a GET /verifier/untp/resolve (the `VerifierUntpResolve` operationId) request.

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.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletCreateWithBodyWithResponse​

func (c *ClientWithResponses) WalletCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletCreateResponse, error)

WalletCreateWithBodyWithResponse performs a POST /wallets (the `WalletCreate` operationId) request, with any type of body and a specified content type.

Creates a new wallet for the authenticated client.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletCreateWithResponse​

func (c *ClientWithResponses) WalletCreateWithResponse(ctx context.Context, body WalletCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletCreateResponse, error)

WalletCreateWithResponse performs a POST /wallets (the `WalletCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Creates a new wallet for the authenticated client.

func (*ClientWithResponses) WalletDeleteWithResponse​

func (c *ClientWithResponses) WalletDeleteWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletDeleteResponse, error)

WalletDeleteWithResponse performs a DELETE /wallets/{wallet_id} (the `WalletDelete` operationId) request.

Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletGetWithResponse​

func (c *ClientWithResponses) WalletGetWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletGetResponse, error)

WalletGetWithResponse performs a GET /wallets/{wallet_id} (the `WalletGet` operationId) request.

Provides wallet details.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletIdentifierGetWithResponse​

func (c *ClientWithResponses) WalletIdentifierGetWithResponse(ctx context.Context, params *WalletIdentifierGetParams, reqEditors ...RequestEditorFn) (*WalletIdentifierGetResponse, error)

WalletIdentifierGetWithResponse performs a GET /identifier (the `WalletIdentifierGet` operationId) request.

Returns the wallet's public identifier — e.g. a DID (Decentralized Identifier) or a wallet URL. Used by other parties to reference this wallet in trust framework interactions and credential exchanges.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletKeysWithResponse​

func (c *ClientWithResponses) WalletKeysWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletKeysResponse, error)

WalletKeysWithResponse performs a GET /wallets/{wallet_id}/keys (the `WalletKeys` operationId) request.

Provides wallet keys used for signing.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletListWithResponse​

func (c *ClientWithResponses) WalletListWithResponse(ctx context.Context, params *WalletListParams, reqEditors ...RequestEditorFn) (*WalletListResponse, error)

WalletListWithResponse performs a GET /wallets (the `WalletList` operationId) request.

Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletNotificationGetByStateWithResponse​

func (c *ClientWithResponses) WalletNotificationGetByStateWithResponse(ctx context.Context, walletId string, eventType string, state string, reqEditors ...RequestEditorFn) (*WalletNotificationGetByStateResponse, error)

WalletNotificationGetByStateWithResponse performs a GET /wallets/{wallet_id}/notification_history/{event_type}/{state} (the `WalletNotificationGetByState` operationId) request.

Gets a specific notification by state.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletNotificationHistoryWithResponse​

func (c *ClientWithResponses) WalletNotificationHistoryWithResponse(ctx context.Context, walletId string, params *WalletNotificationHistoryParams, reqEditors ...RequestEditorFn) (*WalletNotificationHistoryResponse, error)

WalletNotificationHistoryWithResponse performs a GET /wallets/{wallet_id}/notification_history (the `WalletNotificationHistory` operationId) request.

Provides wallet notifications that can be used to audit the wallet activity.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletNotificationsWithResponse​

func (c *ClientWithResponses) WalletNotificationsWithResponse(ctx context.Context, walletId string, params *WalletNotificationsParams, reqEditors ...RequestEditorFn) (*WalletNotificationsResponse, error)

WalletNotificationsWithResponse performs a GET /wallets/{wallet_id}/notifications (the `WalletNotifications` operationId) request.

Provides SSE stream of notifications for a specific wallet. Supports replay of queued notifications via `Last-Event-Id` header parameter.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletPatchWithBodyWithResponse​

func (c *ClientWithResponses) WalletPatchWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletPatchResponse, error)

WalletPatchWithBodyWithResponse performs a PATCH /wallets/{wallet_id} (the `WalletPatch` operationId) request, with any type of body and a specified content type.

Update wallet metadata and configuration.

The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. `config.UNTP` replaces the wallet's UNTP config, but for the read-only `isOnboarded` and `role`, which keep their stored values; an invalid one is `400`. A Tenant Owner of the wallet's tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletPatchWithResponse​

func (c *ClientWithResponses) WalletPatchWithResponse(ctx context.Context, walletId string, body WalletPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletPatchResponse, error)

WalletPatchWithResponse performs a PATCH /wallets/{wallet_id} (the `WalletPatch` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Update wallet metadata and configuration.

The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them. `config.UNTP` replaces the wallet's UNTP config, but for the read-only `isOnboarded` and `role`, which keep their stored values; an invalid one is `400`. A Tenant Owner of the wallet's tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.

func (*ClientWithResponses) WalletProviderCertificateImportWithBodyWithResponse​

func (c *ClientWithResponses) WalletProviderCertificateImportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletProviderCertificateImportResponse, error)

WalletProviderCertificateImportWithBodyWithResponse performs a POST /admin/wallet-provider/certificate (the `WalletProviderCertificateImport` operationId) request, with any type of body and a specified content type.

Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletProviderCertificateImportWithResponse​

func (c *ClientWithResponses) WalletProviderCertificateImportWithResponse(ctx context.Context, body WalletProviderCertificateImportJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletProviderCertificateImportResponse, error)

WalletProviderCertificateImportWithResponse performs a POST /admin/wallet-provider/certificate (the `WalletProviderCertificateImport` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Installs the externally-issued certificate chain for the Wallet Provider key. Requires the `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.

func (*ClientWithResponses) WalletProviderCsrGenerateWithResponse​

func (c *ClientWithResponses) WalletProviderCsrGenerateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WalletProviderCsrGenerateResponse, error)

WalletProviderCsrGenerateWithResponse performs a POST /admin/wallet-provider/csr (the `WalletProviderCsrGenerate` operationId) request.

Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated on first call if it does not exist yet.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletVerifiedCredentialsByStateWithResponse​

func (c *ClientWithResponses) WalletVerifiedCredentialsByStateWithResponse(ctx context.Context, walletId string, state string, params *WalletVerifiedCredentialsByStateParams, reqEditors ...RequestEditorFn) (*WalletVerifiedCredentialsByStateResponse, error)

WalletVerifiedCredentialsByStateWithResponse performs a GET /wallets/{wallet_id}/verified_credentials/{state} (the `WalletVerifiedCredentialsByState` operationId) request.

Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletVerifiedCredentialsDeleteByStateWithResponse​

func (c *ClientWithResponses) WalletVerifiedCredentialsDeleteByStateWithResponse(ctx context.Context, walletId string, state string, reqEditors ...RequestEditorFn) (*WalletVerifiedCredentialsDeleteByStateResponse, error)

WalletVerifiedCredentialsDeleteByStateWithResponse performs a DELETE /wallets/{wallet_id}/verified_credentials/{state} (the `WalletVerifiedCredentialsDeleteByState` operationId) request.

Deletes a specific verified credentials by state.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletX509CSRCreateWithBodyWithResponse​

func (c *ClientWithResponses) WalletX509CSRCreateWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletX509CSRCreateResponse, error)

WalletX509CSRCreateWithBodyWithResponse performs a POST /wallets/{wallet_id}/csr (the `WalletX509CSRCreate` operationId) request, with any type of body and a specified content type.

Creates an X509 Certificate Signing Request (CSR) for the wallet's signing key.

The resulting certificate is imported back via `WalletX509CertificateImport` to enable issuing credentials signed by X509 certificate chain it or XAdES/PDF signing.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletX509CSRCreateWithResponse​

func (c *ClientWithResponses) WalletX509CSRCreateWithResponse(ctx context.Context, walletId string, body WalletX509CSRCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletX509CSRCreateResponse, error)

WalletX509CSRCreateWithResponse performs a POST /wallets/{wallet_id}/csr (the `WalletX509CSRCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Creates an X509 Certificate Signing Request (CSR) for the wallet's signing key.

The resulting certificate is imported back via `WalletX509CertificateImport` to enable issuing credentials signed by X509 certificate chain it or XAdES/PDF signing.

func (*ClientWithResponses) WalletX509CertificateGetWithResponse​

func (c *ClientWithResponses) WalletX509CertificateGetWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletX509CertificateGetResponse, error)

WalletX509CertificateGetWithResponse performs a GET /wallets/{wallet_id}/certificate (the `WalletX509CertificateGet` operationId) request.

Returns the wallet's currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletX509CertificateImportWithBodyWithResponse​

func (c *ClientWithResponses) WalletX509CertificateImportWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletX509CertificateImportResponse, error)

WalletX509CertificateImportWithBodyWithResponse performs a POST /wallets/{wallet_id}/certificate (the `WalletX509CertificateImport` operationId) request, with any type of body and a specified content type.

Imports an X509 certificate to be used when signing credentials.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WalletX509CertificateImportWithResponse​

func (c *ClientWithResponses) WalletX509CertificateImportWithResponse(ctx context.Context, walletId string, body WalletX509CertificateImportJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletX509CertificateImportResponse, error)

WalletX509CertificateImportWithResponse performs a POST /wallets/{wallet_id}/certificate (the `WalletX509CertificateImport` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Imports an X509 certificate to be used when signing credentials.

func (*ClientWithResponses) WmpAcceptInvitationWithBodyWithResponse​

func (c *ClientWithResponses) WmpAcceptInvitationWithBodyWithResponse(ctx context.Context, params *WmpAcceptInvitationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpAcceptInvitationResponse, error)

WmpAcceptInvitationWithBodyWithResponse performs a POST /wmp/invitation/accept (the `WmpAcceptInvitation` operationId) request, with any type of body and a specified content type.

Accepts a WMP invitation URL from another wallet (issuer or verifier) to establish a peer-to-peer WMP connection. After acceptance, the connected entity appears in the WMP entity list and can send credential offers or verification requests directly to this wallet.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpAcceptInvitationWithResponse​

func (c *ClientWithResponses) WmpAcceptInvitationWithResponse(ctx context.Context, params *WmpAcceptInvitationParams, body WmpAcceptInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpAcceptInvitationResponse, error)

WmpAcceptInvitationWithResponse performs a POST /wmp/invitation/accept (the `WmpAcceptInvitation` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Accepts a WMP invitation URL from another wallet (issuer or verifier) to establish a peer-to-peer WMP connection. After acceptance, the connected entity appears in the WMP entity list and can send credential offers or verification requests directly to this wallet.

func (*ClientWithResponses) WmpClientGetPendingRequestsWithResponse​

func (c *ClientWithResponses) WmpClientGetPendingRequestsWithResponse(ctx context.Context, params *WmpClientGetPendingRequestsParams, reqEditors ...RequestEditorFn) (*WmpClientGetPendingRequestsResponse, error)

WmpClientGetPendingRequestsWithResponse performs a GET /wmp/client/requests (the `WmpClientGetPendingRequests` operationId) request.

Not implemented: always answers 501. Received requests arrive as wallet notifications; read one with `GET /wmp/client/requests/{request_id}`.

Returns a wrapper object for the known response body format(s).

Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (*ClientWithResponses) WmpClientGetRequestWithResponse​

func (c *ClientWithResponses) WmpClientGetRequestWithResponse(ctx context.Context, requestId string, params *WmpClientGetRequestParams, reqEditors ...RequestEditorFn) (*WmpClientGetRequestResponse, error)

WmpClientGetRequestWithResponse performs a GET /wmp/client/requests/{request_id} (the `WmpClientGetRequest` operationId) request.

Returns metadata for the received message identified by `request_id` (delivered via a `wmp.message` notification carrying its id): its content type and body download link. The body is fetched as raw bytes from the download link included in the response (`bodyUrl`).

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpClientProcessRequestWithBodyWithResponse​

func (c *ClientWithResponses) WmpClientProcessRequestWithBodyWithResponse(ctx context.Context, requestId string, params *WmpClientProcessRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpClientProcessRequestResponse, error)

WmpClientProcessRequestWithBodyWithResponse performs a POST /wmp/client/requests/{request_id} (the `WmpClientProcessRequest` operationId) request, with any type of body and a specified content type.

Acts on a pending WMP client request identified by `request_id`. The body's `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender), or `accept`/`reject` to accept or refuse the content of a received message (on a session that negotiated the `evidence` capability, sends `acceptance_confirmed`/`acceptance_rejected` evidence to the original sender, WMP evidence §3.5).

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpClientProcessRequestWithResponse​

func (c *ClientWithResponses) WmpClientProcessRequestWithResponse(ctx context.Context, requestId string, params *WmpClientProcessRequestParams, body WmpClientProcessRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpClientProcessRequestResponse, error)

WmpClientProcessRequestWithResponse performs a POST /wmp/client/requests/{request_id} (the `WmpClientProcessRequest` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Acts on a pending WMP client request identified by `request_id`. The body's `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender), or `accept`/`reject` to accept or refuse the content of a received message (on a session that negotiated the `evidence` capability, sends `acceptance_confirmed`/`acceptance_rejected` evidence to the original sender, WMP evidence §3.5).

func (*ClientWithResponses) WmpCreateNewInvitationWithResponse​

func (c *ClientWithResponses) WmpCreateNewInvitationWithResponse(ctx context.Context, params *WmpCreateNewInvitationParams, reqEditors ...RequestEditorFn) (*WmpCreateNewInvitationResponse, error)

WmpCreateNewInvitationWithResponse performs a POST /wmp/invitation (the `WmpCreateNewInvitation` operationId) request.

Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with another wallet to establish a secure peer-to-peer communication channel. Issuers and verifiers use this to connect with holder wallets for direct credential delivery and verification without requiring QR codes or redirects on each interaction.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEntityConnectionGetWithResponse​

func (c *ClientWithResponses) WmpEntityConnectionGetWithResponse(ctx context.Context, entityId string, params *WmpEntityConnectionGetParams, reqEditors ...RequestEditorFn) (*WmpEntityConnectionGetResponse, error)

WmpEntityConnectionGetWithResponse performs a GET /wmp/entities/{entity_id}/connection (the `WmpEntityConnectionGet` operationId) request.

Get entity connection status.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEntityDeleteWithResponse​

func (c *ClientWithResponses) WmpEntityDeleteWithResponse(ctx context.Context, entityId string, params *WmpEntityDeleteParams, reqEditors ...RequestEditorFn) (*WmpEntityDeleteResponse, error)

WmpEntityDeleteWithResponse performs a DELETE /wmp/entities/{entity_id} (the `WmpEntityDelete` operationId) request.

Delete entity based on the entity ID.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEntityGetMessageHistoryWithResponse​

func (c *ClientWithResponses) WmpEntityGetMessageHistoryWithResponse(ctx context.Context, entityId string, messageId string, params *WmpEntityGetMessageHistoryParams, reqEditors ...RequestEditorFn) (*WmpEntityGetMessageHistoryResponse, error)

WmpEntityGetMessageHistoryWithResponse performs a GET /wmp/entities/{entity_id}/messages/{message_id} (the `WmpEntityGetMessageHistory` operationId) request.

Returns this wallet's own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEntityGetWithResponse​

func (c *ClientWithResponses) WmpEntityGetWithResponse(ctx context.Context, entityId string, params *WmpEntityGetParams, reqEditors ...RequestEditorFn) (*WmpEntityGetResponse, error)

WmpEntityGetWithResponse performs a GET /wmp/entities/{entity_id} (the `WmpEntityGet` operationId) request.

Get entity based on the entity ID.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEntityListMessageHistoryWithResponse​

func (c *ClientWithResponses) WmpEntityListMessageHistoryWithResponse(ctx context.Context, entityId string, params *WmpEntityListMessageHistoryParams, reqEditors ...RequestEditorFn) (*WmpEntityListMessageHistoryResponse, error)

WmpEntityListMessageHistoryWithResponse performs a GET /wmp/entities/{entity_id}/messages/history (the `WmpEntityListMessageHistory` operationId) request.

Lists this wallet's own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEntityListWithResponse​

func (c *ClientWithResponses) WmpEntityListWithResponse(ctx context.Context, params *WmpEntityListParams, reqEditors ...RequestEditorFn) (*WmpEntityListResponse, error)

WmpEntityListWithResponse performs a GET /wmp/entities (the `WmpEntityList` operationId) request.

Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), `entityType=client` for entities that accepted it (holders), `entityType=relay` for the wallet's QTSP relay account, or `entityType=correspondent` for Subscribers reached through the relay.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEntityMessageDecisionWithBodyWithResponse​

func (c *ClientWithResponses) WmpEntityMessageDecisionWithBodyWithResponse(ctx context.Context, entityId string, messageId string, params *WmpEntityMessageDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpEntityMessageDecisionResponse, error)

WmpEntityMessageDecisionWithBodyWithResponse performs a POST /wmp/entities/{entity_id}/messages/{message_id}/decision (the `WmpEntityMessageDecision` operationId) request, with any type of body and a specified content type.

Accepts or rejects a received `consented` / `consented_signed` message from a relay correspondent (CS-15 §14). The wallet answers with a `processed` or `rejected` acknowledgement, signed with the Subscriber key under `consented_signed`; the QTSP turns it into acceptance or rejection evidence.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEntityMessageDecisionWithResponse​

func (c *ClientWithResponses) WmpEntityMessageDecisionWithResponse(ctx context.Context, entityId string, messageId string, params *WmpEntityMessageDecisionParams, body WmpEntityMessageDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpEntityMessageDecisionResponse, error)

WmpEntityMessageDecisionWithResponse performs a POST /wmp/entities/{entity_id}/messages/{message_id}/decision (the `WmpEntityMessageDecision` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Accepts or rejects a received `consented` / `consented_signed` message from a relay correspondent (CS-15 §14). The wallet answers with a `processed` or `rejected` acknowledgement, signed with the Subscriber key under `consented_signed`; the QTSP turns it into acceptance or rejection evidence.

func (*ClientWithResponses) WmpEntitySendMessageWithBodyWithResponse​

func (c *ClientWithResponses) WmpEntitySendMessageWithBodyWithResponse(ctx context.Context, entityId string, params *WmpEntitySendMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpEntitySendMessageResponse, error)

WmpEntitySendMessageWithBodyWithResponse performs a POST /wmp/entities/{entity_id}/messages (the `WmpEntitySendMessage` operationId) request, with any type of body and a specified content type.

Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet's own view of the message's delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification.

The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEntityServerConnectWithResponse​

func (c *ClientWithResponses) WmpEntityServerConnectWithResponse(ctx context.Context, entityId string, params *WmpEntityServerConnectParams, reqEditors ...RequestEditorFn) (*WmpEntityServerConnectResponse, error)

WmpEntityServerConnectWithResponse performs a POST /wmp/entities/{entity_id}/connection (the `WmpEntityServerConnect` operationId) request.

Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEvidenceGetWithResponse​

func (c *ClientWithResponses) WmpEvidenceGetWithResponse(ctx context.Context, evidenceId string, params *WmpEvidenceGetParams, reqEditors ...RequestEditorFn) (*WmpEvidenceGetResponse, error)

WmpEvidenceGetWithResponse performs a GET /wmp/evidence/{evidence_id} (the `WmpEvidenceGet` operationId) request.

Returns one record of this wallet's evidence repository (WMP evidence §6.1).

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEvidenceListWithResponse​

func (c *ClientWithResponses) WmpEvidenceListWithResponse(ctx context.Context, params *WmpEvidenceListParams, reqEditors ...RequestEditorFn) (*WmpEvidenceListResponse, error)

WmpEvidenceListWithResponse performs a GET /wmp/evidence (the `WmpEvidenceList` operationId) request.

Searches this wallet's evidence repository (WMP evidence §6.1): the evidence it issued and the evidence its peers sent it. Either `message_id` or `session_id` is required. Records are ordered by event time; a search by session is paginated with `limit` and `continuation_token`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEvidenceVerifyWithBodyWithResponse​

func (c *ClientWithResponses) WmpEvidenceVerifyWithBodyWithResponse(ctx context.Context, params *WmpEvidenceVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpEvidenceVerifyResponse, error)

WmpEvidenceVerifyWithBodyWithResponse performs a POST /wmp/evidence/verify (the `WmpEvidenceVerify` operationId) request, with any type of body and a specified content type.

Verifies the params of a `wmp.evidence.notify` (WMP evidence §4.1), independently of any session: the signature and its `x5c` chain, the timestamp token and, when the evidence is about a message this wallet sent, the content hash. Nothing is stored.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpEvidenceVerifyWithResponse​

func (c *ClientWithResponses) WmpEvidenceVerifyWithResponse(ctx context.Context, params *WmpEvidenceVerifyParams, body WmpEvidenceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpEvidenceVerifyResponse, error)

WmpEvidenceVerifyWithResponse performs a POST /wmp/evidence/verify (the `WmpEvidenceVerify` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Verifies the params of a `wmp.evidence.notify` (WMP evidence §4.1), independently of any session: the signature and its `x5c` chain, the timestamp token and, when the evidence is about a message this wallet sent, the content hash. Nothing is stored.

func (*ClientWithResponses) WmpRelayCorrespondentConnectWithBodyWithResponse​

func (c *ClientWithResponses) WmpRelayCorrespondentConnectWithBodyWithResponse(ctx context.Context, params *WmpRelayCorrespondentConnectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayCorrespondentConnectResponse, error)

WmpRelayCorrespondentConnectWithBodyWithResponse performs a POST /wmp/relay/correspondents (the `WmpRelayCorrespondentConnect` operationId) request, with any type of body and a specified content type.

Connects to another Subscriber through the QTSP (CS-15 §7.3, §10.4): resolves the participant and one of its KeyPackages, validates its credential and sets up the dedicated relay session and MLS group. Messages are then sent with `POST /wmp/entities/{entity_id}/messages`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpRelayCorrespondentConnectWithResponse​

func (c *ClientWithResponses) WmpRelayCorrespondentConnectWithResponse(ctx context.Context, params *WmpRelayCorrespondentConnectParams, body WmpRelayCorrespondentConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayCorrespondentConnectResponse, error)

WmpRelayCorrespondentConnectWithResponse performs a POST /wmp/relay/correspondents (the `WmpRelayCorrespondentConnect` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Connects to another Subscriber through the QTSP (CS-15 §7.3, §10.4): resolves the participant and one of its KeyPackages, validates its credential and sets up the dedicated relay session and MLS group. Messages are then sent with `POST /wmp/entities/{entity_id}/messages`.

func (*ClientWithResponses) WmpRelayDeleteWithResponse​

func (c *ClientWithResponses) WmpRelayDeleteWithResponse(ctx context.Context, params *WmpRelayDeleteParams, reqEditors ...RequestEditorFn) (*WmpRelayDeleteResponse, error)

WmpRelayDeleteWithResponse performs a DELETE /wmp/relay (the `WmpRelayDelete` operationId) request.

Closes the relay sessions and forgets the relay account and its correspondents. The QTSP keeps the Subscriber registration and the evidence it holds.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpRelayGetWithResponse​

func (c *ClientWithResponses) WmpRelayGetWithResponse(ctx context.Context, params *WmpRelayGetParams, reqEditors ...RequestEditorFn) (*WmpRelayGetResponse, error)

WmpRelayGetWithResponse performs a GET /wmp/relay (the `WmpRelayGet` operationId) request.

Returns the wallet's account at its QTSP relay (CS-15 EBW role).

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpRelayOnboardingCompleteWithBodyWithResponse​

func (c *ClientWithResponses) WmpRelayOnboardingCompleteWithBodyWithResponse(ctx context.Context, onboardingId string, params *WmpRelayOnboardingCompleteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayOnboardingCompleteResponse, error)

WmpRelayOnboardingCompleteWithBodyWithResponse performs a POST /wmp/relay/onboarding/{onboarding_id}/complete (the `WmpRelayOnboardingComplete` operationId) request, with any type of body and a specified content type.

Completes onboarding with the onboarding result the QTSP answered the presentation with (CS-15 §8.5): the `response` of `HolderCredentialsPresentAfterConsent`, as is. Checks that the certificate names the Subscriber and chains to the Subscriber CAs, stores it, connects the inbox session and publishes KeyPackages.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpRelayOnboardingCompleteWithResponse​

func (c *ClientWithResponses) WmpRelayOnboardingCompleteWithResponse(ctx context.Context, onboardingId string, params *WmpRelayOnboardingCompleteParams, body WmpRelayOnboardingCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayOnboardingCompleteResponse, error)

WmpRelayOnboardingCompleteWithResponse performs a POST /wmp/relay/onboarding/{onboarding_id}/complete (the `WmpRelayOnboardingComplete` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Completes onboarding with the onboarding result the QTSP answered the presentation with (CS-15 §8.5): the `response` of `HolderCredentialsPresentAfterConsent`, as is. Checks that the certificate names the Subscriber and chains to the Subscriber CAs, stores it, connects the inbox session and publishes KeyPackages.

func (*ClientWithResponses) WmpRelayOnboardingStartWithBodyWithResponse​

func (c *ClientWithResponses) WmpRelayOnboardingStartWithBodyWithResponse(ctx context.Context, params *WmpRelayOnboardingStartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayOnboardingStartResponse, error)

WmpRelayOnboardingStartWithBodyWithResponse performs a POST /wmp/relay/onboarding (the `WmpRelayOnboardingStart` operationId) request, with any type of body and a specified content type.

Starts Subscriber onboarding at a QTSP relay (CS-15 §8): checks the QTSP's discovery document and qualified status, generates the Subscriber key and CSR and sends them to the QTSP. The returned OpenID4VP authorization request is presented with the holder endpoints (`HolderPresentPassAuthInfo`, `HolderCredentialsPresentAfterConsent`); the QTSP answers the presentation with the onboarding result, returned as `response`, which is then passed to `WmpRelayOnboardingComplete`.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpRelayOnboardingStartWithResponse​

func (c *ClientWithResponses) WmpRelayOnboardingStartWithResponse(ctx context.Context, params *WmpRelayOnboardingStartParams, body WmpRelayOnboardingStartJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayOnboardingStartResponse, error)

WmpRelayOnboardingStartWithResponse performs a POST /wmp/relay/onboarding (the `WmpRelayOnboardingStart` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Starts Subscriber onboarding at a QTSP relay (CS-15 §8): checks the QTSP's discovery document and qualified status, generates the Subscriber key and CSR and sends them to the QTSP. The returned OpenID4VP authorization request is presented with the holder endpoints (`HolderPresentPassAuthInfo`, `HolderCredentialsPresentAfterConsent`); the QTSP answers the presentation with the onboarding result, returned as `response`, which is then passed to `WmpRelayOnboardingComplete`.

func (*ClientWithResponses) WmpRelayRegistrationCompleteWithBodyWithResponse​

func (c *ClientWithResponses) WmpRelayRegistrationCompleteWithBodyWithResponse(ctx context.Context, params *WmpRelayRegistrationCompleteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayRegistrationCompleteResponse, error)

WmpRelayRegistrationCompleteWithBodyWithResponse performs a POST /wmp/relay/registration/certificate (the `WmpRelayRegistrationComplete` operationId) request, with any type of body and a specified content type.

Completes a manual registration with the certificate the QTSP issued for the CSR: stores it, connects the inbox session and publishes KeyPackages. The certificate must name the Subscriber, certify the CSR's key and chain to the Subscriber CAs (`wmpRelay.subscriberTrustAnchors`, or the uploaded chain's own CAs).

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpRelayRegistrationCompleteWithResponse​

func (c *ClientWithResponses) WmpRelayRegistrationCompleteWithResponse(ctx context.Context, params *WmpRelayRegistrationCompleteParams, body WmpRelayRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayRegistrationCompleteResponse, error)

WmpRelayRegistrationCompleteWithResponse performs a POST /wmp/relay/registration/certificate (the `WmpRelayRegistrationComplete` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Completes a manual registration with the certificate the QTSP issued for the CSR: stores it, connects the inbox session and publishes KeyPackages. The certificate must name the Subscriber, certify the CSR's key and chain to the Subscriber CAs (`wmpRelay.subscriberTrustAnchors`, or the uploaded chain's own CAs).

func (*ClientWithResponses) WmpRelayRegistrationStartWithBodyWithResponse​

func (c *ClientWithResponses) WmpRelayRegistrationStartWithBodyWithResponse(ctx context.Context, params *WmpRelayRegistrationStartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayRegistrationStartResponse, error)

WmpRelayRegistrationStartWithBodyWithResponse performs a POST /wmp/relay/registration (the `WmpRelayRegistrationStart` operationId) request, with any type of body and a specified content type.

Starts a manual Subscriber registration, for a QTSP without the onboarding API (CS-15 §8.1): checks the QTSP's discovery document and qualified status and generates the Subscriber key. The returned CSR is given to the QTSP by other means; then upload the certificate it issued with `POST /wmp/relay/registration/certificate`. A pending onboarding or registration is replaced.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) WmpRelayRegistrationStartWithResponse​

func (c *ClientWithResponses) WmpRelayRegistrationStartWithResponse(ctx context.Context, params *WmpRelayRegistrationStartParams, body WmpRelayRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayRegistrationStartResponse, error)

WmpRelayRegistrationStartWithResponse performs a POST /wmp/relay/registration (the `WmpRelayRegistrationStart` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Starts a manual Subscriber registration, for a QTSP without the onboarding API (CS-15 §8.1): checks the QTSP's discovery document and qualified status and generates the Subscriber key. The returned CSR is given to the QTSP by other means; then upload the certificate it issued with `POST /wmp/relay/registration/certificate`. A pending onboarding or registration is replaced.

func (*ClientWithResponses) WmpRelayRotateWithResponse​

func (c *ClientWithResponses) WmpRelayRotateWithResponse(ctx context.Context, params *WmpRelayRotateParams, reqEditors ...RequestEditorFn) (*WmpRelayRotateResponse, error)

WmpRelayRotateWithResponse performs a POST /wmp/relay/rotate (the `WmpRelayRotate` operationId) request.

Rotates the Subscriber key and certificate over mutual TLS (CS-15 §8.6) and republishes KeyPackages. Existing correspondent groups move to the new certificate on their next message.

Returns a wrapper object for the known response body format(s).

type ClientWithResponsesInterface​

ClientWithResponsesInterface is the interface specification for the client with responses above.

type ClientWithResponsesInterface interface {

// TrustListDeleteWithResponse performs a DELETE /admin/trust-lists (the `TrustListDelete` operationId) request.
//
// Stops tracking the trusted list published at the given URL and removes its contents.
// Removing a List of Trusted Lists removes the lists reached through it as well. Requires
// the `admin` role and the `trustListProviderPostgres` provider.
//
// A wallet whose configuration still names this list will register it again the next time it
// verifies against it.
//
// Returns a wrapper object for the known response body format(s).
TrustListDeleteWithResponse(ctx context.Context, params *TrustListDeleteParams, reqEditors ...RequestEditorFn) (*TrustListDeleteResponse, error)

// TrustListsGetWithResponse performs a GET /admin/trust-lists (the `TrustListsGet` operationId) request.
//
// Lists the trusted lists the wallet tracks. Requires the `admin` role, and a wallet
// configured with the `trustListProviderPostgres` trust list provider: one that fetches its
// lists from their publisher as it needs them tracks nothing, and answers 501.
//
// A list reached through a List of Trusted Lists is not a source of its own and is not
// returned here. It is refreshed and removed along with the list that points at it.
//
// Returns a wrapper object for the known response body format(s).
TrustListsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TrustListsGetResponse, error)

// TrustListAddWithBodyWithResponse performs a POST /admin/trust-lists (the `TrustListAdd` operationId) request,
// with any type of body and a specified content type.
//
// Starts tracking the trusted list published at the given URL, storing its contents and
// pinning it to the certificate that signed it. Adding a list that is already tracked
// refreshes it. Requires the `admin` role and the `trustListProviderPostgres` provider.
//
// This fetches the list before it answers, and adding a List of Trusted Lists also walks
// every list it points at, so the call takes as long as those fetches do. A list that could
// not be reached through the walk is left out rather than failing the registration.
//
// Returns a wrapper object for the known response body format(s).
TrustListAddWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TrustListAddResponse, error)

// TrustListAddWithResponse performs a POST /admin/trust-lists (the `TrustListAdd` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Starts tracking the trusted list published at the given URL, storing its contents and
// pinning it to the certificate that signed it. Adding a list that is already tracked
// refreshes it. Requires the `admin` role and the `trustListProviderPostgres` provider.
//
// This fetches the list before it answers, and adding a List of Trusted Lists also walks
// every list it points at, so the call takes as long as those fetches do. A list that could
// not be reached through the walk is left out rather than failing the registration.
TrustListAddWithResponse(ctx context.Context, body TrustListAddJSONRequestBody, reqEditors ...RequestEditorFn) (*TrustListAddResponse, error)

// TrustListRefreshWithResponse performs a POST /admin/trust-lists/refresh (the `TrustListRefresh` operationId) request.
//
// Refetches the tracked trusted list published at the given URL and stores what it fetched,
// whether or not the publisher has issued a new version of it. This is what separates a
// forced refresh from the sweep the wallet makes on its own interval, which leaves an
// unchanged list alone. Requires the `admin` role and the `trustListProviderPostgres`
// provider.
//
// The refetch is pinned to the certificate already recorded for the list, so a list cannot
// be moved onto a new signer by refreshing it: one signed by a different certificate is
// rejected with 409 and the stored copy is kept.
//
// Returns a wrapper object for the known response body format(s).
TrustListRefreshWithResponse(ctx context.Context, params *TrustListRefreshParams, reqEditors ...RequestEditorFn) (*TrustListRefreshResponse, error)

// WalletProviderCertificateImportWithBodyWithResponse performs a POST /admin/wallet-provider/certificate (the `WalletProviderCertificateImport` operationId) request,
// with any type of body and a specified content type.
//
// Installs the externally-issued certificate chain for the Wallet Provider key. Requires the
// `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
//
// Returns a wrapper object for the known response body format(s).
WalletProviderCertificateImportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletProviderCertificateImportResponse, error)

// WalletProviderCertificateImportWithResponse performs a POST /admin/wallet-provider/certificate (the `WalletProviderCertificateImport` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Installs the externally-issued certificate chain for the Wallet Provider key. Requires the
// `admin` role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.
WalletProviderCertificateImportWithResponse(ctx context.Context, body WalletProviderCertificateImportJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletProviderCertificateImportResponse, error)

// WalletProviderCsrGenerateWithResponse performs a POST /admin/wallet-provider/csr (the `WalletProviderCsrGenerate` operationId) request.
//
// Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to
// sign Wallet Instance Attestations. Requires the `admin` role. The provider key is generated
// on first call if it does not exist yet.
//
// Returns a wrapper object for the known response body format(s).
WalletProviderCsrGenerateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WalletProviderCsrGenerateResponse, error)

// CredentialListWithResponse performs a GET /credentials (the `CredentialList` operationId) request.
//
// Retrieves a list of credentials.
//
// Returns a wrapper object for the known response body format(s).
CredentialListWithResponse(ctx context.Context, params *CredentialListParams, reqEditors ...RequestEditorFn) (*CredentialListResponse, error)

// CredentialCreateWithBodyWithResponse performs a POST /credentials (the `CredentialCreate` operationId) request,
// with any type of body and a specified content type.
//
// Creates a new draft credential.
//
// Returns a wrapper object for the known response body format(s).
CredentialCreateWithBodyWithResponse(ctx context.Context, params *CredentialCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)

// CredentialCreateWithResponse performs a POST /credentials (the `CredentialCreate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Creates a new draft credential.
CredentialCreateWithResponse(ctx context.Context, params *CredentialCreateParams, body CredentialCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)

// CredentialImportWithBodyWithResponse performs a POST /credentials/import (the `CredentialImport` operationId) request,
// with any type of body and a specified content type.
//
// Import pre-signed credential into wallet.
//
// Returns a wrapper object for the known response body format(s).
CredentialImportWithBodyWithResponse(ctx context.Context, params *CredentialImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)

// CredentialImportWithResponse performs a POST /credentials/import (the `CredentialImport` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Import pre-signed credential into wallet.
CredentialImportWithResponse(ctx context.Context, params *CredentialImportParams, body CredentialImportJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)

// CredentialRequestInitWithBodyWithResponse performs a POST /credentials/request/init (the `CredentialRequestInit` operationId) request,
// with any type of body and a specified content type.
//
// Requests a credential issuance from the issuer and retrieves requirements
// for holder authorization.
//
// Returns a wrapper object for the known response body format(s).
CredentialRequestInitWithBodyWithResponse(ctx context.Context, params *CredentialRequestInitParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialRequestInitResponse, error)

// CredentialRequestInitWithResponse performs a POST /credentials/request/init (the `CredentialRequestInit` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Requests a credential issuance from the issuer and retrieves requirements
// for holder authorization.
CredentialRequestInitWithResponse(ctx context.Context, params *CredentialRequestInitParams, body CredentialRequestInitJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialRequestInitResponse, error)

// CredentialGetWithResponse performs a GET /credentials/{credential_id} (the `CredentialGet` operationId) request.
//
// Retrieves a specific verifiable credential based on the provided identifier.
// Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
//
// Returns a wrapper object for the known response body format(s).
CredentialGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialGetParams, reqEditors ...RequestEditorFn) (*CredentialGetResponse, error)

// CredentialPatchWithBodyWithResponse performs a PATCH /credentials/{credential_id} (the `CredentialPatch` operationId) request,
// with any type of body and a specified content type.
//
// Endpoint used to update an existing Credential in draft state. Can be used for additional updates
// before the Credential is issued. After credential is issued it may not be changed in any way.
//
// Returns a wrapper object for the known response body format(s).
CredentialPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)

// CredentialPatchWithResponse performs a PATCH /credentials/{credential_id} (the `CredentialPatch` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Endpoint used to update an existing Credential in draft state. Can be used for additional updates
// before the Credential is issued. After credential is issued it may not be changed in any way.
CredentialPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)

// CredentialClaimMetadataGetWithResponse performs a GET /credentials/{credential_id}/claim_metadata (the `CredentialClaimMetadataGet` operationId) request.
//
// Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).
//
// Returns a wrapper object for the known response body format(s).
CredentialClaimMetadataGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialClaimMetadataGetParams, reqEditors ...RequestEditorFn) (*CredentialClaimMetadataGetResponse, error)

// CredentialIssueDirectWithBodyWithResponse performs a POST /credentials/{credential_id}/issue/direct (the `CredentialIssueDirect` operationId) request,
// with any type of body and a specified content type.
//
// 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`.
//
// Returns a wrapper object for the known response body format(s).
CredentialIssueDirectWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialIssueDirectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialIssueDirectResponse, error)

// CredentialIssueDirectWithResponse performs a POST /credentials/{credential_id}/issue/direct (the `CredentialIssueDirect` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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`.
CredentialIssueDirectWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialIssueDirectParams, body CredentialIssueDirectJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialIssueDirectResponse, error)

// CredentialIssuanceInitWithBodyWithResponse performs a POST /credentials/{credential_id}/issue/init (the `CredentialIssuanceInit` operationId) request,
// with any type of body and a specified content type.
//
// Prepares created Verifiable Credential draft for its issuance for a specific client.
//
// Returns a wrapper object for the known response body format(s).
CredentialIssuanceInitWithBodyWithResponse(ctx context.Context, credentialId string, params *CredentialIssuanceInitParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialIssuanceInitResponse, error)

// CredentialIssuanceInitWithResponse performs a POST /credentials/{credential_id}/issue/init (the `CredentialIssuanceInit` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Prepares created Verifiable Credential draft for its issuance for a specific client.
CredentialIssuanceInitWithResponse(ctx context.Context, credentialId string, params *CredentialIssuanceInitParams, body CredentialIssuanceInitJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialIssuanceInitResponse, error)

// CredentialMetadataPatchWithBodyWithResponse performs a PATCH /credentials/{credential_id}/metadata (the `CredentialMetadataPatch` operationId) request,
// with any type of body and a specified content type.
//
// Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key
// value storage for a client to store any additional data for the credential.
//
// Returns a wrapper object for the known response body format(s).
CredentialMetadataPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)

// CredentialMetadataPatchWithResponse performs a PATCH /credentials/{credential_id}/metadata (the `CredentialMetadataPatch` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key
// value storage for a client to store any additional data for the credential.
CredentialMetadataPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)

// CredentialPayloadGetWithResponse performs a GET /credentials/{credential_id}/payload (the `CredentialPayloadGet` operationId) request.
//
// Returns raw credential payload, with format depending on credential format.
//
// Returns a wrapper object for the known response body format(s).
CredentialPayloadGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPayloadGetParams, reqEditors ...RequestEditorFn) (*CredentialPayloadGetResponse, error)

// PdfCredentialTwinDeleteWithResponse performs a DELETE /credentials/{credential_id}/pdf (the `PdfCredentialTwinDelete` operationId) request.
//
// Deletes the PDF associated with the verifiable credential.
// Can be used only for credentials in Draft state.
//
// Returns a wrapper object for the known response body format(s).
PdfCredentialTwinDeleteWithResponse(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinDeleteParams, reqEditors ...RequestEditorFn) (*PdfCredentialTwinDeleteResponse, error)

// PdfCredentialTwinGetWithResponse performs a GET /credentials/{credential_id}/pdf (the `PdfCredentialTwinGet` operationId) request.
//
// Returns either an unsigned PDF that was uploaded to be signed and embedded into a verifiable credential in case
// of credential in Draft state, or a signed PDF embedded in an issued VC.
//
// Returns a wrapper object for the known response body format(s).
PdfCredentialTwinGetWithResponse(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinGetParams, reqEditors ...RequestEditorFn) (*PdfCredentialTwinGetResponse, error)

// PdfCredentialTwinUploadWithBodyWithResponse performs a POST /credentials/{credential_id}/pdf (the `PdfCredentialTwinUpload` operationId) request,
// with any type of body and a specified content type.
//
// Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued.
// Can be used only for credentials in Draft state.
// Maximum size of the PDF document is 20 MB.
//
// Returns a wrapper object for the known response body format(s).
PdfCredentialTwinUploadWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *PdfCredentialTwinUploadParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PdfCredentialTwinUploadResponse, error)

// PdfCredentialMakeVpWithResponse performs a POST /credentials/{credential_id}/pdf/vp (the `PdfCredentialMakeVp` operationId) request.
//
// Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment
// in incremental update.
//
// Returns a wrapper object for the known response body format(s).
PdfCredentialMakeVpWithResponse(ctx context.Context, credentialId CredentialId, params *PdfCredentialMakeVpParams, reqEditors ...RequestEditorFn) (*PdfCredentialMakeVpResponse, error)

// CredentialRawGetWithResponse performs a GET /credentials/{credential_id}/raw (the `CredentialRawGet` operationId) request.
//
// Returns raw signed credential, with format depending on credential format:
// - SD-JWT VC: application/dc+sd-jwt
// - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise
// - mdoc: CBOR encoded DeviceResponse (application/cbor)
//
// Returns a wrapper object for the known response body format(s).
CredentialRawGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialRawGetParams, reqEditors ...RequestEditorFn) (*CredentialRawGetResponse, error)

// CredentialRenderWithResponse performs a GET /credentials/{credential_id}/render (the `CredentialRender` operationId) request.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
CredentialRenderWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialRenderParams, reqEditors ...RequestEditorFn) (*CredentialRenderResponse, error)

// CredentialRenderMethodsWithResponse performs a GET /credentials/{credential_id}/render/methods (the `CredentialRenderMethods` operationId) request.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
CredentialRenderMethodsWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialRenderMethodsParams, reqEditors ...RequestEditorFn) (*CredentialRenderMethodsResponse, error)

// CredentialRevokeWithResponse performs a POST /credentials/{credential_id}/revoke (the `CredentialRevoke` operationId) request.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
CredentialRevokeWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialRevokeParams, reqEditors ...RequestEditorFn) (*CredentialRevokeResponse, error)

// CredentialUnsuspendWithResponse performs a DELETE /credentials/{credential_id}/suspend (the `CredentialUnsuspend` operationId) request.
//
// Lift the suspension of a Verifiable Credential.
//
// Returns a wrapper object for the known response body format(s).
CredentialUnsuspendWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialUnsuspendParams, reqEditors ...RequestEditorFn) (*CredentialUnsuspendResponse, error)

// CredentialSuspendWithResponse performs a POST /credentials/{credential_id}/suspend (the `CredentialSuspend` operationId) request.
//
// Suspend a Verifiable Credential issued with the `suspension` status purpose
// (W3C Bitstring Status List v1.0). A suspension can be lifted with `DELETE`.
//
// Returns a wrapper object for the known response body format(s).
CredentialSuspendWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialSuspendParams, reqEditors ...RequestEditorFn) (*CredentialSuspendResponse, error)

// DeferredStatusWithResponse performs a GET /deferred/{deferred_id} (the `DeferredStatus` operationId) request.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
DeferredStatusWithResponse(ctx context.Context, deferredId string, params *DeferredStatusParams, reqEditors ...RequestEditorFn) (*DeferredStatusResponse, error)

// DidDocumentLocalGetWithResponse performs a GET /did (the `DidDocumentLocalGet` operationId) request.
//
// Returns the wallet's own DID document, as published at `/{wallet_id}/did.json` for a self-hosted
// did:web.
//
// Returns a wrapper object for the known response body format(s).
DidDocumentLocalGetWithResponse(ctx context.Context, params *DidDocumentLocalGetParams, reqEditors ...RequestEditorFn) (*DidDocumentLocalGetResponse, error)

// DidDocumentPatchWithBodyWithResponse performs a PATCH /did (the `DidDocumentPatch` operationId) request,
// with any type of body and a specified content type.
//
// 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`.
//
// Returns a wrapper object for the known response body format(s).
DidDocumentPatchWithBodyWithResponse(ctx context.Context, params *DidDocumentPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DidDocumentPatchResponse, error)

// DidDocumentPatchWithResponse performs a PATCH /did (the `DidDocumentPatch` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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`.
DidDocumentPatchWithResponse(ctx context.Context, params *DidDocumentPatchParams, body DidDocumentPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*DidDocumentPatchResponse, error)

// HealthCheckWithResponse performs a GET /health (the `HealthCheck` operationId) request.
//
// Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.
//
// Returns a wrapper object for the known response body format(s).
HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

// HolderIdTokenSendWithBodyWithResponse performs a POST /holder/id-token/send (the `HolderIdTokenSend` operationId) request,
// with any type of body and a specified content type.
//
// Responds to an ID token request.
//
// Returns a wrapper object for the known response body format(s).
HolderIdTokenSendWithBodyWithResponse(ctx context.Context, params *HolderIdTokenSendParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderIdTokenSendResponse, error)

// HolderIdTokenSendWithResponse performs a POST /holder/id-token/send (the `HolderIdTokenSend` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Responds to an ID token request.
HolderIdTokenSendWithResponse(ctx context.Context, params *HolderIdTokenSendParams, body HolderIdTokenSendJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderIdTokenSendResponse, error)

// HolderOfferPassAuthInfoWithBodyWithResponse performs a POST /holder/offer/pass-auth-info (the `HolderOfferPassAuthInfo` operationId) request,
// with any type of body and a specified content type.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
HolderOfferPassAuthInfoWithBodyWithResponse(ctx context.Context, params *HolderOfferPassAuthInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderOfferPassAuthInfoResponse, error)

// HolderOfferPassAuthInfoWithResponse performs a POST /holder/offer/pass-auth-info (the `HolderOfferPassAuthInfo` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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.
HolderOfferPassAuthInfoWithResponse(ctx context.Context, params *HolderOfferPassAuthInfoParams, body HolderOfferPassAuthInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderOfferPassAuthInfoResponse, error)

// HolderOfferProcessAfterConsentWithBodyWithResponse performs a POST /holder/offer/{interaction_id}/process (the `HolderOfferProcessAfterConsent` operationId) request,
// with any type of body and a specified content type.
//
// Completes a credential offer flow after holder consent: submits data needed for the holder to authorize
// candidates to the issuer for holder authorization and retrieves the issued credential(s)
// into the wallet. The `interaction_id` is obtained from `HolderOfferPassAuthInfo`.
//
// Returns a wrapper object for the known response body format(s).
HolderOfferProcessAfterConsentWithBodyWithResponse(ctx context.Context, interactionId string, params *HolderOfferProcessAfterConsentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderOfferProcessAfterConsentResponse, error)

// HolderOfferProcessAfterConsentWithResponse performs a POST /holder/offer/{interaction_id}/process (the `HolderOfferProcessAfterConsent` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Completes a credential offer flow after holder consent: submits data needed for the holder to authorize
// candidates to the issuer for holder authorization and retrieves the issued credential(s)
// into the wallet. The `interaction_id` is obtained from `HolderOfferPassAuthInfo`.
HolderOfferProcessAfterConsentWithResponse(ctx context.Context, interactionId string, params *HolderOfferProcessAfterConsentParams, body HolderOfferProcessAfterConsentJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderOfferProcessAfterConsentResponse, error)

// HolderPresentPassAuthInfoWithBodyWithResponse performs a POST /holder/present/pass-auth-info (the `HolderPresentPassAuthInfo` operationId) request,
// with any type of body and a specified content type.
//
// Processes a verifier's presentation request URL and returns the presentation definition
// along with matching credential candidates from the wallet. The holder reviews which
// credentials will be disclosed before giving consent. The returned `interactionId` is
// used in the subsequent `HolderCredentialsPresentAfterConsent` call.
//
// Returns a wrapper object for the known response body format(s).
HolderPresentPassAuthInfoWithBodyWithResponse(ctx context.Context, params *HolderPresentPassAuthInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderPresentPassAuthInfoResponse, error)

// HolderPresentPassAuthInfoWithResponse performs a POST /holder/present/pass-auth-info (the `HolderPresentPassAuthInfo` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Processes a verifier's presentation request URL and returns the presentation definition
// along with matching credential candidates from the wallet. The holder reviews which
// credentials will be disclosed before giving consent. The returned `interactionId` is
// used in the subsequent `HolderCredentialsPresentAfterConsent` call.
HolderPresentPassAuthInfoWithResponse(ctx context.Context, params *HolderPresentPassAuthInfoParams, body HolderPresentPassAuthInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderPresentPassAuthInfoResponse, error)

// HolderCredentialsPresentAfterConsentWithBodyWithResponse performs a POST /holder/present/{interaction_id} (the `HolderCredentialsPresentAfterConsent` operationId) request,
// with any type of body and a specified content type.
//
// 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`.
//
// Returns a wrapper object for the known response body format(s).
HolderCredentialsPresentAfterConsentWithBodyWithResponse(ctx context.Context, interactionId string, params *HolderCredentialsPresentAfterConsentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderCredentialsPresentAfterConsentResponse, error)

// HolderCredentialsPresentAfterConsentWithResponse performs a POST /holder/present/{interaction_id} (the `HolderCredentialsPresentAfterConsent` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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`.
HolderCredentialsPresentAfterConsentWithResponse(ctx context.Context, interactionId string, params *HolderCredentialsPresentAfterConsentParams, body HolderCredentialsPresentAfterConsentJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderCredentialsPresentAfterConsentResponse, error)

// IdTokenRequestCreateWithResponse performs a POST /id-token/request (the `IdTokenRequestCreate` operationId) request.
//
// Creates an ID token request that will be sent to the holder for DID-based authentication.
// Used during the authorized credential issuance flow when the issuer requires the holder to
// prove control of their DID before the credential is issued. The returned request ID is passed
// to `CredentialIssuanceInit` as `idTokenRequestId`.
//
// Returns a wrapper object for the known response body format(s).
IdTokenRequestCreateWithResponse(ctx context.Context, params *IdTokenRequestCreateParams, reqEditors ...RequestEditorFn) (*IdTokenRequestCreateResponse, error)

// WalletIdentifierGetWithResponse performs a GET /identifier (the `WalletIdentifierGet` operationId) request.
//
// Returns the wallet's public identifier — e.g. a DID (Decentralized Identifier) or a wallet URL.
// Used by other parties to reference this wallet in trust framework interactions and credential exchanges.
//
// Returns a wrapper object for the known response body format(s).
WalletIdentifierGetWithResponse(ctx context.Context, params *WalletIdentifierGetParams, reqEditors ...RequestEditorFn) (*WalletIdentifierGetResponse, error)

// IssuerCredentialTypesListWithResponse performs a GET /issuer/credential/types (the `IssuerCredentialTypesList` operationId) request.
//
// Returns verifiable credential format and types that are supported by the issuer.
// - format: the verifiable credential format (for example "jwt_vc")
// - type: a list of strings that define supported verifiable credential type(s)
//
// Returns a wrapper object for the known response body format(s).
IssuerCredentialTypesListWithResponse(ctx context.Context, params *IssuerCredentialTypesListParams, reqEditors ...RequestEditorFn) (*IssuerCredentialTypesListResponse, error)

// IssuerDetachedJwsSignWithBodyWithResponse performs a POST /issuer/jws/detached (the `IssuerDetachedJwsSign` operationId) request,
// with any type of body and a specified content type.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
IssuerDetachedJwsSignWithBodyWithResponse(ctx context.Context, params *IssuerDetachedJwsSignParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuerDetachedJwsSignResponse, error)

// IssuerDetachedJwsSignWithResponse performs a POST /issuer/jws/detached (the `IssuerDetachedJwsSign` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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.
IssuerDetachedJwsSignWithResponse(ctx context.Context, params *IssuerDetachedJwsSignParams, body IssuerDetachedJwsSignJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuerDetachedJwsSignResponse, error)

// IssuerInitiateAuthOfferWithBodyWithResponse performs a POST /issuer/offer/auth (the `IssuerInitiateAuthOffer` operationId) request,
// with any type of body and a specified content type.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
IssuerInitiateAuthOfferWithBodyWithResponse(ctx context.Context, params *IssuerInitiateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuerInitiateAuthOfferResponse, error)

// IssuerInitiateAuthOfferWithResponse performs a POST /issuer/offer/auth (the `IssuerInitiateAuthOffer` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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.
IssuerInitiateAuthOfferWithResponse(ctx context.Context, params *IssuerInitiateAuthOfferParams, body IssuerInitiateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuerInitiateAuthOfferResponse, error)

// IssuerInitiatePreauthOfferWithBodyWithResponse performs a POST /issuer/offer/preauth (the `IssuerInitiatePreauthOffer` operationId) request,
// with any type of body and a specified content type.
//
// Generates a pre-authorized credential offer for the holder. Unlike the authorized flow,
// the holder does not need to authenticate with the issuer — instead a pre-authorized code
// (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and
// Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and
// can be shared as a QR code or deep link.
//
// Returns a wrapper object for the known response body format(s).
IssuerInitiatePreauthOfferWithBodyWithResponse(ctx context.Context, params *IssuerInitiatePreauthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuerInitiatePreauthOfferResponse, error)

// IssuerInitiatePreauthOfferWithResponse performs a POST /issuer/offer/preauth (the `IssuerInitiatePreauthOffer` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Generates a pre-authorized credential offer for the holder. Unlike the authorized flow,
// the holder does not need to authenticate with the issuer — instead a pre-authorized code
// (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and
// Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and
// can be shared as a QR code or deep link.
IssuerInitiatePreauthOfferWithResponse(ctx context.Context, params *IssuerInitiatePreauthOfferParams, body IssuerInitiatePreauthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuerInitiatePreauthOfferResponse, error)

// IssuerXadesSignWithBodyWithResponse performs a POST /issuer/xades (the `IssuerXadesSign` operationId) request,
// with any type of body and a specified content type.
//
// Signs an XML document with XAdES signature.
//
// Returns a wrapper object for the known response body format(s).
IssuerXadesSignWithBodyWithResponse(ctx context.Context, params *IssuerXadesSignParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuerXadesSignResponse, error)

// HolderCreateAuthOfferWithBodyWithResponse performs a POST /offer/create/intime (the `HolderCreateAuthOffer` operationId) request,
// with any type of body and a specified content type.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
HolderCreateAuthOfferWithBodyWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)

// HolderCreateAuthOfferWithResponse performs a POST /offer/create/intime (the `HolderCreateAuthOffer` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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.
HolderCreateAuthOfferWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)

// TenantEnrollmentInitWithBodyWithResponse performs a POST /tenant/{tenant_id}/enrollment/init (the `TenantEnrollmentInit` operationId) request,
// with any type of body and a specified content type.
//
// Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to
// POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a
// Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored.
// The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
//
// Returns a wrapper object for the known response body format(s).
TenantEnrollmentInitWithBodyWithResponse(ctx context.Context, tenantId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TenantEnrollmentInitResponse, error)

// TenantEnrollmentInitWithResponse performs a POST /tenant/{tenant_id}/enrollment/init (the `TenantEnrollmentInit` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to
// POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a
// Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored.
// The state is returned only here: the wallet keeps only its hash, which is the enrollment id.
TenantEnrollmentInitWithResponse(ctx context.Context, tenantId string, body TenantEnrollmentInitJSONRequestBody, reqEditors ...RequestEditorFn) (*TenantEnrollmentInitResponse, error)

// TenantEnrollmentEnrollWithResponse performs a POST /tenant/{tenant_id}/enrollment/{state} (the `TenantEnrollmentEnroll` operationId) request.
//
// Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A
// caller whose token names another tenant is refused.
//
// Returns a wrapper object for the known response body format(s).
TenantEnrollmentEnrollWithResponse(ctx context.Context, tenantId string, state string, reqEditors ...RequestEditorFn) (*TenantEnrollmentEnrollResponse, error)

// TenantEnrollmentListWithResponse performs a GET /tenant/{tenant_id}/enrollments (the `TenantEnrollmentList` operationId) request.
//
// Lists the tenant's pending enrollments, oldest first. Only a Tenant Owner of the tenant may.
//
// Returns a wrapper object for the known response body format(s).
TenantEnrollmentListWithResponse(ctx context.Context, tenantId string, reqEditors ...RequestEditorFn) (*TenantEnrollmentListResponse, error)

// TenantEnrollmentRevokeWithResponse performs a DELETE /tenant/{tenant_id}/enrollments/{enrollment_id} (the `TenantEnrollmentRevoke` operationId) request.
//
// Revokes a pending enrollment, so that its state no longer creates a wallet.
//
// Returns a wrapper object for the known response body format(s).
TenantEnrollmentRevokeWithResponse(ctx context.Context, tenantId string, enrollmentId string, reqEditors ...RequestEditorFn) (*TenantEnrollmentRevokeResponse, error)

// TfAccreditAsWithBodyWithResponse performs a POST /tf/accredit (the `TfAccreditAs` operationId) request,
// with any type of body and a specified content type.
//
// Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor
// Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing
// the appropriate accreditation credential to their DID.
//
// Returns a wrapper object for the known response body format(s).
TfAccreditAsWithBodyWithResponse(ctx context.Context, params *TfAccreditAsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfAccreditAsResponse, error)

// TfAccreditAsWithResponse performs a POST /tf/accredit (the `TfAccreditAs` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor
// Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing
// the appropriate accreditation credential to their DID.
TfAccreditAsWithResponse(ctx context.Context, params *TfAccreditAsParams, body TfAccreditAsJSONRequestBody, reqEditors ...RequestEditorFn) (*TfAccreditAsResponse, error)

// TfAccreditRequestWithBodyWithResponse performs a POST /tf/accreditation_request (the `TfAccreditRequest` operationId) request,
// with any type of body and a specified content type.
//
// Used by a TAO/RTAO wallet to process and approve an incoming accreditation request from
// another legal entity. Issues an accreditation credential authorizing the entity to issue
// credentials of the specified type within the trust framework.
//
// Returns a wrapper object for the known response body format(s).
TfAccreditRequestWithBodyWithResponse(ctx context.Context, params *TfAccreditRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfAccreditRequestResponse, error)

// TfAccreditRequestWithResponse performs a POST /tf/accreditation_request (the `TfAccreditRequest` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Used by a TAO/RTAO wallet to process and approve an incoming accreditation request from
// another legal entity. Issues an accreditation credential authorizing the entity to issue
// credentials of the specified type within the trust framework.
TfAccreditRequestWithResponse(ctx context.Context, params *TfAccreditRequestParams, body TfAccreditRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*TfAccreditRequestResponse, error)

// TfOnboardWithBodyWithResponse performs a POST /tf/onboard (the `TfOnboard` operationId) request,
// with any type of body and a specified content type.
//
// Completes the trust framework onboarding of this wallet using the specified onboarding
// credential. After successful onboarding, the wallet's DID is registered in the trust
// framework's TAO/TI hierarchy, enabling it to issue or verify trust-framework credentials.
// A UNTP wallet onboards with a Digital Identity Anchor of its DID, held (`onboardingCredentialId`) or offered
// (`offer`): it verifies it, publishes it in its DID document as a `dia` link, and replaces the DIA it published
// before.
//
// Returns a wrapper object for the known response body format(s).
TfOnboardWithBodyWithResponse(ctx context.Context, params *TfOnboardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfOnboardResponse, error)

// TfOnboardWithResponse performs a POST /tf/onboard (the `TfOnboard` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Completes the trust framework onboarding of this wallet using the specified onboarding
// credential. After successful onboarding, the wallet's DID is registered in the trust
// framework's TAO/TI hierarchy, enabling it to issue or verify trust-framework credentials.
// A UNTP wallet onboards with a Digital Identity Anchor of its DID, held (`onboardingCredentialId`) or offered
// (`offer`): it verifies it, publishes it in its DID document as a `dia` link, and replaces the DIA it published
// before.
TfOnboardWithResponse(ctx context.Context, params *TfOnboardParams, body TfOnboardJSONRequestBody, reqEditors ...RequestEditorFn) (*TfOnboardResponse, error)

// TfOnboardRequestWithBodyWithResponse performs a POST /tf/onboard_request (the `TfOnboardRequest` operationId) request,
// with any type of body and a specified content type.
//
// Used by a TAO/RTAO wallet to process and approve an incoming onboarding request from
// another legal entity. Issues an onboarding credential (TIA) to the requesting entity,
// registering them in the trust framework.
// A UNTP registrar wallet makes a Digital Identity Anchor (`untp`) pending for the DID: the member obtains it
// through the OpenID4VCI issuance of `untp-dia` (an offer from `/issuer/offer/preauth` with the DID as
// `clientId`), signing its proof with the DID's key.
//
// Returns a wrapper object for the known response body format(s).
TfOnboardRequestWithBodyWithResponse(ctx context.Context, params *TfOnboardRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfOnboardRequestResponse, error)

// TfOnboardRequestWithResponse performs a POST /tf/onboard_request (the `TfOnboardRequest` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Used by a TAO/RTAO wallet to process and approve an incoming onboarding request from
// another legal entity. Issues an onboarding credential (TIA) to the requesting entity,
// registering them in the trust framework.
// A UNTP registrar wallet makes a Digital Identity Anchor (`untp`) pending for the DID: the member obtains it
// through the OpenID4VCI issuance of `untp-dia` (an offer from `/issuer/offer/preauth` with the DID as
// `clientId`), signing its proof with the DID's key.
TfOnboardRequestWithResponse(ctx context.Context, params *TfOnboardRequestParams, body TfOnboardRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*TfOnboardRequestResponse, error)

// TfRevokeAccreditationWithBodyWithResponse performs a POST /tf/revoke-accredit (the `TfRevokeAccreditation` operationId) request,
// with any type of body and a specified content type.
//
// Revokes another legal entity's accreditation or trust framework registration by
// invalidating their credential in the trust status list.
//
// Returns a wrapper object for the known response body format(s).
TfRevokeAccreditationWithBodyWithResponse(ctx context.Context, params *TfRevokeAccreditationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfRevokeAccreditationResponse, error)

// TfRevokeAccreditationWithResponse performs a POST /tf/revoke-accredit (the `TfRevokeAccreditation` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Revokes another legal entity's accreditation or trust framework registration by
// invalidating their credential in the trust status list.
TfRevokeAccreditationWithResponse(ctx context.Context, params *TfRevokeAccreditationParams, body TfRevokeAccreditationJSONRequestBody, reqEditors ...RequestEditorFn) (*TfRevokeAccreditationResponse, error)

// TfUntpDiaListWithResponse performs a GET /tf/untp/dia (the `TfUntpDiaList` operationId) request.
//
// Lists the Digital Identity Anchors a UNTP registrar wallet issued. Another wallet is 422.
//
// Returns a wrapper object for the known response body format(s).
TfUntpDiaListWithResponse(ctx context.Context, params *TfUntpDiaListParams, reqEditors ...RequestEditorFn) (*TfUntpDiaListResponse, error)

// TfUntpDiaIssueWithBodyWithResponse performs a POST /tf/untp/dia (the `TfUntpDiaIssue` operationId) request,
// with any type of body and a specified content type.
//
// Issues a Digital Identity Anchor to a DID without the OpenID4VCI proof that the member controls it, for closed
// pilots: 403 unless the deployment sets `untp.registrar.allowUnverifiedDidBinding`. The member onboards with it
// (`POST /tf/onboard` with `onboardingCredentialId`, once it holds it). Another wallet than a UNTP registrar is
// 422.
//
// Returns a wrapper object for the known response body format(s).
TfUntpDiaIssueWithBodyWithResponse(ctx context.Context, params *TfUntpDiaIssueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfUntpDiaIssueResponse, error)

// TfUntpDiaIssueWithResponse performs a POST /tf/untp/dia (the `TfUntpDiaIssue` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Issues a Digital Identity Anchor to a DID without the OpenID4VCI proof that the member controls it, for closed
// pilots: 403 unless the deployment sets `untp.registrar.allowUnverifiedDidBinding`. The member onboards with it
// (`POST /tf/onboard` with `onboardingCredentialId`, once it holds it). Another wallet than a UNTP registrar is
// 422.
TfUntpDiaIssueWithResponse(ctx context.Context, params *TfUntpDiaIssueParams, body TfUntpDiaIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*TfUntpDiaIssueResponse, error)

// TfUntpRequestListWithResponse performs a GET /tf/untp/requests (the `TfUntpRequestList` operationId) request.
//
// Lists the DIDs a UNTP registrar wallet is ready to issue a Digital Identity Anchor to (`POST
// /tf/onboard_request`), until they obtain it or the request expires. Another wallet is 422.
//
// Returns a wrapper object for the known response body format(s).
TfUntpRequestListWithResponse(ctx context.Context, params *TfUntpRequestListParams, reqEditors ...RequestEditorFn) (*TfUntpRequestListResponse, error)

// TfX509CertificateListRecordsWithResponse performs a GET /tf/x509 (the `TfX509CertificateListRecords` operationId) request.
//
// Returns the records of all X509 certificates the wallet has issued, including their
// current status. The list is empty when the wallet has not issued any certificate.
//
// Returns a wrapper object for the known response body format(s).
TfX509CertificateListRecordsWithResponse(ctx context.Context, params *TfX509CertificateListRecordsParams, reqEditors ...RequestEditorFn) (*TfX509CertificateListRecordsResponse, error)

// TfX509CertificateIssueWithBodyWithResponse performs a POST /tf/x509 (the `TfX509CertificateIssue` operationId) request,
// with any type of body and a specified content type.
//
// Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet
// to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
//
// Returns a wrapper object for the known response body format(s).
TfX509CertificateIssueWithBodyWithResponse(ctx context.Context, params *TfX509CertificateIssueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfX509CertificateIssueResponse, error)

// TfX509CertificateIssueWithResponse performs a POST /tf/x509 (the `TfX509CertificateIssue` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet
// to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
TfX509CertificateIssueWithResponse(ctx context.Context, params *TfX509CertificateIssueParams, body TfX509CertificateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*TfX509CertificateIssueResponse, error)

// TfX509CertificateGetRecordWithResponse performs a GET /tf/x509/{serial_number} (the `TfX509CertificateGetRecord` operationId) request.
//
// Returns a record of an issued X509 certificate.
//
// Returns a wrapper object for the known response body format(s).
TfX509CertificateGetRecordWithResponse(ctx context.Context, serialNumber string, params *TfX509CertificateGetRecordParams, reqEditors ...RequestEditorFn) (*TfX509CertificateGetRecordResponse, error)

// TfX509CertificateUpdateStatusWithBodyWithResponse performs a POST /tf/x509/{serial_number}/status (the `TfX509CertificateUpdateStatus` operationId) request,
// with any type of body and a specified content type.
//
// Updates a status of an already issued X509 certificate.
//
// Returns a wrapper object for the known response body format(s).
TfX509CertificateUpdateStatusWithBodyWithResponse(ctx context.Context, serialNumber string, params *TfX509CertificateUpdateStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TfX509CertificateUpdateStatusResponse, error)

// TfX509CertificateUpdateStatusWithResponse performs a POST /tf/x509/{serial_number}/status (the `TfX509CertificateUpdateStatus` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Updates a status of an already issued X509 certificate.
TfX509CertificateUpdateStatusWithResponse(ctx context.Context, serialNumber string, params *TfX509CertificateUpdateStatusParams, body TfX509CertificateUpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*TfX509CertificateUpdateStatusResponse, error)

// UntpLinkListWithResponse performs a GET /untp/links (the `UntpLinkList` operationId) request.
//
// The UNTP links the wallet's DID document advertises for its published credentials.
//
// Returns a wrapper object for the known response body format(s).
UntpLinkListWithResponse(ctx context.Context, params *UntpLinkListParams, reqEditors ...RequestEditorFn) (*UntpLinkListResponse, error)

// UntpLinkPublishWithBodyWithResponse performs a POST /untp/links (the `UntpLinkPublish` operationId) request,
// with any type of body and a specified content type.
//
// 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).
//
// Returns a wrapper object for the known response body format(s).
UntpLinkPublishWithBodyWithResponse(ctx context.Context, params *UntpLinkPublishParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UntpLinkPublishResponse, error)

// UntpLinkPublishWithResponse performs a POST /untp/links (the `UntpLinkPublish` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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).
UntpLinkPublishWithResponse(ctx context.Context, params *UntpLinkPublishParams, body UntpLinkPublishJSONRequestBody, reqEditors ...RequestEditorFn) (*UntpLinkPublishResponse, error)

// UntpLinkDeleteWithResponse performs a DELETE /untp/links/{service_id} (the `UntpLinkDelete` operationId) request.
//
// Removes a UNTP link from the wallet's DID document and stops serving its credential.
//
// Returns a wrapper object for the known response body format(s).
UntpLinkDeleteWithResponse(ctx context.Context, serviceId string, params *UntpLinkDeleteParams, reqEditors ...RequestEditorFn) (*UntpLinkDeleteResponse, error)

// UntpRegistryListWithResponse performs a GET /untp/registry (the `UntpRegistryList` operationId) request.
//
// Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet's own DID is
// one of them. Each registrar says where it is listed (`source`): in the wallet's `UNTP.trustedRegistrars`, the
// deployment's `untp.dia.trustedRegistrars`, or the deployment's remote registry (`untp.dia.registryUrl`), in
// that order of precedence. With a remote registry, `registry` says which copy of it is in use; one that cannot
// be fetched is reported there, and the other registrars are still listed.
//
// Returns a wrapper object for the known response body format(s).
UntpRegistryListWithResponse(ctx context.Context, params *UntpRegistryListParams, reqEditors ...RequestEditorFn) (*UntpRegistryListResponse, error)

// VerifierCredentialVerifyWithBodyWithResponse performs a POST /verifier/credential (the `VerifierCredentialVerify` operationId) request,
// with any type of body and a specified content type.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
VerifierCredentialVerifyWithBodyWithResponse(ctx context.Context, params *VerifierCredentialVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifierCredentialVerifyResponse, error)

// VerifierCredentialVerifyWithResponse performs a POST /verifier/credential (the `VerifierCredentialVerify` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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.
VerifierCredentialVerifyWithResponse(ctx context.Context, params *VerifierCredentialVerifyParams, body VerifierCredentialVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifierCredentialVerifyResponse, error)

// VerifierDidVerifyWithResponse performs a GET /verifier/did (the `VerifierDidVerify` operationId) request.
//
// 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`.
//
// Returns a wrapper object for the known response body format(s).
VerifierDidVerifyWithResponse(ctx context.Context, params *VerifierDidVerifyParams, reqEditors ...RequestEditorFn) (*VerifierDidVerifyResponse, error)

// VerifierInitUrlCreateWithBodyWithResponse performs a POST /verifier/init (the `VerifierInitUrlCreate` operationId) request,
// with any type of body and a specified content type.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
VerifierInitUrlCreateWithBodyWithResponse(ctx context.Context, params *VerifierInitUrlCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifierInitUrlCreateResponse, error)

// VerifierInitUrlCreateWithResponse performs a POST /verifier/init (the `VerifierInitUrlCreate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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.
VerifierInitUrlCreateWithResponse(ctx context.Context, params *VerifierInitUrlCreateParams, body VerifierInitUrlCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifierInitUrlCreateResponse, error)

// VerifierPdfVerifyWithBodyWithResponse performs a POST /verifier/pdf (the `VerifierPdfVerify` operationId) request,
// with any type of body and a specified content type.
//
// Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document
// Maximum size of the PDF document is 50 MB.
//
// Returns a wrapper object for the known response body format(s).
VerifierPdfVerifyWithBodyWithResponse(ctx context.Context, params *VerifierPdfVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifierPdfVerifyResponse, error)

// VerifierRenderWithBodyWithResponse performs a POST /verifier/render (the `VerifierRender` operationId) request,
// with any type of body and a specified content type.
//
// 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`.
//
// Returns a wrapper object for the known response body format(s).
VerifierRenderWithBodyWithResponse(ctx context.Context, params *VerifierRenderParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifierRenderResponse, error)

// VerifierRenderWithResponse performs a POST /verifier/render (the `VerifierRender` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// 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`.
VerifierRenderWithResponse(ctx context.Context, params *VerifierRenderParams, body VerifierRenderJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifierRenderResponse, error)

// VerifierUntpResolveWithResponse performs a GET /verifier/untp/resolve (the `VerifierUntpResolve` operationId) request.
//
// 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.
//
// Returns a wrapper object for the known response body format(s).
VerifierUntpResolveWithResponse(ctx context.Context, params *VerifierUntpResolveParams, reqEditors ...RequestEditorFn) (*VerifierUntpResolveResponse, error)

// WalletListWithResponse performs a GET /wallets (the `WalletList` operationId) request.
//
// Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order
// (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with
// the same name are in the order they were created.
//
// Returns a wrapper object for the known response body format(s).
WalletListWithResponse(ctx context.Context, params *WalletListParams, reqEditors ...RequestEditorFn) (*WalletListResponse, error)

// WalletCreateWithBodyWithResponse performs a POST /wallets (the `WalletCreate` operationId) request,
// with any type of body and a specified content type.
//
// Creates a new wallet for the authenticated client.
//
// Returns a wrapper object for the known response body format(s).
WalletCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletCreateResponse, error)

// WalletCreateWithResponse performs a POST /wallets (the `WalletCreate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Creates a new wallet for the authenticated client.
WalletCreateWithResponse(ctx context.Context, body WalletCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletCreateResponse, error)

// WalletDeleteWithResponse performs a DELETE /wallets/{wallet_id} (the `WalletDelete` operationId) request.
//
// Permanently deletes the wallet with all credentials and keys.
// Make sure you know what you are doing before hitting this endpoint.
//
// Returns a wrapper object for the known response body format(s).
WalletDeleteWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletDeleteResponse, error)

// WalletGetWithResponse performs a GET /wallets/{wallet_id} (the `WalletGet` operationId) request.
//
// Provides wallet details.
//
// Returns a wrapper object for the known response body format(s).
WalletGetWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletGetResponse, error)

// WalletPatchWithBodyWithResponse performs a PATCH /wallets/{wallet_id} (the `WalletPatch` operationId) request,
// with any type of body and a specified content type.
//
// Update wallet metadata and configuration.
//
// The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them.
// `config.UNTP` replaces the wallet's UNTP config, but for the read-only `isOnboarded` and `role`, which keep
// their stored values; an invalid one is `400`.
// A Tenant Owner of the wallet's tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other
// owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
//
// Returns a wrapper object for the known response body format(s).
WalletPatchWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletPatchResponse, error)

// WalletPatchWithResponse performs a PATCH /wallets/{wallet_id} (the `WalletPatch` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Update wallet metadata and configuration.
//
// The owner of the wallet patches its name, config and metadata; `config.tenant` is ignored for them.
// `config.UNTP` replaces the wallet's UNTP config, but for the read-only `isOnboarded` and `role`, which keep
// their stored values; an invalid one is `400`.
// A Tenant Owner of the wallet's tenant patches `config.tenant.issuerProxyUrl`, also of wallets of other
// owners, and for those every other field of the body is ignored. `config.tenant.tenantId` never changes.
WalletPatchWithResponse(ctx context.Context, walletId string, body WalletPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletPatchResponse, error)

// WalletX509CertificateGetWithResponse performs a GET /wallets/{wallet_id}/certificate (the `WalletX509CertificateGet` operationId) request.
//
// Returns the wallet's currently active X509 certificate in PEM format, used for XAdES/PDF
// signing.
// certificate for signature verification.
//
// Returns a wrapper object for the known response body format(s).
WalletX509CertificateGetWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletX509CertificateGetResponse, error)

// WalletX509CertificateImportWithBodyWithResponse performs a POST /wallets/{wallet_id}/certificate (the `WalletX509CertificateImport` operationId) request,
// with any type of body and a specified content type.
//
// Imports an X509 certificate to be used when signing credentials.
//
// Returns a wrapper object for the known response body format(s).
WalletX509CertificateImportWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletX509CertificateImportResponse, error)

// WalletX509CertificateImportWithResponse performs a POST /wallets/{wallet_id}/certificate (the `WalletX509CertificateImport` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Imports an X509 certificate to be used when signing credentials.
WalletX509CertificateImportWithResponse(ctx context.Context, walletId string, body WalletX509CertificateImportJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletX509CertificateImportResponse, error)

// WalletX509CSRCreateWithBodyWithResponse performs a POST /wallets/{wallet_id}/csr (the `WalletX509CSRCreate` operationId) request,
// with any type of body and a specified content type.
//
// Creates an X509 Certificate Signing Request (CSR) for the wallet's signing key.
//
// The resulting certificate is imported back via `WalletX509CertificateImport` to enable issuing credentials signed by X509 certificate chain it or
// XAdES/PDF signing.
//
// Returns a wrapper object for the known response body format(s).
WalletX509CSRCreateWithBodyWithResponse(ctx context.Context, walletId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletX509CSRCreateResponse, error)

// WalletX509CSRCreateWithResponse performs a POST /wallets/{wallet_id}/csr (the `WalletX509CSRCreate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Creates an X509 Certificate Signing Request (CSR) for the wallet's signing key.
//
// The resulting certificate is imported back via `WalletX509CertificateImport` to enable issuing credentials signed by X509 certificate chain it or
// XAdES/PDF signing.
WalletX509CSRCreateWithResponse(ctx context.Context, walletId string, body WalletX509CSRCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletX509CSRCreateResponse, error)

// WalletKeysWithResponse performs a GET /wallets/{wallet_id}/keys (the `WalletKeys` operationId) request.
//
// Provides wallet keys used for signing.
//
// Returns a wrapper object for the known response body format(s).
WalletKeysWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletKeysResponse, error)

// WalletNotificationHistoryWithResponse performs a GET /wallets/{wallet_id}/notification_history (the `WalletNotificationHistory` operationId) request.
//
// Provides wallet notifications that can be used to audit the wallet activity.
//
// Returns a wrapper object for the known response body format(s).
WalletNotificationHistoryWithResponse(ctx context.Context, walletId string, params *WalletNotificationHistoryParams, reqEditors ...RequestEditorFn) (*WalletNotificationHistoryResponse, error)

// WalletNotificationGetByStateWithResponse performs a GET /wallets/{wallet_id}/notification_history/{event_type}/{state} (the `WalletNotificationGetByState` operationId) request.
//
// Gets a specific notification by state.
//
// Returns a wrapper object for the known response body format(s).
WalletNotificationGetByStateWithResponse(ctx context.Context, walletId string, eventType string, state string, reqEditors ...RequestEditorFn) (*WalletNotificationGetByStateResponse, error)

// WalletNotificationsWithResponse performs a GET /wallets/{wallet_id}/notifications (the `WalletNotifications` operationId) request.
//
// Provides SSE stream of notifications for a specific wallet. Supports replay of queued notifications via
// `Last-Event-Id` header parameter.
//
// Returns a wrapper object for the known response body format(s).
WalletNotificationsWithResponse(ctx context.Context, walletId string, params *WalletNotificationsParams, reqEditors ...RequestEditorFn) (*WalletNotificationsResponse, error)

// WalletVerifiedCredentialsDeleteByStateWithResponse performs a DELETE /wallets/{wallet_id}/verified_credentials/{state} (the `WalletVerifiedCredentialsDeleteByState` operationId) request.
//
// Deletes a specific verified credentials by state.
//
// Returns a wrapper object for the known response body format(s).
WalletVerifiedCredentialsDeleteByStateWithResponse(ctx context.Context, walletId string, state string, reqEditors ...RequestEditorFn) (*WalletVerifiedCredentialsDeleteByStateResponse, error)

// WalletVerifiedCredentialsByStateWithResponse performs a GET /wallets/{wallet_id}/verified_credentials/{state} (the `WalletVerifiedCredentialsByState` operationId) request.
//
// Retrieves the result of a credential verification session identified by the verifier state.
// Called by the verifier after a holder has presented credentials in response to a
// `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
//
// Returns a wrapper object for the known response body format(s).
WalletVerifiedCredentialsByStateWithResponse(ctx context.Context, walletId string, state string, params *WalletVerifiedCredentialsByStateParams, reqEditors ...RequestEditorFn) (*WalletVerifiedCredentialsByStateResponse, error)

// WmpClientGetPendingRequestsWithResponse performs a GET /wmp/client/requests (the `WmpClientGetPendingRequests` operationId) request.
//
// Not implemented: always answers 501. Received requests arrive as wallet notifications; read one with
// `GET /wmp/client/requests/{request_id}`.
//
// Returns a wrapper object for the known response body format(s).
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
WmpClientGetPendingRequestsWithResponse(ctx context.Context, params *WmpClientGetPendingRequestsParams, reqEditors ...RequestEditorFn) (*WmpClientGetPendingRequestsResponse, error)

// WmpClientGetRequestWithResponse performs a GET /wmp/client/requests/{request_id} (the `WmpClientGetRequest` operationId) request.
//
// Returns metadata for the received message identified by `request_id` (delivered via a
// `wmp.message` notification carrying its id): its content type and body download link.
// The body is fetched as raw bytes from the download link included in the response
// (`bodyUrl`).
//
// Returns a wrapper object for the known response body format(s).
WmpClientGetRequestWithResponse(ctx context.Context, requestId string, params *WmpClientGetRequestParams, reqEditors ...RequestEditorFn) (*WmpClientGetRequestResponse, error)

// WmpClientProcessRequestWithBodyWithResponse performs a POST /wmp/client/requests/{request_id} (the `WmpClientProcessRequest` operationId) request,
// with any type of body and a specified content type.
//
// Acts on a pending WMP client request identified by `request_id`. The body's `type`
// selects the action: `process_offer` a pending credential offer or
// `process_verification_request` a pending verification request (either returns its
// authorization requirements), `identity_assertion` to present a credential as the session
// identity assertion, `authenticate` to open the session after the assertion exchange, or
// `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed
// (sends a `wmp.message.ack`, core §5.3, to the original sender), or `accept`/`reject` to
// accept or refuse the content of a received message (on a session that negotiated the
// `evidence` capability, sends `acceptance_confirmed`/`acceptance_rejected` evidence to the
// original sender, WMP evidence §3.5).
//
// Returns a wrapper object for the known response body format(s).
WmpClientProcessRequestWithBodyWithResponse(ctx context.Context, requestId string, params *WmpClientProcessRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpClientProcessRequestResponse, error)

// WmpClientProcessRequestWithResponse performs a POST /wmp/client/requests/{request_id} (the `WmpClientProcessRequest` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Acts on a pending WMP client request identified by `request_id`. The body's `type`
// selects the action: `process_offer` a pending credential offer or
// `process_verification_request` a pending verification request (either returns its
// authorization requirements), `identity_assertion` to present a credential as the session
// identity assertion, `authenticate` to open the session after the assertion exchange, or
// `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed
// (sends a `wmp.message.ack`, core §5.3, to the original sender), or `accept`/`reject` to
// accept or refuse the content of a received message (on a session that negotiated the
// `evidence` capability, sends `acceptance_confirmed`/`acceptance_rejected` evidence to the
// original sender, WMP evidence §3.5).
WmpClientProcessRequestWithResponse(ctx context.Context, requestId string, params *WmpClientProcessRequestParams, body WmpClientProcessRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpClientProcessRequestResponse, error)

// WmpEntityListWithResponse performs a GET /wmp/entities (the `WmpEntityList` operationId) request.
//
// Lists all wallets that have established a WMP connection with this wallet.
// Filter by `entityType=server` for entities that created the invitation (issuers/verifiers),
// `entityType=client` for entities that accepted it (holders), `entityType=relay` for the wallet's
// QTSP relay account, or `entityType=correspondent` for Subscribers reached through the relay.
//
// Returns a wrapper object for the known response body format(s).
WmpEntityListWithResponse(ctx context.Context, params *WmpEntityListParams, reqEditors ...RequestEditorFn) (*WmpEntityListResponse, error)

// WmpEntityDeleteWithResponse performs a DELETE /wmp/entities/{entity_id} (the `WmpEntityDelete` operationId) request.
//
// Delete entity based on the entity ID.
//
// Returns a wrapper object for the known response body format(s).
WmpEntityDeleteWithResponse(ctx context.Context, entityId string, params *WmpEntityDeleteParams, reqEditors ...RequestEditorFn) (*WmpEntityDeleteResponse, error)

// WmpEntityGetWithResponse performs a GET /wmp/entities/{entity_id} (the `WmpEntityGet` operationId) request.
//
// Get entity based on the entity ID.
//
// Returns a wrapper object for the known response body format(s).
WmpEntityGetWithResponse(ctx context.Context, entityId string, params *WmpEntityGetParams, reqEditors ...RequestEditorFn) (*WmpEntityGetResponse, error)

// WmpEntityConnectionGetWithResponse performs a GET /wmp/entities/{entity_id}/connection (the `WmpEntityConnectionGet` operationId) request.
//
// Get entity connection status.
//
// Returns a wrapper object for the known response body format(s).
WmpEntityConnectionGetWithResponse(ctx context.Context, entityId string, params *WmpEntityConnectionGetParams, reqEditors ...RequestEditorFn) (*WmpEntityConnectionGetResponse, error)

// WmpEntityServerConnectWithResponse performs a POST /wmp/entities/{entity_id}/connection (the `WmpEntityServerConnect` operationId) request.
//
// Re-establishes or confirms the connection to a WMP server entity. Used to
// reconnect after a dropped connection so the wallet can resume receiving pending requests.
//
// Returns a wrapper object for the known response body format(s).
WmpEntityServerConnectWithResponse(ctx context.Context, entityId string, params *WmpEntityServerConnectParams, reqEditors ...RequestEditorFn) (*WmpEntityServerConnectResponse, error)

// WmpEntitySendMessageWithBodyWithResponse performs a POST /wmp/entities/{entity_id}/messages (the `WmpEntitySendMessage` operationId) request,
// with any type of body and a specified content type.
//
// Sends a free-form WMP message to a connected entity. If the session is live the message is
// delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the
// `offline` capability, the message is queued and replayed once the peer reconnects or polls
// (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails
// with 409/400 (see below). The peer receives a delivered message as a `wmp.message`
// notification and can then read its metadata from `GET /wmp/client/requests/{request_id}`
// and download its body via the download link it contains. This wallet's own view of the
// message's delivery lifecycle is available afterwards via
// `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status`
// notification.
//
// The request is `multipart/form-data`. Supply the primary body as either the `body` text
// field (plain text) or a `body` file part (any content type, taken from the part).
//
// Returns a wrapper object for the known response body format(s).
WmpEntitySendMessageWithBodyWithResponse(ctx context.Context, entityId string, params *WmpEntitySendMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpEntitySendMessageResponse, error)

// WmpEntityListMessageHistoryWithResponse performs a GET /wmp/entities/{entity_id}/messages/history (the `WmpEntityListMessageHistory` operationId) request.
//
// Lists this wallet's own delivery-lifecycle records (core §5.3.1/§5.3) for every message it
// has sent to entityId, across every session, ordered by sentAt.
//
// Returns a wrapper object for the known response body format(s).
WmpEntityListMessageHistoryWithResponse(ctx context.Context, entityId string, params *WmpEntityListMessageHistoryParams, reqEditors ...RequestEditorFn) (*WmpEntityListMessageHistoryResponse, error)

// WmpEntityGetMessageHistoryWithResponse performs a GET /wmp/entities/{entity_id}/messages/{message_id} (the `WmpEntityGetMessageHistory` operationId) request.
//
// Returns this wallet's own delivery-lifecycle record for a message it previously sent via
// `POST /wmp/entities/{entity_id}/messages`.
//
// Returns a wrapper object for the known response body format(s).
WmpEntityGetMessageHistoryWithResponse(ctx context.Context, entityId string, messageId string, params *WmpEntityGetMessageHistoryParams, reqEditors ...RequestEditorFn) (*WmpEntityGetMessageHistoryResponse, error)

// WmpEntityMessageDecisionWithBodyWithResponse performs a POST /wmp/entities/{entity_id}/messages/{message_id}/decision (the `WmpEntityMessageDecision` operationId) request,
// with any type of body and a specified content type.
//
// Accepts or rejects a received `consented` / `consented_signed` message from a relay correspondent
// (CS-15 §14). The wallet answers with a `processed` or `rejected` acknowledgement, signed with the
// Subscriber key under `consented_signed`; the QTSP turns it into acceptance or rejection evidence.
//
// Returns a wrapper object for the known response body format(s).
WmpEntityMessageDecisionWithBodyWithResponse(ctx context.Context, entityId string, messageId string, params *WmpEntityMessageDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpEntityMessageDecisionResponse, error)

// WmpEntityMessageDecisionWithResponse performs a POST /wmp/entities/{entity_id}/messages/{message_id}/decision (the `WmpEntityMessageDecision` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Accepts or rejects a received `consented` / `consented_signed` message from a relay correspondent
// (CS-15 §14). The wallet answers with a `processed` or `rejected` acknowledgement, signed with the
// Subscriber key under `consented_signed`; the QTSP turns it into acceptance or rejection evidence.
WmpEntityMessageDecisionWithResponse(ctx context.Context, entityId string, messageId string, params *WmpEntityMessageDecisionParams, body WmpEntityMessageDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpEntityMessageDecisionResponse, error)

// WmpEvidenceListWithResponse performs a GET /wmp/evidence (the `WmpEvidenceList` operationId) request.
//
// Searches this wallet's evidence repository (WMP evidence §6.1): the evidence it issued and the
// evidence its peers sent it. Either `message_id` or `session_id` is required. Records are ordered by
// event time; a search by session is paginated with `limit` and `continuation_token`.
//
// Returns a wrapper object for the known response body format(s).
WmpEvidenceListWithResponse(ctx context.Context, params *WmpEvidenceListParams, reqEditors ...RequestEditorFn) (*WmpEvidenceListResponse, error)

// WmpEvidenceVerifyWithBodyWithResponse performs a POST /wmp/evidence/verify (the `WmpEvidenceVerify` operationId) request,
// with any type of body and a specified content type.
//
// Verifies the params of a `wmp.evidence.notify` (WMP evidence §4.1), independently of any session:
// the signature and its `x5c` chain, the timestamp token and, when the evidence is about a message this
// wallet sent, the content hash. Nothing is stored.
//
// Returns a wrapper object for the known response body format(s).
WmpEvidenceVerifyWithBodyWithResponse(ctx context.Context, params *WmpEvidenceVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpEvidenceVerifyResponse, error)

// WmpEvidenceVerifyWithResponse performs a POST /wmp/evidence/verify (the `WmpEvidenceVerify` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Verifies the params of a `wmp.evidence.notify` (WMP evidence §4.1), independently of any session:
// the signature and its `x5c` chain, the timestamp token and, when the evidence is about a message this
// wallet sent, the content hash. Nothing is stored.
WmpEvidenceVerifyWithResponse(ctx context.Context, params *WmpEvidenceVerifyParams, body WmpEvidenceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpEvidenceVerifyResponse, error)

// WmpEvidenceGetWithResponse performs a GET /wmp/evidence/{evidence_id} (the `WmpEvidenceGet` operationId) request.
//
// Returns one record of this wallet's evidence repository (WMP evidence §6.1).
//
// Returns a wrapper object for the known response body format(s).
WmpEvidenceGetWithResponse(ctx context.Context, evidenceId string, params *WmpEvidenceGetParams, reqEditors ...RequestEditorFn) (*WmpEvidenceGetResponse, error)

// WmpCreateNewInvitationWithResponse performs a POST /wmp/invitation (the `WmpCreateNewInvitation` operationId) request.
//
// Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with
// another wallet to establish a secure peer-to-peer communication channel. Issuers and
// verifiers use this to connect with holder wallets for direct credential delivery and
// verification without requiring QR codes or redirects on each interaction.
//
// Returns a wrapper object for the known response body format(s).
WmpCreateNewInvitationWithResponse(ctx context.Context, params *WmpCreateNewInvitationParams, reqEditors ...RequestEditorFn) (*WmpCreateNewInvitationResponse, error)

// WmpAcceptInvitationWithBodyWithResponse performs a POST /wmp/invitation/accept (the `WmpAcceptInvitation` operationId) request,
// with any type of body and a specified content type.
//
// Accepts a WMP invitation URL from another wallet (issuer or verifier) to establish a
// peer-to-peer WMP connection. After acceptance, the connected entity appears in the WMP
// entity list and can send credential offers or verification requests directly to this wallet.
//
// Returns a wrapper object for the known response body format(s).
WmpAcceptInvitationWithBodyWithResponse(ctx context.Context, params *WmpAcceptInvitationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpAcceptInvitationResponse, error)

// WmpAcceptInvitationWithResponse performs a POST /wmp/invitation/accept (the `WmpAcceptInvitation` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Accepts a WMP invitation URL from another wallet (issuer or verifier) to establish a
// peer-to-peer WMP connection. After acceptance, the connected entity appears in the WMP
// entity list and can send credential offers or verification requests directly to this wallet.
WmpAcceptInvitationWithResponse(ctx context.Context, params *WmpAcceptInvitationParams, body WmpAcceptInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpAcceptInvitationResponse, error)

// WmpRelayDeleteWithResponse performs a DELETE /wmp/relay (the `WmpRelayDelete` operationId) request.
//
// Closes the relay sessions and forgets the relay account and its correspondents. The QTSP keeps the
// Subscriber registration and the evidence it holds.
//
// Returns a wrapper object for the known response body format(s).
WmpRelayDeleteWithResponse(ctx context.Context, params *WmpRelayDeleteParams, reqEditors ...RequestEditorFn) (*WmpRelayDeleteResponse, error)

// WmpRelayGetWithResponse performs a GET /wmp/relay (the `WmpRelayGet` operationId) request.
//
// Returns the wallet's account at its QTSP relay (CS-15 EBW role).
//
// Returns a wrapper object for the known response body format(s).
WmpRelayGetWithResponse(ctx context.Context, params *WmpRelayGetParams, reqEditors ...RequestEditorFn) (*WmpRelayGetResponse, error)

// WmpRelayCorrespondentConnectWithBodyWithResponse performs a POST /wmp/relay/correspondents (the `WmpRelayCorrespondentConnect` operationId) request,
// with any type of body and a specified content type.
//
// Connects to another Subscriber through the QTSP (CS-15 §7.3, §10.4): resolves the participant and
// one of its KeyPackages, validates its credential and sets up the dedicated relay session and MLS
// group. Messages are then sent with `POST /wmp/entities/{entity_id}/messages`.
//
// Returns a wrapper object for the known response body format(s).
WmpRelayCorrespondentConnectWithBodyWithResponse(ctx context.Context, params *WmpRelayCorrespondentConnectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayCorrespondentConnectResponse, error)

// WmpRelayCorrespondentConnectWithResponse performs a POST /wmp/relay/correspondents (the `WmpRelayCorrespondentConnect` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Connects to another Subscriber through the QTSP (CS-15 §7.3, §10.4): resolves the participant and
// one of its KeyPackages, validates its credential and sets up the dedicated relay session and MLS
// group. Messages are then sent with `POST /wmp/entities/{entity_id}/messages`.
WmpRelayCorrespondentConnectWithResponse(ctx context.Context, params *WmpRelayCorrespondentConnectParams, body WmpRelayCorrespondentConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayCorrespondentConnectResponse, error)

// WmpRelayOnboardingStartWithBodyWithResponse performs a POST /wmp/relay/onboarding (the `WmpRelayOnboardingStart` operationId) request,
// with any type of body and a specified content type.
//
// Starts Subscriber onboarding at a QTSP relay (CS-15 §8): checks the QTSP's discovery document and
// qualified status, generates the Subscriber key and CSR and sends them to the QTSP. The returned
// OpenID4VP authorization request is presented with the holder endpoints (`HolderPresentPassAuthInfo`,
// `HolderCredentialsPresentAfterConsent`); the QTSP answers the presentation with the onboarding result,
// returned as `response`, which is then passed to `WmpRelayOnboardingComplete`.
//
// Returns a wrapper object for the known response body format(s).
WmpRelayOnboardingStartWithBodyWithResponse(ctx context.Context, params *WmpRelayOnboardingStartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayOnboardingStartResponse, error)

// WmpRelayOnboardingStartWithResponse performs a POST /wmp/relay/onboarding (the `WmpRelayOnboardingStart` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Starts Subscriber onboarding at a QTSP relay (CS-15 §8): checks the QTSP's discovery document and
// qualified status, generates the Subscriber key and CSR and sends them to the QTSP. The returned
// OpenID4VP authorization request is presented with the holder endpoints (`HolderPresentPassAuthInfo`,
// `HolderCredentialsPresentAfterConsent`); the QTSP answers the presentation with the onboarding result,
// returned as `response`, which is then passed to `WmpRelayOnboardingComplete`.
WmpRelayOnboardingStartWithResponse(ctx context.Context, params *WmpRelayOnboardingStartParams, body WmpRelayOnboardingStartJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayOnboardingStartResponse, error)

// WmpRelayOnboardingCompleteWithBodyWithResponse performs a POST /wmp/relay/onboarding/{onboarding_id}/complete (the `WmpRelayOnboardingComplete` operationId) request,
// with any type of body and a specified content type.
//
// Completes onboarding with the onboarding result the QTSP answered the presentation with (CS-15 §8.5): the
// `response` of `HolderCredentialsPresentAfterConsent`, as is. Checks that the certificate names the
// Subscriber and chains to the Subscriber CAs, stores it, connects the inbox session and publishes
// KeyPackages.
//
// Returns a wrapper object for the known response body format(s).
WmpRelayOnboardingCompleteWithBodyWithResponse(ctx context.Context, onboardingId string, params *WmpRelayOnboardingCompleteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayOnboardingCompleteResponse, error)

// WmpRelayOnboardingCompleteWithResponse performs a POST /wmp/relay/onboarding/{onboarding_id}/complete (the `WmpRelayOnboardingComplete` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Completes onboarding with the onboarding result the QTSP answered the presentation with (CS-15 §8.5): the
// `response` of `HolderCredentialsPresentAfterConsent`, as is. Checks that the certificate names the
// Subscriber and chains to the Subscriber CAs, stores it, connects the inbox session and publishes
// KeyPackages.
WmpRelayOnboardingCompleteWithResponse(ctx context.Context, onboardingId string, params *WmpRelayOnboardingCompleteParams, body WmpRelayOnboardingCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayOnboardingCompleteResponse, error)

// WmpRelayRegistrationStartWithBodyWithResponse performs a POST /wmp/relay/registration (the `WmpRelayRegistrationStart` operationId) request,
// with any type of body and a specified content type.
//
// Starts a manual Subscriber registration, for a QTSP without the onboarding API (CS-15 §8.1): checks the
// QTSP's discovery document and qualified status and generates the Subscriber key. The returned CSR is
// given to the QTSP by other means; then upload the certificate it issued with
// `POST /wmp/relay/registration/certificate`. A pending onboarding or registration is replaced.
//
// Returns a wrapper object for the known response body format(s).
WmpRelayRegistrationStartWithBodyWithResponse(ctx context.Context, params *WmpRelayRegistrationStartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayRegistrationStartResponse, error)

// WmpRelayRegistrationStartWithResponse performs a POST /wmp/relay/registration (the `WmpRelayRegistrationStart` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Starts a manual Subscriber registration, for a QTSP without the onboarding API (CS-15 §8.1): checks the
// QTSP's discovery document and qualified status and generates the Subscriber key. The returned CSR is
// given to the QTSP by other means; then upload the certificate it issued with
// `POST /wmp/relay/registration/certificate`. A pending onboarding or registration is replaced.
WmpRelayRegistrationStartWithResponse(ctx context.Context, params *WmpRelayRegistrationStartParams, body WmpRelayRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayRegistrationStartResponse, error)

// WmpRelayRegistrationCompleteWithBodyWithResponse performs a POST /wmp/relay/registration/certificate (the `WmpRelayRegistrationComplete` operationId) request,
// with any type of body and a specified content type.
//
// Completes a manual registration with the certificate the QTSP issued for the CSR: stores it, connects the
// inbox session and publishes KeyPackages. The certificate must name the Subscriber, certify the CSR's key
// and chain to the Subscriber CAs (`wmpRelay.subscriberTrustAnchors`, or the uploaded chain's own CAs).
//
// Returns a wrapper object for the known response body format(s).
WmpRelayRegistrationCompleteWithBodyWithResponse(ctx context.Context, params *WmpRelayRegistrationCompleteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WmpRelayRegistrationCompleteResponse, error)

// WmpRelayRegistrationCompleteWithResponse performs a POST /wmp/relay/registration/certificate (the `WmpRelayRegistrationComplete` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Completes a manual registration with the certificate the QTSP issued for the CSR: stores it, connects the
// inbox session and publishes KeyPackages. The certificate must name the Subscriber, certify the CSR's key
// and chain to the Subscriber CAs (`wmpRelay.subscriberTrustAnchors`, or the uploaded chain's own CAs).
WmpRelayRegistrationCompleteWithResponse(ctx context.Context, params *WmpRelayRegistrationCompleteParams, body WmpRelayRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*WmpRelayRegistrationCompleteResponse, error)

// WmpRelayRotateWithResponse performs a POST /wmp/relay/rotate (the `WmpRelayRotate` operationId) request.
//
// Rotates the Subscriber key and certificate over mutual TLS (CS-15 §8.6) and republishes KeyPackages.
// Existing correspondent groups move to the new certificate on their next message.
//
// Returns a wrapper object for the known response body format(s).
WmpRelayRotateWithResponse(ctx context.Context, params *WmpRelayRotateParams, reqEditors ...RequestEditorFn) (*WmpRelayRotateResponse, error)

// DidDocumentGetWithResponse performs a GET /{wallet_id}/did.json (the `DidDocumentGet` operationId) request.
//
// Gets the DID Document of the wallet.
//
// Returns a wrapper object for the known response body format(s).
DidDocumentGetWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*DidDocumentGetResponse, error)
}

func NewAuthenticatedClient​

func NewAuthenticatedClient(config *Config, opts ...ClientOption) (ClientWithResponsesInterface, error)

NewAuthenticatedClient builds a wallet client from config. For the OAuth authentication type it obtains tokens with the client credentials grant and refreshes them before they expire, so the client can be used by a long-running service. The first token is fetched eagerly, so invalid credentials are reported here rather than on the first call.

opts are applied after the authentication set up by config, e.g. to supply a custom HTTP client with WithHTTPClient.

func NewClientWithTokenSource​

func NewClientWithTokenSource(walletURL string, ts oauth2.TokenSource, opts ...ClientOption) (ClientWithResponsesInterface, error)

NewClientWithTokenSource builds a wallet client that authenticates every request with a bearer token taken from ts. Wrap ts in oauth2.ReuseTokenSource (as the sources from golang.org/x/oauth2 already are) to avoid fetching a new token per request.

A token source attached to the call's context with ContextWithTokenSource takes precedence over ts. ts may be nil, in which case only calls whose context carries a token source are authenticated.

walletURL is the wallet base URL, without the API prefix.

type Config​

type Config struct {
WalletUrl string `yaml:"walletUrl"`
// WalletId, when set, is sent as the wallet-id header on every request
// that does not set one itself (see WithWalletId).
WalletId string `yaml:"walletId"`
AuthenticationType string `yaml:"authenticationType"`
AuthenticationOAuth AuthenticationOAuth `yaml:"authenticationOAuth"`
}

type CredentialClaimMetadata​

CredentialClaimMetadata defines model for CredentialClaimMetadata.

type CredentialClaimMetadata struct {
Description string `json:"description"`
Label string `json:"label"`
}

type CredentialClaimMetadataGetParams​

CredentialClaimMetadataGetParams defines parameters for CredentialClaimMetadataGet.

type CredentialClaimMetadataGetParams struct {
// MetadataScope Scope of the RDF metadata;
// - subject: only provide metadata for claims in credential subject
// - credential: provide metadata for claims in whole credential
MetadataScope *string `form:"metadata_scope,omitempty" json:"metadata_scope,omitempty"`

// Contexts JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base
// VC context is always applied. When omitted, all contexts of the credential are applied.
Contexts *[]string `form:"contexts,omitempty" json:"contexts,omitempty"`
WalletId string `json:"wallet-id"`
}

type CredentialClaimMetadataGetResponse​

type CredentialClaimMetadataGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialClaimMetadataMapping
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialClaimMetadataGetResponse​

func ParseCredentialClaimMetadataGetResponse(rsp *http.Response) (*CredentialClaimMetadataGetResponse, error)

ParseCredentialClaimMetadataGetResponse parses an HTTP response from a CredentialClaimMetadataGetWithResponse call

func (CredentialClaimMetadataGetResponse) ContentType​

func (r CredentialClaimMetadataGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialClaimMetadataGetResponse) GetBody​

func (r CredentialClaimMetadataGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialClaimMetadataGetResponse) GetJSON200​

func (r CredentialClaimMetadataGetResponse) GetJSON200() *CredentialClaimMetadataMapping

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialClaimMetadataGetResponse) GetJSON400​

func (r CredentialClaimMetadataGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialClaimMetadataGetResponse) GetJSON404​

func (r CredentialClaimMetadataGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialClaimMetadataGetResponse) GetJSON500​

func (r CredentialClaimMetadataGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialClaimMetadataGetResponse) Status​

func (r CredentialClaimMetadataGetResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialClaimMetadataGetResponse) StatusCode​

func (r CredentialClaimMetadataGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialClaimMetadataMapping​

CredentialClaimMetadataMapping defines model for CredentialClaimMetadataMapping.

type CredentialClaimMetadataMapping map[string]CredentialClaimMetadata

type CredentialCreateJSONRequestBody​

CredentialCreateJSONRequestBody defines body for CredentialCreate for application/json ContentType.

type CredentialCreateJSONRequestBody = CredentialCreatePayload

type CredentialCreateParams​

CredentialCreateParams defines parameters for CredentialCreate.

type CredentialCreateParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialCreatePayload​

CredentialCreatePayload A Credential container used to create credential drafts with metadata.

type CredentialCreatePayload struct {
// CredentialDraftMetadata Accompanying information about the verifiable credential draft - schema, type, format etc.
CredentialDraftMetadata CredentialDraftMetadata `json:"credentialDraftMetadata"`

// CredentialSubject Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential.
// When the credential is in W3C VCDM, the subject is in its compacted form with claim keys in their full IRI form.
CredentialSubject CredentialSubject `json:"credentialSubject"`

// IssuerId ID of the credential issuer (`CredentialIssuerDefinition.id`, from the wallet configuration or the
// trust framework) that issues the draft. When set, the draft can only be queued for issuance by this
// issuer.
IssuerId *DraftIssuerId `json:"issuerId,omitempty"`

// ValidateJsonLd If true, a VCDM 2.0 draft must define every property in its JSON-LD context, now and when it is
// issued. Defaults to the `jsonld.enforceOnCreate` setting.
ValidateJsonLd *bool `json:"validateJsonLd,omitempty"`

// ValidateSchema If true, the credential draft is checked against its schema. Defaults to true.
ValidateSchema *bool `json:"validateSchema,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (CredentialCreatePayload) Get​

func (a CredentialCreatePayload) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for CredentialCreatePayload. Returns the specified element and whether it was found

func (CredentialCreatePayload) MarshalJSON​

func (a CredentialCreatePayload) MarshalJSON() ([]byte, error)

Override default JSON handling for CredentialCreatePayload to handle AdditionalProperties

func (*CredentialCreatePayload) Set​

func (a *CredentialCreatePayload) Set(fieldName string, value interface{})

Setter for additional properties for CredentialCreatePayload

func (*CredentialCreatePayload) UnmarshalJSON​

func (a *CredentialCreatePayload) UnmarshalJSON(b []byte) error

Override default JSON handling for CredentialCreatePayload to handle AdditionalProperties

type CredentialCreateResponse​

type CredentialCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialIdObject
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialCreateResponse​

func ParseCredentialCreateResponse(rsp *http.Response) (*CredentialCreateResponse, error)

ParseCredentialCreateResponse parses an HTTP response from a CredentialCreateWithResponse call

func (CredentialCreateResponse) ContentType​

func (r CredentialCreateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialCreateResponse) GetBody​

func (r CredentialCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialCreateResponse) GetJSON200​

func (r CredentialCreateResponse) GetJSON200() *CredentialIdObject

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialCreateResponse) GetJSON400​

func (r CredentialCreateResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialCreateResponse) GetJSON500​

func (r CredentialCreateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialCreateResponse) Status​

func (r CredentialCreateResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialCreateResponse) StatusCode​

func (r CredentialCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialDraftMetadata​

CredentialDraftMetadata Accompanying information about the verifiable credential draft - schema, type, format etc.

type CredentialDraftMetadata struct {
// Contexts Context URLs or inline context objects. When the first item is not a base VC context
// (https://www.w3.org/2018/credentials/v1 or https://www.w3.org/ns/credentials/v2), the base context
// of `vcdmVersion` is put in front of them.
Contexts *[]interface{} `json:"contexts,omitempty"`
CredentialSchema *string `json:"credentialSchema,omitempty"`

// CredentialSchemaType The `credentialSchema.type` emitted in a W3C VCDM credential. Defaults to
// FullJsonSchemaValidator2021 with a VCDM 1.1 context and to JsonSchema with a VCDM 2.0 one.
CredentialSchemaType *CredentialSchemaType `json:"credentialSchemaType,omitempty"`
ExpirationDate *time.Time `json:"expirationDate,omitempty"`

// Format jwt_vc_vcdm - VC using W3C VC Data Model as jwt
// sd_jwt_vc - VC using sd_jwt_vc data model as jwt
// mso_mdoc - VC using ISO/IEC 18013-5 mdoc format
Format CredentialFormat `json:"format"`

// Id When empty, a `urn:uuid:<UUIDv7>` is generated.
Id string `json:"id"`
Name string `json:"name"`

// RenderMethod The credential's VCDM `renderMethod` entries (W3C VCDM only): UNTP `RenderTemplate2024`
// (`type`, `name`, `mediaQuery`, `template`, `url`, `mediaType` `text/html` or `text/plain`, `digestMultibase`,
// nothing else, and a `template` or an https `url` with a `digestMultibase`) or W3C `TemplateRenderMethod` (`renderSuite` `html`,
// `card` or `nfc`, `renderProperty` JSON pointers, `template` a `data:` URL or an https URL, with a
// `digestMultibase` when remote). Other types are kept as given. Replaces the draft's render methods; an empty
// array removes them.
RenderMethod *RenderMethods `json:"renderMethod,omitempty"`

// Type Example: VerifiableCredential,VerifiableAttestation
Type string `json:"type"`
VcdmDescription *string `json:"vcdmDescription,omitempty"`
VcdmName *string `json:"vcdmName,omitempty"`

// VcdmVersion The W3C VC Data Model version of a W3C VCDM credential: `1.1` (https://www.w3.org/2018/credentials/v1) or
// `2.0` (https://www.w3.org/ns/credentials/v2). The wallet does not choose it. On a draft, the client sets it,
// and it defaults to 2.0; a draft whose `contexts` start with a base context must not name a different
// version. On an EBSI configuration (`trustChainVcdm`), it is the version of the trust chain credentials the
// wallet issues; that one defaults to 1.1.
VcdmVersion *VcdmVersion `json:"vcdmVersion,omitempty"`
}

type CredentialFormat​

CredentialFormat jwt_vc_vcdm - VC using W3C VC Data Model as jwt sd_jwt_vc - VC using sd_jwt_vc data model as jwt mso_mdoc - VC using ISO/IEC 18013-5 mdoc format

type CredentialFormat string

Defines values for CredentialFormat.

const (
JwtVcVcdm CredentialFormat = "jwt_vc_vcdm"
MsoMdoc CredentialFormat = "mso_mdoc"
SdJwtVc CredentialFormat = "sd_jwt_vc"
)

func (CredentialFormat) Valid​

func (e CredentialFormat) Valid() bool

Valid indicates whether the value is a known member of the CredentialFormat enum.

type CredentialGetParams​

CredentialGetParams defines parameters for CredentialGet.

type CredentialGetParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialGetResponse​

type CredentialGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialWrapper
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialGetResponse​

func ParseCredentialGetResponse(rsp *http.Response) (*CredentialGetResponse, error)

ParseCredentialGetResponse parses an HTTP response from a CredentialGetWithResponse call

func (CredentialGetResponse) ContentType​

func (r CredentialGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialGetResponse) GetBody​

func (r CredentialGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialGetResponse) GetJSON200​

func (r CredentialGetResponse) GetJSON200() *CredentialWrapper

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialGetResponse) GetJSON400​

func (r CredentialGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialGetResponse) GetJSON404​

func (r CredentialGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialGetResponse) GetJSON500​

func (r CredentialGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialGetResponse) Status​

func (r CredentialGetResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialGetResponse) StatusCode​

func (r CredentialGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialId​

CredentialId defines model for CredentialId.

type CredentialId = string

type CredentialIdObject​

CredentialIdObject defines model for CredentialIdObject.

type CredentialIdObject struct {
Id CredentialId `json:"id"`
}

type CredentialImport​

CredentialImport defines model for CredentialImport.

type CredentialImport struct {
Credential string `json:"credential"`
Name string `json:"name"`

// ValidateJsonLd If true, a VCDM 2.0 credential is refused unless its JSON-LD context defines every property.
ValidateJsonLd *bool `json:"validateJsonLd,omitempty"`
}

type CredentialImportJSONRequestBody​

CredentialImportJSONRequestBody defines body for CredentialImport for application/json ContentType.

type CredentialImportJSONRequestBody = CredentialImport

type CredentialImportParams​

CredentialImportParams defines parameters for CredentialImport.

type CredentialImportParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialImportResponse​

type CredentialImportResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialWrapper
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialImportResponse​

func ParseCredentialImportResponse(rsp *http.Response) (*CredentialImportResponse, error)

ParseCredentialImportResponse parses an HTTP response from a CredentialImportWithResponse call

func (CredentialImportResponse) ContentType​

func (r CredentialImportResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialImportResponse) GetBody​

func (r CredentialImportResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialImportResponse) GetJSON200​

func (r CredentialImportResponse) GetJSON200() *CredentialWrapper

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialImportResponse) GetJSON400​

func (r CredentialImportResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialImportResponse) GetJSON500​

func (r CredentialImportResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialImportResponse) Status​

func (r CredentialImportResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialImportResponse) StatusCode​

func (r CredentialImportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialIssuanceInit​

CredentialIssuanceInit Request for addition of already created VC draft to issuance queue for a client. If clientId is used, it will be used as the queue item id, otherwise a new ID will be created.

type CredentialIssuanceInit struct {
// ClientId The future holder identifier. Usually this is the DID of the holder wallet.
ClientId *string `json:"clientId,omitempty"`

// IdTokenRequestId If ID Token was used to identify the holder's wallet.
IdTokenRequestId *string `json:"idTokenRequestId,omitempty"`
IssuanceRequirementsToVerify *IssuanceRequirementsToVerify `json:"issuanceRequirementsToVerify,omitempty"`

// IssuerId Identifier used by the wallet to decide which issuer to use to issue the credential.
IssuerId string `json:"issuerId"`
}

type CredentialIssuanceInitJSONRequestBody​

CredentialIssuanceInitJSONRequestBody defines body for CredentialIssuanceInit for application/json ContentType.

type CredentialIssuanceInitJSONRequestBody = CredentialIssuanceInit

type CredentialIssuanceInitParams​

CredentialIssuanceInitParams defines parameters for CredentialIssuanceInit.

type CredentialIssuanceInitParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialIssuanceInitResponse​

type CredentialIssuanceInitResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialIssuanceInitResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialIssuanceInitResponse​

func ParseCredentialIssuanceInitResponse(rsp *http.Response) (*CredentialIssuanceInitResponse, error)

ParseCredentialIssuanceInitResponse parses an HTTP response from a CredentialIssuanceInitWithResponse call

func (CredentialIssuanceInitResponse) ContentType​

func (r CredentialIssuanceInitResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialIssuanceInitResponse) GetBody​

func (r CredentialIssuanceInitResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialIssuanceInitResponse) GetJSON200​

func (r CredentialIssuanceInitResponse) GetJSON200() *CredentialIssuanceInitResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialIssuanceInitResponse) GetJSON400​

func (r CredentialIssuanceInitResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialIssuanceInitResponse) GetJSON404​

func (r CredentialIssuanceInitResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialIssuanceInitResponse) GetJSON500​

func (r CredentialIssuanceInitResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialIssuanceInitResponse) Status​

func (r CredentialIssuanceInitResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialIssuanceInitResponse) StatusCode​

func (r CredentialIssuanceInitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialIssuanceInitResult​

CredentialIssuanceInitResult defines model for CredentialIssuanceInitResult.

type CredentialIssuanceInitResult struct {
IssuanceQueueItemId string `json:"issuanceQueueItemId"`
}

type CredentialIssueDirectJSONRequestBody​

CredentialIssueDirectJSONRequestBody defines body for CredentialIssueDirect for application/json ContentType.

type CredentialIssueDirectJSONRequestBody = CredentialIssueDirectRequest

type CredentialIssueDirectParams​

CredentialIssueDirectParams defines parameters for CredentialIssueDirect.

type CredentialIssueDirectParams struct {
WalletId string `json:"wallet-id"`

// 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`.
IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

type CredentialIssueDirectPublishFailure​

CredentialIssueDirectPublishFailure defines model for CredentialIssueDirectPublishFailure.

type CredentialIssueDirectPublishFailure struct {
CredentialId string `json:"credentialId"`
Error string `json:"error"`

// Message Details of the error; empty when there are none.
Message string `json:"message"`
}

type CredentialIssueDirectRequest​

CredentialIssueDirectRequest defines model for CredentialIssueDirectRequest.

type CredentialIssueDirectRequest struct {
// IssuerId The wallet's credential issuer that signs, as in `issue/init`. Defaults to the draft's issuer, or the
// wallet's only one.
IssuerId *string `json:"issuerId,omitempty"`

// Publish How to publish a credential as a UNTP link.
Publish *UntpLinkOptions `json:"publish,omitempty"`
}

type CredentialIssueDirectResponse​

type CredentialIssueDirectResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialIssueDirectResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *CredentialIssueDirectPublishFailure
}

func ParseCredentialIssueDirectResponse​

func ParseCredentialIssueDirectResponse(rsp *http.Response) (*CredentialIssueDirectResponse, error)

ParseCredentialIssueDirectResponse parses an HTTP response from a CredentialIssueDirectWithResponse call

func (CredentialIssueDirectResponse) ContentType​

func (r CredentialIssueDirectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialIssueDirectResponse) GetBody​

func (r CredentialIssueDirectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialIssueDirectResponse) GetJSON200​

func (r CredentialIssueDirectResponse) GetJSON200() *CredentialIssueDirectResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialIssueDirectResponse) GetJSON400​

func (r CredentialIssueDirectResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialIssueDirectResponse) GetJSON404​

func (r CredentialIssueDirectResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialIssueDirectResponse) GetJSON409​

func (r CredentialIssueDirectResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CredentialIssueDirectResponse) GetJSON422​

func (r CredentialIssueDirectResponse) GetJSON422() *Error

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CredentialIssueDirectResponse) GetJSON500​

func (r CredentialIssueDirectResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialIssueDirectResponse) GetJSON502​

func (r CredentialIssueDirectResponse) GetJSON502() *CredentialIssueDirectPublishFailure

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (CredentialIssueDirectResponse) Status​

func (r CredentialIssueDirectResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialIssueDirectResponse) StatusCode​

func (r CredentialIssueDirectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialIssueDirectResult​

CredentialIssueDirectResult defines model for CredentialIssueDirectResult.

type CredentialIssueDirectResult struct {
CredentialId string `json:"credentialId"`

// MediaType The media type of `raw`, e.g. `application/vc+jwt`.
MediaType string `json:"mediaType"`

// PublicUrl The public URL of the credential, with `publish`.
PublicUrl *string `json:"publicUrl,omitempty"`

// Raw The signed credential.
Raw string `json:"raw"`
}

type CredentialIssuerDefinition​

CredentialIssuerDefinition Default value of signingKeyIdentifier is DID.

type CredentialIssuerDefinition struct {
// AuthnProviderUrl Custom Login Provider URL. Required when using `oauthCustom` and `openidCustom` authorization.
AuthnProviderUrl *string `json:"authnProviderUrl,omitempty"`

// Authorization Type of authorization used in credential interactions.
// Supported types:
// `none` - No authorization needed, use when the issuer uses pre authorized offers.
// `oauthNoAuth` - Authorization using Oauth2 with mock AS that immediately returns the authorization code.
// `oauthCustom` - Authorization using Oauth2, AS uses custom authentication provider.
// `openid` - Authorization using openid, id_token/vp_token request required before returning authorization code.
// `openidCustom` - Authorization using openid, AS uses custom authentication provider.
// When interacting with EUDI Wallet, use `oauth`/`oauthCustom` authorization type.
Authorization *CredentialIssuerDefinitionAuthorization `json:"authorization,omitempty"`

// CredentialFormat jwt_vc_vcdm - VC using W3C VC Data Model as jwt
// sd_jwt_vc - VC using sd_jwt_vc data model as jwt
// mso_mdoc - VC using ISO/IEC 18013-5 mdoc format
CredentialFormat CredentialFormat `json:"credentialFormat"`

// CredentialIssuer Type of issuer to be used with credentials of the type specified.
CredentialIssuer CredentialIssuerDefinitionCredentialIssuer `json:"credentialIssuer"`

// CredentialType Type of credentials for which the specified credential issuer will be used.
CredentialType string `json:"credentialType"`

// Description Human readable issuer description
Description *string `json:"description,omitempty"`

// DisclosableClaims JSON paths of credential claims which will support being disclosed partially.
DisclosableClaims *[]string `json:"disclosableClaims,omitempty"`

// Id Unique identifier of the issuer
Id string `json:"id"`
IssuerConfiguration *CredentialIssuerDefinition_IssuerConfiguration `json:"issuerConfiguration,omitempty"`

// Name Human readable issuer name
Name string `json:"name"`

// NumericStatusListIndex If true, the `statusListIndex` of a W3C Bitstring Status List entry is written as a JSON number
// instead of the string the W3C Bitstring Status List v1.0 specification defines, for credential
// schemas that type it as a number (such as UNTP 0.7.0). W3C VCDM only. Defaults to false.
NumericStatusListIndex *bool `json:"numericStatusListIndex,omitempty"`

// RequiresDpop When true, the token request for this credential must carry a DPoP proof (RFC 9449), so the access
// token is sender-constrained (FAPI 2.0 Security Profile §5.3.2.1). Defaults to false (DPoP optional).
RequiresDpop *bool `json:"requiresDpop,omitempty"`

// RequiresKeyAttestation When true, the credential request proof must carry a key attestation of the holder key, either as the
// `key_attestation` header of a `jwt` proof or as an `attestation` proof (OID4VCI 1.0 Appendix D).
// Defaults to false.
RequiresKeyAttestation *bool `json:"requiresKeyAttestation,omitempty"`

// RequiresWalletInstanceAttestation When true, credential issuance for this issuer requires the wallet to present a valid
// EUDI Wallet Instance Attestation (WIA, TS3). The issuer verifies the WIA signature,
// expiry, status and key binding before issuing. Defaults to false (no WIA check).
RequiresWalletInstanceAttestation *bool `json:"requiresWalletInstanceAttestation,omitempty"`
SigningKeyIdentifier *SigningKeyIdentifier `json:"signingKeyIdentifier,omitempty"`

// StatusPurpose Purpose of the status entry attached to the issued credentials. Defaults to `revocation`.
// `suspension` needs a VCDM 2.0 credential, whose status is a W3C Bitstring Status List entry.
StatusPurpose *StatusPurpose `json:"statusPurpose,omitempty"`

// VcdmIssuer Properties of the VCDM `issuer` object besides `id`, which is always the wallet's identifier
// (W3C VCDM only).
VcdmIssuer *VcdmIssuerProperties `json:"vcdmIssuer,omitempty"`

// WalletInitiated When true, a wallet may request this credential without an offer, by an authorization request naming
// its credential configuration in `authorization_details` or `scope` (OID4VCI 1.0 §5.1). The holder then
// authorizes as `authorization` requires; with `none` or `oauthNoAuth` anyone may obtain the credential.
// Defaults to false.
WalletInitiated *bool `json:"walletInitiated,omitempty"`
}

type CredentialIssuerDefinitionAuthorization​

CredentialIssuerDefinitionAuthorization Type of authorization used in credential interactions. Supported types: `none` - No authorization needed, use when the issuer uses pre authorized offers. `oauthNoAuth` - Authorization using Oauth2 with mock AS that immediately returns the authorization code. `oauthCustom` - Authorization using Oauth2, AS uses custom authentication provider. `openid` - Authorization using openid, id_token/vp_token request required before returning authorization code. `openidCustom` - Authorization using openid, AS uses custom authentication provider. When interacting with EUDI Wallet, use `oauth`/`oauthCustom` authorization type.

type CredentialIssuerDefinitionAuthorization string

Defines values for CredentialIssuerDefinitionAuthorization.

const (
CredentialIssuerDefinitionAuthorizationNone CredentialIssuerDefinitionAuthorization = "none"
CredentialIssuerDefinitionAuthorizationOauthCustom CredentialIssuerDefinitionAuthorization = "oauthCustom"
CredentialIssuerDefinitionAuthorizationOauthNoAuth CredentialIssuerDefinitionAuthorization = "oauthNoAuth"
CredentialIssuerDefinitionAuthorizationOpenid CredentialIssuerDefinitionAuthorization = "openid"
CredentialIssuerDefinitionAuthorizationOpenidCustom CredentialIssuerDefinitionAuthorization = "openidCustom"
)

func (CredentialIssuerDefinitionAuthorization) Valid​

func (e CredentialIssuerDefinitionAuthorization) Valid() bool

Valid indicates whether the value is a known member of the CredentialIssuerDefinitionAuthorization enum.

type CredentialIssuerDefinitionCredentialIssuer​

CredentialIssuerDefinitionCredentialIssuer Type of issuer to be used with credentials of the type specified.

type CredentialIssuerDefinitionCredentialIssuer string

Defines values for CredentialIssuerDefinitionCredentialIssuer.

const (
CredentialRequirements CredentialIssuerDefinitionCredentialIssuer = "CredentialRequirements"
CtRevocable CredentialIssuerDefinitionCredentialIssuer = "CtRevocable"
CtWalletSame CredentialIssuerDefinitionCredentialIssuer = "CtWalletSame"
IssuanceQueue CredentialIssuerDefinitionCredentialIssuer = "IssuanceQueue"
VPDriven CredentialIssuerDefinitionCredentialIssuer = "VPDriven"
)

func (CredentialIssuerDefinitionCredentialIssuer) Valid​

func (e CredentialIssuerDefinitionCredentialIssuer) Valid() bool

Valid indicates whether the value is a known member of the CredentialIssuerDefinitionCredentialIssuer enum.

type CredentialIssuerDefinition_IssuerConfiguration​

CredentialIssuerDefinition_IssuerConfiguration defines model for CredentialIssuerDefinition.IssuerConfiguration.

type CredentialIssuerDefinition_IssuerConfiguration struct {
// contains filtered or unexported fields
}

func (CredentialIssuerDefinition_IssuerConfiguration) AsCredentialRequirementsIssuerConfig​

func (t CredentialIssuerDefinition_IssuerConfiguration) AsCredentialRequirementsIssuerConfig() (CredentialRequirementsIssuerConfig, error)

AsCredentialRequirementsIssuerConfig returns the union data inside the CredentialIssuerDefinition_IssuerConfiguration as a CredentialRequirementsIssuerConfig

func (CredentialIssuerDefinition_IssuerConfiguration) AsCtWalletSameIssuerConfig​

func (t CredentialIssuerDefinition_IssuerConfiguration) AsCtWalletSameIssuerConfig() (CtWalletSameIssuerConfig, error)

AsCtWalletSameIssuerConfig returns the union data inside the CredentialIssuerDefinition_IssuerConfiguration as a CtWalletSameIssuerConfig

func (CredentialIssuerDefinition_IssuerConfiguration) AsVPDrivenIssuerConfig​

func (t CredentialIssuerDefinition_IssuerConfiguration) AsVPDrivenIssuerConfig() (VPDrivenIssuerConfig, error)

AsVPDrivenIssuerConfig returns the union data inside the CredentialIssuerDefinition_IssuerConfiguration as a VPDrivenIssuerConfig

func (*CredentialIssuerDefinition_IssuerConfiguration) FromCredentialRequirementsIssuerConfig​

func (t *CredentialIssuerDefinition_IssuerConfiguration) FromCredentialRequirementsIssuerConfig(v CredentialRequirementsIssuerConfig) error

FromCredentialRequirementsIssuerConfig overwrites any union data inside the CredentialIssuerDefinition_IssuerConfiguration as the provided CredentialRequirementsIssuerConfig

func (*CredentialIssuerDefinition_IssuerConfiguration) FromCtWalletSameIssuerConfig​

func (t *CredentialIssuerDefinition_IssuerConfiguration) FromCtWalletSameIssuerConfig(v CtWalletSameIssuerConfig) error

FromCtWalletSameIssuerConfig overwrites any union data inside the CredentialIssuerDefinition_IssuerConfiguration as the provided CtWalletSameIssuerConfig

func (*CredentialIssuerDefinition_IssuerConfiguration) FromVPDrivenIssuerConfig​

func (t *CredentialIssuerDefinition_IssuerConfiguration) FromVPDrivenIssuerConfig(v VPDrivenIssuerConfig) error

FromVPDrivenIssuerConfig overwrites any union data inside the CredentialIssuerDefinition_IssuerConfiguration as the provided VPDrivenIssuerConfig

func (CredentialIssuerDefinition_IssuerConfiguration) MarshalJSON​

func (t CredentialIssuerDefinition_IssuerConfiguration) MarshalJSON() ([]byte, error)

func (*CredentialIssuerDefinition_IssuerConfiguration) MergeCredentialRequirementsIssuerConfig​

func (t *CredentialIssuerDefinition_IssuerConfiguration) MergeCredentialRequirementsIssuerConfig(v CredentialRequirementsIssuerConfig) error

MergeCredentialRequirementsIssuerConfig performs a merge with any union data inside the CredentialIssuerDefinition_IssuerConfiguration, using the provided CredentialRequirementsIssuerConfig

func (*CredentialIssuerDefinition_IssuerConfiguration) MergeCtWalletSameIssuerConfig​

func (t *CredentialIssuerDefinition_IssuerConfiguration) MergeCtWalletSameIssuerConfig(v CtWalletSameIssuerConfig) error

MergeCtWalletSameIssuerConfig performs a merge with any union data inside the CredentialIssuerDefinition_IssuerConfiguration, using the provided CtWalletSameIssuerConfig

func (*CredentialIssuerDefinition_IssuerConfiguration) MergeVPDrivenIssuerConfig​

func (t *CredentialIssuerDefinition_IssuerConfiguration) MergeVPDrivenIssuerConfig(v VPDrivenIssuerConfig) error

MergeVPDrivenIssuerConfig performs a merge with any union data inside the CredentialIssuerDefinition_IssuerConfiguration, using the provided VPDrivenIssuerConfig

func (*CredentialIssuerDefinition_IssuerConfiguration) UnmarshalJSON​

func (t *CredentialIssuerDefinition_IssuerConfiguration) UnmarshalJSON(b []byte) error

type CredentialList​

CredentialList defines model for CredentialList.

type CredentialList struct {
List []CredentialMetadata `json:"list"`

// Next URL of the next page. Empty on the last page.
Next string `json:"next"`
}

type CredentialListParams​

CredentialListParams defines parameters for CredentialList.

type CredentialListParams struct {
// Interaction The interaction that is the origin of the credential. At least one of `interaction` and `type` is required;
// when both are given, credentials must match both.
Interaction *CredentialListParamsInteraction `form:"interaction,omitempty" json:"interaction,omitempty"`

// Type The credential type as comma delimited list representing a single type. At least one of `interaction` and
// `type` is required; when both are given, credentials must match both.
// I.e. VerifiableCredential,VerifiableAttestation,Europass.
Type *string `form:"type,omitempty" json:"type,omitempty"`

// Valid The credential validity flag. If not provided credentials with any validity will be returned.
Valid *bool `form:"valid,omitempty" json:"valid,omitempty"`

// Limit The number of items
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

// NextMarker Marking the next set of items
NextMarker *string `form:"nextMarker,omitempty" json:"nextMarker,omitempty"`

// Sort Sort flag controls the sort direction by the time updated or issued
Sort *ListSort `form:"sort,omitempty" json:"sort,omitempty"`

// SearchPath JSON path specification for the filter to apply
SearchPath *string `form:"searchPath,omitempty" json:"searchPath,omitempty"`

// Filter JSON schema filter used to select the credentials (base64 encoded)
Filter *[]byte `form:"filter,omitempty" json:"filter,omitempty"`
WalletId string `json:"wallet-id"`
}

type CredentialListParamsInteraction​

CredentialListParamsInteraction defines parameters for CredentialList.

type CredentialListParamsInteraction string

Defines values for CredentialListParamsInteraction.

const (
CredentialListParamsInteractionIssuance CredentialListParamsInteraction = "issuance"
CredentialListParamsInteractionReceive CredentialListParamsInteraction = "receive"
CredentialListParamsInteractionStatusList CredentialListParamsInteraction = "statusList"
CredentialListParamsInteractionTaoCredentials CredentialListParamsInteraction = "taoCredentials"
)

func (CredentialListParamsInteraction) Valid​

func (e CredentialListParamsInteraction) Valid() bool

Valid indicates whether the value is a known member of the CredentialListParamsInteraction enum.

type CredentialListResponse​

type CredentialListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialListResponse​

func ParseCredentialListResponse(rsp *http.Response) (*CredentialListResponse, error)

ParseCredentialListResponse parses an HTTP response from a CredentialListWithResponse call

func (CredentialListResponse) ContentType​

func (r CredentialListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialListResponse) GetBody​

func (r CredentialListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialListResponse) GetJSON200​

func (r CredentialListResponse) GetJSON200() *CredentialList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialListResponse) GetJSON400​

func (r CredentialListResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialListResponse) GetJSON500​

func (r CredentialListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialListResponse) Status​

func (r CredentialListResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialListResponse) StatusCode​

func (r CredentialListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialMetadata​

CredentialMetadata Any Credential related accompanying key, value pairs that are not part of the Issued Credential

type CredentialMetadata struct {
Created time.Time `json:"created"`
DisclosableFields *[]string `json:"disclosableFields,omitempty"`
ExpirationDate *time.Time `json:"expirationDate,omitempty"`
Id string `json:"id"`
Interaction CredentialMetadataInteraction `json:"interaction"`

// IssuanceDate Omitted for a draft.
IssuanceDate *time.Time `json:"issuanceDate,omitempty"`

// IssuerDisplay Array of objects, where each object contains display properties of a Credential Issuer for a certain language.
IssuerDisplay *[]IssuerDisplayItem `json:"issuerDisplay,omitempty"`

// IssuerId ID of the credential issuer (`CredentialIssuerDefinition.id`, from the wallet configuration or the
// trust framework) that issues the draft. When set, the draft can only be queued for issuance by this
// issuer.
IssuerId *DraftIssuerId `json:"issuerId,omitempty"`
IssuerIdentifier string `json:"issuerIdentifier"`
Message *string `json:"message,omitempty"`
Name string `json:"name"`
OwnerId string `json:"ownerId"`
Status CredentialMetadataStatus `json:"status"`

// Type Example: VerifiableCredential,VerifiableAttestation
Type string `json:"type"`
Updated time.Time `json:"updated"`

// VerificationAutoAccept Flag to set automatic acceptance of verification requests which resolve to this credential
VerificationAutoAccept bool `json:"verificationAutoAccept"`
WalletId string `json:"walletId"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (CredentialMetadata) Get​

func (a CredentialMetadata) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for CredentialMetadata. Returns the specified element and whether it was found

func (CredentialMetadata) MarshalJSON​

func (a CredentialMetadata) MarshalJSON() ([]byte, error)

Override default JSON handling for CredentialMetadata to handle AdditionalProperties

func (*CredentialMetadata) Set​

func (a *CredentialMetadata) Set(fieldName string, value interface{})

Setter for additional properties for CredentialMetadata

func (*CredentialMetadata) UnmarshalJSON​

func (a *CredentialMetadata) UnmarshalJSON(b []byte) error

Override default JSON handling for CredentialMetadata to handle AdditionalProperties

type CredentialMetadataInteraction​

CredentialMetadataInteraction defines model for CredentialMetadata.Interaction.

type CredentialMetadataInteraction string

Defines values for CredentialMetadataInteraction.

const (
CredentialMetadataInteractionIssuance CredentialMetadataInteraction = "issuance"
CredentialMetadataInteractionReceive CredentialMetadataInteraction = "receive"
CredentialMetadataInteractionStatusList CredentialMetadataInteraction = "statusList"
CredentialMetadataInteractionTaoCredentials CredentialMetadataInteraction = "taoCredentials"
)

func (CredentialMetadataInteraction) Valid​

func (e CredentialMetadataInteraction) Valid() bool

Valid indicates whether the value is a known member of the CredentialMetadataInteraction enum.

type CredentialMetadataPatchJSONRequestBody​

CredentialMetadataPatchJSONRequestBody defines body for CredentialMetadataPatch for application/json ContentType.

type CredentialMetadataPatchJSONRequestBody = CredentialMetadataPatchPayload

type CredentialMetadataPatchParams​

CredentialMetadataPatchParams defines parameters for CredentialMetadataPatch.

type CredentialMetadataPatchParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialMetadataPatchPayload​

CredentialMetadataPatchPayload defines model for CredentialMetadataPatchPayload.

type CredentialMetadataPatchPayload struct {
// IssuerId ID of the credential issuer (`CredentialIssuerDefinition.id`, from the wallet configuration or the
// trust framework) that issues the draft. When set, the draft can only be queued for issuance by this
// issuer.
IssuerId *DraftIssuerId `json:"issuerId,omitempty"`
Name *string `json:"name,omitempty"`

// VerificationAutoAccept Flag to set automatic acceptance of verification requests which resolve to this credential
VerificationAutoAccept *bool `json:"verificationAutoAccept,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (CredentialMetadataPatchPayload) Get​

func (a CredentialMetadataPatchPayload) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for CredentialMetadataPatchPayload. Returns the specified element and whether it was found

func (CredentialMetadataPatchPayload) MarshalJSON​

func (a CredentialMetadataPatchPayload) MarshalJSON() ([]byte, error)

Override default JSON handling for CredentialMetadataPatchPayload to handle AdditionalProperties

func (*CredentialMetadataPatchPayload) Set​

func (a *CredentialMetadataPatchPayload) Set(fieldName string, value interface{})

Setter for additional properties for CredentialMetadataPatchPayload

func (*CredentialMetadataPatchPayload) UnmarshalJSON​

func (a *CredentialMetadataPatchPayload) UnmarshalJSON(b []byte) error

Override default JSON handling for CredentialMetadataPatchPayload to handle AdditionalProperties

type CredentialMetadataPatchResponse​

type CredentialMetadataPatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialIdObject
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialMetadataPatchResponse​

func ParseCredentialMetadataPatchResponse(rsp *http.Response) (*CredentialMetadataPatchResponse, error)

ParseCredentialMetadataPatchResponse parses an HTTP response from a CredentialMetadataPatchWithResponse call

func (CredentialMetadataPatchResponse) ContentType​

func (r CredentialMetadataPatchResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialMetadataPatchResponse) GetBody​

func (r CredentialMetadataPatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialMetadataPatchResponse) GetJSON200​

func (r CredentialMetadataPatchResponse) GetJSON200() *CredentialIdObject

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialMetadataPatchResponse) GetJSON400​

func (r CredentialMetadataPatchResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialMetadataPatchResponse) GetJSON404​

func (r CredentialMetadataPatchResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialMetadataPatchResponse) GetJSON500​

func (r CredentialMetadataPatchResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialMetadataPatchResponse) Status​

func (r CredentialMetadataPatchResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialMetadataPatchResponse) StatusCode​

func (r CredentialMetadataPatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialMetadataStatus​

CredentialMetadataStatus defines model for CredentialMetadata.Status.

type CredentialMetadataStatus string

Defines values for CredentialMetadataStatus.

const (
CredentialMetadataStatusDraft CredentialMetadataStatus = "draft"
CredentialMetadataStatusInvalid CredentialMetadataStatus = "invalid"
CredentialMetadataStatusRevoked CredentialMetadataStatus = "revoked"
CredentialMetadataStatusSuspended CredentialMetadataStatus = "suspended"
CredentialMetadataStatusValid CredentialMetadataStatus = "valid"
)

func (CredentialMetadataStatus) Valid​

func (e CredentialMetadataStatus) Valid() bool

Valid indicates whether the value is a known member of the CredentialMetadataStatus enum.

type CredentialNotification​

CredentialNotification defines model for CredentialNotification.

type CredentialNotification struct {
CredentialId string `json:"credentialId"`
CredentialType string `json:"credentialType"`

// EventType `credential.accepted`, `credential.failed` and `credential.deleted` are what the holder of a credential
// the wallet issued reports of it: stored, not verified or stored, deleted (OID4VCI 1.0 §11).
EventType CredentialNotificationEventType `json:"eventType"`
IssuerDid string `json:"issuerDid"`
OfferId string `json:"offerId"`
}

type CredentialNotificationEventType​

CredentialNotificationEventType `credential.accepted`, `credential.failed` and `credential.deleted` are what the holder of a credential the wallet issued reports of it: stored, not verified or stored, deleted (OID4VCI 1.0 §11).

type CredentialNotificationEventType string

Defines values for CredentialNotificationEventType.

const (
CredentialNotificationEventTypeCredentialAccepted CredentialNotificationEventType = "credential.accepted"
CredentialNotificationEventTypeCredentialCreated CredentialNotificationEventType = "credential.created"
CredentialNotificationEventTypeCredentialDeleted CredentialNotificationEventType = "credential.deleted"
CredentialNotificationEventTypeCredentialFailed CredentialNotificationEventType = "credential.failed"
CredentialNotificationEventTypeCredentialIssued CredentialNotificationEventType = "credential.issued"
CredentialNotificationEventTypeCredentialReceived CredentialNotificationEventType = "credential.received"
CredentialNotificationEventTypeCredentialRevoked CredentialNotificationEventType = "credential.revoked"
CredentialNotificationEventTypeCredentialSuspended CredentialNotificationEventType = "credential.suspended"
CredentialNotificationEventTypeCredentialUnsuspended CredentialNotificationEventType = "credential.unsuspended"
)

func (CredentialNotificationEventType) Valid​

func (e CredentialNotificationEventType) Valid() bool

Valid indicates whether the value is a known member of the CredentialNotificationEventType enum.

type CredentialPatchJSONRequestBody​

CredentialPatchJSONRequestBody defines body for CredentialPatch for application/json ContentType.

type CredentialPatchJSONRequestBody = CredentialPatchPayload

type CredentialPatchParams​

CredentialPatchParams defines parameters for CredentialPatch.

type CredentialPatchParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialPatchPayload​

CredentialPatchPayload A Credential container used to create credentials with metadata.

type CredentialPatchPayload struct {
// Contexts Replaces the draft's contexts; the same rules apply as on create.
Contexts *[]interface{} `json:"contexts,omitempty"`

// CredentialSchemaType The `credentialSchema.type` emitted in a W3C VCDM credential. Defaults to
// FullJsonSchemaValidator2021 with a VCDM 1.1 context and to JsonSchema with a VCDM 2.0 one.
CredentialSchemaType *CredentialSchemaType `json:"credentialSchemaType,omitempty"`

// CredentialSubject Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential.
// When the credential is in W3C VCDM, the subject is in its compacted form with claim keys in their full IRI form.
CredentialSubject CredentialSubject `json:"credentialSubject"`

// IssuerId ID of the credential issuer (`CredentialIssuerDefinition.id`, from the wallet configuration or the
// trust framework) that issues the draft. When set, the draft can only be queued for issuance by this
// issuer.
IssuerId *DraftIssuerId `json:"issuerId,omitempty"`
Name string `json:"name"`

// RenderMethod The credential's VCDM `renderMethod` entries (W3C VCDM only): UNTP `RenderTemplate2024`
// (`type`, `name`, `mediaQuery`, `template`, `url`, `mediaType` `text/html` or `text/plain`, `digestMultibase`,
// nothing else, and a `template` or an https `url` with a `digestMultibase`) or W3C `TemplateRenderMethod` (`renderSuite` `html`,
// `card` or `nfc`, `renderProperty` JSON pointers, `template` a `data:` URL or an https URL, with a
// `digestMultibase` when remote). Other types are kept as given. Replaces the draft's render methods; an empty
// array removes them.
RenderMethod *RenderMethods `json:"renderMethod,omitempty"`

// ValidateJsonLd If true, a VCDM 2.0 draft must define every property in its JSON-LD context, now and when it is
// issued. Unset keeps what the draft was created with.
ValidateJsonLd *bool `json:"validateJsonLd,omitempty"`

// ValidateSchema If true, the credential draft is checked against its schema. Defaults to true.
ValidateSchema *bool `json:"validateSchema,omitempty"`
VcdmDescription *string `json:"vcdmDescription,omitempty"`
VcdmName *string `json:"vcdmName,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (CredentialPatchPayload) Get​

func (a CredentialPatchPayload) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for CredentialPatchPayload. Returns the specified element and whether it was found

func (CredentialPatchPayload) MarshalJSON​

func (a CredentialPatchPayload) MarshalJSON() ([]byte, error)

Override default JSON handling for CredentialPatchPayload to handle AdditionalProperties

func (*CredentialPatchPayload) Set​

func (a *CredentialPatchPayload) Set(fieldName string, value interface{})

Setter for additional properties for CredentialPatchPayload

func (*CredentialPatchPayload) UnmarshalJSON​

func (a *CredentialPatchPayload) UnmarshalJSON(b []byte) error

Override default JSON handling for CredentialPatchPayload to handle AdditionalProperties

type CredentialPatchResponse​

type CredentialPatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialIdObject
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialPatchResponse​

func ParseCredentialPatchResponse(rsp *http.Response) (*CredentialPatchResponse, error)

ParseCredentialPatchResponse parses an HTTP response from a CredentialPatchWithResponse call

func (CredentialPatchResponse) ContentType​

func (r CredentialPatchResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialPatchResponse) GetBody​

func (r CredentialPatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialPatchResponse) GetJSON200​

func (r CredentialPatchResponse) GetJSON200() *CredentialIdObject

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialPatchResponse) GetJSON400​

func (r CredentialPatchResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialPatchResponse) GetJSON404​

func (r CredentialPatchResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialPatchResponse) GetJSON500​

func (r CredentialPatchResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialPatchResponse) Status​

func (r CredentialPatchResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialPatchResponse) StatusCode​

func (r CredentialPatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialPayloadGetParams​

CredentialPayloadGetParams defines parameters for CredentialPayloadGet.

type CredentialPayloadGetParams struct {
// Form Form of the returned credential payload (supported only with JSON-LD credentials)
Form *string `form:"form,omitempty" json:"form,omitempty"`

// Contexts JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base
// VC context is always applied. When omitted, all contexts of the credential are applied.
Contexts *[]string `form:"contexts,omitempty" json:"contexts,omitempty"`
WalletId string `json:"wallet-id"`
}

type CredentialPayloadGetResponse​

type CredentialPayloadGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *map[string]interface{}
// ApplicationldJSON200 the response for an HTTP 200 `application/ld+json` response
ApplicationldJSON200 *map[string]interface{}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialPayloadGetResponse​

func ParseCredentialPayloadGetResponse(rsp *http.Response) (*CredentialPayloadGetResponse, error)

ParseCredentialPayloadGetResponse parses an HTTP response from a CredentialPayloadGetWithResponse call

func (CredentialPayloadGetResponse) ContentType​

func (r CredentialPayloadGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialPayloadGetResponse) GetApplicationldJSON200​

func (r CredentialPayloadGetResponse) GetApplicationldJSON200() *map[string]interface{}

GetApplicationldJSON200 returns the response for an HTTP 200 `application/ld+json` response

func (CredentialPayloadGetResponse) GetBody​

func (r CredentialPayloadGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialPayloadGetResponse) GetJSON200​

func (r CredentialPayloadGetResponse) GetJSON200() *map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialPayloadGetResponse) GetJSON400​

func (r CredentialPayloadGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialPayloadGetResponse) GetJSON404​

func (r CredentialPayloadGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialPayloadGetResponse) GetJSON500​

func (r CredentialPayloadGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialPayloadGetResponse) Status​

func (r CredentialPayloadGetResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialPayloadGetResponse) StatusCode​

func (r CredentialPayloadGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialPropertyToVerify​

CredentialPropertyToVerify Credential property that will be verified. `verifySchema` is only applicable in W3C VCDM credentials. With other types, this field will be ignored.

type CredentialPropertyToVerify string

Defines values for CredentialPropertyToVerify.

const (
VerifyExpiration CredentialPropertyToVerify = "verifyExpiration"
VerifyKeyBinding CredentialPropertyToVerify = "verifyKeyBinding"
VerifySchema CredentialPropertyToVerify = "verifySchema"
VerifyStatus CredentialPropertyToVerify = "verifyStatus"
)

func (CredentialPropertyToVerify) Valid​

func (e CredentialPropertyToVerify) Valid() bool

Valid indicates whether the value is a known member of the CredentialPropertyToVerify enum.

type CredentialRawGetParams​

CredentialRawGetParams defines parameters for CredentialRawGet.

type CredentialRawGetParams struct {
// DisclosedClaims List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
DisclosedClaims *[]string `form:"disclosed_claims,omitempty" json:"disclosed_claims,omitempty"`
WalletId string `json:"wallet-id"`
}

type CredentialRawGetResponse​

type CredentialRawGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialRawGetResponse​

func ParseCredentialRawGetResponse(rsp *http.Response) (*CredentialRawGetResponse, error)

ParseCredentialRawGetResponse parses an HTTP response from a CredentialRawGetWithResponse call

func (CredentialRawGetResponse) ContentType​

func (r CredentialRawGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialRawGetResponse) GetBody​

func (r CredentialRawGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialRawGetResponse) GetJSON400​

func (r CredentialRawGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialRawGetResponse) GetJSON404​

func (r CredentialRawGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialRawGetResponse) GetJSON500​

func (r CredentialRawGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialRawGetResponse) Status​

func (r CredentialRawGetResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialRawGetResponse) StatusCode​

func (r CredentialRawGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialRenderMethodsParams​

CredentialRenderMethodsParams defines parameters for CredentialRenderMethods.

type CredentialRenderMethodsParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialRenderMethodsResponse​

type CredentialRenderMethodsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]RenderMethodInfo
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialRenderMethodsResponse​

func ParseCredentialRenderMethodsResponse(rsp *http.Response) (*CredentialRenderMethodsResponse, error)

ParseCredentialRenderMethodsResponse parses an HTTP response from a CredentialRenderMethodsWithResponse call

func (CredentialRenderMethodsResponse) ContentType​

func (r CredentialRenderMethodsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialRenderMethodsResponse) GetBody​

func (r CredentialRenderMethodsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialRenderMethodsResponse) GetJSON200​

func (r CredentialRenderMethodsResponse) GetJSON200() *[]RenderMethodInfo

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialRenderMethodsResponse) GetJSON400​

func (r CredentialRenderMethodsResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialRenderMethodsResponse) GetJSON404​

func (r CredentialRenderMethodsResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialRenderMethodsResponse) GetJSON500​

func (r CredentialRenderMethodsResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialRenderMethodsResponse) Status​

func (r CredentialRenderMethodsResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialRenderMethodsResponse) StatusCode​

func (r CredentialRenderMethodsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialRenderParams​

CredentialRenderParams defines parameters for CredentialRender.

type CredentialRenderParams struct {
// Index The index of the render method to use, in the credential's `renderMethod`.
Index *RenderIndex `form:"index,omitempty" json:"index,omitempty"`

// Suite Use the first render method of this suite.
Suite *RenderSuite `form:"suite,omitempty" json:"suite,omitempty"`

// MediaQuery Use the first render method with exactly this `mediaQuery`.
MediaQuery *RenderMediaQuery `form:"mediaQuery,omitempty" json:"mediaQuery,omitempty"`
WalletId string `json:"wallet-id"`
}

type CredentialRenderResponse​

type CredentialRenderResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *map[string]interface{}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *UnprocessableEntityError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Error
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *CredentialRenderResponse200Headers
}

func ParseCredentialRenderResponse​

func ParseCredentialRenderResponse(rsp *http.Response) (*CredentialRenderResponse, error)

ParseCredentialRenderResponse parses an HTTP response from a CredentialRenderWithResponse call

func (CredentialRenderResponse) ContentType​

func (r CredentialRenderResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialRenderResponse) GetBody​

func (r CredentialRenderResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialRenderResponse) GetJSON200​

func (r CredentialRenderResponse) GetJSON200() *map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialRenderResponse) GetJSON400​

func (r CredentialRenderResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialRenderResponse) GetJSON404​

func (r CredentialRenderResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialRenderResponse) GetJSON422​

func (r CredentialRenderResponse) GetJSON422() *UnprocessableEntityError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CredentialRenderResponse) GetJSON500​

func (r CredentialRenderResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialRenderResponse) GetJSON503​

func (r CredentialRenderResponse) GetJSON503() *Error

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (CredentialRenderResponse) Status​

func (r CredentialRenderResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialRenderResponse) StatusCode​

func (r CredentialRenderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialRenderResponse200Headers​

CredentialRenderResponse200Headers the declared response headers of an HTTP 200 response for CredentialRender

type CredentialRenderResponse200Headers struct {
XRenderMethodIndex *int
}

type CredentialRequest​

CredentialRequest defines model for CredentialRequest.

type CredentialRequest struct {
// Format jwt_vc_vcdm - VC using W3C VC Data Model as jwt
// sd_jwt_vc - VC using sd_jwt_vc data model as jwt
// mso_mdoc - VC using ISO/IEC 18013-5 mdoc format
Format CredentialFormat `json:"format"`
State *string `json:"state,omitempty"`
Types string `json:"types"`
Url string `json:"url"`
}

type CredentialRequestInitJSONRequestBody​

CredentialRequestInitJSONRequestBody defines body for CredentialRequestInit for application/json ContentType.

type CredentialRequestInitJSONRequestBody = CredentialRequest

type CredentialRequestInitParams​

CredentialRequestInitParams defines parameters for CredentialRequestInit.

type CredentialRequestInitParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialRequestInitResponse​

type CredentialRequestInitResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]CredentialId
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseCredentialRequestInitResponse​

func ParseCredentialRequestInitResponse(rsp *http.Response) (*CredentialRequestInitResponse, error)

ParseCredentialRequestInitResponse parses an HTTP response from a CredentialRequestInitWithResponse call

func (CredentialRequestInitResponse) ContentType​

func (r CredentialRequestInitResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialRequestInitResponse) GetBody​

func (r CredentialRequestInitResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialRequestInitResponse) GetJSON200​

func (r CredentialRequestInitResponse) GetJSON200() *[]CredentialId

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CredentialRequestInitResponse) GetJSON400​

func (r CredentialRequestInitResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialRequestInitResponse) GetJSON404​

func (r CredentialRequestInitResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialRequestInitResponse) GetJSON500​

func (r CredentialRequestInitResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialRequestInitResponse) GetJSON502​

func (r CredentialRequestInitResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (CredentialRequestInitResponse) Status​

func (r CredentialRequestInitResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialRequestInitResponse) StatusCode​

func (r CredentialRequestInitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialRequirementsIssuerConfig​

CredentialRequirementsIssuerConfig defines model for CredentialRequirementsIssuerConfig.

type CredentialRequirementsIssuerConfig struct {
// CredentialVerifierId ID of the verifier used for verification of presented credential.
CredentialVerifierId string `json:"credentialVerifierId"`
}

type CredentialRevokeParams​

CredentialRevokeParams defines parameters for CredentialRevoke.

type CredentialRevokeParams struct {
// 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`.
IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
WalletId string `json:"wallet-id"`
}

type CredentialRevokeResponse​

type CredentialRevokeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialRevokeResponse​

func ParseCredentialRevokeResponse(rsp *http.Response) (*CredentialRevokeResponse, error)

ParseCredentialRevokeResponse parses an HTTP response from a CredentialRevokeWithResponse call

func (CredentialRevokeResponse) ContentType​

func (r CredentialRevokeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialRevokeResponse) GetBody​

func (r CredentialRevokeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialRevokeResponse) GetJSON400​

func (r CredentialRevokeResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialRevokeResponse) GetJSON404​

func (r CredentialRevokeResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialRevokeResponse) GetJSON409​

func (r CredentialRevokeResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CredentialRevokeResponse) GetJSON422​

func (r CredentialRevokeResponse) GetJSON422() *Error

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CredentialRevokeResponse) GetJSON500​

func (r CredentialRevokeResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialRevokeResponse) Status​

func (r CredentialRevokeResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialRevokeResponse) StatusCode​

func (r CredentialRevokeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialSchemaType​

CredentialSchemaType The `credentialSchema.type` emitted in a W3C VCDM credential. Defaults to FullJsonSchemaValidator2021 with a VCDM 1.1 context and to JsonSchema with a VCDM 2.0 one.

type CredentialSchemaType string

Defines values for CredentialSchemaType.

const (
FullJsonSchemaValidator2021 CredentialSchemaType = "FullJsonSchemaValidator2021"
JsonSchema CredentialSchemaType = "JsonSchema"
)

func (CredentialSchemaType) Valid​

func (e CredentialSchemaType) Valid() bool

Valid indicates whether the value is a known member of the CredentialSchemaType enum.

type CredentialSubject​

CredentialSubject Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential. When the credential is in W3C VCDM, the subject is in its compacted form with claim keys in their full IRI form.

type CredentialSubject struct {
// contains filtered or unexported fields
}

func (CredentialSubject) AsCredentialSubject1​

func (t CredentialSubject) AsCredentialSubject1() (CredentialSubject1, error)

AsCredentialSubject1 returns the union data inside the CredentialSubject as a CredentialSubject1

func (CredentialSubject) AsCredentialSubjectItem​

func (t CredentialSubject) AsCredentialSubjectItem() (CredentialSubjectItem, error)

AsCredentialSubjectItem returns the union data inside the CredentialSubject as a CredentialSubjectItem

func (*CredentialSubject) FromCredentialSubject1​

func (t *CredentialSubject) FromCredentialSubject1(v CredentialSubject1) error

FromCredentialSubject1 overwrites any union data inside the CredentialSubject as the provided CredentialSubject1

func (*CredentialSubject) FromCredentialSubjectItem​

func (t *CredentialSubject) FromCredentialSubjectItem(v CredentialSubjectItem) error

FromCredentialSubjectItem overwrites any union data inside the CredentialSubject as the provided CredentialSubjectItem

func (CredentialSubject) MarshalJSON​

func (t CredentialSubject) MarshalJSON() ([]byte, error)

func (*CredentialSubject) MergeCredentialSubject1​

func (t *CredentialSubject) MergeCredentialSubject1(v CredentialSubject1) error

MergeCredentialSubject1 performs a merge with any union data inside the CredentialSubject, using the provided CredentialSubject1

func (*CredentialSubject) MergeCredentialSubjectItem​

func (t *CredentialSubject) MergeCredentialSubjectItem(v CredentialSubjectItem) error

MergeCredentialSubjectItem performs a merge with any union data inside the CredentialSubject, using the provided CredentialSubjectItem

func (*CredentialSubject) UnmarshalJSON​

func (t *CredentialSubject) UnmarshalJSON(b []byte) error

type CredentialSubject1​

CredentialSubject1 defines model for CredentialSubject.1.

type CredentialSubject1 = []CredentialSubjectItem

type CredentialSubjectItem​

CredentialSubjectItem defines model for CredentialSubjectItem.

type CredentialSubjectItem = map[string]interface{}

type CredentialSuspendParams​

CredentialSuspendParams defines parameters for CredentialSuspend.

type CredentialSuspendParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialSuspendResponse​

type CredentialSuspendResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialSuspendResponse​

func ParseCredentialSuspendResponse(rsp *http.Response) (*CredentialSuspendResponse, error)

ParseCredentialSuspendResponse parses an HTTP response from a CredentialSuspendWithResponse call

func (CredentialSuspendResponse) ContentType​

func (r CredentialSuspendResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialSuspendResponse) GetBody​

func (r CredentialSuspendResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialSuspendResponse) GetJSON400​

func (r CredentialSuspendResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialSuspendResponse) GetJSON404​

func (r CredentialSuspendResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialSuspendResponse) GetJSON500​

func (r CredentialSuspendResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialSuspendResponse) Status​

func (r CredentialSuspendResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialSuspendResponse) StatusCode​

func (r CredentialSuspendResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialToPresentWrapper​

CredentialToPresentWrapper defines model for CredentialToPresentWrapper.

type CredentialToPresentWrapper struct {
// Credential Any Credential related accompanying key, value pairs that are not part of the Issued Credential
Credential CredentialMetadata `json:"credential"`

// FieldsToDisclose Array of json paths of claims that will be disclosed from this credential.
FieldsToDisclose []string `json:"fieldsToDisclose"`
}

type CredentialType​

CredentialType A credential type that can be issued by the issuer

  • format: the verifiable credential format (for example "jwt_vc")
  • type: the verifiable credential type, usually provided as list of strings

(for example: "VerifiableCredential", "VerifiableAttestation", "VerifiableId")

type CredentialType struct {
Doctype *string `json:"doctype,omitempty"`

// Format jwt_vc_vcdm - VC using W3C VC Data Model as jwt
// sd_jwt_vc - VC using sd_jwt_vc data model as jwt
// mso_mdoc - VC using ISO/IEC 18013-5 mdoc format
Format CredentialFormat `json:"format"`
Type *[]string `json:"type,omitempty"`
}

type CredentialTypes​

CredentialTypes List of verifiable credential types that can be issued by the issuer

type CredentialTypes = []CredentialType

type CredentialUnsuspendParams​

CredentialUnsuspendParams defines parameters for CredentialUnsuspend.

type CredentialUnsuspendParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialUnsuspendResponse​

type CredentialUnsuspendResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseCredentialUnsuspendResponse​

func ParseCredentialUnsuspendResponse(rsp *http.Response) (*CredentialUnsuspendResponse, error)

ParseCredentialUnsuspendResponse parses an HTTP response from a CredentialUnsuspendWithResponse call

func (CredentialUnsuspendResponse) ContentType​

func (r CredentialUnsuspendResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CredentialUnsuspendResponse) GetBody​

func (r CredentialUnsuspendResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CredentialUnsuspendResponse) GetJSON400​

func (r CredentialUnsuspendResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CredentialUnsuspendResponse) GetJSON404​

func (r CredentialUnsuspendResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CredentialUnsuspendResponse) GetJSON500​

func (r CredentialUnsuspendResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CredentialUnsuspendResponse) Status​

func (r CredentialUnsuspendResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialUnsuspendResponse) StatusCode​

func (r CredentialUnsuspendResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialVerifierDefinition​

CredentialVerifierDefinition Verifier configuration. `keyIdentifier` is the same as wallet key identifier by default. Exactly one of `dcqlQuery` and `presentationDefinition` must be set.

type CredentialVerifierDefinition struct {
// DcqlQuery Digital Credentials Query Language query (OpenID4VP 1.0 §6). Unknown properties are ignored.
DcqlQuery *DCQLQuery `json:"dcqlQuery,omitempty"`
Description *string `json:"description,omitempty"`

// Id Unique ID of the definition
Id string `json:"id"`
KeyIdentifier *SigningKeyIdentifier `json:"keyIdentifier,omitempty"`

// Name Human readable name of the definition
Name string `json:"name"`

// PresentationDefinition Legacy DIF Presentation Exchange query. Removed in OpenID4VP 1.0; prefer `dcqlQuery`.
PresentationDefinition *PresentationDefinition `json:"presentationDefinition,omitempty"`

// RedirectUri URI the holder's user agent is redirected to after presenting (OpenID4VP 1.0 §8.2), with a
// `response_code` query parameter. Overridden by `redirectUri` of the verification request. When neither
// is set, the holder is redirected to a wallet page showing the verification result.
RedirectUri *string `json:"redirectUri,omitempty"`

// ResponseEncryption Request an encrypted `vp_token` response (OpenID4VP 1.0 `direct_post.jwt`). Disable it only for
// wallets that cannot encrypt responses.
ResponseEncryption *bool `json:"responseEncryption,omitempty"`

// Scope A custom authorization scope that can be used for this verifier with authorization request
Scope *string `json:"scope,omitempty"`

// ToVerify List of credential properties that should be verified.
ToVerify *[]CredentialPropertyToVerify `json:"toVerify,omitempty"`
}

type CredentialWrapper​

CredentialWrapper The wrapper contains Verifiable Credential Subject and Metadata.

type CredentialWrapper struct {
// Metadata Any Credential related accompanying key, value pairs that are not part of the Issued Credential
Metadata CredentialMetadata `json:"metadata"`

// VcSubject Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential.
// When the credential is in W3C VCDM, the subject is in its compacted form with claim keys in their full IRI form.
VcSubject CredentialSubject `json:"vcSubject"`
}

type CtWalletSameIssuerConfig​

CtWalletSameIssuerConfig defines model for CtWalletSameIssuerConfig.

type CtWalletSameIssuerConfig struct {
// DefaultCredentialSubject Default values for the credentialSubject property.
DefaultCredentialSubject *map[string]interface{} `json:"defaultCredentialSubject,omitempty"`

// DefaultSchema Default credential schema
DefaultSchema *string `json:"defaultSchema,omitempty"`
}

type DCQLCredentialSetQuery​

DCQLCredentialSetQuery Credential Set Query (OpenID4VP 1.0 §6.2).

type DCQLCredentialSetQuery struct {
// Options Each option is a list of credential query ids that together satisfy the set.
Options [][]string `json:"options"`

// Required Whether the set must be satisfied. Defaults to `true`.
Required *bool `json:"required,omitempty"`
}

type DCQLQuery​

DCQLQuery Digital Credentials Query Language query (OpenID4VP 1.0 §6). Unknown properties are ignored.

type DCQLQuery struct {
// CredentialSets Constraints on which combinations of the requested credentials to return.
CredentialSets *[]DCQLCredentialSetQuery `json:"credential_sets,omitempty"`
Credentials []DCQLQueryCredentials `json:"credentials"`
}

type DCQLQueryClaim​

DCQLQueryClaim defines model for DCQLQueryClaim.

type DCQLQueryClaim struct {
// Id Claim identifier, required when the credential query has `claim_sets`.
Id *string `json:"id,omitempty"`

// IntentToRetain mdoc only, the ISO 18013-5 IntentToRetain flag.
IntentToRetain *bool `json:"intent_to_retain,omitempty"`

// Path Claims path pointer (OpenID4VP 1.0 §7); `null` selects all array elements.
Path []*DCQLQueryClaim_Path_Item `json:"path"`
Values *[]DCQLQueryClaim_Values_Item `json:"values,omitempty"`
}

type DCQLQueryClaimBool​

DCQLQueryClaimBool defines model for DCQLQueryClaimBool.

type DCQLQueryClaimBool = bool

type DCQLQueryClaimInteger​

DCQLQueryClaimInteger defines model for DCQLQueryClaimInteger.

type DCQLQueryClaimInteger = int

type DCQLQueryClaimString​

DCQLQueryClaimString defines model for DCQLQueryClaimString.

type DCQLQueryClaimString = string

type DCQLQueryClaim_Path_Item​

DCQLQueryClaim_Path_Item defines model for DCQLQueryClaim.path.Item.

type DCQLQueryClaim_Path_Item struct {
// contains filtered or unexported fields
}

func (DCQLQueryClaim_Path_Item) AsDCQLQueryClaimInteger​

func (t DCQLQueryClaim_Path_Item) AsDCQLQueryClaimInteger() (DCQLQueryClaimInteger, error)

AsDCQLQueryClaimInteger returns the union data inside the DCQLQueryClaim_Path_Item as a DCQLQueryClaimInteger

func (DCQLQueryClaim_Path_Item) AsDCQLQueryClaimString​

func (t DCQLQueryClaim_Path_Item) AsDCQLQueryClaimString() (DCQLQueryClaimString, error)

AsDCQLQueryClaimString returns the union data inside the DCQLQueryClaim_Path_Item as a DCQLQueryClaimString

func (*DCQLQueryClaim_Path_Item) FromDCQLQueryClaimInteger​

func (t *DCQLQueryClaim_Path_Item) FromDCQLQueryClaimInteger(v DCQLQueryClaimInteger) error

FromDCQLQueryClaimInteger overwrites any union data inside the DCQLQueryClaim_Path_Item as the provided DCQLQueryClaimInteger

func (*DCQLQueryClaim_Path_Item) FromDCQLQueryClaimString​

func (t *DCQLQueryClaim_Path_Item) FromDCQLQueryClaimString(v DCQLQueryClaimString) error

FromDCQLQueryClaimString overwrites any union data inside the DCQLQueryClaim_Path_Item as the provided DCQLQueryClaimString

func (DCQLQueryClaim_Path_Item) MarshalJSON​

func (t DCQLQueryClaim_Path_Item) MarshalJSON() ([]byte, error)

func (*DCQLQueryClaim_Path_Item) MergeDCQLQueryClaimInteger​

func (t *DCQLQueryClaim_Path_Item) MergeDCQLQueryClaimInteger(v DCQLQueryClaimInteger) error

MergeDCQLQueryClaimInteger performs a merge with any union data inside the DCQLQueryClaim_Path_Item, using the provided DCQLQueryClaimInteger

func (*DCQLQueryClaim_Path_Item) MergeDCQLQueryClaimString​

func (t *DCQLQueryClaim_Path_Item) MergeDCQLQueryClaimString(v DCQLQueryClaimString) error

MergeDCQLQueryClaimString performs a merge with any union data inside the DCQLQueryClaim_Path_Item, using the provided DCQLQueryClaimString

func (*DCQLQueryClaim_Path_Item) UnmarshalJSON​

func (t *DCQLQueryClaim_Path_Item) UnmarshalJSON(b []byte) error

type DCQLQueryClaim_Values_Item​

DCQLQueryClaim_Values_Item defines model for DCQLQueryClaim.values.Item.

type DCQLQueryClaim_Values_Item struct {
// contains filtered or unexported fields
}

func (DCQLQueryClaim_Values_Item) AsDCQLQueryClaimBool​

func (t DCQLQueryClaim_Values_Item) AsDCQLQueryClaimBool() (DCQLQueryClaimBool, error)

AsDCQLQueryClaimBool returns the union data inside the DCQLQueryClaim_Values_Item as a DCQLQueryClaimBool

func (DCQLQueryClaim_Values_Item) AsDCQLQueryClaimInteger​

func (t DCQLQueryClaim_Values_Item) AsDCQLQueryClaimInteger() (DCQLQueryClaimInteger, error)

AsDCQLQueryClaimInteger returns the union data inside the DCQLQueryClaim_Values_Item as a DCQLQueryClaimInteger

func (DCQLQueryClaim_Values_Item) AsDCQLQueryClaimString​

func (t DCQLQueryClaim_Values_Item) AsDCQLQueryClaimString() (DCQLQueryClaimString, error)

AsDCQLQueryClaimString returns the union data inside the DCQLQueryClaim_Values_Item as a DCQLQueryClaimString

func (*DCQLQueryClaim_Values_Item) FromDCQLQueryClaimBool​

func (t *DCQLQueryClaim_Values_Item) FromDCQLQueryClaimBool(v DCQLQueryClaimBool) error

FromDCQLQueryClaimBool overwrites any union data inside the DCQLQueryClaim_Values_Item as the provided DCQLQueryClaimBool

func (*DCQLQueryClaim_Values_Item) FromDCQLQueryClaimInteger​

func (t *DCQLQueryClaim_Values_Item) FromDCQLQueryClaimInteger(v DCQLQueryClaimInteger) error

FromDCQLQueryClaimInteger overwrites any union data inside the DCQLQueryClaim_Values_Item as the provided DCQLQueryClaimInteger

func (*DCQLQueryClaim_Values_Item) FromDCQLQueryClaimString​

func (t *DCQLQueryClaim_Values_Item) FromDCQLQueryClaimString(v DCQLQueryClaimString) error

FromDCQLQueryClaimString overwrites any union data inside the DCQLQueryClaim_Values_Item as the provided DCQLQueryClaimString

func (DCQLQueryClaim_Values_Item) MarshalJSON​

func (t DCQLQueryClaim_Values_Item) MarshalJSON() ([]byte, error)

func (*DCQLQueryClaim_Values_Item) MergeDCQLQueryClaimBool​

func (t *DCQLQueryClaim_Values_Item) MergeDCQLQueryClaimBool(v DCQLQueryClaimBool) error

MergeDCQLQueryClaimBool performs a merge with any union data inside the DCQLQueryClaim_Values_Item, using the provided DCQLQueryClaimBool

func (*DCQLQueryClaim_Values_Item) MergeDCQLQueryClaimInteger​

func (t *DCQLQueryClaim_Values_Item) MergeDCQLQueryClaimInteger(v DCQLQueryClaimInteger) error

MergeDCQLQueryClaimInteger performs a merge with any union data inside the DCQLQueryClaim_Values_Item, using the provided DCQLQueryClaimInteger

func (*DCQLQueryClaim_Values_Item) MergeDCQLQueryClaimString​

func (t *DCQLQueryClaim_Values_Item) MergeDCQLQueryClaimString(v DCQLQueryClaimString) error

MergeDCQLQueryClaimString performs a merge with any union data inside the DCQLQueryClaim_Values_Item, using the provided DCQLQueryClaimString

func (*DCQLQueryClaim_Values_Item) UnmarshalJSON​

func (t *DCQLQueryClaim_Values_Item) UnmarshalJSON(b []byte) error

type DCQLQueryCredentials​

DCQLQueryCredentials Credential Query (OpenID4VP 1.0 §6.1).

type DCQLQueryCredentials struct {
// ClaimSets Acceptable combinations of claim ids, most preferred first.
ClaimSets *[][]string `json:"claim_sets,omitempty"`
Claims *[]DCQLQueryClaim `json:"claims,omitempty"`

// Format Credential format identifier, `dc+sd-jwt`, `mso_mdoc` or `jwt_vc_json`.
Format string `json:"format"`

// Id A string identifying the Credential in the response.
Id string `json:"id"`
Meta *DCQLQueryMeta `json:"meta,omitempty"`

// Multiple Whether multiple credentials may be returned for this query. Defaults to `false`.
Multiple *bool `json:"multiple,omitempty"`

// RequireCryptographicHolderBinding Whether a holder binding proof is required. Defaults to `true`.
RequireCryptographicHolderBinding *bool `json:"require_cryptographic_holder_binding,omitempty"`

// TrustedAuthorities Authorities or trust frameworks certifying the issuers the verifier accepts.
TrustedAuthorities *[]DCQLTrustedAuthority `json:"trusted_authorities,omitempty"`
}

type DCQLQueryMeta​

DCQLQueryMeta defines model for DCQLQueryMeta.

type DCQLQueryMeta struct {
// DoctypeValue Value for mDOC type
DoctypeValue *string `json:"doctype_value,omitempty"`

// TypeValues Alternative sets of W3C credential types; a credential must contain every type of one set.
TypeValues *[][]string `json:"type_values,omitempty"`

// VctValues Values for SD-JWT-VC type
VctValues *[]string `json:"vct_values,omitempty"`
}

type DCQLTrustedAuthority​

DCQLTrustedAuthority Trusted Authorities Query (OpenID4VP 1.0 §6.1.1).

type DCQLTrustedAuthority struct {
// Type Type of the authority information, e.g. `aki`, `etsi_tl` or `openid_federation`.
Type string `json:"type"`
Values []string `json:"values"`
}

type Deferred​

Deferred The deferred process status. Can be either in progress, or completed, or error. When the status is completed, the Id property will be set to the value of the resulting object ID.

type Deferred struct {
Id *string `json:"Id,omitempty"`
Status DeferredStatus `json:"Status"`
}

type DeferredStatus​

DeferredStatus defines model for Deferred.Status.

type DeferredStatus string

Defines values for DeferredStatus.

const (
DeferredStatusCompleted DeferredStatus = "completed"
DeferredStatusError DeferredStatus = "error"
DeferredStatusInProgress DeferredStatus = "in_progress"
)

func (DeferredStatus) Valid​

func (e DeferredStatus) Valid() bool

Valid indicates whether the value is a known member of the DeferredStatus enum.

type DeferredStatusParams​

DeferredStatusParams defines parameters for DeferredStatus.

type DeferredStatusParams struct {
WalletId string `json:"wallet-id"`
}

type DeferredStatusResponse​

type DeferredStatusResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Deferred
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseDeferredStatusResponse​

func ParseDeferredStatusResponse(rsp *http.Response) (*DeferredStatusResponse, error)

ParseDeferredStatusResponse parses an HTTP response from a DeferredStatusWithResponse call

func (DeferredStatusResponse) ContentType​

func (r DeferredStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeferredStatusResponse) GetBody​

func (r DeferredStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeferredStatusResponse) GetJSON200​

func (r DeferredStatusResponse) GetJSON200() *Deferred

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeferredStatusResponse) GetJSON404​

func (r DeferredStatusResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeferredStatusResponse) GetJSON500​

func (r DeferredStatusResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeferredStatusResponse) Status​

func (r DeferredStatusResponse) Status() string

Status returns HTTPResponse.Status

func (DeferredStatusResponse) StatusCode​

func (r DeferredStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DidDocument​

DidDocument A DID document (DID Core 1.0).

type DidDocument map[string]interface{}

type DidDocumentGetResponse​

type DidDocumentGetResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationdidLdJSON200 the response for an HTTP 200 `application/did+ld+json` response
ApplicationdidLdJSON200 *map[string]interface{}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseDidDocumentGetResponse​

func ParseDidDocumentGetResponse(rsp *http.Response) (*DidDocumentGetResponse, error)

ParseDidDocumentGetResponse parses an HTTP response from a DidDocumentGetWithResponse call

func (DidDocumentGetResponse) ContentType​

func (r DidDocumentGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DidDocumentGetResponse) GetApplicationdidLdJSON200​

func (r DidDocumentGetResponse) GetApplicationdidLdJSON200() *map[string]interface{}

GetApplicationdidLdJSON200 returns the response for an HTTP 200 `application/did+ld+json` response

func (DidDocumentGetResponse) GetBody​

func (r DidDocumentGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DidDocumentGetResponse) GetJSON400​

func (r DidDocumentGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DidDocumentGetResponse) GetJSON404​

func (r DidDocumentGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DidDocumentGetResponse) GetJSON500​

func (r DidDocumentGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DidDocumentGetResponse) Status​

func (r DidDocumentGetResponse) Status() string

Status returns HTTPResponse.Status

func (DidDocumentGetResponse) StatusCode​

func (r DidDocumentGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DidDocumentLocalGetParams​

DidDocumentLocalGetParams defines parameters for DidDocumentLocalGet.

type DidDocumentLocalGetParams struct {
WalletId string `json:"wallet-id"`
}

type DidDocumentLocalGetResponse​

type DidDocumentLocalGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DidDocument
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseDidDocumentLocalGetResponse​

func ParseDidDocumentLocalGetResponse(rsp *http.Response) (*DidDocumentLocalGetResponse, error)

ParseDidDocumentLocalGetResponse parses an HTTP response from a DidDocumentLocalGetWithResponse call

func (DidDocumentLocalGetResponse) ContentType​

func (r DidDocumentLocalGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DidDocumentLocalGetResponse) GetBody​

func (r DidDocumentLocalGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DidDocumentLocalGetResponse) GetJSON200​

func (r DidDocumentLocalGetResponse) GetJSON200() *DidDocument

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DidDocumentLocalGetResponse) GetJSON404​

func (r DidDocumentLocalGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DidDocumentLocalGetResponse) GetJSON500​

func (r DidDocumentLocalGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DidDocumentLocalGetResponse) Status​

func (r DidDocumentLocalGetResponse) Status() string

Status returns HTTPResponse.Status

func (DidDocumentLocalGetResponse) StatusCode​

func (r DidDocumentLocalGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DidDocumentPatch​

DidDocumentPatch A change to the wallet's DID document.

type DidDocumentPatch struct {
AddServices *[]DidService `json:"addServices,omitempty"`

// AlsoKnownAs The subject's other identifiers, as absolute URIs. Replaces the current ones; empty removes them.
AlsoKnownAs *[]string `json:"alsoKnownAs,omitempty"`

// RemoveServiceIds Ids of the services to remove, as fragments of the DID (without `#`).
RemoveServiceIds *[]string `json:"removeServiceIds,omitempty"`
}

type DidDocumentPatchJSONRequestBody​

DidDocumentPatchJSONRequestBody defines body for DidDocumentPatch for application/json ContentType.

type DidDocumentPatchJSONRequestBody = DidDocumentPatch

type DidDocumentPatchParams​

DidDocumentPatchParams defines parameters for DidDocumentPatch.

type DidDocumentPatchParams struct {
WalletId string `json:"wallet-id"`
}

type DidDocumentPatchResponse​

type DidDocumentPatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DidDocument
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseDidDocumentPatchResponse​

func ParseDidDocumentPatchResponse(rsp *http.Response) (*DidDocumentPatchResponse, error)

ParseDidDocumentPatchResponse parses an HTTP response from a DidDocumentPatchWithResponse call

func (DidDocumentPatchResponse) ContentType​

func (r DidDocumentPatchResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DidDocumentPatchResponse) GetBody​

func (r DidDocumentPatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DidDocumentPatchResponse) GetJSON200​

func (r DidDocumentPatchResponse) GetJSON200() *DidDocument

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DidDocumentPatchResponse) GetJSON400​

func (r DidDocumentPatchResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DidDocumentPatchResponse) GetJSON404​

func (r DidDocumentPatchResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DidDocumentPatchResponse) GetJSON409​

func (r DidDocumentPatchResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DidDocumentPatchResponse) GetJSON500​

func (r DidDocumentPatchResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DidDocumentPatchResponse) Status​

func (r DidDocumentPatchResponse) Status() string

Status returns HTTPResponse.Status

func (DidDocumentPatchResponse) StatusCode​

func (r DidDocumentPatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DidService​

DidService A DID document service (DID Core 1.0 §5.4).

type DidService struct {
// Id The service id as a fragment of the DID, without `#` (`[A-Za-z0-9:_.-]+`).
Id string `json:"id"`

// ServiceEndpoint A service endpoint: an absolute URI, a link target, or a set of those. URIs are https, or http for
// localhost.
ServiceEndpoint DidServiceEndpoint `json:"serviceEndpoint"`

// Type The service type, e.g. the UNTP link type `https://test.uncefact.org/vocabulary/link-type/dia`.
Type string `json:"type"`
}

type DidServiceEndpoint​

DidServiceEndpoint A service endpoint: an absolute URI, a link target, or a set of those. URIs are https, or http for localhost.

type DidServiceEndpoint struct {
// contains filtered or unexported fields
}

func (DidServiceEndpoint) AsDidServiceEndpoint0​

func (t DidServiceEndpoint) AsDidServiceEndpoint0() (DidServiceEndpoint0, error)

AsDidServiceEndpoint0 returns the union data inside the DidServiceEndpoint as a DidServiceEndpoint0

func (DidServiceEndpoint) AsDidServiceEndpoint2​

func (t DidServiceEndpoint) AsDidServiceEndpoint2() (DidServiceEndpoint2, error)

AsDidServiceEndpoint2 returns the union data inside the DidServiceEndpoint as a DidServiceEndpoint2

func (DidServiceEndpoint) AsLinkTarget​

func (t DidServiceEndpoint) AsLinkTarget() (LinkTarget, error)

AsLinkTarget returns the union data inside the DidServiceEndpoint as a LinkTarget

func (*DidServiceEndpoint) FromDidServiceEndpoint0​

func (t *DidServiceEndpoint) FromDidServiceEndpoint0(v DidServiceEndpoint0) error

FromDidServiceEndpoint0 overwrites any union data inside the DidServiceEndpoint as the provided DidServiceEndpoint0

func (*DidServiceEndpoint) FromDidServiceEndpoint2​

func (t *DidServiceEndpoint) FromDidServiceEndpoint2(v DidServiceEndpoint2) error

FromDidServiceEndpoint2 overwrites any union data inside the DidServiceEndpoint as the provided DidServiceEndpoint2

func (*DidServiceEndpoint) FromLinkTarget​

func (t *DidServiceEndpoint) FromLinkTarget(v LinkTarget) error

FromLinkTarget overwrites any union data inside the DidServiceEndpoint as the provided LinkTarget

func (DidServiceEndpoint) MarshalJSON​

func (t DidServiceEndpoint) MarshalJSON() ([]byte, error)

func (*DidServiceEndpoint) MergeDidServiceEndpoint0​

func (t *DidServiceEndpoint) MergeDidServiceEndpoint0(v DidServiceEndpoint0) error

MergeDidServiceEndpoint0 performs a merge with any union data inside the DidServiceEndpoint, using the provided DidServiceEndpoint0

func (*DidServiceEndpoint) MergeDidServiceEndpoint2​

func (t *DidServiceEndpoint) MergeDidServiceEndpoint2(v DidServiceEndpoint2) error

MergeDidServiceEndpoint2 performs a merge with any union data inside the DidServiceEndpoint, using the provided DidServiceEndpoint2

func (*DidServiceEndpoint) MergeLinkTarget​

func (t *DidServiceEndpoint) MergeLinkTarget(v LinkTarget) error

MergeLinkTarget performs a merge with any union data inside the DidServiceEndpoint, using the provided LinkTarget

func (*DidServiceEndpoint) UnmarshalJSON​

func (t *DidServiceEndpoint) UnmarshalJSON(b []byte) error

type DidServiceEndpoint0​

DidServiceEndpoint0 defines model for DidServiceEndpoint.0.

type DidServiceEndpoint0 = string

type DidServiceEndpoint2​

DidServiceEndpoint2 defines model for DidServiceEndpoint.2.

type DidServiceEndpoint2 = []DidServiceEndpoint_2_Item

type DidServiceEndpoint20​

DidServiceEndpoint20 defines model for DidServiceEndpoint.2.0.

type DidServiceEndpoint20 = string

type DidServiceEndpoint_2_Item​

DidServiceEndpoint_2_Item defines model for DidServiceEndpoint.2.Item.

type DidServiceEndpoint_2_Item struct {
// contains filtered or unexported fields
}

func (DidServiceEndpoint_2_Item) AsDidServiceEndpoint20​

func (t DidServiceEndpoint_2_Item) AsDidServiceEndpoint20() (DidServiceEndpoint20, error)

AsDidServiceEndpoint20 returns the union data inside the DidServiceEndpoint_2_Item as a DidServiceEndpoint20

func (DidServiceEndpoint_2_Item) AsLinkTarget​

func (t DidServiceEndpoint_2_Item) AsLinkTarget() (LinkTarget, error)

AsLinkTarget returns the union data inside the DidServiceEndpoint_2_Item as a LinkTarget

func (*DidServiceEndpoint_2_Item) FromDidServiceEndpoint20​

func (t *DidServiceEndpoint_2_Item) FromDidServiceEndpoint20(v DidServiceEndpoint20) error

FromDidServiceEndpoint20 overwrites any union data inside the DidServiceEndpoint_2_Item as the provided DidServiceEndpoint20

func (*DidServiceEndpoint_2_Item) FromLinkTarget​

func (t *DidServiceEndpoint_2_Item) FromLinkTarget(v LinkTarget) error

FromLinkTarget overwrites any union data inside the DidServiceEndpoint_2_Item as the provided LinkTarget

func (DidServiceEndpoint_2_Item) MarshalJSON​

func (t DidServiceEndpoint_2_Item) MarshalJSON() ([]byte, error)

func (*DidServiceEndpoint_2_Item) MergeDidServiceEndpoint20​

func (t *DidServiceEndpoint_2_Item) MergeDidServiceEndpoint20(v DidServiceEndpoint20) error

MergeDidServiceEndpoint20 performs a merge with any union data inside the DidServiceEndpoint_2_Item, using the provided DidServiceEndpoint20

func (*DidServiceEndpoint_2_Item) MergeLinkTarget​

func (t *DidServiceEndpoint_2_Item) MergeLinkTarget(v LinkTarget) error

MergeLinkTarget performs a merge with any union data inside the DidServiceEndpoint_2_Item, using the provided LinkTarget

func (*DidServiceEndpoint_2_Item) UnmarshalJSON​

func (t *DidServiceEndpoint_2_Item) UnmarshalJSON(b []byte) error

type DidTrustFailure​

DidTrustFailure defines model for DidTrustFailure.

type DidTrustFailure struct {
// Code Why: e.g. `no recognition found`, `recognition credential invalid`, `invalid digital identity anchor`,
// `not listed in the recognition credential`, `trust anchor not active`, `trust anchor key mismatch`,
// `recognition chain too long`, `too many recognition candidates`, `recognition verification budget
// exhausted`, `register not allowed for the registrar`.
Code string `json:"code"`
Error string `json:"error"`
Source *string `json:"source,omitempty"`
Subject string `json:"subject"`
}

type DidTrustPolicyResult​

DidTrustPolicyResult defines model for DidTrustPolicyResult.

type DidTrustPolicyResult struct {
CredentialType string `json:"credentialType"`

// Evaluated False when no policy is configured for the credential type.
Evaluated bool `json:"evaluated"`
Ok bool `json:"ok"`
Reason *string `json:"reason,omitempty"`
}

type DidVerification​

DidVerification Whether the wallet's trust framework trusts a DID, and how it established it.

type DidVerification struct {
Did string `json:"did"`

// Failures What did not hold, and why.
Failures []DidTrustFailure `json:"failures"`
Policy *DidTrustPolicyResult `json:"policy,omitempty"`

// TrustFramework 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.
TrustFramework TrustFrameworkType `json:"trustFramework"`
Trusted bool `json:"trusted"`

// Untp How a UNTP wallet anchored a DID.
Untp *UntpDia `json:"untp,omitempty"`
VerifiedAt time.Time `json:"verifiedAt"`
}

type DocumentSignatureValidity​

DocumentSignatureValidity defines model for DocumentSignatureValidity.

type DocumentSignatureValidity struct {
// CoversWholeDocument Whether the signature covers the document in full. A PDF may carry content appended
// after a signature was applied - an incremental update such as an embedded verifiable
// presentation. That content is outside the signature's ByteRange, so the signature says
// nothing about it: the signature is valid for the revision it signed, but the document as
// a whole is not covered. Absent when the signature format has no notion of partial
// coverage.
CoversWholeDocument *bool `json:"coversWholeDocument,omitempty"`

// Details Details about document signature verification errors/warnings
Details *[]string `json:"details,omitempty"`

// SigningCertificate Signing certificate in base64 encoded form
SigningCertificate string `json:"signingCertificate"`

// SigningCertificateQualification Qualification of the signing certificate (QSig, QSeal etc.)
SigningCertificateQualification string `json:"signingCertificateQualification"`
VerificationResult DocumentSignatureValidityVerificationResult `json:"verificationResult"`
}

type DocumentSignatureValidityVerificationResult​

DocumentSignatureValidityVerificationResult defines model for DocumentSignatureValidity.VerificationResult.

type DocumentSignatureValidityVerificationResult string

Defines values for DocumentSignatureValidityVerificationResult.

const (
DocumentSignatureValidityVerificationResultExpired DocumentSignatureValidityVerificationResult = "expired"
DocumentSignatureValidityVerificationResultInvalidSignature DocumentSignatureValidityVerificationResult = "invalid_signature"
DocumentSignatureValidityVerificationResultRevoked DocumentSignatureValidityVerificationResult = "revoked"
DocumentSignatureValidityVerificationResultUntrustedCertificate DocumentSignatureValidityVerificationResult = "untrusted_certificate"
DocumentSignatureValidityVerificationResultValid DocumentSignatureValidityVerificationResult = "valid"
)

func (DocumentSignatureValidityVerificationResult) Valid​

func (e DocumentSignatureValidityVerificationResult) Valid() bool

Valid indicates whether the value is a known member of the DocumentSignatureValidityVerificationResult enum.

type DraftIssuerId​

DraftIssuerId ID of the credential issuer (`CredentialIssuerDefinition.id`, from the wallet configuration or the trust framework) that issues the draft. When set, the draft can only be queued for issuance by this issuer.

type DraftIssuerId = string

type EbsiConfiguration​

EbsiConfiguration URLs of EBSI services. An empty URL takes the deployment's `ebsi` setting.

type EbsiConfiguration struct {
Authorization string `json:"authorization"`

// BitstringStatusListSchema Schema of the W3C Bitstring Status List credentials published for VCDM 2.0 credentials.
// Defaults to the deployment's `ebsi.bitstringStatusListSchema` setting. When both are empty, the
// lists are published without a `credentialSchema`.
BitstringStatusListSchema *string `json:"bitstringStatusListSchema,omitempty"`
DidRegistry string `json:"didRegistry"`

// Ledger EBSI ledger API (JSON-RPC) the wallet sends its signed registry transactions to.
Ledger string `json:"ledger"`
MainSchema string `json:"mainSchema"`
StatusListSchema string `json:"statusListSchema"`

// TrustChainRootAuthorisation TIR URL of the root authorisation of the wallet's trust chain, which VCDM 2.0 accreditations name in
// their `AccreditationPolicy`. Required when trustChainVcdm is 2.0.
TrustChainRootAuthorisation *string `json:"trustChainRootAuthorisation,omitempty"`

// TrustChainVcdm The W3C VC Data Model version of a W3C VCDM credential: `1.1` (https://www.w3.org/2018/credentials/v1) or
// `2.0` (https://www.w3.org/ns/credentials/v2). The wallet does not choose it. On a draft, the client sets it,
// and it defaults to 2.0; a draft whose `contexts` start with a base context must not name a different
// version. On an EBSI configuration (`trustChainVcdm`), it is the version of the trust chain credentials the
// wallet issues; that one defaults to 1.1.
TrustChainVcdm *VcdmVersion `json:"trustChainVcdm,omitempty"`

// TrustModelSchema Schema of VCDM 2.0 trust chain credentials (`VerifiableTrustModel`), used when trustChainVcdm is 2.0.
TrustModelSchema *string `json:"trustModelSchema,omitempty"`
TrustedIssuersRegistry string `json:"trustedIssuersRegistry"`
TrustedSchemasRegistry string `json:"trustedSchemasRegistry"`
}

type EbsiSpecificWalletData​

EbsiSpecificWalletData EBSI specific data

type EbsiSpecificWalletData struct {
AttributeId *string `json:"attributeId,omitempty"`

// Configuration URLs of EBSI services. An empty URL takes the deployment's `ebsi` setting.
Configuration EbsiConfiguration `json:"configuration"`

// IsOnboarded Whether the wallet is onboarded. Read-only; set by onboarding, ignored in requests.
IsOnboarded bool `json:"isOnboarded"`

// LegalEntity The wallet is an EBSI legal entity identified by a did:ebsi. Needed before the wallet is onboarded.
LegalEntity *bool `json:"legalEntity,omitempty"`
ProxyUrl *string `json:"proxyUrl,omitempty"`
RequiredDid *string `json:"requiredDid,omitempty"`
}

type EnrollmentInitPayload​

EnrollmentInitPayload defines model for EnrollmentInitPayload.

type EnrollmentInitPayload struct {
// ExpiresIn Seconds until the enrollment expires; the deployment's default (7 days) when unset, at most its
// maximum (30 days).
ExpiresIn *int `json:"expiresIn,omitempty"`

// Wallet Payload to create a wallet
Wallet WalletCreatePayload `json:"wallet"`
}

type EnrollmentInitResponse​

EnrollmentInitResponse defines model for EnrollmentInitResponse.

type EnrollmentInitResponse struct {
// EnrollmentId Identifies the enrollment for listing and revoking.
EnrollmentId string `json:"enrollmentId"`
ExpiresAt time.Time `json:"expiresAt"`

// State The one-time enrollment state. Hand it to the user who enrolls; it is not shown again.
State string `json:"state"`
TenantId string `json:"tenantId"`
}

type EnrollmentList​

EnrollmentList defines model for EnrollmentList.

type EnrollmentList = []EnrollmentListItem

type EnrollmentListItem​

EnrollmentListItem defines model for EnrollmentListItem.

type EnrollmentListItem struct {
CreatedAt time.Time `json:"createdAt"`

// CreatedBy The owner id of the Tenant Owner who created it.
CreatedBy string `json:"createdBy"`
EnrollmentId string `json:"enrollmentId"`
ExpiresAt time.Time `json:"expiresAt"`
IssuerProxyUrl *string `json:"issuerProxyUrl,omitempty"`
WalletName string `json:"walletName"`
}

type EntityAccreditationRequest​

EntityAccreditationRequest Prepares to accredit legal entity's DID

type EntityAccreditationRequest struct {
// AccreditedFor Base64 encoded json to be used for the `accreditedFor` property of the credential. For
// `UntpRegistration`, an `UntpAccreditation`.
AccreditedFor string `json:"accreditedFor"`
Did string `json:"did"`
Type EntityAccreditationRequestType `json:"type"`

// ValidUntil Specifies when will the accreditation credential expire
ValidUntil time.Time `json:"validUntil"`
}

type EntityAccreditationRequestType​

EntityAccreditationRequestType defines model for EntityAccreditationRequest.Type.

type EntityAccreditationRequestType string

Defines values for EntityAccreditationRequestType.

const (
EntityAccreditationRequestTypeTrustedAccreditationOrganisation EntityAccreditationRequestType = "TrustedAccreditationOrganisation"
EntityAccreditationRequestTypeTrustedIssuer EntityAccreditationRequestType = "TrustedIssuer"
EntityAccreditationRequestTypeUntpRegistration EntityAccreditationRequestType = "UntpRegistration"
)

func (EntityAccreditationRequestType) Valid​

func (e EntityAccreditationRequestType) Valid() bool

Valid indicates whether the value is a known member of the EntityAccreditationRequestType enum.

type EntityOnboardingRequest​

EntityOnboardingRequest Prepares to onboard legal entity's DID

type EntityOnboardingRequest struct {
// Did DID which will be onboarded
Did string `json:"did"`

// Untp UNTP: required, the Digital Identity Anchor to issue to `did`, which expires at `validUntil`. The
// request is pending until the DID's holder proves control of it in the OpenID4VCI issuance of
// `untp-dia`. EBSI: ignored.
Untp *UntpDiaRequest `json:"untp,omitempty"`

// ValidUntil When the authorization to onboard expires. EBSI: the expiration date of the Verifiable Authorisation to
// Onboard. UNTP: when the requested Digital Identity Anchor expires; the request is pending until then.
ValidUntil time.Time `json:"validUntil"`
}

type Error​

Error Common error message

type Error struct {
Error string `json:"error"`

// Message Details of the error; empty when there are none.
Message string `json:"message"`
}

type EudiConfiguration​

EudiConfiguration Configuration for EUDI trust framework. The field didTrustFramework marks which DID TF is used when the wallet uses did as its identifier.

type EudiConfiguration struct {
// DidTrustFramework 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.
DidTrustFramework *TrustFrameworkType `json:"didTrustFramework,omitempty"`

// EtsiLotlUrl URL of the EUDI List of Trusted Lists. The trust anchors come from the lists it points
// at rather than from the LoTL itself, so a URL naming a plain trusted list is rejected.
EtsiLotlUrl string `json:"etsiLotlUrl"`

// TrustedLotlCertificates Base64 encoded certificates the LoTL signature is pinned to. Each list the LoTL points
// at is pinned separately, by the certificates its own pointer names.
TrustedLotlCertificates []string `json:"trustedLotlCertificates"`
}

type FieldToVerifyBool​

FieldToVerifyBool defines model for FieldToVerifyBool.

type FieldToVerifyBool = bool

type FieldToVerifyNumber​

FieldToVerifyNumber defines model for FieldToVerifyNumber.

type FieldToVerifyNumber = float32

type FieldToVerifyString​

FieldToVerifyString defines model for FieldToVerifyString.

type FieldToVerifyString = string

type FieldsToVerify​

FieldsToVerify Presented credential field that will be matched

type FieldsToVerify struct {
// Path JSON Path of the field
Path string `json:"path"`

// Value Required value of the field
Value FieldsToVerify_Value `json:"value"`
}

type FieldsToVerify_Value​

FieldsToVerify_Value Required value of the field

type FieldsToVerify_Value struct {
// contains filtered or unexported fields
}

func (FieldsToVerify_Value) AsFieldToVerifyBool​

func (t FieldsToVerify_Value) AsFieldToVerifyBool() (FieldToVerifyBool, error)

AsFieldToVerifyBool returns the union data inside the FieldsToVerify_Value as a FieldToVerifyBool

func (FieldsToVerify_Value) AsFieldToVerifyNumber​

func (t FieldsToVerify_Value) AsFieldToVerifyNumber() (FieldToVerifyNumber, error)

AsFieldToVerifyNumber returns the union data inside the FieldsToVerify_Value as a FieldToVerifyNumber

func (FieldsToVerify_Value) AsFieldToVerifyString​

func (t FieldsToVerify_Value) AsFieldToVerifyString() (FieldToVerifyString, error)

AsFieldToVerifyString returns the union data inside the FieldsToVerify_Value as a FieldToVerifyString

func (*FieldsToVerify_Value) FromFieldToVerifyBool​

func (t *FieldsToVerify_Value) FromFieldToVerifyBool(v FieldToVerifyBool) error

FromFieldToVerifyBool overwrites any union data inside the FieldsToVerify_Value as the provided FieldToVerifyBool

func (*FieldsToVerify_Value) FromFieldToVerifyNumber​

func (t *FieldsToVerify_Value) FromFieldToVerifyNumber(v FieldToVerifyNumber) error

FromFieldToVerifyNumber overwrites any union data inside the FieldsToVerify_Value as the provided FieldToVerifyNumber

func (*FieldsToVerify_Value) FromFieldToVerifyString​

func (t *FieldsToVerify_Value) FromFieldToVerifyString(v FieldToVerifyString) error

FromFieldToVerifyString overwrites any union data inside the FieldsToVerify_Value as the provided FieldToVerifyString

func (FieldsToVerify_Value) MarshalJSON​

func (t FieldsToVerify_Value) MarshalJSON() ([]byte, error)

func (*FieldsToVerify_Value) MergeFieldToVerifyBool​

func (t *FieldsToVerify_Value) MergeFieldToVerifyBool(v FieldToVerifyBool) error

MergeFieldToVerifyBool performs a merge with any union data inside the FieldsToVerify_Value, using the provided FieldToVerifyBool

func (*FieldsToVerify_Value) MergeFieldToVerifyNumber​

func (t *FieldsToVerify_Value) MergeFieldToVerifyNumber(v FieldToVerifyNumber) error

MergeFieldToVerifyNumber performs a merge with any union data inside the FieldsToVerify_Value, using the provided FieldToVerifyNumber

func (*FieldsToVerify_Value) MergeFieldToVerifyString​

func (t *FieldsToVerify_Value) MergeFieldToVerifyString(v FieldToVerifyString) error

MergeFieldToVerifyString performs a merge with any union data inside the FieldsToVerify_Value, using the provided FieldToVerifyString

func (*FieldsToVerify_Value) UnmarshalJSON​

func (t *FieldsToVerify_Value) UnmarshalJSON(b []byte) error

type ForbiddenError​

ForbiddenError Common error message

type ForbiddenError = Error

type HealthCheckResponse​

type HealthCheckResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HealthStatus
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseHealthCheckResponse​

func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)

ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call

func (HealthCheckResponse) ContentType​

func (r HealthCheckResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HealthCheckResponse) GetBody​

func (r HealthCheckResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HealthCheckResponse) GetJSON200​

func (r HealthCheckResponse) GetJSON200() *HealthStatus

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HealthCheckResponse) GetJSON500​

func (r HealthCheckResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (HealthCheckResponse) Status​

func (r HealthCheckResponse) Status() string

Status returns HTTPResponse.Status

func (HealthCheckResponse) StatusCode​

func (r HealthCheckResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthStatus​

HealthStatus Health status of the system

type HealthStatus struct {
Status HealthStatusStatus `json:"status"`
Subsystems []SystemImpact `json:"subsystems"`

// Version The version the wallet was built as, e.g. `1.1.4`; `dev` for a build that set none.
Version *string `json:"version,omitempty"`
}

type HealthStatusStatus​

HealthStatusStatus defines model for HealthStatus.Status.

type HealthStatusStatus string

Defines values for HealthStatusStatus.

const (
HealthStatusStatusCritical HealthStatusStatus = "critical"
HealthStatusStatusLimited HealthStatusStatus = "limited"
HealthStatusStatusOk HealthStatusStatus = "ok"
)

func (HealthStatusStatus) Valid​

func (e HealthStatusStatus) Valid() bool

Valid indicates whether the value is a known member of the HealthStatusStatus enum.

type HolderAuthOfferCreationRequest​

HolderAuthOfferCreationRequest Request for the creation of a holder initiated authorized flow offer.

type HolderAuthOfferCreationRequest struct {
// Deferred Ignored.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Deferred bool `json:"deferred"`

// Format jwt_vc_vcdm - VC using W3C VC Data Model as jwt
// sd_jwt_vc - VC using sd_jwt_vc data model as jwt
// mso_mdoc - VC using ISO/IEC 18013-5 mdoc format
Format CredentialFormat `json:"format"`
IssuerUrl string `json:"issuerUrl"`

// State Issuer state passed to the issuer in the authorization code grant. May be empty.
State string `json:"state"`
Types string `json:"types"`
}

type HolderCreateAuthOfferJSONRequestBody​

HolderCreateAuthOfferJSONRequestBody defines body for HolderCreateAuthOffer for application/json ContentType.

type HolderCreateAuthOfferJSONRequestBody = HolderAuthOfferCreationRequest

type HolderCreateAuthOfferParams​

HolderCreateAuthOfferParams defines parameters for HolderCreateAuthOffer.

type HolderCreateAuthOfferParams struct {
WalletId string `json:"wallet-id"`
}

type HolderCreateAuthOfferResponse​

type HolderCreateAuthOfferResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseHolderCreateAuthOfferResponse​

func ParseHolderCreateAuthOfferResponse(rsp *http.Response) (*HolderCreateAuthOfferResponse, error)

ParseHolderCreateAuthOfferResponse parses an HTTP response from a HolderCreateAuthOfferWithResponse call

func (HolderCreateAuthOfferResponse) ContentType​

func (r HolderCreateAuthOfferResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HolderCreateAuthOfferResponse) GetBody​

func (r HolderCreateAuthOfferResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HolderCreateAuthOfferResponse) GetJSON400​

func (r HolderCreateAuthOfferResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (HolderCreateAuthOfferResponse) GetJSON500​

func (r HolderCreateAuthOfferResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (HolderCreateAuthOfferResponse) Status​

func (r HolderCreateAuthOfferResponse) Status() string

Status returns HTTPResponse.Status

func (HolderCreateAuthOfferResponse) StatusCode​

func (r HolderCreateAuthOfferResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HolderCredentialsPresentAfterConsentJSONRequestBody​

HolderCredentialsPresentAfterConsentJSONRequestBody defines body for HolderCredentialsPresentAfterConsent for application/json ContentType.

type HolderCredentialsPresentAfterConsentJSONRequestBody = InteractionAuthorizationConsent

type HolderCredentialsPresentAfterConsentParams​

HolderCredentialsPresentAfterConsentParams defines parameters for HolderCredentialsPresentAfterConsent.

type HolderCredentialsPresentAfterConsentParams struct {
WalletId string `json:"wallet-id"`
}

type HolderCredentialsPresentAfterConsentResponse​

type HolderCredentialsPresentAfterConsentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PresentationResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseHolderCredentialsPresentAfterConsentResponse​

func ParseHolderCredentialsPresentAfterConsentResponse(rsp *http.Response) (*HolderCredentialsPresentAfterConsentResponse, error)

ParseHolderCredentialsPresentAfterConsentResponse parses an HTTP response from a HolderCredentialsPresentAfterConsentWithResponse call

func (HolderCredentialsPresentAfterConsentResponse) ContentType​

func (r HolderCredentialsPresentAfterConsentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HolderCredentialsPresentAfterConsentResponse) GetBody​

func (r HolderCredentialsPresentAfterConsentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HolderCredentialsPresentAfterConsentResponse) GetJSON200​

func (r HolderCredentialsPresentAfterConsentResponse) GetJSON200() *PresentationResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HolderCredentialsPresentAfterConsentResponse) GetJSON400​

func (r HolderCredentialsPresentAfterConsentResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (HolderCredentialsPresentAfterConsentResponse) GetJSON404​

func (r HolderCredentialsPresentAfterConsentResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (HolderCredentialsPresentAfterConsentResponse) GetJSON500​

func (r HolderCredentialsPresentAfterConsentResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (HolderCredentialsPresentAfterConsentResponse) Status​

func (r HolderCredentialsPresentAfterConsentResponse) Status() string

Status returns HTTPResponse.Status

func (HolderCredentialsPresentAfterConsentResponse) StatusCode​

func (r HolderCredentialsPresentAfterConsentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HolderIdTokenSendJSONRequestBody​

HolderIdTokenSendJSONRequestBody defines body for HolderIdTokenSend for application/json ContentType.

type HolderIdTokenSendJSONRequestBody = IdTokenSendRequest

type HolderIdTokenSendParams​

HolderIdTokenSendParams defines parameters for HolderIdTokenSend.

type HolderIdTokenSendParams struct {
WalletId string `json:"wallet-id"`
}

type HolderIdTokenSendResponse​

type HolderIdTokenSendResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PresentationResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseHolderIdTokenSendResponse​

func ParseHolderIdTokenSendResponse(rsp *http.Response) (*HolderIdTokenSendResponse, error)

ParseHolderIdTokenSendResponse parses an HTTP response from a HolderIdTokenSendWithResponse call

func (HolderIdTokenSendResponse) ContentType​

func (r HolderIdTokenSendResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HolderIdTokenSendResponse) GetBody​

func (r HolderIdTokenSendResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HolderIdTokenSendResponse) GetJSON200​

func (r HolderIdTokenSendResponse) GetJSON200() *PresentationResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HolderIdTokenSendResponse) GetJSON400​

func (r HolderIdTokenSendResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (HolderIdTokenSendResponse) GetJSON500​

func (r HolderIdTokenSendResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (HolderIdTokenSendResponse) Status​

func (r HolderIdTokenSendResponse) Status() string

Status returns HTTPResponse.Status

func (HolderIdTokenSendResponse) StatusCode​

func (r HolderIdTokenSendResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HolderOfferPassAuthInfoJSONRequestBody​

HolderOfferPassAuthInfoJSONRequestBody defines body for HolderOfferPassAuthInfo for application/json ContentType.

type HolderOfferPassAuthInfoJSONRequestBody = VcOffer

type HolderOfferPassAuthInfoParams​

HolderOfferPassAuthInfoParams defines parameters for HolderOfferPassAuthInfo.

type HolderOfferPassAuthInfoParams struct {
WalletId string `json:"wallet-id"`
}

type HolderOfferPassAuthInfoResponse​

type HolderOfferPassAuthInfoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *InteractionAuthorizationRequirements
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseHolderOfferPassAuthInfoResponse​

func ParseHolderOfferPassAuthInfoResponse(rsp *http.Response) (*HolderOfferPassAuthInfoResponse, error)

ParseHolderOfferPassAuthInfoResponse parses an HTTP response from a HolderOfferPassAuthInfoWithResponse call

func (HolderOfferPassAuthInfoResponse) ContentType​

func (r HolderOfferPassAuthInfoResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HolderOfferPassAuthInfoResponse) GetBody​

func (r HolderOfferPassAuthInfoResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HolderOfferPassAuthInfoResponse) GetJSON200​

func (r HolderOfferPassAuthInfoResponse) GetJSON200() *InteractionAuthorizationRequirements

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HolderOfferPassAuthInfoResponse) GetJSON400​

func (r HolderOfferPassAuthInfoResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (HolderOfferPassAuthInfoResponse) GetJSON404​

func (r HolderOfferPassAuthInfoResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (HolderOfferPassAuthInfoResponse) GetJSON500​

func (r HolderOfferPassAuthInfoResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (HolderOfferPassAuthInfoResponse) GetJSON502​

func (r HolderOfferPassAuthInfoResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (HolderOfferPassAuthInfoResponse) Status​

func (r HolderOfferPassAuthInfoResponse) Status() string

Status returns HTTPResponse.Status

func (HolderOfferPassAuthInfoResponse) StatusCode​

func (r HolderOfferPassAuthInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HolderOfferProcessAfterConsentJSONRequestBody​

HolderOfferProcessAfterConsentJSONRequestBody defines body for HolderOfferProcessAfterConsent for application/json ContentType.

type HolderOfferProcessAfterConsentJSONRequestBody = InteractionAuthorizationConsent

type HolderOfferProcessAfterConsentParams​

HolderOfferProcessAfterConsentParams defines parameters for HolderOfferProcessAfterConsent.

type HolderOfferProcessAfterConsentParams struct {
WalletId string `json:"wallet-id"`
}

type HolderOfferProcessAfterConsentResponse​

type HolderOfferProcessAfterConsentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]CredentialId
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseHolderOfferProcessAfterConsentResponse​

func ParseHolderOfferProcessAfterConsentResponse(rsp *http.Response) (*HolderOfferProcessAfterConsentResponse, error)

ParseHolderOfferProcessAfterConsentResponse parses an HTTP response from a HolderOfferProcessAfterConsentWithResponse call

func (HolderOfferProcessAfterConsentResponse) ContentType​

func (r HolderOfferProcessAfterConsentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HolderOfferProcessAfterConsentResponse) GetBody​

func (r HolderOfferProcessAfterConsentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HolderOfferProcessAfterConsentResponse) GetJSON200​

func (r HolderOfferProcessAfterConsentResponse) GetJSON200() *[]CredentialId

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HolderOfferProcessAfterConsentResponse) GetJSON400​

func (r HolderOfferProcessAfterConsentResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (HolderOfferProcessAfterConsentResponse) GetJSON404​

func (r HolderOfferProcessAfterConsentResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (HolderOfferProcessAfterConsentResponse) GetJSON500​

func (r HolderOfferProcessAfterConsentResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (HolderOfferProcessAfterConsentResponse) GetJSON502​

func (r HolderOfferProcessAfterConsentResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (HolderOfferProcessAfterConsentResponse) Status​

func (r HolderOfferProcessAfterConsentResponse) Status() string

Status returns HTTPResponse.Status

func (HolderOfferProcessAfterConsentResponse) StatusCode​

func (r HolderOfferProcessAfterConsentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HolderPresentPassAuthInfoJSONRequestBody​

HolderPresentPassAuthInfoJSONRequestBody defines body for HolderPresentPassAuthInfo for application/json ContentType.

type HolderPresentPassAuthInfoJSONRequestBody = PresentationRequest

type HolderPresentPassAuthInfoParams​

HolderPresentPassAuthInfoParams defines parameters for HolderPresentPassAuthInfo.

type HolderPresentPassAuthInfoParams struct {
WalletId string `json:"wallet-id"`
}

type HolderPresentPassAuthInfoResponse​

type HolderPresentPassAuthInfoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *InteractionAuthorizationRequirements
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseHolderPresentPassAuthInfoResponse​

func ParseHolderPresentPassAuthInfoResponse(rsp *http.Response) (*HolderPresentPassAuthInfoResponse, error)

ParseHolderPresentPassAuthInfoResponse parses an HTTP response from a HolderPresentPassAuthInfoWithResponse call

func (HolderPresentPassAuthInfoResponse) ContentType​

func (r HolderPresentPassAuthInfoResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HolderPresentPassAuthInfoResponse) GetBody​

func (r HolderPresentPassAuthInfoResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HolderPresentPassAuthInfoResponse) GetJSON200​

func (r HolderPresentPassAuthInfoResponse) GetJSON200() *InteractionAuthorizationRequirements

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HolderPresentPassAuthInfoResponse) GetJSON400​

func (r HolderPresentPassAuthInfoResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (HolderPresentPassAuthInfoResponse) GetJSON404​

func (r HolderPresentPassAuthInfoResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (HolderPresentPassAuthInfoResponse) GetJSON500​

func (r HolderPresentPassAuthInfoResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (HolderPresentPassAuthInfoResponse) Status​

func (r HolderPresentPassAuthInfoResponse) Status() string

Status returns HTTPResponse.Status

func (HolderPresentPassAuthInfoResponse) StatusCode​

func (r HolderPresentPassAuthInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer​

Doer performs HTTP requests.

The standard http.Client implements this interface.

type HttpRequestDoer interface {
Do(req *http.Request) (*http.Response, error)
}

type IdTokenReceivedNotification​

IdTokenReceivedNotification defines model for IdTokenReceivedNotification.

type IdTokenReceivedNotification struct {
ClientId string `json:"clientId"`
IdTokenRequestId string `json:"idTokenRequestId"`
}

type IdTokenRequest​

IdTokenRequest defines model for IdTokenRequest.

type IdTokenRequest struct {
Id string `json:"id"`
RequestUrl string `json:"requestUrl"`
}

type IdTokenRequestCreateParams​

IdTokenRequestCreateParams defines parameters for IdTokenRequestCreate.

type IdTokenRequestCreateParams struct {
WalletId string `json:"wallet-id"`
}

type IdTokenRequestCreateResponse​

type IdTokenRequestCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IdTokenRequest
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseIdTokenRequestCreateResponse​

func ParseIdTokenRequestCreateResponse(rsp *http.Response) (*IdTokenRequestCreateResponse, error)

ParseIdTokenRequestCreateResponse parses an HTTP response from a IdTokenRequestCreateWithResponse call

func (IdTokenRequestCreateResponse) ContentType​

func (r IdTokenRequestCreateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IdTokenRequestCreateResponse) GetBody​

func (r IdTokenRequestCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IdTokenRequestCreateResponse) GetJSON200​

func (r IdTokenRequestCreateResponse) GetJSON200() *IdTokenRequest

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IdTokenRequestCreateResponse) GetJSON400​

func (r IdTokenRequestCreateResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (IdTokenRequestCreateResponse) GetJSON500​

func (r IdTokenRequestCreateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (IdTokenRequestCreateResponse) Status​

func (r IdTokenRequestCreateResponse) Status() string

Status returns HTTPResponse.Status

func (IdTokenRequestCreateResponse) StatusCode​

func (r IdTokenRequestCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IdTokenSendRequest​

IdTokenSendRequest defines model for IdTokenSendRequest.

type IdTokenSendRequest struct {
RequestUrl string `json:"requestUrl"`
}

type IdtlConfiguration​

IdtlConfiguration Configuration for IDTL trust framework

type IdtlConfiguration struct {
// EtsiTslUrl URL of ETSI trusted list
EtsiTslUrl *string `json:"etsiTslUrl,omitempty"`

// IsOnboarded Whether the wallet is onboarded. Read-only; set by onboarding, ignored in requests.
IsOnboarded bool `json:"isOnboarded"`

// TrustedTslCertificates Base64 encoded certificates with which the TL validity is checked. Optional: left out,
// the trusted list is used as it is published, its signature checked cryptographically but
// pinned to no certificate, so whoever controls the list decides which services it names.
TrustedTslCertificates *[]string `json:"trustedTslCertificates,omitempty"`
}

type InitAuthOffer​

InitAuthOffer Request for authorization flow credential issuance process start. Consists of offered credential's types and credential offer endpoint (most commonly only schema)

type InitAuthOffer struct {
Deferred *bool `json:"deferred,omitempty"`

// IssuanceQueueItemId Id of issuance queue item. Required when issuer type is CredentialQueue type
// and no clientId was provided when adding credential to queue.
IssuanceQueueItemId *string `json:"issuanceQueueItemId,omitempty"`

// IssuerId ID of the issuer used to issue the credential.
IssuerId string `json:"issuerId"`

// IssuerIds IDs of further issuers whose credentials are offered together with the one of issuerId, one credential
// configuration each (OID4VCI 1.0 §4.1.1). The issuer of issuerId decides how the holder authorizes.
// Not supported together with wmpEntityId or issuanceQueueItemId.
IssuerIds *[]string `json:"issuerIds,omitempty"`

// OfferEndpoint The holder's credential offer endpoint (OID4VCI 1.0 §4.1): `offer` is this URL with the offer parameters in its query. Not used with `wmpEntityId`.
OfferEndpoint *string `json:"offerEndpoint,omitempty"`

// WmpEntityId ID of an WMP entity with which a WMP connection has already been established.
// If provided, WMP is used to send the credential offer to the specified recipient.
WmpEntityId *string `json:"wmpEntityId,omitempty"`
}

type InitPreAuthOffer​

InitPreAuthOffer Request for pre-authorized issuance process start. Consists of client id or id token request id, credential offer endpoint(most commonly only schema) and id's of credentials to be issued to client. Either clientId or idTokenRequestId MUST be present in the request.

type InitPreAuthOffer struct {
// ClientId DID of holder for which the offer is created.
ClientId *string `json:"clientId,omitempty"`
Deferred *bool `json:"deferred,omitempty"`

// IdTokenRequestId ID of ID token request issued to the holder.
IdTokenRequestId *string `json:"idTokenRequestId,omitempty"`

// IssuerId ID of the issuer used to issue the credential.
IssuerId string `json:"issuerId"`

// IssuerIds IDs of further issuers whose credentials are offered together with the one of issuerId, one credential
// configuration each (OID4VCI 1.0 §4.1.1). The issuer of issuerId decides how the holder authorizes.
// Not supported together with wmpEntityId.
IssuerIds *[]string `json:"issuerIds,omitempty"`

// OfferEndpoint The holder's credential offer endpoint (OID4VCI 1.0 §4.1): `offer` is this URL with the offer parameters in its query. Not used with `wmpEntityId`.
OfferEndpoint *string `json:"offerEndpoint,omitempty"`

// WmpEntityId ID of an WMP entity with which a WMP connection has already been established.
// If provided, WMP is used to send the credential offer to the specified recipient.
WmpEntityId *string `json:"wmpEntityId,omitempty"`
}

type InputDescriptorSuitableCredentials​

InputDescriptorSuitableCredentials defines model for InputDescriptorSuitableCredentials.

type InputDescriptorSuitableCredentials struct {
// Credentials Credential ID list of credentials suitable for presentation according to the specified input descriptor.
Credentials []CredentialToPresentWrapper `json:"credentials"`

// DescriptorId ID of presentation definition input descriptor for which the credential list is suitable.
DescriptorId string `json:"descriptorId"`
}

type InteractionAuthorizationConsent​

InteractionAuthorizationConsent defines model for InteractionAuthorizationConsent.

type InteractionAuthorizationConsent struct {
// CredentialsToPresent Array of IDs of credentials that will be presented in the interaction.
// Must be a subset of authorization requirements presentation candidates.
// Required when authorization requirement type is `vp_token`.
CredentialsToPresent *[]InputDescriptorSuitableCredentials `json:"credentialsToPresent,omitempty"`

// Pin Pin code needed for pre-authorized credential offers.
// Required when authorization requirement type is `pin`
Pin *string `json:"pin,omitempty"`
}

type InteractionAuthorizationRequirements​

InteractionAuthorizationRequirements defines model for InteractionAuthorizationRequirements.

type InteractionAuthorizationRequirements struct {
// AuthnUrl URL where custom user authentication for issuance shall be performed. Present when `requirementType` is
// `custom`.
AuthnUrl *string `json:"authnUrl,omitempty"`

// AutoAccepted True when the requested presentation was already auto-accepted and sent using credentials with their
// auto-accept flag enabled. `interactionId` does not refer to a pending interaction in this case, and no
// further consent call is needed or possible for it.
AutoAccepted *bool `json:"autoAccepted,omitempty"`

// DcqlQuery Digital Credentials Query Language query (OpenID4VP 1.0 §6). Unknown properties are ignored.
DcqlQuery *DCQLQuery `json:"dcqlQuery,omitempty"`
InteractionId string `json:"interactionId"`

// IssuerDisplay Array of objects, where each object contains display properties of a Credential Issuer for a certain language.
IssuerDisplay *[]IssuerDisplayItem `json:"issuerDisplay,omitempty"`
IssuerUrl string `json:"issuerUrl"`
OfferedCredentialsTypes *[]string `json:"offeredCredentialsTypes,omitempty"`

// PresentationCandidates List of credentials suitable for presentation.
PresentationCandidates *[]InputDescriptorSuitableCredentials `json:"presentationCandidates,omitempty"`

// PresentationDefinition Legacy DIF Presentation Exchange query, set only when the verifier sent no `dcql_query`.
PresentationDefinition *PresentationDefinition `json:"presentationDefinition,omitempty"`
RequirementType InteractionAuthorizationRequirementsRequirementType `json:"requirementType"`

// TransactionData Transaction data the holder authorizes by presenting (OpenID4VP 1.0 §5.1).
TransactionData *[]TransactionData `json:"transactionData,omitempty"`
}

type InteractionAuthorizationRequirementsRequirementType​

InteractionAuthorizationRequirementsRequirementType defines model for InteractionAuthorizationRequirements.RequirementType.

type InteractionAuthorizationRequirementsRequirementType string

Defines values for InteractionAuthorizationRequirementsRequirementType.

const (
InteractionAuthorizationRequirementsRequirementTypeCustom InteractionAuthorizationRequirementsRequirementType = "custom"
InteractionAuthorizationRequirementsRequirementTypeIdToken InteractionAuthorizationRequirementsRequirementType = "id_token"
InteractionAuthorizationRequirementsRequirementTypeNone InteractionAuthorizationRequirementsRequirementType = "none"
InteractionAuthorizationRequirementsRequirementTypePin InteractionAuthorizationRequirementsRequirementType = "pin"
InteractionAuthorizationRequirementsRequirementTypeVpToken InteractionAuthorizationRequirementsRequirementType = "vp_token"
)

func (InteractionAuthorizationRequirementsRequirementType) Valid​

func (e InteractionAuthorizationRequirementsRequirementType) Valid() bool

Valid indicates whether the value is a known member of the InteractionAuthorizationRequirementsRequirementType enum.

type InternalServerError​

InternalServerError Common error message

type InternalServerError = Error

type IssuanceRequirementsToVerify​

IssuanceRequirementsToVerify defines model for IssuanceRequirementsToVerify.

type IssuanceRequirementsToVerify struct {
VerifiedFields []FieldsToVerify `json:"verifiedFields"`
}

type IssuerCredentialTypesListParams​

IssuerCredentialTypesListParams defines parameters for IssuerCredentialTypesList.

type IssuerCredentialTypesListParams struct {
Url string `form:"url" json:"url"`
}

type IssuerCredentialTypesListResponse​

type IssuerCredentialTypesListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialTypes
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseIssuerCredentialTypesListResponse​

func ParseIssuerCredentialTypesListResponse(rsp *http.Response) (*IssuerCredentialTypesListResponse, error)

ParseIssuerCredentialTypesListResponse parses an HTTP response from a IssuerCredentialTypesListWithResponse call

func (IssuerCredentialTypesListResponse) ContentType​

func (r IssuerCredentialTypesListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssuerCredentialTypesListResponse) GetBody​

func (r IssuerCredentialTypesListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IssuerCredentialTypesListResponse) GetJSON200​

func (r IssuerCredentialTypesListResponse) GetJSON200() *CredentialTypes

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IssuerCredentialTypesListResponse) GetJSON400​

func (r IssuerCredentialTypesListResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (IssuerCredentialTypesListResponse) GetJSON500​

func (r IssuerCredentialTypesListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (IssuerCredentialTypesListResponse) Status​

func (r IssuerCredentialTypesListResponse) Status() string

Status returns HTTPResponse.Status

func (IssuerCredentialTypesListResponse) StatusCode​

func (r IssuerCredentialTypesListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IssuerDetachedJwsSignJSONRequestBody​

IssuerDetachedJwsSignJSONRequestBody defines body for IssuerDetachedJwsSign for application/json ContentType.

type IssuerDetachedJwsSignJSONRequestBody = IssuerDetachedJwsSignRequest

type IssuerDetachedJwsSignParams​

IssuerDetachedJwsSignParams defines parameters for IssuerDetachedJwsSign.

type IssuerDetachedJwsSignParams struct {
WalletId string `json:"wallet-id"`

// 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`.
IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

type IssuerDetachedJwsSignRequest​

IssuerDetachedJwsSignRequest defines model for IssuerDetachedJwsSignRequest.

type IssuerDetachedJwsSignRequest struct {
// Payload The payload to sign, base64url encoded; at most 64 KiB decoded.
Payload string `json:"payload"`

// Typ The JWS `typ`, one of `issuer.jws.allowedTypes`.
Typ string `json:"typ"`
}

type IssuerDetachedJwsSignResponse​

type IssuerDetachedJwsSignResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IssuerDetachedJwsSignResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseIssuerDetachedJwsSignResponse​

func ParseIssuerDetachedJwsSignResponse(rsp *http.Response) (*IssuerDetachedJwsSignResponse, error)

ParseIssuerDetachedJwsSignResponse parses an HTTP response from a IssuerDetachedJwsSignWithResponse call

func (IssuerDetachedJwsSignResponse) ContentType​

func (r IssuerDetachedJwsSignResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssuerDetachedJwsSignResponse) GetBody​

func (r IssuerDetachedJwsSignResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IssuerDetachedJwsSignResponse) GetJSON200​

func (r IssuerDetachedJwsSignResponse) GetJSON200() *IssuerDetachedJwsSignResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IssuerDetachedJwsSignResponse) GetJSON400​

func (r IssuerDetachedJwsSignResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (IssuerDetachedJwsSignResponse) GetJSON409​

func (r IssuerDetachedJwsSignResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (IssuerDetachedJwsSignResponse) GetJSON413​

func (r IssuerDetachedJwsSignResponse) GetJSON413() *Error

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (IssuerDetachedJwsSignResponse) GetJSON422​

func (r IssuerDetachedJwsSignResponse) GetJSON422() *Error

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (IssuerDetachedJwsSignResponse) GetJSON500​

func (r IssuerDetachedJwsSignResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (IssuerDetachedJwsSignResponse) Status​

func (r IssuerDetachedJwsSignResponse) Status() string

Status returns HTTPResponse.Status

func (IssuerDetachedJwsSignResponse) StatusCode​

func (r IssuerDetachedJwsSignResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IssuerDetachedJwsSignResult​

IssuerDetachedJwsSignResult defines model for IssuerDetachedJwsSignResult.

type IssuerDetachedJwsSignResult struct {
// Jws The compact detached JWS, `<protected header>..<signature>`.
Jws string `json:"jws"`

// Kid The verification method of the wallet's DID that signed.
Kid string `json:"kid"`
}

type IssuerDisplayItem​

IssuerDisplayItem defines model for IssuerDisplayItem.

type IssuerDisplayItem struct {
Locale *string `json:"locale,omitempty"`
Logo *IssuerLogo `json:"logo,omitempty"`
Name *string `json:"name,omitempty"`
}

type IssuerInitiateAuthOfferJSONRequestBody​

IssuerInitiateAuthOfferJSONRequestBody defines body for IssuerInitiateAuthOffer for application/json ContentType.

type IssuerInitiateAuthOfferJSONRequestBody = InitAuthOffer

type IssuerInitiateAuthOfferParams​

IssuerInitiateAuthOfferParams defines parameters for IssuerInitiateAuthOffer.

type IssuerInitiateAuthOfferParams struct {
WalletId string `json:"wallet-id"`
}

type IssuerInitiateAuthOfferResponse​

type IssuerInitiateAuthOfferResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuthOffer
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseIssuerInitiateAuthOfferResponse​

func ParseIssuerInitiateAuthOfferResponse(rsp *http.Response) (*IssuerInitiateAuthOfferResponse, error)

ParseIssuerInitiateAuthOfferResponse parses an HTTP response from a IssuerInitiateAuthOfferWithResponse call

func (IssuerInitiateAuthOfferResponse) ContentType​

func (r IssuerInitiateAuthOfferResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssuerInitiateAuthOfferResponse) GetBody​

func (r IssuerInitiateAuthOfferResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IssuerInitiateAuthOfferResponse) GetJSON200​

func (r IssuerInitiateAuthOfferResponse) GetJSON200() *AuthOffer

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IssuerInitiateAuthOfferResponse) GetJSON400​

func (r IssuerInitiateAuthOfferResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (IssuerInitiateAuthOfferResponse) GetJSON404​

func (r IssuerInitiateAuthOfferResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (IssuerInitiateAuthOfferResponse) GetJSON500​

func (r IssuerInitiateAuthOfferResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (IssuerInitiateAuthOfferResponse) Status​

func (r IssuerInitiateAuthOfferResponse) Status() string

Status returns HTTPResponse.Status

func (IssuerInitiateAuthOfferResponse) StatusCode​

func (r IssuerInitiateAuthOfferResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IssuerInitiatePreauthOfferJSONRequestBody​

IssuerInitiatePreauthOfferJSONRequestBody defines body for IssuerInitiatePreauthOffer for application/json ContentType.

type IssuerInitiatePreauthOfferJSONRequestBody = InitPreAuthOffer

type IssuerInitiatePreauthOfferParams​

IssuerInitiatePreauthOfferParams defines parameters for IssuerInitiatePreauthOffer.

type IssuerInitiatePreauthOfferParams struct {
WalletId string `json:"wallet-id"`
}

type IssuerInitiatePreauthOfferResponse​

type IssuerInitiatePreauthOfferResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PreAuthOffer
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseIssuerInitiatePreauthOfferResponse​

func ParseIssuerInitiatePreauthOfferResponse(rsp *http.Response) (*IssuerInitiatePreauthOfferResponse, error)

ParseIssuerInitiatePreauthOfferResponse parses an HTTP response from a IssuerInitiatePreauthOfferWithResponse call

func (IssuerInitiatePreauthOfferResponse) ContentType​

func (r IssuerInitiatePreauthOfferResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssuerInitiatePreauthOfferResponse) GetBody​

func (r IssuerInitiatePreauthOfferResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IssuerInitiatePreauthOfferResponse) GetJSON200​

func (r IssuerInitiatePreauthOfferResponse) GetJSON200() *PreAuthOffer

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IssuerInitiatePreauthOfferResponse) GetJSON400​

func (r IssuerInitiatePreauthOfferResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (IssuerInitiatePreauthOfferResponse) GetJSON404​

func (r IssuerInitiatePreauthOfferResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (IssuerInitiatePreauthOfferResponse) GetJSON500​

func (r IssuerInitiatePreauthOfferResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (IssuerInitiatePreauthOfferResponse) Status​

func (r IssuerInitiatePreauthOfferResponse) Status() string

Status returns HTTPResponse.Status

func (IssuerInitiatePreauthOfferResponse) StatusCode​

func (r IssuerInitiatePreauthOfferResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

IssuerLogo defines model for IssuerLogo.

type IssuerLogo struct {
AltText *string `json:"alt_text,omitempty"`
Uri *string `json:"uri,omitempty"`
}

type IssuerXadesSignMultipartBody​

IssuerXadesSignMultipartBody defines parameters for IssuerXadesSign.

type IssuerXadesSignMultipartBody struct {
XadesSignatureType XadesSignatureType `form:"xadesSignatureType" json:"xadesSignatureType"`
Xml openapi_types.File `form:"xml" json:"xml"`
}

type IssuerXadesSignMultipartRequestBody​

IssuerXadesSignMultipartRequestBody defines body for IssuerXadesSign for multipart/form-data ContentType.

type IssuerXadesSignMultipartRequestBody IssuerXadesSignMultipartBody

type IssuerXadesSignParams​

IssuerXadesSignParams defines parameters for IssuerXadesSign.

type IssuerXadesSignParams struct {
WalletId string `json:"wallet-id"`
}

type IssuerXadesSignResponse​

type IssuerXadesSignResponse struct {
Body []byte
HTTPResponse *http.Response
// XML200 the response for an HTTP 200 `application/xml` response
XML200 *map[string]interface{}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseIssuerXadesSignResponse​

func ParseIssuerXadesSignResponse(rsp *http.Response) (*IssuerXadesSignResponse, error)

ParseIssuerXadesSignResponse parses an HTTP response from a IssuerXadesSignWithResponse call

func (IssuerXadesSignResponse) ContentType​

func (r IssuerXadesSignResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssuerXadesSignResponse) GetBody​

func (r IssuerXadesSignResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IssuerXadesSignResponse) GetJSON400​

func (r IssuerXadesSignResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (IssuerXadesSignResponse) GetJSON500​

func (r IssuerXadesSignResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (IssuerXadesSignResponse) GetXML200​

func (r IssuerXadesSignResponse) GetXML200() *map[string]interface{}

GetXML200 returns the response for an HTTP 200 `application/xml` response

func (IssuerXadesSignResponse) Status​

func (r IssuerXadesSignResponse) Status() string

Status returns HTTPResponse.Status

func (IssuerXadesSignResponse) StatusCode​

func (r IssuerXadesSignResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LinkTarget​

LinkTarget A link target (RFC 9264 §4.2) as UNTP uses it for service endpoints. Other members, e.g. `accessRole`, are kept.

type LinkTarget struct {
Href string `json:"href"`
Hreflang *[]string `json:"hreflang,omitempty"`
Title *string `json:"title,omitempty"`

// Type The media type of the target, e.g. `application/vc+jwt`.
Type *string `json:"type,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (LinkTarget) Get​

func (a LinkTarget) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for LinkTarget. Returns the specified element and whether it was found

func (LinkTarget) MarshalJSON​

func (a LinkTarget) MarshalJSON() ([]byte, error)

Override default JSON handling for LinkTarget to handle AdditionalProperties

func (*LinkTarget) Set​

func (a *LinkTarget) Set(fieldName string, value interface{})

Setter for additional properties for LinkTarget

func (*LinkTarget) UnmarshalJSON​

func (a *LinkTarget) UnmarshalJSON(b []byte) error

Override default JSON handling for LinkTarget to handle AdditionalProperties

type ListSort​

ListSort Sort flag controls the sort direction by the time created

type ListSort string

Defines values for ListSort.

const (
Asc ListSort = "asc"
Desc ListSort = "desc"
)

func (ListSort) Valid​

func (e ListSort) Valid() bool

Valid indicates whether the value is a known member of the ListSort enum.

type NotFoundError​

NotFoundError Common error message

type NotFoundError = Error

type NotImplementedError​

NotImplementedError Common error message

type NotImplementedError = Error

type OfferReceivedNotification​

OfferReceivedNotification defines model for OfferReceivedNotification.

type OfferReceivedNotification struct {
CredentialId *string `json:"credentialId,omitempty"`
CredentialType string `json:"credentialType"`
OfferId string `json:"offerId"`
}

type OidcRevision​

OidcRevision Deprecated, the value is ignored. Only OIDC4VCI 1.0 and OIDC4VP 1.0 are supported; the wallet always reports Draft15 (OIDC4VCI 1.0) and Draft23 (OIDC4VP 1.0). Draft11 and Draft16 are accepted for backward compatibility only.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

type OidcRevision struct {
Oidc4vci OidcRevisionOidc4vci `json:"oidc4vci"`
Oidc4vp OidcRevisionOidc4vp `json:"oidc4vp"`
}

type OidcRevisionOidc4vci​

OidcRevisionOidc4vci defines model for OidcRevision.Oidc4vci.

type OidcRevisionOidc4vci string

Defines values for OidcRevisionOidc4vci.

const (
Draft11 OidcRevisionOidc4vci = "Draft11"
Draft15 OidcRevisionOidc4vci = "Draft15"
)

func (OidcRevisionOidc4vci) Valid​

func (e OidcRevisionOidc4vci) Valid() bool

Valid indicates whether the value is a known member of the OidcRevisionOidc4vci enum.

type OidcRevisionOidc4vp​

OidcRevisionOidc4vp defines model for OidcRevision.Oidc4vp.

type OidcRevisionOidc4vp string

Defines values for OidcRevisionOidc4vp.

const (
Draft16 OidcRevisionOidc4vp = "Draft16"
Draft23 OidcRevisionOidc4vp = "Draft23"
)

func (OidcRevisionOidc4vp) Valid​

func (e OidcRevisionOidc4vp) Valid() bool

Valid indicates whether the value is a known member of the OidcRevisionOidc4vp enum.

type OnboardResult​

OnboardResult On successful EBSI-onboarding result contains "did:ebsi" decentralized identifier

type OnboardResult struct {
Did string `json:"did"`
}

type OnboardingRequest​

OnboardingRequest Onboarding request of own wallet.

type OnboardingRequest struct {
// Offer A credential offer of the onboarding credential: the wallet accepts it, then onboards with the credential
// it receives. Not with `onboardingCredentialId`.
Offer *struct {
// Pin The transaction code of a pre-authorized offer.
Pin *string `json:"pin,omitempty"`
Url string `json:"url"`
} `json:"offer,omitempty"`

// OnboardingCredentialId Id of the onboarding credential that should be used for the onboarding process. Used when onboarding to IDTL
// and UNTP.
OnboardingCredentialId *string `json:"onboardingCredentialId,omitempty"`
}

type PdfCredentialMakeVpParams​

PdfCredentialMakeVpParams defines parameters for PdfCredentialMakeVp.

type PdfCredentialMakeVpParams struct {
// SignPdf Whether to sign the PDF with holder's X509 certificate or not
SignPdf bool `form:"sign_pdf" json:"sign_pdf"`
WalletId string `json:"wallet-id"`
}

type PdfCredentialMakeVpResponse​

type PdfCredentialMakeVpResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParsePdfCredentialMakeVpResponse​

func ParsePdfCredentialMakeVpResponse(rsp *http.Response) (*PdfCredentialMakeVpResponse, error)

ParsePdfCredentialMakeVpResponse parses an HTTP response from a PdfCredentialMakeVpWithResponse call

func (PdfCredentialMakeVpResponse) ContentType​

func (r PdfCredentialMakeVpResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PdfCredentialMakeVpResponse) GetBody​

func (r PdfCredentialMakeVpResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PdfCredentialMakeVpResponse) GetJSON400​

func (r PdfCredentialMakeVpResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PdfCredentialMakeVpResponse) GetJSON404​

func (r PdfCredentialMakeVpResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PdfCredentialMakeVpResponse) GetJSON500​

func (r PdfCredentialMakeVpResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PdfCredentialMakeVpResponse) Status​

func (r PdfCredentialMakeVpResponse) Status() string

Status returns HTTPResponse.Status

func (PdfCredentialMakeVpResponse) StatusCode​

func (r PdfCredentialMakeVpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PdfCredentialTwinDeleteParams​

PdfCredentialTwinDeleteParams defines parameters for PdfCredentialTwinDelete.

type PdfCredentialTwinDeleteParams struct {
WalletId string `json:"wallet-id"`
}

type PdfCredentialTwinDeleteResponse​

type PdfCredentialTwinDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParsePdfCredentialTwinDeleteResponse​

func ParsePdfCredentialTwinDeleteResponse(rsp *http.Response) (*PdfCredentialTwinDeleteResponse, error)

ParsePdfCredentialTwinDeleteResponse parses an HTTP response from a PdfCredentialTwinDeleteWithResponse call

func (PdfCredentialTwinDeleteResponse) ContentType​

func (r PdfCredentialTwinDeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PdfCredentialTwinDeleteResponse) GetBody​

func (r PdfCredentialTwinDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PdfCredentialTwinDeleteResponse) GetJSON400​

func (r PdfCredentialTwinDeleteResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PdfCredentialTwinDeleteResponse) GetJSON404​

func (r PdfCredentialTwinDeleteResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PdfCredentialTwinDeleteResponse) GetJSON500​

func (r PdfCredentialTwinDeleteResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PdfCredentialTwinDeleteResponse) Status​

func (r PdfCredentialTwinDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (PdfCredentialTwinDeleteResponse) StatusCode​

func (r PdfCredentialTwinDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PdfCredentialTwinGetParams​

PdfCredentialTwinGetParams defines parameters for PdfCredentialTwinGet.

type PdfCredentialTwinGetParams struct {
WalletId string `json:"wallet-id"`
}

type PdfCredentialTwinGetResponse​

type PdfCredentialTwinGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParsePdfCredentialTwinGetResponse​

func ParsePdfCredentialTwinGetResponse(rsp *http.Response) (*PdfCredentialTwinGetResponse, error)

ParsePdfCredentialTwinGetResponse parses an HTTP response from a PdfCredentialTwinGetWithResponse call

func (PdfCredentialTwinGetResponse) ContentType​

func (r PdfCredentialTwinGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PdfCredentialTwinGetResponse) GetBody​

func (r PdfCredentialTwinGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PdfCredentialTwinGetResponse) GetJSON400​

func (r PdfCredentialTwinGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PdfCredentialTwinGetResponse) GetJSON404​

func (r PdfCredentialTwinGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PdfCredentialTwinGetResponse) GetJSON500​

func (r PdfCredentialTwinGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PdfCredentialTwinGetResponse) Status​

func (r PdfCredentialTwinGetResponse) Status() string

Status returns HTTPResponse.Status

func (PdfCredentialTwinGetResponse) StatusCode​

func (r PdfCredentialTwinGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PdfCredentialTwinUploadMultipartBody​

PdfCredentialTwinUploadMultipartBody defines parameters for PdfCredentialTwinUpload.

type PdfCredentialTwinUploadMultipartBody struct {
Pdf openapi_types.File `form:"pdf" json:"pdf"`
}

type PdfCredentialTwinUploadMultipartRequestBody​

PdfCredentialTwinUploadMultipartRequestBody defines body for PdfCredentialTwinUpload for multipart/form-data ContentType.

type PdfCredentialTwinUploadMultipartRequestBody PdfCredentialTwinUploadMultipartBody

type PdfCredentialTwinUploadParams​

PdfCredentialTwinUploadParams defines parameters for PdfCredentialTwinUpload.

type PdfCredentialTwinUploadParams struct {
WalletId string `json:"wallet-id"`
}

type PdfCredentialTwinUploadResponse​

type PdfCredentialTwinUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParsePdfCredentialTwinUploadResponse​

func ParsePdfCredentialTwinUploadResponse(rsp *http.Response) (*PdfCredentialTwinUploadResponse, error)

ParsePdfCredentialTwinUploadResponse parses an HTTP response from a PdfCredentialTwinUploadWithResponse call

func (PdfCredentialTwinUploadResponse) ContentType​

func (r PdfCredentialTwinUploadResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PdfCredentialTwinUploadResponse) GetBody​

func (r PdfCredentialTwinUploadResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PdfCredentialTwinUploadResponse) GetJSON400​

func (r PdfCredentialTwinUploadResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PdfCredentialTwinUploadResponse) GetJSON404​

func (r PdfCredentialTwinUploadResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PdfCredentialTwinUploadResponse) GetJSON500​

func (r PdfCredentialTwinUploadResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PdfCredentialTwinUploadResponse) Status​

func (r PdfCredentialTwinUploadResponse) Status() string

Status returns HTTPResponse.Status

func (PdfCredentialTwinUploadResponse) StatusCode​

func (r PdfCredentialTwinUploadResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PdfVerificationResponse​

PdfVerificationResponse defines model for PdfVerificationResponse.

type PdfVerificationResponse struct {
Signatures *[]DocumentSignatureValidity `json:"signatures,omitempty"`

// VerifiedCredentials Wrapped result of successful verification interaction.
VerifiedCredentials *VerifiedWrapper `json:"verifiedCredentials,omitempty"`
VpValid *bool `json:"vpValid,omitempty"`
}

type PreAuthOffer​

PreAuthOffer Result of the preauthorized issuance process start. Consists of the preauthorized code, pin, and the issuer url.

type PreAuthOffer struct {
IssuerUrl string `json:"issuerUrl"`
Offer string `json:"offer"`
OfferId string `json:"offerId"`
Pin string `json:"pin"`
PreauthCode string `json:"preauthCode"`
ValidUntil time.Time `json:"validUntil"`
}

type PresentationDefinition​

PresentationDefinition defines model for PresentationDefinition.

type PresentationDefinition struct {
Format PresentationDefinitionFormat `json:"format"`
Id string `json:"id"`
InputDescriptors []PresentationDefinitionInputDescriptor `json:"input_descriptors"`
SubmissionRequirements *[]PresentationDefinitionSubmissionRequirements `json:"submission_requirements,omitempty"`
}

type PresentationDefinitionFormat​

PresentationDefinitionFormat defines model for PresentationDefinitionFormat.

type PresentationDefinitionFormat struct {
DcSdJwtVc *PresentationDefinitionFormatAlg `json:"dc+sd-jwt-vc,omitempty"`
JwtVc *PresentationDefinitionFormatAlg `json:"jwt_vc,omitempty"`
JwtVp *PresentationDefinitionFormatAlg `json:"jwt_vp,omitempty"`
MsoMdoc *PresentationDefinitionFormatAlg `json:"mso_mdoc,omitempty"`
SdJwt *PresentationDefinitionFormatAlg `json:"sd_jwt,omitempty"`
}

type PresentationDefinitionFormatAlg​

PresentationDefinitionFormatAlg defines model for PresentationDefinitionFormatAlg.

type PresentationDefinitionFormatAlg struct {
Alg []string `json:"alg"`
}

type PresentationDefinitionInputConstraint​

PresentationDefinitionInputConstraint defines model for PresentationDefinitionInputConstraint.

type PresentationDefinitionInputConstraint struct {
Fields []PresentationDefinitionInputConstraintField `json:"fields"`
}

type PresentationDefinitionInputConstraintField​

PresentationDefinitionInputConstraintField defines model for PresentationDefinitionInputConstraintField.

type PresentationDefinitionInputConstraintField struct {
Filter *map[string]interface{} `json:"filter,omitempty"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Path []string `json:"path"`
Purpose *string `json:"purpose,omitempty"`
}

type PresentationDefinitionInputDescriptor​

PresentationDefinitionInputDescriptor defines model for PresentationDefinitionInputDescriptor.

type PresentationDefinitionInputDescriptor struct {
Constraints PresentationDefinitionInputConstraint `json:"constraints"`
Format *PresentationDefinitionFormat `json:"format,omitempty"`
Group *[]string `json:"group,omitempty"`
Id string `json:"id"`
}

type PresentationDefinitionSubmissionRequirements​

PresentationDefinitionSubmissionRequirements defines model for PresentationDefinitionSubmissionRequirements.

type PresentationDefinitionSubmissionRequirements struct {
Count *int `json:"count,omitempty"`
From *string `json:"from,omitempty"`
FromNested *[]PresentationDefinitionSubmissionRequirements `json:"from_nested,omitempty"`
Max *int `json:"max,omitempty"`
Min *int `json:"min,omitempty"`
Name *string `json:"name,omitempty"`
Rule PresentationDefinitionSubmissionRequirementsRule `json:"rule"`
}

type PresentationDefinitionSubmissionRequirementsRule​

PresentationDefinitionSubmissionRequirementsRule defines model for PresentationDefinitionSubmissionRequirements.Rule.

type PresentationDefinitionSubmissionRequirementsRule string

Defines values for PresentationDefinitionSubmissionRequirementsRule.

const (
All PresentationDefinitionSubmissionRequirementsRule = "all"
Pick PresentationDefinitionSubmissionRequirementsRule = "pick"
)

func (PresentationDefinitionSubmissionRequirementsRule) Valid​

func (e PresentationDefinitionSubmissionRequirementsRule) Valid() bool

Valid indicates whether the value is a known member of the PresentationDefinitionSubmissionRequirementsRule enum.

type PresentationRequest​

PresentationRequest defines model for PresentationRequest.

type PresentationRequest struct {
// VerifierScope Custom authorization scope, used when `verifierUrl` is the URL of verifier
VerifierScope *string `json:"verifierScope,omitempty"`

// VerifierUrl URL of verifier or vp_token request url
VerifierUrl string `json:"verifierUrl"`
}

type PresentationResponse​

PresentationResponse Result of an authorization response sent to a verifier.

type PresentationResponse struct {
// RedirectUri URI the verifier asked the holder's user agent to be redirected to (OpenID4VP 1.0 §8.2). When present,
// the caller MUST redirect the user agent to it.
RedirectUri *string `json:"redirectUri,omitempty"`

// Response The JSON object the verifier answered the authorization response with, verbatim. A CS-15 QTSP answers
// the onboarding presentation with the onboarding result, which is passed to
// `WmpRelayOnboardingComplete` as is.
Response *map[string]interface{} `json:"response,omitempty"`
}

type RenderIndex​

RenderIndex defines model for RenderIndex.

type RenderIndex = int

type RenderMediaQuery​

RenderMediaQuery defines model for RenderMediaQuery.

type RenderMediaQuery = string

type RenderMethodInfo​

RenderMethodInfo defines model for RenderMethodInfo.

type RenderMethodInfo struct {
// Index The index of the method in the credential's `renderMethod`.
Index int `json:"index"`
Kind RenderMethodInfoKind `json:"kind"`
MediaQuery *string `json:"mediaQuery,omitempty"`

// MediaType The media type the method renders to.
MediaType *string `json:"mediaType,omitempty"`
Name *string `json:"name,omitempty"`

// RenderSuite `template2024` for a `RenderTemplate2024`, the `renderSuite` of a `TemplateRenderMethod`.
RenderSuite *string `json:"renderSuite,omitempty"`

// Renderable Whether the wallet can render with the method.
Renderable bool `json:"renderable"`
}

type RenderMethodInfoKind​

RenderMethodInfoKind defines model for RenderMethodInfo.Kind.

type RenderMethodInfoKind string

Defines values for RenderMethodInfoKind.

const (
RenderTemplate2024 RenderMethodInfoKind = "RenderTemplate2024"
TemplateRenderMethod RenderMethodInfoKind = "TemplateRenderMethod"
Unknown RenderMethodInfoKind = "unknown"
)

func (RenderMethodInfoKind) Valid​

func (e RenderMethodInfoKind) Valid() bool

Valid indicates whether the value is a known member of the RenderMethodInfoKind enum.

type RenderMethods​

RenderMethods The credential's VCDM `renderMethod` entries (W3C VCDM only): UNTP `RenderTemplate2024` (`type`, `name`, `mediaQuery`, `template`, `url`, `mediaType` `text/html` or `text/plain`, `digestMultibase`, nothing else, and a `template` or an https `url` with a `digestMultibase`) or W3C `TemplateRenderMethod` (`renderSuite` `html`, `card` or `nfc`, `renderProperty` JSON pointers, `template` a `data:` URL or an https URL, with a `digestMultibase` when remote). Other types are kept as given. Replaces the draft's render methods; an empty array removes them.

type RenderMethods = []map[string]interface{}

type RenderSuite​

RenderSuite A render suite; `template2024` is a UNTP `RenderTemplate2024`.

type RenderSuite string

Defines values for RenderSuite.

const (
Card RenderSuite = "card"
Html RenderSuite = "html"
Template2024 RenderSuite = "template2024"
)

func (RenderSuite) Valid​

func (e RenderSuite) Valid() bool

Valid indicates whether the value is a known member of the RenderSuite enum.

type RequestEditorFn​

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestEditorFn func(ctx context.Context, req *http.Request) error

func WithBearerToken​

func WithBearerToken(token string) RequestEditorFn

WithBearerToken returns a request editor that authenticates a single call with token, overriding the client's own credentials. It is meant for services that forward their caller's token, e.g.

client.CredentialListWithResponse(ctx, params, sdk.WithBearerToken(callerToken))

type RevokeAccreditationRequest​

RevokeAccreditationRequest Info needed to revoke legal entity's DID. `UntpRegistration` revokes the Digital Identity Anchors a UNTP registrar issued to the DID, and withdraws its pending request.

type RevokeAccreditationRequest struct {
Did string `json:"did"`
Type RevokeAccreditationRequestType `json:"type"`
}

type RevokeAccreditationRequestType​

RevokeAccreditationRequestType defines model for RevokeAccreditationRequest.Type.

type RevokeAccreditationRequestType string

Defines values for RevokeAccreditationRequestType.

const (
RevokeAccreditationRequestTypeTrustedAccreditationOrganisation RevokeAccreditationRequestType = "TrustedAccreditationOrganisation"
RevokeAccreditationRequestTypeTrustedIssuer RevokeAccreditationRequestType = "TrustedIssuer"
RevokeAccreditationRequestTypeUntpRegistration RevokeAccreditationRequestType = "UntpRegistration"
)

func (RevokeAccreditationRequestType) Valid​

func (e RevokeAccreditationRequestType) Valid() bool

Valid indicates whether the value is a known member of the RevokeAccreditationRequestType enum.

type SigningKeyIdentifier​

SigningKeyIdentifier defines model for SigningKeyIdentifier.

type SigningKeyIdentifier string

Defines values for SigningKeyIdentifier.

const (
Did SigningKeyIdentifier = "did"
Jwk SigningKeyIdentifier = "jwk"
X509 SigningKeyIdentifier = "x509"
)

func (SigningKeyIdentifier) Valid​

func (e SigningKeyIdentifier) Valid() bool

Valid indicates whether the value is a known member of the SigningKeyIdentifier enum.

type StatusPurpose​

StatusPurpose https://www.w3.org/TR/vc-bitstring-status-list/#bitstringstatuslistentry

type StatusPurpose string

Defines values for StatusPurpose.

const (
Revocation StatusPurpose = "revocation"
Suspension StatusPurpose = "suspension"
)

func (StatusPurpose) Valid​

func (e StatusPurpose) Valid() bool

Valid indicates whether the value is a known member of the StatusPurpose enum.

type SystemImpact​

SystemImpact The subsystem status impact on the overall system

type SystemImpact struct {
Message string `json:"message"`
Status SystemImpactStatus `json:"status"`
Subsystem string `json:"subsystem"`
}

type SystemImpactStatus​

SystemImpactStatus defines model for SystemImpact.Status.

type SystemImpactStatus string

Defines values for SystemImpactStatus.

const (
SystemImpactStatusCritical SystemImpactStatus = "critical"
SystemImpactStatusLimited SystemImpactStatus = "limited"
SystemImpactStatusOk SystemImpactStatus = "ok"
)

func (SystemImpactStatus) Valid​

func (e SystemImpactStatus) Valid() bool

Valid indicates whether the value is a known member of the SystemImpactStatus enum.

type TenantConfig​

TenantConfig The part of the wallet config that belongs to the wallet's tenant. A wallet joins a tenant only by enrollment, and only a Tenant Owner of that tenant changes this block, through PATCH /wallets/{wallet_id}. It is ignored on wallet create and, for anyone else, on wallet patch.

type TenantConfig struct {
// IssuerProxyUrl The issuer proxy the wallet's clients use: an absolute URL, https when the deployment runs with
// production=true. An empty string clears it. Not declared as format uri, which rejects the empty string;
// the wallet validates any other value and answers 400 when it is not such a URL.
IssuerProxyUrl *string `json:"issuerProxyUrl,omitempty"`

// TenantId The tenant the wallet belongs to. It never changes.
TenantId *string `json:"tenantId,omitempty"`
}

type TenantEnrollmentEnrollResponse​

type TenantEnrollmentEnrollResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WalletIdObject
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTenantEnrollmentEnrollResponse​

func ParseTenantEnrollmentEnrollResponse(rsp *http.Response) (*TenantEnrollmentEnrollResponse, error)

ParseTenantEnrollmentEnrollResponse parses an HTTP response from a TenantEnrollmentEnrollWithResponse call

func (TenantEnrollmentEnrollResponse) ContentType​

func (r TenantEnrollmentEnrollResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TenantEnrollmentEnrollResponse) GetBody​

func (r TenantEnrollmentEnrollResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TenantEnrollmentEnrollResponse) GetJSON200​

func (r TenantEnrollmentEnrollResponse) GetJSON200() *WalletIdObject

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TenantEnrollmentEnrollResponse) GetJSON403​

func (r TenantEnrollmentEnrollResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TenantEnrollmentEnrollResponse) GetJSON404​

func (r TenantEnrollmentEnrollResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TenantEnrollmentEnrollResponse) GetJSON500​

func (r TenantEnrollmentEnrollResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TenantEnrollmentEnrollResponse) Status​

func (r TenantEnrollmentEnrollResponse) Status() string

Status returns HTTPResponse.Status

func (TenantEnrollmentEnrollResponse) StatusCode​

func (r TenantEnrollmentEnrollResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TenantEnrollmentInitJSONRequestBody​

TenantEnrollmentInitJSONRequestBody defines body for TenantEnrollmentInit for application/json ContentType.

type TenantEnrollmentInitJSONRequestBody = EnrollmentInitPayload

type TenantEnrollmentInitResponse​

type TenantEnrollmentInitResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnrollmentInitResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTenantEnrollmentInitResponse​

func ParseTenantEnrollmentInitResponse(rsp *http.Response) (*TenantEnrollmentInitResponse, error)

ParseTenantEnrollmentInitResponse parses an HTTP response from a TenantEnrollmentInitWithResponse call

func (TenantEnrollmentInitResponse) ContentType​

func (r TenantEnrollmentInitResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TenantEnrollmentInitResponse) GetBody​

func (r TenantEnrollmentInitResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TenantEnrollmentInitResponse) GetJSON200​

func (r TenantEnrollmentInitResponse) GetJSON200() *EnrollmentInitResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TenantEnrollmentInitResponse) GetJSON400​

func (r TenantEnrollmentInitResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TenantEnrollmentInitResponse) GetJSON403​

func (r TenantEnrollmentInitResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TenantEnrollmentInitResponse) GetJSON409​

func (r TenantEnrollmentInitResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (TenantEnrollmentInitResponse) GetJSON500​

func (r TenantEnrollmentInitResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TenantEnrollmentInitResponse) Status​

func (r TenantEnrollmentInitResponse) Status() string

Status returns HTTPResponse.Status

func (TenantEnrollmentInitResponse) StatusCode​

func (r TenantEnrollmentInitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TenantEnrollmentListResponse​

type TenantEnrollmentListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnrollmentList
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTenantEnrollmentListResponse​

func ParseTenantEnrollmentListResponse(rsp *http.Response) (*TenantEnrollmentListResponse, error)

ParseTenantEnrollmentListResponse parses an HTTP response from a TenantEnrollmentListWithResponse call

func (TenantEnrollmentListResponse) ContentType​

func (r TenantEnrollmentListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TenantEnrollmentListResponse) GetBody​

func (r TenantEnrollmentListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TenantEnrollmentListResponse) GetJSON200​

func (r TenantEnrollmentListResponse) GetJSON200() *EnrollmentList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TenantEnrollmentListResponse) GetJSON403​

func (r TenantEnrollmentListResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TenantEnrollmentListResponse) GetJSON500​

func (r TenantEnrollmentListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TenantEnrollmentListResponse) Status​

func (r TenantEnrollmentListResponse) Status() string

Status returns HTTPResponse.Status

func (TenantEnrollmentListResponse) StatusCode​

func (r TenantEnrollmentListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TenantEnrollmentRevokeResponse​

type TenantEnrollmentRevokeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTenantEnrollmentRevokeResponse​

func ParseTenantEnrollmentRevokeResponse(rsp *http.Response) (*TenantEnrollmentRevokeResponse, error)

ParseTenantEnrollmentRevokeResponse parses an HTTP response from a TenantEnrollmentRevokeWithResponse call

func (TenantEnrollmentRevokeResponse) ContentType​

func (r TenantEnrollmentRevokeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TenantEnrollmentRevokeResponse) GetBody​

func (r TenantEnrollmentRevokeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TenantEnrollmentRevokeResponse) GetJSON403​

func (r TenantEnrollmentRevokeResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TenantEnrollmentRevokeResponse) GetJSON404​

func (r TenantEnrollmentRevokeResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TenantEnrollmentRevokeResponse) GetJSON500​

func (r TenantEnrollmentRevokeResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TenantEnrollmentRevokeResponse) Status​

func (r TenantEnrollmentRevokeResponse) Status() string

Status returns HTTPResponse.Status

func (TenantEnrollmentRevokeResponse) StatusCode​

func (r TenantEnrollmentRevokeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfAccreditAsJSONRequestBody​

TfAccreditAsJSONRequestBody defines body for TfAccreditAs for application/json ContentType.

type TfAccreditAsJSONRequestBody = AccreditationRequest

type TfAccreditAsParams​

TfAccreditAsParams defines parameters for TfAccreditAs.

type TfAccreditAsParams struct {
WalletId string `json:"wallet-id"`
}

type TfAccreditAsResponse​

type TfAccreditAsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfAccreditAsResponse​

func ParseTfAccreditAsResponse(rsp *http.Response) (*TfAccreditAsResponse, error)

ParseTfAccreditAsResponse parses an HTTP response from a TfAccreditAsWithResponse call

func (TfAccreditAsResponse) ContentType​

func (r TfAccreditAsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfAccreditAsResponse) GetBody​

func (r TfAccreditAsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfAccreditAsResponse) GetJSON400​

func (r TfAccreditAsResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfAccreditAsResponse) GetJSON404​

func (r TfAccreditAsResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TfAccreditAsResponse) GetJSON500​

func (r TfAccreditAsResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfAccreditAsResponse) Status​

func (r TfAccreditAsResponse) Status() string

Status returns HTTPResponse.Status

func (TfAccreditAsResponse) StatusCode​

func (r TfAccreditAsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfAccreditRequestJSONRequestBody​

TfAccreditRequestJSONRequestBody defines body for TfAccreditRequest for application/json ContentType.

type TfAccreditRequestJSONRequestBody = EntityAccreditationRequest

type TfAccreditRequestParams​

TfAccreditRequestParams defines parameters for TfAccreditRequest.

type TfAccreditRequestParams struct {
WalletId string `json:"wallet-id"`
}

type TfAccreditRequestResponse​

type TfAccreditRequestResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfAccreditRequestResponse​

func ParseTfAccreditRequestResponse(rsp *http.Response) (*TfAccreditRequestResponse, error)

ParseTfAccreditRequestResponse parses an HTTP response from a TfAccreditRequestWithResponse call

func (TfAccreditRequestResponse) ContentType​

func (r TfAccreditRequestResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfAccreditRequestResponse) GetBody​

func (r TfAccreditRequestResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfAccreditRequestResponse) GetJSON400​

func (r TfAccreditRequestResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfAccreditRequestResponse) GetJSON404​

func (r TfAccreditRequestResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TfAccreditRequestResponse) GetJSON500​

func (r TfAccreditRequestResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfAccreditRequestResponse) Status​

func (r TfAccreditRequestResponse) Status() string

Status returns HTTPResponse.Status

func (TfAccreditRequestResponse) StatusCode​

func (r TfAccreditRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfOnboardJSONRequestBody​

TfOnboardJSONRequestBody defines body for TfOnboard for application/json ContentType.

type TfOnboardJSONRequestBody = OnboardingRequest

type TfOnboardParams​

TfOnboardParams defines parameters for TfOnboard.

type TfOnboardParams struct {
WalletId string `json:"wallet-id"`
}

type TfOnboardRequestJSONRequestBody​

TfOnboardRequestJSONRequestBody defines body for TfOnboardRequest for application/json ContentType.

type TfOnboardRequestJSONRequestBody = EntityOnboardingRequest

type TfOnboardRequestParams​

TfOnboardRequestParams defines parameters for TfOnboardRequest.

type TfOnboardRequestParams struct {
WalletId string `json:"wallet-id"`
}

type TfOnboardRequestResponse​

type TfOnboardRequestResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfOnboardRequestResponse​

func ParseTfOnboardRequestResponse(rsp *http.Response) (*TfOnboardRequestResponse, error)

ParseTfOnboardRequestResponse parses an HTTP response from a TfOnboardRequestWithResponse call

func (TfOnboardRequestResponse) ContentType​

func (r TfOnboardRequestResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfOnboardRequestResponse) GetBody​

func (r TfOnboardRequestResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfOnboardRequestResponse) GetJSON400​

func (r TfOnboardRequestResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfOnboardRequestResponse) GetJSON404​

func (r TfOnboardRequestResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TfOnboardRequestResponse) GetJSON500​

func (r TfOnboardRequestResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfOnboardRequestResponse) Status​

func (r TfOnboardRequestResponse) Status() string

Status returns HTTPResponse.Status

func (TfOnboardRequestResponse) StatusCode​

func (r TfOnboardRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfOnboardResponse​

type TfOnboardResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OnboardResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfOnboardResponse​

func ParseTfOnboardResponse(rsp *http.Response) (*TfOnboardResponse, error)

ParseTfOnboardResponse parses an HTTP response from a TfOnboardWithResponse call

func (TfOnboardResponse) ContentType​

func (r TfOnboardResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfOnboardResponse) GetBody​

func (r TfOnboardResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfOnboardResponse) GetJSON200​

func (r TfOnboardResponse) GetJSON200() *OnboardResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TfOnboardResponse) GetJSON400​

func (r TfOnboardResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfOnboardResponse) GetJSON404​

func (r TfOnboardResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TfOnboardResponse) GetJSON500​

func (r TfOnboardResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfOnboardResponse) Status​

func (r TfOnboardResponse) Status() string

Status returns HTTPResponse.Status

func (TfOnboardResponse) StatusCode​

func (r TfOnboardResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfRevokeAccreditationJSONRequestBody​

TfRevokeAccreditationJSONRequestBody defines body for TfRevokeAccreditation for application/json ContentType.

type TfRevokeAccreditationJSONRequestBody = RevokeAccreditationRequest

type TfRevokeAccreditationParams​

TfRevokeAccreditationParams defines parameters for TfRevokeAccreditation.

type TfRevokeAccreditationParams struct {
WalletId string `json:"wallet-id"`
}

type TfRevokeAccreditationResponse​

type TfRevokeAccreditationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfRevokeAccreditationResponse​

func ParseTfRevokeAccreditationResponse(rsp *http.Response) (*TfRevokeAccreditationResponse, error)

ParseTfRevokeAccreditationResponse parses an HTTP response from a TfRevokeAccreditationWithResponse call

func (TfRevokeAccreditationResponse) ContentType​

func (r TfRevokeAccreditationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfRevokeAccreditationResponse) GetBody​

func (r TfRevokeAccreditationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfRevokeAccreditationResponse) GetJSON400​

func (r TfRevokeAccreditationResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfRevokeAccreditationResponse) GetJSON404​

func (r TfRevokeAccreditationResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TfRevokeAccreditationResponse) GetJSON500​

func (r TfRevokeAccreditationResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfRevokeAccreditationResponse) Status​

func (r TfRevokeAccreditationResponse) Status() string

Status returns HTTPResponse.Status

func (TfRevokeAccreditationResponse) StatusCode​

func (r TfRevokeAccreditationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfUntpDiaIssueJSONRequestBody​

TfUntpDiaIssueJSONRequestBody defines body for TfUntpDiaIssue for application/json ContentType.

type TfUntpDiaIssueJSONRequestBody = UntpDiaIssueRequest

type TfUntpDiaIssueParams​

TfUntpDiaIssueParams defines parameters for TfUntpDiaIssue.

type TfUntpDiaIssueParams struct {
WalletId string `json:"wallet-id"`
}

type TfUntpDiaIssueResponse​

type TfUntpDiaIssueResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UntpDiaIssueResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *UnprocessableEntityError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfUntpDiaIssueResponse​

func ParseTfUntpDiaIssueResponse(rsp *http.Response) (*TfUntpDiaIssueResponse, error)

ParseTfUntpDiaIssueResponse parses an HTTP response from a TfUntpDiaIssueWithResponse call

func (TfUntpDiaIssueResponse) ContentType​

func (r TfUntpDiaIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfUntpDiaIssueResponse) GetBody​

func (r TfUntpDiaIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfUntpDiaIssueResponse) GetJSON200​

func (r TfUntpDiaIssueResponse) GetJSON200() *UntpDiaIssueResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TfUntpDiaIssueResponse) GetJSON400​

func (r TfUntpDiaIssueResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfUntpDiaIssueResponse) GetJSON403​

func (r TfUntpDiaIssueResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TfUntpDiaIssueResponse) GetJSON422​

func (r TfUntpDiaIssueResponse) GetJSON422() *UnprocessableEntityError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (TfUntpDiaIssueResponse) GetJSON500​

func (r TfUntpDiaIssueResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfUntpDiaIssueResponse) Status​

func (r TfUntpDiaIssueResponse) Status() string

Status returns HTTPResponse.Status

func (TfUntpDiaIssueResponse) StatusCode​

func (r TfUntpDiaIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfUntpDiaListParams​

TfUntpDiaListParams defines parameters for TfUntpDiaList.

type TfUntpDiaListParams struct {
// Did Only those issued to this DID.
Did *string `form:"did,omitempty" json:"did,omitempty"`
WalletId string `json:"wallet-id"`
}

type TfUntpDiaListResponse​

type TfUntpDiaListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]UntpIssuedDia
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *UnprocessableEntityError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfUntpDiaListResponse​

func ParseTfUntpDiaListResponse(rsp *http.Response) (*TfUntpDiaListResponse, error)

ParseTfUntpDiaListResponse parses an HTTP response from a TfUntpDiaListWithResponse call

func (TfUntpDiaListResponse) ContentType​

func (r TfUntpDiaListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfUntpDiaListResponse) GetBody​

func (r TfUntpDiaListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfUntpDiaListResponse) GetJSON200​

func (r TfUntpDiaListResponse) GetJSON200() *[]UntpIssuedDia

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TfUntpDiaListResponse) GetJSON422​

func (r TfUntpDiaListResponse) GetJSON422() *UnprocessableEntityError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (TfUntpDiaListResponse) GetJSON500​

func (r TfUntpDiaListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfUntpDiaListResponse) Status​

func (r TfUntpDiaListResponse) Status() string

Status returns HTTPResponse.Status

func (TfUntpDiaListResponse) StatusCode​

func (r TfUntpDiaListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfUntpRequestListParams​

TfUntpRequestListParams defines parameters for TfUntpRequestList.

type TfUntpRequestListParams struct {
WalletId string `json:"wallet-id"`
}

type TfUntpRequestListResponse​

type TfUntpRequestListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]UntpPendingDia
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *UnprocessableEntityError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfUntpRequestListResponse​

func ParseTfUntpRequestListResponse(rsp *http.Response) (*TfUntpRequestListResponse, error)

ParseTfUntpRequestListResponse parses an HTTP response from a TfUntpRequestListWithResponse call

func (TfUntpRequestListResponse) ContentType​

func (r TfUntpRequestListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfUntpRequestListResponse) GetBody​

func (r TfUntpRequestListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfUntpRequestListResponse) GetJSON200​

func (r TfUntpRequestListResponse) GetJSON200() *[]UntpPendingDia

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TfUntpRequestListResponse) GetJSON422​

func (r TfUntpRequestListResponse) GetJSON422() *UnprocessableEntityError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (TfUntpRequestListResponse) GetJSON500​

func (r TfUntpRequestListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfUntpRequestListResponse) Status​

func (r TfUntpRequestListResponse) Status() string

Status returns HTTPResponse.Status

func (TfUntpRequestListResponse) StatusCode​

func (r TfUntpRequestListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfX509CertificateGetRecordParams​

TfX509CertificateGetRecordParams defines parameters for TfX509CertificateGetRecord.

type TfX509CertificateGetRecordParams struct {
WalletId string `json:"wallet-id"`
}

type TfX509CertificateGetRecordResponse​

type TfX509CertificateGetRecordResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CertificateRecordGetResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfX509CertificateGetRecordResponse​

func ParseTfX509CertificateGetRecordResponse(rsp *http.Response) (*TfX509CertificateGetRecordResponse, error)

ParseTfX509CertificateGetRecordResponse parses an HTTP response from a TfX509CertificateGetRecordWithResponse call

func (TfX509CertificateGetRecordResponse) ContentType​

func (r TfX509CertificateGetRecordResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfX509CertificateGetRecordResponse) GetBody​

func (r TfX509CertificateGetRecordResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfX509CertificateGetRecordResponse) GetJSON200​

func (r TfX509CertificateGetRecordResponse) GetJSON200() *CertificateRecordGetResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TfX509CertificateGetRecordResponse) GetJSON400​

func (r TfX509CertificateGetRecordResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfX509CertificateGetRecordResponse) GetJSON404​

func (r TfX509CertificateGetRecordResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TfX509CertificateGetRecordResponse) GetJSON500​

func (r TfX509CertificateGetRecordResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfX509CertificateGetRecordResponse) Status​

func (r TfX509CertificateGetRecordResponse) Status() string

Status returns HTTPResponse.Status

func (TfX509CertificateGetRecordResponse) StatusCode​

func (r TfX509CertificateGetRecordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfX509CertificateIssueJSONRequestBody​

TfX509CertificateIssueJSONRequestBody defines body for TfX509CertificateIssue for application/json ContentType.

type TfX509CertificateIssueJSONRequestBody = CertificateIssueRequest

type TfX509CertificateIssueParams​

TfX509CertificateIssueParams defines parameters for TfX509CertificateIssue.

type TfX509CertificateIssueParams struct {
WalletId string `json:"wallet-id"`
}

type TfX509CertificateIssueResponse​

type TfX509CertificateIssueResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CertificateIssueResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfX509CertificateIssueResponse​

func ParseTfX509CertificateIssueResponse(rsp *http.Response) (*TfX509CertificateIssueResponse, error)

ParseTfX509CertificateIssueResponse parses an HTTP response from a TfX509CertificateIssueWithResponse call

func (TfX509CertificateIssueResponse) ContentType​

func (r TfX509CertificateIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfX509CertificateIssueResponse) GetBody​

func (r TfX509CertificateIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfX509CertificateIssueResponse) GetJSON200​

func (r TfX509CertificateIssueResponse) GetJSON200() *CertificateIssueResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TfX509CertificateIssueResponse) GetJSON400​

func (r TfX509CertificateIssueResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfX509CertificateIssueResponse) GetJSON404​

func (r TfX509CertificateIssueResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TfX509CertificateIssueResponse) GetJSON500​

func (r TfX509CertificateIssueResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfX509CertificateIssueResponse) Status​

func (r TfX509CertificateIssueResponse) Status() string

Status returns HTTPResponse.Status

func (TfX509CertificateIssueResponse) StatusCode​

func (r TfX509CertificateIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfX509CertificateListRecordsParams​

TfX509CertificateListRecordsParams defines parameters for TfX509CertificateListRecords.

type TfX509CertificateListRecordsParams struct {
WalletId string `json:"wallet-id"`
}

type TfX509CertificateListRecordsResponse​

type TfX509CertificateListRecordsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CertificateRecordList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfX509CertificateListRecordsResponse​

func ParseTfX509CertificateListRecordsResponse(rsp *http.Response) (*TfX509CertificateListRecordsResponse, error)

ParseTfX509CertificateListRecordsResponse parses an HTTP response from a TfX509CertificateListRecordsWithResponse call

func (TfX509CertificateListRecordsResponse) ContentType​

func (r TfX509CertificateListRecordsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfX509CertificateListRecordsResponse) GetBody​

func (r TfX509CertificateListRecordsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfX509CertificateListRecordsResponse) GetJSON200​

func (r TfX509CertificateListRecordsResponse) GetJSON200() *CertificateRecordList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TfX509CertificateListRecordsResponse) GetJSON400​

func (r TfX509CertificateListRecordsResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfX509CertificateListRecordsResponse) GetJSON500​

func (r TfX509CertificateListRecordsResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfX509CertificateListRecordsResponse) Status​

func (r TfX509CertificateListRecordsResponse) Status() string

Status returns HTTPResponse.Status

func (TfX509CertificateListRecordsResponse) StatusCode​

func (r TfX509CertificateListRecordsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TfX509CertificateUpdateStatusJSONRequestBody​

TfX509CertificateUpdateStatusJSONRequestBody defines body for TfX509CertificateUpdateStatus for application/json ContentType.

type TfX509CertificateUpdateStatusJSONRequestBody = CertificateStatusUpdateRequest

type TfX509CertificateUpdateStatusParams​

TfX509CertificateUpdateStatusParams defines parameters for TfX509CertificateUpdateStatus.

type TfX509CertificateUpdateStatusParams struct {
WalletId string `json:"wallet-id"`
}

type TfX509CertificateUpdateStatusResponse​

type TfX509CertificateUpdateStatusResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseTfX509CertificateUpdateStatusResponse​

func ParseTfX509CertificateUpdateStatusResponse(rsp *http.Response) (*TfX509CertificateUpdateStatusResponse, error)

ParseTfX509CertificateUpdateStatusResponse parses an HTTP response from a TfX509CertificateUpdateStatusWithResponse call

func (TfX509CertificateUpdateStatusResponse) ContentType​

func (r TfX509CertificateUpdateStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TfX509CertificateUpdateStatusResponse) GetBody​

func (r TfX509CertificateUpdateStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TfX509CertificateUpdateStatusResponse) GetJSON400​

func (r TfX509CertificateUpdateStatusResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TfX509CertificateUpdateStatusResponse) GetJSON404​

func (r TfX509CertificateUpdateStatusResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TfX509CertificateUpdateStatusResponse) GetJSON500​

func (r TfX509CertificateUpdateStatusResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TfX509CertificateUpdateStatusResponse) Status​

func (r TfX509CertificateUpdateStatusResponse) Status() string

Status returns HTTPResponse.Status

func (TfX509CertificateUpdateStatusResponse) StatusCode​

func (r TfX509CertificateUpdateStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TransactionData​

TransactionData A transaction_data object (OpenID4VP 1.0 §5.1). Type-specific fields are kept as given.

type TransactionData struct {
CredentialIds []string `json:"credential_ids"`
Type string `json:"type"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (TransactionData) Get​

func (a TransactionData) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for TransactionData. Returns the specified element and whether it was found

func (TransactionData) MarshalJSON​

func (a TransactionData) MarshalJSON() ([]byte, error)

Override default JSON handling for TransactionData to handle AdditionalProperties

func (*TransactionData) Set​

func (a *TransactionData) Set(fieldName string, value interface{})

Setter for additional properties for TransactionData

func (*TransactionData) UnmarshalJSON​

func (a *TransactionData) UnmarshalJSON(b []byte) error

Override default JSON handling for TransactionData to handle AdditionalProperties

type TrustFrameworkType​

TrustFrameworkType 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.

type TrustFrameworkType string

Defines values for TrustFrameworkType.

const (
EBSI TrustFrameworkType = "EBSI"
EUDI TrustFrameworkType = "EUDI"
IDTL TrustFrameworkType = "IDTL"
NOOP TrustFrameworkType = "NOOP"
UNTP TrustFrameworkType = "UNTP"
)

func (TrustFrameworkType) Valid​

func (e TrustFrameworkType) Valid() bool

Valid indicates whether the value is a known member of the TrustFrameworkType enum.

type TrustListAddJSONRequestBody​

TrustListAddJSONRequestBody defines body for TrustListAdd for application/json ContentType.

type TrustListAddJSONRequestBody = TrustListAddRequest

type TrustListAddRequest​

TrustListAddRequest defines model for TrustListAddRequest.

type TrustListAddRequest struct {
// Kind 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.
Kind TrustListKind `json:"kind"`

// Url The URL the trusted list is published at.
Url string `json:"url"`
}

type TrustListAddResponse​

type TrustListAddResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON501 the response for an HTTP 501 `application/json` response
JSON501 *NotImplementedError
}

func ParseTrustListAddResponse​

func ParseTrustListAddResponse(rsp *http.Response) (*TrustListAddResponse, error)

ParseTrustListAddResponse parses an HTTP response from a TrustListAddWithResponse call

func (TrustListAddResponse) ContentType​

func (r TrustListAddResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TrustListAddResponse) GetBody​

func (r TrustListAddResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TrustListAddResponse) GetJSON400​

func (r TrustListAddResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TrustListAddResponse) GetJSON403​

func (r TrustListAddResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TrustListAddResponse) GetJSON500​

func (r TrustListAddResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TrustListAddResponse) GetJSON501​

func (r TrustListAddResponse) GetJSON501() *NotImplementedError

GetJSON501 returns the response for an HTTP 501 `application/json` response

func (TrustListAddResponse) Status​

func (r TrustListAddResponse) Status() string

Status returns HTTPResponse.Status

func (TrustListAddResponse) StatusCode​

func (r TrustListAddResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TrustListDeleteParams​

TrustListDeleteParams defines parameters for TrustListDelete.

type TrustListDeleteParams struct {
// Url The URL the trusted list is published at.
Url string `form:"url" json:"url"`
}

type TrustListDeleteResponse​

type TrustListDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON501 the response for an HTTP 501 `application/json` response
JSON501 *NotImplementedError
}

func ParseTrustListDeleteResponse​

func ParseTrustListDeleteResponse(rsp *http.Response) (*TrustListDeleteResponse, error)

ParseTrustListDeleteResponse parses an HTTP response from a TrustListDeleteWithResponse call

func (TrustListDeleteResponse) ContentType​

func (r TrustListDeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TrustListDeleteResponse) GetBody​

func (r TrustListDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TrustListDeleteResponse) GetJSON400​

func (r TrustListDeleteResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TrustListDeleteResponse) GetJSON403​

func (r TrustListDeleteResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TrustListDeleteResponse) GetJSON404​

func (r TrustListDeleteResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TrustListDeleteResponse) GetJSON500​

func (r TrustListDeleteResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TrustListDeleteResponse) GetJSON501​

func (r TrustListDeleteResponse) GetJSON501() *NotImplementedError

GetJSON501 returns the response for an HTTP 501 `application/json` response

func (TrustListDeleteResponse) Status​

func (r TrustListDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (TrustListDeleteResponse) StatusCode​

func (r TrustListDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TrustListKind​

TrustListKind 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.

type TrustListKind string

Defines values for TrustListKind.

const (
Lotl TrustListKind = "lotl"
TrustList TrustListKind = "trustList"
)

func (TrustListKind) Valid​

func (e TrustListKind) Valid() bool

Valid indicates whether the value is a known member of the TrustListKind enum.

type TrustListRefreshParams​

TrustListRefreshParams defines parameters for TrustListRefresh.

type TrustListRefreshParams struct {
// Url The URL the trusted list is published at.
Url string `form:"url" json:"url"`
}

type TrustListRefreshResponse​

type TrustListRefreshResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON501 the response for an HTTP 501 `application/json` response
JSON501 *NotImplementedError
}

func ParseTrustListRefreshResponse​

func ParseTrustListRefreshResponse(rsp *http.Response) (*TrustListRefreshResponse, error)

ParseTrustListRefreshResponse parses an HTTP response from a TrustListRefreshWithResponse call

func (TrustListRefreshResponse) ContentType​

func (r TrustListRefreshResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TrustListRefreshResponse) GetBody​

func (r TrustListRefreshResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TrustListRefreshResponse) GetJSON400​

func (r TrustListRefreshResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (TrustListRefreshResponse) GetJSON403​

func (r TrustListRefreshResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TrustListRefreshResponse) GetJSON404​

func (r TrustListRefreshResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (TrustListRefreshResponse) GetJSON409​

func (r TrustListRefreshResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (TrustListRefreshResponse) GetJSON500​

func (r TrustListRefreshResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TrustListRefreshResponse) GetJSON501​

func (r TrustListRefreshResponse) GetJSON501() *NotImplementedError

GetJSON501 returns the response for an HTTP 501 `application/json` response

func (TrustListRefreshResponse) Status​

func (r TrustListRefreshResponse) Status() string

Status returns HTTPResponse.Status

func (TrustListRefreshResponse) StatusCode​

func (r TrustListRefreshResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TrustListSource​

TrustListSource One tracked trusted list, and how current the stored copy of it is.

type TrustListSource struct {
// IssueDate When the publisher issued the stored copy.
IssueDate *time.Time `json:"issue_date,omitempty"`

// Kind 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.
Kind TrustListKind `json:"kind"`

// SequenceNumber The publisher's sequence number for the stored copy.
SequenceNumber *int `json:"sequence_number,omitempty"`

// SignerSubject Subject of the certificate the stored copy is pinned to. A refresh of this list is
// only accepted if it is signed by the same certificate.
SignerSubject *string `json:"signer_subject,omitempty"`

// Url The URL the trusted list is published at.
Url string `json:"url"`
}

type TrustListsGetResponse​

type TrustListsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TrustListsResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON501 the response for an HTTP 501 `application/json` response
JSON501 *NotImplementedError
}

func ParseTrustListsGetResponse​

func ParseTrustListsGetResponse(rsp *http.Response) (*TrustListsGetResponse, error)

ParseTrustListsGetResponse parses an HTTP response from a TrustListsGetWithResponse call

func (TrustListsGetResponse) ContentType​

func (r TrustListsGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TrustListsGetResponse) GetBody​

func (r TrustListsGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TrustListsGetResponse) GetJSON200​

func (r TrustListsGetResponse) GetJSON200() *TrustListsResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TrustListsGetResponse) GetJSON403​

func (r TrustListsGetResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (TrustListsGetResponse) GetJSON500​

func (r TrustListsGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (TrustListsGetResponse) GetJSON501​

func (r TrustListsGetResponse) GetJSON501() *NotImplementedError

GetJSON501 returns the response for an HTTP 501 `application/json` response

func (TrustListsGetResponse) Status​

func (r TrustListsGetResponse) Status() string

Status returns HTTPResponse.Status

func (TrustListsGetResponse) StatusCode​

func (r TrustListsGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TrustListsResponse​

TrustListsResponse defines model for TrustListsResponse.

type TrustListsResponse struct {
TrustLists []TrustListSource `json:"trust_lists"`
}

type UnprocessableEntityError​

UnprocessableEntityError Common error message

type UnprocessableEntityError = Error

type UntpConfiguration​

UntpConfiguration Configuration of the UNTP trust framework. The wallet has a self-hosted did:web, and its `walletKeyIdentifier` must be `did`. Every DID it resolves a key of, to verify a credential, a status list or a presentation, must be anchored by a UNTP Digital Identity Anchor chained up to a trusted registrar: those of `untp.dia.trustedRegistrars` and `untp.dia.registryUrl`, and the wallet's own `trustedRegistrars`.

type UntpConfiguration struct {
// IsOnboarded Whether the wallet holds a DIA of its own. Read-only; set by onboarding, ignored in requests.
IsOnboarded bool `json:"isOnboarded"`

// IssuerPolicy What `/verifier/did` requires of the issuers of a credential type; replaces the deployment's.
IssuerPolicy *[]UntpIssuerPolicy `json:"issuerPolicy,omitempty"`

// Registrar How a registrar names itself as the issuer of the DIAs it issues.
Registrar *struct {
Name string `json:"name"`
} `json:"registrar,omitempty"`

// Role A `registrar` issues DIAs; a `member` is anchored by one. Read-only once the wallet is created: a wallet
// patch keeps it.
Role *UntpConfigurationRole `json:"role,omitempty"`

// TrustedRegistrars Registrars this wallet trusts besides the deployment's; they take precedence.
TrustedRegistrars *[]UntpRegistrarConfig `json:"trustedRegistrars,omitempty"`
}

type UntpConfigurationRole​

UntpConfigurationRole A `registrar` issues DIAs; a `member` is anchored by one. Read-only once the wallet is created: a wallet patch keeps it.

type UntpConfigurationRole string

Defines values for UntpConfigurationRole.

const (
Member UntpConfigurationRole = "member"
Registrar UntpConfigurationRole = "registrar"
)

func (UntpConfigurationRole) Valid​

func (e UntpConfigurationRole) Valid() bool

Valid indicates whether the value is a known member of the UntpConfigurationRole enum.

type UntpCoordinate​

UntpCoordinate defines model for UntpCoordinate.

type UntpCoordinate struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
}

type UntpDia​

UntpDia How a UNTP wallet anchored a DID.

type UntpDia struct {
// Chain The DIAs from the DID's own up to the one a trusted registrar issued.
Chain []UntpRecognition `json:"chain"`

// Registrar A registrar trusted to issue Digital Identity Anchors, modelled on the UN GRID entry.
Registrar *UntpRegistrar `json:"registrar,omitempty"`

// Registrations The registrations of the DID's own DIA.
Registrations *[]UntpRegistration `json:"registrations,omitempty"`
}

type UntpDiaIssueRequest​

UntpDiaIssueRequest A Digital Identity Anchor issued without a proof that the member controls the DID.

type UntpDiaIssueRequest struct {
// Delivery `return` issues the DIA and returns it. `offer` makes the request pending and returns a pre-authorized
// offer of it for the DID, which the member accepts with a proof of control.
Delivery *UntpDiaIssueRequestDelivery `json:"delivery,omitempty"`

// Dia What a UNTP registrar anchors in the Digital Identity Anchor (UNTP 0.8.0) it issues to a DID: the recognized
// entity, and its registrations in the registrar's registers. Each register and recognition scope needs a
// `name`, and `register.registerType` and `controlType` are UN/CEFACT codes.
Dia UntpDiaRequest `json:"dia"`
Did string `json:"did"`
ValidUntil time.Time `json:"validUntil"`
}

type UntpDiaIssueRequestDelivery​

UntpDiaIssueRequestDelivery `return` issues the DIA and returns it. `offer` makes the request pending and returns a pre-authorized offer of it for the DID, which the member accepts with a proof of control.

type UntpDiaIssueRequestDelivery string

Defines values for UntpDiaIssueRequestDelivery.

const (
Offer UntpDiaIssueRequestDelivery = "offer"
Return UntpDiaIssueRequestDelivery = "return"
)

func (UntpDiaIssueRequestDelivery) Valid​

func (e UntpDiaIssueRequestDelivery) Valid() bool

Valid indicates whether the value is a known member of the UntpDiaIssueRequestDelivery enum.

type UntpDiaIssueResult​

UntpDiaIssueResult defines model for UntpDiaIssueResult.

type UntpDiaIssueResult struct {
// Credential The issued DIA as signed, with `delivery` `return`.
Credential *string `json:"credential,omitempty"`

// CredentialId The issued DIA, with `delivery` `return`.
CredentialId *string `json:"credentialId,omitempty"`

// Offer Result of the preauthorized issuance process start. Consists of the preauthorized code, pin, and the issuer url.
Offer *PreAuthOffer `json:"offer,omitempty"`
}

type UntpDiaNotification​

UntpDiaNotification defines model for UntpDiaNotification.

type UntpDiaNotification struct {
CredentialId string `json:"credentialId"`

// Did The DID the DIA anchors.
Did string `json:"did"`
EventType UntpDiaNotificationEventType `json:"eventType"`
}

type UntpDiaNotificationEventType​

UntpDiaNotificationEventType defines model for UntpDiaNotification.EventType.

type UntpDiaNotificationEventType string

Defines values for UntpDiaNotificationEventType.

const (
UntpDiaNotificationEventTypeUntpDiaIssued UntpDiaNotificationEventType = "untp.dia.issued"
UntpDiaNotificationEventTypeUntpDiaPublished UntpDiaNotificationEventType = "untp.dia.published"
UntpDiaNotificationEventTypeUntpDiaRevoked UntpDiaNotificationEventType = "untp.dia.revoked"
)

func (UntpDiaNotificationEventType) Valid​

func (e UntpDiaNotificationEventType) Valid() bool

Valid indicates whether the value is a known member of the UntpDiaNotificationEventType enum.

type UntpDiaRequest​

UntpDiaRequest What a UNTP registrar anchors in the Digital Identity Anchor (UNTP 0.8.0) it issues to a DID: the recognized entity, and its registrations in the registrar's registers. Each register and recognition scope needs a `name`, and `register.registerType` and `controlType` are UN/CEFACT codes.

type UntpDiaRequest struct {
// AlsoKnownAs The same entity in another system or register.
AlsoKnownAs *struct {
Id string `json:"id"`
Name *string `json:"name,omitempty"`
} `json:"alsoKnownAs,omitempty"`

// Name The name of the entity as the registrar holds it.
Name string `json:"name"`
Registration []UntpRegistration `json:"registration"`
}

type UntpFailure​

UntpFailure defines model for UntpFailure.

type UntpFailure struct {
// Code Why the credential failed: `fetch_failed`, `unsupported_media_type`, `too_large`, `too_many_links`,
// `format_unsupported`, `signature_invalid`, `issuer_key_unresolvable`, `trust_chain_failed`, `expired`,
// `not_yet_valid`, `revoked`, `suspended`, `status_check_failed`, `schema_invalid`, `schema_unavailable`,
// `jsonld_invalid` or `unknown`.
Code string `json:"code"`
Error string `json:"error"`
Href string `json:"href"`
LinkType string `json:"linkType"`
}

type UntpFetchedCredential​

UntpFetchedCredential A linked credential, verified (`credential`) or failed (`error` and `errorCode`).

type UntpFetchedCredential struct {
// Credential The wrapper contains Verifiable Credential Subject and Metadata.
Credential *CredentialWrapper `json:"credential,omitempty"`
Error *string `json:"error,omitempty"`
ErrorCode *string `json:"errorCode,omitempty"`
Href string `json:"href"`
LinkType string `json:"linkType"`
}

type UntpIdentifier​

UntpIdentifier defines model for UntpIdentifier.

type UntpIdentifier struct {
Canonical string `json:"canonical"`

// Kind The kind of identifier; only `did` is resolved.
Kind string `json:"kind"`
}

type UntpIssuedDia​

UntpIssuedDia A Digital Identity Anchor a UNTP registrar issued.

type UntpIssuedDia struct {
CredentialId string `json:"credentialId"`
Did string `json:"did"`

// Name The name of the recognized entity.
Name *string `json:"name,omitempty"`

// Status The DIA's status in the registrar's wallet.
Status UntpIssuedDiaStatus `json:"status"`
ValidFrom *time.Time `json:"validFrom,omitempty"`
ValidUntil *time.Time `json:"validUntil,omitempty"`
}

type UntpIssuedDiaStatus​

UntpIssuedDiaStatus The DIA's status in the registrar's wallet.

type UntpIssuedDiaStatus string

Defines values for UntpIssuedDiaStatus.

const (
UntpIssuedDiaStatusInvalid UntpIssuedDiaStatus = "invalid"
UntpIssuedDiaStatusRevoked UntpIssuedDiaStatus = "revoked"
UntpIssuedDiaStatusSuspended UntpIssuedDiaStatus = "suspended"
UntpIssuedDiaStatusValid UntpIssuedDiaStatus = "valid"
)

func (UntpIssuedDiaStatus) Valid​

func (e UntpIssuedDiaStatus) Valid() bool

Valid indicates whether the value is a known member of the UntpIssuedDiaStatus enum.

type UntpIssuerPolicy​

UntpIssuerPolicy What a verifier requires of the issuers of a credential type.

type UntpIssuerPolicy struct {
AllowedRegisterTypes *[]string `json:"allowedRegisterTypes,omitempty"`
CredentialType string `json:"credentialType"`
RequireAuthoritativeRegistrar *bool `json:"requireAuthoritativeRegistrar,omitempty"`
RequireDia *bool `json:"requireDia,omitempty"`
RequireRegisterMandate *bool `json:"requireRegisterMandate,omitempty"`

// RequiredScopes Recognition scope URIs the issuer must hold, at every level of its chain.
RequiredScopes *[]string `json:"requiredScopes,omitempty"`
}

UntpLink A credential published as a UNTP link.

type UntpLink struct {
CredentialId string `json:"credentialId"`

// Href The public URL of the credential.
Href string `json:"href"`
LinkType string `json:"linkType"`

// ServiceId The id of the DID document service, `<did>#<fragment>`.
ServiceId string `json:"serviceId"`
Title *string `json:"title,omitempty"`
}

type UntpLinkDeleteParams​

UntpLinkDeleteParams defines parameters for UntpLinkDelete.

type UntpLinkDeleteParams struct {
WalletId string `json:"wallet-id"`
}

type UntpLinkDeleteResponse​

type UntpLinkDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseUntpLinkDeleteResponse​

func ParseUntpLinkDeleteResponse(rsp *http.Response) (*UntpLinkDeleteResponse, error)

ParseUntpLinkDeleteResponse parses an HTTP response from a UntpLinkDeleteWithResponse call

func (UntpLinkDeleteResponse) ContentType​

func (r UntpLinkDeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UntpLinkDeleteResponse) GetBody​

func (r UntpLinkDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UntpLinkDeleteResponse) GetJSON404​

func (r UntpLinkDeleteResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UntpLinkDeleteResponse) GetJSON500​

func (r UntpLinkDeleteResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UntpLinkDeleteResponse) Status​

func (r UntpLinkDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (UntpLinkDeleteResponse) StatusCode​

func (r UntpLinkDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UntpLinkListParams​

UntpLinkListParams defines parameters for UntpLinkList.

type UntpLinkListParams struct {
WalletId string `json:"wallet-id"`
}

type UntpLinkListResponse​

type UntpLinkListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]UntpLink
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseUntpLinkListResponse​

func ParseUntpLinkListResponse(rsp *http.Response) (*UntpLinkListResponse, error)

ParseUntpLinkListResponse parses an HTTP response from a UntpLinkListWithResponse call

func (UntpLinkListResponse) ContentType​

func (r UntpLinkListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UntpLinkListResponse) GetBody​

func (r UntpLinkListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UntpLinkListResponse) GetJSON200​

func (r UntpLinkListResponse) GetJSON200() *[]UntpLink

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UntpLinkListResponse) GetJSON409​

func (r UntpLinkListResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UntpLinkListResponse) GetJSON500​

func (r UntpLinkListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UntpLinkListResponse) Status​

func (r UntpLinkListResponse) Status() string

Status returns HTTPResponse.Status

func (UntpLinkListResponse) StatusCode​

func (r UntpLinkListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UntpLinkOptions​

UntpLinkOptions How to publish a credential as a UNTP link.

type UntpLinkOptions struct {
Hreflang *[]string `json:"hreflang,omitempty"`

// LinkType The UNTP link type, e.g. `dpp`.
LinkType string `json:"linkType"`
Title *string `json:"title,omitempty"`
}

type UntpLinkPublishJSONRequestBody​

UntpLinkPublishJSONRequestBody defines body for UntpLinkPublish for application/json ContentType.

type UntpLinkPublishJSONRequestBody = UntpLinkPublishRequest

type UntpLinkPublishParams​

UntpLinkPublishParams defines parameters for UntpLinkPublish.

type UntpLinkPublishParams struct {
WalletId string `json:"wallet-id"`
}

type UntpLinkPublishRequest​

UntpLinkPublishRequest defines model for UntpLinkPublishRequest.

type UntpLinkPublishRequest struct {
CredentialId string `json:"credentialId"`

// Hreflang The languages of the credential. Defaults to `["en"]`.
Hreflang *[]string `json:"hreflang,omitempty"`

// LinkType The UNTP link type: `dpp`, `dcc`, `dfr`, `dte`, `dia` or `dcr`, its UNTP 0.8.0 IRI
// (`https://test.uncefact.org/vocabulary/link-type/dia`) or its UNTP 0.7 alias (`untp:dia`). The DID
// service is published with the 0.8.0 value, the IRI for every type but `dpp`.
LinkType string `json:"linkType"`

// Title The title of the link. Defaults to the link type's, e.g. `Digital Product Passport`.
Title *string `json:"title,omitempty"`
}

type UntpLinkPublishResponse​

type UntpLinkPublishResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UntpLink
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseUntpLinkPublishResponse​

func ParseUntpLinkPublishResponse(rsp *http.Response) (*UntpLinkPublishResponse, error)

ParseUntpLinkPublishResponse parses an HTTP response from a UntpLinkPublishWithResponse call

func (UntpLinkPublishResponse) ContentType​

func (r UntpLinkPublishResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UntpLinkPublishResponse) GetBody​

func (r UntpLinkPublishResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UntpLinkPublishResponse) GetJSON200​

func (r UntpLinkPublishResponse) GetJSON200() *UntpLink

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UntpLinkPublishResponse) GetJSON400​

func (r UntpLinkPublishResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UntpLinkPublishResponse) GetJSON404​

func (r UntpLinkPublishResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UntpLinkPublishResponse) GetJSON409​

func (r UntpLinkPublishResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UntpLinkPublishResponse) GetJSON500​

func (r UntpLinkPublishResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UntpLinkPublishResponse) Status​

func (r UntpLinkPublishResponse) Status() string

Status returns HTTPResponse.Status

func (UntpLinkPublishResponse) StatusCode​

func (r UntpLinkPublishResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UntpPendingDia​

UntpPendingDia A DID a UNTP registrar is ready to issue a Digital Identity Anchor to, once it proves control of it.

type UntpPendingDia struct {
// Dia What a UNTP registrar anchors in the Digital Identity Anchor (UNTP 0.8.0) it issues to a DID: the recognized
// entity, and its registrations in the registrar's registers. Each register and recognition scope needs a
// `name`, and `register.registerType` and `controlType` are UN/CEFACT codes.
Dia UntpDiaRequest `json:"dia"`
Did string `json:"did"`

// ValidUntil When the DIA expires; the request expires then too.
ValidUntil time.Time `json:"validUntil"`
}

type UntpRecognition​

UntpRecognition One DIA of a recognition chain.

type UntpRecognition struct {
CredentialId *string `json:"credentialId,omitempty"`

// Entity The W3C RecognizedEntity, every property as the DIA has it.
Entity map[string]interface{} `json:"entity"`
Issuer string `json:"issuer"`

// Source Where the DIA was found.
Source *string `json:"source,omitempty"`
Subject string `json:"subject"`
Types *[]string `json:"types,omitempty"`
ValidFrom *time.Time `json:"validFrom,omitempty"`
ValidUntil *time.Time `json:"validUntil,omitempty"`
}

type UntpRecognitionScope​

UntpRecognitionScope What a registrar recognizes, as a definition it publishes.

type UntpRecognitionScope struct {
Id string `json:"id"`
Name *string `json:"name,omitempty"`
}

type UntpRegister​

UntpRegister The register that holds a registration.

type UntpRegister struct {
Id string `json:"id"`
Name *string `json:"name,omitempty"`
RegisterType string `json:"registerType"`
}

type UntpRegistrar​

UntpRegistrar A registrar trusted to issue Digital Identity Anchors, modelled on the UN GRID entry.

type UntpRegistrar struct {
// AlsoIn The other places the registrar is listed, whose entry `source`'s takes precedence over.
AlsoIn *[]UntpRegistrarSource `json:"alsoIn,omitempty"`
Authoritative *bool `json:"authoritative,omitempty"`
Did string `json:"did"`
Domain *string `json:"domain,omitempty"`
GridReference *string `json:"gridReference,omitempty"`
Jurisdiction *string `json:"jurisdiction,omitempty"`
Name *string `json:"name,omitempty"`
RegisterTypes *[]string `json:"registerTypes,omitempty"`
Registers *[]string `json:"registers,omitempty"`

// Source Where a trusted registrar is listed: the wallet's `UNTP.trustedRegistrars` (`wallet`), the deployment's
// `untp.dia.trustedRegistrars` (`deployment`), or the deployment's remote registry (`registry`). Set in
// `GET /untp/registry` only.
Source *UntpRegistrarSource `json:"source,omitempty"`
Status *string `json:"status,omitempty"`
}

type UntpRegistrarConfig​

UntpRegistrarConfig A registrar trusted to issue Digital Identity Anchors, modelled on the UN GRID entry.

type UntpRegistrarConfig struct {
// Authoritative A GRID-listed sovereign register.
Authoritative *bool `json:"authoritative,omitempty"`
Did string `json:"did"`

// Domain The host a did:web registrar DID must have.
Domain *string `json:"domain,omitempty"`
GridReference *string `json:"gridReference,omitempty"`
Jurisdiction *string `json:"jurisdiction,omitempty"`
Name *string `json:"name,omitempty"`

// PublicKeys The only JWKs its signatures may be made with.
PublicKeys *[]map[string]interface{} `json:"publicKeys,omitempty"`

// RegisterTypes The register types its DIAs may have.
RegisterTypes *[]string `json:"registerTypes,omitempty"`

// Registers The registers it maintains; a DIA it issues must name one.
Registers *[]string `json:"registers,omitempty"`
Status *UntpRegistrarConfigStatus `json:"status,omitempty"`
}

type UntpRegistrarConfigStatus​

UntpRegistrarConfigStatus defines model for UntpRegistrarConfig.Status.

type UntpRegistrarConfigStatus string

Defines values for UntpRegistrarConfigStatus.

const (
UntpRegistrarConfigStatusActive UntpRegistrarConfigStatus = "Active"
UntpRegistrarConfigStatusKeyCompromised UntpRegistrarConfigStatus = "KeyCompromised"
UntpRegistrarConfigStatusSuspended UntpRegistrarConfigStatus = "Suspended"
)

func (UntpRegistrarConfigStatus) Valid​

func (e UntpRegistrarConfigStatus) Valid() bool

Valid indicates whether the value is a known member of the UntpRegistrarConfigStatus enum.

type UntpRegistrarSource​

UntpRegistrarSource Where a trusted registrar is listed: the wallet's `UNTP.trustedRegistrars` (`wallet`), the deployment's `untp.dia.trustedRegistrars` (`deployment`), or the deployment's remote registry (`registry`). Set in `GET /untp/registry` only.

type UntpRegistrarSource string

Defines values for UntpRegistrarSource.

const (
UntpRegistrarSourceDeployment UntpRegistrarSource = "deployment"
UntpRegistrarSourceRegistry UntpRegistrarSource = "registry"
UntpRegistrarSourceWallet UntpRegistrarSource = "wallet"
)

func (UntpRegistrarSource) Valid​

func (e UntpRegistrarSource) Valid() bool

Valid indicates whether the value is a known member of the UntpRegistrarSource enum.

type UntpRegistration​

UntpRegistration A UNTP RegisteredIdentity of a DIA.

type UntpRegistration struct {
ControlType *string `json:"controlType,omitempty"`

// GeoBoundary The ordered coordinates of a closed polygon bounding the registered thing.
GeoBoundary *[]UntpCoordinate `json:"geoBoundary,omitempty"`
Id *string `json:"id,omitempty"`
RecognitionScope *[]UntpRecognitionScope `json:"recognitionScope,omitempty"`

// Register The register that holds a registration.
Register UntpRegister `json:"register"`
RegisteredDate *string `json:"registeredDate,omitempty"`
RegisteredId string `json:"registeredId"`
RegisteredName *string `json:"registeredName,omitempty"`
}

type UntpRegistry​

UntpRegistry defines model for UntpRegistry.

type UntpRegistry struct {
Registrars []UntpRegistrar `json:"registrars"`

// Registry The deployment's remote registry (`untp.dia.registryUrl`) and the copy of it in use. It is fetched again once
// it is older than `untp.dia.registryRefresh`; while that fails, the last copy is used, `stale`, for up to
// `untp.dia.registryKeep`. Without a copy, `error` says why.
Registry *UntpRemoteRegistry `json:"registry,omitempty"`
Self struct {
Authoritative *bool `json:"authoritative,omitempty"`
Did *string `json:"did,omitempty"`
Listed bool `json:"listed"`
Status *string `json:"status,omitempty"`
} `json:"self"`
}

type UntpRegistryListParams​

UntpRegistryListParams defines parameters for UntpRegistryList.

type UntpRegistryListParams struct {
WalletId string `json:"wallet-id"`
}

type UntpRegistryListResponse​

type UntpRegistryListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UntpRegistry
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseUntpRegistryListResponse​

func ParseUntpRegistryListResponse(rsp *http.Response) (*UntpRegistryListResponse, error)

ParseUntpRegistryListResponse parses an HTTP response from a UntpRegistryListWithResponse call

func (UntpRegistryListResponse) ContentType​

func (r UntpRegistryListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UntpRegistryListResponse) GetBody​

func (r UntpRegistryListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UntpRegistryListResponse) GetJSON200​

func (r UntpRegistryListResponse) GetJSON200() *UntpRegistry

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UntpRegistryListResponse) GetJSON500​

func (r UntpRegistryListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UntpRegistryListResponse) Status​

func (r UntpRegistryListResponse) Status() string

Status returns HTTPResponse.Status

func (UntpRegistryListResponse) StatusCode​

func (r UntpRegistryListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UntpRemoteRegistry​

UntpRemoteRegistry The deployment's remote registry (`untp.dia.registryUrl`) and the copy of it in use. It is fetched again once it is older than `untp.dia.registryRefresh`; while that fails, the last copy is used, `stale`, for up to `untp.dia.registryKeep`. Without a copy, `error` says why.

type UntpRemoteRegistry struct {
Error *string `json:"error,omitempty"`

// FetchedAt When the copy in use was fetched; absent without a copy.
FetchedAt *time.Time `json:"fetchedAt,omitempty"`
Stale bool `json:"stale"`
Url string `json:"url"`
}

type UntpResolveResult​

UntpResolveResult defines model for UntpResolveResult.

type UntpResolveResult struct {
Anchor string `json:"anchor"`
Credentials *[]UntpFetchedCredential `json:"credentials,omitempty"`
Identifier UntpIdentifier `json:"identifier"`

// Issuer Whether the wallet's trust framework trusts a DID, and how it established it.
Issuer *DidVerification `json:"issuer,omitempty"`

// Linkset The RFC 9264 linkset of the identifier's UNTP links.
Linkset map[string]interface{} `json:"linkset"`

// Verification The verdict over every fetched credential, present with `fetch`.
Verification *UntpVerification `json:"verification,omitempty"`
}

type UntpVerification​

UntpVerification The verdict over every fetched credential, present with `fetch`.

type UntpVerification struct {
Failed []UntpFailure `json:"failed"`
Fetched int `json:"fetched"`

// Ok True only when at least one credential was fetched and every fetched credential verified.
Ok bool `json:"ok"`
Verified int `json:"verified"`
}

type VPDrivenIssuerConfig​

VPDrivenIssuerConfig defines model for VPDrivenIssuerConfig.

type VPDrivenIssuerConfig struct {
// CredentialVerifierId ID of the verifier used for verification of presented credential.
CredentialVerifierId *string `json:"credentialVerifierId,omitempty"`

// Mapping Mapping of the input values set as JSONPath elements to the output credential claims.
Mapping map[string]interface{} `json:"mapping"`

// UseAuthnProviderResult When true, authentication result returned from custom login provider configured for this issuer is used.
// In this case, credentialVerifierId must not be set.
UseAuthnProviderResult *bool `json:"useAuthnProviderResult,omitempty"`
}

type VaultType​

VaultType 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.

type VaultType string

Defines values for VaultType.

const (
VaultAwsKms VaultType = "vaultAwsKms"
VaultKmip VaultType = "vaultKmip"
VaultOvhKms VaultType = "vaultOvhKms"
VaultPlaintext VaultType = "vaultPlaintext"
)

func (VaultType) Valid​

func (e VaultType) Valid() bool

Valid indicates whether the value is a known member of the VaultType enum.

type VcOffer​

VcOffer The offer to be accepted. The offer URL is mandatory.

type VcOffer struct {
// Url The Verifiable Credential offer URL provided by the issuer
Url string `json:"Url"`
}

type VcdmIssuerProperties​

VcdmIssuerProperties Properties of the VCDM `issuer` object besides `id`, which is always the wallet's identifier (W3C VCDM only).

type VcdmIssuerProperties struct {
IssuerAlsoKnownAs *[]map[string]interface{} `json:"issuerAlsoKnownAs,omitempty"`
Name *string `json:"name,omitempty"`
Type *[]string `json:"type,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (VcdmIssuerProperties) Get​

func (a VcdmIssuerProperties) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for VcdmIssuerProperties. Returns the specified element and whether it was found

func (VcdmIssuerProperties) MarshalJSON​

func (a VcdmIssuerProperties) MarshalJSON() ([]byte, error)

Override default JSON handling for VcdmIssuerProperties to handle AdditionalProperties

func (*VcdmIssuerProperties) Set​

func (a *VcdmIssuerProperties) Set(fieldName string, value interface{})

Setter for additional properties for VcdmIssuerProperties

func (*VcdmIssuerProperties) UnmarshalJSON​

func (a *VcdmIssuerProperties) UnmarshalJSON(b []byte) error

Override default JSON handling for VcdmIssuerProperties to handle AdditionalProperties

type VcdmVersion​

VcdmVersion The W3C VC Data Model version of a W3C VCDM credential: `1.1` (https://www.w3.org/2018/credentials/v1\) or `2.0` (https://www.w3.org/ns/credentials/v2\). The wallet does not choose it. On a draft, the client sets it, and it defaults to 2.0; a draft whose `contexts` start with a base context must not name a different version. On an EBSI configuration (`trustChainVcdm`), it is the version of the trust chain credentials the wallet issues; that one defaults to 1.1.

type VcdmVersion string

Defines values for VcdmVersion.

const (
N11 VcdmVersion = "1.1"
N20 VcdmVersion = "2.0"
)

func (VcdmVersion) Valid​

func (e VcdmVersion) Valid() bool

Valid indicates whether the value is a known member of the VcdmVersion enum.

type VerifiedWrapper​

VerifiedWrapper Wrapped result of successful verification interaction.

type VerifiedWrapper struct {
Credentials []CredentialWrapper `json:"credentials"`

// Holder The holder property of the Verifiable Presentation provided for convenience in case the client needs to verify
// the holder of enclosed Verifiable Credentials.
Holder string `json:"holder"`

// Vp The Verifiable Presentation that was presented during the interaction.
Vp string `json:"vp"`
}

type VerifierCredentialCheck​

VerifierCredentialCheck defines model for VerifierCredentialCheck.

type VerifierCredentialCheck struct {
// Code Why it failed, as in `UntpFailure.code`.
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`

// Name `fetch`, `signature`, `validity`, `jsonld`, `status`, `schema` or `issuerTrust`.
Name string `json:"name"`
Ok bool `json:"ok"`
}

type VerifierCredentialChecks​

VerifierCredentialChecks The checks to run besides the signature and validity dates; each is on unless set false.

type VerifierCredentialChecks struct {
IssuerTrust *bool `json:"issuerTrust,omitempty"`
Jsonld *bool `json:"jsonld,omitempty"`
Schema *bool `json:"schema,omitempty"`
Status *bool `json:"status,omitempty"`
}

type VerifierCredentialRequest​

VerifierCredentialRequest The credential to verify. Exactly one of `raw` and `url` must be set.

type VerifierCredentialRequest struct {
// Checks The checks to run besides the signature and validity dates; each is on unless set false.
Checks *VerifierCredentialChecks `json:"checks,omitempty"`

// Raw The credential as received, e.g. a JWS.
Raw *string `json:"raw,omitempty"`

// Url Where to fetch the credential.
Url *string `json:"url,omitempty"`
}

type VerifierCredentialResult​

VerifierCredentialResult defines model for VerifierCredentialResult.

type VerifierCredentialResult struct {
Checks []VerifierCredentialCheck `json:"checks"`

// Format The credential format, e.g. `jwt_vc_vcdm`; empty when it did not parse.
Format *string `json:"format,omitempty"`
Issuer *string `json:"issuer,omitempty"`

// Payload The credential document, when it parsed.
Payload *map[string]interface{} `json:"payload,omitempty"`

// Verified True when every check passed.
Verified bool `json:"verified"`
}

type VerifierCredentialVerifyJSONRequestBody​

VerifierCredentialVerifyJSONRequestBody defines body for VerifierCredentialVerify for application/json ContentType.

type VerifierCredentialVerifyJSONRequestBody = VerifierCredentialRequest

type VerifierCredentialVerifyParams​

VerifierCredentialVerifyParams defines parameters for VerifierCredentialVerify.

type VerifierCredentialVerifyParams struct {
WalletId string `json:"wallet-id"`
}

type VerifierCredentialVerifyResponse​

type VerifierCredentialVerifyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *VerifierCredentialResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseVerifierCredentialVerifyResponse​

func ParseVerifierCredentialVerifyResponse(rsp *http.Response) (*VerifierCredentialVerifyResponse, error)

ParseVerifierCredentialVerifyResponse parses an HTTP response from a VerifierCredentialVerifyWithResponse call

func (VerifierCredentialVerifyResponse) ContentType​

func (r VerifierCredentialVerifyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (VerifierCredentialVerifyResponse) GetBody​

func (r VerifierCredentialVerifyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (VerifierCredentialVerifyResponse) GetJSON200​

func (r VerifierCredentialVerifyResponse) GetJSON200() *VerifierCredentialResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (VerifierCredentialVerifyResponse) GetJSON400​

func (r VerifierCredentialVerifyResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (VerifierCredentialVerifyResponse) GetJSON500​

func (r VerifierCredentialVerifyResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (VerifierCredentialVerifyResponse) Status​

func (r VerifierCredentialVerifyResponse) Status() string

Status returns HTTPResponse.Status

func (VerifierCredentialVerifyResponse) StatusCode​

func (r VerifierCredentialVerifyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VerifierDidVerifyParams​

VerifierDidVerifyParams defines parameters for VerifierDidVerify.

type VerifierDidVerifyParams struct {
// Did The DID to verify.
Did string `form:"did" json:"did"`

// CredentialType Evaluate the issuer policy of this credential type, e.g. `DigitalProductPassport`.
CredentialType *string `form:"credentialType,omitempty" json:"credentialType,omitempty"`
WalletId string `json:"wallet-id"`
}

type VerifierDidVerifyResponse​

type VerifierDidVerifyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DidVerification
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *UnprocessableEntityError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseVerifierDidVerifyResponse​

func ParseVerifierDidVerifyResponse(rsp *http.Response) (*VerifierDidVerifyResponse, error)

ParseVerifierDidVerifyResponse parses an HTTP response from a VerifierDidVerifyWithResponse call

func (VerifierDidVerifyResponse) ContentType​

func (r VerifierDidVerifyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (VerifierDidVerifyResponse) GetBody​

func (r VerifierDidVerifyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (VerifierDidVerifyResponse) GetJSON200​

func (r VerifierDidVerifyResponse) GetJSON200() *DidVerification

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (VerifierDidVerifyResponse) GetJSON400​

func (r VerifierDidVerifyResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (VerifierDidVerifyResponse) GetJSON422​

func (r VerifierDidVerifyResponse) GetJSON422() *UnprocessableEntityError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (VerifierDidVerifyResponse) GetJSON500​

func (r VerifierDidVerifyResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (VerifierDidVerifyResponse) Status​

func (r VerifierDidVerifyResponse) Status() string

Status returns HTTPResponse.Status

func (VerifierDidVerifyResponse) StatusCode​

func (r VerifierDidVerifyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VerifierInitUrlCreateJSONRequestBody​

VerifierInitUrlCreateJSONRequestBody defines body for VerifierInitUrlCreate for application/json ContentType.

type VerifierInitUrlCreateJSONRequestBody = VerifyInitRequest

type VerifierInitUrlCreateParams​

VerifierInitUrlCreateParams defines parameters for VerifierInitUrlCreate.

type VerifierInitUrlCreateParams struct {
WalletId string `json:"wallet-id"`
}

type VerifierInitUrlCreateResponse​

type VerifierInitUrlCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *VerifyInitResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseVerifierInitUrlCreateResponse​

func ParseVerifierInitUrlCreateResponse(rsp *http.Response) (*VerifierInitUrlCreateResponse, error)

ParseVerifierInitUrlCreateResponse parses an HTTP response from a VerifierInitUrlCreateWithResponse call

func (VerifierInitUrlCreateResponse) ContentType​

func (r VerifierInitUrlCreateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (VerifierInitUrlCreateResponse) GetBody​

func (r VerifierInitUrlCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (VerifierInitUrlCreateResponse) GetJSON200​

func (r VerifierInitUrlCreateResponse) GetJSON200() *VerifyInitResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (VerifierInitUrlCreateResponse) GetJSON400​

func (r VerifierInitUrlCreateResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (VerifierInitUrlCreateResponse) GetJSON500​

func (r VerifierInitUrlCreateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (VerifierInitUrlCreateResponse) Status​

func (r VerifierInitUrlCreateResponse) Status() string

Status returns HTTPResponse.Status

func (VerifierInitUrlCreateResponse) StatusCode​

func (r VerifierInitUrlCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VerifierPdfVerifyMultipartBody​

VerifierPdfVerifyMultipartBody defines parameters for VerifierPdfVerify.

type VerifierPdfVerifyMultipartBody struct {
// ExtractVp Whether to extract VP attachment from the PDF. A missing value is `false`.
ExtractVp bool `form:"extractVp" json:"extractVp"`
Pdf openapi_types.File `form:"pdf" json:"pdf"`

// TrustedCertificates Base64 encoded x509 certificates with which the PDF may be signed.
TrustedCertificates *[]string `form:"trustedCertificates,omitempty" json:"trustedCertificates,omitempty"`

// TrustedListSigningCertificates Base64 encoded x509 certificates with which the ETSI trusted lists may be signed.
// If not provided, values from wallet config will be used.
TrustedListSigningCertificates *[]string `form:"trustedListSigningCertificates,omitempty" json:"trustedListSigningCertificates,omitempty"`

// 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.
TrustedListsUrl *[]string `form:"trustedListsUrl,omitempty" json:"trustedListsUrl,omitempty"`
}

type VerifierPdfVerifyMultipartRequestBody​

VerifierPdfVerifyMultipartRequestBody defines body for VerifierPdfVerify for multipart/form-data ContentType.

type VerifierPdfVerifyMultipartRequestBody VerifierPdfVerifyMultipartBody

type VerifierPdfVerifyParams​

VerifierPdfVerifyParams defines parameters for VerifierPdfVerify.

type VerifierPdfVerifyParams struct {
WalletId string `json:"wallet-id"`
}

type VerifierPdfVerifyResponse​

type VerifierPdfVerifyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PdfVerificationResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseVerifierPdfVerifyResponse​

func ParseVerifierPdfVerifyResponse(rsp *http.Response) (*VerifierPdfVerifyResponse, error)

ParseVerifierPdfVerifyResponse parses an HTTP response from a VerifierPdfVerifyWithResponse call

func (VerifierPdfVerifyResponse) ContentType​

func (r VerifierPdfVerifyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (VerifierPdfVerifyResponse) GetBody​

func (r VerifierPdfVerifyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (VerifierPdfVerifyResponse) GetJSON200​

func (r VerifierPdfVerifyResponse) GetJSON200() *PdfVerificationResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (VerifierPdfVerifyResponse) GetJSON400​

func (r VerifierPdfVerifyResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (VerifierPdfVerifyResponse) GetJSON404​

func (r VerifierPdfVerifyResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (VerifierPdfVerifyResponse) GetJSON500​

func (r VerifierPdfVerifyResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (VerifierPdfVerifyResponse) Status​

func (r VerifierPdfVerifyResponse) Status() string

Status returns HTTPResponse.Status

func (VerifierPdfVerifyResponse) StatusCode​

func (r VerifierPdfVerifyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VerifierRenderJSONRequestBody​

VerifierRenderJSONRequestBody defines body for VerifierRender for application/json ContentType.

type VerifierRenderJSONRequestBody = VerifierRenderRequest

type VerifierRenderParams​

VerifierRenderParams defines parameters for VerifierRender.

type VerifierRenderParams struct {
WalletId string `json:"wallet-id"`
}

type VerifierRenderRequest​

VerifierRenderRequest A credential to render and which of its render methods to use. Exactly one of `signedVc` and `vc` must be set.

type VerifierRenderRequest struct {
// Index The index of the render method to use.
Index *int `json:"index,omitempty"`

// MediaQuery Use the first render method with exactly this `mediaQuery`.
MediaQuery *string `json:"mediaQuery,omitempty"`

// SignedVc A signed credential (compact JWS, SD-JWT), verified before it is rendered.
SignedVc *string `json:"signedVc,omitempty"`

// Suite A render suite; `template2024` is a UNTP `RenderTemplate2024`.
Suite *RenderSuite `json:"suite,omitempty"`

// Vc A credential document, rendered without verification.
Vc *map[string]interface{} `json:"vc,omitempty"`
}

type VerifierRenderResponse​

type VerifierRenderResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *map[string]interface{}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *UnprocessableEntityError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Error
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *VerifierRenderResponse200Headers
}

func ParseVerifierRenderResponse​

func ParseVerifierRenderResponse(rsp *http.Response) (*VerifierRenderResponse, error)

ParseVerifierRenderResponse parses an HTTP response from a VerifierRenderWithResponse call

func (VerifierRenderResponse) ContentType​

func (r VerifierRenderResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (VerifierRenderResponse) GetBody​

func (r VerifierRenderResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (VerifierRenderResponse) GetJSON200​

func (r VerifierRenderResponse) GetJSON200() *map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (VerifierRenderResponse) GetJSON400​

func (r VerifierRenderResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (VerifierRenderResponse) GetJSON422​

func (r VerifierRenderResponse) GetJSON422() *UnprocessableEntityError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (VerifierRenderResponse) GetJSON500​

func (r VerifierRenderResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (VerifierRenderResponse) GetJSON503​

func (r VerifierRenderResponse) GetJSON503() *Error

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (VerifierRenderResponse) Status​

func (r VerifierRenderResponse) Status() string

Status returns HTTPResponse.Status

func (VerifierRenderResponse) StatusCode​

func (r VerifierRenderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VerifierRenderResponse200Headers​

VerifierRenderResponse200Headers the declared response headers of an HTTP 200 response for VerifierRender

type VerifierRenderResponse200Headers struct {
XCredentialVerified *bool
XRenderMethodIndex *int
}

type VerifierUntpResolveParams​

VerifierUntpResolveParams defines parameters for VerifierUntpResolve.

type VerifierUntpResolveParams struct {
// Identifier The DID to resolve.
Identifier string `form:"identifier" json:"identifier"`

// LinkType The link types to fetch, comma separated (e.g. `dpp,dcc`), or `all` (the default). The linkset uses the
// UNTP 0.8.0 relations: `dpp`, `linkset` for an identity resolver, and
// `https://test.uncefact.org/vocabulary/link-type/<type>` for the others. A DID document's UNTP 0.7 service
// types (`untp:dia`, bare `dcc`) are read as the same link types.
LinkType *string `form:"linkType,omitempty" json:"linkType,omitempty"`

// Fetch Fetch and verify the linked credentials.
Fetch *bool `form:"fetch,omitempty" json:"fetch,omitempty"`

// Verify Verify the fetched credentials' dates, status and schema, besides their signature.
Verify *bool `form:"verify,omitempty" json:"verify,omitempty"`

// VerifyIssuer Also verify whether the wallet's trust framework trusts the DID, as `/verifier/did` does, and report it
// as `issuer`. A wallet whose trust framework does not verify DIDs reports no `issuer`, and is `422` when
// `verifyIssuer` is set explicitly. A UNTP wallet enforces the anchor on every signature anyway; this
// reports it.
VerifyIssuer *bool `form:"verifyIssuer,omitempty" json:"verifyIssuer,omitempty"`
WalletId string `json:"wallet-id"`
}

type VerifierUntpResolveResponse​

type VerifierUntpResolveResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UntpResolveResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseVerifierUntpResolveResponse​

func ParseVerifierUntpResolveResponse(rsp *http.Response) (*VerifierUntpResolveResponse, error)

ParseVerifierUntpResolveResponse parses an HTTP response from a VerifierUntpResolveWithResponse call

func (VerifierUntpResolveResponse) ContentType​

func (r VerifierUntpResolveResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (VerifierUntpResolveResponse) GetBody​

func (r VerifierUntpResolveResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (VerifierUntpResolveResponse) GetJSON200​

func (r VerifierUntpResolveResponse) GetJSON200() *UntpResolveResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (VerifierUntpResolveResponse) GetJSON400​

func (r VerifierUntpResolveResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (VerifierUntpResolveResponse) GetJSON404​

func (r VerifierUntpResolveResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (VerifierUntpResolveResponse) GetJSON500​

func (r VerifierUntpResolveResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (VerifierUntpResolveResponse) GetJSON502​

func (r VerifierUntpResolveResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (VerifierUntpResolveResponse) Status​

func (r VerifierUntpResolveResponse) Status() string

Status returns HTTPResponse.Status

func (VerifierUntpResolveResponse) StatusCode​

func (r VerifierUntpResolveResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VerifyInitRequest​

VerifyInitRequest Registers a new verification request. When `createUrl` is true, URL used by holder to present credentials to a verifier is created. Otherwise, the holder can use the verifier authorization endpoint with a custom scope to request credentials. In this case `holderEntityId` must be provided.

type VerifyInitRequest struct {
// CreateUrl When true, a verification request URL is created. When false, verification request is registered for
// a specific holder, that can then start the interaction by making an authorization request with custom scope.
// Defaults to `true`.
CreateUrl *bool `json:"createUrl,omitempty"`

// CustomQueries List of custom presentation definition/DCQL query fragments to be applied to the
// presentation definition/DCQL query in the verifier's configuration
CustomQueries *[]VerifyQueryFragment `json:"customQueries,omitempty"`

// HolderEntityId Used when `createUrl` is set to `false`. Entity ID of the holder that will verify by making an Authorization
// request with custom scope.
HolderEntityId *string `json:"holderEntityId,omitempty"`

// RedirectUri URI the holder's user agent is redirected to after presenting (OpenID4VP 1.0 §8.2), with a
// `response_code` query parameter to pass to `WalletVerifiedCredentialsByState`. Overrides the verifier's
// `redirectUri`. Used only when `createUrl` is true.
RedirectUri *string `json:"redirectUri,omitempty"`

// TransactionData Transaction data the holder authorizes with the presentation (OpenID4VP 1.0 §5.1). Requires a verifier
// with a DCQL query; each entry's `credential_ids` must reference its credential query ids.
TransactionData *[]TransactionData `json:"transactionData,omitempty"`
VerifierId string `json:"verifierId"`

// WmpEntityId ID of an WMP entity with which a WMP connection has already been established.
// If provided, WMP is used to send the credential offer to the specified recipient.
WmpEntityId *string `json:"wmpEntityId,omitempty"`
}

type VerifyInitResponse​

VerifyInitResponse defines model for VerifyInitResponse.

type VerifyInitResponse struct {
// VerifierState A code that can be used to match the verified credential for later use.
VerifierState string `json:"verifierState"`

// VerifierUrl Url of verifier authorization server that contains the requested verifier scope. Empty when the
// request is sent to the holder over WMP (`wmpEntityId`).
VerifierUrl string `json:"verifierUrl"`
}

type VerifyQueryFragment​

VerifyQueryFragment defines model for VerifyQueryFragment.

type VerifyQueryFragment struct {
// Fragment The presentation definition/DCQL query fragment
Fragment map[string]interface{} `json:"fragment"`

// Path JSON path to which the fragment will be inserted
Path string `json:"path"`
}

type VpInvalidNotification​

VpInvalidNotification defines model for VpInvalidNotification.

type VpInvalidNotification struct {
Error string `json:"error"`
VerifierId string `json:"verifierId"`
}

type VpPresentedNotification​

VpPresentedNotification defines model for VpPresentedNotification.

type VpPresentedNotification struct {
// AutoAccepted True when the presentation was submitted automatically, without user consent, because
// every requested credential was configured for auto-presentation.
AutoAccepted *bool `json:"autoAccepted,omitempty"`
CredentialIds []CredentialId `json:"credentialIds"`

// RedirectUri URI the verifier asked the holder's user agent to be redirected to after the presentation
// (OpenID4VP 1.0 §8.2).
RedirectUri *string `json:"redirectUri,omitempty"`
}

type VpVerifiedNotification​

VpVerifiedNotification defines model for VpVerifiedNotification.

type VpVerifiedNotification struct {
VerifierId string `json:"verifierId"`
}

type Wallet​

Wallet Wallet details

type Wallet struct {
// Capabilities This property defines the capabilities which the wallet has. It may be any of "holder", "issuer" and "verifier".
Capabilities *[]WalletCapability `json:"capabilities,omitempty"`

// Config Wallet specific configuration.
Config WalletConfig `json:"config"`

// Metadata Custom key value pairs associated with the wallet. The key must not exceed 64 characters and the value must not exceed 256 characters.
Metadata *WalletMetadata `json:"metadata,omitempty"`
Name string `json:"name"`
WalletId *WalletId `json:"walletId,omitempty"`
}

type WalletCapability​

WalletCapability Defines the capabilities which the wallet has. It may be any of "holder", "issuer" and "verifier".

type WalletCapability string

Defines values for WalletCapability.

const (
Holder WalletCapability = "holder"
Issuer WalletCapability = "issuer"
Verifier WalletCapability = "verifier"
)

func (WalletCapability) Valid​

func (e WalletCapability) Valid() bool

Valid indicates whether the value is a known member of the WalletCapability enum.

type WalletConfig​

WalletConfig Wallet specific configuration.

type WalletConfig struct {
// EBSI EBSI specific data
EBSI *EbsiSpecificWalletData `json:"EBSI,omitempty"`

// EUDI Configuration for EUDI trust framework. The field didTrustFramework marks which DID TF is used when the wallet uses did as its identifier.
EUDI *EudiConfiguration `json:"EUDI,omitempty"`

// IDTL Configuration for IDTL trust framework
IDTL *IdtlConfiguration `json:"IDTL,omitempty"`

// UNTP Configuration of the UNTP trust framework. The wallet has a self-hosted did:web, and its `walletKeyIdentifier`
// must be `did`. Every DID it resolves a key of, to verify a credential, a status list or a presentation, must
// be anchored by a UNTP Digital Identity Anchor chained up to a trusted registrar: those of
// `untp.dia.trustedRegistrars` and `untp.dia.registryUrl`, and the wallet's own `trustedRegistrars`.
UNTP *UntpConfiguration `json:"UNTP,omitempty"`

// CredentialIssuers List of credential issuers to be used with credentials of a specific type during their issuance.
CredentialIssuers *[]CredentialIssuerDefinition `json:"credentialIssuers,omitempty"`

// CredentialVerifiers List of verification definitions that the wallet will be able to use for verification process.
CredentialVerifiers *[]CredentialVerifierDefinition `json:"credentialVerifiers,omitempty"`

// OidcRevision Deprecated, the value is ignored. Only OIDC4VCI 1.0 and OIDC4VP 1.0 are supported; the wallet always
// reports Draft15 (OIDC4VCI 1.0) and Draft23 (OIDC4VP 1.0). Draft11 and Draft16 are accepted for backward
// compatibility only.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
OidcRevision *OidcRevision `json:"oidcRevision,omitempty"`

// StatusListExpiration Expiration time in seconds for credential status lists. Used only if the wallet is a credential issuer
StatusListExpiration *int `json:"statusListExpiration,omitempty"`

// Tenant The part of the wallet config that belongs to the wallet's tenant. A wallet joins a tenant only by
// enrollment, and only a Tenant Owner of that tenant changes this block, through PATCH /wallets/{wallet_id}.
// It is ignored on wallet create and, for anyone else, on wallet patch.
Tenant *TenantConfig `json:"tenant,omitempty"`

// TrustFramework 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.
TrustFramework TrustFrameworkType `json:"trustFramework"`

// VaultType 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.
VaultType *VaultType `json:"vaultType,omitempty"`
WalletKeyIdentifier SigningKeyIdentifier `json:"walletKeyIdentifier"`

// WmpParticipantId The wallet's own WMP participant identifier when it is an ebCore party
// (`ebcore:iso6523:<icd>:<id>`, CS-15 §6.1), e.g. the Subscriber identifier it onboards with at a
// QTSP relay. Empty for wallets that are not eDelivery parties.
WmpParticipantId *string `json:"wmpParticipantId,omitempty"`
}

type WalletConfigProperties​

WalletConfigProperties Wallet configuration with no property required.

type WalletConfigProperties = WalletConfig

type WalletCreateJSONRequestBody​

WalletCreateJSONRequestBody defines body for WalletCreate for application/json ContentType.

type WalletCreateJSONRequestBody = WalletCreatePayload

type WalletCreatePayload​

WalletCreatePayload Payload to create a wallet

type WalletCreatePayload struct {
// Config Wallet specific configuration.
Config WalletConfig `json:"config"`

// Keys Private keys for the wallet to use instead of generating its own, as JWKs (`kty` `EC` with `d`): at most
// one per curve, `P-256` and `secp256k1`. The key of a curve not given is generated. The keys are kept in
// the wallet's vault only. A KMIP vault and an enrollment refuse them.
Keys *[]map[string]interface{} `json:"keys,omitempty"`

// Metadata Custom key value pairs associated with the wallet. The key must not exceed 64 characters and the value must not exceed 256 characters.
Metadata *WalletMetadata `json:"metadata,omitempty"`
Name string `json:"name"`
}

type WalletCreateResponse​

type WalletCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WalletIdObject
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletCreateResponse​

func ParseWalletCreateResponse(rsp *http.Response) (*WalletCreateResponse, error)

ParseWalletCreateResponse parses an HTTP response from a WalletCreateWithResponse call

func (WalletCreateResponse) ContentType​

func (r WalletCreateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletCreateResponse) GetBody​

func (r WalletCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletCreateResponse) GetJSON200​

func (r WalletCreateResponse) GetJSON200() *WalletIdObject

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletCreateResponse) GetJSON400​

func (r WalletCreateResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WalletCreateResponse) GetJSON500​

func (r WalletCreateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletCreateResponse) Status​

func (r WalletCreateResponse) Status() string

Status returns HTTPResponse.Status

func (WalletCreateResponse) StatusCode​

func (r WalletCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletDeleteResponse​

type WalletDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletDeleteResponse​

func ParseWalletDeleteResponse(rsp *http.Response) (*WalletDeleteResponse, error)

ParseWalletDeleteResponse parses an HTTP response from a WalletDeleteWithResponse call

func (WalletDeleteResponse) ContentType​

func (r WalletDeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletDeleteResponse) GetBody​

func (r WalletDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletDeleteResponse) GetJSON404​

func (r WalletDeleteResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletDeleteResponse) GetJSON500​

func (r WalletDeleteResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletDeleteResponse) Status​

func (r WalletDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (WalletDeleteResponse) StatusCode​

func (r WalletDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletGetResponse​

type WalletGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Wallet
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletGetResponse​

func ParseWalletGetResponse(rsp *http.Response) (*WalletGetResponse, error)

ParseWalletGetResponse parses an HTTP response from a WalletGetWithResponse call

func (WalletGetResponse) ContentType​

func (r WalletGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletGetResponse) GetBody​

func (r WalletGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletGetResponse) GetJSON200​

func (r WalletGetResponse) GetJSON200() *Wallet

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletGetResponse) GetJSON400​

func (r WalletGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WalletGetResponse) GetJSON404​

func (r WalletGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletGetResponse) GetJSON500​

func (r WalletGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletGetResponse) Status​

func (r WalletGetResponse) Status() string

Status returns HTTPResponse.Status

func (WalletGetResponse) StatusCode​

func (r WalletGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletId​

WalletId defines model for WalletId.

type WalletId = string

type WalletIdObject​

WalletIdObject defines model for WalletIdObject.

type WalletIdObject struct {
Id WalletId `json:"id"`
}

type WalletIdentifier​

WalletIdentifier DID or Wallet URL depending on the configured wallet key identifier

type WalletIdentifier struct {
Identifier string `json:"identifier"`
}

type WalletIdentifierGetParams​

WalletIdentifierGetParams defines parameters for WalletIdentifierGet.

type WalletIdentifierGetParams struct {
WalletId string `json:"wallet-id"`
}

type WalletIdentifierGetResponse​

type WalletIdentifierGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WalletIdentifier
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletIdentifierGetResponse​

func ParseWalletIdentifierGetResponse(rsp *http.Response) (*WalletIdentifierGetResponse, error)

ParseWalletIdentifierGetResponse parses an HTTP response from a WalletIdentifierGetWithResponse call

func (WalletIdentifierGetResponse) ContentType​

func (r WalletIdentifierGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletIdentifierGetResponse) GetBody​

func (r WalletIdentifierGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletIdentifierGetResponse) GetJSON200​

func (r WalletIdentifierGetResponse) GetJSON200() *WalletIdentifier

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletIdentifierGetResponse) GetJSON500​

func (r WalletIdentifierGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletIdentifierGetResponse) Status​

func (r WalletIdentifierGetResponse) Status() string

Status returns HTTPResponse.Status

func (WalletIdentifierGetResponse) StatusCode​

func (r WalletIdentifierGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletKeys​

WalletKeys The wallet's public keys.

type WalletKeys struct {
// Private Always null. Kept for backward compatibility.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Private *map[string]interface{} `json:"Private,omitempty"`

// PublicJwk The P-256 public key as a JWK.
PublicJwk map[string]interface{} `json:"PublicJwk"`

// PublicJwkSecp256k1 The secp256k1 public key as a JWK. Absent when the wallet has no secp256k1 key.
PublicJwkSecp256k1 *map[string]interface{} `json:"PublicJwkSecp256k1,omitempty"`

// PublicX509 The P-256 public key as a base64 DER-encoded X.509 SubjectPublicKeyInfo.
PublicX509 string `json:"PublicX509"`
}

type WalletKeysResponse​

type WalletKeysResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WalletKeys
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletKeysResponse​

func ParseWalletKeysResponse(rsp *http.Response) (*WalletKeysResponse, error)

ParseWalletKeysResponse parses an HTTP response from a WalletKeysWithResponse call

func (WalletKeysResponse) ContentType​

func (r WalletKeysResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletKeysResponse) GetBody​

func (r WalletKeysResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletKeysResponse) GetJSON200​

func (r WalletKeysResponse) GetJSON200() *WalletKeys

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletKeysResponse) GetJSON404​

func (r WalletKeysResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletKeysResponse) GetJSON500​

func (r WalletKeysResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletKeysResponse) Status​

func (r WalletKeysResponse) Status() string

Status returns HTTPResponse.Status

func (WalletKeysResponse) StatusCode​

func (r WalletKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletList​

WalletList defines model for WalletList.

type WalletList = []WalletListItem

type WalletListItem​

WalletListItem defines model for WalletListItem.

type WalletListItem struct {
Capabilities []WalletCapability `json:"capabilities"`
Name string `json:"name"`

// OwnerId The owner of the wallet. Set only when listing the wallets of a tenant.
OwnerId *string `json:"ownerId,omitempty"`
WalletId WalletId `json:"walletId"`
}

type WalletListParams​

WalletListParams defines parameters for WalletList.

type WalletListParams struct {
OwnerId *string `form:"ownerId,omitempty" json:"ownerId,omitempty"`

// SearchName Wallet name to search using "begins-with" filter
SearchName *string `form:"searchName,omitempty" json:"searchName,omitempty"`

// TenantId Lists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of
// the tenant may set it, and not together with ownerId.
TenantId *string `form:"tenantId,omitempty" json:"tenantId,omitempty"`
}

type WalletListResponse​

type WalletListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WalletList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletListResponse​

func ParseWalletListResponse(rsp *http.Response) (*WalletListResponse, error)

ParseWalletListResponse parses an HTTP response from a WalletListWithResponse call

func (WalletListResponse) ContentType​

func (r WalletListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletListResponse) GetBody​

func (r WalletListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletListResponse) GetJSON200​

func (r WalletListResponse) GetJSON200() *WalletList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletListResponse) GetJSON400​

func (r WalletListResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WalletListResponse) GetJSON403​

func (r WalletListResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (WalletListResponse) GetJSON500​

func (r WalletListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletListResponse) Status​

func (r WalletListResponse) Status() string

Status returns HTTPResponse.Status

func (WalletListResponse) StatusCode​

func (r WalletListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletMetadata​

WalletMetadata Custom key value pairs associated with the wallet. The key must not exceed 64 characters and the value must not exceed 256 characters.

type WalletMetadata map[string]interface{}

type WalletNotification​

WalletNotification defines model for WalletNotification.

type WalletNotification struct {
// CreatedTs Timestamp in milliseconds
CreatedTs string `json:"createdTs"`
EventDetails *WalletNotification_EventDetails `json:"eventDetails,omitempty"`
EventType WalletNotificationEventType `json:"eventType"`

// State State associated with the notification. Only populated in state-aware events
State *string `json:"state,omitempty"`

// SubjectIdentifier In most cases it is the DID of the counter party. However it may be also URL or x509 certificate.
SubjectIdentifier string `json:"subjectIdentifier"`
Time time.Time `json:"time"`
}

type WalletNotificationEvent​

WalletNotificationEvent is a single Server-Sent Event received from the wallet notifications stream, decoded into its typed payload.

type WalletNotificationEvent struct {
// ID is the SSE event id. It can be persisted and passed back as
// WalletNotificationsParams.LastEventID to resume a stream without
// missing notifications.
ID string
Notification WalletNotification
}

type WalletNotificationEventType​

WalletNotificationEventType defines model for WalletNotificationEventType.

type WalletNotificationEventType string

Defines values for WalletNotificationEventType.

const (
WalletNotificationEventTypeCredentialAccepted WalletNotificationEventType = "credential.accepted"
WalletNotificationEventTypeCredentialCreated WalletNotificationEventType = "credential.created"
WalletNotificationEventTypeCredentialDeleted WalletNotificationEventType = "credential.deleted"
WalletNotificationEventTypeCredentialFailed WalletNotificationEventType = "credential.failed"
WalletNotificationEventTypeCredentialIssued WalletNotificationEventType = "credential.issued"
WalletNotificationEventTypeCredentialReceived WalletNotificationEventType = "credential.received"
WalletNotificationEventTypeCredentialRevoked WalletNotificationEventType = "credential.revoked"
WalletNotificationEventTypeCredentialSuspended WalletNotificationEventType = "credential.suspended"
WalletNotificationEventTypeCredentialUnsuspended WalletNotificationEventType = "credential.unsuspended"
WalletNotificationEventTypeIdTokenReceived WalletNotificationEventType = "idToken.received"
WalletNotificationEventTypeOfferInitiated WalletNotificationEventType = "offer.initiated"
WalletNotificationEventTypeOfferProcessed WalletNotificationEventType = "offer.processed"
WalletNotificationEventTypeUntpDiaIssued WalletNotificationEventType = "untp.dia.issued"
WalletNotificationEventTypeUntpDiaPublished WalletNotificationEventType = "untp.dia.published"
WalletNotificationEventTypeUntpDiaRevoked WalletNotificationEventType = "untp.dia.revoked"
WalletNotificationEventTypeVpInvalid WalletNotificationEventType = "vp.invalid"
WalletNotificationEventTypeVpPresented WalletNotificationEventType = "vp.presented"
WalletNotificationEventTypeVpVerified WalletNotificationEventType = "vp.verified"
WalletNotificationEventTypeWmpCredentialOffer WalletNotificationEventType = "wmp.credential_offer"
WalletNotificationEventTypeWmpCredentialVerificationRequest WalletNotificationEventType = "wmp.credential_verification_request"
WalletNotificationEventTypeWmpError WalletNotificationEventType = "wmp.error"
WalletNotificationEventTypeWmpEvidenceIssued WalletNotificationEventType = "wmp.evidence_issued"
WalletNotificationEventTypeWmpEvidenceReceived WalletNotificationEventType = "wmp.evidence_received"
WalletNotificationEventTypeWmpIdentityAssertionReceived WalletNotificationEventType = "wmp.identity_assertion_received"
WalletNotificationEventTypeWmpIdentityAssertionRequest WalletNotificationEventType = "wmp.identity_assertion_request"
WalletNotificationEventTypeWmpInvitationAccepted WalletNotificationEventType = "wmp.invitation_accepted"
WalletNotificationEventTypeWmpMessage WalletNotificationEventType = "wmp.message"
WalletNotificationEventTypeWmpMessageDecisionRequired WalletNotificationEventType = "wmp.message_decision_required"
WalletNotificationEventTypeWmpMessageStatus WalletNotificationEventType = "wmp.message_status"
WalletNotificationEventTypeWmpRelayCorrespondentNew WalletNotificationEventType = "wmp.relay_correspondent_new"
WalletNotificationEventTypeWmpRelayStatus WalletNotificationEventType = "wmp.relay_status"
WalletNotificationEventTypeWmpRelayUnrecognised WalletNotificationEventType = "wmp.relay_unrecognised"
)

func (WalletNotificationEventType) Valid​

func (e WalletNotificationEventType) Valid() bool

Valid indicates whether the value is a known member of the WalletNotificationEventType enum.

type WalletNotificationGetByStateResponse​

type WalletNotificationGetByStateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WalletNotification
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletNotificationGetByStateResponse​

func ParseWalletNotificationGetByStateResponse(rsp *http.Response) (*WalletNotificationGetByStateResponse, error)

ParseWalletNotificationGetByStateResponse parses an HTTP response from a WalletNotificationGetByStateWithResponse call

func (WalletNotificationGetByStateResponse) ContentType​

func (r WalletNotificationGetByStateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletNotificationGetByStateResponse) GetBody​

func (r WalletNotificationGetByStateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletNotificationGetByStateResponse) GetJSON200​

func (r WalletNotificationGetByStateResponse) GetJSON200() *WalletNotification

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletNotificationGetByStateResponse) GetJSON404​

func (r WalletNotificationGetByStateResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletNotificationGetByStateResponse) GetJSON500​

func (r WalletNotificationGetByStateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletNotificationGetByStateResponse) Status​

func (r WalletNotificationGetByStateResponse) Status() string

Status returns HTTPResponse.Status

func (WalletNotificationGetByStateResponse) StatusCode​

func (r WalletNotificationGetByStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletNotificationHistory​

WalletNotificationHistory defines model for WalletNotificationHistory.

type WalletNotificationHistory struct {
List WalletNotificationList `json:"list"`

// Next URL of the next page. Empty on the last page.
Next string `json:"next"`
}

type WalletNotificationHistoryParams​

WalletNotificationHistoryParams defines parameters for WalletNotificationHistory.

type WalletNotificationHistoryParams struct {
// Limit The number of items
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

// NextMarker Marking the next set of items
NextMarker *string `form:"nextMarker,omitempty" json:"nextMarker,omitempty"`

// Type Notification types
Type *[]WalletNotificationEventType `form:"type,omitempty" json:"type,omitempty"`

// Sort Sort flag controls the sort direction by the time created
Sort *ListSort `form:"sort,omitempty" json:"sort,omitempty"`

// NewerThan List notifications that are newer than the provided timestamp
NewerThan *int `form:"newerThan,omitempty" json:"newerThan,omitempty"`
}

type WalletNotificationHistoryResponse​

type WalletNotificationHistoryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WalletNotificationHistory
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletNotificationHistoryResponse​

func ParseWalletNotificationHistoryResponse(rsp *http.Response) (*WalletNotificationHistoryResponse, error)

ParseWalletNotificationHistoryResponse parses an HTTP response from a WalletNotificationHistoryWithResponse call

func (WalletNotificationHistoryResponse) ContentType​

func (r WalletNotificationHistoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletNotificationHistoryResponse) GetBody​

func (r WalletNotificationHistoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletNotificationHistoryResponse) GetJSON200​

func (r WalletNotificationHistoryResponse) GetJSON200() *WalletNotificationHistory

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletNotificationHistoryResponse) GetJSON404​

func (r WalletNotificationHistoryResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletNotificationHistoryResponse) GetJSON500​

func (r WalletNotificationHistoryResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletNotificationHistoryResponse) Status​

func (r WalletNotificationHistoryResponse) Status() string

Status returns HTTPResponse.Status

func (WalletNotificationHistoryResponse) StatusCode​

func (r WalletNotificationHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletNotificationList​

WalletNotificationList defines model for WalletNotificationList.

type WalletNotificationList = []WalletNotification

type WalletNotificationStream​

WalletNotificationStream delivers WalletNotification events received over Server-Sent Events (https://github.com/jetify-com/sse\). It automatically reconnects using the SSE Last-Event-ID mechanism when the underlying connection drops, so callers only need to drain Events and Errors.

type WalletNotificationStream struct {
// contains filtered or unexported fields
}

func SubscribeWalletNotifications​

func SubscribeWalletNotifications(ctx context.Context, config *Config, walletId string, params *WalletNotificationsParams) (*WalletNotificationStream, error)

SubscribeWalletNotifications opens a Server-Sent Events stream for the notifications of the given wallet. The stream keeps reconnecting in the background until the returned WalletNotificationStream is closed or ctx is canceled.

Callers must concurrently drain both Events and Errors; the stream blocks delivery (and therefore reconnection) on whichever channel is not read.

func (*WalletNotificationStream) Close​

func (s *WalletNotificationStream) Close() error

Close stops the stream and releases the underlying HTTP connection. It blocks until the background goroutine has exited and is safe to call multiple times.

func (*WalletNotificationStream) Errors​

func (s *WalletNotificationStream) Errors() <-chan error

Errors returns the channel of transient errors encountered while streaming, e.g. dropped connections. The stream keeps retrying after each one; it is closed once the stream is closed and drained.

func (*WalletNotificationStream) Events​

func (s *WalletNotificationStream) Events() <-chan WalletNotificationEvent

Events returns the channel of decoded wallet notifications. It is closed once the stream is closed and drained.

type WalletNotification_EventDetails​

WalletNotification_EventDetails defines model for WalletNotification.EventDetails.

type WalletNotification_EventDetails struct {
// contains filtered or unexported fields
}

func (WalletNotification_EventDetails) AsCredentialNotification​

func (t WalletNotification_EventDetails) AsCredentialNotification() (CredentialNotification, error)

AsCredentialNotification returns the union data inside the WalletNotification_EventDetails as a CredentialNotification

func (WalletNotification_EventDetails) AsIdTokenReceivedNotification​

func (t WalletNotification_EventDetails) AsIdTokenReceivedNotification() (IdTokenReceivedNotification, error)

AsIdTokenReceivedNotification returns the union data inside the WalletNotification_EventDetails as a IdTokenReceivedNotification

func (WalletNotification_EventDetails) AsOfferReceivedNotification​

func (t WalletNotification_EventDetails) AsOfferReceivedNotification() (OfferReceivedNotification, error)

AsOfferReceivedNotification returns the union data inside the WalletNotification_EventDetails as a OfferReceivedNotification

func (WalletNotification_EventDetails) AsUntpDiaNotification​

func (t WalletNotification_EventDetails) AsUntpDiaNotification() (UntpDiaNotification, error)

AsUntpDiaNotification returns the union data inside the WalletNotification_EventDetails as a UntpDiaNotification

func (WalletNotification_EventDetails) AsVpInvalidNotification​

func (t WalletNotification_EventDetails) AsVpInvalidNotification() (VpInvalidNotification, error)

AsVpInvalidNotification returns the union data inside the WalletNotification_EventDetails as a VpInvalidNotification

func (WalletNotification_EventDetails) AsVpPresentedNotification​

func (t WalletNotification_EventDetails) AsVpPresentedNotification() (VpPresentedNotification, error)

AsVpPresentedNotification returns the union data inside the WalletNotification_EventDetails as a VpPresentedNotification

func (WalletNotification_EventDetails) AsVpVerifiedNotification​

func (t WalletNotification_EventDetails) AsVpVerifiedNotification() (VpVerifiedNotification, error)

AsVpVerifiedNotification returns the union data inside the WalletNotification_EventDetails as a VpVerifiedNotification

func (WalletNotification_EventDetails) AsWmpNotification​

func (t WalletNotification_EventDetails) AsWmpNotification() (WmpNotification, error)

AsWmpNotification returns the union data inside the WalletNotification_EventDetails as a WmpNotification

func (*WalletNotification_EventDetails) FromCredentialNotification​

func (t *WalletNotification_EventDetails) FromCredentialNotification(v CredentialNotification) error

FromCredentialNotification overwrites any union data inside the WalletNotification_EventDetails as the provided CredentialNotification

func (*WalletNotification_EventDetails) FromIdTokenReceivedNotification​

func (t *WalletNotification_EventDetails) FromIdTokenReceivedNotification(v IdTokenReceivedNotification) error

FromIdTokenReceivedNotification overwrites any union data inside the WalletNotification_EventDetails as the provided IdTokenReceivedNotification

func (*WalletNotification_EventDetails) FromOfferReceivedNotification​

func (t *WalletNotification_EventDetails) FromOfferReceivedNotification(v OfferReceivedNotification) error

FromOfferReceivedNotification overwrites any union data inside the WalletNotification_EventDetails as the provided OfferReceivedNotification

func (*WalletNotification_EventDetails) FromUntpDiaNotification​

func (t *WalletNotification_EventDetails) FromUntpDiaNotification(v UntpDiaNotification) error

FromUntpDiaNotification overwrites any union data inside the WalletNotification_EventDetails as the provided UntpDiaNotification

func (*WalletNotification_EventDetails) FromVpInvalidNotification​

func (t *WalletNotification_EventDetails) FromVpInvalidNotification(v VpInvalidNotification) error

FromVpInvalidNotification overwrites any union data inside the WalletNotification_EventDetails as the provided VpInvalidNotification

func (*WalletNotification_EventDetails) FromVpPresentedNotification​

func (t *WalletNotification_EventDetails) FromVpPresentedNotification(v VpPresentedNotification) error

FromVpPresentedNotification overwrites any union data inside the WalletNotification_EventDetails as the provided VpPresentedNotification

func (*WalletNotification_EventDetails) FromVpVerifiedNotification​

func (t *WalletNotification_EventDetails) FromVpVerifiedNotification(v VpVerifiedNotification) error

FromVpVerifiedNotification overwrites any union data inside the WalletNotification_EventDetails as the provided VpVerifiedNotification

func (*WalletNotification_EventDetails) FromWmpNotification​

func (t *WalletNotification_EventDetails) FromWmpNotification(v WmpNotification) error

FromWmpNotification overwrites any union data inside the WalletNotification_EventDetails as the provided WmpNotification

func (WalletNotification_EventDetails) MarshalJSON​

func (t WalletNotification_EventDetails) MarshalJSON() ([]byte, error)

func (*WalletNotification_EventDetails) MergeCredentialNotification​

func (t *WalletNotification_EventDetails) MergeCredentialNotification(v CredentialNotification) error

MergeCredentialNotification performs a merge with any union data inside the WalletNotification_EventDetails, using the provided CredentialNotification

func (*WalletNotification_EventDetails) MergeIdTokenReceivedNotification​

func (t *WalletNotification_EventDetails) MergeIdTokenReceivedNotification(v IdTokenReceivedNotification) error

MergeIdTokenReceivedNotification performs a merge with any union data inside the WalletNotification_EventDetails, using the provided IdTokenReceivedNotification

func (*WalletNotification_EventDetails) MergeOfferReceivedNotification​

func (t *WalletNotification_EventDetails) MergeOfferReceivedNotification(v OfferReceivedNotification) error

MergeOfferReceivedNotification performs a merge with any union data inside the WalletNotification_EventDetails, using the provided OfferReceivedNotification

func (*WalletNotification_EventDetails) MergeUntpDiaNotification​

func (t *WalletNotification_EventDetails) MergeUntpDiaNotification(v UntpDiaNotification) error

MergeUntpDiaNotification performs a merge with any union data inside the WalletNotification_EventDetails, using the provided UntpDiaNotification

func (*WalletNotification_EventDetails) MergeVpInvalidNotification​

func (t *WalletNotification_EventDetails) MergeVpInvalidNotification(v VpInvalidNotification) error

MergeVpInvalidNotification performs a merge with any union data inside the WalletNotification_EventDetails, using the provided VpInvalidNotification

func (*WalletNotification_EventDetails) MergeVpPresentedNotification​

func (t *WalletNotification_EventDetails) MergeVpPresentedNotification(v VpPresentedNotification) error

MergeVpPresentedNotification performs a merge with any union data inside the WalletNotification_EventDetails, using the provided VpPresentedNotification

func (*WalletNotification_EventDetails) MergeVpVerifiedNotification​

func (t *WalletNotification_EventDetails) MergeVpVerifiedNotification(v VpVerifiedNotification) error

MergeVpVerifiedNotification performs a merge with any union data inside the WalletNotification_EventDetails, using the provided VpVerifiedNotification

func (*WalletNotification_EventDetails) MergeWmpNotification​

func (t *WalletNotification_EventDetails) MergeWmpNotification(v WmpNotification) error

MergeWmpNotification performs a merge with any union data inside the WalletNotification_EventDetails, using the provided WmpNotification

func (*WalletNotification_EventDetails) UnmarshalJSON​

func (t *WalletNotification_EventDetails) UnmarshalJSON(b []byte) error

type WalletNotificationsParams​

WalletNotificationsParams defines parameters for WalletNotifications.

type WalletNotificationsParams struct {
// EventType Event type
EventType *string `form:"eventType,omitempty" json:"eventType,omitempty"`

// State Event state
State *string `form:"state,omitempty" json:"state,omitempty"`

// LastEventID SSE last event ID
LastEventID *string `json:"Last-Event-ID,omitempty"`
}

type WalletNotificationsResponse​

type WalletNotificationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletNotificationsResponse​

func ParseWalletNotificationsResponse(rsp *http.Response) (*WalletNotificationsResponse, error)

ParseWalletNotificationsResponse parses an HTTP response from a WalletNotificationsWithResponse call

func (WalletNotificationsResponse) ContentType​

func (r WalletNotificationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletNotificationsResponse) GetBody​

func (r WalletNotificationsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletNotificationsResponse) GetJSON404​

func (r WalletNotificationsResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletNotificationsResponse) GetJSON500​

func (r WalletNotificationsResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletNotificationsResponse) Status​

func (r WalletNotificationsResponse) Status() string

Status returns HTTPResponse.Status

func (WalletNotificationsResponse) StatusCode​

func (r WalletNotificationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletPatchJSONRequestBody​

WalletPatchJSONRequestBody defines body for WalletPatch for application/json ContentType.

type WalletPatchJSONRequestBody = WalletPatchPayload

type WalletPatchPayload​

WalletPatchPayload Payload to update wallet data

type WalletPatchPayload struct {
// Config Wallet configuration with no property required.
Config *WalletConfigProperties `json:"config,omitempty"`

// Metadata Custom key value pairs associated with the wallet. The key must not exceed 64 characters and the value must not exceed 256 characters.
Metadata *WalletMetadata `json:"metadata,omitempty"`
Name *string `json:"name,omitempty"`
}

type WalletPatchResponse​

type WalletPatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WalletIdObject
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletPatchResponse​

func ParseWalletPatchResponse(rsp *http.Response) (*WalletPatchResponse, error)

ParseWalletPatchResponse parses an HTTP response from a WalletPatchWithResponse call

func (WalletPatchResponse) ContentType​

func (r WalletPatchResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletPatchResponse) GetBody​

func (r WalletPatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletPatchResponse) GetJSON200​

func (r WalletPatchResponse) GetJSON200() *WalletIdObject

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletPatchResponse) GetJSON400​

func (r WalletPatchResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WalletPatchResponse) GetJSON404​

func (r WalletPatchResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletPatchResponse) GetJSON500​

func (r WalletPatchResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletPatchResponse) Status​

func (r WalletPatchResponse) Status() string

Status returns HTTPResponse.Status

func (WalletPatchResponse) StatusCode​

func (r WalletPatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletProviderCertificateImportJSONRequestBody​

WalletProviderCertificateImportJSONRequestBody defines body for WalletProviderCertificateImport for application/json ContentType.

type WalletProviderCertificateImportJSONRequestBody = WalletProviderCertificateRequest

type WalletProviderCertificateImportResponse​

type WalletProviderCertificateImportResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletProviderCertificateImportResponse​

func ParseWalletProviderCertificateImportResponse(rsp *http.Response) (*WalletProviderCertificateImportResponse, error)

ParseWalletProviderCertificateImportResponse parses an HTTP response from a WalletProviderCertificateImportWithResponse call

func (WalletProviderCertificateImportResponse) ContentType​

func (r WalletProviderCertificateImportResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletProviderCertificateImportResponse) GetBody​

func (r WalletProviderCertificateImportResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletProviderCertificateImportResponse) GetJSON400​

func (r WalletProviderCertificateImportResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WalletProviderCertificateImportResponse) GetJSON403​

func (r WalletProviderCertificateImportResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (WalletProviderCertificateImportResponse) GetJSON500​

func (r WalletProviderCertificateImportResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletProviderCertificateImportResponse) Status​

func (r WalletProviderCertificateImportResponse) Status() string

Status returns HTTPResponse.Status

func (WalletProviderCertificateImportResponse) StatusCode​

func (r WalletProviderCertificateImportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletProviderCertificateRequest​

WalletProviderCertificateRequest defines model for WalletProviderCertificateRequest.

type WalletProviderCertificateRequest struct {
// CertificateChain PEM-encoded certificate chain (leaf first) issued for the provider key.
CertificateChain []string `json:"certificate_chain"`
}

type WalletProviderCsrGenerateResponse​

type WalletProviderCsrGenerateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WalletProviderCsrResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ForbiddenError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletProviderCsrGenerateResponse​

func ParseWalletProviderCsrGenerateResponse(rsp *http.Response) (*WalletProviderCsrGenerateResponse, error)

ParseWalletProviderCsrGenerateResponse parses an HTTP response from a WalletProviderCsrGenerateWithResponse call

func (WalletProviderCsrGenerateResponse) ContentType​

func (r WalletProviderCsrGenerateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletProviderCsrGenerateResponse) GetBody​

func (r WalletProviderCsrGenerateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletProviderCsrGenerateResponse) GetJSON200​

func (r WalletProviderCsrGenerateResponse) GetJSON200() *WalletProviderCsrResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletProviderCsrGenerateResponse) GetJSON403​

func (r WalletProviderCsrGenerateResponse) GetJSON403() *ForbiddenError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (WalletProviderCsrGenerateResponse) GetJSON500​

func (r WalletProviderCsrGenerateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletProviderCsrGenerateResponse) Status​

func (r WalletProviderCsrGenerateResponse) Status() string

Status returns HTTPResponse.Status

func (WalletProviderCsrGenerateResponse) StatusCode​

func (r WalletProviderCsrGenerateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletProviderCsrResponse​

WalletProviderCsrResponse defines model for WalletProviderCsrResponse.

type WalletProviderCsrResponse struct {
// Csr PEM-encoded PKCS#10 certificate signing request.
Csr string `json:"csr"`
}

type WalletVerifiedCredentialsByStateParams​

WalletVerifiedCredentialsByStateParams defines parameters for WalletVerifiedCredentialsByState.

type WalletVerifiedCredentialsByStateParams struct {
// ResponseCode The `response_code` the holder's user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the
// result is returned only if it matches the code issued for this session; otherwise 404.
ResponseCode *string `form:"response_code,omitempty" json:"response_code,omitempty"`
}

type WalletVerifiedCredentialsByStateResponse​

type WalletVerifiedCredentialsByStateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *VerifiedWrapper
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletVerifiedCredentialsByStateResponse​

func ParseWalletVerifiedCredentialsByStateResponse(rsp *http.Response) (*WalletVerifiedCredentialsByStateResponse, error)

ParseWalletVerifiedCredentialsByStateResponse parses an HTTP response from a WalletVerifiedCredentialsByStateWithResponse call

func (WalletVerifiedCredentialsByStateResponse) ContentType​

func (r WalletVerifiedCredentialsByStateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletVerifiedCredentialsByStateResponse) GetBody​

func (r WalletVerifiedCredentialsByStateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletVerifiedCredentialsByStateResponse) GetJSON200​

func (r WalletVerifiedCredentialsByStateResponse) GetJSON200() *VerifiedWrapper

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletVerifiedCredentialsByStateResponse) GetJSON404​

func (r WalletVerifiedCredentialsByStateResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletVerifiedCredentialsByStateResponse) GetJSON500​

func (r WalletVerifiedCredentialsByStateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletVerifiedCredentialsByStateResponse) Status​

func (r WalletVerifiedCredentialsByStateResponse) Status() string

Status returns HTTPResponse.Status

func (WalletVerifiedCredentialsByStateResponse) StatusCode​

func (r WalletVerifiedCredentialsByStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletVerifiedCredentialsDeleteByStateResponse​

type WalletVerifiedCredentialsDeleteByStateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletVerifiedCredentialsDeleteByStateResponse​

func ParseWalletVerifiedCredentialsDeleteByStateResponse(rsp *http.Response) (*WalletVerifiedCredentialsDeleteByStateResponse, error)

ParseWalletVerifiedCredentialsDeleteByStateResponse parses an HTTP response from a WalletVerifiedCredentialsDeleteByStateWithResponse call

func (WalletVerifiedCredentialsDeleteByStateResponse) ContentType​

func (r WalletVerifiedCredentialsDeleteByStateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletVerifiedCredentialsDeleteByStateResponse) GetBody​

func (r WalletVerifiedCredentialsDeleteByStateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletVerifiedCredentialsDeleteByStateResponse) GetJSON404​

func (r WalletVerifiedCredentialsDeleteByStateResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletVerifiedCredentialsDeleteByStateResponse) GetJSON500​

func (r WalletVerifiedCredentialsDeleteByStateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletVerifiedCredentialsDeleteByStateResponse) Status​

func (r WalletVerifiedCredentialsDeleteByStateResponse) Status() string

Status returns HTTPResponse.Status

func (WalletVerifiedCredentialsDeleteByStateResponse) StatusCode​

func (r WalletVerifiedCredentialsDeleteByStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletX509CSRCreateJSONRequestBody​

WalletX509CSRCreateJSONRequestBody defines body for WalletX509CSRCreate for application/json ContentType.

type WalletX509CSRCreateJSONRequestBody = CSRCreateRequest

type WalletX509CSRCreateResponse​

type WalletX509CSRCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CSRCreateResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletX509CSRCreateResponse​

func ParseWalletX509CSRCreateResponse(rsp *http.Response) (*WalletX509CSRCreateResponse, error)

ParseWalletX509CSRCreateResponse parses an HTTP response from a WalletX509CSRCreateWithResponse call

func (WalletX509CSRCreateResponse) ContentType​

func (r WalletX509CSRCreateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletX509CSRCreateResponse) GetBody​

func (r WalletX509CSRCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletX509CSRCreateResponse) GetJSON200​

func (r WalletX509CSRCreateResponse) GetJSON200() *CSRCreateResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WalletX509CSRCreateResponse) GetJSON400​

func (r WalletX509CSRCreateResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WalletX509CSRCreateResponse) GetJSON404​

func (r WalletX509CSRCreateResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletX509CSRCreateResponse) GetJSON500​

func (r WalletX509CSRCreateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletX509CSRCreateResponse) Status​

func (r WalletX509CSRCreateResponse) Status() string

Status returns HTTPResponse.Status

func (WalletX509CSRCreateResponse) StatusCode​

func (r WalletX509CSRCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletX509CertificateGetResponse​

type WalletX509CertificateGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletX509CertificateGetResponse​

func ParseWalletX509CertificateGetResponse(rsp *http.Response) (*WalletX509CertificateGetResponse, error)

ParseWalletX509CertificateGetResponse parses an HTTP response from a WalletX509CertificateGetWithResponse call

func (WalletX509CertificateGetResponse) ContentType​

func (r WalletX509CertificateGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletX509CertificateGetResponse) GetBody​

func (r WalletX509CertificateGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletX509CertificateGetResponse) GetJSON400​

func (r WalletX509CertificateGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WalletX509CertificateGetResponse) GetJSON404​

func (r WalletX509CertificateGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletX509CertificateGetResponse) GetJSON500​

func (r WalletX509CertificateGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletX509CertificateGetResponse) Status​

func (r WalletX509CertificateGetResponse) Status() string

Status returns HTTPResponse.Status

func (WalletX509CertificateGetResponse) StatusCode​

func (r WalletX509CertificateGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WalletX509CertificateImportJSONRequestBody​

WalletX509CertificateImportJSONRequestBody defines body for WalletX509CertificateImport for application/json ContentType.

type WalletX509CertificateImportJSONRequestBody = CertificateImportRequest

type WalletX509CertificateImportResponse​

type WalletX509CertificateImportResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWalletX509CertificateImportResponse​

func ParseWalletX509CertificateImportResponse(rsp *http.Response) (*WalletX509CertificateImportResponse, error)

ParseWalletX509CertificateImportResponse parses an HTTP response from a WalletX509CertificateImportWithResponse call

func (WalletX509CertificateImportResponse) ContentType​

func (r WalletX509CertificateImportResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WalletX509CertificateImportResponse) GetBody​

func (r WalletX509CertificateImportResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WalletX509CertificateImportResponse) GetJSON400​

func (r WalletX509CertificateImportResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WalletX509CertificateImportResponse) GetJSON404​

func (r WalletX509CertificateImportResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WalletX509CertificateImportResponse) GetJSON500​

func (r WalletX509CertificateImportResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WalletX509CertificateImportResponse) Status​

func (r WalletX509CertificateImportResponse) Status() string

Status returns HTTPResponse.Status

func (WalletX509CertificateImportResponse) StatusCode​

func (r WalletX509CertificateImportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpAcceptInvitationJSONRequestBody​

WmpAcceptInvitationJSONRequestBody defines body for WmpAcceptInvitation for application/json ContentType.

type WmpAcceptInvitationJSONRequestBody = WmpAcceptInvitationPayload

type WmpAcceptInvitationParams​

WmpAcceptInvitationParams defines parameters for WmpAcceptInvitation.

type WmpAcceptInvitationParams struct {
WalletId string `json:"wallet-id"`
}

type WmpAcceptInvitationPayload​

WmpAcceptInvitationPayload defines model for WmpAcceptInvitationPayload.

type WmpAcceptInvitationPayload struct {
// InvitationUrl URL of the invitation JWT
InvitationUrl string `json:"invitationUrl"`
}

type WmpAcceptInvitationResponse​

type WmpAcceptInvitationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpEntityIdObject
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpAcceptInvitationResponse​

func ParseWmpAcceptInvitationResponse(rsp *http.Response) (*WmpAcceptInvitationResponse, error)

ParseWmpAcceptInvitationResponse parses an HTTP response from a WmpAcceptInvitationWithResponse call

func (WmpAcceptInvitationResponse) ContentType​

func (r WmpAcceptInvitationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpAcceptInvitationResponse) GetBody​

func (r WmpAcceptInvitationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpAcceptInvitationResponse) GetJSON200​

func (r WmpAcceptInvitationResponse) GetJSON200() *WmpEntityIdObject

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpAcceptInvitationResponse) GetJSON400​

func (r WmpAcceptInvitationResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpAcceptInvitationResponse) GetJSON401​

func (r WmpAcceptInvitationResponse) GetJSON401() *Error

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (WmpAcceptInvitationResponse) GetJSON404​

func (r WmpAcceptInvitationResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpAcceptInvitationResponse) GetJSON500​

func (r WmpAcceptInvitationResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpAcceptInvitationResponse) Status​

func (r WmpAcceptInvitationResponse) Status() string

Status returns HTTPResponse.Status

func (WmpAcceptInvitationResponse) StatusCode​

func (r WmpAcceptInvitationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpAcceptMessageRequest​

WmpAcceptMessageRequest Accept the content of the received message identified by the path id. On a session that negotiated the `evidence` capability this sends `acceptance_confirmed` evidence to the original sender (WMP evidence §3.5); otherwise nothing is sent.

type WmpAcceptMessageRequest struct {
Type WmpAcceptMessageRequestType `json:"type"`
}

type WmpAcceptMessageRequestType​

WmpAcceptMessageRequestType defines model for WmpAcceptMessageRequest.Type.

type WmpAcceptMessageRequestType string

Defines values for WmpAcceptMessageRequestType.

const (
Accept WmpAcceptMessageRequestType = "accept"
)

func (WmpAcceptMessageRequestType) Valid​

func (e WmpAcceptMessageRequestType) Valid() bool

Valid indicates whether the value is a known member of the WmpAcceptMessageRequestType enum.

type WmpAckProcessedRequest​

WmpAckProcessedRequest Acknowledge the received message identified by the path id as processed (sends a wmp.message.ack with status "processed" to the original sender, core §5.3).

type WmpAckProcessedRequest struct {
Type WmpAckProcessedRequestType `json:"type"`
}

type WmpAckProcessedRequestType​

WmpAckProcessedRequestType defines model for WmpAckProcessedRequest.Type.

type WmpAckProcessedRequestType string

Defines values for WmpAckProcessedRequestType.

const (
AckProcessed WmpAckProcessedRequestType = "ack_processed"
)

func (WmpAckProcessedRequestType) Valid​

func (e WmpAckProcessedRequestType) Valid() bool

Valid indicates whether the value is a known member of the WmpAckProcessedRequestType enum.

type WmpAckReadRequest​

WmpAckReadRequest Acknowledge the received message identified by the path id as read (sends a wmp.message.ack with status "read" to the original sender, core §5.3).

type WmpAckReadRequest struct {
Type WmpAckReadRequestType `json:"type"`
}

type WmpAckReadRequestType​

WmpAckReadRequestType defines model for WmpAckReadRequest.Type.

type WmpAckReadRequestType string

Defines values for WmpAckReadRequestType.

const (
AckRead WmpAckReadRequestType = "ack_read"
)

func (WmpAckReadRequestType) Valid​

func (e WmpAckReadRequestType) Valid() bool

Valid indicates whether the value is a known member of the WmpAckReadRequestType enum.

type WmpAuthenticateSession​

WmpAuthenticateSession Open (authenticate) the session after the identity assertion exchange.

type WmpAuthenticateSession struct {
// Authenticated Set true to mark the session fully authenticated and open it for traffic.
Authenticated bool `json:"authenticated"`
Type WmpAuthenticateSessionType `json:"type"`
}

type WmpAuthenticateSessionType​

WmpAuthenticateSessionType defines model for WmpAuthenticateSession.Type.

type WmpAuthenticateSessionType string

Defines values for WmpAuthenticateSessionType.

const (
Authenticate WmpAuthenticateSessionType = "authenticate"
)

func (WmpAuthenticateSessionType) Valid​

func (e WmpAuthenticateSessionType) Valid() bool

Valid indicates whether the value is a known member of the WmpAuthenticateSessionType enum.

type WmpClientGetPendingRequestsParams​

WmpClientGetPendingRequestsParams defines parameters for WmpClientGetPendingRequests.

type WmpClientGetPendingRequestsParams struct {
WalletId string `json:"wallet-id"`
}

type WmpClientGetPendingRequestsResponse​

type WmpClientGetPendingRequestsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]WmpRequest
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON501 the response for an HTTP 501 `application/json` response
JSON501 *NotImplementedError
}

func ParseWmpClientGetPendingRequestsResponse​

func ParseWmpClientGetPendingRequestsResponse(rsp *http.Response) (*WmpClientGetPendingRequestsResponse, error)

ParseWmpClientGetPendingRequestsResponse parses an HTTP response from a WmpClientGetPendingRequestsWithResponse call

func (WmpClientGetPendingRequestsResponse) ContentType​

func (r WmpClientGetPendingRequestsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpClientGetPendingRequestsResponse) GetBody​

func (r WmpClientGetPendingRequestsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpClientGetPendingRequestsResponse) GetJSON200​

func (r WmpClientGetPendingRequestsResponse) GetJSON200() *[]WmpRequest

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpClientGetPendingRequestsResponse) GetJSON400​

func (r WmpClientGetPendingRequestsResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpClientGetPendingRequestsResponse) GetJSON404​

func (r WmpClientGetPendingRequestsResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpClientGetPendingRequestsResponse) GetJSON500​

func (r WmpClientGetPendingRequestsResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpClientGetPendingRequestsResponse) GetJSON501​

func (r WmpClientGetPendingRequestsResponse) GetJSON501() *NotImplementedError

GetJSON501 returns the response for an HTTP 501 `application/json` response

func (WmpClientGetPendingRequestsResponse) Status​

func (r WmpClientGetPendingRequestsResponse) Status() string

Status returns HTTPResponse.Status

func (WmpClientGetPendingRequestsResponse) StatusCode​

func (r WmpClientGetPendingRequestsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpClientGetRequestParams​

WmpClientGetRequestParams defines parameters for WmpClientGetRequest.

type WmpClientGetRequestParams struct {
WalletId string `json:"wallet-id"`
}

type WmpClientGetRequestResponse​

type WmpClientGetRequestResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpMessage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpClientGetRequestResponse​

func ParseWmpClientGetRequestResponse(rsp *http.Response) (*WmpClientGetRequestResponse, error)

ParseWmpClientGetRequestResponse parses an HTTP response from a WmpClientGetRequestWithResponse call

func (WmpClientGetRequestResponse) ContentType​

func (r WmpClientGetRequestResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpClientGetRequestResponse) GetBody​

func (r WmpClientGetRequestResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpClientGetRequestResponse) GetJSON200​

func (r WmpClientGetRequestResponse) GetJSON200() *WmpMessage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpClientGetRequestResponse) GetJSON400​

func (r WmpClientGetRequestResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpClientGetRequestResponse) GetJSON404​

func (r WmpClientGetRequestResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpClientGetRequestResponse) GetJSON500​

func (r WmpClientGetRequestResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpClientGetRequestResponse) Status​

func (r WmpClientGetRequestResponse) Status() string

Status returns HTTPResponse.Status

func (WmpClientGetRequestResponse) StatusCode​

func (r WmpClientGetRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpClientProcessRequestJSONRequestBody​

WmpClientProcessRequestJSONRequestBody defines body for WmpClientProcessRequest for application/json ContentType.

type WmpClientProcessRequestJSONRequestBody = WmpClientRequestBody

type WmpClientProcessRequestParams​

WmpClientProcessRequestParams defines parameters for WmpClientProcessRequest.

type WmpClientProcessRequestParams struct {
WalletId string `json:"wallet-id"`
}

type WmpClientProcessRequestResponse​

type WmpClientProcessRequestResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *InteractionAuthorizationRequirements
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpClientProcessRequestResponse​

func ParseWmpClientProcessRequestResponse(rsp *http.Response) (*WmpClientProcessRequestResponse, error)

ParseWmpClientProcessRequestResponse parses an HTTP response from a WmpClientProcessRequestWithResponse call

func (WmpClientProcessRequestResponse) ContentType​

func (r WmpClientProcessRequestResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpClientProcessRequestResponse) GetBody​

func (r WmpClientProcessRequestResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpClientProcessRequestResponse) GetJSON200​

func (r WmpClientProcessRequestResponse) GetJSON200() *InteractionAuthorizationRequirements

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpClientProcessRequestResponse) GetJSON400​

func (r WmpClientProcessRequestResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpClientProcessRequestResponse) GetJSON404​

func (r WmpClientProcessRequestResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpClientProcessRequestResponse) GetJSON500​

func (r WmpClientProcessRequestResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpClientProcessRequestResponse) Status​

func (r WmpClientProcessRequestResponse) Status() string

Status returns HTTPResponse.Status

func (WmpClientProcessRequestResponse) StatusCode​

func (r WmpClientProcessRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpClientRequestBody​

WmpClientRequestBody Action to take on a pending WMP client request, discriminated by `type`: `process_offer` a pending credential offer, `process_verification_request` a pending verification request, `identity_assertion` to present a credential, `authenticate` to open the session, `ack_read`/`ack_processed` to acknowledge a received message, or `accept`/`reject` to accept or refuse its content.

type WmpClientRequestBody struct {
// contains filtered or unexported fields
}

func (WmpClientRequestBody) AsWmpAcceptMessageRequest​

func (t WmpClientRequestBody) AsWmpAcceptMessageRequest() (WmpAcceptMessageRequest, error)

AsWmpAcceptMessageRequest returns the union data inside the WmpClientRequestBody as a WmpAcceptMessageRequest

func (WmpClientRequestBody) AsWmpAckProcessedRequest​

func (t WmpClientRequestBody) AsWmpAckProcessedRequest() (WmpAckProcessedRequest, error)

AsWmpAckProcessedRequest returns the union data inside the WmpClientRequestBody as a WmpAckProcessedRequest

func (WmpClientRequestBody) AsWmpAckReadRequest​

func (t WmpClientRequestBody) AsWmpAckReadRequest() (WmpAckReadRequest, error)

AsWmpAckReadRequest returns the union data inside the WmpClientRequestBody as a WmpAckReadRequest

func (WmpClientRequestBody) AsWmpAuthenticateSession​

func (t WmpClientRequestBody) AsWmpAuthenticateSession() (WmpAuthenticateSession, error)

AsWmpAuthenticateSession returns the union data inside the WmpClientRequestBody as a WmpAuthenticateSession

func (WmpClientRequestBody) AsWmpProcessOfferRequest​

func (t WmpClientRequestBody) AsWmpProcessOfferRequest() (WmpProcessOfferRequest, error)

AsWmpProcessOfferRequest returns the union data inside the WmpClientRequestBody as a WmpProcessOfferRequest

func (WmpClientRequestBody) AsWmpProcessVerificationRequest​

func (t WmpClientRequestBody) AsWmpProcessVerificationRequest() (WmpProcessVerificationRequest, error)

AsWmpProcessVerificationRequest returns the union data inside the WmpClientRequestBody as a WmpProcessVerificationRequest

func (WmpClientRequestBody) AsWmpProvideIdentityAssertion​

func (t WmpClientRequestBody) AsWmpProvideIdentityAssertion() (WmpProvideIdentityAssertion, error)

AsWmpProvideIdentityAssertion returns the union data inside the WmpClientRequestBody as a WmpProvideIdentityAssertion

func (WmpClientRequestBody) AsWmpRejectMessageRequest​

func (t WmpClientRequestBody) AsWmpRejectMessageRequest() (WmpRejectMessageRequest, error)

AsWmpRejectMessageRequest returns the union data inside the WmpClientRequestBody as a WmpRejectMessageRequest

func (WmpClientRequestBody) Discriminator​

func (t WmpClientRequestBody) Discriminator() (string, error)

func (*WmpClientRequestBody) FromWmpAcceptMessageRequest​

func (t *WmpClientRequestBody) FromWmpAcceptMessageRequest(v WmpAcceptMessageRequest) error

FromWmpAcceptMessageRequest overwrites any union data inside the WmpClientRequestBody as the provided WmpAcceptMessageRequest

func (*WmpClientRequestBody) FromWmpAckProcessedRequest​

func (t *WmpClientRequestBody) FromWmpAckProcessedRequest(v WmpAckProcessedRequest) error

FromWmpAckProcessedRequest overwrites any union data inside the WmpClientRequestBody as the provided WmpAckProcessedRequest

func (*WmpClientRequestBody) FromWmpAckReadRequest​

func (t *WmpClientRequestBody) FromWmpAckReadRequest(v WmpAckReadRequest) error

FromWmpAckReadRequest overwrites any union data inside the WmpClientRequestBody as the provided WmpAckReadRequest

func (*WmpClientRequestBody) FromWmpAuthenticateSession​

func (t *WmpClientRequestBody) FromWmpAuthenticateSession(v WmpAuthenticateSession) error

FromWmpAuthenticateSession overwrites any union data inside the WmpClientRequestBody as the provided WmpAuthenticateSession

func (*WmpClientRequestBody) FromWmpProcessOfferRequest​

func (t *WmpClientRequestBody) FromWmpProcessOfferRequest(v WmpProcessOfferRequest) error

FromWmpProcessOfferRequest overwrites any union data inside the WmpClientRequestBody as the provided WmpProcessOfferRequest

func (*WmpClientRequestBody) FromWmpProcessVerificationRequest​

func (t *WmpClientRequestBody) FromWmpProcessVerificationRequest(v WmpProcessVerificationRequest) error

FromWmpProcessVerificationRequest overwrites any union data inside the WmpClientRequestBody as the provided WmpProcessVerificationRequest

func (*WmpClientRequestBody) FromWmpProvideIdentityAssertion​

func (t *WmpClientRequestBody) FromWmpProvideIdentityAssertion(v WmpProvideIdentityAssertion) error

FromWmpProvideIdentityAssertion overwrites any union data inside the WmpClientRequestBody as the provided WmpProvideIdentityAssertion

func (*WmpClientRequestBody) FromWmpRejectMessageRequest​

func (t *WmpClientRequestBody) FromWmpRejectMessageRequest(v WmpRejectMessageRequest) error

FromWmpRejectMessageRequest overwrites any union data inside the WmpClientRequestBody as the provided WmpRejectMessageRequest

func (WmpClientRequestBody) MarshalJSON​

func (t WmpClientRequestBody) MarshalJSON() ([]byte, error)

func (*WmpClientRequestBody) MergeWmpAcceptMessageRequest​

func (t *WmpClientRequestBody) MergeWmpAcceptMessageRequest(v WmpAcceptMessageRequest) error

MergeWmpAcceptMessageRequest performs a merge with any union data inside the WmpClientRequestBody, using the provided WmpAcceptMessageRequest

func (*WmpClientRequestBody) MergeWmpAckProcessedRequest​

func (t *WmpClientRequestBody) MergeWmpAckProcessedRequest(v WmpAckProcessedRequest) error

MergeWmpAckProcessedRequest performs a merge with any union data inside the WmpClientRequestBody, using the provided WmpAckProcessedRequest

func (*WmpClientRequestBody) MergeWmpAckReadRequest​

func (t *WmpClientRequestBody) MergeWmpAckReadRequest(v WmpAckReadRequest) error

MergeWmpAckReadRequest performs a merge with any union data inside the WmpClientRequestBody, using the provided WmpAckReadRequest

func (*WmpClientRequestBody) MergeWmpAuthenticateSession​

func (t *WmpClientRequestBody) MergeWmpAuthenticateSession(v WmpAuthenticateSession) error

MergeWmpAuthenticateSession performs a merge with any union data inside the WmpClientRequestBody, using the provided WmpAuthenticateSession

func (*WmpClientRequestBody) MergeWmpProcessOfferRequest​

func (t *WmpClientRequestBody) MergeWmpProcessOfferRequest(v WmpProcessOfferRequest) error

MergeWmpProcessOfferRequest performs a merge with any union data inside the WmpClientRequestBody, using the provided WmpProcessOfferRequest

func (*WmpClientRequestBody) MergeWmpProcessVerificationRequest​

func (t *WmpClientRequestBody) MergeWmpProcessVerificationRequest(v WmpProcessVerificationRequest) error

MergeWmpProcessVerificationRequest performs a merge with any union data inside the WmpClientRequestBody, using the provided WmpProcessVerificationRequest

func (*WmpClientRequestBody) MergeWmpProvideIdentityAssertion​

func (t *WmpClientRequestBody) MergeWmpProvideIdentityAssertion(v WmpProvideIdentityAssertion) error

MergeWmpProvideIdentityAssertion performs a merge with any union data inside the WmpClientRequestBody, using the provided WmpProvideIdentityAssertion

func (*WmpClientRequestBody) MergeWmpRejectMessageRequest​

func (t *WmpClientRequestBody) MergeWmpRejectMessageRequest(v WmpRejectMessageRequest) error

MergeWmpRejectMessageRequest performs a merge with any union data inside the WmpClientRequestBody, using the provided WmpRejectMessageRequest

func (*WmpClientRequestBody) UnmarshalJSON​

func (t *WmpClientRequestBody) UnmarshalJSON(b []byte) error

func (WmpClientRequestBody) ValueByDiscriminator​

func (t WmpClientRequestBody) ValueByDiscriminator() (interface{}, error)

type WmpCreateInvitationResponse​

WmpCreateInvitationResponse defines model for WmpCreateInvitationResponse.

type WmpCreateInvitationResponse struct {
// InvitationId ID of the invitation
InvitationId string `json:"invitationId"`

// InvitationUrl URL at which the invitation can be downloaded
InvitationUrl string `json:"invitationUrl"`
}

type WmpCreateNewInvitationParams​

WmpCreateNewInvitationParams defines parameters for WmpCreateNewInvitation.

type WmpCreateNewInvitationParams struct {
WalletId string `json:"wallet-id"`
}

type WmpCreateNewInvitationResponse​

type WmpCreateNewInvitationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpCreateInvitationResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpCreateNewInvitationResponse​

func ParseWmpCreateNewInvitationResponse(rsp *http.Response) (*WmpCreateNewInvitationResponse, error)

ParseWmpCreateNewInvitationResponse parses an HTTP response from a WmpCreateNewInvitationWithResponse call

func (WmpCreateNewInvitationResponse) ContentType​

func (r WmpCreateNewInvitationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpCreateNewInvitationResponse) GetBody​

func (r WmpCreateNewInvitationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpCreateNewInvitationResponse) GetJSON200​

func (r WmpCreateNewInvitationResponse) GetJSON200() *WmpCreateInvitationResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpCreateNewInvitationResponse) GetJSON400​

func (r WmpCreateNewInvitationResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpCreateNewInvitationResponse) GetJSON404​

func (r WmpCreateNewInvitationResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpCreateNewInvitationResponse) GetJSON500​

func (r WmpCreateNewInvitationResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpCreateNewInvitationResponse) Status​

func (r WmpCreateNewInvitationResponse) Status() string

Status returns HTTPResponse.Status

func (WmpCreateNewInvitationResponse) StatusCode​

func (r WmpCreateNewInvitationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEntityConnectionGetParams​

WmpEntityConnectionGetParams defines parameters for WmpEntityConnectionGet.

type WmpEntityConnectionGetParams struct {
WalletId string `json:"wallet-id"`
}

type WmpEntityConnectionGetResponse​

type WmpEntityConnectionGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpEntityConnectionStatus
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEntityConnectionGetResponse​

func ParseWmpEntityConnectionGetResponse(rsp *http.Response) (*WmpEntityConnectionGetResponse, error)

ParseWmpEntityConnectionGetResponse parses an HTTP response from a WmpEntityConnectionGetWithResponse call

func (WmpEntityConnectionGetResponse) ContentType​

func (r WmpEntityConnectionGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEntityConnectionGetResponse) GetBody​

func (r WmpEntityConnectionGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEntityConnectionGetResponse) GetJSON200​

func (r WmpEntityConnectionGetResponse) GetJSON200() *WmpEntityConnectionStatus

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpEntityConnectionGetResponse) GetJSON400​

func (r WmpEntityConnectionGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEntityConnectionGetResponse) GetJSON404​

func (r WmpEntityConnectionGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEntityConnectionGetResponse) GetJSON500​

func (r WmpEntityConnectionGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEntityConnectionGetResponse) Status​

func (r WmpEntityConnectionGetResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEntityConnectionGetResponse) StatusCode​

func (r WmpEntityConnectionGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEntityConnectionStatus​

WmpEntityConnectionStatus defines model for WmpEntityConnectionStatus.

type WmpEntityConnectionStatus struct {
Connected bool `json:"connected"`
}

type WmpEntityDeleteParams​

WmpEntityDeleteParams defines parameters for WmpEntityDelete.

type WmpEntityDeleteParams struct {
WalletId string `json:"wallet-id"`
}

type WmpEntityDeleteResponse​

type WmpEntityDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEntityDeleteResponse​

func ParseWmpEntityDeleteResponse(rsp *http.Response) (*WmpEntityDeleteResponse, error)

ParseWmpEntityDeleteResponse parses an HTTP response from a WmpEntityDeleteWithResponse call

func (WmpEntityDeleteResponse) ContentType​

func (r WmpEntityDeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEntityDeleteResponse) GetBody​

func (r WmpEntityDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEntityDeleteResponse) GetJSON400​

func (r WmpEntityDeleteResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEntityDeleteResponse) GetJSON404​

func (r WmpEntityDeleteResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEntityDeleteResponse) GetJSON500​

func (r WmpEntityDeleteResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEntityDeleteResponse) Status​

func (r WmpEntityDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEntityDeleteResponse) StatusCode​

func (r WmpEntityDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEntityGetMessageHistoryParams​

WmpEntityGetMessageHistoryParams defines parameters for WmpEntityGetMessageHistory.

type WmpEntityGetMessageHistoryParams struct {
WalletId string `json:"wallet-id"`
}

type WmpEntityGetMessageHistoryResponse​

type WmpEntityGetMessageHistoryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpMessageHistoryRecord
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEntityGetMessageHistoryResponse​

func ParseWmpEntityGetMessageHistoryResponse(rsp *http.Response) (*WmpEntityGetMessageHistoryResponse, error)

ParseWmpEntityGetMessageHistoryResponse parses an HTTP response from a WmpEntityGetMessageHistoryWithResponse call

func (WmpEntityGetMessageHistoryResponse) ContentType​

func (r WmpEntityGetMessageHistoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEntityGetMessageHistoryResponse) GetBody​

func (r WmpEntityGetMessageHistoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEntityGetMessageHistoryResponse) GetJSON200​

func (r WmpEntityGetMessageHistoryResponse) GetJSON200() *WmpMessageHistoryRecord

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpEntityGetMessageHistoryResponse) GetJSON400​

func (r WmpEntityGetMessageHistoryResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEntityGetMessageHistoryResponse) GetJSON404​

func (r WmpEntityGetMessageHistoryResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEntityGetMessageHistoryResponse) GetJSON500​

func (r WmpEntityGetMessageHistoryResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEntityGetMessageHistoryResponse) Status​

func (r WmpEntityGetMessageHistoryResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEntityGetMessageHistoryResponse) StatusCode​

func (r WmpEntityGetMessageHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEntityGetParams​

WmpEntityGetParams defines parameters for WmpEntityGet.

type WmpEntityGetParams struct {
WalletId string `json:"wallet-id"`
}

type WmpEntityGetResponse​

type WmpEntityGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpEntityRecord
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEntityGetResponse​

func ParseWmpEntityGetResponse(rsp *http.Response) (*WmpEntityGetResponse, error)

ParseWmpEntityGetResponse parses an HTTP response from a WmpEntityGetWithResponse call

func (WmpEntityGetResponse) ContentType​

func (r WmpEntityGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEntityGetResponse) GetBody​

func (r WmpEntityGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEntityGetResponse) GetJSON200​

func (r WmpEntityGetResponse) GetJSON200() *WmpEntityRecord

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpEntityGetResponse) GetJSON400​

func (r WmpEntityGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEntityGetResponse) GetJSON404​

func (r WmpEntityGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEntityGetResponse) GetJSON500​

func (r WmpEntityGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEntityGetResponse) Status​

func (r WmpEntityGetResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEntityGetResponse) StatusCode​

func (r WmpEntityGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEntityIdObject​

WmpEntityIdObject defines model for WmpEntityIdObject.

type WmpEntityIdObject struct {
// Id WMP Entity ID
Id string `json:"id"`
}

type WmpEntityKeyIdentifier​

WmpEntityKeyIdentifier WMP Entity key identifier

type WmpEntityKeyIdentifier struct {
Identifier []string `json:"identifier"`
Type SigningKeyIdentifier `json:"type"`
}

type WmpEntityListMessageHistoryParams​

WmpEntityListMessageHistoryParams defines parameters for WmpEntityListMessageHistory.

type WmpEntityListMessageHistoryParams struct {
// Limit The number of items
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

// NextMarker Marking the next set of items
NextMarker *string `form:"nextMarker,omitempty" json:"nextMarker,omitempty"`

// Sort Sort flag controls the sort direction by sentAt
Sort *ListSort `form:"sort,omitempty" json:"sort,omitempty"`
WalletId string `json:"wallet-id"`
}

type WmpEntityListMessageHistoryResponse​

type WmpEntityListMessageHistoryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpMessageHistoryList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEntityListMessageHistoryResponse​

func ParseWmpEntityListMessageHistoryResponse(rsp *http.Response) (*WmpEntityListMessageHistoryResponse, error)

ParseWmpEntityListMessageHistoryResponse parses an HTTP response from a WmpEntityListMessageHistoryWithResponse call

func (WmpEntityListMessageHistoryResponse) ContentType​

func (r WmpEntityListMessageHistoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEntityListMessageHistoryResponse) GetBody​

func (r WmpEntityListMessageHistoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEntityListMessageHistoryResponse) GetJSON200​

func (r WmpEntityListMessageHistoryResponse) GetJSON200() *WmpMessageHistoryList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpEntityListMessageHistoryResponse) GetJSON400​

func (r WmpEntityListMessageHistoryResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEntityListMessageHistoryResponse) GetJSON404​

func (r WmpEntityListMessageHistoryResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEntityListMessageHistoryResponse) GetJSON500​

func (r WmpEntityListMessageHistoryResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEntityListMessageHistoryResponse) Status​

func (r WmpEntityListMessageHistoryResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEntityListMessageHistoryResponse) StatusCode​

func (r WmpEntityListMessageHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEntityListParams​

WmpEntityListParams defines parameters for WmpEntityList.

type WmpEntityListParams struct {
EntityType string `form:"entityType" json:"entityType"`
WalletId string `json:"wallet-id"`
}

type WmpEntityListResponse​

type WmpEntityListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]WmpEntityRecord
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEntityListResponse​

func ParseWmpEntityListResponse(rsp *http.Response) (*WmpEntityListResponse, error)

ParseWmpEntityListResponse parses an HTTP response from a WmpEntityListWithResponse call

func (WmpEntityListResponse) ContentType​

func (r WmpEntityListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEntityListResponse) GetBody​

func (r WmpEntityListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEntityListResponse) GetJSON200​

func (r WmpEntityListResponse) GetJSON200() *[]WmpEntityRecord

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpEntityListResponse) GetJSON400​

func (r WmpEntityListResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEntityListResponse) GetJSON404​

func (r WmpEntityListResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEntityListResponse) GetJSON500​

func (r WmpEntityListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEntityListResponse) Status​

func (r WmpEntityListResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEntityListResponse) StatusCode​

func (r WmpEntityListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEntityMessageDecisionJSONRequestBody​

WmpEntityMessageDecisionJSONRequestBody defines body for WmpEntityMessageDecision for application/json ContentType.

type WmpEntityMessageDecisionJSONRequestBody = WmpMessageDecision

type WmpEntityMessageDecisionParams​

WmpEntityMessageDecisionParams defines parameters for WmpEntityMessageDecision.

type WmpEntityMessageDecisionParams struct {
WalletId string `json:"wallet-id"`
}

type WmpEntityMessageDecisionResponse​

type WmpEntityMessageDecisionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEntityMessageDecisionResponse​

func ParseWmpEntityMessageDecisionResponse(rsp *http.Response) (*WmpEntityMessageDecisionResponse, error)

ParseWmpEntityMessageDecisionResponse parses an HTTP response from a WmpEntityMessageDecisionWithResponse call

func (WmpEntityMessageDecisionResponse) ContentType​

func (r WmpEntityMessageDecisionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEntityMessageDecisionResponse) GetBody​

func (r WmpEntityMessageDecisionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEntityMessageDecisionResponse) GetJSON400​

func (r WmpEntityMessageDecisionResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEntityMessageDecisionResponse) GetJSON404​

func (r WmpEntityMessageDecisionResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEntityMessageDecisionResponse) GetJSON409​

func (r WmpEntityMessageDecisionResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (WmpEntityMessageDecisionResponse) GetJSON500​

func (r WmpEntityMessageDecisionResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEntityMessageDecisionResponse) Status​

func (r WmpEntityMessageDecisionResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEntityMessageDecisionResponse) StatusCode​

func (r WmpEntityMessageDecisionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEntityRecord​

WmpEntityRecord WMP Entity record

type WmpEntityRecord struct {
// Id WMP Entity ID
Id string `json:"id"`
Identifiers []WmpEntityKeyIdentifier `json:"identifiers"`

// Name WMP Entity name
Name string `json:"name"`

// Qualified Relay entities only: whether the QTSP was verified as qualified and the session negotiated
// qualified evidence (CS-15 §12). False for a development relay.
Qualified *bool `json:"qualified,omitempty"`

// Roles Wallet capabilities of the entity
Roles []WalletCapability `json:"roles"`

// Verified Whether the channel for this entity is verified
Verified bool `json:"verified"`

// Via `direct`: a session with the entity's own endpoint. `relay`: the entity is reached through the
// wallet's QTSP relay (a relay correspondent), or is the relay itself.
Via *WmpEntityRecordVia `json:"via,omitempty"`
}

type WmpEntityRecordVia​

WmpEntityRecordVia `direct`: a session with the entity's own endpoint. `relay`: the entity is reached through the wallet's QTSP relay (a relay correspondent), or is the relay itself.

type WmpEntityRecordVia string

Defines values for WmpEntityRecordVia.

const (
Direct WmpEntityRecordVia = "direct"
Relay WmpEntityRecordVia = "relay"
)

func (WmpEntityRecordVia) Valid​

func (e WmpEntityRecordVia) Valid() bool

Valid indicates whether the value is a known member of the WmpEntityRecordVia enum.

type WmpEntitySendMessageMultipartBody​

WmpEntitySendMessageMultipartBody defines parameters for WmpEntitySendMessage.

type WmpEntitySendMessageMultipartBody struct {
// AllowShortExpiry Relay correspondents only: accept an `expiresAt` earlier than the QTSP's offline retention,
// which turns a slow delivery into a non-delivery (CS-15 §11.2). Without it such an `expiresAt`
// is refused with 400.
AllowShortExpiry *bool `form:"allowShortExpiry,omitempty" json:"allowShortExpiry,omitempty"`

// Body The primary message body: a plain-text form value, or a file part whose
// Content-Type becomes the message content type.
Body openapi_types.File `form:"body" json:"body"`

// ConsignmentMode Registered-delivery consignment mode (WMP core §3.5, CS-15 §13); relay correspondents
// only. `basic` (default): delivery evidence only. `consented`: the recipient accepts or
// rejects. `consented_signed`: the decision is signed.
ConsignmentMode *WmpEntitySendMessageMultipartBodyConsignmentMode `form:"consignmentMode,omitempty" json:"consignmentMode,omitempty"`

// ExpiresAt Per-message deadline (core §3.2). While the peer is offline the message is
// discarded from the queue past this time, whichever of this or the negotiated
// `offline.ttl` is sooner.
ExpiresAt *time.Time `form:"expiresAt,omitempty" json:"expiresAt,omitempty"`

// InReplyTo Id of a previously received message this one replies to.
InReplyTo *string `form:"inReplyTo,omitempty" json:"inReplyTo,omitempty"`

// MessageType Free-form application-defined message type tag.
MessageType *string `form:"messageType,omitempty" json:"messageType,omitempty"`

// Sign Attach a non-repudiation signature (`wmp.signature`, core §5.4): a detached JWS
// over the JCS-canonicalised content, made with the wallet's key (`kid` of its DID,
// or `x5c` for an X.509 wallet). Not available for messages the session encrypts with
// MLS, nor for wallets whose key identifier is a JWK.
Sign *bool `form:"sign,omitempty" json:"sign,omitempty"`

// Timestamp Attach an RFC 3161 timestamp token (`wmp.timestamp_token`, core §5.5) over the same
// content from the configured TSA (`services.wmpTsa.url`); 400 when none is configured,
// 502 when the TSA cannot be reached.
Timestamp *bool `form:"timestamp,omitempty" json:"timestamp,omitempty"`
}

type WmpEntitySendMessageMultipartBodyConsignmentMode​

WmpEntitySendMessageMultipartBodyConsignmentMode defines parameters for WmpEntitySendMessage.

type WmpEntitySendMessageMultipartBodyConsignmentMode string

Defines values for WmpEntitySendMessageMultipartBodyConsignmentMode.

const (
Basic WmpEntitySendMessageMultipartBodyConsignmentMode = "basic"
Consented WmpEntitySendMessageMultipartBodyConsignmentMode = "consented"
ConsentedSigned WmpEntitySendMessageMultipartBodyConsignmentMode = "consented_signed"
)

func (WmpEntitySendMessageMultipartBodyConsignmentMode) Valid​

func (e WmpEntitySendMessageMultipartBodyConsignmentMode) Valid() bool

Valid indicates whether the value is a known member of the WmpEntitySendMessageMultipartBodyConsignmentMode enum.

type WmpEntitySendMessageMultipartRequestBody​

WmpEntitySendMessageMultipartRequestBody defines body for WmpEntitySendMessage for multipart/form-data ContentType.

type WmpEntitySendMessageMultipartRequestBody WmpEntitySendMessageMultipartBody

type WmpEntitySendMessageParams​

WmpEntitySendMessageParams defines parameters for WmpEntitySendMessage.

type WmpEntitySendMessageParams struct {
WalletId string `json:"wallet-id"`
}

type WmpEntitySendMessageResponse​

type WmpEntitySendMessageResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpMessageSendResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseWmpEntitySendMessageResponse​

func ParseWmpEntitySendMessageResponse(rsp *http.Response) (*WmpEntitySendMessageResponse, error)

ParseWmpEntitySendMessageResponse parses an HTTP response from a WmpEntitySendMessageWithResponse call

func (WmpEntitySendMessageResponse) ContentType​

func (r WmpEntitySendMessageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEntitySendMessageResponse) GetBody​

func (r WmpEntitySendMessageResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEntitySendMessageResponse) GetJSON200​

func (r WmpEntitySendMessageResponse) GetJSON200() *WmpMessageSendResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpEntitySendMessageResponse) GetJSON400​

func (r WmpEntitySendMessageResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEntitySendMessageResponse) GetJSON404​

func (r WmpEntitySendMessageResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEntitySendMessageResponse) GetJSON409​

func (r WmpEntitySendMessageResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (WmpEntitySendMessageResponse) GetJSON500​

func (r WmpEntitySendMessageResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEntitySendMessageResponse) GetJSON502​

func (r WmpEntitySendMessageResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (WmpEntitySendMessageResponse) Status​

func (r WmpEntitySendMessageResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEntitySendMessageResponse) StatusCode​

func (r WmpEntitySendMessageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEntityServerConnectParams​

WmpEntityServerConnectParams defines parameters for WmpEntityServerConnect.

type WmpEntityServerConnectParams struct {
WalletId string `json:"wallet-id"`
}

type WmpEntityServerConnectResponse​

type WmpEntityServerConnectResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEntityServerConnectResponse​

func ParseWmpEntityServerConnectResponse(rsp *http.Response) (*WmpEntityServerConnectResponse, error)

ParseWmpEntityServerConnectResponse parses an HTTP response from a WmpEntityServerConnectWithResponse call

func (WmpEntityServerConnectResponse) ContentType​

func (r WmpEntityServerConnectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEntityServerConnectResponse) GetBody​

func (r WmpEntityServerConnectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEntityServerConnectResponse) GetJSON400​

func (r WmpEntityServerConnectResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEntityServerConnectResponse) GetJSON401​

func (r WmpEntityServerConnectResponse) GetJSON401() *Error

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (WmpEntityServerConnectResponse) GetJSON404​

func (r WmpEntityServerConnectResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEntityServerConnectResponse) GetJSON500​

func (r WmpEntityServerConnectResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEntityServerConnectResponse) Status​

func (r WmpEntityServerConnectResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEntityServerConnectResponse) StatusCode​

func (r WmpEntityServerConnectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEvidenceCheck​

WmpEvidenceCheck One check of a verification report. `valid` is true when it passed. For the content hash, `status` is `match`, `mismatch` or `unknown` (the message is not one this wallet sent, or its hash cannot be recomputed).

type WmpEvidenceCheck struct {
Error *string `json:"error,omitempty"`
Kid *string `json:"kid,omitempty"`
Status *string `json:"status,omitempty"`

// Subject Subject of the signing (or TSA) certificate.
Subject *string `json:"subject,omitempty"`
Time *time.Time `json:"time,omitempty"`
Valid bool `json:"valid"`
}

type WmpEvidenceGetParams​

WmpEvidenceGetParams defines parameters for WmpEvidenceGet.

type WmpEvidenceGetParams struct {
WalletId string `json:"wallet-id"`
}

type WmpEvidenceGetResponse​

type WmpEvidenceGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpEvidenceRecord
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEvidenceGetResponse​

func ParseWmpEvidenceGetResponse(rsp *http.Response) (*WmpEvidenceGetResponse, error)

ParseWmpEvidenceGetResponse parses an HTTP response from a WmpEvidenceGetWithResponse call

func (WmpEvidenceGetResponse) ContentType​

func (r WmpEvidenceGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEvidenceGetResponse) GetBody​

func (r WmpEvidenceGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEvidenceGetResponse) GetJSON200​

func (r WmpEvidenceGetResponse) GetJSON200() *WmpEvidenceRecord

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpEvidenceGetResponse) GetJSON400​

func (r WmpEvidenceGetResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEvidenceGetResponse) GetJSON404​

func (r WmpEvidenceGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEvidenceGetResponse) GetJSON500​

func (r WmpEvidenceGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEvidenceGetResponse) Status​

func (r WmpEvidenceGetResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEvidenceGetResponse) StatusCode​

func (r WmpEvidenceGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEvidenceHash​

WmpEvidenceHash defines model for WmpEvidenceHash.

type WmpEvidenceHash struct {
Algorithm string `json:"algorithm"`
Value string `json:"value"`
}

type WmpEvidenceList​

WmpEvidenceList defines model for WmpEvidenceList.

type WmpEvidenceList struct {
// ContinuationToken Passed back to get the next page; null on the last page.
ContinuationToken *string `json:"continuation_token,omitempty"`
EvidenceRecords []WmpEvidenceRecord `json:"evidence_records"`

// TotalCount The number of records matching the search, across every page.
TotalCount int `json:"total_count"`
}

type WmpEvidenceListParams​

WmpEvidenceListParams defines parameters for WmpEvidenceList.

type WmpEvidenceListParams struct {
// MessageId Lists the evidence about this message (the `original_message_id`).
MessageId *string `form:"message_id,omitempty" json:"message_id,omitempty"`

// SessionId Lists the evidence of this session, oldest event first, in pages.
SessionId *string `form:"session_id,omitempty" json:"session_id,omitempty"`

// Since With `session_id`, only evidence whose event time is at or after this time.
Since *time.Time `form:"since,omitempty" json:"since,omitempty"`

// Until With `session_id`, only evidence whose event time is before this time.
Until *time.Time `form:"until,omitempty" json:"until,omitempty"`

// ContinuationToken With `session_id`, the `continuation_token` of the previous page.
ContinuationToken *string `form:"continuation_token,omitempty" json:"continuation_token,omitempty"`

// Limit With `session_id`, the maximum number of records of a page.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
WalletId string `json:"wallet-id"`
}

type WmpEvidenceListResponse​

type WmpEvidenceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpEvidenceList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEvidenceListResponse​

func ParseWmpEvidenceListResponse(rsp *http.Response) (*WmpEvidenceListResponse, error)

ParseWmpEvidenceListResponse parses an HTTP response from a WmpEvidenceListWithResponse call

func (WmpEvidenceListResponse) ContentType​

func (r WmpEvidenceListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEvidenceListResponse) GetBody​

func (r WmpEvidenceListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEvidenceListResponse) GetJSON200​

func (r WmpEvidenceListResponse) GetJSON200() *WmpEvidenceList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpEvidenceListResponse) GetJSON400​

func (r WmpEvidenceListResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEvidenceListResponse) GetJSON404​

func (r WmpEvidenceListResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEvidenceListResponse) GetJSON500​

func (r WmpEvidenceListResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEvidenceListResponse) Status​

func (r WmpEvidenceListResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEvidenceListResponse) StatusCode​

func (r WmpEvidenceListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpEvidenceNotification​

WmpEvidenceNotification An evidence record of a wmp.evidence_received or wmp.evidence_issued notification (WMP evidence profile).

type WmpEvidenceNotification struct {
Direction WmpEvidenceNotificationDirection `json:"direction"`

// EntityId The peer of the session the evidence travelled on.
EntityId string `json:"entityId"`

// EventType The evidence event type (WMP evidence §3), e.g. delivery_confirmed.
EventType string `json:"eventType"`
EvidenceId string `json:"evidenceId"`

// MessageId Id of the message the evidence is about (original_message_id).
MessageId string `json:"messageId"`

// Verification How this wallet evaluated evidence a peer sent it. `accepted`: signature, timestamp and content hash
// verified; `rejected`: one of them did not; `pending`: stored, not (yet) evaluated, e.g. the content
// hash of an encrypted message, which cannot be recomputed.
Verification *WmpEvidenceVerification `json:"verification,omitempty"`
}

type WmpEvidenceNotificationDirection​

WmpEvidenceNotificationDirection defines model for WmpEvidenceNotification.Direction.

type WmpEvidenceNotificationDirection string

Defines values for WmpEvidenceNotificationDirection.

const (
WmpEvidenceNotificationDirectionIssued WmpEvidenceNotificationDirection = "issued"
WmpEvidenceNotificationDirectionReceived WmpEvidenceNotificationDirection = "received"
)

func (WmpEvidenceNotificationDirection) Valid​

func (e WmpEvidenceNotificationDirection) Valid() bool

Valid indicates whether the value is a known member of the WmpEvidenceNotificationDirection enum.

type WmpEvidenceRecord​

WmpEvidenceRecord A record of the evidence repository: the fields of WMP evidence §6.2, plus the record's direction, session, verification and acknowledgement.

type WmpEvidenceRecord struct {
AckAt *time.Time `json:"ack_at,omitempty"`

// AckStatus The counterparty's wmp.evidence.ack status (accepted, rejected or stored), if any.
AckStatus *string `json:"ack_status,omitempty"`
Direction WmpEvidenceRecordDirection `json:"direction"`
EntityId string `json:"entity_id"`
EventTime time.Time `json:"event_time"`
EventType string `json:"event_type"`

// Evidence The evidence object (WMP evidence §4.2).
Evidence map[string]interface{} `json:"evidence"`
EvidenceId string `json:"evidence_id"`

// Issuer The wmp.sender of the evidence notification, its generator.
Issuer *string `json:"issuer,omitempty"`
OriginalContentHash WmpEvidenceHash `json:"original_content_hash"`
OriginalMessageId string `json:"original_message_id"`
RetainUntil time.Time `json:"retain_until"`
SessionId string `json:"session_id"`

// SignedEvidence base64url of the flattened JWS JSON serialisation (RFC 7515 §7.2.2) of the evidence notification:
// the detached signature's protected header and signature with its unencoded payload (RFC 7797,
// the JCS-canonical content). The compact serialisation cannot carry an unencoded payload that
// contains a period.
SignedEvidence *string `json:"signed_evidence,omitempty"`

// TimestampToken base64url RFC 3161 timestamp token over the same payload.
TimestampToken *string `json:"timestamp_token,omitempty"`

// Verification How this wallet evaluated evidence a peer sent it. `accepted`: signature, timestamp and content hash
// verified; `rejected`: one of them did not; `pending`: stored, not (yet) evaluated, e.g. the content
// hash of an encrypted message, which cannot be recomputed.
Verification *WmpEvidenceVerification `json:"verification,omitempty"`
}

type WmpEvidenceRecordDirection​

WmpEvidenceRecordDirection defines model for WmpEvidenceRecord.Direction.

type WmpEvidenceRecordDirection string

Defines values for WmpEvidenceRecordDirection.

const (
WmpEvidenceRecordDirectionIssued WmpEvidenceRecordDirection = "issued"
WmpEvidenceRecordDirectionReceived WmpEvidenceRecordDirection = "received"
)

func (WmpEvidenceRecordDirection) Valid​

func (e WmpEvidenceRecordDirection) Valid() bool

Valid indicates whether the value is a known member of the WmpEvidenceRecordDirection enum.

type WmpEvidenceVerification​

WmpEvidenceVerification How this wallet evaluated evidence a peer sent it. `accepted`: signature, timestamp and content hash verified; `rejected`: one of them did not; `pending`: stored, not (yet) evaluated, e.g. the content hash of an encrypted message, which cannot be recomputed.

type WmpEvidenceVerification struct {
CheckedAt *time.Time `json:"checked_at,omitempty"`
Reason *string `json:"reason,omitempty"`
SignerKid *string `json:"signer_kid,omitempty"`
Status WmpEvidenceVerificationStatus `json:"status"`
TimestampTime *time.Time `json:"timestamp_time,omitempty"`
}

type WmpEvidenceVerificationStatus​

WmpEvidenceVerificationStatus defines model for WmpEvidenceVerification.Status.

type WmpEvidenceVerificationStatus string

Defines values for WmpEvidenceVerificationStatus.

const (
WmpEvidenceVerificationStatusAccepted WmpEvidenceVerificationStatus = "accepted"
WmpEvidenceVerificationStatusPending WmpEvidenceVerificationStatus = "pending"
WmpEvidenceVerificationStatusRejected WmpEvidenceVerificationStatus = "rejected"
)

func (WmpEvidenceVerificationStatus) Valid​

func (e WmpEvidenceVerificationStatus) Valid() bool

Valid indicates whether the value is a known member of the WmpEvidenceVerificationStatus enum.

type WmpEvidenceVerifyJSONBody​

WmpEvidenceVerifyJSONBody defines parameters for WmpEvidenceVerify.

type WmpEvidenceVerifyJSONBody map[string]interface{}

type WmpEvidenceVerifyJSONRequestBody​

WmpEvidenceVerifyJSONRequestBody defines body for WmpEvidenceVerify for application/json ContentType.

type WmpEvidenceVerifyJSONRequestBody WmpEvidenceVerifyJSONBody

type WmpEvidenceVerifyParams​

WmpEvidenceVerifyParams defines parameters for WmpEvidenceVerify.

type WmpEvidenceVerifyParams struct {
WalletId string `json:"wallet-id"`
}

type WmpEvidenceVerifyReport​

WmpEvidenceVerifyReport The result of verifying a wmp.evidence.notify independently of a session.

type WmpEvidenceVerifyReport struct {
// ContentHash One check of a verification report. `valid` is true when it passed. For the content hash,
// `status` is `match`, `mismatch` or `unknown` (the message is not one this wallet sent, or its hash
// cannot be recomputed).
ContentHash WmpEvidenceCheck `json:"content_hash"`
Errors []string `json:"errors"`
EventType *string `json:"event_type,omitempty"`
EvidenceId *string `json:"evidence_id,omitempty"`
OriginalMessageId *string `json:"original_message_id,omitempty"`

// Signature One check of a verification report. `valid` is true when it passed. For the content hash,
// `status` is `match`, `mismatch` or `unknown` (the message is not one this wallet sent, or its hash
// cannot be recomputed).
Signature WmpEvidenceCheck `json:"signature"`

// Timestamp One check of a verification report. `valid` is true when it passed. For the content hash,
// `status` is `match`, `mismatch` or `unknown` (the message is not one this wallet sent, or its hash
// cannot be recomputed).
Timestamp WmpEvidenceCheck `json:"timestamp"`

// Valid The signature (with a trusted x5c chain) and the timestamp token verify, and the content hash
// does not contradict this wallet's record of the message.
Valid bool `json:"valid"`
}

type WmpEvidenceVerifyResponse​

type WmpEvidenceVerifyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpEvidenceVerifyReport
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpEvidenceVerifyResponse​

func ParseWmpEvidenceVerifyResponse(rsp *http.Response) (*WmpEvidenceVerifyResponse, error)

ParseWmpEvidenceVerifyResponse parses an HTTP response from a WmpEvidenceVerifyWithResponse call

func (WmpEvidenceVerifyResponse) ContentType​

func (r WmpEvidenceVerifyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpEvidenceVerifyResponse) GetBody​

func (r WmpEvidenceVerifyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpEvidenceVerifyResponse) GetJSON200​

func (r WmpEvidenceVerifyResponse) GetJSON200() *WmpEvidenceVerifyReport

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpEvidenceVerifyResponse) GetJSON400​

func (r WmpEvidenceVerifyResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpEvidenceVerifyResponse) GetJSON404​

func (r WmpEvidenceVerifyResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpEvidenceVerifyResponse) GetJSON500​

func (r WmpEvidenceVerifyResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpEvidenceVerifyResponse) Status​

func (r WmpEvidenceVerifyResponse) Status() string

Status returns HTTPResponse.Status

func (WmpEvidenceVerifyResponse) StatusCode​

func (r WmpEvidenceVerifyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpMessage​

WmpMessage Metadata for a received WMP message. The body is downloaded as raw bytes from the link this object carries (`bodyUrl`).

type WmpMessage struct {
// BodyUrl Download link for the raw message body.
BodyUrl string `json:"bodyUrl"`

// ContentType Content type of the primary body.
ContentType string `json:"contentType"`

// From Sender identifier of the peer that delivered the message.
From string `json:"from"`

// Id Message ID.
Id string `json:"id"`

// InReplyTo Id of the message this one replies to, if the sender set one.
InReplyTo *string `json:"inReplyTo,omitempty"`

// MessageType Free-form application-defined message type tag, if the sender set one.
MessageType *string `json:"messageType,omitempty"`

// ReplyTo Address the sender asked replies to be sent to, if set.
ReplyTo *string `json:"replyTo,omitempty"`
}

type WmpMessageDecision​

WmpMessageDecision defines model for WmpMessageDecision.

type WmpMessageDecision struct {
Accept bool `json:"accept"`

// Reason Optional reason sent with a rejection.
Reason *string `json:"reason,omitempty"`
}

type WmpMessageHistoryList​

WmpMessageHistoryList defines model for WmpMessageHistoryList.

type WmpMessageHistoryList struct {
List []WmpMessageHistoryRecord `json:"list"`

// Next URL of the next page. Empty on the last page.
Next string `json:"next"`
}

type WmpMessageHistoryRecord​

WmpMessageHistoryRecord The sender-side record of one message this wallet sent: what it was sent as, and where it currently stands in the delivery lifecycle (core §5.3.1/§5.3).

type WmpMessageHistoryRecord struct {
ContentType string `json:"contentType"`

// EntityId The peer this message was sent to.
EntityId string `json:"entityId"`

// ExpiresAt The message's queue deadline (only meaningful while status is "queued").
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
LastUpdate *time.Time `json:"lastUpdate,omitempty"`
MessageId string `json:"messageId"`

// Method The WMP method the message was sent as, e.g. wmp.message.deliver.
Method string `json:"method"`
SentAt time.Time `json:"sentAt"`

// Status accepted, queued, delivered, expired, dropped, received, read, processed or failed.
Status string `json:"status"`
}

type WmpMessageSendResult​

WmpMessageSendResult Outcome of sending a message via POST /wmp/entities/{entity_id}/messages.

type WmpMessageSendResult struct {
// MessageId Id assigned to the sent message, usable to look up its history record.
MessageId string `json:"messageId"`

// QueuedUntil Only present when status is "queued": when the message will expire from the queue.
QueuedUntil *time.Time `json:"queuedUntil,omitempty"`

// Status `accepted`: delivered to a live peer. `queued`: the peer is offline and negotiated the
// `offline` capability; the message will be replayed once it reconnects or polls.
Status WmpMessageSendStatus `json:"status"`
}

type WmpMessageSendStatus​

WmpMessageSendStatus `accepted`: delivered to a live peer. `queued`: the peer is offline and negotiated the `offline` capability; the message will be replayed once it reconnects or polls.

type WmpMessageSendStatus string

Defines values for WmpMessageSendStatus.

const (
WmpMessageSendStatusAccepted WmpMessageSendStatus = "accepted"
WmpMessageSendStatusQueued WmpMessageSendStatus = "queued"
)

func (WmpMessageSendStatus) Valid​

func (e WmpMessageSendStatus) Valid() bool

Valid indicates whether the value is a known member of the WmpMessageSendStatus enum.

type WmpMessageStatusNotification​

WmpMessageStatusNotification Delivery-lifecycle detail for a wmp.message_status notification (WMP core §5.3.1/§5.3): reports a status transition for a message this wallet sent.

type WmpMessageStatusNotification struct {
// MessageId Id of the message this status applies to.
MessageId string `json:"messageId"`

// QueuedUntil Only present for status "queued": when the message will expire from the queue.
QueuedUntil *time.Time `json:"queuedUntil,omitempty"`

// Recipient Entity id of the peer the message was sent to.
Recipient string `json:"recipient"`

// Status queued, delivered, expired or dropped (core §5.3.1), or received, read, processed or
// failed (core §5.3, from an ack).
Status string `json:"status"`
}

type WmpNotification​

WmpNotification defines model for WmpNotification.

type WmpNotification struct {
// Entity WMP Entity record
Entity *WmpEntityRecord `json:"entity,omitempty"`
Error *string `json:"error,omitempty"`

// Evidence An evidence record of a wmp.evidence_received or wmp.evidence_issued notification (WMP evidence
// profile).
Evidence *WmpEvidenceNotification `json:"evidence,omitempty"`
Id string `json:"id"`

// IdentityAssertion The wrapper contains Verifiable Credential Subject and Metadata.
IdentityAssertion *CredentialWrapper `json:"identityAssertion,omitempty"`
InvitationUrl *string `json:"invitationUrl,omitempty"`
MessageId *string `json:"messageId,omitempty"`

// MessageStatus Delivery-lifecycle detail for a wmp.message_status notification (WMP core §5.3.1/§5.3):
// reports a status transition for a message this wallet sent.
MessageStatus *WmpMessageStatusNotification `json:"messageStatus,omitempty"`
RelayStatus *WmpRelayStatusNotification `json:"relayStatus,omitempty"`
UnrecognisedRelays *[]string `json:"unrecognisedRelays,omitempty"`
}

type WmpProcessOfferRequest​

WmpProcessOfferRequest Process a pending credential offer identified by the path id.

type WmpProcessOfferRequest struct {
Type WmpProcessOfferRequestType `json:"type"`
}

type WmpProcessOfferRequestType​

WmpProcessOfferRequestType defines model for WmpProcessOfferRequest.Type.

type WmpProcessOfferRequestType string

Defines values for WmpProcessOfferRequestType.

const (
ProcessOffer WmpProcessOfferRequestType = "process_offer"
)

func (WmpProcessOfferRequestType) Valid​

func (e WmpProcessOfferRequestType) Valid() bool

Valid indicates whether the value is a known member of the WmpProcessOfferRequestType enum.

type WmpProcessVerificationRequest​

WmpProcessVerificationRequest Process a pending verification request identified by the path id.

type WmpProcessVerificationRequest struct {
Type WmpProcessVerificationRequestType `json:"type"`
}

type WmpProcessVerificationRequestType​

WmpProcessVerificationRequestType defines model for WmpProcessVerificationRequest.Type.

type WmpProcessVerificationRequestType string

Defines values for WmpProcessVerificationRequestType.

const (
ProcessVerificationRequest WmpProcessVerificationRequestType = "process_verification_request"
)

func (WmpProcessVerificationRequestType) Valid​

func (e WmpProcessVerificationRequestType) Valid() bool

Valid indicates whether the value is a known member of the WmpProcessVerificationRequestType enum.

type WmpProvideIdentityAssertion​

WmpProvideIdentityAssertion Provide a credential to present as the identity assertion for the session.

type WmpProvideIdentityAssertion struct {
// CredentialId Id of the wallet credential to present as the identity assertion VP.
CredentialId string `json:"credentialId"`
Type WmpProvideIdentityAssertionType `json:"type"`
}

type WmpProvideIdentityAssertionType​

WmpProvideIdentityAssertionType defines model for WmpProvideIdentityAssertion.Type.

type WmpProvideIdentityAssertionType string

Defines values for WmpProvideIdentityAssertionType.

const (
IdentityAssertion WmpProvideIdentityAssertionType = "identity_assertion"
)

func (WmpProvideIdentityAssertionType) Valid​

func (e WmpProvideIdentityAssertionType) Valid() bool

Valid indicates whether the value is a known member of the WmpProvideIdentityAssertionType enum.

type WmpRejectMessageRequest​

WmpRejectMessageRequest Refuse the content of the received message identified by the path id. On a session that negotiated the `evidence` capability this sends `acceptance_rejected` evidence (reason `recipient_rejected`) to the original sender (WMP evidence §3.5); otherwise nothing is sent.

type WmpRejectMessageRequest struct {
// Reason Human-readable reason, sent as the evidence's `event_reason.text`.
Reason *string `json:"reason,omitempty"`
Type WmpRejectMessageRequestType `json:"type"`
}

type WmpRejectMessageRequestType​

WmpRejectMessageRequestType defines model for WmpRejectMessageRequest.Type.

type WmpRejectMessageRequestType string

Defines values for WmpRejectMessageRequestType.

const (
Reject WmpRejectMessageRequestType = "reject"
)

func (WmpRejectMessageRequestType) Valid​

func (e WmpRejectMessageRequestType) Valid() bool

Valid indicates whether the value is a known member of the WmpRejectMessageRequestType enum.

type WmpRelayAccount​

WmpRelayAccount The wallet's account at its QTSP relay.

type WmpRelayAccount struct {
// CertificateChain The Subscriber certificate chain the QTSP issued, as a PEM bundle, leaf first.
CertificateChain *string `json:"certificateChain,omitempty"`
CertificateNotAfter *time.Time `json:"certificateNotAfter,omitempty"`
Endpoint string `json:"endpoint"`
InboxConnected bool `json:"inboxConnected"`
KeyPackagesEarliestExpiry *time.Time `json:"keyPackagesEarliestExpiry,omitempty"`
KeyPackagesLeft *int `json:"keyPackagesLeft,omitempty"`

// ParticipantId The QTSP's WMP participant identifier (`x509:san:dns:<domain>`).
ParticipantId string `json:"participantId"`

// QtspId The QTSP's own identifier, as its discovery document gives it.
QtspId *string `json:"qtspId,omitempty"`

// Qualified Whether the QTSP was verified against the EU trusted list and offers qualified evidence.
Qualified bool `json:"qualified"`
RegisteredAt *time.Time `json:"registeredAt,omitempty"`
SmpUrl *string `json:"smpUrl,omitempty"`
Status WmpRelayAccountStatus `json:"status"`

// SubscriberId The wallet's ebCore identifier at the QTSP.
SubscriberId string `json:"subscriberId"`
}

type WmpRelayAccountStatus​

WmpRelayAccountStatus defines model for WmpRelayAccount.Status.

type WmpRelayAccountStatus string

Defines values for WmpRelayAccountStatus.

const (
WmpRelayAccountStatusActive WmpRelayAccountStatus = "active"
WmpRelayAccountStatusOnboarding WmpRelayAccountStatus = "onboarding"
)

func (WmpRelayAccountStatus) Valid​

func (e WmpRelayAccountStatus) Valid() bool

Valid indicates whether the value is a known member of the WmpRelayAccountStatus enum.

type WmpRelayCertificate​

WmpRelayCertificate defines model for WmpRelayCertificate.

type WmpRelayCertificate struct {
// Certificate PEM bundle of the issued Subscriber certificate followed by its CA chain.
Certificate string `json:"certificate"`
}

type WmpRelayCorrespondentConnectJSONRequestBody​

WmpRelayCorrespondentConnectJSONRequestBody defines body for WmpRelayCorrespondentConnect for application/json ContentType.

type WmpRelayCorrespondentConnectJSONRequestBody = WmpRelayCorrespondentRequest

type WmpRelayCorrespondentConnectParams​

WmpRelayCorrespondentConnectParams defines parameters for WmpRelayCorrespondentConnect.

type WmpRelayCorrespondentConnectParams struct {
WalletId string `json:"wallet-id"`
}

type WmpRelayCorrespondentConnectResponse​

type WmpRelayCorrespondentConnectResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpEntityRecord
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseWmpRelayCorrespondentConnectResponse​

func ParseWmpRelayCorrespondentConnectResponse(rsp *http.Response) (*WmpRelayCorrespondentConnectResponse, error)

ParseWmpRelayCorrespondentConnectResponse parses an HTTP response from a WmpRelayCorrespondentConnectWithResponse call

func (WmpRelayCorrespondentConnectResponse) ContentType​

func (r WmpRelayCorrespondentConnectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpRelayCorrespondentConnectResponse) GetBody​

func (r WmpRelayCorrespondentConnectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpRelayCorrespondentConnectResponse) GetJSON200​

func (r WmpRelayCorrespondentConnectResponse) GetJSON200() *WmpEntityRecord

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpRelayCorrespondentConnectResponse) GetJSON400​

func (r WmpRelayCorrespondentConnectResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpRelayCorrespondentConnectResponse) GetJSON404​

func (r WmpRelayCorrespondentConnectResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpRelayCorrespondentConnectResponse) GetJSON422​

func (r WmpRelayCorrespondentConnectResponse) GetJSON422() *Error

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (WmpRelayCorrespondentConnectResponse) GetJSON500​

func (r WmpRelayCorrespondentConnectResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpRelayCorrespondentConnectResponse) GetJSON502​

func (r WmpRelayCorrespondentConnectResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (WmpRelayCorrespondentConnectResponse) Status​

func (r WmpRelayCorrespondentConnectResponse) Status() string

Status returns HTTPResponse.Status

func (WmpRelayCorrespondentConnectResponse) StatusCode​

func (r WmpRelayCorrespondentConnectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpRelayCorrespondentRequest​

WmpRelayCorrespondentRequest defines model for WmpRelayCorrespondentRequest.

type WmpRelayCorrespondentRequest struct {
// CredentialId The wallet's EBWOID credential. The wallet presents it to the correspondent as an identity assertion
// on its first `wmp.message.deliver` (CS-15 §13); a different one is presented again on the next message.
// Omitted: the one given on an earlier connect is kept, if any. Empty: no identity assertion is sent. A
// credential that cannot be presented fails the message until another one, or an empty one, is given.
CredentialId *string `json:"credentialId,omitempty"`

// Force Connect even when the QTSP reports the participant as not QERDS-capable.
Force *bool `json:"force,omitempty"`

// ParticipantId The correspondent's ebCore identifier.
ParticipantId string `json:"participantId"`
}

type WmpRelayDeleteParams​

WmpRelayDeleteParams defines parameters for WmpRelayDelete.

type WmpRelayDeleteParams struct {
WalletId string `json:"wallet-id"`
}

type WmpRelayDeleteResponse​

type WmpRelayDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpRelayDeleteResponse​

func ParseWmpRelayDeleteResponse(rsp *http.Response) (*WmpRelayDeleteResponse, error)

ParseWmpRelayDeleteResponse parses an HTTP response from a WmpRelayDeleteWithResponse call

func (WmpRelayDeleteResponse) ContentType​

func (r WmpRelayDeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpRelayDeleteResponse) GetBody​

func (r WmpRelayDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpRelayDeleteResponse) GetJSON404​

func (r WmpRelayDeleteResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpRelayDeleteResponse) GetJSON500​

func (r WmpRelayDeleteResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpRelayDeleteResponse) Status​

func (r WmpRelayDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (WmpRelayDeleteResponse) StatusCode​

func (r WmpRelayDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpRelayGetParams​

WmpRelayGetParams defines parameters for WmpRelayGet.

type WmpRelayGetParams struct {
WalletId string `json:"wallet-id"`
}

type WmpRelayGetResponse​

type WmpRelayGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpRelayAccount
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}

func ParseWmpRelayGetResponse​

func ParseWmpRelayGetResponse(rsp *http.Response) (*WmpRelayGetResponse, error)

ParseWmpRelayGetResponse parses an HTTP response from a WmpRelayGetWithResponse call

func (WmpRelayGetResponse) ContentType​

func (r WmpRelayGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpRelayGetResponse) GetBody​

func (r WmpRelayGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpRelayGetResponse) GetJSON200​

func (r WmpRelayGetResponse) GetJSON200() *WmpRelayAccount

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpRelayGetResponse) GetJSON404​

func (r WmpRelayGetResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpRelayGetResponse) GetJSON500​

func (r WmpRelayGetResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpRelayGetResponse) Status​

func (r WmpRelayGetResponse) Status() string

Status returns HTTPResponse.Status

func (WmpRelayGetResponse) StatusCode​

func (r WmpRelayGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpRelayOnboardingCompleteJSONRequestBody​

WmpRelayOnboardingCompleteJSONRequestBody defines body for WmpRelayOnboardingComplete for application/json ContentType.

type WmpRelayOnboardingCompleteJSONRequestBody = WmpRelayOnboardingResult

type WmpRelayOnboardingCompleteParams​

WmpRelayOnboardingCompleteParams defines parameters for WmpRelayOnboardingComplete.

type WmpRelayOnboardingCompleteParams struct {
WalletId string `json:"wallet-id"`
}

type WmpRelayOnboardingCompleteResponse​

type WmpRelayOnboardingCompleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpRelayAccount
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseWmpRelayOnboardingCompleteResponse​

func ParseWmpRelayOnboardingCompleteResponse(rsp *http.Response) (*WmpRelayOnboardingCompleteResponse, error)

ParseWmpRelayOnboardingCompleteResponse parses an HTTP response from a WmpRelayOnboardingCompleteWithResponse call

func (WmpRelayOnboardingCompleteResponse) ContentType​

func (r WmpRelayOnboardingCompleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpRelayOnboardingCompleteResponse) GetBody​

func (r WmpRelayOnboardingCompleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpRelayOnboardingCompleteResponse) GetJSON200​

func (r WmpRelayOnboardingCompleteResponse) GetJSON200() *WmpRelayAccount

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpRelayOnboardingCompleteResponse) GetJSON400​

func (r WmpRelayOnboardingCompleteResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpRelayOnboardingCompleteResponse) GetJSON404​

func (r WmpRelayOnboardingCompleteResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpRelayOnboardingCompleteResponse) GetJSON422​

func (r WmpRelayOnboardingCompleteResponse) GetJSON422() *Error

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (WmpRelayOnboardingCompleteResponse) GetJSON500​

func (r WmpRelayOnboardingCompleteResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpRelayOnboardingCompleteResponse) GetJSON502​

func (r WmpRelayOnboardingCompleteResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (WmpRelayOnboardingCompleteResponse) Status​

func (r WmpRelayOnboardingCompleteResponse) Status() string

Status returns HTTPResponse.Status

func (WmpRelayOnboardingCompleteResponse) StatusCode​

func (r WmpRelayOnboardingCompleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpRelayOnboardingRequest​

WmpRelayOnboardingRequest defines model for WmpRelayOnboardingRequest.

type WmpRelayOnboardingRequest struct {
// QtspUrl Base URL of the QTSP; its discovery document is at `/.well-known/wmp-configuration`.
QtspUrl string `json:"qtspUrl"`

// SubscriberId The ebCore identifier to onboard as (`ebcore:iso6523:<icd>:<id>`). Default: the wallet's
// `wmpParticipantId`.
SubscriberId *string `json:"subscriberId,omitempty"`
}

type WmpRelayOnboardingResult​

WmpRelayOnboardingResult The onboarding result a QTSP answers the onboarding presentation with (CS-15 §8.5).

type WmpRelayOnboardingResult struct {
// Certificate PEM Subscriber certificate.
Certificate string `json:"certificate"`

// CertificateChain PEM CA certificates of the Subscriber certificate, issuer first.
CertificateChain *[]string `json:"certificate_chain,omitempty"`

// RegisteredAt When the Subscriber was registered (RFC 3339).
RegisteredAt *string `json:"registered_at,omitempty"`

// SmpUrl The Subscriber's SMP record.
SmpUrl *string `json:"smp_url,omitempty"`

// SubscriberId The registered ebCore identifier; it must be the one onboarding started for.
SubscriberId *string `json:"subscriber_id,omitempty"`
}

type WmpRelayOnboardingStartJSONRequestBody​

WmpRelayOnboardingStartJSONRequestBody defines body for WmpRelayOnboardingStart for application/json ContentType.

type WmpRelayOnboardingStartJSONRequestBody = WmpRelayOnboardingRequest

type WmpRelayOnboardingStartParams​

WmpRelayOnboardingStartParams defines parameters for WmpRelayOnboardingStart.

type WmpRelayOnboardingStartParams struct {
WalletId string `json:"wallet-id"`
}

type WmpRelayOnboardingStartResponse​

type WmpRelayOnboardingStartResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpRelayOnboardingStarted
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseWmpRelayOnboardingStartResponse​

func ParseWmpRelayOnboardingStartResponse(rsp *http.Response) (*WmpRelayOnboardingStartResponse, error)

ParseWmpRelayOnboardingStartResponse parses an HTTP response from a WmpRelayOnboardingStartWithResponse call

func (WmpRelayOnboardingStartResponse) ContentType​

func (r WmpRelayOnboardingStartResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpRelayOnboardingStartResponse) GetBody​

func (r WmpRelayOnboardingStartResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpRelayOnboardingStartResponse) GetJSON200​

func (r WmpRelayOnboardingStartResponse) GetJSON200() *WmpRelayOnboardingStarted

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpRelayOnboardingStartResponse) GetJSON400​

func (r WmpRelayOnboardingStartResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpRelayOnboardingStartResponse) GetJSON409​

func (r WmpRelayOnboardingStartResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (WmpRelayOnboardingStartResponse) GetJSON500​

func (r WmpRelayOnboardingStartResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpRelayOnboardingStartResponse) GetJSON502​

func (r WmpRelayOnboardingStartResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (WmpRelayOnboardingStartResponse) Status​

func (r WmpRelayOnboardingStartResponse) Status() string

Status returns HTTPResponse.Status

func (WmpRelayOnboardingStartResponse) StatusCode​

func (r WmpRelayOnboardingStartResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpRelayOnboardingStarted​

WmpRelayOnboardingStarted defines model for WmpRelayOnboardingStarted.

type WmpRelayOnboardingStarted struct {
// AuthorizationRequest The QTSP's OpenID4VP authorization request, to present the organisation credential to.
AuthorizationRequest string `json:"authorizationRequest"`
OnboardingId string `json:"onboardingId"`
}

type WmpRelayRegistrationCompleteJSONRequestBody​

WmpRelayRegistrationCompleteJSONRequestBody defines body for WmpRelayRegistrationComplete for application/json ContentType.

type WmpRelayRegistrationCompleteJSONRequestBody = WmpRelayCertificate

type WmpRelayRegistrationCompleteParams​

WmpRelayRegistrationCompleteParams defines parameters for WmpRelayRegistrationComplete.

type WmpRelayRegistrationCompleteParams struct {
WalletId string `json:"wallet-id"`
}

type WmpRelayRegistrationCompleteResponse​

type WmpRelayRegistrationCompleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpRelayAccount
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseWmpRelayRegistrationCompleteResponse​

func ParseWmpRelayRegistrationCompleteResponse(rsp *http.Response) (*WmpRelayRegistrationCompleteResponse, error)

ParseWmpRelayRegistrationCompleteResponse parses an HTTP response from a WmpRelayRegistrationCompleteWithResponse call

func (WmpRelayRegistrationCompleteResponse) ContentType​

func (r WmpRelayRegistrationCompleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpRelayRegistrationCompleteResponse) GetBody​

func (r WmpRelayRegistrationCompleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpRelayRegistrationCompleteResponse) GetJSON200​

func (r WmpRelayRegistrationCompleteResponse) GetJSON200() *WmpRelayAccount

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpRelayRegistrationCompleteResponse) GetJSON400​

func (r WmpRelayRegistrationCompleteResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpRelayRegistrationCompleteResponse) GetJSON404​

func (r WmpRelayRegistrationCompleteResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpRelayRegistrationCompleteResponse) GetJSON409​

func (r WmpRelayRegistrationCompleteResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (WmpRelayRegistrationCompleteResponse) GetJSON422​

func (r WmpRelayRegistrationCompleteResponse) GetJSON422() *Error

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (WmpRelayRegistrationCompleteResponse) GetJSON500​

func (r WmpRelayRegistrationCompleteResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpRelayRegistrationCompleteResponse) GetJSON502​

func (r WmpRelayRegistrationCompleteResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (WmpRelayRegistrationCompleteResponse) Status​

func (r WmpRelayRegistrationCompleteResponse) Status() string

Status returns HTTPResponse.Status

func (WmpRelayRegistrationCompleteResponse) StatusCode​

func (r WmpRelayRegistrationCompleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpRelayRegistrationStartJSONRequestBody​

WmpRelayRegistrationStartJSONRequestBody defines body for WmpRelayRegistrationStart for application/json ContentType.

type WmpRelayRegistrationStartJSONRequestBody = WmpRelayOnboardingRequest

type WmpRelayRegistrationStartParams​

WmpRelayRegistrationStartParams defines parameters for WmpRelayRegistrationStart.

type WmpRelayRegistrationStartParams struct {
WalletId string `json:"wallet-id"`
}

type WmpRelayRegistrationStartResponse​

type WmpRelayRegistrationStartResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpRelayRegistrationStarted
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequestError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseWmpRelayRegistrationStartResponse​

func ParseWmpRelayRegistrationStartResponse(rsp *http.Response) (*WmpRelayRegistrationStartResponse, error)

ParseWmpRelayRegistrationStartResponse parses an HTTP response from a WmpRelayRegistrationStartWithResponse call

func (WmpRelayRegistrationStartResponse) ContentType​

func (r WmpRelayRegistrationStartResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpRelayRegistrationStartResponse) GetBody​

func (r WmpRelayRegistrationStartResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpRelayRegistrationStartResponse) GetJSON200​

func (r WmpRelayRegistrationStartResponse) GetJSON200() *WmpRelayRegistrationStarted

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpRelayRegistrationStartResponse) GetJSON400​

func (r WmpRelayRegistrationStartResponse) GetJSON400() *BadRequestError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WmpRelayRegistrationStartResponse) GetJSON409​

func (r WmpRelayRegistrationStartResponse) GetJSON409() *Error

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (WmpRelayRegistrationStartResponse) GetJSON500​

func (r WmpRelayRegistrationStartResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpRelayRegistrationStartResponse) GetJSON502​

func (r WmpRelayRegistrationStartResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (WmpRelayRegistrationStartResponse) Status​

func (r WmpRelayRegistrationStartResponse) Status() string

Status returns HTTPResponse.Status

func (WmpRelayRegistrationStartResponse) StatusCode​

func (r WmpRelayRegistrationStartResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpRelayRegistrationStarted​

WmpRelayRegistrationStarted defines model for WmpRelayRegistrationStarted.

type WmpRelayRegistrationStarted struct {
// Csr PEM certificate signing request of the Subscriber key, for the QTSP to certify.
Csr string `json:"csr"`

// SubscriberId The ebCore identifier the CSR names (subject CN and SAN URI).
SubscriberId string `json:"subscriberId"`
}

type WmpRelayRotateParams​

WmpRelayRotateParams defines parameters for WmpRelayRotate.

type WmpRelayRotateParams struct {
WalletId string `json:"wallet-id"`
}

type WmpRelayRotateResponse​

type WmpRelayRotateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WmpRelayAccount
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFoundError
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *Error
}

func ParseWmpRelayRotateResponse​

func ParseWmpRelayRotateResponse(rsp *http.Response) (*WmpRelayRotateResponse, error)

ParseWmpRelayRotateResponse parses an HTTP response from a WmpRelayRotateWithResponse call

func (WmpRelayRotateResponse) ContentType​

func (r WmpRelayRotateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WmpRelayRotateResponse) GetBody​

func (r WmpRelayRotateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WmpRelayRotateResponse) GetJSON200​

func (r WmpRelayRotateResponse) GetJSON200() *WmpRelayAccount

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (WmpRelayRotateResponse) GetJSON404​

func (r WmpRelayRotateResponse) GetJSON404() *NotFoundError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WmpRelayRotateResponse) GetJSON500​

func (r WmpRelayRotateResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WmpRelayRotateResponse) GetJSON502​

func (r WmpRelayRotateResponse) GetJSON502() *Error

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (WmpRelayRotateResponse) Status​

func (r WmpRelayRotateResponse) Status() string

Status returns HTTPResponse.Status

func (WmpRelayRotateResponse) StatusCode​

func (r WmpRelayRotateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WmpRelayStatusNotification​

WmpRelayStatusNotification defines model for WmpRelayStatusNotification.

type WmpRelayStatusNotification struct {
Detail *string `json:"detail,omitempty"`
Status WmpRelayStatusNotificationStatus `json:"status"`
}

type WmpRelayStatusNotificationStatus​

WmpRelayStatusNotificationStatus defines model for WmpRelayStatusNotification.Status.

type WmpRelayStatusNotificationStatus string

Defines values for WmpRelayStatusNotificationStatus.

const (
CertificateExpiring WmpRelayStatusNotificationStatus = "certificate_expiring"
Connected WmpRelayStatusNotificationStatus = "connected"
Disconnected WmpRelayStatusNotificationStatus = "disconnected"
KeyPackagesEmpty WmpRelayStatusNotificationStatus = "key_packages_empty"
KeyPackagesLow WmpRelayStatusNotificationStatus = "key_packages_low"
)

func (WmpRelayStatusNotificationStatus) Valid​

func (e WmpRelayStatusNotificationStatus) Valid() bool

Valid indicates whether the value is a known member of the WmpRelayStatusNotificationStatus enum.

type WmpRequest​

WmpRequest defines model for WmpRequest.

type WmpRequest struct {
RequestUrl string `json:"requestUrl"`
Type WmpRequestType `json:"type"`
}

type WmpRequestType​

WmpRequestType defines model for WmpRequestType.

type WmpRequestType string

Defines values for WmpRequestType.

const (
CredentialOffer WmpRequestType = "credentialOffer"
CredentialVerificationRequest WmpRequestType = "credentialVerificationRequest"
)

func (WmpRequestType) Valid​

func (e WmpRequestType) Valid() bool

Valid indicates whether the value is a known member of the WmpRequestType enum.

type XadesSignatureType​

XadesSignatureType defines model for XadesSignatureType.

type XadesSignatureType string

Defines values for XadesSignatureType.

const (
Tsl XadesSignatureType = "tsl"
Xml XadesSignatureType = "xml"
)

func (XadesSignatureType) Valid​

func (e XadesSignatureType) Valid() bool

Valid indicates whether the value is a known member of the XadesSignatureType enum.

Generated by gomarkdoc