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/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.

Index​

Constants​

const (
AuthenticationTypeOAuth = "oauth"
AuthenticationTypeNone = "none"
)
const (
AccessTokenScopes = "accessToken.Scopes"
)

func NewAccreditAsTrustedIssuerRequest​

func NewAccreditAsTrustedIssuerRequest(server string, params *AccreditAsTrustedIssuerParams) (*http.Request, error)

NewAccreditAsTrustedIssuerRequest generates requests for AccreditAsTrustedIssuer

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 generates requests for CredentialCreate with any type of body

func NewCredentialGetRequest​

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

NewCredentialGetRequest generates requests for CredentialGet

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 generates requests for CredentialImport with any type of body

func NewCredentialListRequest​

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

NewCredentialListRequest generates requests for CredentialList

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 generates requests for CredentialMetadataPatch with any type of body

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 generates requests for CredentialPatch with any type of body

func NewCredentialRequestRequest​

func NewCredentialRequestRequest(server string, params *CredentialRequestParams, body CredentialRequestJSONRequestBody) (*http.Request, error)

NewCredentialRequestRequest calls the generic CredentialRequest builder with application/json body

func NewCredentialRequestRequestWithBody​

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

NewCredentialRequestRequestWithBody generates requests for CredentialRequest with any type of body

func NewDeferredStatusRequest​

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

NewDeferredStatusRequest generates requests for DeferredStatus

func NewGetCurrentDidRequest​

func NewGetCurrentDidRequest(server string, params *GetCurrentDidParams) (*http.Request, error)

NewGetCurrentDidRequest generates requests for GetCurrentDid

func NewHealthCheckRequest​

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

NewHealthCheckRequest generates requests for HealthCheck

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 generates requests for HolderCreateAuthOffer with any type of body

func NewIssuerCredentialTypesListRequest​

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

NewIssuerCredentialTypesListRequest generates requests for IssuerCredentialTypesList

func NewOidcAcceptOfferRequest​

func NewOidcAcceptOfferRequest(server string, params *OidcAcceptOfferParams, body OidcAcceptOfferJSONRequestBody) (*http.Request, error)

NewOidcAcceptOfferRequest calls the generic OidcAcceptOffer builder with application/json body

func NewOidcAcceptOfferRequestWithBody​

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

NewOidcAcceptOfferRequestWithBody generates requests for OidcAcceptOffer with any type of body

func NewOidcAddCredToIssuanceQueueRequest​

func NewOidcAddCredToIssuanceQueueRequest(server string, credentialId string, params *OidcAddCredToIssuanceQueueParams, body OidcAddCredToIssuanceQueueJSONRequestBody) (*http.Request, error)

NewOidcAddCredToIssuanceQueueRequest calls the generic OidcAddCredToIssuanceQueue builder with application/json body

func NewOidcAddCredToIssuanceQueueRequestWithBody​

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

NewOidcAddCredToIssuanceQueueRequestWithBody generates requests for OidcAddCredToIssuanceQueue with any type of body

func NewOidcCreateIdTokenRequestRequest​

func NewOidcCreateIdTokenRequestRequest(server string, params *OidcCreateIdTokenRequestParams) (*http.Request, error)

NewOidcCreateIdTokenRequestRequest generates requests for OidcCreateIdTokenRequest

func NewOidcInitiateDeferredRequest​

func NewOidcInitiateDeferredRequest(server string, params *OidcInitiateDeferredParams, body OidcInitiateDeferredJSONRequestBody) (*http.Request, error)

NewOidcInitiateDeferredRequest calls the generic OidcInitiateDeferred builder with application/json body

func NewOidcInitiateDeferredRequestWithBody​

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

NewOidcInitiateDeferredRequestWithBody generates requests for OidcInitiateDeferred with any type of body

func NewOidcInitiateIntimeRequest​

func NewOidcInitiateIntimeRequest(server string, params *OidcInitiateIntimeParams, body OidcInitiateIntimeJSONRequestBody) (*http.Request, error)

NewOidcInitiateIntimeRequest calls the generic OidcInitiateIntime builder with application/json body

func NewOidcInitiateIntimeRequestWithBody​

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

NewOidcInitiateIntimeRequestWithBody generates requests for OidcInitiateIntime with any type of body

func NewOidcInitiatePreauthRequest​

func NewOidcInitiatePreauthRequest(server string, params *OidcInitiatePreauthParams, body OidcInitiatePreauthJSONRequestBody) (*http.Request, error)

NewOidcInitiatePreauthRequest calls the generic OidcInitiatePreauth builder with application/json body

func NewOidcInitiatePreauthRequestWithBody​

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

NewOidcInitiatePreauthRequestWithBody generates requests for OidcInitiatePreauth with any type of body

func NewOidcPresentCredentialsRequest​

func NewOidcPresentCredentialsRequest(server string, params *OidcPresentCredentialsParams, body OidcPresentCredentialsJSONRequestBody) (*http.Request, error)

NewOidcPresentCredentialsRequest calls the generic OidcPresentCredentials builder with application/json body

func NewOidcPresentCredentialsRequestWithBody​

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

NewOidcPresentCredentialsRequestWithBody generates requests for OidcPresentCredentials with any type of body

func NewOidcSendIdTokenRequest​

func NewOidcSendIdTokenRequest(server string, params *OidcSendIdTokenParams, body OidcSendIdTokenJSONRequestBody) (*http.Request, error)

NewOidcSendIdTokenRequest calls the generic OidcSendIdToken builder with application/json body

func NewOidcSendIdTokenRequestWithBody​

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

NewOidcSendIdTokenRequestWithBody generates requests for OidcSendIdToken with any type of body

func NewOidcVerifyInitUrlRequest​

func NewOidcVerifyInitUrlRequest(server string, params *OidcVerifyInitUrlParams, body OidcVerifyInitUrlJSONRequestBody) (*http.Request, error)

NewOidcVerifyInitUrlRequest calls the generic OidcVerifyInitUrl builder with application/json body

func NewOidcVerifyInitUrlRequestWithBody​

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

NewOidcVerifyInitUrlRequestWithBody generates requests for OidcVerifyInitUrl with any type of body

func NewOnboardLegalEntityRequest​

func NewOnboardLegalEntityRequest(server string, params *OnboardLegalEntityParams) (*http.Request, error)

NewOnboardLegalEntityRequest generates requests for OnboardLegalEntity

func NewWalletGetRequest​

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

NewWalletGetRequest generates requests for WalletGet

func NewWalletListRequest​

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

NewWalletListRequest generates requests for WalletList

func NewWalletNotificationsRequest​

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

NewWalletNotificationsRequest generates requests for WalletNotifications

func NewWalletSaveRequest​

func NewWalletSaveRequest(server string, params *WalletSaveParams, body WalletSaveJSONRequestBody) (*http.Request, error)

NewWalletSaveRequest calls the generic WalletSave builder with application/json body

func NewWalletSaveRequestWithBody​

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

NewWalletSaveRequestWithBody generates requests for WalletSave with any type of body

type AccreditAsTrustedIssuerParams​

AccreditAsTrustedIssuerParams defines parameters for AccreditAsTrustedIssuer.

type AccreditAsTrustedIssuerParams struct {
WalletId string `json:"wallet-id"`
}

type AccreditAsTrustedIssuerResponse​

type AccreditAsTrustedIssuerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON500 *Error
}

func ParseAccreditAsTrustedIssuerResponse​

func ParseAccreditAsTrustedIssuerResponse(rsp *http.Response) (*AccreditAsTrustedIssuerResponse, error)

ParseAccreditAsTrustedIssuerResponse parses an HTTP response from a AccreditAsTrustedIssuerWithResponse call

func (AccreditAsTrustedIssuerResponse) Status​

func (r AccreditAsTrustedIssuerResponse) Status() string

Status returns HTTPResponse.Status

func (AccreditAsTrustedIssuerResponse) StatusCode​

func (r AccreditAsTrustedIssuerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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"`
State string `json:"state"`
}

type AuthenticationOAuth​

type AuthenticationOAuth struct {
TokenUrl string `yaml:"tokenUrl"`
ClientId string `yaml:"clientId"`
ClientSecret string `yaml:"clientSecret"`
}

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) AccreditAsTrustedIssuer​

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

func (*Client) CredentialCreate​

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

func (*Client) CredentialCreateWithBody​

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

func (*Client) CredentialGet​

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

func (*Client) CredentialImport​

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

func (*Client) CredentialImportWithBody​

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

func (*Client) CredentialList​

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

func (*Client) CredentialMetadataPatch​

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

func (*Client) CredentialMetadataPatchWithBody​

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

func (*Client) CredentialPatch​

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

func (*Client) CredentialPatchWithBody​

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

func (*Client) CredentialRequest​

func (c *Client) CredentialRequest(ctx context.Context, params *CredentialRequestParams, body CredentialRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CredentialRequestWithBody​

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

func (*Client) DeferredStatus​

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

func (*Client) GetCurrentDid​

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

func (*Client) HealthCheck​

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

func (*Client) HolderCreateAuthOffer​

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

func (*Client) HolderCreateAuthOfferWithBody​

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

func (*Client) IssuerCredentialTypesList​

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

func (*Client) OidcAcceptOffer​

func (c *Client) OidcAcceptOffer(ctx context.Context, params *OidcAcceptOfferParams, body OidcAcceptOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OidcAcceptOfferWithBody​

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

func (*Client) OidcAddCredToIssuanceQueue​

func (c *Client) OidcAddCredToIssuanceQueue(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, body OidcAddCredToIssuanceQueueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OidcAddCredToIssuanceQueueWithBody​

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

func (*Client) OidcCreateIdTokenRequest​

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

func (*Client) OidcInitiateDeferred​

func (c *Client) OidcInitiateDeferred(ctx context.Context, params *OidcInitiateDeferredParams, body OidcInitiateDeferredJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OidcInitiateDeferredWithBody​

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

func (*Client) OidcInitiateIntime​

func (c *Client) OidcInitiateIntime(ctx context.Context, params *OidcInitiateIntimeParams, body OidcInitiateIntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OidcInitiateIntimeWithBody​

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

func (*Client) OidcInitiatePreauth​

func (c *Client) OidcInitiatePreauth(ctx context.Context, params *OidcInitiatePreauthParams, body OidcInitiatePreauthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OidcInitiatePreauthWithBody​

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

func (*Client) OidcPresentCredentials​

func (c *Client) OidcPresentCredentials(ctx context.Context, params *OidcPresentCredentialsParams, body OidcPresentCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OidcPresentCredentialsWithBody​

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

func (*Client) OidcSendIdToken​

func (c *Client) OidcSendIdToken(ctx context.Context, params *OidcSendIdTokenParams, body OidcSendIdTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OidcSendIdTokenWithBody​

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

func (*Client) OidcVerifyInitUrl​

func (c *Client) OidcVerifyInitUrl(ctx context.Context, params *OidcVerifyInitUrlParams, body OidcVerifyInitUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OidcVerifyInitUrlWithBody​

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

func (*Client) OnboardLegalEntity​

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

func (*Client) WalletGet​

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

func (*Client) WalletList​

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

func (*Client) WalletNotifications​

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

func (*Client) WalletSave​

func (c *Client) WalletSave(ctx context.Context, params *WalletSaveParams, body WalletSaveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) WalletSaveWithBody​

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

type ClientInterface​

The interface specification for the client above.

type ClientInterface interface {
// CredentialList request
CredentialList(ctx context.Context, params *CredentialListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialCreateWithBody request with any body
CredentialCreateWithBody(ctx context.Context, params *CredentialCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

// CredentialImportWithBody request with any body
CredentialImportWithBody(ctx context.Context, params *CredentialImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

// CredentialRequestWithBody request with any body
CredentialRequestWithBody(ctx context.Context, params *CredentialRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CredentialRequest(ctx context.Context, params *CredentialRequestParams, body CredentialRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialGet request
CredentialGet(ctx context.Context, credentialId CredentialId, params *CredentialGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialPatchWithBody request with any body
CredentialPatchWithBody(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

// OidcAddCredToIssuanceQueueWithBody request with any body
OidcAddCredToIssuanceQueueWithBody(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

OidcAddCredToIssuanceQueue(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, body OidcAddCredToIssuanceQueueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// CredentialMetadataPatchWithBody request with any body
CredentialMetadataPatchWithBody(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

// DeferredStatus request
DeferredStatus(ctx context.Context, deferredId string, params *DeferredStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// GetCurrentDid request
GetCurrentDid(ctx context.Context, params *GetCurrentDidParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// HealthCheck request
HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

// OidcSendIdTokenWithBody request with any body
OidcSendIdTokenWithBody(ctx context.Context, params *OidcSendIdTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

OidcSendIdToken(ctx context.Context, params *OidcSendIdTokenParams, body OidcSendIdTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// OidcAcceptOfferWithBody request with any body
OidcAcceptOfferWithBody(ctx context.Context, params *OidcAcceptOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

OidcAcceptOffer(ctx context.Context, params *OidcAcceptOfferParams, body OidcAcceptOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// OidcCreateIdTokenRequest request
OidcCreateIdTokenRequest(ctx context.Context, params *OidcCreateIdTokenRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// IssuerCredentialTypesList request
IssuerCredentialTypesList(ctx context.Context, params *IssuerCredentialTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// OidcInitiateDeferredWithBody request with any body
OidcInitiateDeferredWithBody(ctx context.Context, params *OidcInitiateDeferredParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

OidcInitiateDeferred(ctx context.Context, params *OidcInitiateDeferredParams, body OidcInitiateDeferredJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// OidcInitiateIntimeWithBody request with any body
OidcInitiateIntimeWithBody(ctx context.Context, params *OidcInitiateIntimeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

OidcInitiateIntime(ctx context.Context, params *OidcInitiateIntimeParams, body OidcInitiateIntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// OidcInitiatePreauthWithBody request with any body
OidcInitiatePreauthWithBody(ctx context.Context, params *OidcInitiatePreauthParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

OidcInitiatePreauth(ctx context.Context, params *OidcInitiatePreauthParams, body OidcInitiatePreauthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// HolderCreateAuthOfferWithBody request with any body
HolderCreateAuthOfferWithBody(ctx context.Context, params *HolderCreateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

// OidcPresentCredentialsWithBody request with any body
OidcPresentCredentialsWithBody(ctx context.Context, params *OidcPresentCredentialsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

OidcPresentCredentials(ctx context.Context, params *OidcPresentCredentialsParams, body OidcPresentCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// OidcVerifyInitUrlWithBody request with any body
OidcVerifyInitUrlWithBody(ctx context.Context, params *OidcVerifyInitUrlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

OidcVerifyInitUrl(ctx context.Context, params *OidcVerifyInitUrlParams, body OidcVerifyInitUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletList request
WalletList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletSaveWithBody request with any body
WalletSaveWithBody(ctx context.Context, params *WalletSaveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WalletSave(ctx context.Context, params *WalletSaveParams, body WalletSaveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

// AccreditAsTrustedIssuer request
AccreditAsTrustedIssuer(ctx context.Context, params *AccreditAsTrustedIssuerParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletGet request
WalletGet(ctx context.Context, params *WalletGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// OnboardLegalEntity request
OnboardLegalEntity(ctx context.Context, params *OnboardLegalEntityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

// WalletNotifications request
WalletNotifications(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.

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) AccreditAsTrustedIssuerWithResponse​

func (c *ClientWithResponses) AccreditAsTrustedIssuerWithResponse(ctx context.Context, params *AccreditAsTrustedIssuerParams, reqEditors ...RequestEditorFn) (*AccreditAsTrustedIssuerResponse, error)

AccreditAsTrustedIssuerWithResponse request returning *AccreditAsTrustedIssuerResponse

func (*ClientWithResponses) CredentialCreateWithBodyWithResponse​

func (c *ClientWithResponses) CredentialCreateWithBodyWithResponse(ctx context.Context, params *CredentialCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)

CredentialCreateWithBodyWithResponse request with arbitrary body returning *CredentialCreateResponse

func (*ClientWithResponses) CredentialCreateWithResponse​

func (c *ClientWithResponses) CredentialCreateWithResponse(ctx context.Context, params *CredentialCreateParams, body CredentialCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)

func (*ClientWithResponses) CredentialGetWithResponse​

func (c *ClientWithResponses) CredentialGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialGetParams, reqEditors ...RequestEditorFn) (*CredentialGetResponse, error)

CredentialGetWithResponse request returning *CredentialGetResponse

func (*ClientWithResponses) CredentialImportWithBodyWithResponse​

func (c *ClientWithResponses) CredentialImportWithBodyWithResponse(ctx context.Context, params *CredentialImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)

CredentialImportWithBodyWithResponse request with arbitrary body returning *CredentialImportResponse

func (*ClientWithResponses) CredentialImportWithResponse​

func (c *ClientWithResponses) CredentialImportWithResponse(ctx context.Context, params *CredentialImportParams, body CredentialImportJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)

func (*ClientWithResponses) CredentialListWithResponse​

func (c *ClientWithResponses) CredentialListWithResponse(ctx context.Context, params *CredentialListParams, reqEditors ...RequestEditorFn) (*CredentialListResponse, error)

CredentialListWithResponse request returning *CredentialListResponse

func (*ClientWithResponses) CredentialMetadataPatchWithBodyWithResponse​

func (c *ClientWithResponses) CredentialMetadataPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)

CredentialMetadataPatchWithBodyWithResponse request with arbitrary body returning *CredentialMetadataPatchResponse

func (*ClientWithResponses) CredentialMetadataPatchWithResponse​

func (c *ClientWithResponses) CredentialMetadataPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)

func (*ClientWithResponses) CredentialPatchWithBodyWithResponse​

func (c *ClientWithResponses) CredentialPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)

CredentialPatchWithBodyWithResponse request with arbitrary body returning *CredentialPatchResponse

func (*ClientWithResponses) CredentialPatchWithResponse​

func (c *ClientWithResponses) CredentialPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)

func (*ClientWithResponses) CredentialRequestWithBodyWithResponse​

func (c *ClientWithResponses) CredentialRequestWithBodyWithResponse(ctx context.Context, params *CredentialRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialRequestResponse, error)

CredentialRequestWithBodyWithResponse request with arbitrary body returning *CredentialRequestResponse

func (*ClientWithResponses) CredentialRequestWithResponse​

func (c *ClientWithResponses) CredentialRequestWithResponse(ctx context.Context, params *CredentialRequestParams, body CredentialRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialRequestResponse, error)

func (*ClientWithResponses) DeferredStatusWithResponse​

func (c *ClientWithResponses) DeferredStatusWithResponse(ctx context.Context, deferredId string, params *DeferredStatusParams, reqEditors ...RequestEditorFn) (*DeferredStatusResponse, error)

DeferredStatusWithResponse request returning *DeferredStatusResponse

func (*ClientWithResponses) GetCurrentDidWithResponse​

func (c *ClientWithResponses) GetCurrentDidWithResponse(ctx context.Context, params *GetCurrentDidParams, reqEditors ...RequestEditorFn) (*GetCurrentDidResponse, error)

GetCurrentDidWithResponse request returning *GetCurrentDidResponse

func (*ClientWithResponses) HealthCheckWithResponse​

func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

HealthCheckWithResponse request returning *HealthCheckResponse

func (*ClientWithResponses) HolderCreateAuthOfferWithBodyWithResponse​

func (c *ClientWithResponses) HolderCreateAuthOfferWithBodyWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)

HolderCreateAuthOfferWithBodyWithResponse request with arbitrary body returning *HolderCreateAuthOfferResponse

func (*ClientWithResponses) HolderCreateAuthOfferWithResponse​

func (c *ClientWithResponses) HolderCreateAuthOfferWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)

func (*ClientWithResponses) IssuerCredentialTypesListWithResponse​

func (c *ClientWithResponses) IssuerCredentialTypesListWithResponse(ctx context.Context, params *IssuerCredentialTypesListParams, reqEditors ...RequestEditorFn) (*IssuerCredentialTypesListResponse, error)

IssuerCredentialTypesListWithResponse request returning *IssuerCredentialTypesListResponse

func (*ClientWithResponses) OidcAcceptOfferWithBodyWithResponse​

func (c *ClientWithResponses) OidcAcceptOfferWithBodyWithResponse(ctx context.Context, params *OidcAcceptOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcAcceptOfferResponse, error)

OidcAcceptOfferWithBodyWithResponse request with arbitrary body returning *OidcAcceptOfferResponse

func (*ClientWithResponses) OidcAcceptOfferWithResponse​

func (c *ClientWithResponses) OidcAcceptOfferWithResponse(ctx context.Context, params *OidcAcceptOfferParams, body OidcAcceptOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcAcceptOfferResponse, error)

func (*ClientWithResponses) OidcAddCredToIssuanceQueueWithBodyWithResponse​

func (c *ClientWithResponses) OidcAddCredToIssuanceQueueWithBodyWithResponse(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcAddCredToIssuanceQueueResponse, error)

OidcAddCredToIssuanceQueueWithBodyWithResponse request with arbitrary body returning *OidcAddCredToIssuanceQueueResponse

func (*ClientWithResponses) OidcAddCredToIssuanceQueueWithResponse​

func (c *ClientWithResponses) OidcAddCredToIssuanceQueueWithResponse(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, body OidcAddCredToIssuanceQueueJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcAddCredToIssuanceQueueResponse, error)

func (*ClientWithResponses) OidcCreateIdTokenRequestWithResponse​

func (c *ClientWithResponses) OidcCreateIdTokenRequestWithResponse(ctx context.Context, params *OidcCreateIdTokenRequestParams, reqEditors ...RequestEditorFn) (*OidcCreateIdTokenRequestResponse, error)

OidcCreateIdTokenRequestWithResponse request returning *OidcCreateIdTokenRequestResponse

func (*ClientWithResponses) OidcInitiateDeferredWithBodyWithResponse​

func (c *ClientWithResponses) OidcInitiateDeferredWithBodyWithResponse(ctx context.Context, params *OidcInitiateDeferredParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcInitiateDeferredResponse, error)

OidcInitiateDeferredWithBodyWithResponse request with arbitrary body returning *OidcInitiateDeferredResponse

func (*ClientWithResponses) OidcInitiateDeferredWithResponse​

func (c *ClientWithResponses) OidcInitiateDeferredWithResponse(ctx context.Context, params *OidcInitiateDeferredParams, body OidcInitiateDeferredJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcInitiateDeferredResponse, error)

func (*ClientWithResponses) OidcInitiateIntimeWithBodyWithResponse​

func (c *ClientWithResponses) OidcInitiateIntimeWithBodyWithResponse(ctx context.Context, params *OidcInitiateIntimeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcInitiateIntimeResponse, error)

OidcInitiateIntimeWithBodyWithResponse request with arbitrary body returning *OidcInitiateIntimeResponse

func (*ClientWithResponses) OidcInitiateIntimeWithResponse​

func (c *ClientWithResponses) OidcInitiateIntimeWithResponse(ctx context.Context, params *OidcInitiateIntimeParams, body OidcInitiateIntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcInitiateIntimeResponse, error)

func (*ClientWithResponses) OidcInitiatePreauthWithBodyWithResponse​

func (c *ClientWithResponses) OidcInitiatePreauthWithBodyWithResponse(ctx context.Context, params *OidcInitiatePreauthParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcInitiatePreauthResponse, error)

OidcInitiatePreauthWithBodyWithResponse request with arbitrary body returning *OidcInitiatePreauthResponse

func (*ClientWithResponses) OidcInitiatePreauthWithResponse​

func (c *ClientWithResponses) OidcInitiatePreauthWithResponse(ctx context.Context, params *OidcInitiatePreauthParams, body OidcInitiatePreauthJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcInitiatePreauthResponse, error)

func (*ClientWithResponses) OidcPresentCredentialsWithBodyWithResponse​

func (c *ClientWithResponses) OidcPresentCredentialsWithBodyWithResponse(ctx context.Context, params *OidcPresentCredentialsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcPresentCredentialsResponse, error)

OidcPresentCredentialsWithBodyWithResponse request with arbitrary body returning *OidcPresentCredentialsResponse

func (*ClientWithResponses) OidcPresentCredentialsWithResponse​

func (c *ClientWithResponses) OidcPresentCredentialsWithResponse(ctx context.Context, params *OidcPresentCredentialsParams, body OidcPresentCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcPresentCredentialsResponse, error)

func (*ClientWithResponses) OidcSendIdTokenWithBodyWithResponse​

func (c *ClientWithResponses) OidcSendIdTokenWithBodyWithResponse(ctx context.Context, params *OidcSendIdTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcSendIdTokenResponse, error)

OidcSendIdTokenWithBodyWithResponse request with arbitrary body returning *OidcSendIdTokenResponse

func (*ClientWithResponses) OidcSendIdTokenWithResponse​

func (c *ClientWithResponses) OidcSendIdTokenWithResponse(ctx context.Context, params *OidcSendIdTokenParams, body OidcSendIdTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcSendIdTokenResponse, error)

func (*ClientWithResponses) OidcVerifyInitUrlWithBodyWithResponse​

func (c *ClientWithResponses) OidcVerifyInitUrlWithBodyWithResponse(ctx context.Context, params *OidcVerifyInitUrlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcVerifyInitUrlResponse, error)

OidcVerifyInitUrlWithBodyWithResponse request with arbitrary body returning *OidcVerifyInitUrlResponse

func (*ClientWithResponses) OidcVerifyInitUrlWithResponse​

func (c *ClientWithResponses) OidcVerifyInitUrlWithResponse(ctx context.Context, params *OidcVerifyInitUrlParams, body OidcVerifyInitUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcVerifyInitUrlResponse, error)

func (*ClientWithResponses) OnboardLegalEntityWithResponse​

func (c *ClientWithResponses) OnboardLegalEntityWithResponse(ctx context.Context, params *OnboardLegalEntityParams, reqEditors ...RequestEditorFn) (*OnboardLegalEntityResponse, error)

OnboardLegalEntityWithResponse request returning *OnboardLegalEntityResponse

func (*ClientWithResponses) WalletGetWithResponse​

func (c *ClientWithResponses) WalletGetWithResponse(ctx context.Context, params *WalletGetParams, reqEditors ...RequestEditorFn) (*WalletGetResponse, error)

WalletGetWithResponse request returning *WalletGetResponse

func (*ClientWithResponses) WalletListWithResponse​

func (c *ClientWithResponses) WalletListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WalletListResponse, error)

WalletListWithResponse request returning *WalletListResponse

func (*ClientWithResponses) WalletNotificationsWithResponse​

func (c *ClientWithResponses) WalletNotificationsWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletNotificationsResponse, error)

WalletNotificationsWithResponse request returning *WalletNotificationsResponse

func (*ClientWithResponses) WalletSaveWithBodyWithResponse​

func (c *ClientWithResponses) WalletSaveWithBodyWithResponse(ctx context.Context, params *WalletSaveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletSaveResponse, error)

WalletSaveWithBodyWithResponse request with arbitrary body returning *WalletSaveResponse

func (*ClientWithResponses) WalletSaveWithResponse​

func (c *ClientWithResponses) WalletSaveWithResponse(ctx context.Context, params *WalletSaveParams, body WalletSaveJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletSaveResponse, error)

type ClientWithResponsesInterface​

ClientWithResponsesInterface is the interface specification for the client with responses above.

type ClientWithResponsesInterface interface {
// CredentialListWithResponse request
CredentialListWithResponse(ctx context.Context, params *CredentialListParams, reqEditors ...RequestEditorFn) (*CredentialListResponse, error)

// CredentialCreateWithBodyWithResponse request with any body
CredentialCreateWithBodyWithResponse(ctx context.Context, params *CredentialCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)

CredentialCreateWithResponse(ctx context.Context, params *CredentialCreateParams, body CredentialCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)

// CredentialImportWithBodyWithResponse request with any body
CredentialImportWithBodyWithResponse(ctx context.Context, params *CredentialImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)

CredentialImportWithResponse(ctx context.Context, params *CredentialImportParams, body CredentialImportJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)

// CredentialRequestWithBodyWithResponse request with any body
CredentialRequestWithBodyWithResponse(ctx context.Context, params *CredentialRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialRequestResponse, error)

CredentialRequestWithResponse(ctx context.Context, params *CredentialRequestParams, body CredentialRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialRequestResponse, error)

// CredentialGetWithResponse request
CredentialGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialGetParams, reqEditors ...RequestEditorFn) (*CredentialGetResponse, error)

// CredentialPatchWithBodyWithResponse request with any body
CredentialPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)

CredentialPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)

// OidcAddCredToIssuanceQueueWithBodyWithResponse request with any body
OidcAddCredToIssuanceQueueWithBodyWithResponse(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcAddCredToIssuanceQueueResponse, error)

OidcAddCredToIssuanceQueueWithResponse(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, body OidcAddCredToIssuanceQueueJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcAddCredToIssuanceQueueResponse, error)

// CredentialMetadataPatchWithBodyWithResponse request with any body
CredentialMetadataPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)

CredentialMetadataPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)

// DeferredStatusWithResponse request
DeferredStatusWithResponse(ctx context.Context, deferredId string, params *DeferredStatusParams, reqEditors ...RequestEditorFn) (*DeferredStatusResponse, error)

// GetCurrentDidWithResponse request
GetCurrentDidWithResponse(ctx context.Context, params *GetCurrentDidParams, reqEditors ...RequestEditorFn) (*GetCurrentDidResponse, error)

// HealthCheckWithResponse request
HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

// OidcSendIdTokenWithBodyWithResponse request with any body
OidcSendIdTokenWithBodyWithResponse(ctx context.Context, params *OidcSendIdTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcSendIdTokenResponse, error)

OidcSendIdTokenWithResponse(ctx context.Context, params *OidcSendIdTokenParams, body OidcSendIdTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcSendIdTokenResponse, error)

// OidcAcceptOfferWithBodyWithResponse request with any body
OidcAcceptOfferWithBodyWithResponse(ctx context.Context, params *OidcAcceptOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcAcceptOfferResponse, error)

OidcAcceptOfferWithResponse(ctx context.Context, params *OidcAcceptOfferParams, body OidcAcceptOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcAcceptOfferResponse, error)

// OidcCreateIdTokenRequestWithResponse request
OidcCreateIdTokenRequestWithResponse(ctx context.Context, params *OidcCreateIdTokenRequestParams, reqEditors ...RequestEditorFn) (*OidcCreateIdTokenRequestResponse, error)

// IssuerCredentialTypesListWithResponse request
IssuerCredentialTypesListWithResponse(ctx context.Context, params *IssuerCredentialTypesListParams, reqEditors ...RequestEditorFn) (*IssuerCredentialTypesListResponse, error)

// OidcInitiateDeferredWithBodyWithResponse request with any body
OidcInitiateDeferredWithBodyWithResponse(ctx context.Context, params *OidcInitiateDeferredParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcInitiateDeferredResponse, error)

OidcInitiateDeferredWithResponse(ctx context.Context, params *OidcInitiateDeferredParams, body OidcInitiateDeferredJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcInitiateDeferredResponse, error)

// OidcInitiateIntimeWithBodyWithResponse request with any body
OidcInitiateIntimeWithBodyWithResponse(ctx context.Context, params *OidcInitiateIntimeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcInitiateIntimeResponse, error)

OidcInitiateIntimeWithResponse(ctx context.Context, params *OidcInitiateIntimeParams, body OidcInitiateIntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcInitiateIntimeResponse, error)

// OidcInitiatePreauthWithBodyWithResponse request with any body
OidcInitiatePreauthWithBodyWithResponse(ctx context.Context, params *OidcInitiatePreauthParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcInitiatePreauthResponse, error)

OidcInitiatePreauthWithResponse(ctx context.Context, params *OidcInitiatePreauthParams, body OidcInitiatePreauthJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcInitiatePreauthResponse, error)

// HolderCreateAuthOfferWithBodyWithResponse request with any body
HolderCreateAuthOfferWithBodyWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)

HolderCreateAuthOfferWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)

// OidcPresentCredentialsWithBodyWithResponse request with any body
OidcPresentCredentialsWithBodyWithResponse(ctx context.Context, params *OidcPresentCredentialsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcPresentCredentialsResponse, error)

OidcPresentCredentialsWithResponse(ctx context.Context, params *OidcPresentCredentialsParams, body OidcPresentCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcPresentCredentialsResponse, error)

// OidcVerifyInitUrlWithBodyWithResponse request with any body
OidcVerifyInitUrlWithBodyWithResponse(ctx context.Context, params *OidcVerifyInitUrlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcVerifyInitUrlResponse, error)

OidcVerifyInitUrlWithResponse(ctx context.Context, params *OidcVerifyInitUrlParams, body OidcVerifyInitUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcVerifyInitUrlResponse, error)

// WalletListWithResponse request
WalletListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WalletListResponse, error)

// WalletSaveWithBodyWithResponse request with any body
WalletSaveWithBodyWithResponse(ctx context.Context, params *WalletSaveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletSaveResponse, error)

WalletSaveWithResponse(ctx context.Context, params *WalletSaveParams, body WalletSaveJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletSaveResponse, error)

// AccreditAsTrustedIssuerWithResponse request
AccreditAsTrustedIssuerWithResponse(ctx context.Context, params *AccreditAsTrustedIssuerParams, reqEditors ...RequestEditorFn) (*AccreditAsTrustedIssuerResponse, error)

// WalletGetWithResponse request
WalletGetWithResponse(ctx context.Context, params *WalletGetParams, reqEditors ...RequestEditorFn) (*WalletGetResponse, error)

// OnboardLegalEntityWithResponse request
OnboardLegalEntityWithResponse(ctx context.Context, params *OnboardLegalEntityParams, reqEditors ...RequestEditorFn) (*OnboardLegalEntityResponse, error)

// WalletNotificationsWithResponse request
WalletNotificationsWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletNotificationsResponse, error)
}

func NewAuthenticatedClient​

func NewAuthenticatedClient(config *Config) (ClientWithResponsesInterface, error)

type Config​

type Config struct {
WalletUrl string `yaml:"walletUrl"`
WalletId string `yaml:"walletId"`
AuthenticationType string `yaml:"authenticationType"`
AuthenticationOAuth AuthenticationOAuth `yaml:"authenticationOAuth"`
}

type Credential​

Credential defines model for Credential.

type Credential struct {
// Context The value of the @context property MUST be an ordered set where the first item is a URL with the value
// https://www.w3.org/ns/credentials/v2. Subsequent items in the array MUST express context information and
// be composed of any combination of URLs or objects. It is RECOMMENDED that each URL in the @context be
// one which, if dereferenced, results in a document containing machine-readable information about the @context.
// https://www.w3.org/TR/vc-data-model-2.0/#contexts
Context *[]string `json:"@context,omitempty"`

// CredentialSchema One or more data schemas that provide verifiers with enough information to determine if the provided data conforms to the provided schema(s)
// https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSchema
CredentialSchema *CredentialSchema `json:"credentialSchema,omitempty"`

// CredentialStatus It is expected that the value will provide enough information to determine the current status of the credential and
// that machine readable information will be retrievable from the URL
// https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialStatus
CredentialStatus *CredentialStatus `json:"credentialStatus,omitempty"`

// CredentialSubject Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential
// https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSubject
CredentialSubject *CredentialSubject `json:"credentialSubject,omitempty"`
Evidence *Evidence `json:"evidence,omitempty"`

// ExpirationDate EBSI specific field defining the date of expiration.
ExpirationDate *time.Time `json:"expirationDate,omitempty"`

// Holder Either a URL or an object containing an id property
// https://www.w3.org/TR/vc-data-model-2.0/#defn-holder
Holder *string `json:"holder,omitempty"`
Id *CredentialId `json:"id,omitempty"`

// IssuanceDate EBSI specific field defining the date of issuance.
IssuanceDate *time.Time `json:"issuanceDate,omitempty"`

// Issued EBSI specific field defining the date of issuance.
Issued *time.Time `json:"issued,omitempty"`

// Issuer Either a URL or an object containing an id property
// https://www.w3.org/TR/vc-data-model-2.0/#defn-issuer
Issuer *string `json:"issuer,omitempty"`

// Proof One or more cryptographic proofs that can be used to detect tampering and verify the authorship of a verifiable credential or verifiable presentation
// https://www.w3.org/TR/vc-data-model-2.0/#securing-verifiable-credentials
Proof *Proof `json:"proof,omitempty"`

// RefreshService A refresh service is a mechanism that can be utilized by software agents to retrieve an updated copy of a Verifiable Credential
// https://www.w3.org/TR/vc-data-model-2.0/#defn-refreshService
RefreshService *RefreshService `json:"refreshService,omitempty"`

// TermsOfUse Policy under which the creator issued the credential or presentation
// https://www.w3.org/TR/vc-data-model-2.0/#defn-termsOfUse
TermsOfUse *TermsOfUse `json:"termsOfUse,omitempty"`

// Type The value of the type property MUST be, or map to (through interpretation of the @context property),
// one or more URLs. If more than one URL is provided, the URLs MUST be interpreted as an unordered set.
// Syntactic conveniences SHOULD be used to ease developer usage. Such conveniences might include JSON-LD terms.
// It is RECOMMENDED that each URL in the type be one which, if dereferenced, results in a document containing
// machine-readable information about the type.
// https://www.w3.org/TR/vc-data-model-2.0/#types
Type *[]string `json:"type,omitempty"`

// ValidFrom Date Time Stamp string value representing the date and time the credential becomes valid
// https://www.w3.org/TR/vc-data-model-2.0/#defn-validFrom
ValidFrom *time.Time `json:"validFrom,omitempty"`

// ValidUntil Date Time Stamp string value representing the date and time the credential ceases to be valid
// https://www.w3.org/TR/vc-data-model-2.0/#defn-validUntil
ValidUntil *time.Time `json:"validUntil,omitempty"`
}

func (*Credential) CredentialBuilder​

func (vcred *Credential) CredentialBuilder() *CredentialBuilder

type CredentialBuilder​

type CredentialBuilder struct {
// contains filtered or unexported fields
}

func (*CredentialBuilder) AddContext​

func (b *CredentialBuilder) AddContext(contextLink string) *CredentialBuilder

func (*CredentialBuilder) AddCredentialSchema​

func (b *CredentialBuilder) AddCredentialSchema(schema *CredentialSchemaItem) error

func (*CredentialBuilder) AddCredentialSubject​

func (b *CredentialBuilder) AddCredentialSubject(subj *CredentialSubjectItem) error

func (*CredentialBuilder) AddType​

func (b *CredentialBuilder) AddType(t string) *CredentialBuilder

func (*CredentialBuilder) FromJsonBytes​

func (b *CredentialBuilder) FromJsonBytes(credJson []byte) error

func (*CredentialBuilder) FromJsonFile​

func (b *CredentialBuilder) FromJsonFile(path string) error

func (*CredentialBuilder) SetCredentialStatus​

func (b *CredentialBuilder) SetCredentialStatus(status *CredentialStatus) *CredentialBuilder

func (*CredentialBuilder) SetCredentialSubject​

func (b *CredentialBuilder) SetCredentialSubject(subj *CredentialSubject) *CredentialBuilder

func (*CredentialBuilder) SetExpirationDate​

func (b *CredentialBuilder) SetExpirationDate(t *time.Time) *CredentialBuilder

func (*CredentialBuilder) SetId​

func (b *CredentialBuilder) SetId(id CredentialId) *CredentialBuilder

func (*CredentialBuilder) SetIssuanceDate​

func (b *CredentialBuilder) SetIssuanceDate(t *time.Time) *CredentialBuilder

func (*CredentialBuilder) SetIssued​

func (b *CredentialBuilder) SetIssued(t *time.Time) *CredentialBuilder

func (*CredentialBuilder) SetIssuer​

func (b *CredentialBuilder) SetIssuer(issuer string) *CredentialBuilder

func (*CredentialBuilder) SetType​

func (b *CredentialBuilder) SetType(t *[]string) *CredentialBuilder

func (*CredentialBuilder) SetValidFrom​

func (b *CredentialBuilder) SetValidFrom(t *time.Time) *CredentialBuilder

func (*CredentialBuilder) SetValidUntil​

func (b *CredentialBuilder) SetValidUntil(t *time.Time) *CredentialBuilder

func (*CredentialBuilder) ToBytes​

func (b *CredentialBuilder) ToBytes() ([]byte, error)

func (*CredentialBuilder) Validate​

func (b *CredentialBuilder) Validate() error

type CredentialCreateJSONRequestBody​

CredentialCreateJSONRequestBody defines body for CredentialCreate for application/json ContentType.

type CredentialCreateJSONRequestBody = CredentialPayload

type CredentialCreateParams​

CredentialCreateParams defines parameters for CredentialCreate.

type CredentialCreateParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialCreateResponse​

type CredentialCreateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CredentialIdObject
JSON400 *Error
JSON500 *Error
}

func ParseCredentialCreateResponse​

func ParseCredentialCreateResponse(rsp *http.Response) (*CredentialCreateResponse, error)

ParseCredentialCreateResponse parses an HTTP response from a CredentialCreateWithResponse call

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 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 *CredentialWrapper
}

func ParseCredentialGetResponse​

func ParseCredentialGetResponse(rsp *http.Response) (*CredentialGetResponse, error)

ParseCredentialGetResponse parses an HTTP response from a CredentialGetWithResponse call

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"`
}

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 *Credential
JSON400 *Error
JSON500 *Error
}

func ParseCredentialImportResponse​

func ParseCredentialImportResponse(rsp *http.Response) (*CredentialImportResponse, error)

ParseCredentialImportResponse parses an HTTP response from a CredentialImportWithResponse call

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 CredentialIssuerDefinition​

CredentialIssuerDefinition defines model for CredentialIssuerDefinition.

type CredentialIssuerDefinition struct {
// CredentialFormat Credential format ex. `jwt_vc`.
CredentialFormat CredentialIssuerDefinitionCredentialFormat `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"`
}

type CredentialIssuerDefinitionCredentialFormat​

CredentialIssuerDefinitionCredentialFormat Credential format ex. `jwt_vc`.

type CredentialIssuerDefinitionCredentialFormat string

Defines values for CredentialIssuerDefinitionCredentialFormat.

const (
JwtVc CredentialIssuerDefinitionCredentialFormat = "jwt_vc"
)

type CredentialIssuerDefinitionCredentialIssuer​

CredentialIssuerDefinitionCredentialIssuer Type of issuer to be used with credentials of the type specified.

type CredentialIssuerDefinitionCredentialIssuer string

Defines values for CredentialIssuerDefinitionCredentialIssuer.

const (
CtWalletSame CredentialIssuerDefinitionCredentialIssuer = "CtWalletSame"
IssuanceQueue CredentialIssuerDefinitionCredentialIssuer = "IssuanceQueue"
)

type CredentialList​

CredentialList defines model for CredentialList.

type CredentialList struct {
List *[]CredentialMetadata `json:"list,omitempty"`
}

type CredentialListParams​

CredentialListParams defines parameters for CredentialList.

type CredentialListParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialListResponse​

type CredentialListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CredentialList
JSON500 *Error
}

func ParseCredentialListResponse​

func ParseCredentialListResponse(rsp *http.Response) (*CredentialListResponse, error)

ParseCredentialListResponse parses an HTTP response from a CredentialListWithResponse call

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 {
Id string `json:"id"`
Name string `json:"name"`
Status CredentialMetadataStatus `json:"status"`
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 CredentialMetadataPatchJSONRequestBody​

CredentialMetadataPatchJSONRequestBody defines body for CredentialMetadataPatch for application/json ContentType.

type CredentialMetadataPatchJSONRequestBody = CredentialMetadata

type CredentialMetadataPatchParams​

CredentialMetadataPatchParams defines parameters for CredentialMetadataPatch.

type CredentialMetadataPatchParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialMetadataPatchResponse​

type CredentialMetadataPatchResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CredentialIdObject
}

func ParseCredentialMetadataPatchResponse​

func ParseCredentialMetadataPatchResponse(rsp *http.Response) (*CredentialMetadataPatchResponse, error)

ParseCredentialMetadataPatchResponse parses an HTTP response from a CredentialMetadataPatchWithResponse call

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 (
Draft CredentialMetadataStatus = "draft"
Invalid CredentialMetadataStatus = "invalid"
Valid CredentialMetadataStatus = "valid"
)

type CredentialPatchJSONRequestBody​

CredentialPatchJSONRequestBody defines body for CredentialPatch for application/json ContentType.

type CredentialPatchJSONRequestBody = CredentialPayload

type CredentialPatchParams​

CredentialPatchParams defines parameters for CredentialPatch.

type CredentialPatchParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialPatchResponse​

type CredentialPatchResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CredentialIdObject
}

func ParseCredentialPatchResponse​

func ParseCredentialPatchResponse(rsp *http.Response) (*CredentialPatchResponse, error)

ParseCredentialPatchResponse parses an HTTP response from a CredentialPatchWithResponse call

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 CredentialPayload​

CredentialPayload A Credential container used to create credentials with metadata.

type CredentialPayload struct {
Credential Credential `json:"credential"`
Name string `json:"name"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (CredentialPayload) Get​

func (a CredentialPayload) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for CredentialPayload. Returns the specified element and whether it was found

func (CredentialPayload) MarshalJSON​

func (a CredentialPayload) MarshalJSON() ([]byte, error)

Override default JSON handling for CredentialPayload to handle AdditionalProperties

func (*CredentialPayload) Set​

func (a *CredentialPayload) Set(fieldName string, value interface{})

Setter for additional properties for CredentialPayload

func (*CredentialPayload) UnmarshalJSON​

func (a *CredentialPayload) UnmarshalJSON(b []byte) error

Override default JSON handling for CredentialPayload to handle AdditionalProperties

type CredentialRequest​

CredentialRequest defines model for CredentialRequest.

type CredentialRequest struct {
LegalEntity bool `json:"legalEntity"`
State *string `json:"state,omitempty"`
Types []string `json:"types"`
Url string `json:"url"`
}

type CredentialRequestJSONRequestBody​

CredentialRequestJSONRequestBody defines body for CredentialRequest for application/json ContentType.

type CredentialRequestJSONRequestBody = CredentialRequest

type CredentialRequestParams​

CredentialRequestParams defines parameters for CredentialRequest.

type CredentialRequestParams struct {
WalletId string `json:"wallet-id"`
}

type CredentialRequestResponse​

type CredentialRequestResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]CredentialId
JSON400 *Error
JSON500 *Error
}

func ParseCredentialRequestResponse​

func ParseCredentialRequestResponse(rsp *http.Response) (*CredentialRequestResponse, error)

ParseCredentialRequestResponse parses an HTTP response from a CredentialRequestWithResponse call

func (CredentialRequestResponse) Status​

func (r CredentialRequestResponse) Status() string

Status returns HTTPResponse.Status

func (CredentialRequestResponse) StatusCode​

func (r CredentialRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialSchema​

CredentialSchema One or more data schemas that provide verifiers with enough information to determine if the provided data conforms to the provided schema(s) https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSchema

type CredentialSchema struct {
// contains filtered or unexported fields
}

func (CredentialSchema) AsCredentialSchema1​

func (t CredentialSchema) AsCredentialSchema1() (CredentialSchema1, error)

AsCredentialSchema1 returns the union data inside the CredentialSchema as a CredentialSchema1

func (CredentialSchema) AsCredentialSchemaItem​

func (t CredentialSchema) AsCredentialSchemaItem() (CredentialSchemaItem, error)

AsCredentialSchemaItem returns the union data inside the CredentialSchema as a CredentialSchemaItem

func (*CredentialSchema) FromCredentialSchema1​

func (t *CredentialSchema) FromCredentialSchema1(v CredentialSchema1) error

FromCredentialSchema1 overwrites any union data inside the CredentialSchema as the provided CredentialSchema1

func (*CredentialSchema) FromCredentialSchemaItem​

func (t *CredentialSchema) FromCredentialSchemaItem(v CredentialSchemaItem) error

FromCredentialSchemaItem overwrites any union data inside the CredentialSchema as the provided CredentialSchemaItem

func (CredentialSchema) MarshalJSON​

func (t CredentialSchema) MarshalJSON() ([]byte, error)

func (*CredentialSchema) MergeCredentialSchema1​

func (t *CredentialSchema) MergeCredentialSchema1(v CredentialSchema1) error

MergeCredentialSchema1 performs a merge with any union data inside the CredentialSchema, using the provided CredentialSchema1

func (*CredentialSchema) MergeCredentialSchemaItem​

func (t *CredentialSchema) MergeCredentialSchemaItem(v CredentialSchemaItem) error

MergeCredentialSchemaItem performs a merge with any union data inside the CredentialSchema, using the provided CredentialSchemaItem

func (*CredentialSchema) UnmarshalJSON​

func (t *CredentialSchema) UnmarshalJSON(b []byte) error

type CredentialSchema1​

CredentialSchema1 defines model for .

type CredentialSchema1 = []CredentialSchemaItem

type CredentialSchemaId​

CredentialSchemaId A URL identifying the schema file

type CredentialSchemaId = string

type CredentialSchemaItem​

CredentialSchemaItem defines model for CredentialSchemaItem.

type CredentialSchemaItem struct {
// Id A URL identifying the schema file
Id CredentialSchemaId `json:"id"`
Name *string `json:"name,omitempty"`

// Type Defines the schema type, for example, JsonSchema
Type string `json:"type"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (CredentialSchemaItem) Get​

func (a CredentialSchemaItem) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for CredentialSchemaItem. Returns the specified element and whether it was found

func (CredentialSchemaItem) MarshalJSON​

func (a CredentialSchemaItem) MarshalJSON() ([]byte, error)

Override default JSON handling for CredentialSchemaItem to handle AdditionalProperties

func (*CredentialSchemaItem) Set​

func (a *CredentialSchemaItem) Set(fieldName string, value interface{})

Setter for additional properties for CredentialSchemaItem

func (*CredentialSchemaItem) UnmarshalJSON​

func (a *CredentialSchemaItem) UnmarshalJSON(b []byte) error

Override default JSON handling for CredentialSchemaItem to handle AdditionalProperties

type CredentialStatus​

CredentialStatus It is expected that the value will provide enough information to determine the current status of the credential and that machine readable information will be retrievable from the URL https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialStatus

type CredentialStatus struct {
Id string `json:"id"`
StatusListCredential *string `json:"statusListCredential,omitempty"`
StatusListIndex *string `json:"statusListIndex,omitempty"`
StatusPurpose *string `json:"statusPurpose,omitempty"`
Type string `json:"type"`
}

type CredentialSubject​

CredentialSubject Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSubject

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 .

type CredentialSubject1 = []CredentialSubjectItem

type CredentialSubjectItem​

CredentialSubjectItem defines model for CredentialSubjectItem.

type CredentialSubjectItem struct {
Id *string `json:"id,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (CredentialSubjectItem) Get​

func (a CredentialSubjectItem) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for CredentialSubjectItem. Returns the specified element and whether it was found

func (CredentialSubjectItem) MarshalJSON​

func (a CredentialSubjectItem) MarshalJSON() ([]byte, error)

Override default JSON handling for CredentialSubjectItem to handle AdditionalProperties

func (*CredentialSubjectItem) Set​

func (a *CredentialSubjectItem) Set(fieldName string, value interface{})

Setter for additional properties for CredentialSubjectItem

func (*CredentialSubjectItem) UnmarshalJSON​

func (a *CredentialSubjectItem) UnmarshalJSON(b []byte) error

Override default JSON handling for CredentialSubjectItem to handle AdditionalProperties

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 {
Format string `json:"format"`
Type []string `json:"type"`
}

type CredentialTypes​

CredentialTypes List of verifiable credential types that can be issued by the issuer

type CredentialTypes = []CredentialType

type CredentialVerifierDefinition​

CredentialVerifierDefinition defines model for CredentialVerifierDefinition.

type CredentialVerifierDefinition struct {
PresentationDefinition PresentationDefinition `json:"presentationDefinition"`
Scope string `json:"scope"`
}

type CredentialWrapper​

CredentialWrapper The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.

type CredentialWrapper struct {
// Metadata Any Credential related accompanying key, value pairs that are not part of the Issued Credential
Metadata CredentialMetadata `json:"metadata"`

// SignedVc The base64 encoded Verifiable Credential in its final signed form
SignedVc *string `json:"signedVc,omitempty"`
Vc Credential `json:"vc"`
}

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

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 *Deferred
JSON400 *Error
}

func ParseDeferredStatusResponse​

func ParseDeferredStatusResponse(rsp *http.Response) (*DeferredStatusResponse, error)

ParseDeferredStatusResponse parses an HTTP response from a DeferredStatusWithResponse call

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 Did​

Did Decentralized ID of the wallet owner

type Did struct {
Did string `json:"Did"`
}

type Error​

Error Common error message

type Error struct {
Message string `json:"Message"`
}

type Evidence​

Evidence defines model for Evidence.

type Evidence = []EvidenceItem

type EvidenceItem​

EvidenceItem A scheme providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential

type EvidenceItem struct {
// Id URL that points to where more information about this instance of evidence can be found
Id *string `json:"id,omitempty"`

// Type The precise content of each evidence scheme is determined by the specific evidence type definition.
Type []string `json:"type"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (EvidenceItem) Get​

func (a EvidenceItem) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for EvidenceItem. Returns the specified element and whether it was found

func (EvidenceItem) MarshalJSON​

func (a EvidenceItem) MarshalJSON() ([]byte, error)

Override default JSON handling for EvidenceItem to handle AdditionalProperties

func (*EvidenceItem) Set​

func (a *EvidenceItem) Set(fieldName string, value interface{})

Setter for additional properties for EvidenceItem

func (*EvidenceItem) UnmarshalJSON​

func (a *EvidenceItem) UnmarshalJSON(b []byte) error

Override default JSON handling for EvidenceItem to handle AdditionalProperties

type GetCurrentDidParams​

GetCurrentDidParams defines parameters for GetCurrentDid.

type GetCurrentDidParams struct {
WalletId string `json:"wallet-id"`
}

type GetCurrentDidResponse​

type GetCurrentDidResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Did
JSON400 *Error
JSON500 *Error
}

func ParseGetCurrentDidResponse​

func ParseGetCurrentDidResponse(rsp *http.Response) (*GetCurrentDidResponse, error)

ParseGetCurrentDidResponse parses an HTTP response from a GetCurrentDidWithResponse call

func (GetCurrentDidResponse) Status​

func (r GetCurrentDidResponse) Status() string

Status returns HTTPResponse.Status

func (GetCurrentDidResponse) StatusCode​

func (r GetCurrentDidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthCheckResponse​

type HealthCheckResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HealthStatus
JSON500 *Error
}

func ParseHealthCheckResponse​

func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)

ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call

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"`
}

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

type HolderAuthOfferCreationRequest​

HolderAuthOfferCreationRequest Request for the creation of a holder initiated authorized flow offer.

type HolderAuthOfferCreationRequest struct {
Deferred bool `json:"deferred"`
IssuerUrl string `json:"issuerUrl"`
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
}

func ParseHolderCreateAuthOfferResponse​

func ParseHolderCreateAuthOfferResponse(rsp *http.Response) (*HolderCreateAuthOfferResponse, error)

ParseHolderCreateAuthOfferResponse parses an HTTP response from a HolderCreateAuthOfferWithResponse call

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 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 {
IdTokenRequestId string `json:"idTokenRequestId"`
}

type IdTokenRequest​

IdTokenRequest defines model for IdTokenRequest.

type IdTokenRequest struct {
Id string `json:"id"`
RequestUrl string `json:"requestUrl"`
}

type IdTokenSendRequest​

IdTokenSendRequest defines model for IdTokenSendRequest.

type IdTokenSendRequest struct {
RequestUrl string `json:"requestUrl"`
}

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 {
CredentialTypes []string `json:"credentialTypes"`
OfferEndpoint *string `json:"offerEndpoint,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"`
CredentialTypes []string `json:"credentialTypes"`

// IdTokenRequestId ID of ID token request issued to the holder.
IdTokenRequestId *string `json:"idTokenRequestId,omitempty"`
OfferEndpoint *string `json:"offerEndpoint,omitempty"`
}

type IssuanceQueueCredentialAdd​

IssuanceQueueCredentialAdd Request for addition of already created VC to issuance queue for a client specified either by client_id or idTokenRequestId. Either clientId or idTokenRequestId MUST be present.

type IssuanceQueueCredentialAdd struct {
ClientId *string `json:"clientId,omitempty"`
IdTokenRequestId *string `json:"idTokenRequestId,omitempty"`
}

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 *CredentialTypes
}

func ParseIssuerCredentialTypesListResponse​

func ParseIssuerCredentialTypesListResponse(rsp *http.Response) (*IssuerCredentialTypesListResponse, error)

ParseIssuerCredentialTypesListResponse parses an HTTP response from a IssuerCredentialTypesListWithResponse call

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 OidcAcceptOfferJSONRequestBody​

OidcAcceptOfferJSONRequestBody defines body for OidcAcceptOffer for application/json ContentType.

type OidcAcceptOfferJSONRequestBody = VcOffer

type OidcAcceptOfferParams​

OidcAcceptOfferParams defines parameters for OidcAcceptOffer.

type OidcAcceptOfferParams struct {
WalletId string `json:"wallet-id"`
}

type OidcAcceptOfferResponse​

type OidcAcceptOfferResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]CredentialId
JSON400 *Error
JSON500 *Error
}

func ParseOidcAcceptOfferResponse​

func ParseOidcAcceptOfferResponse(rsp *http.Response) (*OidcAcceptOfferResponse, error)

ParseOidcAcceptOfferResponse parses an HTTP response from a OidcAcceptOfferWithResponse call

func (OidcAcceptOfferResponse) Status​

func (r OidcAcceptOfferResponse) Status() string

Status returns HTTPResponse.Status

func (OidcAcceptOfferResponse) StatusCode​

func (r OidcAcceptOfferResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OidcAddCredToIssuanceQueueJSONRequestBody​

OidcAddCredToIssuanceQueueJSONRequestBody defines body for OidcAddCredToIssuanceQueue for application/json ContentType.

type OidcAddCredToIssuanceQueueJSONRequestBody = IssuanceQueueCredentialAdd

type OidcAddCredToIssuanceQueueParams​

OidcAddCredToIssuanceQueueParams defines parameters for OidcAddCredToIssuanceQueue.

type OidcAddCredToIssuanceQueueParams struct {
WalletId string `json:"wallet-id"`
}

type OidcAddCredToIssuanceQueueResponse​

type OidcAddCredToIssuanceQueueResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *Error
JSON500 *Error
}

func ParseOidcAddCredToIssuanceQueueResponse​

func ParseOidcAddCredToIssuanceQueueResponse(rsp *http.Response) (*OidcAddCredToIssuanceQueueResponse, error)

ParseOidcAddCredToIssuanceQueueResponse parses an HTTP response from a OidcAddCredToIssuanceQueueWithResponse call

func (OidcAddCredToIssuanceQueueResponse) Status​

func (r OidcAddCredToIssuanceQueueResponse) Status() string

Status returns HTTPResponse.Status

func (OidcAddCredToIssuanceQueueResponse) StatusCode​

func (r OidcAddCredToIssuanceQueueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OidcCreateIdTokenRequestParams​

OidcCreateIdTokenRequestParams defines parameters for OidcCreateIdTokenRequest.

type OidcCreateIdTokenRequestParams struct {
WalletId string `json:"wallet-id"`
}

type OidcCreateIdTokenRequestResponse​

type OidcCreateIdTokenRequestResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *IdTokenRequest
JSON500 *Error
}

func ParseOidcCreateIdTokenRequestResponse​

func ParseOidcCreateIdTokenRequestResponse(rsp *http.Response) (*OidcCreateIdTokenRequestResponse, error)

ParseOidcCreateIdTokenRequestResponse parses an HTTP response from a OidcCreateIdTokenRequestWithResponse call

func (OidcCreateIdTokenRequestResponse) Status​

func (r OidcCreateIdTokenRequestResponse) Status() string

Status returns HTTPResponse.Status

func (OidcCreateIdTokenRequestResponse) StatusCode​

func (r OidcCreateIdTokenRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OidcInitiateDeferredJSONRequestBody​

OidcInitiateDeferredJSONRequestBody defines body for OidcInitiateDeferred for application/json ContentType.

type OidcInitiateDeferredJSONRequestBody = InitAuthOffer

type OidcInitiateDeferredParams​

OidcInitiateDeferredParams defines parameters for OidcInitiateDeferred.

type OidcInitiateDeferredParams struct {
WalletId string `json:"wallet-id"`
}

type OidcInitiateDeferredResponse​

type OidcInitiateDeferredResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AuthOffer
JSON500 *Error
}

func ParseOidcInitiateDeferredResponse​

func ParseOidcInitiateDeferredResponse(rsp *http.Response) (*OidcInitiateDeferredResponse, error)

ParseOidcInitiateDeferredResponse parses an HTTP response from a OidcInitiateDeferredWithResponse call

func (OidcInitiateDeferredResponse) Status​

func (r OidcInitiateDeferredResponse) Status() string

Status returns HTTPResponse.Status

func (OidcInitiateDeferredResponse) StatusCode​

func (r OidcInitiateDeferredResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OidcInitiateIntimeJSONRequestBody​

OidcInitiateIntimeJSONRequestBody defines body for OidcInitiateIntime for application/json ContentType.

type OidcInitiateIntimeJSONRequestBody = InitAuthOffer

type OidcInitiateIntimeParams​

OidcInitiateIntimeParams defines parameters for OidcInitiateIntime.

type OidcInitiateIntimeParams struct {
WalletId string `json:"wallet-id"`
}

type OidcInitiateIntimeResponse​

type OidcInitiateIntimeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AuthOffer
JSON500 *Error
}

func ParseOidcInitiateIntimeResponse​

func ParseOidcInitiateIntimeResponse(rsp *http.Response) (*OidcInitiateIntimeResponse, error)

ParseOidcInitiateIntimeResponse parses an HTTP response from a OidcInitiateIntimeWithResponse call

func (OidcInitiateIntimeResponse) Status​

func (r OidcInitiateIntimeResponse) Status() string

Status returns HTTPResponse.Status

func (OidcInitiateIntimeResponse) StatusCode​

func (r OidcInitiateIntimeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OidcInitiatePreauthJSONRequestBody​

OidcInitiatePreauthJSONRequestBody defines body for OidcInitiatePreauth for application/json ContentType.

type OidcInitiatePreauthJSONRequestBody = InitPreAuthOffer

type OidcInitiatePreauthParams​

OidcInitiatePreauthParams defines parameters for OidcInitiatePreauth.

type OidcInitiatePreauthParams struct {
WalletId string `json:"wallet-id"`
}

type OidcInitiatePreauthResponse​

type OidcInitiatePreauthResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PreAuthOffer
JSON400 *Error
JSON500 *Error
}

func ParseOidcInitiatePreauthResponse​

func ParseOidcInitiatePreauthResponse(rsp *http.Response) (*OidcInitiatePreauthResponse, error)

ParseOidcInitiatePreauthResponse parses an HTTP response from a OidcInitiatePreauthWithResponse call

func (OidcInitiatePreauthResponse) Status​

func (r OidcInitiatePreauthResponse) Status() string

Status returns HTTPResponse.Status

func (OidcInitiatePreauthResponse) StatusCode​

func (r OidcInitiatePreauthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OidcPresentCredentialsJSONRequestBody​

OidcPresentCredentialsJSONRequestBody defines body for OidcPresentCredentials for application/json ContentType.

type OidcPresentCredentialsJSONRequestBody = PresentationRequest

type OidcPresentCredentialsParams​

OidcPresentCredentialsParams defines parameters for OidcPresentCredentials.

type OidcPresentCredentialsParams struct {
WalletId string `json:"wallet-id"`
}

type OidcPresentCredentialsResponse​

type OidcPresentCredentialsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *Error
JSON404 *Error
}

func ParseOidcPresentCredentialsResponse​

func ParseOidcPresentCredentialsResponse(rsp *http.Response) (*OidcPresentCredentialsResponse, error)

ParseOidcPresentCredentialsResponse parses an HTTP response from a OidcPresentCredentialsWithResponse call

func (OidcPresentCredentialsResponse) Status​

func (r OidcPresentCredentialsResponse) Status() string

Status returns HTTPResponse.Status

func (OidcPresentCredentialsResponse) StatusCode​

func (r OidcPresentCredentialsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OidcSendIdTokenJSONRequestBody​

OidcSendIdTokenJSONRequestBody defines body for OidcSendIdToken for application/json ContentType.

type OidcSendIdTokenJSONRequestBody = IdTokenSendRequest

type OidcSendIdTokenParams​

OidcSendIdTokenParams defines parameters for OidcSendIdToken.

type OidcSendIdTokenParams struct {
WalletId string `json:"wallet-id"`
}

type OidcSendIdTokenResponse​

type OidcSendIdTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *Error
JSON500 *Error
}

func ParseOidcSendIdTokenResponse​

func ParseOidcSendIdTokenResponse(rsp *http.Response) (*OidcSendIdTokenResponse, error)

ParseOidcSendIdTokenResponse parses an HTTP response from a OidcSendIdTokenWithResponse call

func (OidcSendIdTokenResponse) Status​

func (r OidcSendIdTokenResponse) Status() string

Status returns HTTPResponse.Status

func (OidcSendIdTokenResponse) StatusCode​

func (r OidcSendIdTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OidcVerifyInitUrlJSONRequestBody​

OidcVerifyInitUrlJSONRequestBody defines body for OidcVerifyInitUrl for application/json ContentType.

type OidcVerifyInitUrlJSONRequestBody = VerifyInitRequest

type OidcVerifyInitUrlParams​

OidcVerifyInitUrlParams defines parameters for OidcVerifyInitUrl.

type OidcVerifyInitUrlParams struct {
WalletId string `json:"wallet-id"`
}

type OidcVerifyInitUrlResponse​

type OidcVerifyInitUrlResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *VerifyInitResponse
JSON404 *Error
}

func ParseOidcVerifyInitUrlResponse​

func ParseOidcVerifyInitUrlResponse(rsp *http.Response) (*OidcVerifyInitUrlResponse, error)

ParseOidcVerifyInitUrlResponse parses an HTTP response from a OidcVerifyInitUrlWithResponse call

func (OidcVerifyInitUrlResponse) Status​

func (r OidcVerifyInitUrlResponse) Status() string

Status returns HTTPResponse.Status

func (OidcVerifyInitUrlResponse) StatusCode​

func (r OidcVerifyInitUrlResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OnboardLegalEntityParams​

OnboardLegalEntityParams defines parameters for OnboardLegalEntity.

type OnboardLegalEntityParams struct {
WalletId string `json:"wallet-id"`
}

type OnboardLegalEntityResponse​

type OnboardLegalEntityResponse struct {
Body []byte
HTTPResponse *http.Response
JSON500 *Error
}

func ParseOnboardLegalEntityResponse​

func ParseOnboardLegalEntityResponse(rsp *http.Response) (*OnboardLegalEntityResponse, error)

ParseOnboardLegalEntityResponse parses an HTTP response from a OnboardLegalEntityWithResponse call

func (OnboardLegalEntityResponse) Status​

func (r OnboardLegalEntityResponse) Status() string

Status returns HTTPResponse.Status

func (OnboardLegalEntityResponse) StatusCode​

func (r OnboardLegalEntityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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"`
Pin string `json:"pin"`
PreauthCode string `json:"preauthCode"`
}

type PresentationDefinition​

PresentationDefinition defines model for PresentationDefinition.

type PresentationDefinition struct {
Format PresentationDefinitionFormat `json:"format"`
Id string `json:"id"`
InputDescriptors []PresentationDefinitionInputDescriptor `json:"input_descriptors"`
}

type PresentationDefinitionFormat​

PresentationDefinitionFormat defines model for PresentationDefinitionFormat.

type PresentationDefinitionFormat struct {
JwtVc PresentationDefinitionFormatAlg `json:"jwt_vc"`
JwtVp PresentationDefinitionFormatAlg `json:"jwt_vp"`
}

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"`
Path []string `json:"path"`
}

type PresentationDefinitionInputDescriptor​

PresentationDefinitionInputDescriptor defines model for PresentationDefinitionInputDescriptor.

type PresentationDefinitionInputDescriptor struct {
Constraints PresentationDefinitionInputConstraint `json:"constraints"`
Id string `json:"id"`
}

type PresentationRequest​

PresentationRequest defines model for PresentationRequest.

type PresentationRequest struct {
// VerifierUrl URL of verifier authorization server. MUST contain the verifier scope as a query parameter(`scope`).
VerifierUrl string `json:"verifierUrl"`
}

type Proof​

Proof One or more cryptographic proofs that can be used to detect tampering and verify the authorship of a verifiable credential or verifiable presentation https://www.w3.org/TR/vc-data-model-2.0/#securing-verifiable-credentials

type Proof struct {
Created time.Time `json:"created"`
ProofPurpose string `json:"proofPurpose"`
ProofValue *string `json:"proofValue,omitempty"`
Type string `json:"type"`
VerificationMethod string `json:"verificationMethod"`
}

type RefreshService​

RefreshService A refresh service is a mechanism that can be utilized by software agents to retrieve an updated copy of a Verifiable Credential https://www.w3.org/TR/vc-data-model-2.0/#defn-refreshService

type RefreshService struct {
// contains filtered or unexported fields
}

func (RefreshService) AsRefreshService1​

func (t RefreshService) AsRefreshService1() (RefreshService1, error)

AsRefreshService1 returns the union data inside the RefreshService as a RefreshService1

func (RefreshService) AsRefreshServiceItem​

func (t RefreshService) AsRefreshServiceItem() (RefreshServiceItem, error)

AsRefreshServiceItem returns the union data inside the RefreshService as a RefreshServiceItem

func (*RefreshService) FromRefreshService1​

func (t *RefreshService) FromRefreshService1(v RefreshService1) error

FromRefreshService1 overwrites any union data inside the RefreshService as the provided RefreshService1

func (*RefreshService) FromRefreshServiceItem​

func (t *RefreshService) FromRefreshServiceItem(v RefreshServiceItem) error

FromRefreshServiceItem overwrites any union data inside the RefreshService as the provided RefreshServiceItem

func (RefreshService) MarshalJSON​

func (t RefreshService) MarshalJSON() ([]byte, error)

func (*RefreshService) MergeRefreshService1​

func (t *RefreshService) MergeRefreshService1(v RefreshService1) error

MergeRefreshService1 performs a merge with any union data inside the RefreshService, using the provided RefreshService1

func (*RefreshService) MergeRefreshServiceItem​

func (t *RefreshService) MergeRefreshServiceItem(v RefreshServiceItem) error

MergeRefreshServiceItem performs a merge with any union data inside the RefreshService, using the provided RefreshServiceItem

func (*RefreshService) UnmarshalJSON​

func (t *RefreshService) UnmarshalJSON(b []byte) error

type RefreshService1​

RefreshService1 defines model for .

type RefreshService1 = []RefreshServiceItem

type RefreshServiceItem​

RefreshServiceItem defines model for RefreshServiceItem.

type RefreshServiceItem struct {
// Id The URL of the service
Id string `json:"id"`
Type string `json:"type"`
}

type RequestEditorFn​

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestEditorFn func(ctx context.Context, req *http.Request) error

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

type TermsOfUse​

TermsOfUse Policy under which the creator issued the credential or presentation https://www.w3.org/TR/vc-data-model-2.0/#defn-termsOfUse

type TermsOfUse struct {
Id *string `json:"id,omitempty"`
Type string `json:"type"`
AdditionalProperties map[string]interface{} `json:"-"`
}

func (TermsOfUse) Get​

func (a TermsOfUse) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for TermsOfUse. Returns the specified element and whether it was found

func (TermsOfUse) MarshalJSON​

func (a TermsOfUse) MarshalJSON() ([]byte, error)

Override default JSON handling for TermsOfUse to handle AdditionalProperties

func (*TermsOfUse) Set​

func (a *TermsOfUse) Set(fieldName string, value interface{})

Setter for additional properties for TermsOfUse

func (*TermsOfUse) UnmarshalJSON​

func (a *TermsOfUse) UnmarshalJSON(b []byte) error

Override default JSON handling for TermsOfUse to handle AdditionalProperties

type VcOffer​

VcOffer The offer to be accepted. The offer URL is mandatory and the pin is required only in case of the pre-authorized flow.

type VcOffer struct {
LegalEntity *bool `json:"LegalEntity,omitempty"`
Pin *string `json:"Pin,omitempty"`
Url string `json:"Url"`
}

type VerifyInitRequest​

VerifyInitRequest Request for the creation of URL used by holder to present credentials to a verifier. Either clientId or idTokenRequestId MUST be present.

type VerifyInitRequest struct {
// ClientId DID of client for which verification url is created
ClientId *string `json:"clientId,omitempty"`

// IdTokenRequestId Id of ID token request with which the client shares its did
IdTokenRequestId *string `json:"idTokenRequestId,omitempty"`
VerifierScope string `json:"verifierScope"`
}

type VerifyInitResponse​

VerifyInitResponse defines model for VerifyInitResponse.

type VerifyInitResponse struct {
// VerifierUrl Url of verifier authorization server that contains the requested verifier scope.
VerifierUrl string `json:"verifierUrl"`
}

type VpVerifiedNotification​

VpVerifiedNotification defines model for VpVerifiedNotification.

type VpVerifiedNotification struct {
VerifierScope string `json:"verifierScope"`
}

type Wallet​

Wallet Wallet details

type Wallet struct {
CanSign bool `json:"canSign"`

// Config Wallet specific configuration.
Config WalletConfig `json:"config"`
Name string `json:"name"`
WalletId *string `json:"walletId,omitempty"`
}

type WalletConfig​

WalletConfig Wallet specific configuration.

type WalletConfig struct {
// 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 credential verifiers to be used (TBD)
CredentialVerifiers *[]CredentialVerifierDefinition `json:"credentialVerifiers,omitempty"`
}

type WalletGetParams​

WalletGetParams defines parameters for WalletGet.

type WalletGetParams struct {
WalletId string `json:"wallet-id"`
}

type WalletGetResponse​

type WalletGetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Wallet
JSON500 *Error
}

func ParseWalletGetResponse​

func ParseWalletGetResponse(rsp *http.Response) (*WalletGetResponse, error)

ParseWalletGetResponse parses an HTTP response from a WalletGetWithResponse call

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 WalletList​

WalletList defines model for WalletList.

type WalletList = []Wallet

type WalletListResponse​

type WalletListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WalletList
JSON500 *Error
}

func ParseWalletListResponse​

func ParseWalletListResponse(rsp *http.Response) (*WalletListResponse, error)

ParseWalletListResponse parses an HTTP response from a WalletListWithResponse call

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 WalletNotification​

WalletNotification defines model for WalletNotification.

type WalletNotification struct {
EventDetails *WalletNotification_EventDetails `json:"eventDetails,omitempty"`
EventType WalletNotificationEventType `json:"eventType"`
SubjectDid string `json:"subjectDid"`
Time time.Time `json:"time"`
}

type WalletNotificationEventType​

WalletNotificationEventType defines model for WalletNotification.EventType.

type WalletNotificationEventType string

Defines values for WalletNotificationEventType.

const (
IdTokenReceived WalletNotificationEventType = "idToken.received"
VpVerified WalletNotificationEventType = "vp.verified"
)

type WalletNotificationList​

WalletNotificationList defines model for WalletNotificationList.

type WalletNotificationList = []WalletNotification

type WalletNotification_EventDetails​

WalletNotification_EventDetails defines model for WalletNotification.EventDetails.

type WalletNotification_EventDetails struct {
// contains filtered or unexported fields
}

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) AsVpVerifiedNotification​

func (t WalletNotification_EventDetails) AsVpVerifiedNotification() (VpVerifiedNotification, error)

AsVpVerifiedNotification returns the union data inside the WalletNotification_EventDetails as a VpVerifiedNotification

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) 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) MarshalJSON​

func (t WalletNotification_EventDetails) MarshalJSON() ([]byte, error)

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) 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) UnmarshalJSON​

func (t *WalletNotification_EventDetails) UnmarshalJSON(b []byte) error

type WalletNotificationsResponse​

type WalletNotificationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WalletNotificationList
JSON500 *Error
}

func ParseWalletNotificationsResponse​

func ParseWalletNotificationsResponse(rsp *http.Response) (*WalletNotificationsResponse, error)

ParseWalletNotificationsResponse parses an HTTP response from a WalletNotificationsWithResponse call

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 WalletSaveJSONRequestBody​

WalletSaveJSONRequestBody defines body for WalletSave for application/json ContentType.

type WalletSaveJSONRequestBody = Wallet

type WalletSaveParams​

WalletSaveParams defines parameters for WalletSave.

type WalletSaveParams struct {
// WalletId Has to be provided for updates.
WalletId *string `json:"wallet-id,omitempty"`
}

type WalletSaveResponse​

type WalletSaveResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Wallet
JSON400 *Error
JSON500 *Error
}

func ParseWalletSaveResponse​

func ParseWalletSaveResponse(rsp *http.Response) (*WalletSaveResponse, error)

ParseWalletSaveResponse parses an HTTP response from a WalletSaveWithResponse call

func (WalletSaveResponse) Status​

func (r WalletSaveResponse) Status() string

Status returns HTTPResponse.Status

func (WalletSaveResponse) StatusCode​

func (r WalletSaveResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Generated by gomarkdoc