clickfix

package module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ClickFix Go server SDK

go get github.com/ClickSolveMainTR/clickfix-sdks/go@latest

Releases are tagged go/vX.Y.Z in the public mirror repository ClickSolveMainTR/clickfix-sdks (see CHANGELOG.md); the source of truth is sdks/go in the main codebase. Full walkthrough: https://getclickfix.com/docs/integration-guide.

import (
    "context"
    "os"
    clickfix "github.com/ClickSolveMainTR/clickfix-sdks/go"
)

client, err := clickfix.New("https://support.example.com", os.Getenv("CLICKFIX_API_KEY"))
if err != nil { panic(err) }
result, err := client.GetV1PublicApiContactsWithResponse(context.Background(),
    &clickfix.GetV1PublicApiContactsParams{})
_ = result
_ = err

Use the API origin (no /api or /v1 suffix). Keys fix the organization; permissions and key scopes are both enforced. Keep keys on your server. Generated operations expose typed bodies and response envelopes. For writes, set their IdempotencyKey parameter to a stable unique key for that logical action. New adds a 30s HTTP timeout and retries GETs or replayable keyed writes up to three total attempts, with exponential backoff and bounded Retry-After. Do not reuse a key for different input. The API stores completed write responses, including errors; a retry cannot turn a stored failed response into success.

type Contact struct { UUID string `json:"uuid"`; Name string `json:"name"` }
err = clickfix.Iterate(ctx,
    func(ctx context.Context, limit, offset int) (clickfix.Page[Contact], error) {
        return clickfix.ListPage[Contact](ctx, client, "contacts", limit, offset)
    },
    func(contact Contact) bool { /* process */ return true },
)

Offset iteration is for bounded snapshots; concurrent inserts can shift pages. Deduplicate public UUIDs when synchronizing; triggers use their generated cursor API.

err = clickfix.VerifyWebhook(secret,
    r.Header.Get("ClickFix-Webhook-Timestamp"),
    r.Header.Get("ClickFix-Webhook-Signature"), rawBody, time.Now(), 5*time.Minute)

Read a size-limited raw request body before parsing JSON, reject verification errors, and persist/deduplicate ClickFix-Webhook-Id before side effects. IdentityHash(identitySecret, userID) supplies the widget's user_hash; send only the resulting hash to your authenticated browser client. For a user that belongs to a company use IdentityCompanyHash(identitySecret, userID, companyID) (hex(HMAC-SHA256(secret, userID + "\n" + companyID))) and send company: { id: companyID } in identify: the widget then binds the user to that company and nobody can claim another one.

Regenerate from the repository root with make sdks. Generated code is never edited.

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

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

func IdentityCompanyHash(secret, userID, companyID string) string

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

func IdentityHash(secret, userID string) string

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

func VerifyWebhook

func VerifyWebhook(secret, timestamp, signature string, body []byte, now time.Time, tolerance time.Duration) error

VerifyWebhook verifies exact raw bytes and the ClickFix-Webhook-* headers. Persist/deduplicate ClickFix-Webhook-Id separately before executing side effects.

Types

type BadRequest

type BadRequest = Error

BadRequest defines model for BadRequest.

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

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

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

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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 Conflict

type Conflict = Error

Conflict defines model for Conflict.

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

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateIntegrationConversationResponse) GetBody

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

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateIntegrationConversationResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateIntegrationConversationResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateIntegrationConversationResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateIntegrationConversationResponse) Status

Status returns HTTPResponse.Status

func (CreateIntegrationConversationResponse) StatusCode

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteV1PublicApiWebhooksUuidResponse) GetBody

GetBody returns the raw response body bytes

func (DeleteV1PublicApiWebhooksUuidResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteV1PublicApiWebhooksUuidResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteV1PublicApiWebhooksUuidResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteV1PublicApiWebhooksUuidResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteV1PublicApiWebhooksUuidResponse) Status

Status returns HTTPResponse.Status

func (DeleteV1PublicApiWebhooksUuidResponse) StatusCode

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

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

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

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 Forbidden

type Forbidden = Error

Forbidden defines model for Forbidden.

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

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetV1PublicApiCompaniesResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetV1PublicApiCompaniesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetV1PublicApiCompaniesResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetV1PublicApiCompaniesResponse) Status

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

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetV1PublicApiContactsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetV1PublicApiContactsResponse) GetJSON401

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

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetV1PublicApiConversationsResponse) GetBody

GetBody returns the raw response body bytes

func (GetV1PublicApiConversationsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetV1PublicApiConversationsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetV1PublicApiConversationsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetV1PublicApiConversationsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetV1PublicApiConversationsResponse) Status

Status returns HTTPResponse.Status

func (GetV1PublicApiConversationsResponse) StatusCode

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetV1PublicApiConversationsUuidMessagesResponse) GetBody

GetBody returns the raw response body bytes

func (GetV1PublicApiConversationsUuidMessagesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetV1PublicApiConversationsUuidMessagesResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetV1PublicApiConversationsUuidMessagesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetV1PublicApiConversationsUuidMessagesResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetV1PublicApiConversationsUuidMessagesResponse) Status

Status returns HTTPResponse.Status

func (GetV1PublicApiConversationsUuidMessagesResponse) StatusCode

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetV1PublicApiConversationsUuidResponse) GetBody

GetBody returns the raw response body bytes

func (GetV1PublicApiConversationsUuidResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetV1PublicApiConversationsUuidResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetV1PublicApiConversationsUuidResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetV1PublicApiConversationsUuidResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetV1PublicApiConversationsUuidResponse) Status

Status returns HTTPResponse.Status

func (GetV1PublicApiConversationsUuidResponse) StatusCode

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

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetV1PublicApiWebhooksResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetV1PublicApiWebhooksResponse) GetJSON401

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

Status returns HTTPResponse.Status

func (GetV1PublicApiWebhooksResponse) StatusCode

func (r GetV1PublicApiWebhooksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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

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 NotFound

type NotFound = Error

NotFound defines model for NotFound.

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PatchV1PublicApiConversationsUuidResponse) GetBody

GetBody returns the raw response body bytes

func (PatchV1PublicApiConversationsUuidResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PatchV1PublicApiConversationsUuidResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PatchV1PublicApiConversationsUuidResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PatchV1PublicApiConversationsUuidResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PatchV1PublicApiConversationsUuidResponse) Status

Status returns HTTPResponse.Status

func (PatchV1PublicApiConversationsUuidResponse) StatusCode

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

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

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

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PollIntegrationTriggersResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PollIntegrationTriggersResponse) GetJSON403

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

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostV1PublicApiCompanyEventResponse) GetBody

GetBody returns the raw response body bytes

func (PostV1PublicApiCompanyEventResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PostV1PublicApiCompanyEventResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PostV1PublicApiCompanyEventResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostV1PublicApiCompanyEventResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PostV1PublicApiCompanyEventResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PostV1PublicApiCompanyEventResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PostV1PublicApiCompanyEventResponse) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (PostV1PublicApiCompanyEventResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (PostV1PublicApiCompanyEventResponse) Status

Status returns HTTPResponse.Status

func (PostV1PublicApiCompanyEventResponse) StatusCode

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

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PostV1PublicApiContactsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostV1PublicApiContactsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PostV1PublicApiContactsResponse) GetJSON403

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

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostV1PublicApiConversationsUuidMessagesResponse) GetBody

GetBody returns the raw response body bytes

func (PostV1PublicApiConversationsUuidMessagesResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PostV1PublicApiConversationsUuidMessagesResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostV1PublicApiConversationsUuidMessagesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PostV1PublicApiConversationsUuidMessagesResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PostV1PublicApiConversationsUuidMessagesResponse) Status

Status returns HTTPResponse.Status

func (PostV1PublicApiConversationsUuidMessagesResponse) StatusCode

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

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PostV1PublicApiWebhooksResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostV1PublicApiWebhooksResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PostV1PublicApiWebhooksResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PostV1PublicApiWebhooksResponse) Status

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PutV1PublicApiCompanyRevenueResponse) GetBody

GetBody returns the raw response body bytes

func (PutV1PublicApiCompanyRevenueResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PutV1PublicApiCompanyRevenueResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PutV1PublicApiCompanyRevenueResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PutV1PublicApiCompanyRevenueResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PutV1PublicApiCompanyRevenueResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PutV1PublicApiCompanyRevenueResponse) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (PutV1PublicApiCompanyRevenueResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (PutV1PublicApiCompanyRevenueResponse) Status

Status returns HTTPResponse.Status

func (PutV1PublicApiCompanyRevenueResponse) StatusCode

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PutV1PublicApiCompanyUsageResponse) GetBody

GetBody returns the raw response body bytes

func (PutV1PublicApiCompanyUsageResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PutV1PublicApiCompanyUsageResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PutV1PublicApiCompanyUsageResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PutV1PublicApiCompanyUsageResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PutV1PublicApiCompanyUsageResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PutV1PublicApiCompanyUsageResponse) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (PutV1PublicApiCompanyUsageResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (PutV1PublicApiCompanyUsageResponse) Status

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PutV1PublicApiContactByExternalIdResponse) GetBody

GetBody returns the raw response body bytes

func (PutV1PublicApiContactByExternalIdResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PutV1PublicApiContactByExternalIdResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PutV1PublicApiContactByExternalIdResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PutV1PublicApiContactByExternalIdResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PutV1PublicApiContactByExternalIdResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PutV1PublicApiContactByExternalIdResponse) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (PutV1PublicApiContactByExternalIdResponse) Status

Status returns HTTPResponse.Status

func (PutV1PublicApiContactByExternalIdResponse) StatusCode

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PutV1PublicApiWebhooksUuidResponse) GetBody

GetBody returns the raw response body bytes

func (PutV1PublicApiWebhooksUuidResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PutV1PublicApiWebhooksUuidResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PutV1PublicApiWebhooksUuidResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PutV1PublicApiWebhooksUuidResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PutV1PublicApiWebhooksUuidResponse) Status

Status returns HTTPResponse.Status

func (PutV1PublicApiWebhooksUuidResponse) StatusCode

func (r PutV1PublicApiWebhooksUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

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.

func (*RetryClient) Do

func (c *RetryClient) Do(req *http.Request) (*http.Response, error)

type SDK

type SDK struct {
	*ClientWithResponses
	// contains filtered or unexported fields
}

SDK combines generated operations with the authenticated transport.

func New

func New(baseURL, key string) (*SDK, error)

New authenticates every generated operation. baseURL is the API origin, without /v1.

type SubscribeIntegrationTrigger200JSONResponseBodySuccess

type SubscribeIntegrationTrigger200JSONResponseBodySuccess bool

SubscribeIntegrationTrigger200JSONResponseBodySuccess defines parameters for SubscribeIntegrationTrigger.

const (
	SubscribeIntegrationTrigger200JSONResponseBodySuccessTrue SubscribeIntegrationTrigger200JSONResponseBodySuccess = true
)

Defines values for SubscribeIntegrationTrigger200JSONResponseBodySuccess.

func (SubscribeIntegrationTrigger200JSONResponseBodySuccess) Valid

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SubscribeIntegrationTriggerResponse) GetBody

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

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SubscribeIntegrationTriggerResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SubscribeIntegrationTriggerResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SubscribeIntegrationTriggerResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SubscribeIntegrationTriggerResponse) Status

Status returns HTTPResponse.Status

func (SubscribeIntegrationTriggerResponse) StatusCode

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

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

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnsubscribeIntegrationTriggerResponse) GetBody

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

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UnsubscribeIntegrationTriggerResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UnsubscribeIntegrationTriggerResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UnsubscribeIntegrationTriggerResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UnsubscribeIntegrationTriggerResponse) Status

Status returns HTTPResponse.Status

func (UnsubscribeIntegrationTriggerResponse) StatusCode

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

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

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateIntegrationContactResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateIntegrationContactResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateIntegrationContactResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateIntegrationContactResponse) Status

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL