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
- func NewAccreditAsTrustedIssuerRequest(server string, params *AccreditAsTrustedIssuerParams) (*http.Request, error)
- func NewCredentialCreateRequest(server string, params *CredentialCreateParams, body CredentialCreateJSONRequestBody) (*http.Request, error)
- func NewCredentialCreateRequestWithBody(server string, params *CredentialCreateParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCredentialGetRequest(server string, credentialId CredentialId, params *CredentialGetParams) (*http.Request, error)
- func NewCredentialImportRequest(server string, params *CredentialImportParams, body CredentialImportJSONRequestBody) (*http.Request, error)
- func NewCredentialImportRequestWithBody(server string, params *CredentialImportParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCredentialListRequest(server string, params *CredentialListParams) (*http.Request, error)
- func NewCredentialMetadataPatchRequest(server string, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody) (*http.Request, error)
- func NewCredentialMetadataPatchRequestWithBody(server string, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCredentialPatchRequest(server string, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody) (*http.Request, error)
- func NewCredentialPatchRequestWithBody(server string, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCredentialRequestRequest(server string, params *CredentialRequestParams, body CredentialRequestJSONRequestBody) (*http.Request, error)
- func NewCredentialRequestRequestWithBody(server string, params *CredentialRequestParams, contentType string, body io.Reader) (*http.Request, error)
- func NewDeferredStatusRequest(server string, deferredId string, params *DeferredStatusParams) (*http.Request, error)
- func NewGetCurrentDidRequest(server string, params *GetCurrentDidParams) (*http.Request, error)
- func NewHealthCheckRequest(server string) (*http.Request, error)
- func NewHolderCreateAuthOfferRequest(server string, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody) (*http.Request, error)
- func NewHolderCreateAuthOfferRequestWithBody(server string, params *HolderCreateAuthOfferParams, contentType string, body io.Reader) (*http.Request, error)
- func NewIssuerCredentialTypesListRequest(server string, params *IssuerCredentialTypesListParams) (*http.Request, error)
- func NewOidcAcceptOfferRequest(server string, params *OidcAcceptOfferParams, body OidcAcceptOfferJSONRequestBody) (*http.Request, error)
- func NewOidcAcceptOfferRequestWithBody(server string, params *OidcAcceptOfferParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOidcAddCredToIssuanceQueueRequest(server string, credentialId string, params *OidcAddCredToIssuanceQueueParams, body OidcAddCredToIssuanceQueueJSONRequestBody) (*http.Request, error)
- func NewOidcAddCredToIssuanceQueueRequestWithBody(server string, credentialId string, params *OidcAddCredToIssuanceQueueParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOidcCreateIdTokenRequestRequest(server string, params *OidcCreateIdTokenRequestParams) (*http.Request, error)
- func NewOidcInitiateDeferredRequest(server string, params *OidcInitiateDeferredParams, body OidcInitiateDeferredJSONRequestBody) (*http.Request, error)
- func NewOidcInitiateDeferredRequestWithBody(server string, params *OidcInitiateDeferredParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOidcInitiateIntimeRequest(server string, params *OidcInitiateIntimeParams, body OidcInitiateIntimeJSONRequestBody) (*http.Request, error)
- func NewOidcInitiateIntimeRequestWithBody(server string, params *OidcInitiateIntimeParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOidcInitiatePreauthRequest(server string, params *OidcInitiatePreauthParams, body OidcInitiatePreauthJSONRequestBody) (*http.Request, error)
- func NewOidcInitiatePreauthRequestWithBody(server string, params *OidcInitiatePreauthParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOidcPresentCredentialsRequest(server string, params *OidcPresentCredentialsParams, body OidcPresentCredentialsJSONRequestBody) (*http.Request, error)
- func NewOidcPresentCredentialsRequestWithBody(server string, params *OidcPresentCredentialsParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOidcSendIdTokenRequest(server string, params *OidcSendIdTokenParams, body OidcSendIdTokenJSONRequestBody) (*http.Request, error)
- func NewOidcSendIdTokenRequestWithBody(server string, params *OidcSendIdTokenParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOidcVerifyInitUrlRequest(server string, params *OidcVerifyInitUrlParams, body OidcVerifyInitUrlJSONRequestBody) (*http.Request, error)
- func NewOidcVerifyInitUrlRequestWithBody(server string, params *OidcVerifyInitUrlParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOnboardLegalEntityRequest(server string, params *OnboardLegalEntityParams) (*http.Request, error)
- func NewWalletGetRequest(server string, params *WalletGetParams) (*http.Request, error)
- func NewWalletListRequest(server string) (*http.Request, error)
- func NewWalletNotificationsRequest(server string, walletId string) (*http.Request, error)
- func NewWalletSaveRequest(server string, params *WalletSaveParams, body WalletSaveJSONRequestBody) (*http.Request, error)
- func NewWalletSaveRequestWithBody(server string, params *WalletSaveParams, contentType string, body io.Reader) (*http.Request, error)
- type AccreditAsTrustedIssuerParams
- type AccreditAsTrustedIssuerResponse
- type AuthOffer
- type AuthenticationOAuth
- type Client
- func NewClient(server string, opts ...ClientOption) (*Client, error)
- func (c *Client) AccreditAsTrustedIssuer(ctx context.Context, params *AccreditAsTrustedIssuerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialCreate(ctx context.Context, params *CredentialCreateParams, body CredentialCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialCreateWithBody(ctx context.Context, params *CredentialCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialGet(ctx context.Context, credentialId CredentialId, params *CredentialGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialImport(ctx context.Context, params *CredentialImportParams, body CredentialImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialImportWithBody(ctx context.Context, params *CredentialImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialList(ctx context.Context, params *CredentialListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialMetadataPatch(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialMetadataPatchWithBody(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialPatch(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialPatchWithBody(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialRequest(ctx context.Context, params *CredentialRequestParams, body CredentialRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CredentialRequestWithBody(ctx context.Context, params *CredentialRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeferredStatus(ctx context.Context, deferredId string, params *DeferredStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCurrentDid(ctx context.Context, params *GetCurrentDidParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HolderCreateAuthOffer(ctx context.Context, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HolderCreateAuthOfferWithBody(ctx context.Context, params *HolderCreateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IssuerCredentialTypesList(ctx context.Context, params *IssuerCredentialTypesListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcAcceptOffer(ctx context.Context, params *OidcAcceptOfferParams, body OidcAcceptOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcAcceptOfferWithBody(ctx context.Context, params *OidcAcceptOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcAddCredToIssuanceQueue(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, body OidcAddCredToIssuanceQueueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcAddCredToIssuanceQueueWithBody(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcCreateIdTokenRequest(ctx context.Context, params *OidcCreateIdTokenRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcInitiateDeferred(ctx context.Context, params *OidcInitiateDeferredParams, body OidcInitiateDeferredJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcInitiateDeferredWithBody(ctx context.Context, params *OidcInitiateDeferredParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcInitiateIntime(ctx context.Context, params *OidcInitiateIntimeParams, body OidcInitiateIntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcInitiateIntimeWithBody(ctx context.Context, params *OidcInitiateIntimeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcInitiatePreauth(ctx context.Context, params *OidcInitiatePreauthParams, body OidcInitiatePreauthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcInitiatePreauthWithBody(ctx context.Context, params *OidcInitiatePreauthParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcPresentCredentials(ctx context.Context, params *OidcPresentCredentialsParams, body OidcPresentCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcPresentCredentialsWithBody(ctx context.Context, params *OidcPresentCredentialsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcSendIdToken(ctx context.Context, params *OidcSendIdTokenParams, body OidcSendIdTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcSendIdTokenWithBody(ctx context.Context, params *OidcSendIdTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcVerifyInitUrl(ctx context.Context, params *OidcVerifyInitUrlParams, body OidcVerifyInitUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OidcVerifyInitUrlWithBody(ctx context.Context, params *OidcVerifyInitUrlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OnboardLegalEntity(ctx context.Context, params *OnboardLegalEntityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) WalletGet(ctx context.Context, params *WalletGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) WalletList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) WalletNotifications(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) WalletSave(ctx context.Context, params *WalletSaveParams, body WalletSaveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) WalletSaveWithBody(ctx context.Context, params *WalletSaveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
- func (c *ClientWithResponses) AccreditAsTrustedIssuerWithResponse(ctx context.Context, params *AccreditAsTrustedIssuerParams, reqEditors ...RequestEditorFn) (*AccreditAsTrustedIssuerResponse, error)
- func (c *ClientWithResponses) CredentialCreateWithBodyWithResponse(ctx context.Context, params *CredentialCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)
- func (c *ClientWithResponses) CredentialCreateWithResponse(ctx context.Context, params *CredentialCreateParams, body CredentialCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialCreateResponse, error)
- func (c *ClientWithResponses) CredentialGetWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialGetParams, reqEditors ...RequestEditorFn) (*CredentialGetResponse, error)
- func (c *ClientWithResponses) CredentialImportWithBodyWithResponse(ctx context.Context, params *CredentialImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)
- func (c *ClientWithResponses) CredentialImportWithResponse(ctx context.Context, params *CredentialImportParams, body CredentialImportJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialImportResponse, error)
- func (c *ClientWithResponses) CredentialListWithResponse(ctx context.Context, params *CredentialListParams, reqEditors ...RequestEditorFn) (*CredentialListResponse, error)
- func (c *ClientWithResponses) CredentialMetadataPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)
- func (c *ClientWithResponses) CredentialMetadataPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialMetadataPatchParams, body CredentialMetadataPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialMetadataPatchResponse, error)
- func (c *ClientWithResponses) CredentialPatchWithBodyWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)
- func (c *ClientWithResponses) CredentialPatchWithResponse(ctx context.Context, credentialId CredentialId, params *CredentialPatchParams, body CredentialPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialPatchResponse, error)
- func (c *ClientWithResponses) CredentialRequestWithBodyWithResponse(ctx context.Context, params *CredentialRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CredentialRequestResponse, error)
- func (c *ClientWithResponses) CredentialRequestWithResponse(ctx context.Context, params *CredentialRequestParams, body CredentialRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CredentialRequestResponse, error)
- func (c *ClientWithResponses) DeferredStatusWithResponse(ctx context.Context, deferredId string, params *DeferredStatusParams, reqEditors ...RequestEditorFn) (*DeferredStatusResponse, error)
- func (c *ClientWithResponses) GetCurrentDidWithResponse(ctx context.Context, params *GetCurrentDidParams, reqEditors ...RequestEditorFn) (*GetCurrentDidResponse, error)
- func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
- func (c *ClientWithResponses) HolderCreateAuthOfferWithBodyWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)
- func (c *ClientWithResponses) HolderCreateAuthOfferWithResponse(ctx context.Context, params *HolderCreateAuthOfferParams, body HolderCreateAuthOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*HolderCreateAuthOfferResponse, error)
- func (c *ClientWithResponses) IssuerCredentialTypesListWithResponse(ctx context.Context, params *IssuerCredentialTypesListParams, reqEditors ...RequestEditorFn) (*IssuerCredentialTypesListResponse, error)
- func (c *ClientWithResponses) OidcAcceptOfferWithBodyWithResponse(ctx context.Context, params *OidcAcceptOfferParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcAcceptOfferResponse, error)
- func (c *ClientWithResponses) OidcAcceptOfferWithResponse(ctx context.Context, params *OidcAcceptOfferParams, body OidcAcceptOfferJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcAcceptOfferResponse, error)
- func (c *ClientWithResponses) OidcAddCredToIssuanceQueueWithBodyWithResponse(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcAddCredToIssuanceQueueResponse, error)
- func (c *ClientWithResponses) OidcAddCredToIssuanceQueueWithResponse(ctx context.Context, credentialId string, params *OidcAddCredToIssuanceQueueParams, body OidcAddCredToIssuanceQueueJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcAddCredToIssuanceQueueResponse, error)
- func (c *ClientWithResponses) OidcCreateIdTokenRequestWithResponse(ctx context.Context, params *OidcCreateIdTokenRequestParams, reqEditors ...RequestEditorFn) (*OidcCreateIdTokenRequestResponse, error)
- func (c *ClientWithResponses) OidcInitiateDeferredWithBodyWithResponse(ctx context.Context, params *OidcInitiateDeferredParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcInitiateDeferredResponse, error)
- func (c *ClientWithResponses) OidcInitiateDeferredWithResponse(ctx context.Context, params *OidcInitiateDeferredParams, body OidcInitiateDeferredJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcInitiateDeferredResponse, error)
- func (c *ClientWithResponses) OidcInitiateIntimeWithBodyWithResponse(ctx context.Context, params *OidcInitiateIntimeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcInitiateIntimeResponse, error)
- func (c *ClientWithResponses) OidcInitiateIntimeWithResponse(ctx context.Context, params *OidcInitiateIntimeParams, body OidcInitiateIntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcInitiateIntimeResponse, error)
- func (c *ClientWithResponses) OidcInitiatePreauthWithBodyWithResponse(ctx context.Context, params *OidcInitiatePreauthParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcInitiatePreauthResponse, error)
- func (c *ClientWithResponses) OidcInitiatePreauthWithResponse(ctx context.Context, params *OidcInitiatePreauthParams, body OidcInitiatePreauthJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcInitiatePreauthResponse, error)
- func (c *ClientWithResponses) OidcPresentCredentialsWithBodyWithResponse(ctx context.Context, params *OidcPresentCredentialsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcPresentCredentialsResponse, error)
- func (c *ClientWithResponses) OidcPresentCredentialsWithResponse(ctx context.Context, params *OidcPresentCredentialsParams, body OidcPresentCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcPresentCredentialsResponse, error)
- func (c *ClientWithResponses) OidcSendIdTokenWithBodyWithResponse(ctx context.Context, params *OidcSendIdTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcSendIdTokenResponse, error)
- func (c *ClientWithResponses) OidcSendIdTokenWithResponse(ctx context.Context, params *OidcSendIdTokenParams, body OidcSendIdTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcSendIdTokenResponse, error)
- func (c *ClientWithResponses) OidcVerifyInitUrlWithBodyWithResponse(ctx context.Context, params *OidcVerifyInitUrlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OidcVerifyInitUrlResponse, error)
- func (c *ClientWithResponses) OidcVerifyInitUrlWithResponse(ctx context.Context, params *OidcVerifyInitUrlParams, body OidcVerifyInitUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*OidcVerifyInitUrlResponse, error)
- func (c *ClientWithResponses) OnboardLegalEntityWithResponse(ctx context.Context, params *OnboardLegalEntityParams, reqEditors ...RequestEditorFn) (*OnboardLegalEntityResponse, error)
- func (c *ClientWithResponses) WalletGetWithResponse(ctx context.Context, params *WalletGetParams, reqEditors ...RequestEditorFn) (*WalletGetResponse, error)
- func (c *ClientWithResponses) WalletListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WalletListResponse, error)
- func (c *ClientWithResponses) WalletNotificationsWithResponse(ctx context.Context, walletId string, reqEditors ...RequestEditorFn) (*WalletNotificationsResponse, error)
- func (c *ClientWithResponses) WalletSaveWithBodyWithResponse(ctx context.Context, params *WalletSaveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletSaveResponse, error)
- func (c *ClientWithResponses) WalletSaveWithResponse(ctx context.Context, params *WalletSaveParams, body WalletSaveJSONRequestBody, reqEditors ...RequestEditorFn) (*WalletSaveResponse, error)
- type ClientWithResponsesInterface
- type Config
- type Credential
- type CredentialBuilder
- func (b *CredentialBuilder) AddContext(contextLink string) *CredentialBuilder
- func (b *CredentialBuilder) AddCredentialSchema(schema *CredentialSchemaItem) error
- func (b *CredentialBuilder) AddCredentialSubject(subj *CredentialSubjectItem) error
- func (b *CredentialBuilder) AddType(t string) *CredentialBuilder
- func (b *CredentialBuilder) FromJsonBytes(credJson []byte) error
- func (b *CredentialBuilder) FromJsonFile(path string) error
- func (b *CredentialBuilder) SetCredentialStatus(status *CredentialStatus) *CredentialBuilder
- func (b *CredentialBuilder) SetCredentialSubject(subj *CredentialSubject) *CredentialBuilder
- func (b *CredentialBuilder) SetExpirationDate(t *time.Time) *CredentialBuilder
- func (b *CredentialBuilder) SetId(id CredentialId) *CredentialBuilder
- func (b *CredentialBuilder) SetIssuanceDate(t *time.Time) *CredentialBuilder
- func (b *CredentialBuilder) SetIssued(t *time.Time) *CredentialBuilder
- func (b *CredentialBuilder) SetIssuer(issuer string) *CredentialBuilder
- func (b *CredentialBuilder) SetType(t *[]string) *CredentialBuilder
- func (b *CredentialBuilder) SetValidFrom(t *time.Time) *CredentialBuilder
- func (b *CredentialBuilder) SetValidUntil(t *time.Time) *CredentialBuilder
- func (b *CredentialBuilder) ToBytes() ([]byte, error)
- func (b *CredentialBuilder) Validate() error
- type CredentialCreateJSONRequestBody
- type CredentialCreateParams
- type CredentialCreateResponse
- type CredentialGetParams
- type CredentialGetResponse
- type CredentialId
- type CredentialIdObject
- type CredentialImport
- type CredentialImportJSONRequestBody
- type CredentialImportParams
- type CredentialImportResponse
- type CredentialIssuerDefinition
- type CredentialIssuerDefinitionCredentialFormat
- type CredentialIssuerDefinitionCredentialIssuer
- type CredentialList
- type CredentialListParams
- type CredentialListResponse
- type CredentialMetadata
- type CredentialMetadataPatchJSONRequestBody
- type CredentialMetadataPatchParams
- type CredentialMetadataPatchResponse
- type CredentialMetadataStatus
- type CredentialPatchJSONRequestBody
- type CredentialPatchParams
- type CredentialPatchResponse
- type CredentialPayload
- type CredentialRequest
- type CredentialRequestJSONRequestBody
- type CredentialRequestParams
- type CredentialRequestResponse
- type CredentialSchema
- func (t CredentialSchema) AsCredentialSchema1() (CredentialSchema1, error)
- func (t CredentialSchema) AsCredentialSchemaItem() (CredentialSchemaItem, error)
- func (t *CredentialSchema) FromCredentialSchema1(v CredentialSchema1) error
- func (t *CredentialSchema) FromCredentialSchemaItem(v CredentialSchemaItem) error
- func (t CredentialSchema) MarshalJSON() ([]byte, error)
- func (t *CredentialSchema) MergeCredentialSchema1(v CredentialSchema1) error
- func (t *CredentialSchema) MergeCredentialSchemaItem(v CredentialSchemaItem) error
- func (t *CredentialSchema) UnmarshalJSON(b []byte) error
- type CredentialSchema1
- type CredentialSchemaId
- type CredentialSchemaItem
- type CredentialStatus
- type CredentialSubject
- func (t CredentialSubject) AsCredentialSubject1() (CredentialSubject1, error)
- func (t CredentialSubject) AsCredentialSubjectItem() (CredentialSubjectItem, error)
- func (t *CredentialSubject) FromCredentialSubject1(v CredentialSubject1) error
- func (t *CredentialSubject) FromCredentialSubjectItem(v CredentialSubjectItem) error
- func (t CredentialSubject) MarshalJSON() ([]byte, error)
- func (t *CredentialSubject) MergeCredentialSubject1(v CredentialSubject1) error
- func (t *CredentialSubject) MergeCredentialSubjectItem(v CredentialSubjectItem) error
- func (t *CredentialSubject) UnmarshalJSON(b []byte) error
- type CredentialSubject1
- type CredentialSubjectItem
- type CredentialType
- type CredentialTypes
- type CredentialVerifierDefinition
- type CredentialWrapper
- type Deferred
- type DeferredStatus
- type DeferredStatusParams
- type DeferredStatusResponse
- type Did
- type Error
- type Evidence
- type EvidenceItem
- type GetCurrentDidParams
- type GetCurrentDidResponse
- type HealthCheckResponse
- type HealthStatus
- type HealthStatusStatus
- type HolderAuthOfferCreationRequest
- type HolderCreateAuthOfferJSONRequestBody
- type HolderCreateAuthOfferParams
- type HolderCreateAuthOfferResponse
- type HttpRequestDoer
- type IdTokenReceivedNotification
- type IdTokenRequest
- type IdTokenSendRequest
- type InitAuthOffer
- type InitPreAuthOffer
- type IssuanceQueueCredentialAdd
- type IssuerCredentialTypesListParams
- type IssuerCredentialTypesListResponse
- type OidcAcceptOfferJSONRequestBody
- type OidcAcceptOfferParams
- type OidcAcceptOfferResponse
- type OidcAddCredToIssuanceQueueJSONRequestBody
- type OidcAddCredToIssuanceQueueParams
- type OidcAddCredToIssuanceQueueResponse
- type OidcCreateIdTokenRequestParams
- type OidcCreateIdTokenRequestResponse
- type OidcInitiateDeferredJSONRequestBody
- type OidcInitiateDeferredParams
- type OidcInitiateDeferredResponse
- type OidcInitiateIntimeJSONRequestBody
- type OidcInitiateIntimeParams
- type OidcInitiateIntimeResponse
- type OidcInitiatePreauthJSONRequestBody
- type OidcInitiatePreauthParams
- type OidcInitiatePreauthResponse
- type OidcPresentCredentialsJSONRequestBody
- type OidcPresentCredentialsParams
- type OidcPresentCredentialsResponse
- type OidcSendIdTokenJSONRequestBody
- type OidcSendIdTokenParams
- type OidcSendIdTokenResponse
- type OidcVerifyInitUrlJSONRequestBody
- type OidcVerifyInitUrlParams
- type OidcVerifyInitUrlResponse
- type OnboardLegalEntityParams
- type OnboardLegalEntityResponse
- type PreAuthOffer
- type PresentationDefinition
- type PresentationDefinitionFormat
- type PresentationDefinitionFormatAlg
- type PresentationDefinitionInputConstraint
- type PresentationDefinitionInputConstraintField
- type PresentationDefinitionInputDescriptor
- type PresentationRequest
- type Proof
- type RefreshService
- func (t RefreshService) AsRefreshService1() (RefreshService1, error)
- func (t RefreshService) AsRefreshServiceItem() (RefreshServiceItem, error)
- func (t *RefreshService) FromRefreshService1(v RefreshService1) error
- func (t *RefreshService) FromRefreshServiceItem(v RefreshServiceItem) error
- func (t RefreshService) MarshalJSON() ([]byte, error)
- func (t *RefreshService) MergeRefreshService1(v RefreshService1) error
- func (t *RefreshService) MergeRefreshServiceItem(v RefreshServiceItem) error
- func (t *RefreshService) UnmarshalJSON(b []byte) error
- type RefreshService1
- type RefreshServiceItem
- type RequestEditorFn
- type SystemImpact
- type SystemImpactStatus
- type TermsOfUse
- type VcOffer
- type VerifyInitRequest
- type VerifyInitResponse
- type VpVerifiedNotification
- type Wallet
- type WalletConfig
- type WalletGetParams
- type WalletGetResponse
- type WalletList
- type WalletListResponse
- type WalletNotification
- type WalletNotificationEventType
- type WalletNotificationList
- type WalletNotification_EventDetails
- func (t WalletNotification_EventDetails) AsIdTokenReceivedNotification() (IdTokenReceivedNotification, error)
- func (t WalletNotification_EventDetails) AsVpVerifiedNotification() (VpVerifiedNotification, error)
- func (t *WalletNotification_EventDetails) FromIdTokenReceivedNotification(v IdTokenReceivedNotification) error
- func (t *WalletNotification_EventDetails) FromVpVerifiedNotification(v VpVerifiedNotification) error
- func (t WalletNotification_EventDetails) MarshalJSON() ([]byte, error)
- func (t *WalletNotification_EventDetails) MergeIdTokenReceivedNotification(v IdTokenReceivedNotification) error
- func (t *WalletNotification_EventDetails) MergeVpVerifiedNotification(v VpVerifiedNotification) error
- func (t *WalletNotification_EventDetails) UnmarshalJSON(b []byte) error
- type WalletNotificationsResponse
- type WalletSaveJSONRequestBody
- type WalletSaveParams
- type WalletSaveResponse
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