Documentation
¶
Overview ¶
Package clickfix provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Package clickfix provides a generated public API client and server-side helpers.
Index ¶
- func DecodeData[T any](env *IntegrationEnvelope) (T, error)
- func IdentityCompanyHash(secret, userID, companyID string) string
- func IdentityHash(secret, userID string) string
- func Iterate[T any](ctx context.Context, fetch func(context.Context, int, int) (Page[T], error), ...) error
- func NewCreateIntegrationConversationRequest(server string, params *CreateIntegrationConversationParams, ...) (*http.Request, error)
- func NewCreateIntegrationConversationRequestWithBody(server string, params *CreateIntegrationConversationParams, contentType string, ...) (*http.Request, error)
- func NewDeleteV1PublicApiWebhooksUuidRequest(server string, uuid openapi_types.UUID, ...) (*http.Request, error)
- func NewGetV1PublicApiCompaniesRequest(server string, params *GetV1PublicApiCompaniesParams) (*http.Request, error)
- func NewGetV1PublicApiContactsRequest(server string, params *GetV1PublicApiContactsParams) (*http.Request, error)
- func NewGetV1PublicApiConversationsRequest(server string, params *GetV1PublicApiConversationsParams) (*http.Request, error)
- func NewGetV1PublicApiConversationsUuidMessagesRequest(server string, uuid openapi_types.UUID) (*http.Request, error)
- func NewGetV1PublicApiConversationsUuidRequest(server string, uuid openapi_types.UUID) (*http.Request, error)
- func NewGetV1PublicApiWebhooksRequest(server string, params *GetV1PublicApiWebhooksParams) (*http.Request, error)
- func NewPatchV1PublicApiConversationsUuidRequest(server string, uuid openapi_types.UUID, ...) (*http.Request, error)
- func NewPatchV1PublicApiConversationsUuidRequestWithBody(server string, uuid openapi_types.UUID, ...) (*http.Request, error)
- func NewPollIntegrationTriggersRequest(server string, params *PollIntegrationTriggersParams) (*http.Request, error)
- func NewPostV1PublicApiCompanyEventRequest(server string, params *PostV1PublicApiCompanyEventParams, ...) (*http.Request, error)
- func NewPostV1PublicApiCompanyEventRequestWithBody(server string, params *PostV1PublicApiCompanyEventParams, contentType string, ...) (*http.Request, error)
- func NewPostV1PublicApiContactsRequest(server string, params *PostV1PublicApiContactsParams, ...) (*http.Request, error)
- func NewPostV1PublicApiContactsRequestWithBody(server string, params *PostV1PublicApiContactsParams, contentType string, ...) (*http.Request, error)
- func NewPostV1PublicApiConversationsUuidMessagesRequest(server string, uuid openapi_types.UUID, ...) (*http.Request, error)
- func NewPostV1PublicApiConversationsUuidMessagesRequestWithBody(server string, uuid openapi_types.UUID, ...) (*http.Request, error)
- func NewPostV1PublicApiWebhooksRequest(server string, params *PostV1PublicApiWebhooksParams, ...) (*http.Request, error)
- func NewPostV1PublicApiWebhooksRequestWithBody(server string, params *PostV1PublicApiWebhooksParams, contentType string, ...) (*http.Request, error)
- func NewPutV1PublicApiCompanyRevenueRequest(server string, params *PutV1PublicApiCompanyRevenueParams, ...) (*http.Request, error)
- func NewPutV1PublicApiCompanyRevenueRequestWithBody(server string, params *PutV1PublicApiCompanyRevenueParams, contentType string, ...) (*http.Request, error)
- func NewPutV1PublicApiCompanyUsageRequest(server string, params *PutV1PublicApiCompanyUsageParams, ...) (*http.Request, error)
- func NewPutV1PublicApiCompanyUsageRequestWithBody(server string, params *PutV1PublicApiCompanyUsageParams, contentType string, ...) (*http.Request, error)
- func NewPutV1PublicApiContactByExternalIdRequest(server string, params *PutV1PublicApiContactByExternalIdParams, ...) (*http.Request, error)
- func NewPutV1PublicApiContactByExternalIdRequestWithBody(server string, params *PutV1PublicApiContactByExternalIdParams, ...) (*http.Request, error)
- func NewPutV1PublicApiWebhooksUuidRequest(server string, uuid openapi_types.UUID, ...) (*http.Request, error)
- func NewPutV1PublicApiWebhooksUuidRequestWithBody(server string, uuid openapi_types.UUID, ...) (*http.Request, error)
- func NewSubscribeIntegrationTriggerRequest(server string, params *SubscribeIntegrationTriggerParams, ...) (*http.Request, error)
- func NewSubscribeIntegrationTriggerRequestWithBody(server string, params *SubscribeIntegrationTriggerParams, contentType string, ...) (*http.Request, error)
- func NewUnsubscribeIntegrationTriggerRequest(server string, uuid openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateIntegrationContactRequest(server string, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, ...) (*http.Request, error)
- func NewUpdateIntegrationContactRequestWithBody(server string, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, ...) (*http.Request, error)
- func VerifyWebhook(secret, timestamp, signature string, body []byte, now time.Time, ...) error
- type BadRequest
- type Client
- func (c *Client) CreateIntegrationConversation(ctx context.Context, params *CreateIntegrationConversationParams, ...) (*http.Response, error)
- func (c *Client) CreateIntegrationConversationWithBody(ctx context.Context, params *CreateIntegrationConversationParams, ...) (*http.Response, error)
- func (c *Client) DeleteV1PublicApiWebhooksUuid(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetV1PublicApiCompanies(ctx context.Context, params *GetV1PublicApiCompaniesParams, ...) (*http.Response, error)
- func (c *Client) GetV1PublicApiContacts(ctx context.Context, params *GetV1PublicApiContactsParams, ...) (*http.Response, error)
- func (c *Client) GetV1PublicApiConversations(ctx context.Context, params *GetV1PublicApiConversationsParams, ...) (*http.Response, error)
- func (c *Client) GetV1PublicApiConversationsUuid(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetV1PublicApiConversationsUuidMessages(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetV1PublicApiWebhooks(ctx context.Context, params *GetV1PublicApiWebhooksParams, ...) (*http.Response, error)
- func (c *Client) PatchV1PublicApiConversationsUuid(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) PatchV1PublicApiConversationsUuidWithBody(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) PollIntegrationTriggers(ctx context.Context, params *PollIntegrationTriggersParams, ...) (*http.Response, error)
- func (c *Client) PostV1PublicApiCompanyEvent(ctx context.Context, params *PostV1PublicApiCompanyEventParams, ...) (*http.Response, error)
- func (c *Client) PostV1PublicApiCompanyEventWithBody(ctx context.Context, params *PostV1PublicApiCompanyEventParams, ...) (*http.Response, error)
- func (c *Client) PostV1PublicApiContacts(ctx context.Context, params *PostV1PublicApiContactsParams, ...) (*http.Response, error)
- func (c *Client) PostV1PublicApiContactsWithBody(ctx context.Context, params *PostV1PublicApiContactsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostV1PublicApiConversationsUuidMessages(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) PostV1PublicApiConversationsUuidMessagesWithBody(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) PostV1PublicApiWebhooks(ctx context.Context, params *PostV1PublicApiWebhooksParams, ...) (*http.Response, error)
- func (c *Client) PostV1PublicApiWebhooksWithBody(ctx context.Context, params *PostV1PublicApiWebhooksParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PutV1PublicApiCompanyRevenue(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, ...) (*http.Response, error)
- func (c *Client) PutV1PublicApiCompanyRevenueWithBody(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, ...) (*http.Response, error)
- func (c *Client) PutV1PublicApiCompanyUsage(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, ...) (*http.Response, error)
- func (c *Client) PutV1PublicApiCompanyUsageWithBody(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, ...) (*http.Response, error)
- func (c *Client) PutV1PublicApiContactByExternalId(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, ...) (*http.Response, error)
- func (c *Client) PutV1PublicApiContactByExternalIdWithBody(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, ...) (*http.Response, error)
- func (c *Client) PutV1PublicApiWebhooksUuid(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) PutV1PublicApiWebhooksUuidWithBody(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) SubscribeIntegrationTrigger(ctx context.Context, params *SubscribeIntegrationTriggerParams, ...) (*http.Response, error)
- func (c *Client) SubscribeIntegrationTriggerWithBody(ctx context.Context, params *SubscribeIntegrationTriggerParams, ...) (*http.Response, error)
- func (c *Client) UnsubscribeIntegrationTrigger(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateIntegrationContact(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateIntegrationContactWithBody(ctx context.Context, uuid openapi_types.UUID, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateIntegrationConversationWithBodyWithResponse(ctx context.Context, params *CreateIntegrationConversationParams, ...) (*CreateIntegrationConversationResponse, error)
- func (c *ClientWithResponses) CreateIntegrationConversationWithResponse(ctx context.Context, params *CreateIntegrationConversationParams, ...) (*CreateIntegrationConversationResponse, error)
- func (c *ClientWithResponses) DeleteV1PublicApiWebhooksUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*DeleteV1PublicApiWebhooksUuidResponse, error)
- func (c *ClientWithResponses) GetV1PublicApiCompaniesWithResponse(ctx context.Context, params *GetV1PublicApiCompaniesParams, ...) (*GetV1PublicApiCompaniesResponse, error)
- func (c *ClientWithResponses) GetV1PublicApiContactsWithResponse(ctx context.Context, params *GetV1PublicApiContactsParams, ...) (*GetV1PublicApiContactsResponse, error)
- func (c *ClientWithResponses) GetV1PublicApiConversationsUuidMessagesWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetV1PublicApiConversationsUuidMessagesResponse, error)
- func (c *ClientWithResponses) GetV1PublicApiConversationsUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetV1PublicApiConversationsUuidResponse, error)
- func (c *ClientWithResponses) GetV1PublicApiConversationsWithResponse(ctx context.Context, params *GetV1PublicApiConversationsParams, ...) (*GetV1PublicApiConversationsResponse, error)
- func (c *ClientWithResponses) GetV1PublicApiWebhooksWithResponse(ctx context.Context, params *GetV1PublicApiWebhooksParams, ...) (*GetV1PublicApiWebhooksResponse, error)
- func (c *ClientWithResponses) PatchV1PublicApiConversationsUuidWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*PatchV1PublicApiConversationsUuidResponse, error)
- func (c *ClientWithResponses) PatchV1PublicApiConversationsUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*PatchV1PublicApiConversationsUuidResponse, error)
- func (c *ClientWithResponses) PollIntegrationTriggersWithResponse(ctx context.Context, params *PollIntegrationTriggersParams, ...) (*PollIntegrationTriggersResponse, error)
- func (c *ClientWithResponses) PostV1PublicApiCompanyEventWithBodyWithResponse(ctx context.Context, params *PostV1PublicApiCompanyEventParams, ...) (*PostV1PublicApiCompanyEventResponse, error)
- func (c *ClientWithResponses) PostV1PublicApiCompanyEventWithResponse(ctx context.Context, params *PostV1PublicApiCompanyEventParams, ...) (*PostV1PublicApiCompanyEventResponse, error)
- func (c *ClientWithResponses) PostV1PublicApiContactsWithBodyWithResponse(ctx context.Context, params *PostV1PublicApiContactsParams, contentType string, ...) (*PostV1PublicApiContactsResponse, error)
- func (c *ClientWithResponses) PostV1PublicApiContactsWithResponse(ctx context.Context, params *PostV1PublicApiContactsParams, ...) (*PostV1PublicApiContactsResponse, error)
- func (c *ClientWithResponses) PostV1PublicApiConversationsUuidMessagesWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*PostV1PublicApiConversationsUuidMessagesResponse, error)
- func (c *ClientWithResponses) PostV1PublicApiConversationsUuidMessagesWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*PostV1PublicApiConversationsUuidMessagesResponse, error)
- func (c *ClientWithResponses) PostV1PublicApiWebhooksWithBodyWithResponse(ctx context.Context, params *PostV1PublicApiWebhooksParams, contentType string, ...) (*PostV1PublicApiWebhooksResponse, error)
- func (c *ClientWithResponses) PostV1PublicApiWebhooksWithResponse(ctx context.Context, params *PostV1PublicApiWebhooksParams, ...) (*PostV1PublicApiWebhooksResponse, error)
- func (c *ClientWithResponses) PutV1PublicApiCompanyRevenueWithBodyWithResponse(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, ...) (*PutV1PublicApiCompanyRevenueResponse, error)
- func (c *ClientWithResponses) PutV1PublicApiCompanyRevenueWithResponse(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, ...) (*PutV1PublicApiCompanyRevenueResponse, error)
- func (c *ClientWithResponses) PutV1PublicApiCompanyUsageWithBodyWithResponse(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, ...) (*PutV1PublicApiCompanyUsageResponse, error)
- func (c *ClientWithResponses) PutV1PublicApiCompanyUsageWithResponse(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, ...) (*PutV1PublicApiCompanyUsageResponse, error)
- func (c *ClientWithResponses) PutV1PublicApiContactByExternalIdWithBodyWithResponse(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, ...) (*PutV1PublicApiContactByExternalIdResponse, error)
- func (c *ClientWithResponses) PutV1PublicApiContactByExternalIdWithResponse(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, ...) (*PutV1PublicApiContactByExternalIdResponse, error)
- func (c *ClientWithResponses) PutV1PublicApiWebhooksUuidWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*PutV1PublicApiWebhooksUuidResponse, error)
- func (c *ClientWithResponses) PutV1PublicApiWebhooksUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*PutV1PublicApiWebhooksUuidResponse, error)
- func (c *ClientWithResponses) SubscribeIntegrationTriggerWithBodyWithResponse(ctx context.Context, params *SubscribeIntegrationTriggerParams, ...) (*SubscribeIntegrationTriggerResponse, error)
- func (c *ClientWithResponses) SubscribeIntegrationTriggerWithResponse(ctx context.Context, params *SubscribeIntegrationTriggerParams, ...) (*SubscribeIntegrationTriggerResponse, error)
- func (c *ClientWithResponses) UnsubscribeIntegrationTriggerWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*UnsubscribeIntegrationTriggerResponse, error)
- func (c *ClientWithResponses) UpdateIntegrationContactWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*UpdateIntegrationContactResponse, error)
- func (c *ClientWithResponses) UpdateIntegrationContactWithResponse(ctx context.Context, uuid openapi_types.UUID, ...) (*UpdateIntegrationContactResponse, error)
- type ClientWithResponsesInterface
- type CompanyEvent
- type CompanyEventInput
- type CompanyRevenue
- type CompanyRevenueBillingStatus
- type CompanyRevenueSource
- type CompanyRevenueUpsertInput
- type CompanyRevenueUpsertInputBillingStatus
- type CompanyRevenueUpsertInputSource
- type CompanyUsageInput
- type Conflict
- type Contact
- type ContactIdentity
- type ContactIdentityState
- type ContactInput
- type ConversationPriority
- type ConversationStatus
- type ConversationUpdate
- type CreateIntegrationConversation201JSONResponseBodySuccess
- type CreateIntegrationConversationJSONRequestBody
- type CreateIntegrationConversationParams
- type CreateIntegrationConversationResponse
- func (r CreateIntegrationConversationResponse) ContentType() string
- func (r CreateIntegrationConversationResponse) GetBody() []byte
- func (r CreateIntegrationConversationResponse) GetJSON201() ...
- func (r CreateIntegrationConversationResponse) GetJSON400() *BadRequest
- func (r CreateIntegrationConversationResponse) GetJSON401() *Unauthenticated
- func (r CreateIntegrationConversationResponse) GetJSON403() *Forbidden
- func (r CreateIntegrationConversationResponse) GetJSON404() *NotFound
- func (r CreateIntegrationConversationResponse) Status() string
- func (r CreateIntegrationConversationResponse) StatusCode() int
- type DeleteV1PublicApiWebhooksUuidParams
- type DeleteV1PublicApiWebhooksUuidResponse
- func (r DeleteV1PublicApiWebhooksUuidResponse) ContentType() string
- func (r DeleteV1PublicApiWebhooksUuidResponse) GetBody() []byte
- func (r DeleteV1PublicApiWebhooksUuidResponse) GetJSON200() *IntegrationEnvelope
- func (r DeleteV1PublicApiWebhooksUuidResponse) GetJSON400() *BadRequest
- func (r DeleteV1PublicApiWebhooksUuidResponse) GetJSON401() *Unauthenticated
- func (r DeleteV1PublicApiWebhooksUuidResponse) GetJSON403() *Forbidden
- func (r DeleteV1PublicApiWebhooksUuidResponse) Status() string
- func (r DeleteV1PublicApiWebhooksUuidResponse) StatusCode() int
- type EnvelopeCompanyEvent
- type EnvelopeCompanyEventSuccess
- type EnvelopeCompanyRevenueUpsert
- type EnvelopeCompanyRevenueUpsertSuccess
- type EnvelopeCompanyUsage
- type EnvelopeCompanyUsageSuccess
- type EnvelopeContact
- type EnvelopeContactSuccess
- type Error
- type ErrorBody
- type ErrorDetail
- type ErrorSuccess
- type Forbidden
- type GetV1PublicApiCompaniesParams
- type GetV1PublicApiCompaniesResponse
- func (r GetV1PublicApiCompaniesResponse) ContentType() string
- func (r GetV1PublicApiCompaniesResponse) GetBody() []byte
- func (r GetV1PublicApiCompaniesResponse) GetJSON200() *IntegrationEnvelope
- func (r GetV1PublicApiCompaniesResponse) GetJSON400() *BadRequest
- func (r GetV1PublicApiCompaniesResponse) GetJSON401() *Unauthenticated
- func (r GetV1PublicApiCompaniesResponse) GetJSON403() *Forbidden
- func (r GetV1PublicApiCompaniesResponse) Status() string
- func (r GetV1PublicApiCompaniesResponse) StatusCode() int
- type GetV1PublicApiContactsParams
- type GetV1PublicApiContactsResponse
- func (r GetV1PublicApiContactsResponse) ContentType() string
- func (r GetV1PublicApiContactsResponse) GetBody() []byte
- func (r GetV1PublicApiContactsResponse) GetJSON200() *IntegrationEnvelope
- func (r GetV1PublicApiContactsResponse) GetJSON400() *BadRequest
- func (r GetV1PublicApiContactsResponse) GetJSON401() *Unauthenticated
- func (r GetV1PublicApiContactsResponse) GetJSON403() *Forbidden
- func (r GetV1PublicApiContactsResponse) Status() string
- func (r GetV1PublicApiContactsResponse) StatusCode() int
- type GetV1PublicApiConversationsParams
- type GetV1PublicApiConversationsResponse
- func (r GetV1PublicApiConversationsResponse) ContentType() string
- func (r GetV1PublicApiConversationsResponse) GetBody() []byte
- func (r GetV1PublicApiConversationsResponse) GetJSON200() *IntegrationEnvelope
- func (r GetV1PublicApiConversationsResponse) GetJSON400() *BadRequest
- func (r GetV1PublicApiConversationsResponse) GetJSON401() *Unauthenticated
- func (r GetV1PublicApiConversationsResponse) GetJSON403() *Forbidden
- func (r GetV1PublicApiConversationsResponse) Status() string
- func (r GetV1PublicApiConversationsResponse) StatusCode() int
- type GetV1PublicApiConversationsUuidMessagesResponse
- func (r GetV1PublicApiConversationsUuidMessagesResponse) ContentType() string
- func (r GetV1PublicApiConversationsUuidMessagesResponse) GetBody() []byte
- func (r GetV1PublicApiConversationsUuidMessagesResponse) GetJSON200() *IntegrationEnvelope
- func (r GetV1PublicApiConversationsUuidMessagesResponse) GetJSON400() *BadRequest
- func (r GetV1PublicApiConversationsUuidMessagesResponse) GetJSON401() *Unauthenticated
- func (r GetV1PublicApiConversationsUuidMessagesResponse) GetJSON403() *Forbidden
- func (r GetV1PublicApiConversationsUuidMessagesResponse) Status() string
- func (r GetV1PublicApiConversationsUuidMessagesResponse) StatusCode() int
- type GetV1PublicApiConversationsUuidResponse
- func (r GetV1PublicApiConversationsUuidResponse) ContentType() string
- func (r GetV1PublicApiConversationsUuidResponse) GetBody() []byte
- func (r GetV1PublicApiConversationsUuidResponse) GetJSON200() *IntegrationEnvelope
- func (r GetV1PublicApiConversationsUuidResponse) GetJSON400() *BadRequest
- func (r GetV1PublicApiConversationsUuidResponse) GetJSON401() *Unauthenticated
- func (r GetV1PublicApiConversationsUuidResponse) GetJSON403() *Forbidden
- func (r GetV1PublicApiConversationsUuidResponse) Status() string
- func (r GetV1PublicApiConversationsUuidResponse) StatusCode() int
- type GetV1PublicApiWebhooksParams
- type GetV1PublicApiWebhooksResponse
- func (r GetV1PublicApiWebhooksResponse) ContentType() string
- func (r GetV1PublicApiWebhooksResponse) GetBody() []byte
- func (r GetV1PublicApiWebhooksResponse) GetJSON200() *IntegrationEnvelope
- func (r GetV1PublicApiWebhooksResponse) GetJSON400() *BadRequest
- func (r GetV1PublicApiWebhooksResponse) GetJSON401() *Unauthenticated
- func (r GetV1PublicApiWebhooksResponse) GetJSON403() *Forbidden
- func (r GetV1PublicApiWebhooksResponse) Status() string
- func (r GetV1PublicApiWebhooksResponse) StatusCode() int
- type HttpRequestDoer
- type InboxRef
- type IntegrationContactUpdate
- type IntegrationCreateConversation
- type IntegrationEnvelope
- type IntegrationSubscription
- type IntegrationSubscriptionEvents
- type IntegrationTrigger
- type IntegrationTriggerEvent
- type IntegrationTriggerPage
- type NotFound
- type OutboundWebhookInput
- type Page
- type PatchV1PublicApiConversationsUuidJSONRequestBody
- type PatchV1PublicApiConversationsUuidParams
- type PatchV1PublicApiConversationsUuidResponse
- func (r PatchV1PublicApiConversationsUuidResponse) ContentType() string
- func (r PatchV1PublicApiConversationsUuidResponse) GetBody() []byte
- func (r PatchV1PublicApiConversationsUuidResponse) GetJSON200() *IntegrationEnvelope
- func (r PatchV1PublicApiConversationsUuidResponse) GetJSON400() *BadRequest
- func (r PatchV1PublicApiConversationsUuidResponse) GetJSON401() *Unauthenticated
- func (r PatchV1PublicApiConversationsUuidResponse) GetJSON403() *Forbidden
- func (r PatchV1PublicApiConversationsUuidResponse) Status() string
- func (r PatchV1PublicApiConversationsUuidResponse) StatusCode() int
- type PollIntegrationTriggers200JSONResponseBodySuccess
- type PollIntegrationTriggersParams
- type PollIntegrationTriggersParamsEvent
- type PollIntegrationTriggersResponse
- func (r PollIntegrationTriggersResponse) ContentType() string
- func (r PollIntegrationTriggersResponse) GetBody() []byte
- func (r PollIntegrationTriggersResponse) GetJSON200() ...
- func (r PollIntegrationTriggersResponse) GetJSON400() *BadRequest
- func (r PollIntegrationTriggersResponse) GetJSON401() *Unauthenticated
- func (r PollIntegrationTriggersResponse) GetJSON403() *Forbidden
- func (r PollIntegrationTriggersResponse) GetJSON404() *NotFound
- func (r PollIntegrationTriggersResponse) GetJSON410() *Error
- func (r PollIntegrationTriggersResponse) Status() string
- func (r PollIntegrationTriggersResponse) StatusCode() int
- type PostV1PublicApiCompanyEventJSONRequestBody
- type PostV1PublicApiCompanyEventParams
- type PostV1PublicApiCompanyEventResponse
- func (r PostV1PublicApiCompanyEventResponse) ContentType() string
- func (r PostV1PublicApiCompanyEventResponse) GetBody() []byte
- func (r PostV1PublicApiCompanyEventResponse) GetJSON200() *EnvelopeCompanyEvent
- func (r PostV1PublicApiCompanyEventResponse) GetJSON201() *EnvelopeCompanyEvent
- func (r PostV1PublicApiCompanyEventResponse) GetJSON400() *BadRequest
- func (r PostV1PublicApiCompanyEventResponse) GetJSON401() *Unauthenticated
- func (r PostV1PublicApiCompanyEventResponse) GetJSON403() *Forbidden
- func (r PostV1PublicApiCompanyEventResponse) GetJSON404() *NotFound
- func (r PostV1PublicApiCompanyEventResponse) GetJSON409() *Conflict
- func (r PostV1PublicApiCompanyEventResponse) GetJSON422() *ValidationError
- func (r PostV1PublicApiCompanyEventResponse) Status() string
- func (r PostV1PublicApiCompanyEventResponse) StatusCode() int
- type PostV1PublicApiContactsJSONRequestBody
- type PostV1PublicApiContactsParams
- type PostV1PublicApiContactsResponse
- func (r PostV1PublicApiContactsResponse) ContentType() string
- func (r PostV1PublicApiContactsResponse) GetBody() []byte
- func (r PostV1PublicApiContactsResponse) GetJSON201() *EnvelopeContact
- func (r PostV1PublicApiContactsResponse) GetJSON400() *BadRequest
- func (r PostV1PublicApiContactsResponse) GetJSON401() *Unauthenticated
- func (r PostV1PublicApiContactsResponse) GetJSON403() *Forbidden
- func (r PostV1PublicApiContactsResponse) GetJSON409() *Conflict
- func (r PostV1PublicApiContactsResponse) Status() string
- func (r PostV1PublicApiContactsResponse) StatusCode() int
- type PostV1PublicApiConversationsUuidMessagesJSONBody
- type PostV1PublicApiConversationsUuidMessagesJSONRequestBody
- type PostV1PublicApiConversationsUuidMessagesParams
- type PostV1PublicApiConversationsUuidMessagesResponse
- func (r PostV1PublicApiConversationsUuidMessagesResponse) ContentType() string
- func (r PostV1PublicApiConversationsUuidMessagesResponse) GetBody() []byte
- func (r PostV1PublicApiConversationsUuidMessagesResponse) GetJSON201() *IntegrationEnvelope
- func (r PostV1PublicApiConversationsUuidMessagesResponse) GetJSON400() *BadRequest
- func (r PostV1PublicApiConversationsUuidMessagesResponse) GetJSON401() *Unauthenticated
- func (r PostV1PublicApiConversationsUuidMessagesResponse) GetJSON403() *Forbidden
- func (r PostV1PublicApiConversationsUuidMessagesResponse) Status() string
- func (r PostV1PublicApiConversationsUuidMessagesResponse) StatusCode() int
- type PostV1PublicApiWebhooksJSONRequestBody
- type PostV1PublicApiWebhooksParams
- type PostV1PublicApiWebhooksResponse
- func (r PostV1PublicApiWebhooksResponse) ContentType() string
- func (r PostV1PublicApiWebhooksResponse) GetBody() []byte
- func (r PostV1PublicApiWebhooksResponse) GetJSON201() *IntegrationEnvelope
- func (r PostV1PublicApiWebhooksResponse) GetJSON400() *BadRequest
- func (r PostV1PublicApiWebhooksResponse) GetJSON401() *Unauthenticated
- func (r PostV1PublicApiWebhooksResponse) GetJSON403() *Forbidden
- func (r PostV1PublicApiWebhooksResponse) Status() string
- func (r PostV1PublicApiWebhooksResponse) StatusCode() int
- type PutV1PublicApiCompanyRevenueJSONRequestBody
- type PutV1PublicApiCompanyRevenueParams
- type PutV1PublicApiCompanyRevenueResponse
- func (r PutV1PublicApiCompanyRevenueResponse) ContentType() string
- func (r PutV1PublicApiCompanyRevenueResponse) GetBody() []byte
- func (r PutV1PublicApiCompanyRevenueResponse) GetJSON200() *EnvelopeCompanyRevenueUpsert
- func (r PutV1PublicApiCompanyRevenueResponse) GetJSON400() *BadRequest
- func (r PutV1PublicApiCompanyRevenueResponse) GetJSON401() *Unauthenticated
- func (r PutV1PublicApiCompanyRevenueResponse) GetJSON403() *Forbidden
- func (r PutV1PublicApiCompanyRevenueResponse) GetJSON404() *NotFound
- func (r PutV1PublicApiCompanyRevenueResponse) GetJSON409() *Conflict
- func (r PutV1PublicApiCompanyRevenueResponse) GetJSON422() *ValidationError
- func (r PutV1PublicApiCompanyRevenueResponse) Status() string
- func (r PutV1PublicApiCompanyRevenueResponse) StatusCode() int
- type PutV1PublicApiCompanyUsageJSONRequestBody
- type PutV1PublicApiCompanyUsageParams
- type PutV1PublicApiCompanyUsageResponse
- func (r PutV1PublicApiCompanyUsageResponse) ContentType() string
- func (r PutV1PublicApiCompanyUsageResponse) GetBody() []byte
- func (r PutV1PublicApiCompanyUsageResponse) GetJSON200() *EnvelopeCompanyUsage
- func (r PutV1PublicApiCompanyUsageResponse) GetJSON400() *BadRequest
- func (r PutV1PublicApiCompanyUsageResponse) GetJSON401() *Unauthenticated
- func (r PutV1PublicApiCompanyUsageResponse) GetJSON403() *Forbidden
- func (r PutV1PublicApiCompanyUsageResponse) GetJSON404() *NotFound
- func (r PutV1PublicApiCompanyUsageResponse) GetJSON409() *Conflict
- func (r PutV1PublicApiCompanyUsageResponse) GetJSON422() *ValidationError
- func (r PutV1PublicApiCompanyUsageResponse) Status() string
- func (r PutV1PublicApiCompanyUsageResponse) StatusCode() int
- type PutV1PublicApiContactByExternalIdJSONBody
- type PutV1PublicApiContactByExternalIdJSONRequestBody
- type PutV1PublicApiContactByExternalIdParams
- type PutV1PublicApiContactByExternalIdResponse
- func (r PutV1PublicApiContactByExternalIdResponse) ContentType() string
- func (r PutV1PublicApiContactByExternalIdResponse) GetBody() []byte
- func (r PutV1PublicApiContactByExternalIdResponse) GetJSON200() *EnvelopeContact
- func (r PutV1PublicApiContactByExternalIdResponse) GetJSON201() *EnvelopeContact
- func (r PutV1PublicApiContactByExternalIdResponse) GetJSON400() *BadRequest
- func (r PutV1PublicApiContactByExternalIdResponse) GetJSON401() *Unauthenticated
- func (r PutV1PublicApiContactByExternalIdResponse) GetJSON403() *Forbidden
- func (r PutV1PublicApiContactByExternalIdResponse) GetJSON409() *Conflict
- func (r PutV1PublicApiContactByExternalIdResponse) Status() string
- func (r PutV1PublicApiContactByExternalIdResponse) StatusCode() int
- type PutV1PublicApiWebhooksUuidJSONRequestBody
- type PutV1PublicApiWebhooksUuidParams
- type PutV1PublicApiWebhooksUuidResponse
- func (r PutV1PublicApiWebhooksUuidResponse) ContentType() string
- func (r PutV1PublicApiWebhooksUuidResponse) GetBody() []byte
- func (r PutV1PublicApiWebhooksUuidResponse) GetJSON200() *IntegrationEnvelope
- func (r PutV1PublicApiWebhooksUuidResponse) GetJSON400() *BadRequest
- func (r PutV1PublicApiWebhooksUuidResponse) GetJSON401() *Unauthenticated
- func (r PutV1PublicApiWebhooksUuidResponse) GetJSON403() *Forbidden
- func (r PutV1PublicApiWebhooksUuidResponse) Status() string
- func (r PutV1PublicApiWebhooksUuidResponse) StatusCode() int
- type RequestEditorFn
- type ResponseMeta
- type RetryClient
- type SDK
- type SubscribeIntegrationTrigger200JSONResponseBodySuccess
- type SubscribeIntegrationTriggerJSONRequestBody
- type SubscribeIntegrationTriggerParams
- type SubscribeIntegrationTriggerResponse
- func (r SubscribeIntegrationTriggerResponse) ContentType() string
- func (r SubscribeIntegrationTriggerResponse) GetBody() []byte
- func (r SubscribeIntegrationTriggerResponse) GetJSON200() ...
- func (r SubscribeIntegrationTriggerResponse) GetJSON400() *BadRequest
- func (r SubscribeIntegrationTriggerResponse) GetJSON401() *Unauthenticated
- func (r SubscribeIntegrationTriggerResponse) GetJSON403() *Forbidden
- func (r SubscribeIntegrationTriggerResponse) GetJSON404() *NotFound
- func (r SubscribeIntegrationTriggerResponse) Status() string
- func (r SubscribeIntegrationTriggerResponse) StatusCode() int
- type Unauthenticated
- type UnsubscribeIntegrationTrigger200JSONResponseBodySuccess
- type UnsubscribeIntegrationTriggerParams
- type UnsubscribeIntegrationTriggerResponse
- func (r UnsubscribeIntegrationTriggerResponse) ContentType() string
- func (r UnsubscribeIntegrationTriggerResponse) GetBody() []byte
- func (r UnsubscribeIntegrationTriggerResponse) GetJSON200() ...
- func (r UnsubscribeIntegrationTriggerResponse) GetJSON400() *BadRequest
- func (r UnsubscribeIntegrationTriggerResponse) GetJSON401() *Unauthenticated
- func (r UnsubscribeIntegrationTriggerResponse) GetJSON403() *Forbidden
- func (r UnsubscribeIntegrationTriggerResponse) GetJSON404() *NotFound
- func (r UnsubscribeIntegrationTriggerResponse) Status() string
- func (r UnsubscribeIntegrationTriggerResponse) StatusCode() int
- type UpdateIntegrationContact200JSONResponseBodySuccess
- type UpdateIntegrationContactJSONRequestBody
- type UpdateIntegrationContactParams
- type UpdateIntegrationContactResponse
- func (r UpdateIntegrationContactResponse) ContentType() string
- func (r UpdateIntegrationContactResponse) GetBody() []byte
- func (r UpdateIntegrationContactResponse) GetJSON200() ...
- func (r UpdateIntegrationContactResponse) GetJSON400() *BadRequest
- func (r UpdateIntegrationContactResponse) GetJSON401() *Unauthenticated
- func (r UpdateIntegrationContactResponse) GetJSON403() *Forbidden
- func (r UpdateIntegrationContactResponse) GetJSON404() *NotFound
- func (r UpdateIntegrationContactResponse) Status() string
- func (r UpdateIntegrationContactResponse) StatusCode() int
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeData ¶ added in v0.3.0
func DecodeData[T any](env *IntegrationEnvelope) (T, error)
DecodeData decodes the data member of a generic response envelope into T. Several list and detail responses are typed IntegrationEnvelope with an untyped Data; DecodeData gives them a concrete type without a hand-written envelope, for example
res, _ := sdk.GetV1PublicApiCompaniesWithResponse(ctx, params) page, err := clickfix.DecodeData[clickfix.Page[MyCompany]](res.JSON200)
A nil envelope (the response was not a 200) is an error.
func IdentityCompanyHash ¶
IdentityCompanyHash is the widget user_hash of a user id together with the company's id in your system (sent to identify as company.id): hex(HMAC-SHA256(secret, userID + "\n" + companyID)), so a signed-in user cannot claim another company. With an empty companyID it equals IdentityHash. The ids are separated by a newline inside the signed bytes, so an id that contains a line break cannot be signed: the result is then "" (which the widget API never accepts), as the Node helper throws.
func IdentityHash ¶
IdentityHash is the widget user_hash of a user id alone: hex(HMAC-SHA256(secret, userID)). It is calculated on your server; never expose the identity secret to a browser or an app. For a user that belongs to a company use IdentityCompanyHash.
func Iterate ¶
func Iterate[T any](ctx context.Context, fetch func(context.Context, int, int) (Page[T], error), yield func(T) bool) error
Iterate traverses a standard offset page, stops on an empty page, and propagates cancellation.
func NewCreateIntegrationConversationRequest ¶
func NewCreateIntegrationConversationRequest(server string, params *CreateIntegrationConversationParams, body CreateIntegrationConversationJSONRequestBody) (*http.Request, error)
NewCreateIntegrationConversationRequest calls the generic CreateIntegrationConversation builder with application/json body
func NewCreateIntegrationConversationRequestWithBody ¶
func NewCreateIntegrationConversationRequestWithBody(server string, params *CreateIntegrationConversationParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateIntegrationConversationRequestWithBody constructs an http.Request for the CreateIntegrationConversation method, with any body, and a specified content type
func NewDeleteV1PublicApiWebhooksUuidRequest ¶
func NewDeleteV1PublicApiWebhooksUuidRequest(server string, uuid openapi_types.UUID, params *DeleteV1PublicApiWebhooksUuidParams) (*http.Request, error)
NewDeleteV1PublicApiWebhooksUuidRequest constructs an http.Request for the DeleteV1PublicApiWebhooksUuid method
func NewGetV1PublicApiCompaniesRequest ¶
func NewGetV1PublicApiCompaniesRequest(server string, params *GetV1PublicApiCompaniesParams) (*http.Request, error)
NewGetV1PublicApiCompaniesRequest constructs an http.Request for the GetV1PublicApiCompanies method
func NewGetV1PublicApiContactsRequest ¶
func NewGetV1PublicApiContactsRequest(server string, params *GetV1PublicApiContactsParams) (*http.Request, error)
NewGetV1PublicApiContactsRequest constructs an http.Request for the GetV1PublicApiContacts method
func NewGetV1PublicApiConversationsRequest ¶
func NewGetV1PublicApiConversationsRequest(server string, params *GetV1PublicApiConversationsParams) (*http.Request, error)
NewGetV1PublicApiConversationsRequest constructs an http.Request for the GetV1PublicApiConversations method
func NewGetV1PublicApiConversationsUuidMessagesRequest ¶
func NewGetV1PublicApiConversationsUuidMessagesRequest(server string, uuid openapi_types.UUID) (*http.Request, error)
NewGetV1PublicApiConversationsUuidMessagesRequest constructs an http.Request for the GetV1PublicApiConversationsUuidMessages method
func NewGetV1PublicApiConversationsUuidRequest ¶
func NewGetV1PublicApiConversationsUuidRequest(server string, uuid openapi_types.UUID) (*http.Request, error)
NewGetV1PublicApiConversationsUuidRequest constructs an http.Request for the GetV1PublicApiConversationsUuid method
func NewGetV1PublicApiWebhooksRequest ¶
func NewGetV1PublicApiWebhooksRequest(server string, params *GetV1PublicApiWebhooksParams) (*http.Request, error)
NewGetV1PublicApiWebhooksRequest constructs an http.Request for the GetV1PublicApiWebhooks method
func NewPatchV1PublicApiConversationsUuidRequest ¶
func NewPatchV1PublicApiConversationsUuidRequest(server string, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, body PatchV1PublicApiConversationsUuidJSONRequestBody) (*http.Request, error)
NewPatchV1PublicApiConversationsUuidRequest calls the generic PatchV1PublicApiConversationsUuid builder with application/json body
func NewPatchV1PublicApiConversationsUuidRequestWithBody ¶
func NewPatchV1PublicApiConversationsUuidRequestWithBody(server string, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, contentType string, body io.Reader) (*http.Request, error)
NewPatchV1PublicApiConversationsUuidRequestWithBody constructs an http.Request for the PatchV1PublicApiConversationsUuid method, with any body, and a specified content type
func NewPollIntegrationTriggersRequest ¶
func NewPollIntegrationTriggersRequest(server string, params *PollIntegrationTriggersParams) (*http.Request, error)
NewPollIntegrationTriggersRequest constructs an http.Request for the PollIntegrationTriggers method
func NewPostV1PublicApiCompanyEventRequest ¶
func NewPostV1PublicApiCompanyEventRequest(server string, params *PostV1PublicApiCompanyEventParams, body PostV1PublicApiCompanyEventJSONRequestBody) (*http.Request, error)
NewPostV1PublicApiCompanyEventRequest calls the generic PostV1PublicApiCompanyEvent builder with application/json body
func NewPostV1PublicApiCompanyEventRequestWithBody ¶
func NewPostV1PublicApiCompanyEventRequestWithBody(server string, params *PostV1PublicApiCompanyEventParams, contentType string, body io.Reader) (*http.Request, error)
NewPostV1PublicApiCompanyEventRequestWithBody constructs an http.Request for the PostV1PublicApiCompanyEvent method, with any body, and a specified content type
func NewPostV1PublicApiContactsRequest ¶
func NewPostV1PublicApiContactsRequest(server string, params *PostV1PublicApiContactsParams, body PostV1PublicApiContactsJSONRequestBody) (*http.Request, error)
NewPostV1PublicApiContactsRequest calls the generic PostV1PublicApiContacts builder with application/json body
func NewPostV1PublicApiContactsRequestWithBody ¶
func NewPostV1PublicApiContactsRequestWithBody(server string, params *PostV1PublicApiContactsParams, contentType string, body io.Reader) (*http.Request, error)
NewPostV1PublicApiContactsRequestWithBody constructs an http.Request for the PostV1PublicApiContacts method, with any body, and a specified content type
func NewPostV1PublicApiConversationsUuidMessagesRequest ¶
func NewPostV1PublicApiConversationsUuidMessagesRequest(server string, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, body PostV1PublicApiConversationsUuidMessagesJSONRequestBody) (*http.Request, error)
NewPostV1PublicApiConversationsUuidMessagesRequest calls the generic PostV1PublicApiConversationsUuidMessages builder with application/json body
func NewPostV1PublicApiConversationsUuidMessagesRequestWithBody ¶
func NewPostV1PublicApiConversationsUuidMessagesRequestWithBody(server string, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, contentType string, body io.Reader) (*http.Request, error)
NewPostV1PublicApiConversationsUuidMessagesRequestWithBody constructs an http.Request for the PostV1PublicApiConversationsUuidMessages method, with any body, and a specified content type
func NewPostV1PublicApiWebhooksRequest ¶
func NewPostV1PublicApiWebhooksRequest(server string, params *PostV1PublicApiWebhooksParams, body PostV1PublicApiWebhooksJSONRequestBody) (*http.Request, error)
NewPostV1PublicApiWebhooksRequest calls the generic PostV1PublicApiWebhooks builder with application/json body
func NewPostV1PublicApiWebhooksRequestWithBody ¶
func NewPostV1PublicApiWebhooksRequestWithBody(server string, params *PostV1PublicApiWebhooksParams, contentType string, body io.Reader) (*http.Request, error)
NewPostV1PublicApiWebhooksRequestWithBody constructs an http.Request for the PostV1PublicApiWebhooks method, with any body, and a specified content type
func NewPutV1PublicApiCompanyRevenueRequest ¶
func NewPutV1PublicApiCompanyRevenueRequest(server string, params *PutV1PublicApiCompanyRevenueParams, body PutV1PublicApiCompanyRevenueJSONRequestBody) (*http.Request, error)
NewPutV1PublicApiCompanyRevenueRequest calls the generic PutV1PublicApiCompanyRevenue builder with application/json body
func NewPutV1PublicApiCompanyRevenueRequestWithBody ¶
func NewPutV1PublicApiCompanyRevenueRequestWithBody(server string, params *PutV1PublicApiCompanyRevenueParams, contentType string, body io.Reader) (*http.Request, error)
NewPutV1PublicApiCompanyRevenueRequestWithBody constructs an http.Request for the PutV1PublicApiCompanyRevenue method, with any body, and a specified content type
func NewPutV1PublicApiCompanyUsageRequest ¶
func NewPutV1PublicApiCompanyUsageRequest(server string, params *PutV1PublicApiCompanyUsageParams, body PutV1PublicApiCompanyUsageJSONRequestBody) (*http.Request, error)
NewPutV1PublicApiCompanyUsageRequest calls the generic PutV1PublicApiCompanyUsage builder with application/json body
func NewPutV1PublicApiCompanyUsageRequestWithBody ¶
func NewPutV1PublicApiCompanyUsageRequestWithBody(server string, params *PutV1PublicApiCompanyUsageParams, contentType string, body io.Reader) (*http.Request, error)
NewPutV1PublicApiCompanyUsageRequestWithBody constructs an http.Request for the PutV1PublicApiCompanyUsage method, with any body, and a specified content type
func NewPutV1PublicApiContactByExternalIdRequest ¶
func NewPutV1PublicApiContactByExternalIdRequest(server string, params *PutV1PublicApiContactByExternalIdParams, body PutV1PublicApiContactByExternalIdJSONRequestBody) (*http.Request, error)
NewPutV1PublicApiContactByExternalIdRequest calls the generic PutV1PublicApiContactByExternalId builder with application/json body
func NewPutV1PublicApiContactByExternalIdRequestWithBody ¶
func NewPutV1PublicApiContactByExternalIdRequestWithBody(server string, params *PutV1PublicApiContactByExternalIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutV1PublicApiContactByExternalIdRequestWithBody constructs an http.Request for the PutV1PublicApiContactByExternalId method, with any body, and a specified content type
func NewPutV1PublicApiWebhooksUuidRequest ¶
func NewPutV1PublicApiWebhooksUuidRequest(server string, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, body PutV1PublicApiWebhooksUuidJSONRequestBody) (*http.Request, error)
NewPutV1PublicApiWebhooksUuidRequest calls the generic PutV1PublicApiWebhooksUuid builder with application/json body
func NewPutV1PublicApiWebhooksUuidRequestWithBody ¶
func NewPutV1PublicApiWebhooksUuidRequestWithBody(server string, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, contentType string, body io.Reader) (*http.Request, error)
NewPutV1PublicApiWebhooksUuidRequestWithBody constructs an http.Request for the PutV1PublicApiWebhooksUuid method, with any body, and a specified content type
func NewSubscribeIntegrationTriggerRequest ¶
func NewSubscribeIntegrationTriggerRequest(server string, params *SubscribeIntegrationTriggerParams, body SubscribeIntegrationTriggerJSONRequestBody) (*http.Request, error)
NewSubscribeIntegrationTriggerRequest calls the generic SubscribeIntegrationTrigger builder with application/json body
func NewSubscribeIntegrationTriggerRequestWithBody ¶
func NewSubscribeIntegrationTriggerRequestWithBody(server string, params *SubscribeIntegrationTriggerParams, contentType string, body io.Reader) (*http.Request, error)
NewSubscribeIntegrationTriggerRequestWithBody constructs an http.Request for the SubscribeIntegrationTrigger method, with any body, and a specified content type
func NewUnsubscribeIntegrationTriggerRequest ¶
func NewUnsubscribeIntegrationTriggerRequest(server string, uuid openapi_types.UUID, params *UnsubscribeIntegrationTriggerParams) (*http.Request, error)
NewUnsubscribeIntegrationTriggerRequest constructs an http.Request for the UnsubscribeIntegrationTrigger method
func NewUpdateIntegrationContactRequest ¶
func NewUpdateIntegrationContactRequest(server string, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, body UpdateIntegrationContactJSONRequestBody) (*http.Request, error)
NewUpdateIntegrationContactRequest calls the generic UpdateIntegrationContact builder with application/json body
func NewUpdateIntegrationContactRequestWithBody ¶
func NewUpdateIntegrationContactRequestWithBody(server string, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateIntegrationContactRequestWithBody constructs an http.Request for the UpdateIntegrationContact method, with any body, and a specified content type
Types ¶
type Client ¶
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
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateIntegrationConversation ¶
func (c *Client) CreateIntegrationConversation(ctx context.Context, params *CreateIntegrationConversationParams, body CreateIntegrationConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateIntegrationConversation Create conversation
Requires conversations:write and current conversation read/manage. Active inbox and contact must belong to the key organization. Conversation is assigned to the key creator.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/public-api/conversations (the `CreateIntegrationConversation` operationId).
func (*Client) CreateIntegrationConversationWithBody ¶
func (c *Client) CreateIntegrationConversationWithBody(ctx context.Context, params *CreateIntegrationConversationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateIntegrationConversationWithBody Create conversation
Requires conversations:write and current conversation read/manage. Active inbox and contact must belong to the key organization. Conversation is assigned to the key creator.
Takes any type of body and a specified content type.
Corresponds with POST /v1/public-api/conversations (the `CreateIntegrationConversation` operationId).
func (*Client) DeleteV1PublicApiWebhooksUuid ¶
func (c *Client) DeleteV1PublicApiWebhooksUuid(ctx context.Context, uuid openapi_types.UUID, params *DeleteV1PublicApiWebhooksUuidParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteV1PublicApiWebhooksUuid Public API: delete webhooks/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Corresponds with DELETE /v1/public-api/webhooks/{uuid} (the `DeleteV1PublicApiWebhooksUuid` operationId).
func (*Client) GetV1PublicApiCompanies ¶
func (c *Client) GetV1PublicApiCompanies(ctx context.Context, params *GetV1PublicApiCompaniesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetV1PublicApiCompanies Public API: get companies
API key scope (`companies:read`) and the key creator's current permissions both apply. Items carry `domain` and `external_id`, the company's own id (separate from contact ids).
Corresponds with GET /v1/public-api/companies (the `GetV1PublicApiCompanies` operationId).
func (*Client) GetV1PublicApiContacts ¶
func (c *Client) GetV1PublicApiContacts(ctx context.Context, params *GetV1PublicApiContactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetV1PublicApiContacts Public API: get contacts
API key scope (`contacts:read`) and the key creator's current permissions both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API. Items carry `external_id`, `verified_at` and the company's `company_external_id`.
Corresponds with GET /v1/public-api/contacts (the `GetV1PublicApiContacts` operationId).
func (*Client) GetV1PublicApiConversations ¶
func (c *Client) GetV1PublicApiConversations(ctx context.Context, params *GetV1PublicApiConversationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetV1PublicApiConversations Public API: get conversations
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Corresponds with GET /v1/public-api/conversations (the `GetV1PublicApiConversations` operationId).
func (*Client) GetV1PublicApiConversationsUuid ¶
func (c *Client) GetV1PublicApiConversationsUuid(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetV1PublicApiConversationsUuid Public API: get conversations/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Corresponds with GET /v1/public-api/conversations/{uuid} (the `GetV1PublicApiConversationsUuid` operationId).
func (*Client) GetV1PublicApiConversationsUuidMessages ¶
func (c *Client) GetV1PublicApiConversationsUuidMessages(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetV1PublicApiConversationsUuidMessages Public API: get conversations/{uuid}/messages
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Corresponds with GET /v1/public-api/conversations/{uuid}/messages (the `GetV1PublicApiConversationsUuidMessages` operationId).
func (*Client) GetV1PublicApiWebhooks ¶
func (c *Client) GetV1PublicApiWebhooks(ctx context.Context, params *GetV1PublicApiWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetV1PublicApiWebhooks Public API: get webhooks
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Corresponds with GET /v1/public-api/webhooks (the `GetV1PublicApiWebhooks` operationId).
func (*Client) PatchV1PublicApiConversationsUuid ¶
func (c *Client) PatchV1PublicApiConversationsUuid(ctx context.Context, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, body PatchV1PublicApiConversationsUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchV1PublicApiConversationsUuid Public API: patch conversations/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes a body of the `application/json` content type.
Corresponds with PATCH /v1/public-api/conversations/{uuid} (the `PatchV1PublicApiConversationsUuid` operationId).
func (*Client) PatchV1PublicApiConversationsUuidWithBody ¶
func (c *Client) PatchV1PublicApiConversationsUuidWithBody(ctx context.Context, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchV1PublicApiConversationsUuidWithBody Public API: patch conversations/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes any type of body and a specified content type.
Corresponds with PATCH /v1/public-api/conversations/{uuid} (the `PatchV1PublicApiConversationsUuid` operationId).
func (*Client) PollIntegrationTriggers ¶
func (c *Client) PollIntegrationTriggers(ctx context.Context, params *PollIntegrationTriggersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
PollIntegrationTriggers Poll conversation/contact/CSAT/tag triggers
Requires triggers:read plus current conversation read/read_all and contact read. Returns public references, not transcripts. Cursor rules and 410 expiration match /v1/tenant/integration-triggers. No X-Organization: key fixes the organization.
Corresponds with GET /v1/public-api/triggers (the `PollIntegrationTriggers` operationId).
func (*Client) PostV1PublicApiCompanyEvent ¶
func (c *Client) PostV1PublicApiCompanyEvent(ctx context.Context, params *PostV1PublicApiCompanyEventParams, body PostV1PublicApiCompanyEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostV1PublicApiCompanyEvent Public API: send an in-product event to a company timeline
Same body and response as `POST /v1/tenant/company-events`. Needs the `events:write` key scope and an `Idempotency-Key` header.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/public-api/company-events (the `PostV1PublicApiCompanyEvent` operationId).
func (*Client) PostV1PublicApiCompanyEventWithBody ¶
func (c *Client) PostV1PublicApiCompanyEventWithBody(ctx context.Context, params *PostV1PublicApiCompanyEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostV1PublicApiCompanyEventWithBody Public API: send an in-product event to a company timeline
Same body and response as `POST /v1/tenant/company-events`. Needs the `events:write` key scope and an `Idempotency-Key` header.
Takes any type of body and a specified content type.
Corresponds with POST /v1/public-api/company-events (the `PostV1PublicApiCompanyEvent` operationId).
func (*Client) PostV1PublicApiContacts ¶
func (c *Client) PostV1PublicApiContacts(ctx context.Context, params *PostV1PublicApiContactsParams, body PostV1PublicApiContactsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostV1PublicApiContacts Public API: create a contact
Same body and response as `POST /v1/tenant/contacts`. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header. Prefer `PUT /v1/public-api/contacts/by-external-id` to sync users from your system.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/public-api/contacts (the `PostV1PublicApiContacts` operationId).
func (*Client) PostV1PublicApiContactsWithBody ¶
func (c *Client) PostV1PublicApiContactsWithBody(ctx context.Context, params *PostV1PublicApiContactsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostV1PublicApiContactsWithBody Public API: create a contact
Same body and response as `POST /v1/tenant/contacts`. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header. Prefer `PUT /v1/public-api/contacts/by-external-id` to sync users from your system.
Takes any type of body and a specified content type.
Corresponds with POST /v1/public-api/contacts (the `PostV1PublicApiContacts` operationId).
func (*Client) PostV1PublicApiConversationsUuidMessages ¶
func (c *Client) PostV1PublicApiConversationsUuidMessages(ctx context.Context, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, body PostV1PublicApiConversationsUuidMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostV1PublicApiConversationsUuidMessages Public API: post conversations/{uuid}/messages
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/public-api/conversations/{uuid}/messages (the `PostV1PublicApiConversationsUuidMessages` operationId).
func (*Client) PostV1PublicApiConversationsUuidMessagesWithBody ¶
func (c *Client) PostV1PublicApiConversationsUuidMessagesWithBody(ctx context.Context, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostV1PublicApiConversationsUuidMessagesWithBody Public API: post conversations/{uuid}/messages
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes any type of body and a specified content type.
Corresponds with POST /v1/public-api/conversations/{uuid}/messages (the `PostV1PublicApiConversationsUuidMessages` operationId).
func (*Client) PostV1PublicApiWebhooks ¶
func (c *Client) PostV1PublicApiWebhooks(ctx context.Context, params *PostV1PublicApiWebhooksParams, body PostV1PublicApiWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostV1PublicApiWebhooks Public API: post webhooks
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/public-api/webhooks (the `PostV1PublicApiWebhooks` operationId).
func (*Client) PostV1PublicApiWebhooksWithBody ¶
func (c *Client) PostV1PublicApiWebhooksWithBody(ctx context.Context, params *PostV1PublicApiWebhooksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostV1PublicApiWebhooksWithBody Public API: post webhooks
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes any type of body and a specified content type.
Corresponds with POST /v1/public-api/webhooks (the `PostV1PublicApiWebhooks` operationId).
func (*Client) PutV1PublicApiCompanyRevenue ¶
func (c *Client) PutV1PublicApiCompanyRevenue(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, body PutV1PublicApiCompanyRevenueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PutV1PublicApiCompanyRevenue Public API: push a customer's revenue
Same body and response as `PUT /v1/tenant/company-revenue`. Needs the `revenue:write` key scope and an `Idempotency-Key` header; a reused key with a different body returns 409.
Takes a body of the `application/json` content type.
Corresponds with PUT /v1/public-api/company-revenue (the `PutV1PublicApiCompanyRevenue` operationId).
func (*Client) PutV1PublicApiCompanyRevenueWithBody ¶
func (c *Client) PutV1PublicApiCompanyRevenueWithBody(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutV1PublicApiCompanyRevenueWithBody Public API: push a customer's revenue
Same body and response as `PUT /v1/tenant/company-revenue`. Needs the `revenue:write` key scope and an `Idempotency-Key` header; a reused key with a different body returns 409.
Takes any type of body and a specified content type.
Corresponds with PUT /v1/public-api/company-revenue (the `PutV1PublicApiCompanyRevenue` operationId).
func (*Client) PutV1PublicApiCompanyUsage ¶
func (c *Client) PutV1PublicApiCompanyUsage(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, body PutV1PublicApiCompanyUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PutV1PublicApiCompanyUsage Public API: report a customer's product usage
Same body and response as `PUT /v1/tenant/company-usage`. Needs the `health:write` key scope and an `Idempotency-Key` header.
Takes a body of the `application/json` content type.
Corresponds with PUT /v1/public-api/company-usage (the `PutV1PublicApiCompanyUsage` operationId).
func (*Client) PutV1PublicApiCompanyUsageWithBody ¶
func (c *Client) PutV1PublicApiCompanyUsageWithBody(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutV1PublicApiCompanyUsageWithBody Public API: report a customer's product usage
Same body and response as `PUT /v1/tenant/company-usage`. Needs the `health:write` key scope and an `Idempotency-Key` header.
Takes any type of body and a specified content type.
Corresponds with PUT /v1/public-api/company-usage (the `PutV1PublicApiCompanyUsage` operationId).
func (*Client) PutV1PublicApiContactByExternalId ¶
func (c *Client) PutV1PublicApiContactByExternalId(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, body PutV1PublicApiContactByExternalIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PutV1PublicApiContactByExternalId Public API: create or update a contact by your user id
Same body and response as `PUT /v1/tenant/contacts/by-external-id`: 201 when created, 200 when the contact with `external_id` existed; the same id twice edits one contact. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header (use a new key per change; a reused key replays the stored answer).
Takes a body of the `application/json` content type.
Corresponds with PUT /v1/public-api/contacts/by-external-id (the `PutV1PublicApiContactByExternalId` operationId).
func (*Client) PutV1PublicApiContactByExternalIdWithBody ¶
func (c *Client) PutV1PublicApiContactByExternalIdWithBody(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutV1PublicApiContactByExternalIdWithBody Public API: create or update a contact by your user id
Same body and response as `PUT /v1/tenant/contacts/by-external-id`: 201 when created, 200 when the contact with `external_id` existed; the same id twice edits one contact. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header (use a new key per change; a reused key replays the stored answer).
Takes any type of body and a specified content type.
Corresponds with PUT /v1/public-api/contacts/by-external-id (the `PutV1PublicApiContactByExternalId` operationId).
func (*Client) PutV1PublicApiWebhooksUuid ¶
func (c *Client) PutV1PublicApiWebhooksUuid(ctx context.Context, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, body PutV1PublicApiWebhooksUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PutV1PublicApiWebhooksUuid Public API: put webhooks/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes a body of the `application/json` content type.
Corresponds with PUT /v1/public-api/webhooks/{uuid} (the `PutV1PublicApiWebhooksUuid` operationId).
func (*Client) PutV1PublicApiWebhooksUuidWithBody ¶
func (c *Client) PutV1PublicApiWebhooksUuidWithBody(ctx context.Context, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutV1PublicApiWebhooksUuidWithBody Public API: put webhooks/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes any type of body and a specified content type.
Corresponds with PUT /v1/public-api/webhooks/{uuid} (the `PutV1PublicApiWebhooksUuid` operationId).
func (*Client) SubscribeIntegrationTrigger ¶
func (c *Client) SubscribeIntegrationTrigger(ctx context.Context, params *SubscribeIntegrationTriggerParams, body SubscribeIntegrationTriggerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SubscribeIntegrationTrigger Subscribe a signed REST hook
Requires webhooks:write and current channels.manage. Same signed durable webhook delivery pipeline as /v1/tenant/webhooks. HTTPS public targets only; secret returned once. Verify ClickFix-Webhook-Signature as HMAC-SHA256 of timestamp.body, reject old timestamps, and deduplicate ClickFix-Webhook-Id.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/public-api/subscriptions (the `SubscribeIntegrationTrigger` operationId).
func (*Client) SubscribeIntegrationTriggerWithBody ¶
func (c *Client) SubscribeIntegrationTriggerWithBody(ctx context.Context, params *SubscribeIntegrationTriggerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SubscribeIntegrationTriggerWithBody Subscribe a signed REST hook
Requires webhooks:write and current channels.manage. Same signed durable webhook delivery pipeline as /v1/tenant/webhooks. HTTPS public targets only; secret returned once. Verify ClickFix-Webhook-Signature as HMAC-SHA256 of timestamp.body, reject old timestamps, and deduplicate ClickFix-Webhook-Id.
Takes any type of body and a specified content type.
Corresponds with POST /v1/public-api/subscriptions (the `SubscribeIntegrationTrigger` operationId).
func (*Client) UnsubscribeIntegrationTrigger ¶
func (c *Client) UnsubscribeIntegrationTrigger(ctx context.Context, uuid openapi_types.UUID, params *UnsubscribeIntegrationTriggerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
UnsubscribeIntegrationTrigger Unsubscribe a REST hook
API key scope and current member permissions are both checked. Writes require a unique Idempotency-Key; reuse it for retries.
Corresponds with DELETE /v1/public-api/subscriptions/{uuid} (the `UnsubscribeIntegrationTrigger` operationId).
func (*Client) UpdateIntegrationContact ¶
func (c *Client) UpdateIntegrationContact(ctx context.Context, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, body UpdateIntegrationContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateIntegrationContact Update contact
Requires contacts:write and current tenant.contacts.write. Uses the normal contact validator and organization boundary.
Takes a body of the `application/json` content type.
Corresponds with PATCH /v1/public-api/contacts/{uuid} (the `UpdateIntegrationContact` operationId).
func (*Client) UpdateIntegrationContactWithBody ¶
func (c *Client) UpdateIntegrationContactWithBody(ctx context.Context, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateIntegrationContactWithBody Update contact
Requires contacts:write and current tenant.contacts.write. Uses the normal contact validator and organization boundary.
Takes any type of body and a specified content type.
Corresponds with PATCH /v1/public-api/contacts/{uuid} (the `UpdateIntegrationContact` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetV1PublicApiCompanies Public API: get companies
//
// API key scope (`companies:read`) and the key creator's current permissions both apply. Items carry `domain` and `external_id`, the company's own id (separate from contact ids).
//
// Corresponds with GET /v1/public-api/companies (the `GetV1PublicApiCompanies` operationId).
GetV1PublicApiCompanies(ctx context.Context, params *GetV1PublicApiCompaniesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostV1PublicApiCompanyEventWithBody Public API: send an in-product event to a company timeline
//
// Same body and response as `POST /v1/tenant/company-events`. Needs the `events:write` key scope and an `Idempotency-Key` header.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/public-api/company-events (the `PostV1PublicApiCompanyEvent` operationId).
PostV1PublicApiCompanyEventWithBody(ctx context.Context, params *PostV1PublicApiCompanyEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostV1PublicApiCompanyEvent Public API: send an in-product event to a company timeline
//
// Same body and response as `POST /v1/tenant/company-events`. Needs the `events:write` key scope and an `Idempotency-Key` header.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/public-api/company-events (the `PostV1PublicApiCompanyEvent` operationId).
PostV1PublicApiCompanyEvent(ctx context.Context, params *PostV1PublicApiCompanyEventParams, body PostV1PublicApiCompanyEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutV1PublicApiCompanyRevenueWithBody Public API: push a customer's revenue
//
// Same body and response as `PUT /v1/tenant/company-revenue`. Needs the `revenue:write` key scope and an `Idempotency-Key` header; a reused key with a different body returns 409.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /v1/public-api/company-revenue (the `PutV1PublicApiCompanyRevenue` operationId).
PutV1PublicApiCompanyRevenueWithBody(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutV1PublicApiCompanyRevenue Public API: push a customer's revenue
//
// Same body and response as `PUT /v1/tenant/company-revenue`. Needs the `revenue:write` key scope and an `Idempotency-Key` header; a reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /v1/public-api/company-revenue (the `PutV1PublicApiCompanyRevenue` operationId).
PutV1PublicApiCompanyRevenue(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, body PutV1PublicApiCompanyRevenueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutV1PublicApiCompanyUsageWithBody Public API: report a customer's product usage
//
// Same body and response as `PUT /v1/tenant/company-usage`. Needs the `health:write` key scope and an `Idempotency-Key` header.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /v1/public-api/company-usage (the `PutV1PublicApiCompanyUsage` operationId).
PutV1PublicApiCompanyUsageWithBody(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutV1PublicApiCompanyUsage Public API: report a customer's product usage
//
// Same body and response as `PUT /v1/tenant/company-usage`. Needs the `health:write` key scope and an `Idempotency-Key` header.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /v1/public-api/company-usage (the `PutV1PublicApiCompanyUsage` operationId).
PutV1PublicApiCompanyUsage(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, body PutV1PublicApiCompanyUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetV1PublicApiContacts Public API: get contacts
//
// API key scope (`contacts:read`) and the key creator's current permissions both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API. Items carry `external_id`, `verified_at` and the company's `company_external_id`.
//
// Corresponds with GET /v1/public-api/contacts (the `GetV1PublicApiContacts` operationId).
GetV1PublicApiContacts(ctx context.Context, params *GetV1PublicApiContactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostV1PublicApiContactsWithBody Public API: create a contact
//
// Same body and response as `POST /v1/tenant/contacts`. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header. Prefer `PUT /v1/public-api/contacts/by-external-id` to sync users from your system.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/public-api/contacts (the `PostV1PublicApiContacts` operationId).
PostV1PublicApiContactsWithBody(ctx context.Context, params *PostV1PublicApiContactsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostV1PublicApiContacts Public API: create a contact
//
// Same body and response as `POST /v1/tenant/contacts`. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header. Prefer `PUT /v1/public-api/contacts/by-external-id` to sync users from your system.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/public-api/contacts (the `PostV1PublicApiContacts` operationId).
PostV1PublicApiContacts(ctx context.Context, params *PostV1PublicApiContactsParams, body PostV1PublicApiContactsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutV1PublicApiContactByExternalIdWithBody Public API: create or update a contact by your user id
//
// Same body and response as `PUT /v1/tenant/contacts/by-external-id`: 201 when created, 200 when the contact with `external_id` existed; the same id twice edits one contact. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header (use a new key per change; a reused key replays the stored answer).
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /v1/public-api/contacts/by-external-id (the `PutV1PublicApiContactByExternalId` operationId).
PutV1PublicApiContactByExternalIdWithBody(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutV1PublicApiContactByExternalId Public API: create or update a contact by your user id
//
// Same body and response as `PUT /v1/tenant/contacts/by-external-id`: 201 when created, 200 when the contact with `external_id` existed; the same id twice edits one contact. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header (use a new key per change; a reused key replays the stored answer).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /v1/public-api/contacts/by-external-id (the `PutV1PublicApiContactByExternalId` operationId).
PutV1PublicApiContactByExternalId(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, body PutV1PublicApiContactByExternalIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateIntegrationContactWithBody Update contact
//
// Requires contacts:write and current tenant.contacts.write. Uses the normal contact validator and organization boundary.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v1/public-api/contacts/{uuid} (the `UpdateIntegrationContact` operationId).
UpdateIntegrationContactWithBody(ctx context.Context, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateIntegrationContact Update contact
//
// Requires contacts:write and current tenant.contacts.write. Uses the normal contact validator and organization boundary.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v1/public-api/contacts/{uuid} (the `UpdateIntegrationContact` operationId).
UpdateIntegrationContact(ctx context.Context, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, body UpdateIntegrationContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetV1PublicApiConversations Public API: get conversations
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Corresponds with GET /v1/public-api/conversations (the `GetV1PublicApiConversations` operationId).
GetV1PublicApiConversations(ctx context.Context, params *GetV1PublicApiConversationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateIntegrationConversationWithBody Create conversation
//
// Requires conversations:write and current conversation read/manage. Active inbox and contact must belong to the key organization. Conversation is assigned to the key creator.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/public-api/conversations (the `CreateIntegrationConversation` operationId).
CreateIntegrationConversationWithBody(ctx context.Context, params *CreateIntegrationConversationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateIntegrationConversation Create conversation
//
// Requires conversations:write and current conversation read/manage. Active inbox and contact must belong to the key organization. Conversation is assigned to the key creator.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/public-api/conversations (the `CreateIntegrationConversation` operationId).
CreateIntegrationConversation(ctx context.Context, params *CreateIntegrationConversationParams, body CreateIntegrationConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetV1PublicApiConversationsUuid Public API: get conversations/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Corresponds with GET /v1/public-api/conversations/{uuid} (the `GetV1PublicApiConversationsUuid` operationId).
GetV1PublicApiConversationsUuid(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchV1PublicApiConversationsUuidWithBody Public API: patch conversations/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v1/public-api/conversations/{uuid} (the `PatchV1PublicApiConversationsUuid` operationId).
PatchV1PublicApiConversationsUuidWithBody(ctx context.Context, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchV1PublicApiConversationsUuid Public API: patch conversations/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v1/public-api/conversations/{uuid} (the `PatchV1PublicApiConversationsUuid` operationId).
PatchV1PublicApiConversationsUuid(ctx context.Context, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, body PatchV1PublicApiConversationsUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetV1PublicApiConversationsUuidMessages Public API: get conversations/{uuid}/messages
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Corresponds with GET /v1/public-api/conversations/{uuid}/messages (the `GetV1PublicApiConversationsUuidMessages` operationId).
GetV1PublicApiConversationsUuidMessages(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostV1PublicApiConversationsUuidMessagesWithBody Public API: post conversations/{uuid}/messages
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/public-api/conversations/{uuid}/messages (the `PostV1PublicApiConversationsUuidMessages` operationId).
PostV1PublicApiConversationsUuidMessagesWithBody(ctx context.Context, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostV1PublicApiConversationsUuidMessages Public API: post conversations/{uuid}/messages
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/public-api/conversations/{uuid}/messages (the `PostV1PublicApiConversationsUuidMessages` operationId).
PostV1PublicApiConversationsUuidMessages(ctx context.Context, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, body PostV1PublicApiConversationsUuidMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubscribeIntegrationTriggerWithBody Subscribe a signed REST hook
//
// Requires webhooks:write and current channels.manage. Same signed durable webhook delivery pipeline as /v1/tenant/webhooks. HTTPS public targets only; secret returned once. Verify ClickFix-Webhook-Signature as HMAC-SHA256 of timestamp.body, reject old timestamps, and deduplicate ClickFix-Webhook-Id.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/public-api/subscriptions (the `SubscribeIntegrationTrigger` operationId).
SubscribeIntegrationTriggerWithBody(ctx context.Context, params *SubscribeIntegrationTriggerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubscribeIntegrationTrigger Subscribe a signed REST hook
//
// Requires webhooks:write and current channels.manage. Same signed durable webhook delivery pipeline as /v1/tenant/webhooks. HTTPS public targets only; secret returned once. Verify ClickFix-Webhook-Signature as HMAC-SHA256 of timestamp.body, reject old timestamps, and deduplicate ClickFix-Webhook-Id.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/public-api/subscriptions (the `SubscribeIntegrationTrigger` operationId).
SubscribeIntegrationTrigger(ctx context.Context, params *SubscribeIntegrationTriggerParams, body SubscribeIntegrationTriggerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnsubscribeIntegrationTrigger Unsubscribe a REST hook
//
// API key scope and current member permissions are both checked. Writes require a unique Idempotency-Key; reuse it for retries.
//
// Corresponds with DELETE /v1/public-api/subscriptions/{uuid} (the `UnsubscribeIntegrationTrigger` operationId).
UnsubscribeIntegrationTrigger(ctx context.Context, uuid openapi_types.UUID, params *UnsubscribeIntegrationTriggerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PollIntegrationTriggers Poll conversation/contact/CSAT/tag triggers
//
// Requires triggers:read plus current conversation read/read_all and contact read. Returns public references, not transcripts. Cursor rules and 410 expiration match /v1/tenant/integration-triggers. No X-Organization: key fixes the organization.
//
// Corresponds with GET /v1/public-api/triggers (the `PollIntegrationTriggers` operationId).
PollIntegrationTriggers(ctx context.Context, params *PollIntegrationTriggersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetV1PublicApiWebhooks Public API: get webhooks
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Corresponds with GET /v1/public-api/webhooks (the `GetV1PublicApiWebhooks` operationId).
GetV1PublicApiWebhooks(ctx context.Context, params *GetV1PublicApiWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostV1PublicApiWebhooksWithBody Public API: post webhooks
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/public-api/webhooks (the `PostV1PublicApiWebhooks` operationId).
PostV1PublicApiWebhooksWithBody(ctx context.Context, params *PostV1PublicApiWebhooksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostV1PublicApiWebhooks Public API: post webhooks
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/public-api/webhooks (the `PostV1PublicApiWebhooks` operationId).
PostV1PublicApiWebhooks(ctx context.Context, params *PostV1PublicApiWebhooksParams, body PostV1PublicApiWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteV1PublicApiWebhooksUuid Public API: delete webhooks/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Corresponds with DELETE /v1/public-api/webhooks/{uuid} (the `DeleteV1PublicApiWebhooksUuid` operationId).
DeleteV1PublicApiWebhooksUuid(ctx context.Context, uuid openapi_types.UUID, params *DeleteV1PublicApiWebhooksUuidParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutV1PublicApiWebhooksUuidWithBody Public API: put webhooks/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /v1/public-api/webhooks/{uuid} (the `PutV1PublicApiWebhooksUuid` operationId).
PutV1PublicApiWebhooksUuidWithBody(ctx context.Context, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutV1PublicApiWebhooksUuid Public API: put webhooks/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /v1/public-api/webhooks/{uuid} (the `PutV1PublicApiWebhooksUuid` operationId).
PutV1PublicApiWebhooksUuid(ctx context.Context, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, body PutV1PublicApiWebhooksUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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 ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateIntegrationConversationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateIntegrationConversationWithBodyWithResponse(ctx context.Context, params *CreateIntegrationConversationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationConversationResponse, error)
CreateIntegrationConversationWithBodyWithResponse Create conversation
Requires conversations:write and current conversation read/manage. Active inbox and contact must belong to the key organization. Conversation is assigned to the key creator.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/conversations (the `CreateIntegrationConversation` operationId).
func (*ClientWithResponses) CreateIntegrationConversationWithResponse ¶
func (c *ClientWithResponses) CreateIntegrationConversationWithResponse(ctx context.Context, params *CreateIntegrationConversationParams, body CreateIntegrationConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationConversationResponse, error)
CreateIntegrationConversationWithResponse Create conversation
Requires conversations:write and current conversation read/manage. Active inbox and contact must belong to the key organization. Conversation is assigned to the key creator.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/conversations (the `CreateIntegrationConversation` operationId).
func (*ClientWithResponses) DeleteV1PublicApiWebhooksUuidWithResponse ¶
func (c *ClientWithResponses) DeleteV1PublicApiWebhooksUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, params *DeleteV1PublicApiWebhooksUuidParams, reqEditors ...RequestEditorFn) (*DeleteV1PublicApiWebhooksUuidResponse, error)
DeleteV1PublicApiWebhooksUuidWithResponse Public API: delete webhooks/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/public-api/webhooks/{uuid} (the `DeleteV1PublicApiWebhooksUuid` operationId).
func (*ClientWithResponses) GetV1PublicApiCompaniesWithResponse ¶
func (c *ClientWithResponses) GetV1PublicApiCompaniesWithResponse(ctx context.Context, params *GetV1PublicApiCompaniesParams, reqEditors ...RequestEditorFn) (*GetV1PublicApiCompaniesResponse, error)
GetV1PublicApiCompaniesWithResponse Public API: get companies
API key scope (`companies:read`) and the key creator's current permissions both apply. Items carry `domain` and `external_id`, the company's own id (separate from contact ids).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/public-api/companies (the `GetV1PublicApiCompanies` operationId).
func (*ClientWithResponses) GetV1PublicApiContactsWithResponse ¶
func (c *ClientWithResponses) GetV1PublicApiContactsWithResponse(ctx context.Context, params *GetV1PublicApiContactsParams, reqEditors ...RequestEditorFn) (*GetV1PublicApiContactsResponse, error)
GetV1PublicApiContactsWithResponse Public API: get contacts
API key scope (`contacts:read`) and the key creator's current permissions both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API. Items carry `external_id`, `verified_at` and the company's `company_external_id`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/public-api/contacts (the `GetV1PublicApiContacts` operationId).
func (*ClientWithResponses) GetV1PublicApiConversationsUuidMessagesWithResponse ¶
func (c *ClientWithResponses) GetV1PublicApiConversationsUuidMessagesWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetV1PublicApiConversationsUuidMessagesResponse, error)
GetV1PublicApiConversationsUuidMessagesWithResponse Public API: get conversations/{uuid}/messages
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/public-api/conversations/{uuid}/messages (the `GetV1PublicApiConversationsUuidMessages` operationId).
func (*ClientWithResponses) GetV1PublicApiConversationsUuidWithResponse ¶
func (c *ClientWithResponses) GetV1PublicApiConversationsUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetV1PublicApiConversationsUuidResponse, error)
GetV1PublicApiConversationsUuidWithResponse Public API: get conversations/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/public-api/conversations/{uuid} (the `GetV1PublicApiConversationsUuid` operationId).
func (*ClientWithResponses) GetV1PublicApiConversationsWithResponse ¶
func (c *ClientWithResponses) GetV1PublicApiConversationsWithResponse(ctx context.Context, params *GetV1PublicApiConversationsParams, reqEditors ...RequestEditorFn) (*GetV1PublicApiConversationsResponse, error)
GetV1PublicApiConversationsWithResponse Public API: get conversations
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/public-api/conversations (the `GetV1PublicApiConversations` operationId).
func (*ClientWithResponses) GetV1PublicApiWebhooksWithResponse ¶
func (c *ClientWithResponses) GetV1PublicApiWebhooksWithResponse(ctx context.Context, params *GetV1PublicApiWebhooksParams, reqEditors ...RequestEditorFn) (*GetV1PublicApiWebhooksResponse, error)
GetV1PublicApiWebhooksWithResponse Public API: get webhooks
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/public-api/webhooks (the `GetV1PublicApiWebhooks` operationId).
func (*ClientWithResponses) PatchV1PublicApiConversationsUuidWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchV1PublicApiConversationsUuidWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchV1PublicApiConversationsUuidResponse, error)
PatchV1PublicApiConversationsUuidWithBodyWithResponse Public API: patch conversations/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v1/public-api/conversations/{uuid} (the `PatchV1PublicApiConversationsUuid` operationId).
func (*ClientWithResponses) PatchV1PublicApiConversationsUuidWithResponse ¶
func (c *ClientWithResponses) PatchV1PublicApiConversationsUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, body PatchV1PublicApiConversationsUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchV1PublicApiConversationsUuidResponse, error)
PatchV1PublicApiConversationsUuidWithResponse Public API: patch conversations/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v1/public-api/conversations/{uuid} (the `PatchV1PublicApiConversationsUuid` operationId).
func (*ClientWithResponses) PollIntegrationTriggersWithResponse ¶
func (c *ClientWithResponses) PollIntegrationTriggersWithResponse(ctx context.Context, params *PollIntegrationTriggersParams, reqEditors ...RequestEditorFn) (*PollIntegrationTriggersResponse, error)
PollIntegrationTriggersWithResponse Poll conversation/contact/CSAT/tag triggers
Requires triggers:read plus current conversation read/read_all and contact read. Returns public references, not transcripts. Cursor rules and 410 expiration match /v1/tenant/integration-triggers. No X-Organization: key fixes the organization.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/public-api/triggers (the `PollIntegrationTriggers` operationId).
func (*ClientWithResponses) PostV1PublicApiCompanyEventWithBodyWithResponse ¶
func (c *ClientWithResponses) PostV1PublicApiCompanyEventWithBodyWithResponse(ctx context.Context, params *PostV1PublicApiCompanyEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostV1PublicApiCompanyEventResponse, error)
PostV1PublicApiCompanyEventWithBodyWithResponse Public API: send an in-product event to a company timeline
Same body and response as `POST /v1/tenant/company-events`. Needs the `events:write` key scope and an `Idempotency-Key` header.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/company-events (the `PostV1PublicApiCompanyEvent` operationId).
func (*ClientWithResponses) PostV1PublicApiCompanyEventWithResponse ¶
func (c *ClientWithResponses) PostV1PublicApiCompanyEventWithResponse(ctx context.Context, params *PostV1PublicApiCompanyEventParams, body PostV1PublicApiCompanyEventJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV1PublicApiCompanyEventResponse, error)
PostV1PublicApiCompanyEventWithResponse Public API: send an in-product event to a company timeline
Same body and response as `POST /v1/tenant/company-events`. Needs the `events:write` key scope and an `Idempotency-Key` header.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/company-events (the `PostV1PublicApiCompanyEvent` operationId).
func (*ClientWithResponses) PostV1PublicApiContactsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostV1PublicApiContactsWithBodyWithResponse(ctx context.Context, params *PostV1PublicApiContactsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostV1PublicApiContactsResponse, error)
PostV1PublicApiContactsWithBodyWithResponse Public API: create a contact
Same body and response as `POST /v1/tenant/contacts`. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header. Prefer `PUT /v1/public-api/contacts/by-external-id` to sync users from your system.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/contacts (the `PostV1PublicApiContacts` operationId).
func (*ClientWithResponses) PostV1PublicApiContactsWithResponse ¶
func (c *ClientWithResponses) PostV1PublicApiContactsWithResponse(ctx context.Context, params *PostV1PublicApiContactsParams, body PostV1PublicApiContactsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV1PublicApiContactsResponse, error)
PostV1PublicApiContactsWithResponse Public API: create a contact
Same body and response as `POST /v1/tenant/contacts`. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header. Prefer `PUT /v1/public-api/contacts/by-external-id` to sync users from your system.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/contacts (the `PostV1PublicApiContacts` operationId).
func (*ClientWithResponses) PostV1PublicApiConversationsUuidMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostV1PublicApiConversationsUuidMessagesWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostV1PublicApiConversationsUuidMessagesResponse, error)
PostV1PublicApiConversationsUuidMessagesWithBodyWithResponse Public API: post conversations/{uuid}/messages
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/conversations/{uuid}/messages (the `PostV1PublicApiConversationsUuidMessages` operationId).
func (*ClientWithResponses) PostV1PublicApiConversationsUuidMessagesWithResponse ¶
func (c *ClientWithResponses) PostV1PublicApiConversationsUuidMessagesWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, body PostV1PublicApiConversationsUuidMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV1PublicApiConversationsUuidMessagesResponse, error)
PostV1PublicApiConversationsUuidMessagesWithResponse Public API: post conversations/{uuid}/messages
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/conversations/{uuid}/messages (the `PostV1PublicApiConversationsUuidMessages` operationId).
func (*ClientWithResponses) PostV1PublicApiWebhooksWithBodyWithResponse ¶
func (c *ClientWithResponses) PostV1PublicApiWebhooksWithBodyWithResponse(ctx context.Context, params *PostV1PublicApiWebhooksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostV1PublicApiWebhooksResponse, error)
PostV1PublicApiWebhooksWithBodyWithResponse Public API: post webhooks
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/webhooks (the `PostV1PublicApiWebhooks` operationId).
func (*ClientWithResponses) PostV1PublicApiWebhooksWithResponse ¶
func (c *ClientWithResponses) PostV1PublicApiWebhooksWithResponse(ctx context.Context, params *PostV1PublicApiWebhooksParams, body PostV1PublicApiWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV1PublicApiWebhooksResponse, error)
PostV1PublicApiWebhooksWithResponse Public API: post webhooks
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/webhooks (the `PostV1PublicApiWebhooks` operationId).
func (*ClientWithResponses) PutV1PublicApiCompanyRevenueWithBodyWithResponse ¶
func (c *ClientWithResponses) PutV1PublicApiCompanyRevenueWithBodyWithResponse(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutV1PublicApiCompanyRevenueResponse, error)
PutV1PublicApiCompanyRevenueWithBodyWithResponse Public API: push a customer's revenue
Same body and response as `PUT /v1/tenant/company-revenue`. Needs the `revenue:write` key scope and an `Idempotency-Key` header; a reused key with a different body returns 409.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/public-api/company-revenue (the `PutV1PublicApiCompanyRevenue` operationId).
func (*ClientWithResponses) PutV1PublicApiCompanyRevenueWithResponse ¶
func (c *ClientWithResponses) PutV1PublicApiCompanyRevenueWithResponse(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, body PutV1PublicApiCompanyRevenueJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV1PublicApiCompanyRevenueResponse, error)
PutV1PublicApiCompanyRevenueWithResponse Public API: push a customer's revenue
Same body and response as `PUT /v1/tenant/company-revenue`. Needs the `revenue:write` key scope and an `Idempotency-Key` header; a reused key with a different body returns 409.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/public-api/company-revenue (the `PutV1PublicApiCompanyRevenue` operationId).
func (*ClientWithResponses) PutV1PublicApiCompanyUsageWithBodyWithResponse ¶
func (c *ClientWithResponses) PutV1PublicApiCompanyUsageWithBodyWithResponse(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutV1PublicApiCompanyUsageResponse, error)
PutV1PublicApiCompanyUsageWithBodyWithResponse Public API: report a customer's product usage
Same body and response as `PUT /v1/tenant/company-usage`. Needs the `health:write` key scope and an `Idempotency-Key` header.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/public-api/company-usage (the `PutV1PublicApiCompanyUsage` operationId).
func (*ClientWithResponses) PutV1PublicApiCompanyUsageWithResponse ¶
func (c *ClientWithResponses) PutV1PublicApiCompanyUsageWithResponse(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, body PutV1PublicApiCompanyUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV1PublicApiCompanyUsageResponse, error)
PutV1PublicApiCompanyUsageWithResponse Public API: report a customer's product usage
Same body and response as `PUT /v1/tenant/company-usage`. Needs the `health:write` key scope and an `Idempotency-Key` header.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/public-api/company-usage (the `PutV1PublicApiCompanyUsage` operationId).
func (*ClientWithResponses) PutV1PublicApiContactByExternalIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PutV1PublicApiContactByExternalIdWithBodyWithResponse(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutV1PublicApiContactByExternalIdResponse, error)
PutV1PublicApiContactByExternalIdWithBodyWithResponse Public API: create or update a contact by your user id
Same body and response as `PUT /v1/tenant/contacts/by-external-id`: 201 when created, 200 when the contact with `external_id` existed; the same id twice edits one contact. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header (use a new key per change; a reused key replays the stored answer).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/public-api/contacts/by-external-id (the `PutV1PublicApiContactByExternalId` operationId).
func (*ClientWithResponses) PutV1PublicApiContactByExternalIdWithResponse ¶
func (c *ClientWithResponses) PutV1PublicApiContactByExternalIdWithResponse(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, body PutV1PublicApiContactByExternalIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV1PublicApiContactByExternalIdResponse, error)
PutV1PublicApiContactByExternalIdWithResponse Public API: create or update a contact by your user id
Same body and response as `PUT /v1/tenant/contacts/by-external-id`: 201 when created, 200 when the contact with `external_id` existed; the same id twice edits one contact. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header (use a new key per change; a reused key replays the stored answer).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/public-api/contacts/by-external-id (the `PutV1PublicApiContactByExternalId` operationId).
func (*ClientWithResponses) PutV1PublicApiWebhooksUuidWithBodyWithResponse ¶
func (c *ClientWithResponses) PutV1PublicApiWebhooksUuidWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutV1PublicApiWebhooksUuidResponse, error)
PutV1PublicApiWebhooksUuidWithBodyWithResponse Public API: put webhooks/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/public-api/webhooks/{uuid} (the `PutV1PublicApiWebhooksUuid` operationId).
func (*ClientWithResponses) PutV1PublicApiWebhooksUuidWithResponse ¶
func (c *ClientWithResponses) PutV1PublicApiWebhooksUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, body PutV1PublicApiWebhooksUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV1PublicApiWebhooksUuidResponse, error)
PutV1PublicApiWebhooksUuidWithResponse Public API: put webhooks/{uuid}
API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/public-api/webhooks/{uuid} (the `PutV1PublicApiWebhooksUuid` operationId).
func (*ClientWithResponses) SubscribeIntegrationTriggerWithBodyWithResponse ¶
func (c *ClientWithResponses) SubscribeIntegrationTriggerWithBodyWithResponse(ctx context.Context, params *SubscribeIntegrationTriggerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscribeIntegrationTriggerResponse, error)
SubscribeIntegrationTriggerWithBodyWithResponse Subscribe a signed REST hook
Requires webhooks:write and current channels.manage. Same signed durable webhook delivery pipeline as /v1/tenant/webhooks. HTTPS public targets only; secret returned once. Verify ClickFix-Webhook-Signature as HMAC-SHA256 of timestamp.body, reject old timestamps, and deduplicate ClickFix-Webhook-Id.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/subscriptions (the `SubscribeIntegrationTrigger` operationId).
func (*ClientWithResponses) SubscribeIntegrationTriggerWithResponse ¶
func (c *ClientWithResponses) SubscribeIntegrationTriggerWithResponse(ctx context.Context, params *SubscribeIntegrationTriggerParams, body SubscribeIntegrationTriggerJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscribeIntegrationTriggerResponse, error)
SubscribeIntegrationTriggerWithResponse Subscribe a signed REST hook
Requires webhooks:write and current channels.manage. Same signed durable webhook delivery pipeline as /v1/tenant/webhooks. HTTPS public targets only; secret returned once. Verify ClickFix-Webhook-Signature as HMAC-SHA256 of timestamp.body, reject old timestamps, and deduplicate ClickFix-Webhook-Id.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/public-api/subscriptions (the `SubscribeIntegrationTrigger` operationId).
func (*ClientWithResponses) UnsubscribeIntegrationTriggerWithResponse ¶
func (c *ClientWithResponses) UnsubscribeIntegrationTriggerWithResponse(ctx context.Context, uuid openapi_types.UUID, params *UnsubscribeIntegrationTriggerParams, reqEditors ...RequestEditorFn) (*UnsubscribeIntegrationTriggerResponse, error)
UnsubscribeIntegrationTriggerWithResponse Unsubscribe a REST hook
API key scope and current member permissions are both checked. Writes require a unique Idempotency-Key; reuse it for retries.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/public-api/subscriptions/{uuid} (the `UnsubscribeIntegrationTrigger` operationId).
func (*ClientWithResponses) UpdateIntegrationContactWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateIntegrationContactWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationContactResponse, error)
UpdateIntegrationContactWithBodyWithResponse Update contact
Requires contacts:write and current tenant.contacts.write. Uses the normal contact validator and organization boundary.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v1/public-api/contacts/{uuid} (the `UpdateIntegrationContact` operationId).
func (*ClientWithResponses) UpdateIntegrationContactWithResponse ¶
func (c *ClientWithResponses) UpdateIntegrationContactWithResponse(ctx context.Context, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, body UpdateIntegrationContactJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationContactResponse, error)
UpdateIntegrationContactWithResponse Update contact
Requires contacts:write and current tenant.contacts.write. Uses the normal contact validator and organization boundary.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v1/public-api/contacts/{uuid} (the `UpdateIntegrationContact` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetV1PublicApiCompaniesWithResponse Public API: get companies
//
// API key scope (`companies:read`) and the key creator's current permissions both apply. Items carry `domain` and `external_id`, the company's own id (separate from contact ids).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/public-api/companies (the `GetV1PublicApiCompanies` operationId).
GetV1PublicApiCompaniesWithResponse(ctx context.Context, params *GetV1PublicApiCompaniesParams, reqEditors ...RequestEditorFn) (*GetV1PublicApiCompaniesResponse, error)
// PostV1PublicApiCompanyEventWithBodyWithResponse Public API: send an in-product event to a company timeline
//
// Same body and response as `POST /v1/tenant/company-events`. Needs the `events:write` key scope and an `Idempotency-Key` header.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/company-events (the `PostV1PublicApiCompanyEvent` operationId).
PostV1PublicApiCompanyEventWithBodyWithResponse(ctx context.Context, params *PostV1PublicApiCompanyEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostV1PublicApiCompanyEventResponse, error)
// PostV1PublicApiCompanyEventWithResponse Public API: send an in-product event to a company timeline
//
// Same body and response as `POST /v1/tenant/company-events`. Needs the `events:write` key scope and an `Idempotency-Key` header.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/company-events (the `PostV1PublicApiCompanyEvent` operationId).
PostV1PublicApiCompanyEventWithResponse(ctx context.Context, params *PostV1PublicApiCompanyEventParams, body PostV1PublicApiCompanyEventJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV1PublicApiCompanyEventResponse, error)
// PutV1PublicApiCompanyRevenueWithBodyWithResponse Public API: push a customer's revenue
//
// Same body and response as `PUT /v1/tenant/company-revenue`. Needs the `revenue:write` key scope and an `Idempotency-Key` header; a reused key with a different body returns 409.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/public-api/company-revenue (the `PutV1PublicApiCompanyRevenue` operationId).
PutV1PublicApiCompanyRevenueWithBodyWithResponse(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutV1PublicApiCompanyRevenueResponse, error)
// PutV1PublicApiCompanyRevenueWithResponse Public API: push a customer's revenue
//
// Same body and response as `PUT /v1/tenant/company-revenue`. Needs the `revenue:write` key scope and an `Idempotency-Key` header; a reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/public-api/company-revenue (the `PutV1PublicApiCompanyRevenue` operationId).
PutV1PublicApiCompanyRevenueWithResponse(ctx context.Context, params *PutV1PublicApiCompanyRevenueParams, body PutV1PublicApiCompanyRevenueJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV1PublicApiCompanyRevenueResponse, error)
// PutV1PublicApiCompanyUsageWithBodyWithResponse Public API: report a customer's product usage
//
// Same body and response as `PUT /v1/tenant/company-usage`. Needs the `health:write` key scope and an `Idempotency-Key` header.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/public-api/company-usage (the `PutV1PublicApiCompanyUsage` operationId).
PutV1PublicApiCompanyUsageWithBodyWithResponse(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutV1PublicApiCompanyUsageResponse, error)
// PutV1PublicApiCompanyUsageWithResponse Public API: report a customer's product usage
//
// Same body and response as `PUT /v1/tenant/company-usage`. Needs the `health:write` key scope and an `Idempotency-Key` header.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/public-api/company-usage (the `PutV1PublicApiCompanyUsage` operationId).
PutV1PublicApiCompanyUsageWithResponse(ctx context.Context, params *PutV1PublicApiCompanyUsageParams, body PutV1PublicApiCompanyUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV1PublicApiCompanyUsageResponse, error)
// GetV1PublicApiContactsWithResponse Public API: get contacts
//
// API key scope (`contacts:read`) and the key creator's current permissions both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API. Items carry `external_id`, `verified_at` and the company's `company_external_id`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/public-api/contacts (the `GetV1PublicApiContacts` operationId).
GetV1PublicApiContactsWithResponse(ctx context.Context, params *GetV1PublicApiContactsParams, reqEditors ...RequestEditorFn) (*GetV1PublicApiContactsResponse, error)
// PostV1PublicApiContactsWithBodyWithResponse Public API: create a contact
//
// Same body and response as `POST /v1/tenant/contacts`. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header. Prefer `PUT /v1/public-api/contacts/by-external-id` to sync users from your system.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/contacts (the `PostV1PublicApiContacts` operationId).
PostV1PublicApiContactsWithBodyWithResponse(ctx context.Context, params *PostV1PublicApiContactsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostV1PublicApiContactsResponse, error)
// PostV1PublicApiContactsWithResponse Public API: create a contact
//
// Same body and response as `POST /v1/tenant/contacts`. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header. Prefer `PUT /v1/public-api/contacts/by-external-id` to sync users from your system.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/contacts (the `PostV1PublicApiContacts` operationId).
PostV1PublicApiContactsWithResponse(ctx context.Context, params *PostV1PublicApiContactsParams, body PostV1PublicApiContactsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV1PublicApiContactsResponse, error)
// PutV1PublicApiContactByExternalIdWithBodyWithResponse Public API: create or update a contact by your user id
//
// Same body and response as `PUT /v1/tenant/contacts/by-external-id`: 201 when created, 200 when the contact with `external_id` existed; the same id twice edits one contact. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header (use a new key per change; a reused key replays the stored answer).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/public-api/contacts/by-external-id (the `PutV1PublicApiContactByExternalId` operationId).
PutV1PublicApiContactByExternalIdWithBodyWithResponse(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutV1PublicApiContactByExternalIdResponse, error)
// PutV1PublicApiContactByExternalIdWithResponse Public API: create or update a contact by your user id
//
// Same body and response as `PUT /v1/tenant/contacts/by-external-id`: 201 when created, 200 when the contact with `external_id` existed; the same id twice edits one contact. Needs the `contacts:write` key scope, the key creator's `tenant.contacts.write` permission and an `Idempotency-Key` header (use a new key per change; a reused key replays the stored answer).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/public-api/contacts/by-external-id (the `PutV1PublicApiContactByExternalId` operationId).
PutV1PublicApiContactByExternalIdWithResponse(ctx context.Context, params *PutV1PublicApiContactByExternalIdParams, body PutV1PublicApiContactByExternalIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV1PublicApiContactByExternalIdResponse, error)
// UpdateIntegrationContactWithBodyWithResponse Update contact
//
// Requires contacts:write and current tenant.contacts.write. Uses the normal contact validator and organization boundary.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v1/public-api/contacts/{uuid} (the `UpdateIntegrationContact` operationId).
UpdateIntegrationContactWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationContactResponse, error)
// UpdateIntegrationContactWithResponse Update contact
//
// Requires contacts:write and current tenant.contacts.write. Uses the normal contact validator and organization boundary.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v1/public-api/contacts/{uuid} (the `UpdateIntegrationContact` operationId).
UpdateIntegrationContactWithResponse(ctx context.Context, uuid openapi_types.UUID, params *UpdateIntegrationContactParams, body UpdateIntegrationContactJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationContactResponse, error)
// GetV1PublicApiConversationsWithResponse Public API: get conversations
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/public-api/conversations (the `GetV1PublicApiConversations` operationId).
GetV1PublicApiConversationsWithResponse(ctx context.Context, params *GetV1PublicApiConversationsParams, reqEditors ...RequestEditorFn) (*GetV1PublicApiConversationsResponse, error)
// CreateIntegrationConversationWithBodyWithResponse Create conversation
//
// Requires conversations:write and current conversation read/manage. Active inbox and contact must belong to the key organization. Conversation is assigned to the key creator.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/conversations (the `CreateIntegrationConversation` operationId).
CreateIntegrationConversationWithBodyWithResponse(ctx context.Context, params *CreateIntegrationConversationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationConversationResponse, error)
// CreateIntegrationConversationWithResponse Create conversation
//
// Requires conversations:write and current conversation read/manage. Active inbox and contact must belong to the key organization. Conversation is assigned to the key creator.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/conversations (the `CreateIntegrationConversation` operationId).
CreateIntegrationConversationWithResponse(ctx context.Context, params *CreateIntegrationConversationParams, body CreateIntegrationConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationConversationResponse, error)
// GetV1PublicApiConversationsUuidWithResponse Public API: get conversations/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/public-api/conversations/{uuid} (the `GetV1PublicApiConversationsUuid` operationId).
GetV1PublicApiConversationsUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetV1PublicApiConversationsUuidResponse, error)
// PatchV1PublicApiConversationsUuidWithBodyWithResponse Public API: patch conversations/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v1/public-api/conversations/{uuid} (the `PatchV1PublicApiConversationsUuid` operationId).
PatchV1PublicApiConversationsUuidWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchV1PublicApiConversationsUuidResponse, error)
// PatchV1PublicApiConversationsUuidWithResponse Public API: patch conversations/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v1/public-api/conversations/{uuid} (the `PatchV1PublicApiConversationsUuid` operationId).
PatchV1PublicApiConversationsUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PatchV1PublicApiConversationsUuidParams, body PatchV1PublicApiConversationsUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchV1PublicApiConversationsUuidResponse, error)
// GetV1PublicApiConversationsUuidMessagesWithResponse Public API: get conversations/{uuid}/messages
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/public-api/conversations/{uuid}/messages (the `GetV1PublicApiConversationsUuidMessages` operationId).
GetV1PublicApiConversationsUuidMessagesWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetV1PublicApiConversationsUuidMessagesResponse, error)
// PostV1PublicApiConversationsUuidMessagesWithBodyWithResponse Public API: post conversations/{uuid}/messages
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/conversations/{uuid}/messages (the `PostV1PublicApiConversationsUuidMessages` operationId).
PostV1PublicApiConversationsUuidMessagesWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostV1PublicApiConversationsUuidMessagesResponse, error)
// PostV1PublicApiConversationsUuidMessagesWithResponse Public API: post conversations/{uuid}/messages
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/conversations/{uuid}/messages (the `PostV1PublicApiConversationsUuidMessages` operationId).
PostV1PublicApiConversationsUuidMessagesWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PostV1PublicApiConversationsUuidMessagesParams, body PostV1PublicApiConversationsUuidMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV1PublicApiConversationsUuidMessagesResponse, error)
// SubscribeIntegrationTriggerWithBodyWithResponse Subscribe a signed REST hook
//
// Requires webhooks:write and current channels.manage. Same signed durable webhook delivery pipeline as /v1/tenant/webhooks. HTTPS public targets only; secret returned once. Verify ClickFix-Webhook-Signature as HMAC-SHA256 of timestamp.body, reject old timestamps, and deduplicate ClickFix-Webhook-Id.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/subscriptions (the `SubscribeIntegrationTrigger` operationId).
SubscribeIntegrationTriggerWithBodyWithResponse(ctx context.Context, params *SubscribeIntegrationTriggerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscribeIntegrationTriggerResponse, error)
// SubscribeIntegrationTriggerWithResponse Subscribe a signed REST hook
//
// Requires webhooks:write and current channels.manage. Same signed durable webhook delivery pipeline as /v1/tenant/webhooks. HTTPS public targets only; secret returned once. Verify ClickFix-Webhook-Signature as HMAC-SHA256 of timestamp.body, reject old timestamps, and deduplicate ClickFix-Webhook-Id.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/subscriptions (the `SubscribeIntegrationTrigger` operationId).
SubscribeIntegrationTriggerWithResponse(ctx context.Context, params *SubscribeIntegrationTriggerParams, body SubscribeIntegrationTriggerJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscribeIntegrationTriggerResponse, error)
// UnsubscribeIntegrationTriggerWithResponse Unsubscribe a REST hook
//
// API key scope and current member permissions are both checked. Writes require a unique Idempotency-Key; reuse it for retries.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/public-api/subscriptions/{uuid} (the `UnsubscribeIntegrationTrigger` operationId).
UnsubscribeIntegrationTriggerWithResponse(ctx context.Context, uuid openapi_types.UUID, params *UnsubscribeIntegrationTriggerParams, reqEditors ...RequestEditorFn) (*UnsubscribeIntegrationTriggerResponse, error)
// PollIntegrationTriggersWithResponse Poll conversation/contact/CSAT/tag triggers
//
// Requires triggers:read plus current conversation read/read_all and contact read. Returns public references, not transcripts. Cursor rules and 410 expiration match /v1/tenant/integration-triggers. No X-Organization: key fixes the organization.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/public-api/triggers (the `PollIntegrationTriggers` operationId).
PollIntegrationTriggersWithResponse(ctx context.Context, params *PollIntegrationTriggersParams, reqEditors ...RequestEditorFn) (*PollIntegrationTriggersResponse, error)
// GetV1PublicApiWebhooksWithResponse Public API: get webhooks
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/public-api/webhooks (the `GetV1PublicApiWebhooks` operationId).
GetV1PublicApiWebhooksWithResponse(ctx context.Context, params *GetV1PublicApiWebhooksParams, reqEditors ...RequestEditorFn) (*GetV1PublicApiWebhooksResponse, error)
// PostV1PublicApiWebhooksWithBodyWithResponse Public API: post webhooks
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/webhooks (the `PostV1PublicApiWebhooks` operationId).
PostV1PublicApiWebhooksWithBodyWithResponse(ctx context.Context, params *PostV1PublicApiWebhooksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostV1PublicApiWebhooksResponse, error)
// PostV1PublicApiWebhooksWithResponse Public API: post webhooks
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/public-api/webhooks (the `PostV1PublicApiWebhooks` operationId).
PostV1PublicApiWebhooksWithResponse(ctx context.Context, params *PostV1PublicApiWebhooksParams, body PostV1PublicApiWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV1PublicApiWebhooksResponse, error)
// DeleteV1PublicApiWebhooksUuidWithResponse Public API: delete webhooks/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/public-api/webhooks/{uuid} (the `DeleteV1PublicApiWebhooksUuid` operationId).
DeleteV1PublicApiWebhooksUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, params *DeleteV1PublicApiWebhooksUuidParams, reqEditors ...RequestEditorFn) (*DeleteV1PublicApiWebhooksUuidResponse, error)
// PutV1PublicApiWebhooksUuidWithBodyWithResponse Public API: put webhooks/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/public-api/webhooks/{uuid} (the `PutV1PublicApiWebhooksUuid` operationId).
PutV1PublicApiWebhooksUuidWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutV1PublicApiWebhooksUuidResponse, error)
// PutV1PublicApiWebhooksUuidWithResponse Public API: put webhooks/{uuid}
//
// API key scope and creator current RBAC both apply. Per-key requests/minute limit. Same response envelope and pagination as tenant API; writes require Idempotency-Key. A reused key with a different body returns 409.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/public-api/webhooks/{uuid} (the `PutV1PublicApiWebhooksUuid` operationId).
PutV1PublicApiWebhooksUuidWithResponse(ctx context.Context, uuid openapi_types.UUID, params *PutV1PublicApiWebhooksUuidParams, body PutV1PublicApiWebhooksUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV1PublicApiWebhooksUuidResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CompanyEvent ¶
type CompanyEvent struct {
CompanyUuid openapi_types.UUID `json:"company_uuid"`
Duplicate bool `json:"duplicate"`
Name string `json:"name"`
OccurredAt time.Time `json:"occurred_at"`
Properties map[string]interface{} `json:"properties"`
Source string `json:"source"`
Uuid openapi_types.UUID `json:"uuid"`
}
CompanyEvent defines model for CompanyEvent.
type CompanyEventInput ¶
type CompanyEventInput struct {
CompanyUuid *openapi_types.UUID `json:"company_uuid,omitempty"`
ContactEmail *string `json:"contact_email,omitempty"`
Domain *string `json:"domain,omitempty"`
ExternalId *string `json:"external_id,omitempty"`
IdempotencyKey *string `json:"idempotency_key,omitempty"`
Name string `json:"name"`
OccurredAt *time.Time `json:"occurred_at,omitempty"`
Properties *map[string]interface{} `json:"properties,omitempty"`
Source *string `json:"source,omitempty"`
}
CompanyEventInput defines model for CompanyEventInput.
type CompanyRevenue ¶
type CompanyRevenue struct {
BillingStatus CompanyRevenueBillingStatus `json:"billing_status"`
Currency string `json:"currency"`
ExternalRef string `json:"external_ref"`
LifetimeValueMinor int64 `json:"lifetime_value_minor"`
MrrMinor int64 `json:"mrr_minor"`
Plan string `json:"plan"`
RenewalAt *time.Time `json:"renewal_at"`
Source CompanyRevenueSource `json:"source"`
UpdatedAt time.Time `json:"updated_at"`
}
CompanyRevenue What the customer pays the organization. Amounts are minor units of `currency`.
type CompanyRevenueBillingStatus ¶
type CompanyRevenueBillingStatus string
CompanyRevenueBillingStatus defines model for CompanyRevenue.BillingStatus.
const ( CompanyRevenueBillingStatusActive CompanyRevenueBillingStatus = "active" CompanyRevenueBillingStatusCanceled CompanyRevenueBillingStatus = "canceled" CompanyRevenueBillingStatusNone CompanyRevenueBillingStatus = "none" CompanyRevenueBillingStatusPastDue CompanyRevenueBillingStatus = "past_due" CompanyRevenueBillingStatusTrialing CompanyRevenueBillingStatus = "trialing" )
Defines values for CompanyRevenueBillingStatus.
func (CompanyRevenueBillingStatus) Valid ¶
func (e CompanyRevenueBillingStatus) Valid() bool
Valid indicates whether the value is a known member of the CompanyRevenueBillingStatus enum.
type CompanyRevenueSource ¶
type CompanyRevenueSource string
CompanyRevenueSource defines model for CompanyRevenue.Source.
const ( CompanyRevenueSourceApi CompanyRevenueSource = "api" CompanyRevenueSourceIyzico CompanyRevenueSource = "iyzico" CompanyRevenueSourceManual CompanyRevenueSource = "manual" CompanyRevenueSourceStripe CompanyRevenueSource = "stripe" )
Defines values for CompanyRevenueSource.
func (CompanyRevenueSource) Valid ¶
func (e CompanyRevenueSource) Valid() bool
Valid indicates whether the value is a known member of the CompanyRevenueSource enum.
type CompanyRevenueUpsertInput ¶
type CompanyRevenueUpsertInput struct {
BillingStatus *CompanyRevenueUpsertInputBillingStatus `json:"billing_status,omitempty"`
CompanyUuid *openapi_types.UUID `json:"company_uuid,omitempty"`
Currency *string `json:"currency,omitempty"`
Domain *string `json:"domain,omitempty"`
ExternalId *string `json:"external_id,omitempty"`
ExternalRef *string `json:"external_ref,omitempty"`
LifetimeValueMinor *int64 `json:"lifetime_value_minor,omitempty"`
MrrMinor *int64 `json:"mrr_minor,omitempty"`
Plan *string `json:"plan,omitempty"`
// RenewalAt RFC 3339 time or YYYY-MM-DD date; null clears it.
RenewalAt *string `json:"renewal_at,omitempty"`
Source *CompanyRevenueUpsertInputSource `json:"source,omitempty"`
}
CompanyRevenueUpsertInput defines model for CompanyRevenueUpsertInput.
type CompanyRevenueUpsertInputBillingStatus ¶
type CompanyRevenueUpsertInputBillingStatus string
CompanyRevenueUpsertInputBillingStatus defines model for CompanyRevenueUpsertInput.BillingStatus.
const ( CompanyRevenueUpsertInputBillingStatusActive CompanyRevenueUpsertInputBillingStatus = "active" CompanyRevenueUpsertInputBillingStatusCanceled CompanyRevenueUpsertInputBillingStatus = "canceled" CompanyRevenueUpsertInputBillingStatusNone CompanyRevenueUpsertInputBillingStatus = "none" CompanyRevenueUpsertInputBillingStatusPastDue CompanyRevenueUpsertInputBillingStatus = "past_due" CompanyRevenueUpsertInputBillingStatusTrialing CompanyRevenueUpsertInputBillingStatus = "trialing" )
Defines values for CompanyRevenueUpsertInputBillingStatus.
func (CompanyRevenueUpsertInputBillingStatus) Valid ¶
func (e CompanyRevenueUpsertInputBillingStatus) Valid() bool
Valid indicates whether the value is a known member of the CompanyRevenueUpsertInputBillingStatus enum.
type CompanyRevenueUpsertInputSource ¶
type CompanyRevenueUpsertInputSource string
CompanyRevenueUpsertInputSource defines model for CompanyRevenueUpsertInput.Source.
const ( CompanyRevenueUpsertInputSourceApi CompanyRevenueUpsertInputSource = "api" CompanyRevenueUpsertInputSourceIyzico CompanyRevenueUpsertInputSource = "iyzico" CompanyRevenueUpsertInputSourceStripe CompanyRevenueUpsertInputSource = "stripe" )
Defines values for CompanyRevenueUpsertInputSource.
func (CompanyRevenueUpsertInputSource) Valid ¶
func (e CompanyRevenueUpsertInputSource) Valid() bool
Valid indicates whether the value is a known member of the CompanyRevenueUpsertInputSource enum.
type CompanyUsageInput ¶
type CompanyUsageInput struct {
CompanyUuid *openapi_types.UUID `json:"company_uuid,omitempty"`
Domain *string `json:"domain,omitempty"`
ExternalId *string `json:"external_id,omitempty"`
Score int `json:"score"`
}
CompanyUsageInput defines model for CompanyUsageInput.
type Contact ¶
type Contact struct {
Blocked bool `json:"blocked"`
ChannelTypes []string `json:"channel_types"`
Company *InboxRef `json:"company"`
ConversationCount int64 `json:"conversation_count"`
CreatedAt time.Time `json:"created_at"`
CustomFields map[string]interface{} `json:"custom_fields"`
Email *string `json:"email"`
// ExternalId The customer's own user id, unique in the organization.
ExternalId *string `json:"external_id"`
Identities *[]ContactIdentity `json:"identities,omitempty"`
// IdentityState Verified: the contact proved the customer's user id with
// user_hash (widget identify). anonymous: no name, e-mail or phone.
// self_named: a name, e-mail or phone the contact or its channel gave,
// not proved.
IdentityState ContactIdentityState `json:"identity_state"`
JobTitle string `json:"job_title"`
LastSeenAt *time.Time `json:"last_seen_at"`
Locale *string `json:"locale"`
Name string `json:"name"`
Notes string `json:"notes"`
Phone *string `json:"phone"`
Timezone *string `json:"timezone"`
UpdatedAt time.Time `json:"updated_at"`
Uuid openapi_types.UUID `json:"uuid"`
// VerifiedAt Last widget identify that proved the id with user_hash.
VerifiedAt *time.Time `json:"verified_at"`
}
Contact defines model for Contact.
type ContactIdentity ¶
type ContactIdentity struct {
ChannelType string `json:"channel_type"`
CreatedAt time.Time `json:"created_at"`
DisplayName string `json:"display_name"`
ExternalId string `json:"external_id"`
Id int64 `json:"id"`
InboxUuid *openapi_types.UUID `json:"inbox_uuid"`
LastSeenAt *time.Time `json:"last_seen_at"`
Username string `json:"username"`
}
ContactIdentity defines model for ContactIdentity.
type ContactIdentityState ¶
type ContactIdentityState string
ContactIdentityState Verified: the contact proved the customer's user id with user_hash (widget identify). anonymous: no name, e-mail or phone. self_named: a name, e-mail or phone the contact or its channel gave, not proved.
const ( Anonymous ContactIdentityState = "anonymous" SelfNamed ContactIdentityState = "self_named" Verified ContactIdentityState = "verified" )
Defines values for ContactIdentityState.
func (ContactIdentityState) Valid ¶
func (e ContactIdentityState) Valid() bool
Valid indicates whether the value is a known member of the ContactIdentityState enum.
type ContactInput ¶
type ContactInput struct {
Blocked *bool `json:"blocked,omitempty"`
Company *openapi_types.UUID `json:"company,omitempty"`
CustomFields *map[string]interface{} `json:"custom_fields,omitempty"`
Email *string `json:"email,omitempty"`
// ExternalId The customer's own user id; empty clears it. 409 EXTERNAL_ID_EXISTS when another contact has it.
ExternalId *string `json:"external_id,omitempty"`
JobTitle *string `json:"job_title,omitempty"`
Locale *string `json:"locale,omitempty"`
Name *string `json:"name,omitempty"`
Notes *string `json:"notes,omitempty"`
Phone *string `json:"phone,omitempty"`
Timezone *string `json:"timezone,omitempty"`
}
ContactInput defines model for ContactInput.
type ConversationPriority ¶
type ConversationPriority string
ConversationPriority defines model for ConversationPriority.
const ( High ConversationPriority = "high" Low ConversationPriority = "low" Normal ConversationPriority = "normal" Urgent ConversationPriority = "urgent" )
Defines values for ConversationPriority.
func (ConversationPriority) Valid ¶
func (e ConversationPriority) Valid() bool
Valid indicates whether the value is a known member of the ConversationPriority enum.
type ConversationStatus ¶
type ConversationStatus string
ConversationStatus defines model for ConversationStatus.
const ( Closed ConversationStatus = "closed" Open ConversationStatus = "open" Pending ConversationStatus = "pending" Resolved ConversationStatus = "resolved" Snoozed ConversationStatus = "snoozed" )
Defines values for ConversationStatus.
func (ConversationStatus) Valid ¶
func (e ConversationStatus) Valid() bool
Valid indicates whether the value is a known member of the ConversationStatus enum.
type ConversationUpdate ¶
type ConversationUpdate struct {
Assignee *openapi_types.UUID `json:"assignee,omitempty"`
Priority *ConversationPriority `json:"priority,omitempty"`
SnoozedUntil *time.Time `json:"snoozed_until,omitempty"`
Status *ConversationStatus `json:"status,omitempty"`
Subject *string `json:"subject,omitempty"`
// Team Team uuid; null removes the team (tenant.conversations.assign)
Team *openapi_types.UUID `json:"team,omitempty"`
}
ConversationUpdate defines model for ConversationUpdate.
type CreateIntegrationConversation201JSONResponseBodySuccess ¶
type CreateIntegrationConversation201JSONResponseBodySuccess bool
CreateIntegrationConversation201JSONResponseBodySuccess defines parameters for CreateIntegrationConversation.
const (
CreateIntegrationConversation201JSONResponseBodySuccessTrue CreateIntegrationConversation201JSONResponseBodySuccess = true
)
Defines values for CreateIntegrationConversation201JSONResponseBodySuccess.
func (CreateIntegrationConversation201JSONResponseBodySuccess) Valid ¶
func (e CreateIntegrationConversation201JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the CreateIntegrationConversation201JSONResponseBodySuccess enum.
type CreateIntegrationConversationJSONRequestBody ¶
type CreateIntegrationConversationJSONRequestBody = IntegrationCreateConversation
CreateIntegrationConversationJSONRequestBody defines body for CreateIntegrationConversation for application/json ContentType.
type CreateIntegrationConversationParams ¶
type CreateIntegrationConversationParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
CreateIntegrationConversationParams defines parameters for CreateIntegrationConversation.
type CreateIntegrationConversationResponse ¶
type CreateIntegrationConversationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *struct {
Data struct {
Number int `json:"number"`
Status string `json:"status"`
Uuid openapi_types.UUID `json:"uuid"`
} `json:"data"`
Meta ResponseMeta `json:"meta"`
Success CreateIntegrationConversation201JSONResponseBodySuccess `json:"success"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseCreateIntegrationConversationResponse ¶
func ParseCreateIntegrationConversationResponse(rsp *http.Response) (*CreateIntegrationConversationResponse, error)
ParseCreateIntegrationConversationResponse parses an HTTP response from a CreateIntegrationConversationWithResponse call
func (CreateIntegrationConversationResponse) ContentType ¶
func (r CreateIntegrationConversationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateIntegrationConversationResponse) GetBody ¶
func (r CreateIntegrationConversationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateIntegrationConversationResponse) GetJSON201 ¶
func (r CreateIntegrationConversationResponse) GetJSON201() *struct { Data struct { Number int `json:"number"` Status string `json:"status"` Uuid openapi_types.UUID `json:"uuid"` } `json:"data"` Meta ResponseMeta `json:"meta"` Success CreateIntegrationConversation201JSONResponseBodySuccess `json:"success"` }
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateIntegrationConversationResponse) GetJSON400 ¶
func (r CreateIntegrationConversationResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateIntegrationConversationResponse) GetJSON401 ¶
func (r CreateIntegrationConversationResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateIntegrationConversationResponse) GetJSON403 ¶
func (r CreateIntegrationConversationResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateIntegrationConversationResponse) GetJSON404 ¶
func (r CreateIntegrationConversationResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CreateIntegrationConversationResponse) Status ¶
func (r CreateIntegrationConversationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateIntegrationConversationResponse) StatusCode ¶
func (r CreateIntegrationConversationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteV1PublicApiWebhooksUuidParams ¶
type DeleteV1PublicApiWebhooksUuidParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
DeleteV1PublicApiWebhooksUuidParams defines parameters for DeleteV1PublicApiWebhooksUuid.
type DeleteV1PublicApiWebhooksUuidResponse ¶
type DeleteV1PublicApiWebhooksUuidResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseDeleteV1PublicApiWebhooksUuidResponse ¶
func ParseDeleteV1PublicApiWebhooksUuidResponse(rsp *http.Response) (*DeleteV1PublicApiWebhooksUuidResponse, error)
ParseDeleteV1PublicApiWebhooksUuidResponse parses an HTTP response from a DeleteV1PublicApiWebhooksUuidWithResponse call
func (DeleteV1PublicApiWebhooksUuidResponse) ContentType ¶
func (r DeleteV1PublicApiWebhooksUuidResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteV1PublicApiWebhooksUuidResponse) GetBody ¶
func (r DeleteV1PublicApiWebhooksUuidResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteV1PublicApiWebhooksUuidResponse) GetJSON200 ¶
func (r DeleteV1PublicApiWebhooksUuidResponse) GetJSON200() *IntegrationEnvelope
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteV1PublicApiWebhooksUuidResponse) GetJSON400 ¶
func (r DeleteV1PublicApiWebhooksUuidResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteV1PublicApiWebhooksUuidResponse) GetJSON401 ¶
func (r DeleteV1PublicApiWebhooksUuidResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteV1PublicApiWebhooksUuidResponse) GetJSON403 ¶
func (r DeleteV1PublicApiWebhooksUuidResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteV1PublicApiWebhooksUuidResponse) Status ¶
func (r DeleteV1PublicApiWebhooksUuidResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteV1PublicApiWebhooksUuidResponse) StatusCode ¶
func (r DeleteV1PublicApiWebhooksUuidResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnvelopeCompanyEvent ¶
type EnvelopeCompanyEvent struct {
Data CompanyEvent `json:"data"`
Meta ResponseMeta `json:"meta"`
Success EnvelopeCompanyEventSuccess `json:"success"`
}
EnvelopeCompanyEvent defines model for EnvelopeCompanyEvent.
type EnvelopeCompanyEventSuccess ¶
type EnvelopeCompanyEventSuccess bool
EnvelopeCompanyEventSuccess defines model for EnvelopeCompanyEvent.Success.
const (
EnvelopeCompanyEventSuccessTrue EnvelopeCompanyEventSuccess = true
)
Defines values for EnvelopeCompanyEventSuccess.
func (EnvelopeCompanyEventSuccess) Valid ¶
func (e EnvelopeCompanyEventSuccess) Valid() bool
Valid indicates whether the value is a known member of the EnvelopeCompanyEventSuccess enum.
type EnvelopeCompanyRevenueUpsert ¶
type EnvelopeCompanyRevenueUpsert struct {
Data struct {
CompanyUuid openapi_types.UUID `json:"company_uuid"`
// Revenue What the customer pays the organization. Amounts are minor units of `currency`.
Revenue CompanyRevenue `json:"revenue"`
} `json:"data"`
Meta ResponseMeta `json:"meta"`
Success EnvelopeCompanyRevenueUpsertSuccess `json:"success"`
}
EnvelopeCompanyRevenueUpsert defines model for EnvelopeCompanyRevenueUpsert.
type EnvelopeCompanyRevenueUpsertSuccess ¶
type EnvelopeCompanyRevenueUpsertSuccess bool
EnvelopeCompanyRevenueUpsertSuccess defines model for EnvelopeCompanyRevenueUpsert.Success.
const (
EnvelopeCompanyRevenueUpsertSuccessTrue EnvelopeCompanyRevenueUpsertSuccess = true
)
Defines values for EnvelopeCompanyRevenueUpsertSuccess.
func (EnvelopeCompanyRevenueUpsertSuccess) Valid ¶
func (e EnvelopeCompanyRevenueUpsertSuccess) Valid() bool
Valid indicates whether the value is a known member of the EnvelopeCompanyRevenueUpsertSuccess enum.
type EnvelopeCompanyUsage ¶
type EnvelopeCompanyUsage struct {
Data struct {
CompanyUuid openapi_types.UUID `json:"company_uuid"`
UsageScore int `json:"usage_score"`
} `json:"data"`
Meta ResponseMeta `json:"meta"`
Success EnvelopeCompanyUsageSuccess `json:"success"`
}
EnvelopeCompanyUsage defines model for EnvelopeCompanyUsage.
type EnvelopeCompanyUsageSuccess ¶
type EnvelopeCompanyUsageSuccess bool
EnvelopeCompanyUsageSuccess defines model for EnvelopeCompanyUsage.Success.
const (
EnvelopeCompanyUsageSuccessTrue EnvelopeCompanyUsageSuccess = true
)
Defines values for EnvelopeCompanyUsageSuccess.
func (EnvelopeCompanyUsageSuccess) Valid ¶
func (e EnvelopeCompanyUsageSuccess) Valid() bool
Valid indicates whether the value is a known member of the EnvelopeCompanyUsageSuccess enum.
type EnvelopeContact ¶
type EnvelopeContact struct {
Data Contact `json:"data"`
Meta ResponseMeta `json:"meta"`
Success EnvelopeContactSuccess `json:"success"`
}
EnvelopeContact defines model for EnvelopeContact.
type EnvelopeContactSuccess ¶
type EnvelopeContactSuccess bool
EnvelopeContactSuccess defines model for EnvelopeContact.Success.
const (
EnvelopeContactSuccessTrue EnvelopeContactSuccess = true
)
Defines values for EnvelopeContactSuccess.
func (EnvelopeContactSuccess) Valid ¶
func (e EnvelopeContactSuccess) Valid() bool
Valid indicates whether the value is a known member of the EnvelopeContactSuccess enum.
type Error ¶
type Error struct {
Error ErrorBody `json:"error"`
Meta ResponseMeta `json:"meta"`
Success ErrorSuccess `json:"success"`
}
Error defines model for Error.
type ErrorBody ¶
type ErrorBody struct {
// Code Machine-readable error code
//
// Examples: VALIDATION_ERROR, INVALID_RESET_CODE, INVALID_VERIFICATION_CODE, INVALID_CREDENTIALS, UNAUTHENTICATED, FORBIDDEN, NOT_FOUND, CONFLICT, PASSWORD_RESET_FAILED, INTERNAL_ERROR, MFA_REQUIRED, INVALID_MFA_CODE, RATE_LIMITED, STEP_UP_REQUIRED, ACCOUNT_DEACTIVATED, INVALID_EMAIL_CODE, INVALID_ID_TOKEN, OAUTH_ACCOUNT_NOT_LINKED, OAUTH_LINK_CHOICE_REQUIRED, INVALID_LINK_TICKET, OAUTH_PROVIDER_DISABLED, ORGANIZATION_REQUIRED, NO_TENANT_MEMBERSHIP, ORGANIZATION_SUSPENDED, ORGANIZATION_ACCESS_EXPIRED
Code string `json:"code"`
Details *[]ErrorDetail `json:"details,omitempty"`
Message string `json:"message"`
}
ErrorBody defines model for ErrorBody.
type ErrorDetail ¶
type ErrorDetail struct {
Code *string `json:"code,omitempty"`
Field *string `json:"field,omitempty"`
Message string `json:"message"`
}
ErrorDetail defines model for ErrorDetail.
type ErrorSuccess ¶
type ErrorSuccess bool
ErrorSuccess defines model for Error.Success.
const (
False ErrorSuccess = false
)
Defines values for ErrorSuccess.
func (ErrorSuccess) Valid ¶
func (e ErrorSuccess) Valid() bool
Valid indicates whether the value is a known member of the ErrorSuccess enum.
type GetV1PublicApiCompaniesParams ¶
type GetV1PublicApiCompaniesParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
// ExternalId The company's id in your system, exact match.
ExternalId *string `form:"external_id,omitempty" json:"external_id,omitempty"`
}
GetV1PublicApiCompaniesParams defines parameters for GetV1PublicApiCompanies.
type GetV1PublicApiCompaniesResponse ¶
type GetV1PublicApiCompaniesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseGetV1PublicApiCompaniesResponse ¶
func ParseGetV1PublicApiCompaniesResponse(rsp *http.Response) (*GetV1PublicApiCompaniesResponse, error)
ParseGetV1PublicApiCompaniesResponse parses an HTTP response from a GetV1PublicApiCompaniesWithResponse call
func (GetV1PublicApiCompaniesResponse) ContentType ¶
func (r GetV1PublicApiCompaniesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetV1PublicApiCompaniesResponse) GetBody ¶
func (r GetV1PublicApiCompaniesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetV1PublicApiCompaniesResponse) GetJSON200 ¶
func (r GetV1PublicApiCompaniesResponse) GetJSON200() *IntegrationEnvelope
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetV1PublicApiCompaniesResponse) GetJSON400 ¶
func (r GetV1PublicApiCompaniesResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetV1PublicApiCompaniesResponse) GetJSON401 ¶
func (r GetV1PublicApiCompaniesResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetV1PublicApiCompaniesResponse) GetJSON403 ¶
func (r GetV1PublicApiCompaniesResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetV1PublicApiCompaniesResponse) Status ¶
func (r GetV1PublicApiCompaniesResponse) Status() string
Status returns HTTPResponse.Status
func (GetV1PublicApiCompaniesResponse) StatusCode ¶
func (r GetV1PublicApiCompaniesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetV1PublicApiContactsParams ¶
type GetV1PublicApiContactsParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
// Q Case-insensitive match on the contact name or e-mail.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// ExternalId The customer's own user id, exact match.
ExternalId *string `form:"external_id,omitempty" json:"external_id,omitempty"`
}
GetV1PublicApiContactsParams defines parameters for GetV1PublicApiContacts.
type GetV1PublicApiContactsResponse ¶
type GetV1PublicApiContactsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseGetV1PublicApiContactsResponse ¶
func ParseGetV1PublicApiContactsResponse(rsp *http.Response) (*GetV1PublicApiContactsResponse, error)
ParseGetV1PublicApiContactsResponse parses an HTTP response from a GetV1PublicApiContactsWithResponse call
func (GetV1PublicApiContactsResponse) ContentType ¶
func (r GetV1PublicApiContactsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetV1PublicApiContactsResponse) GetBody ¶
func (r GetV1PublicApiContactsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetV1PublicApiContactsResponse) GetJSON200 ¶
func (r GetV1PublicApiContactsResponse) GetJSON200() *IntegrationEnvelope
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetV1PublicApiContactsResponse) GetJSON400 ¶
func (r GetV1PublicApiContactsResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetV1PublicApiContactsResponse) GetJSON401 ¶
func (r GetV1PublicApiContactsResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetV1PublicApiContactsResponse) GetJSON403 ¶
func (r GetV1PublicApiContactsResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetV1PublicApiContactsResponse) Status ¶
func (r GetV1PublicApiContactsResponse) Status() string
Status returns HTTPResponse.Status
func (GetV1PublicApiContactsResponse) StatusCode ¶
func (r GetV1PublicApiContactsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetV1PublicApiConversationsParams ¶
type GetV1PublicApiConversationsParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
GetV1PublicApiConversationsParams defines parameters for GetV1PublicApiConversations.
type GetV1PublicApiConversationsResponse ¶
type GetV1PublicApiConversationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseGetV1PublicApiConversationsResponse ¶
func ParseGetV1PublicApiConversationsResponse(rsp *http.Response) (*GetV1PublicApiConversationsResponse, error)
ParseGetV1PublicApiConversationsResponse parses an HTTP response from a GetV1PublicApiConversationsWithResponse call
func (GetV1PublicApiConversationsResponse) ContentType ¶
func (r GetV1PublicApiConversationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetV1PublicApiConversationsResponse) GetBody ¶
func (r GetV1PublicApiConversationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetV1PublicApiConversationsResponse) GetJSON200 ¶
func (r GetV1PublicApiConversationsResponse) GetJSON200() *IntegrationEnvelope
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetV1PublicApiConversationsResponse) GetJSON400 ¶
func (r GetV1PublicApiConversationsResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetV1PublicApiConversationsResponse) GetJSON401 ¶
func (r GetV1PublicApiConversationsResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetV1PublicApiConversationsResponse) GetJSON403 ¶
func (r GetV1PublicApiConversationsResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetV1PublicApiConversationsResponse) Status ¶
func (r GetV1PublicApiConversationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetV1PublicApiConversationsResponse) StatusCode ¶
func (r GetV1PublicApiConversationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetV1PublicApiConversationsUuidMessagesResponse ¶
type GetV1PublicApiConversationsUuidMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseGetV1PublicApiConversationsUuidMessagesResponse ¶
func ParseGetV1PublicApiConversationsUuidMessagesResponse(rsp *http.Response) (*GetV1PublicApiConversationsUuidMessagesResponse, error)
ParseGetV1PublicApiConversationsUuidMessagesResponse parses an HTTP response from a GetV1PublicApiConversationsUuidMessagesWithResponse call
func (GetV1PublicApiConversationsUuidMessagesResponse) ContentType ¶
func (r GetV1PublicApiConversationsUuidMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetV1PublicApiConversationsUuidMessagesResponse) GetBody ¶
func (r GetV1PublicApiConversationsUuidMessagesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetV1PublicApiConversationsUuidMessagesResponse) GetJSON200 ¶
func (r GetV1PublicApiConversationsUuidMessagesResponse) GetJSON200() *IntegrationEnvelope
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetV1PublicApiConversationsUuidMessagesResponse) GetJSON400 ¶
func (r GetV1PublicApiConversationsUuidMessagesResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetV1PublicApiConversationsUuidMessagesResponse) GetJSON401 ¶
func (r GetV1PublicApiConversationsUuidMessagesResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetV1PublicApiConversationsUuidMessagesResponse) GetJSON403 ¶
func (r GetV1PublicApiConversationsUuidMessagesResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetV1PublicApiConversationsUuidMessagesResponse) Status ¶
func (r GetV1PublicApiConversationsUuidMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (GetV1PublicApiConversationsUuidMessagesResponse) StatusCode ¶
func (r GetV1PublicApiConversationsUuidMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetV1PublicApiConversationsUuidResponse ¶
type GetV1PublicApiConversationsUuidResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseGetV1PublicApiConversationsUuidResponse ¶
func ParseGetV1PublicApiConversationsUuidResponse(rsp *http.Response) (*GetV1PublicApiConversationsUuidResponse, error)
ParseGetV1PublicApiConversationsUuidResponse parses an HTTP response from a GetV1PublicApiConversationsUuidWithResponse call
func (GetV1PublicApiConversationsUuidResponse) ContentType ¶
func (r GetV1PublicApiConversationsUuidResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetV1PublicApiConversationsUuidResponse) GetBody ¶
func (r GetV1PublicApiConversationsUuidResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetV1PublicApiConversationsUuidResponse) GetJSON200 ¶
func (r GetV1PublicApiConversationsUuidResponse) GetJSON200() *IntegrationEnvelope
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetV1PublicApiConversationsUuidResponse) GetJSON400 ¶
func (r GetV1PublicApiConversationsUuidResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetV1PublicApiConversationsUuidResponse) GetJSON401 ¶
func (r GetV1PublicApiConversationsUuidResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetV1PublicApiConversationsUuidResponse) GetJSON403 ¶
func (r GetV1PublicApiConversationsUuidResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetV1PublicApiConversationsUuidResponse) Status ¶
func (r GetV1PublicApiConversationsUuidResponse) Status() string
Status returns HTTPResponse.Status
func (GetV1PublicApiConversationsUuidResponse) StatusCode ¶
func (r GetV1PublicApiConversationsUuidResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetV1PublicApiWebhooksParams ¶
type GetV1PublicApiWebhooksParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
GetV1PublicApiWebhooksParams defines parameters for GetV1PublicApiWebhooks.
type GetV1PublicApiWebhooksResponse ¶
type GetV1PublicApiWebhooksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseGetV1PublicApiWebhooksResponse ¶
func ParseGetV1PublicApiWebhooksResponse(rsp *http.Response) (*GetV1PublicApiWebhooksResponse, error)
ParseGetV1PublicApiWebhooksResponse parses an HTTP response from a GetV1PublicApiWebhooksWithResponse call
func (GetV1PublicApiWebhooksResponse) ContentType ¶
func (r GetV1PublicApiWebhooksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetV1PublicApiWebhooksResponse) GetBody ¶
func (r GetV1PublicApiWebhooksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetV1PublicApiWebhooksResponse) GetJSON200 ¶
func (r GetV1PublicApiWebhooksResponse) GetJSON200() *IntegrationEnvelope
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetV1PublicApiWebhooksResponse) GetJSON400 ¶
func (r GetV1PublicApiWebhooksResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetV1PublicApiWebhooksResponse) GetJSON401 ¶
func (r GetV1PublicApiWebhooksResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetV1PublicApiWebhooksResponse) GetJSON403 ¶
func (r GetV1PublicApiWebhooksResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetV1PublicApiWebhooksResponse) Status ¶
func (r GetV1PublicApiWebhooksResponse) Status() string
Status returns HTTPResponse.Status
func (GetV1PublicApiWebhooksResponse) StatusCode ¶
func (r GetV1PublicApiWebhooksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InboxRef ¶
type InboxRef struct {
Name string `json:"name"`
Uuid openapi_types.UUID `json:"uuid"`
}
InboxRef defines model for InboxRef.
type IntegrationContactUpdate ¶
type IntegrationContactUpdate struct {
Email *string `json:"email,omitempty"`
Name *string `json:"name,omitempty"`
Notes *string `json:"notes,omitempty"`
Phone *string `json:"phone,omitempty"`
}
IntegrationContactUpdate defines model for IntegrationContactUpdate.
type IntegrationCreateConversation ¶
type IntegrationCreateConversation struct {
ContactExternalId *string `json:"contact_external_id,omitempty"`
ContactUuid *openapi_types.UUID `json:"contact_uuid,omitempty"`
InboxUuid openapi_types.UUID `json:"inbox_uuid"`
Subject string `json:"subject"`
}
IntegrationCreateConversation Name the contact by contact_uuid or contact_external_id (the customer's own user id), not both. On a widget inbox a contact with an external id gets its widget identity, so the agent can write first and the signed-in user finds the conversation on the site.
type IntegrationEnvelope ¶
type IntegrationEnvelope struct {
Data interface{} `json:"data"`
Meta *struct {
RequestId *string `json:"request_id,omitempty"`
} `json:"meta,omitempty"`
Success bool `json:"success"`
}
IntegrationEnvelope defines model for IntegrationEnvelope.
type IntegrationSubscription ¶
type IntegrationSubscription struct {
Enabled bool `json:"enabled"`
Events []IntegrationSubscriptionEvents `json:"events"`
Name string `json:"name"`
Url string `json:"url"`
}
IntegrationSubscription defines model for IntegrationSubscription.
type IntegrationSubscriptionEvents ¶
type IntegrationSubscriptionEvents string
IntegrationSubscriptionEvents defines model for IntegrationSubscription.Events.
const ( IntegrationSubscriptionEventsContactCreated IntegrationSubscriptionEvents = "contact.created" IntegrationSubscriptionEventsConversationCreated IntegrationSubscriptionEvents = "conversation.created" IntegrationSubscriptionEventsConversationResolved IntegrationSubscriptionEvents = "conversation.resolved" IntegrationSubscriptionEventsConversationTagAdded IntegrationSubscriptionEvents = "conversation.tag_added" IntegrationSubscriptionEventsCsatSubmitted IntegrationSubscriptionEvents = "csat.submitted" )
Defines values for IntegrationSubscriptionEvents.
func (IntegrationSubscriptionEvents) Valid ¶
func (e IntegrationSubscriptionEvents) Valid() bool
Valid indicates whether the value is a known member of the IntegrationSubscriptionEvents enum.
type IntegrationTrigger ¶
type IntegrationTrigger struct {
EntityUuid *openapi_types.UUID `json:"entity_uuid"`
Event IntegrationTriggerEvent `json:"event"`
Id openapi_types.UUID `json:"id"`
OccurredAt time.Time `json:"occurred_at"`
}
IntegrationTrigger defines model for IntegrationTrigger.
type IntegrationTriggerEvent ¶
type IntegrationTriggerEvent string
IntegrationTriggerEvent defines model for IntegrationTrigger.Event.
const ( IntegrationTriggerEventContactCreated IntegrationTriggerEvent = "contact.created" IntegrationTriggerEventConversationCreated IntegrationTriggerEvent = "conversation.created" IntegrationTriggerEventConversationResolved IntegrationTriggerEvent = "conversation.resolved" IntegrationTriggerEventConversationTagAdded IntegrationTriggerEvent = "conversation.tag_added" IntegrationTriggerEventCsatSubmitted IntegrationTriggerEvent = "csat.submitted" )
Defines values for IntegrationTriggerEvent.
func (IntegrationTriggerEvent) Valid ¶
func (e IntegrationTriggerEvent) Valid() bool
Valid indicates whether the value is a known member of the IntegrationTriggerEvent enum.
type IntegrationTriggerPage ¶
type IntegrationTriggerPage struct {
HasMore bool `json:"has_more"`
Items []IntegrationTrigger `json:"items"`
NextCursor string `json:"next_cursor"`
RetentionDays int `json:"retention_days"`
}
IntegrationTriggerPage defines model for IntegrationTriggerPage.
type OutboundWebhookInput ¶
type OutboundWebhookInput struct {
Enabled bool `json:"enabled"`
Events []string `json:"events"`
Name string `json:"name"`
// Url Public HTTPS URL. Private addresses, redirects and DNS rebinding are blocked.
Url string `json:"url"`
}
OutboundWebhookInput defines model for OutboundWebhookInput.
type Page ¶
type Page[T any] struct { Items []T `json:"items"` Total int64 `json:"total"` Limit int `json:"limit"` Offset int `json:"offset"` }
func ListPage ¶
func ListPage[T any](ctx context.Context, c *SDK, resource string, limit, offset int) (Page[T], error)
ListPage decodes the standard envelope. resource is restricted to list endpoints.
func ListPageQuery ¶ added in v0.3.0
func ListPageQuery[T any](ctx context.Context, c *SDK, resource string, limit, offset int, query url.Values) (Page[T], error)
ListPageQuery is ListPage with extra query parameters (filters such as external_id or q); limit and offset always come from the arguments.
type PatchV1PublicApiConversationsUuidJSONRequestBody ¶
type PatchV1PublicApiConversationsUuidJSONRequestBody = ConversationUpdate
PatchV1PublicApiConversationsUuidJSONRequestBody defines body for PatchV1PublicApiConversationsUuid for application/json ContentType.
type PatchV1PublicApiConversationsUuidParams ¶
type PatchV1PublicApiConversationsUuidParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
PatchV1PublicApiConversationsUuidParams defines parameters for PatchV1PublicApiConversationsUuid.
type PatchV1PublicApiConversationsUuidResponse ¶
type PatchV1PublicApiConversationsUuidResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParsePatchV1PublicApiConversationsUuidResponse ¶
func ParsePatchV1PublicApiConversationsUuidResponse(rsp *http.Response) (*PatchV1PublicApiConversationsUuidResponse, error)
ParsePatchV1PublicApiConversationsUuidResponse parses an HTTP response from a PatchV1PublicApiConversationsUuidWithResponse call
func (PatchV1PublicApiConversationsUuidResponse) ContentType ¶
func (r PatchV1PublicApiConversationsUuidResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchV1PublicApiConversationsUuidResponse) GetBody ¶
func (r PatchV1PublicApiConversationsUuidResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchV1PublicApiConversationsUuidResponse) GetJSON200 ¶
func (r PatchV1PublicApiConversationsUuidResponse) GetJSON200() *IntegrationEnvelope
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchV1PublicApiConversationsUuidResponse) GetJSON400 ¶
func (r PatchV1PublicApiConversationsUuidResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchV1PublicApiConversationsUuidResponse) GetJSON401 ¶
func (r PatchV1PublicApiConversationsUuidResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PatchV1PublicApiConversationsUuidResponse) GetJSON403 ¶
func (r PatchV1PublicApiConversationsUuidResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PatchV1PublicApiConversationsUuidResponse) Status ¶
func (r PatchV1PublicApiConversationsUuidResponse) Status() string
Status returns HTTPResponse.Status
func (PatchV1PublicApiConversationsUuidResponse) StatusCode ¶
func (r PatchV1PublicApiConversationsUuidResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PollIntegrationTriggers200JSONResponseBodySuccess ¶
type PollIntegrationTriggers200JSONResponseBodySuccess bool
PollIntegrationTriggers200JSONResponseBodySuccess defines parameters for PollIntegrationTriggers.
const (
PollIntegrationTriggers200JSONResponseBodySuccessTrue PollIntegrationTriggers200JSONResponseBodySuccess = true
)
Defines values for PollIntegrationTriggers200JSONResponseBodySuccess.
func (PollIntegrationTriggers200JSONResponseBodySuccess) Valid ¶
func (e PollIntegrationTriggers200JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the PollIntegrationTriggers200JSONResponseBodySuccess enum.
type PollIntegrationTriggersParams ¶
type PollIntegrationTriggersParams struct {
Event PollIntegrationTriggersParamsEvent `form:"event" json:"event"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}
PollIntegrationTriggersParams defines parameters for PollIntegrationTriggers.
type PollIntegrationTriggersParamsEvent ¶
type PollIntegrationTriggersParamsEvent string
PollIntegrationTriggersParamsEvent defines parameters for PollIntegrationTriggers.
const ( PollIntegrationTriggersParamsEventContactCreated PollIntegrationTriggersParamsEvent = "contact.created" PollIntegrationTriggersParamsEventConversationCreated PollIntegrationTriggersParamsEvent = "conversation.created" PollIntegrationTriggersParamsEventConversationResolved PollIntegrationTriggersParamsEvent = "conversation.resolved" PollIntegrationTriggersParamsEventConversationTagAdded PollIntegrationTriggersParamsEvent = "conversation.tag_added" PollIntegrationTriggersParamsEventCsatSubmitted PollIntegrationTriggersParamsEvent = "csat.submitted" )
Defines values for PollIntegrationTriggersParamsEvent.
func (PollIntegrationTriggersParamsEvent) Valid ¶
func (e PollIntegrationTriggersParamsEvent) Valid() bool
Valid indicates whether the value is a known member of the PollIntegrationTriggersParamsEvent enum.
type PollIntegrationTriggersResponse ¶
type PollIntegrationTriggersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data IntegrationTriggerPage `json:"data"`
Meta ResponseMeta `json:"meta"`
Success PollIntegrationTriggers200JSONResponseBodySuccess `json:"success"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON410 the response for an HTTP 410 `application/json` response
JSON410 *Error
}
func ParsePollIntegrationTriggersResponse ¶
func ParsePollIntegrationTriggersResponse(rsp *http.Response) (*PollIntegrationTriggersResponse, error)
ParsePollIntegrationTriggersResponse parses an HTTP response from a PollIntegrationTriggersWithResponse call
func (PollIntegrationTriggersResponse) ContentType ¶
func (r PollIntegrationTriggersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PollIntegrationTriggersResponse) GetBody ¶
func (r PollIntegrationTriggersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PollIntegrationTriggersResponse) GetJSON200 ¶
func (r PollIntegrationTriggersResponse) GetJSON200() *struct { Data IntegrationTriggerPage `json:"data"` Meta ResponseMeta `json:"meta"` Success PollIntegrationTriggers200JSONResponseBodySuccess `json:"success"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PollIntegrationTriggersResponse) GetJSON400 ¶
func (r PollIntegrationTriggersResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PollIntegrationTriggersResponse) GetJSON401 ¶
func (r PollIntegrationTriggersResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PollIntegrationTriggersResponse) GetJSON403 ¶
func (r PollIntegrationTriggersResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PollIntegrationTriggersResponse) GetJSON404 ¶
func (r PollIntegrationTriggersResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PollIntegrationTriggersResponse) GetJSON410 ¶
func (r PollIntegrationTriggersResponse) GetJSON410() *Error
GetJSON410 returns the response for an HTTP 410 `application/json` response
func (PollIntegrationTriggersResponse) Status ¶
func (r PollIntegrationTriggersResponse) Status() string
Status returns HTTPResponse.Status
func (PollIntegrationTriggersResponse) StatusCode ¶
func (r PollIntegrationTriggersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostV1PublicApiCompanyEventJSONRequestBody ¶
type PostV1PublicApiCompanyEventJSONRequestBody = CompanyEventInput
PostV1PublicApiCompanyEventJSONRequestBody defines body for PostV1PublicApiCompanyEvent for application/json ContentType.
type PostV1PublicApiCompanyEventParams ¶
type PostV1PublicApiCompanyEventParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
PostV1PublicApiCompanyEventParams defines parameters for PostV1PublicApiCompanyEvent.
type PostV1PublicApiCompanyEventResponse ¶
type PostV1PublicApiCompanyEventResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnvelopeCompanyEvent
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *EnvelopeCompanyEvent
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ValidationError
}
func ParsePostV1PublicApiCompanyEventResponse ¶
func ParsePostV1PublicApiCompanyEventResponse(rsp *http.Response) (*PostV1PublicApiCompanyEventResponse, error)
ParsePostV1PublicApiCompanyEventResponse parses an HTTP response from a PostV1PublicApiCompanyEventWithResponse call
func (PostV1PublicApiCompanyEventResponse) ContentType ¶
func (r PostV1PublicApiCompanyEventResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostV1PublicApiCompanyEventResponse) GetBody ¶
func (r PostV1PublicApiCompanyEventResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostV1PublicApiCompanyEventResponse) GetJSON200 ¶
func (r PostV1PublicApiCompanyEventResponse) GetJSON200() *EnvelopeCompanyEvent
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostV1PublicApiCompanyEventResponse) GetJSON201 ¶
func (r PostV1PublicApiCompanyEventResponse) GetJSON201() *EnvelopeCompanyEvent
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostV1PublicApiCompanyEventResponse) GetJSON400 ¶
func (r PostV1PublicApiCompanyEventResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostV1PublicApiCompanyEventResponse) GetJSON401 ¶
func (r PostV1PublicApiCompanyEventResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostV1PublicApiCompanyEventResponse) GetJSON403 ¶
func (r PostV1PublicApiCompanyEventResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostV1PublicApiCompanyEventResponse) GetJSON404 ¶
func (r PostV1PublicApiCompanyEventResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PostV1PublicApiCompanyEventResponse) GetJSON409 ¶
func (r PostV1PublicApiCompanyEventResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostV1PublicApiCompanyEventResponse) GetJSON422 ¶
func (r PostV1PublicApiCompanyEventResponse) GetJSON422() *ValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PostV1PublicApiCompanyEventResponse) Status ¶
func (r PostV1PublicApiCompanyEventResponse) Status() string
Status returns HTTPResponse.Status
func (PostV1PublicApiCompanyEventResponse) StatusCode ¶
func (r PostV1PublicApiCompanyEventResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostV1PublicApiContactsJSONRequestBody ¶
type PostV1PublicApiContactsJSONRequestBody = ContactInput
PostV1PublicApiContactsJSONRequestBody defines body for PostV1PublicApiContacts for application/json ContentType.
type PostV1PublicApiContactsParams ¶
type PostV1PublicApiContactsParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
PostV1PublicApiContactsParams defines parameters for PostV1PublicApiContacts.
type PostV1PublicApiContactsResponse ¶
type PostV1PublicApiContactsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *EnvelopeContact
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
}
func ParsePostV1PublicApiContactsResponse ¶
func ParsePostV1PublicApiContactsResponse(rsp *http.Response) (*PostV1PublicApiContactsResponse, error)
ParsePostV1PublicApiContactsResponse parses an HTTP response from a PostV1PublicApiContactsWithResponse call
func (PostV1PublicApiContactsResponse) ContentType ¶
func (r PostV1PublicApiContactsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostV1PublicApiContactsResponse) GetBody ¶
func (r PostV1PublicApiContactsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostV1PublicApiContactsResponse) GetJSON201 ¶
func (r PostV1PublicApiContactsResponse) GetJSON201() *EnvelopeContact
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostV1PublicApiContactsResponse) GetJSON400 ¶
func (r PostV1PublicApiContactsResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostV1PublicApiContactsResponse) GetJSON401 ¶
func (r PostV1PublicApiContactsResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostV1PublicApiContactsResponse) GetJSON403 ¶
func (r PostV1PublicApiContactsResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostV1PublicApiContactsResponse) GetJSON409 ¶
func (r PostV1PublicApiContactsResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostV1PublicApiContactsResponse) Status ¶
func (r PostV1PublicApiContactsResponse) Status() string
Status returns HTTPResponse.Status
func (PostV1PublicApiContactsResponse) StatusCode ¶
func (r PostV1PublicApiContactsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostV1PublicApiConversationsUuidMessagesJSONBody ¶
type PostV1PublicApiConversationsUuidMessagesJSONBody struct {
ClientId *openapi_types.UUID `json:"client_id,omitempty"`
Content string `json:"content"`
Private *bool `json:"private,omitempty"`
}
PostV1PublicApiConversationsUuidMessagesJSONBody defines parameters for PostV1PublicApiConversationsUuidMessages.
type PostV1PublicApiConversationsUuidMessagesJSONRequestBody ¶
type PostV1PublicApiConversationsUuidMessagesJSONRequestBody PostV1PublicApiConversationsUuidMessagesJSONBody
PostV1PublicApiConversationsUuidMessagesJSONRequestBody defines body for PostV1PublicApiConversationsUuidMessages for application/json ContentType.
type PostV1PublicApiConversationsUuidMessagesParams ¶
type PostV1PublicApiConversationsUuidMessagesParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
PostV1PublicApiConversationsUuidMessagesParams defines parameters for PostV1PublicApiConversationsUuidMessages.
type PostV1PublicApiConversationsUuidMessagesResponse ¶
type PostV1PublicApiConversationsUuidMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParsePostV1PublicApiConversationsUuidMessagesResponse ¶
func ParsePostV1PublicApiConversationsUuidMessagesResponse(rsp *http.Response) (*PostV1PublicApiConversationsUuidMessagesResponse, error)
ParsePostV1PublicApiConversationsUuidMessagesResponse parses an HTTP response from a PostV1PublicApiConversationsUuidMessagesWithResponse call
func (PostV1PublicApiConversationsUuidMessagesResponse) ContentType ¶
func (r PostV1PublicApiConversationsUuidMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostV1PublicApiConversationsUuidMessagesResponse) GetBody ¶
func (r PostV1PublicApiConversationsUuidMessagesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostV1PublicApiConversationsUuidMessagesResponse) GetJSON201 ¶
func (r PostV1PublicApiConversationsUuidMessagesResponse) GetJSON201() *IntegrationEnvelope
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostV1PublicApiConversationsUuidMessagesResponse) GetJSON400 ¶
func (r PostV1PublicApiConversationsUuidMessagesResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostV1PublicApiConversationsUuidMessagesResponse) GetJSON401 ¶
func (r PostV1PublicApiConversationsUuidMessagesResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostV1PublicApiConversationsUuidMessagesResponse) GetJSON403 ¶
func (r PostV1PublicApiConversationsUuidMessagesResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostV1PublicApiConversationsUuidMessagesResponse) Status ¶
func (r PostV1PublicApiConversationsUuidMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (PostV1PublicApiConversationsUuidMessagesResponse) StatusCode ¶
func (r PostV1PublicApiConversationsUuidMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostV1PublicApiWebhooksJSONRequestBody ¶
type PostV1PublicApiWebhooksJSONRequestBody = OutboundWebhookInput
PostV1PublicApiWebhooksJSONRequestBody defines body for PostV1PublicApiWebhooks for application/json ContentType.
type PostV1PublicApiWebhooksParams ¶
type PostV1PublicApiWebhooksParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
PostV1PublicApiWebhooksParams defines parameters for PostV1PublicApiWebhooks.
type PostV1PublicApiWebhooksResponse ¶
type PostV1PublicApiWebhooksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParsePostV1PublicApiWebhooksResponse ¶
func ParsePostV1PublicApiWebhooksResponse(rsp *http.Response) (*PostV1PublicApiWebhooksResponse, error)
ParsePostV1PublicApiWebhooksResponse parses an HTTP response from a PostV1PublicApiWebhooksWithResponse call
func (PostV1PublicApiWebhooksResponse) ContentType ¶
func (r PostV1PublicApiWebhooksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostV1PublicApiWebhooksResponse) GetBody ¶
func (r PostV1PublicApiWebhooksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostV1PublicApiWebhooksResponse) GetJSON201 ¶
func (r PostV1PublicApiWebhooksResponse) GetJSON201() *IntegrationEnvelope
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostV1PublicApiWebhooksResponse) GetJSON400 ¶
func (r PostV1PublicApiWebhooksResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostV1PublicApiWebhooksResponse) GetJSON401 ¶
func (r PostV1PublicApiWebhooksResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostV1PublicApiWebhooksResponse) GetJSON403 ¶
func (r PostV1PublicApiWebhooksResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostV1PublicApiWebhooksResponse) Status ¶
func (r PostV1PublicApiWebhooksResponse) Status() string
Status returns HTTPResponse.Status
func (PostV1PublicApiWebhooksResponse) StatusCode ¶
func (r PostV1PublicApiWebhooksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutV1PublicApiCompanyRevenueJSONRequestBody ¶
type PutV1PublicApiCompanyRevenueJSONRequestBody = CompanyRevenueUpsertInput
PutV1PublicApiCompanyRevenueJSONRequestBody defines body for PutV1PublicApiCompanyRevenue for application/json ContentType.
type PutV1PublicApiCompanyRevenueParams ¶
type PutV1PublicApiCompanyRevenueParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
PutV1PublicApiCompanyRevenueParams defines parameters for PutV1PublicApiCompanyRevenue.
type PutV1PublicApiCompanyRevenueResponse ¶
type PutV1PublicApiCompanyRevenueResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnvelopeCompanyRevenueUpsert
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ValidationError
}
func ParsePutV1PublicApiCompanyRevenueResponse ¶
func ParsePutV1PublicApiCompanyRevenueResponse(rsp *http.Response) (*PutV1PublicApiCompanyRevenueResponse, error)
ParsePutV1PublicApiCompanyRevenueResponse parses an HTTP response from a PutV1PublicApiCompanyRevenueWithResponse call
func (PutV1PublicApiCompanyRevenueResponse) ContentType ¶
func (r PutV1PublicApiCompanyRevenueResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutV1PublicApiCompanyRevenueResponse) GetBody ¶
func (r PutV1PublicApiCompanyRevenueResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutV1PublicApiCompanyRevenueResponse) GetJSON200 ¶
func (r PutV1PublicApiCompanyRevenueResponse) GetJSON200() *EnvelopeCompanyRevenueUpsert
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutV1PublicApiCompanyRevenueResponse) GetJSON400 ¶
func (r PutV1PublicApiCompanyRevenueResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PutV1PublicApiCompanyRevenueResponse) GetJSON401 ¶
func (r PutV1PublicApiCompanyRevenueResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PutV1PublicApiCompanyRevenueResponse) GetJSON403 ¶
func (r PutV1PublicApiCompanyRevenueResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutV1PublicApiCompanyRevenueResponse) GetJSON404 ¶
func (r PutV1PublicApiCompanyRevenueResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PutV1PublicApiCompanyRevenueResponse) GetJSON409 ¶
func (r PutV1PublicApiCompanyRevenueResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PutV1PublicApiCompanyRevenueResponse) GetJSON422 ¶
func (r PutV1PublicApiCompanyRevenueResponse) GetJSON422() *ValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PutV1PublicApiCompanyRevenueResponse) Status ¶
func (r PutV1PublicApiCompanyRevenueResponse) Status() string
Status returns HTTPResponse.Status
func (PutV1PublicApiCompanyRevenueResponse) StatusCode ¶
func (r PutV1PublicApiCompanyRevenueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutV1PublicApiCompanyUsageJSONRequestBody ¶
type PutV1PublicApiCompanyUsageJSONRequestBody = CompanyUsageInput
PutV1PublicApiCompanyUsageJSONRequestBody defines body for PutV1PublicApiCompanyUsage for application/json ContentType.
type PutV1PublicApiCompanyUsageParams ¶
type PutV1PublicApiCompanyUsageParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
PutV1PublicApiCompanyUsageParams defines parameters for PutV1PublicApiCompanyUsage.
type PutV1PublicApiCompanyUsageResponse ¶
type PutV1PublicApiCompanyUsageResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnvelopeCompanyUsage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ValidationError
}
func ParsePutV1PublicApiCompanyUsageResponse ¶
func ParsePutV1PublicApiCompanyUsageResponse(rsp *http.Response) (*PutV1PublicApiCompanyUsageResponse, error)
ParsePutV1PublicApiCompanyUsageResponse parses an HTTP response from a PutV1PublicApiCompanyUsageWithResponse call
func (PutV1PublicApiCompanyUsageResponse) ContentType ¶
func (r PutV1PublicApiCompanyUsageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutV1PublicApiCompanyUsageResponse) GetBody ¶
func (r PutV1PublicApiCompanyUsageResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutV1PublicApiCompanyUsageResponse) GetJSON200 ¶
func (r PutV1PublicApiCompanyUsageResponse) GetJSON200() *EnvelopeCompanyUsage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutV1PublicApiCompanyUsageResponse) GetJSON400 ¶
func (r PutV1PublicApiCompanyUsageResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PutV1PublicApiCompanyUsageResponse) GetJSON401 ¶
func (r PutV1PublicApiCompanyUsageResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PutV1PublicApiCompanyUsageResponse) GetJSON403 ¶
func (r PutV1PublicApiCompanyUsageResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutV1PublicApiCompanyUsageResponse) GetJSON404 ¶
func (r PutV1PublicApiCompanyUsageResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PutV1PublicApiCompanyUsageResponse) GetJSON409 ¶
func (r PutV1PublicApiCompanyUsageResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PutV1PublicApiCompanyUsageResponse) GetJSON422 ¶
func (r PutV1PublicApiCompanyUsageResponse) GetJSON422() *ValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (PutV1PublicApiCompanyUsageResponse) Status ¶
func (r PutV1PublicApiCompanyUsageResponse) Status() string
Status returns HTTPResponse.Status
func (PutV1PublicApiCompanyUsageResponse) StatusCode ¶
func (r PutV1PublicApiCompanyUsageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutV1PublicApiContactByExternalIdJSONBody ¶
type PutV1PublicApiContactByExternalIdJSONBody struct {
Blocked *bool `json:"blocked,omitempty"`
Company *openapi_types.UUID `json:"company,omitempty"`
CustomFields *map[string]interface{} `json:"custom_fields,omitempty"`
Email *string `json:"email,omitempty"`
ExternalId string `json:"external_id"`
JobTitle *string `json:"job_title,omitempty"`
Locale *string `json:"locale,omitempty"`
Name *string `json:"name,omitempty"`
Notes *string `json:"notes,omitempty"`
Phone *string `json:"phone,omitempty"`
Timezone *string `json:"timezone,omitempty"`
}
PutV1PublicApiContactByExternalIdJSONBody defines parameters for PutV1PublicApiContactByExternalId.
type PutV1PublicApiContactByExternalIdJSONRequestBody ¶
type PutV1PublicApiContactByExternalIdJSONRequestBody PutV1PublicApiContactByExternalIdJSONBody
PutV1PublicApiContactByExternalIdJSONRequestBody defines body for PutV1PublicApiContactByExternalId for application/json ContentType.
type PutV1PublicApiContactByExternalIdParams ¶
type PutV1PublicApiContactByExternalIdParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
PutV1PublicApiContactByExternalIdParams defines parameters for PutV1PublicApiContactByExternalId.
type PutV1PublicApiContactByExternalIdResponse ¶
type PutV1PublicApiContactByExternalIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnvelopeContact
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *EnvelopeContact
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
}
func ParsePutV1PublicApiContactByExternalIdResponse ¶
func ParsePutV1PublicApiContactByExternalIdResponse(rsp *http.Response) (*PutV1PublicApiContactByExternalIdResponse, error)
ParsePutV1PublicApiContactByExternalIdResponse parses an HTTP response from a PutV1PublicApiContactByExternalIdWithResponse call
func (PutV1PublicApiContactByExternalIdResponse) ContentType ¶
func (r PutV1PublicApiContactByExternalIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutV1PublicApiContactByExternalIdResponse) GetBody ¶
func (r PutV1PublicApiContactByExternalIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutV1PublicApiContactByExternalIdResponse) GetJSON200 ¶
func (r PutV1PublicApiContactByExternalIdResponse) GetJSON200() *EnvelopeContact
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutV1PublicApiContactByExternalIdResponse) GetJSON201 ¶
func (r PutV1PublicApiContactByExternalIdResponse) GetJSON201() *EnvelopeContact
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PutV1PublicApiContactByExternalIdResponse) GetJSON400 ¶
func (r PutV1PublicApiContactByExternalIdResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PutV1PublicApiContactByExternalIdResponse) GetJSON401 ¶
func (r PutV1PublicApiContactByExternalIdResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PutV1PublicApiContactByExternalIdResponse) GetJSON403 ¶
func (r PutV1PublicApiContactByExternalIdResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutV1PublicApiContactByExternalIdResponse) GetJSON409 ¶
func (r PutV1PublicApiContactByExternalIdResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PutV1PublicApiContactByExternalIdResponse) Status ¶
func (r PutV1PublicApiContactByExternalIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutV1PublicApiContactByExternalIdResponse) StatusCode ¶
func (r PutV1PublicApiContactByExternalIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutV1PublicApiWebhooksUuidJSONRequestBody ¶
type PutV1PublicApiWebhooksUuidJSONRequestBody = OutboundWebhookInput
PutV1PublicApiWebhooksUuidJSONRequestBody defines body for PutV1PublicApiWebhooksUuid for application/json ContentType.
type PutV1PublicApiWebhooksUuidParams ¶
type PutV1PublicApiWebhooksUuidParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
PutV1PublicApiWebhooksUuidParams defines parameters for PutV1PublicApiWebhooksUuid.
type PutV1PublicApiWebhooksUuidResponse ¶
type PutV1PublicApiWebhooksUuidResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *IntegrationEnvelope
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParsePutV1PublicApiWebhooksUuidResponse ¶
func ParsePutV1PublicApiWebhooksUuidResponse(rsp *http.Response) (*PutV1PublicApiWebhooksUuidResponse, error)
ParsePutV1PublicApiWebhooksUuidResponse parses an HTTP response from a PutV1PublicApiWebhooksUuidWithResponse call
func (PutV1PublicApiWebhooksUuidResponse) ContentType ¶
func (r PutV1PublicApiWebhooksUuidResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutV1PublicApiWebhooksUuidResponse) GetBody ¶
func (r PutV1PublicApiWebhooksUuidResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutV1PublicApiWebhooksUuidResponse) GetJSON200 ¶
func (r PutV1PublicApiWebhooksUuidResponse) GetJSON200() *IntegrationEnvelope
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutV1PublicApiWebhooksUuidResponse) GetJSON400 ¶
func (r PutV1PublicApiWebhooksUuidResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PutV1PublicApiWebhooksUuidResponse) GetJSON401 ¶
func (r PutV1PublicApiWebhooksUuidResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PutV1PublicApiWebhooksUuidResponse) GetJSON403 ¶
func (r PutV1PublicApiWebhooksUuidResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PutV1PublicApiWebhooksUuidResponse) Status ¶
func (r PutV1PublicApiWebhooksUuidResponse) Status() string
Status returns HTTPResponse.Status
func (PutV1PublicApiWebhooksUuidResponse) StatusCode ¶
func (r PutV1PublicApiWebhooksUuidResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseMeta ¶
type ResponseMeta struct {
RequestId string `json:"request_id"`
}
ResponseMeta defines model for ResponseMeta.
type RetryClient ¶
type RetryClient struct {
Client HttpRequestDoer
Attempts int
BaseDelay time.Duration
}
RetryClient retries reads and replayable writes carrying an Idempotency-Key. Attempts includes the first request and is capped at five. Cancellation interrupts backoff.
type SDK ¶
type SDK struct {
*ClientWithResponses
// contains filtered or unexported fields
}
SDK combines generated operations with the authenticated transport.
type SubscribeIntegrationTrigger200JSONResponseBodySuccess ¶
type SubscribeIntegrationTrigger200JSONResponseBodySuccess bool
SubscribeIntegrationTrigger200JSONResponseBodySuccess defines parameters for SubscribeIntegrationTrigger.
const (
SubscribeIntegrationTrigger200JSONResponseBodySuccessTrue SubscribeIntegrationTrigger200JSONResponseBodySuccess = true
)
Defines values for SubscribeIntegrationTrigger200JSONResponseBodySuccess.
func (SubscribeIntegrationTrigger200JSONResponseBodySuccess) Valid ¶
func (e SubscribeIntegrationTrigger200JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the SubscribeIntegrationTrigger200JSONResponseBodySuccess enum.
type SubscribeIntegrationTriggerJSONRequestBody ¶
type SubscribeIntegrationTriggerJSONRequestBody = IntegrationSubscription
SubscribeIntegrationTriggerJSONRequestBody defines body for SubscribeIntegrationTrigger for application/json ContentType.
type SubscribeIntegrationTriggerParams ¶
type SubscribeIntegrationTriggerParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
SubscribeIntegrationTriggerParams defines parameters for SubscribeIntegrationTrigger.
type SubscribeIntegrationTriggerResponse ¶
type SubscribeIntegrationTriggerResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data map[string]interface{} `json:"data"`
Meta ResponseMeta `json:"meta"`
Success SubscribeIntegrationTrigger200JSONResponseBodySuccess `json:"success"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseSubscribeIntegrationTriggerResponse ¶
func ParseSubscribeIntegrationTriggerResponse(rsp *http.Response) (*SubscribeIntegrationTriggerResponse, error)
ParseSubscribeIntegrationTriggerResponse parses an HTTP response from a SubscribeIntegrationTriggerWithResponse call
func (SubscribeIntegrationTriggerResponse) ContentType ¶
func (r SubscribeIntegrationTriggerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SubscribeIntegrationTriggerResponse) GetBody ¶
func (r SubscribeIntegrationTriggerResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SubscribeIntegrationTriggerResponse) GetJSON200 ¶
func (r SubscribeIntegrationTriggerResponse) GetJSON200() *struct { Data map[string]interface{} `json:"data"` Meta ResponseMeta `json:"meta"` Success SubscribeIntegrationTrigger200JSONResponseBodySuccess `json:"success"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SubscribeIntegrationTriggerResponse) GetJSON400 ¶
func (r SubscribeIntegrationTriggerResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (SubscribeIntegrationTriggerResponse) GetJSON401 ¶
func (r SubscribeIntegrationTriggerResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (SubscribeIntegrationTriggerResponse) GetJSON403 ¶
func (r SubscribeIntegrationTriggerResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (SubscribeIntegrationTriggerResponse) GetJSON404 ¶
func (r SubscribeIntegrationTriggerResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (SubscribeIntegrationTriggerResponse) Status ¶
func (r SubscribeIntegrationTriggerResponse) Status() string
Status returns HTTPResponse.Status
func (SubscribeIntegrationTriggerResponse) StatusCode ¶
func (r SubscribeIntegrationTriggerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Unauthenticated ¶
type Unauthenticated = Error
Unauthenticated defines model for Unauthenticated.
type UnsubscribeIntegrationTrigger200JSONResponseBodySuccess ¶
type UnsubscribeIntegrationTrigger200JSONResponseBodySuccess bool
UnsubscribeIntegrationTrigger200JSONResponseBodySuccess defines parameters for UnsubscribeIntegrationTrigger.
const (
UnsubscribeIntegrationTrigger200JSONResponseBodySuccessTrue UnsubscribeIntegrationTrigger200JSONResponseBodySuccess = true
)
Defines values for UnsubscribeIntegrationTrigger200JSONResponseBodySuccess.
func (UnsubscribeIntegrationTrigger200JSONResponseBodySuccess) Valid ¶
func (e UnsubscribeIntegrationTrigger200JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the UnsubscribeIntegrationTrigger200JSONResponseBodySuccess enum.
type UnsubscribeIntegrationTriggerParams ¶
type UnsubscribeIntegrationTriggerParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
UnsubscribeIntegrationTriggerParams defines parameters for UnsubscribeIntegrationTrigger.
type UnsubscribeIntegrationTriggerResponse ¶
type UnsubscribeIntegrationTriggerResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data struct {
Deleted bool `json:"deleted"`
} `json:"data"`
Meta ResponseMeta `json:"meta"`
Success UnsubscribeIntegrationTrigger200JSONResponseBodySuccess `json:"success"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseUnsubscribeIntegrationTriggerResponse ¶
func ParseUnsubscribeIntegrationTriggerResponse(rsp *http.Response) (*UnsubscribeIntegrationTriggerResponse, error)
ParseUnsubscribeIntegrationTriggerResponse parses an HTTP response from a UnsubscribeIntegrationTriggerWithResponse call
func (UnsubscribeIntegrationTriggerResponse) ContentType ¶
func (r UnsubscribeIntegrationTriggerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UnsubscribeIntegrationTriggerResponse) GetBody ¶
func (r UnsubscribeIntegrationTriggerResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UnsubscribeIntegrationTriggerResponse) GetJSON200 ¶
func (r UnsubscribeIntegrationTriggerResponse) GetJSON200() *struct { Data struct { Deleted bool `json:"deleted"` } `json:"data"` Meta ResponseMeta `json:"meta"` Success UnsubscribeIntegrationTrigger200JSONResponseBodySuccess `json:"success"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UnsubscribeIntegrationTriggerResponse) GetJSON400 ¶
func (r UnsubscribeIntegrationTriggerResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UnsubscribeIntegrationTriggerResponse) GetJSON401 ¶
func (r UnsubscribeIntegrationTriggerResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (UnsubscribeIntegrationTriggerResponse) GetJSON403 ¶
func (r UnsubscribeIntegrationTriggerResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (UnsubscribeIntegrationTriggerResponse) GetJSON404 ¶
func (r UnsubscribeIntegrationTriggerResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UnsubscribeIntegrationTriggerResponse) Status ¶
func (r UnsubscribeIntegrationTriggerResponse) Status() string
Status returns HTTPResponse.Status
func (UnsubscribeIntegrationTriggerResponse) StatusCode ¶
func (r UnsubscribeIntegrationTriggerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateIntegrationContact200JSONResponseBodySuccess ¶
type UpdateIntegrationContact200JSONResponseBodySuccess bool
UpdateIntegrationContact200JSONResponseBodySuccess defines parameters for UpdateIntegrationContact.
const (
UpdateIntegrationContact200JSONResponseBodySuccessTrue UpdateIntegrationContact200JSONResponseBodySuccess = true
)
Defines values for UpdateIntegrationContact200JSONResponseBodySuccess.
func (UpdateIntegrationContact200JSONResponseBodySuccess) Valid ¶
func (e UpdateIntegrationContact200JSONResponseBodySuccess) Valid() bool
Valid indicates whether the value is a known member of the UpdateIntegrationContact200JSONResponseBodySuccess enum.
type UpdateIntegrationContactJSONRequestBody ¶
type UpdateIntegrationContactJSONRequestBody = IntegrationContactUpdate
UpdateIntegrationContactJSONRequestBody defines body for UpdateIntegrationContact for application/json ContentType.
type UpdateIntegrationContactParams ¶
type UpdateIntegrationContactParams struct {
IdempotencyKey string `json:"Idempotency-Key"`
}
UpdateIntegrationContactParams defines parameters for UpdateIntegrationContact.
type UpdateIntegrationContactResponse ¶
type UpdateIntegrationContactResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data map[string]interface{} `json:"data"`
Meta ResponseMeta `json:"meta"`
Success UpdateIntegrationContact200JSONResponseBodySuccess `json:"success"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthenticated
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseUpdateIntegrationContactResponse ¶
func ParseUpdateIntegrationContactResponse(rsp *http.Response) (*UpdateIntegrationContactResponse, error)
ParseUpdateIntegrationContactResponse parses an HTTP response from a UpdateIntegrationContactWithResponse call
func (UpdateIntegrationContactResponse) ContentType ¶
func (r UpdateIntegrationContactResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateIntegrationContactResponse) GetBody ¶
func (r UpdateIntegrationContactResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateIntegrationContactResponse) GetJSON200 ¶
func (r UpdateIntegrationContactResponse) GetJSON200() *struct { Data map[string]interface{} `json:"data"` Meta ResponseMeta `json:"meta"` Success UpdateIntegrationContact200JSONResponseBodySuccess `json:"success"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateIntegrationContactResponse) GetJSON400 ¶
func (r UpdateIntegrationContactResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdateIntegrationContactResponse) GetJSON401 ¶
func (r UpdateIntegrationContactResponse) GetJSON401() *Unauthenticated
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (UpdateIntegrationContactResponse) GetJSON403 ¶
func (r UpdateIntegrationContactResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (UpdateIntegrationContactResponse) GetJSON404 ¶
func (r UpdateIntegrationContactResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateIntegrationContactResponse) Status ¶
func (r UpdateIntegrationContactResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateIntegrationContactResponse) StatusCode ¶
func (r UpdateIntegrationContactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ValidationError ¶
type ValidationError = Error
ValidationError defines model for ValidationError.