openapi

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 6 Imported by: 0

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.27.1
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://autopilot.twilio.com

Class Method HTTP request Description
AssistantsApi CreateAssistant Post /v1/Assistants
AssistantsApi DeleteAssistant Delete /v1/Assistants/{Sid}
AssistantsApi FetchAssistant Get /v1/Assistants/{Sid}
AssistantsApi ListAssistant Get /v1/Assistants
AssistantsApi UpdateAssistant Post /v1/Assistants/{Sid}
AssistantsDefaultsApi FetchDefaults Get /v1/Assistants/{AssistantSid}/Defaults
AssistantsDefaultsApi UpdateDefaults Post /v1/Assistants/{AssistantSid}/Defaults
AssistantsDialoguesApi FetchDialogue Get /v1/Assistants/{AssistantSid}/Dialogues/{Sid}
AssistantsFieldTypesApi CreateFieldType Post /v1/Assistants/{AssistantSid}/FieldTypes
AssistantsFieldTypesApi DeleteFieldType Delete /v1/Assistants/{AssistantSid}/FieldTypes/{Sid}
AssistantsFieldTypesApi FetchFieldType Get /v1/Assistants/{AssistantSid}/FieldTypes/{Sid}
AssistantsFieldTypesApi ListFieldType Get /v1/Assistants/{AssistantSid}/FieldTypes
AssistantsFieldTypesApi UpdateFieldType Post /v1/Assistants/{AssistantSid}/FieldTypes/{Sid}
AssistantsFieldTypesFieldValuesApi CreateFieldValue Post /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues
AssistantsFieldTypesFieldValuesApi DeleteFieldValue Delete /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}
AssistantsFieldTypesFieldValuesApi FetchFieldValue Get /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}
AssistantsFieldTypesFieldValuesApi ListFieldValue Get /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues
AssistantsModelBuildsApi CreateModelBuild Post /v1/Assistants/{AssistantSid}/ModelBuilds
AssistantsModelBuildsApi DeleteModelBuild Delete /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}
AssistantsModelBuildsApi FetchModelBuild Get /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}
AssistantsModelBuildsApi ListModelBuild Get /v1/Assistants/{AssistantSid}/ModelBuilds
AssistantsModelBuildsApi UpdateModelBuild Post /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}
AssistantsQueriesApi CreateQuery Post /v1/Assistants/{AssistantSid}/Queries
AssistantsQueriesApi DeleteQuery Delete /v1/Assistants/{AssistantSid}/Queries/{Sid}
AssistantsQueriesApi FetchQuery Get /v1/Assistants/{AssistantSid}/Queries/{Sid}
AssistantsQueriesApi ListQuery Get /v1/Assistants/{AssistantSid}/Queries
AssistantsQueriesApi UpdateQuery Post /v1/Assistants/{AssistantSid}/Queries/{Sid}
AssistantsRestoreApi UpdateRestoreAssistant Post /v1/Assistants/Restore
AssistantsStyleSheetApi FetchStyleSheet Get /v1/Assistants/{AssistantSid}/StyleSheet
AssistantsStyleSheetApi UpdateStyleSheet Post /v1/Assistants/{AssistantSid}/StyleSheet
AssistantsTasksApi CreateTask Post /v1/Assistants/{AssistantSid}/Tasks
AssistantsTasksApi DeleteTask Delete /v1/Assistants/{AssistantSid}/Tasks/{Sid}
AssistantsTasksApi FetchTask Get /v1/Assistants/{AssistantSid}/Tasks/{Sid}
AssistantsTasksApi ListTask Get /v1/Assistants/{AssistantSid}/Tasks
AssistantsTasksApi UpdateTask Post /v1/Assistants/{AssistantSid}/Tasks/{Sid}
AssistantsTasksActionsApi FetchTaskActions Get /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions
AssistantsTasksActionsApi UpdateTaskActions Post /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions
AssistantsTasksFieldsApi CreateField Post /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields
AssistantsTasksFieldsApi DeleteField Delete /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}
AssistantsTasksFieldsApi FetchField Get /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}
AssistantsTasksFieldsApi ListField Get /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields
AssistantsTasksSamplesApi CreateSample Post /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples
AssistantsTasksSamplesApi DeleteSample Delete /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}
AssistantsTasksSamplesApi FetchSample Get /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}
AssistantsTasksSamplesApi ListSample Get /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples
AssistantsTasksSamplesApi UpdateSample Post /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}
AssistantsTasksStatisticsApi FetchTaskStatistics Get /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics
AssistantsWebhooksApi CreateWebhook Post /v1/Assistants/{AssistantSid}/Webhooks
AssistantsWebhooksApi DeleteWebhook Delete /v1/Assistants/{AssistantSid}/Webhooks/{Sid}
AssistantsWebhooksApi FetchWebhook Get /v1/Assistants/{AssistantSid}/Webhooks/{Sid}
AssistantsWebhooksApi ListWebhook Get /v1/Assistants/{AssistantSid}/Webhooks
AssistantsWebhooksApi UpdateWebhook Post /v1/Assistants/{AssistantSid}/Webhooks/{Sid}

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService added in v0.11.0

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

func NewApiService added in v0.11.0

func NewApiService(requestHandler *twilio.RequestHandler) *ApiService

func NewApiServiceWithClient added in v0.11.0

func NewApiServiceWithClient(client twilio.BaseClient) *ApiService

func (*ApiService) CreateAssistant added in v0.11.0

func (c *ApiService) CreateAssistant(params *CreateAssistantParams) (*AutopilotV1Assistant, error)

func (*ApiService) CreateField added in v0.11.0

func (c *ApiService) CreateField(AssistantSid string, TaskSid string, params *CreateFieldParams) (*AutopilotV1Field, error)

func (*ApiService) CreateFieldType added in v0.11.0

func (c *ApiService) CreateFieldType(AssistantSid string, params *CreateFieldTypeParams) (*AutopilotV1FieldType, error)

func (*ApiService) CreateFieldValue added in v0.11.0

func (c *ApiService) CreateFieldValue(AssistantSid string, FieldTypeSid string, params *CreateFieldValueParams) (*AutopilotV1FieldValue, error)

func (*ApiService) CreateModelBuild added in v0.11.0

func (c *ApiService) CreateModelBuild(AssistantSid string, params *CreateModelBuildParams) (*AutopilotV1ModelBuild, error)

func (*ApiService) CreateQuery added in v0.11.0

func (c *ApiService) CreateQuery(AssistantSid string, params *CreateQueryParams) (*AutopilotV1Query, error)

func (*ApiService) CreateSample added in v0.11.0

func (c *ApiService) CreateSample(AssistantSid string, TaskSid string, params *CreateSampleParams) (*AutopilotV1Sample, error)

func (*ApiService) CreateTask added in v0.11.0

func (c *ApiService) CreateTask(AssistantSid string, params *CreateTaskParams) (*AutopilotV1Task, error)

func (*ApiService) CreateWebhook added in v0.11.0

func (c *ApiService) CreateWebhook(AssistantSid string, params *CreateWebhookParams) (*AutopilotV1Webhook, error)

func (*ApiService) DeleteAssistant added in v0.11.0

func (c *ApiService) DeleteAssistant(Sid string) error

func (*ApiService) DeleteField added in v0.11.0

func (c *ApiService) DeleteField(AssistantSid string, TaskSid string, Sid string) error

func (*ApiService) DeleteFieldType added in v0.11.0

func (c *ApiService) DeleteFieldType(AssistantSid string, Sid string) error

func (*ApiService) DeleteFieldValue added in v0.11.0

func (c *ApiService) DeleteFieldValue(AssistantSid string, FieldTypeSid string, Sid string) error

func (*ApiService) DeleteModelBuild added in v0.11.0

func (c *ApiService) DeleteModelBuild(AssistantSid string, Sid string) error

func (*ApiService) DeleteQuery added in v0.11.0

func (c *ApiService) DeleteQuery(AssistantSid string, Sid string) error

func (*ApiService) DeleteSample added in v0.11.0

func (c *ApiService) DeleteSample(AssistantSid string, TaskSid string, Sid string) error

func (*ApiService) DeleteTask added in v0.11.0

func (c *ApiService) DeleteTask(AssistantSid string, Sid string) error

func (*ApiService) DeleteWebhook added in v0.11.0

func (c *ApiService) DeleteWebhook(AssistantSid string, Sid string) error

func (*ApiService) FetchAssistant added in v0.11.0

func (c *ApiService) FetchAssistant(Sid string) (*AutopilotV1Assistant, error)

func (*ApiService) FetchDefaults added in v0.11.0

func (c *ApiService) FetchDefaults(AssistantSid string) (*AutopilotV1Defaults, error)

func (*ApiService) FetchDialogue added in v0.11.0

func (c *ApiService) FetchDialogue(AssistantSid string, Sid string) (*AutopilotV1Dialogue, error)

func (*ApiService) FetchField added in v0.11.0

func (c *ApiService) FetchField(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1Field, error)

func (*ApiService) FetchFieldType added in v0.11.0

func (c *ApiService) FetchFieldType(AssistantSid string, Sid string) (*AutopilotV1FieldType, error)

func (*ApiService) FetchFieldValue added in v0.11.0

func (c *ApiService) FetchFieldValue(AssistantSid string, FieldTypeSid string, Sid string) (*AutopilotV1FieldValue, error)

func (*ApiService) FetchModelBuild added in v0.11.0

func (c *ApiService) FetchModelBuild(AssistantSid string, Sid string) (*AutopilotV1ModelBuild, error)

func (*ApiService) FetchQuery added in v0.11.0

func (c *ApiService) FetchQuery(AssistantSid string, Sid string) (*AutopilotV1Query, error)

func (*ApiService) FetchSample added in v0.11.0

func (c *ApiService) FetchSample(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1Sample, error)

func (*ApiService) FetchStyleSheet added in v0.11.0

func (c *ApiService) FetchStyleSheet(AssistantSid string) (*AutopilotV1StyleSheet, error)

Returns Style sheet JSON object for the Assistant

func (*ApiService) FetchTask added in v0.11.0

func (c *ApiService) FetchTask(AssistantSid string, Sid string) (*AutopilotV1Task, error)

func (*ApiService) FetchTaskActions added in v0.11.0

func (c *ApiService) FetchTaskActions(AssistantSid string, TaskSid string) (*AutopilotV1TaskActions, error)

Returns JSON actions for the Task.

func (*ApiService) FetchTaskStatistics added in v0.11.0

func (c *ApiService) FetchTaskStatistics(AssistantSid string, TaskSid string) (*AutopilotV1TaskStatistics, error)

func (*ApiService) FetchWebhook added in v0.11.0

func (c *ApiService) FetchWebhook(AssistantSid string, Sid string) (*AutopilotV1Webhook, error)

func (*ApiService) ListAssistant added in v0.11.0

func (c *ApiService) ListAssistant(params *ListAssistantParams) ([]AutopilotV1Assistant, error)

Lists Assistant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListField added in v0.11.0

func (c *ApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) ([]AutopilotV1Field, error)

Lists Field records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListFieldType added in v0.11.0

func (c *ApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) ([]AutopilotV1FieldType, error)

Lists FieldType records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListFieldValue added in v0.11.0

func (c *ApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) ([]AutopilotV1FieldValue, error)

Lists FieldValue records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListModelBuild added in v0.11.0

func (c *ApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) ([]AutopilotV1ModelBuild, error)

Lists ModelBuild records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListQuery added in v0.11.0

func (c *ApiService) ListQuery(AssistantSid string, params *ListQueryParams) ([]AutopilotV1Query, error)

Lists Query records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListSample added in v0.11.0

func (c *ApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) ([]AutopilotV1Sample, error)

Lists Sample records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListTask added in v0.11.0

func (c *ApiService) ListTask(AssistantSid string, params *ListTaskParams) ([]AutopilotV1Task, error)

Lists Task records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListWebhook added in v0.11.0

func (c *ApiService) ListWebhook(AssistantSid string, params *ListWebhookParams) ([]AutopilotV1Webhook, error)

Lists Webhook records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) PageAssistant added in v0.13.0

func (c *ApiService) PageAssistant(params *ListAssistantParams, pageToken, pageNumber string) (*ListAssistantResponse, error)

Retrieve a single page of Assistant records from the API. Request is executed immediately.

func (*ApiService) PageField added in v0.13.0

func (c *ApiService) PageField(AssistantSid string, TaskSid string, params *ListFieldParams, pageToken, pageNumber string) (*ListFieldResponse, error)

Retrieve a single page of Field records from the API. Request is executed immediately.

func (*ApiService) PageFieldType added in v0.13.0

func (c *ApiService) PageFieldType(AssistantSid string, params *ListFieldTypeParams, pageToken, pageNumber string) (*ListFieldTypeResponse, error)

Retrieve a single page of FieldType records from the API. Request is executed immediately.

func (*ApiService) PageFieldValue added in v0.13.0

func (c *ApiService) PageFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams, pageToken, pageNumber string) (*ListFieldValueResponse, error)

Retrieve a single page of FieldValue records from the API. Request is executed immediately.

func (*ApiService) PageModelBuild added in v0.13.0

func (c *ApiService) PageModelBuild(AssistantSid string, params *ListModelBuildParams, pageToken, pageNumber string) (*ListModelBuildResponse, error)

Retrieve a single page of ModelBuild records from the API. Request is executed immediately.

func (*ApiService) PageQuery added in v0.13.0

func (c *ApiService) PageQuery(AssistantSid string, params *ListQueryParams, pageToken, pageNumber string) (*ListQueryResponse, error)

Retrieve a single page of Query records from the API. Request is executed immediately.

func (*ApiService) PageSample added in v0.13.0

func (c *ApiService) PageSample(AssistantSid string, TaskSid string, params *ListSampleParams, pageToken, pageNumber string) (*ListSampleResponse, error)

Retrieve a single page of Sample records from the API. Request is executed immediately.

func (*ApiService) PageTask added in v0.13.0

func (c *ApiService) PageTask(AssistantSid string, params *ListTaskParams, pageToken, pageNumber string) (*ListTaskResponse, error)

Retrieve a single page of Task records from the API. Request is executed immediately.

func (*ApiService) PageWebhook added in v0.13.0

func (c *ApiService) PageWebhook(AssistantSid string, params *ListWebhookParams, pageToken, pageNumber string) (*ListWebhookResponse, error)

Retrieve a single page of Webhook records from the API. Request is executed immediately.

func (*ApiService) StreamAssistant added in v0.13.0

func (c *ApiService) StreamAssistant(params *ListAssistantParams) (chan AutopilotV1Assistant, error)

Streams Assistant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamField added in v0.13.0

func (c *ApiService) StreamField(AssistantSid string, TaskSid string, params *ListFieldParams) (chan AutopilotV1Field, error)

Streams Field records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamFieldType added in v0.13.0

func (c *ApiService) StreamFieldType(AssistantSid string, params *ListFieldTypeParams) (chan AutopilotV1FieldType, error)

Streams FieldType records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamFieldValue added in v0.13.0

func (c *ApiService) StreamFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (chan AutopilotV1FieldValue, error)

Streams FieldValue records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamModelBuild added in v0.13.0

func (c *ApiService) StreamModelBuild(AssistantSid string, params *ListModelBuildParams) (chan AutopilotV1ModelBuild, error)

Streams ModelBuild records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamQuery added in v0.13.0

func (c *ApiService) StreamQuery(AssistantSid string, params *ListQueryParams) (chan AutopilotV1Query, error)

Streams Query records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamSample added in v0.13.0

func (c *ApiService) StreamSample(AssistantSid string, TaskSid string, params *ListSampleParams) (chan AutopilotV1Sample, error)

Streams Sample records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamTask added in v0.13.0

func (c *ApiService) StreamTask(AssistantSid string, params *ListTaskParams) (chan AutopilotV1Task, error)

Streams Task records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamWebhook added in v0.13.0

func (c *ApiService) StreamWebhook(AssistantSid string, params *ListWebhookParams) (chan AutopilotV1Webhook, error)

Streams Webhook records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) UpdateAssistant added in v0.11.0

func (c *ApiService) UpdateAssistant(Sid string, params *UpdateAssistantParams) (*AutopilotV1Assistant, error)

func (*ApiService) UpdateDefaults added in v0.11.0

func (c *ApiService) UpdateDefaults(AssistantSid string, params *UpdateDefaultsParams) (*AutopilotV1Defaults, error)

func (*ApiService) UpdateFieldType added in v0.11.0

func (c *ApiService) UpdateFieldType(AssistantSid string, Sid string, params *UpdateFieldTypeParams) (*AutopilotV1FieldType, error)

func (*ApiService) UpdateModelBuild added in v0.11.0

func (c *ApiService) UpdateModelBuild(AssistantSid string, Sid string, params *UpdateModelBuildParams) (*AutopilotV1ModelBuild, error)

func (*ApiService) UpdateQuery added in v0.11.0

func (c *ApiService) UpdateQuery(AssistantSid string, Sid string, params *UpdateQueryParams) (*AutopilotV1Query, error)

func (*ApiService) UpdateRestoreAssistant added in v0.11.0

func (c *ApiService) UpdateRestoreAssistant(params *UpdateRestoreAssistantParams) (*AutopilotV1RestoreAssistant, error)

func (*ApiService) UpdateSample added in v0.11.0

func (c *ApiService) UpdateSample(AssistantSid string, TaskSid string, Sid string, params *UpdateSampleParams) (*AutopilotV1Sample, error)

func (*ApiService) UpdateStyleSheet added in v0.11.0

func (c *ApiService) UpdateStyleSheet(AssistantSid string, params *UpdateStyleSheetParams) (*AutopilotV1StyleSheet, error)

Updates the style sheet for an Assistant identified by `assistant_sid`.

func (*ApiService) UpdateTask added in v0.11.0

func (c *ApiService) UpdateTask(AssistantSid string, Sid string, params *UpdateTaskParams) (*AutopilotV1Task, error)

func (*ApiService) UpdateTaskActions added in v0.11.0

func (c *ApiService) UpdateTaskActions(AssistantSid string, TaskSid string, params *UpdateTaskActionsParams) (*AutopilotV1TaskActions, error)

Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}.

func (*ApiService) UpdateWebhook added in v0.11.0

func (c *ApiService) UpdateWebhook(AssistantSid string, Sid string, params *UpdateWebhookParams) (*AutopilotV1Webhook, error)

type AutopilotV1Assistant

type AutopilotV1Assistant struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// Reserved
	CallbackEvents *string `json:"callback_events,omitempty"`
	// Reserved
	CallbackUrl *string `json:"callback_url,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// A string describing the state of the assistant.
	DevelopmentStage *string `json:"development_stage,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// Reserved
	LatestModelBuildSid *string `json:"latest_model_build_sid,omitempty"`
	// A list of the URLs of the Assistant's related resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// Whether queries should be logged and kept after training
	LogQueries *bool `json:"log_queries,omitempty"`
	// Whether model needs to be rebuilt
	NeedsModelBuild *bool `json:"needs_model_build,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Assistant resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1Assistant struct for AutopilotV1Assistant

type AutopilotV1Defaults added in v0.14.0

type AutopilotV1Defaults struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The JSON string that describes the default task links
	Data *map[string]interface{} `json:"data,omitempty"`
	// The absolute URL of the Defaults resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1Defaults struct for AutopilotV1Defaults

type AutopilotV1Dialogue added in v0.14.0

type AutopilotV1Dialogue struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The JSON string that describes the dialogue session object
	Data *map[string]interface{} `json:"data,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The absolute URL of the Dialogue resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1Dialogue struct for AutopilotV1Dialogue

type AutopilotV1Field added in v0.14.0

type AutopilotV1Field struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the Task associated with the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The Field Type of the field
	FieldType *string `json:"field_type,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with this Field
	TaskSid *string `json:"task_sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Field resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1Field struct for AutopilotV1Field

type AutopilotV1FieldType added in v0.14.0

type AutopilotV1FieldType struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// A list of the URLs of related resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the FieldType resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1FieldType struct for AutopilotV1FieldType

type AutopilotV1FieldValue added in v0.14.0

type AutopilotV1FieldValue struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the FieldType associated with the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The SID of the Field Type associated with the Field Value
	FieldTypeSid *string `json:"field_type_sid,omitempty"`
	// The ISO language-country tag that identifies the language of the value
	Language *string `json:"language,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The word for which the field value is a synonym of
	SynonymOf *string `json:"synonym_of,omitempty"`
	// The absolute URL of the FieldValue resource
	Url *string `json:"url,omitempty"`
	// The Field Value data
	Value *string `json:"value,omitempty"`
}

AutopilotV1FieldValue struct for AutopilotV1FieldValue

type AutopilotV1ModelBuild added in v0.14.0

type AutopilotV1ModelBuild struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The time in seconds it took to build the model
	BuildDuration *int `json:"build_duration,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// More information about why the model build failed, if `status` is `failed`
	ErrorCode *int `json:"error_code,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The status of the model build process
	Status *string `json:"status,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the ModelBuild resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1ModelBuild struct for AutopilotV1ModelBuild

type AutopilotV1Query added in v0.14.0

type AutopilotV1Query struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The SID of the [Dialogue](https://www.twilio.com/docs/autopilot/api/dialogue).
	DialogueSid *string `json:"dialogue_sid,omitempty"`
	// The ISO language-country string that specifies the language used by the Query
	Language *string `json:"language,omitempty"`
	// The SID of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) queried
	ModelBuildSid *string `json:"model_build_sid,omitempty"`
	// The end-user's natural language input
	Query *string `json:"query,omitempty"`
	// The natural language analysis results that include the Task recognized and a list of identified Fields
	Results *map[string]interface{} `json:"results,omitempty"`
	// The SID of an optional reference to the Sample created from the query
	SampleSid *string `json:"sample_sid,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The communication channel from where the end-user input came
	SourceChannel *string `json:"source_channel,omitempty"`
	// The status of the Query
	Status *string `json:"status,omitempty"`
	// The absolute URL of the Query resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1Query struct for AutopilotV1Query

type AutopilotV1RestoreAssistant

type AutopilotV1RestoreAssistant struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// Reserved
	CallbackEvents *string `json:"callback_events,omitempty"`
	// Reserved
	CallbackUrl *string `json:"callback_url,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// A string describing the state of the assistant.
	DevelopmentStage *string `json:"development_stage,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// Reserved
	LatestModelBuildSid *string `json:"latest_model_build_sid,omitempty"`
	// Whether queries should be logged and kept after training
	LogQueries *bool `json:"log_queries,omitempty"`
	// Whether model needs to be rebuilt
	NeedsModelBuild *bool `json:"needs_model_build,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
}

AutopilotV1RestoreAssistant struct for AutopilotV1RestoreAssistant

type AutopilotV1Sample added in v0.14.0

type AutopilotV1Sample struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the Task associated with the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An ISO language-country string that specifies the language used for the sample
	Language *string `json:"language,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The communication channel from which the sample was captured
	SourceChannel *string `json:"source_channel,omitempty"`
	// The text example of how end users might express the task
	TaggedText *string `json:"tagged_text,omitempty"`
	// The SID of the Task associated with the resource
	TaskSid *string `json:"task_sid,omitempty"`
	// The absolute URL of the Sample resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1Sample struct for AutopilotV1Sample

type AutopilotV1StyleSheet added in v0.14.0

type AutopilotV1StyleSheet struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The JSON string that describes the style sheet object
	Data *map[string]interface{} `json:"data,omitempty"`
	// The absolute URL of the StyleSheet resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1StyleSheet struct for AutopilotV1StyleSheet

type AutopilotV1Task added in v0.14.0

type AutopilotV1Task struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The URL from which the Assistant can fetch actions
	ActionsUrl *string `json:"actions_url,omitempty"`
	// The SID of the Assistant that is the parent of the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// A list of the URLs of related resources
	Links *map[string]interface{} `json:"links,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Task resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1Task struct for AutopilotV1Task

type AutopilotV1TaskActions added in v0.14.0

type AutopilotV1TaskActions struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the Task associated with the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The JSON string that specifies the actions that instruct the Assistant on how to perform the task
	Data *map[string]interface{} `json:"data,omitempty"`
	// The SID of the Task associated with the resource
	TaskSid *string `json:"task_sid,omitempty"`
	// The absolute URL of the TaskActions resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1TaskActions struct for AutopilotV1TaskActions

type AutopilotV1TaskStatistics added in v0.14.0

type AutopilotV1TaskStatistics struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the Task associated with the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The total number of Fields associated with the Task
	FieldsCount *int `json:"fields_count,omitempty"`
	// The total number of Samples associated with the Task
	SamplesCount *int `json:"samples_count,omitempty"`
	// The SID of the Task for which the statistics were collected
	TaskSid *string `json:"task_sid,omitempty"`
	// The absolute URL of the TaskStatistics resource
	Url *string `json:"url,omitempty"`
}

AutopilotV1TaskStatistics struct for AutopilotV1TaskStatistics

type AutopilotV1Webhook added in v0.14.0

type AutopilotV1Webhook struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Assistant that is the parent of the resource
	AssistantSid *string `json:"assistant_sid,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The list of space-separated events that this Webhook is subscribed to.
	Events *string `json:"events,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// The absolute URL of the Webhook resource
	Url *string `json:"url,omitempty"`
	// The method used when calling the webhook's URL.
	WebhookMethod *string `json:"webhook_method,omitempty"`
	// The URL associated with this Webhook.
	WebhookUrl *string `json:"webhook_url,omitempty"`
}

AutopilotV1Webhook struct for AutopilotV1Webhook

type CreateAssistantParams

type CreateAssistantParams struct {
	// Reserved.
	CallbackEvents *string `json:"CallbackEvents,omitempty"`
	// Reserved.
	CallbackUrl *string `json:"CallbackUrl,omitempty"`
	// A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks.
	Defaults *map[string]interface{} `json:"Defaults,omitempty"`
	// A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored.
	LogQueries *bool `json:"LogQueries,omitempty"`
	// The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
	StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"`
	// An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateAssistant'

func (*CreateAssistantParams) SetCallbackEvents

func (params *CreateAssistantParams) SetCallbackEvents(CallbackEvents string) *CreateAssistantParams

func (*CreateAssistantParams) SetCallbackUrl

func (params *CreateAssistantParams) SetCallbackUrl(CallbackUrl string) *CreateAssistantParams

func (*CreateAssistantParams) SetDefaults

func (params *CreateAssistantParams) SetDefaults(Defaults map[string]interface{}) *CreateAssistantParams

func (*CreateAssistantParams) SetFriendlyName

func (params *CreateAssistantParams) SetFriendlyName(FriendlyName string) *CreateAssistantParams

func (*CreateAssistantParams) SetLogQueries

func (params *CreateAssistantParams) SetLogQueries(LogQueries bool) *CreateAssistantParams

func (*CreateAssistantParams) SetStyleSheet

func (params *CreateAssistantParams) SetStyleSheet(StyleSheet map[string]interface{}) *CreateAssistantParams

func (*CreateAssistantParams) SetUniqueName

func (params *CreateAssistantParams) SetUniqueName(UniqueName string) *CreateAssistantParams

type CreateFieldParams

type CreateFieldParams struct {
	// The Field Type of the new field. Can be: a [Built-in Field Type](https://www.twilio.com/docs/autopilot/built-in-field-types), the `unique_name`, or the `sid` of a custom Field Type.
	FieldType *string `json:"FieldType,omitempty"`
	// An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateField'

func (*CreateFieldParams) SetFieldType

func (params *CreateFieldParams) SetFieldType(FieldType string) *CreateFieldParams

func (*CreateFieldParams) SetUniqueName

func (params *CreateFieldParams) SetUniqueName(UniqueName string) *CreateFieldParams

type CreateFieldTypeParams

type CreateFieldTypeParams struct {
	// A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateFieldType'

func (*CreateFieldTypeParams) SetFriendlyName

func (params *CreateFieldTypeParams) SetFriendlyName(FriendlyName string) *CreateFieldTypeParams

func (*CreateFieldTypeParams) SetUniqueName

func (params *CreateFieldTypeParams) SetUniqueName(UniqueName string) *CreateFieldTypeParams

type CreateFieldValueParams

type CreateFieldValueParams struct {
	// The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`
	Language *string `json:"Language,omitempty"`
	// The string value that indicates which word the field value is a synonym of.
	SynonymOf *string `json:"SynonymOf,omitempty"`
	// The Field Value data.
	Value *string `json:"Value,omitempty"`
}

Optional parameters for the method 'CreateFieldValue'

func (*CreateFieldValueParams) SetLanguage

func (params *CreateFieldValueParams) SetLanguage(Language string) *CreateFieldValueParams

func (*CreateFieldValueParams) SetSynonymOf

func (params *CreateFieldValueParams) SetSynonymOf(SynonymOf string) *CreateFieldValueParams

func (*CreateFieldValueParams) SetValue

func (params *CreateFieldValueParams) SetValue(Value string) *CreateFieldValueParams

type CreateModelBuildParams

type CreateModelBuildParams struct {
	// The URL we should call using a POST method to send status information to your application.
	StatusCallback *string `json:"StatusCallback,omitempty"`
	// An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateModelBuild'

func (*CreateModelBuildParams) SetStatusCallback

func (params *CreateModelBuildParams) SetStatusCallback(StatusCallback string) *CreateModelBuildParams

func (*CreateModelBuildParams) SetUniqueName

func (params *CreateModelBuildParams) SetUniqueName(UniqueName string) *CreateModelBuildParams

type CreateQueryParams

type CreateQueryParams struct {
	// The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new query. For example: `en-US`.
	Language *string `json:"Language,omitempty"`
	// The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
	ModelBuild *string `json:"ModelBuild,omitempty"`
	// The end-user's natural language input. It can be up to 2048 characters long.
	Query *string `json:"Query,omitempty"`
	// The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task `unique_name` values. For example, `task-unique_name-1, task-unique_name-2`. Listing specific tasks is useful to constrain the paths that a user can take.
	Tasks *string `json:"Tasks,omitempty"`
}

Optional parameters for the method 'CreateQuery'

func (*CreateQueryParams) SetLanguage

func (params *CreateQueryParams) SetLanguage(Language string) *CreateQueryParams

func (*CreateQueryParams) SetModelBuild

func (params *CreateQueryParams) SetModelBuild(ModelBuild string) *CreateQueryParams

func (*CreateQueryParams) SetQuery

func (params *CreateQueryParams) SetQuery(Query string) *CreateQueryParams

func (*CreateQueryParams) SetTasks

func (params *CreateQueryParams) SetTasks(Tasks string) *CreateQueryParams

type CreateSampleParams

type CreateSampleParams struct {
	// The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new sample. For example: `en-US`.
	Language *string `json:"Language,omitempty"`
	// The communication channel from which the new sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included.
	SourceChannel *string `json:"SourceChannel,omitempty"`
	// The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
	TaggedText *string `json:"TaggedText,omitempty"`
}

Optional parameters for the method 'CreateSample'

func (*CreateSampleParams) SetLanguage

func (params *CreateSampleParams) SetLanguage(Language string) *CreateSampleParams

func (*CreateSampleParams) SetSourceChannel

func (params *CreateSampleParams) SetSourceChannel(SourceChannel string) *CreateSampleParams

func (*CreateSampleParams) SetTaggedText

func (params *CreateSampleParams) SetTaggedText(TaggedText string) *CreateSampleParams

type CreateTaskParams

type CreateTaskParams struct {
	// The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. It is optional and not unique.
	Actions *map[string]interface{} `json:"Actions,omitempty"`
	// The URL from which the Assistant can fetch actions.
	ActionsUrl *string `json:"ActionsUrl,omitempty"`
	// A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateTask'

func (*CreateTaskParams) SetActions

func (params *CreateTaskParams) SetActions(Actions map[string]interface{}) *CreateTaskParams

func (*CreateTaskParams) SetActionsUrl

func (params *CreateTaskParams) SetActionsUrl(ActionsUrl string) *CreateTaskParams

func (*CreateTaskParams) SetFriendlyName

func (params *CreateTaskParams) SetFriendlyName(FriendlyName string) *CreateTaskParams

func (*CreateTaskParams) SetUniqueName

func (params *CreateTaskParams) SetUniqueName(UniqueName string) *CreateTaskParams

type CreateWebhookParams

type CreateWebhookParams struct {
	// The list of space-separated events that this Webhook will subscribe to.
	Events *string `json:"Events,omitempty"`
	// An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length.
	UniqueName *string `json:"UniqueName,omitempty"`
	// The method to be used when calling the webhook's URL.
	WebhookMethod *string `json:"WebhookMethod,omitempty"`
	// The URL associated with this Webhook.
	WebhookUrl *string `json:"WebhookUrl,omitempty"`
}

Optional parameters for the method 'CreateWebhook'

func (*CreateWebhookParams) SetEvents

func (params *CreateWebhookParams) SetEvents(Events string) *CreateWebhookParams

func (*CreateWebhookParams) SetUniqueName

func (params *CreateWebhookParams) SetUniqueName(UniqueName string) *CreateWebhookParams

func (*CreateWebhookParams) SetWebhookMethod

func (params *CreateWebhookParams) SetWebhookMethod(WebhookMethod string) *CreateWebhookParams

func (*CreateWebhookParams) SetWebhookUrl

func (params *CreateWebhookParams) SetWebhookUrl(WebhookUrl string) *CreateWebhookParams

type ListAssistantParams

type ListAssistantParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListAssistant'

func (*ListAssistantParams) SetLimit added in v0.13.0

func (params *ListAssistantParams) SetLimit(Limit int) *ListAssistantParams

func (*ListAssistantParams) SetPageSize

func (params *ListAssistantParams) SetPageSize(PageSize int) *ListAssistantParams

type ListAssistantResponse

type ListAssistantResponse struct {
	Assistants []AutopilotV1Assistant    `json:"assistants,omitempty"`
	Meta       ListAssistantResponseMeta `json:"meta,omitempty"`
}

ListAssistantResponse struct for ListAssistantResponse

type ListAssistantResponseMeta

type ListAssistantResponseMeta struct {
	FirstPageUrl    string `json:"first_page_url,omitempty"`
	Key             string `json:"key,omitempty"`
	NextPageUrl     string `json:"next_page_url,omitempty"`
	Page            int    `json:"page,omitempty"`
	PageSize        int    `json:"page_size,omitempty"`
	PreviousPageUrl string `json:"previous_page_url,omitempty"`
	Url             string `json:"url,omitempty"`
}

ListAssistantResponseMeta struct for ListAssistantResponseMeta

type ListFieldParams

type ListFieldParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListField'

func (*ListFieldParams) SetLimit added in v0.13.0

func (params *ListFieldParams) SetLimit(Limit int) *ListFieldParams

func (*ListFieldParams) SetPageSize

func (params *ListFieldParams) SetPageSize(PageSize int) *ListFieldParams

type ListFieldResponse

type ListFieldResponse struct {
	Fields []AutopilotV1Field        `json:"fields,omitempty"`
	Meta   ListAssistantResponseMeta `json:"meta,omitempty"`
}

ListFieldResponse struct for ListFieldResponse

type ListFieldTypeParams

type ListFieldTypeParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListFieldType'

func (*ListFieldTypeParams) SetLimit added in v0.13.0

func (params *ListFieldTypeParams) SetLimit(Limit int) *ListFieldTypeParams

func (*ListFieldTypeParams) SetPageSize

func (params *ListFieldTypeParams) SetPageSize(PageSize int) *ListFieldTypeParams

type ListFieldTypeResponse

type ListFieldTypeResponse struct {
	FieldTypes []AutopilotV1FieldType    `json:"field_types,omitempty"`
	Meta       ListAssistantResponseMeta `json:"meta,omitempty"`
}

ListFieldTypeResponse struct for ListFieldTypeResponse

type ListFieldValueParams

type ListFieldValueParams struct {
	// The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`
	Language *string `json:"Language,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListFieldValue'

func (*ListFieldValueParams) SetLanguage

func (params *ListFieldValueParams) SetLanguage(Language string) *ListFieldValueParams

func (*ListFieldValueParams) SetLimit added in v0.13.0

func (params *ListFieldValueParams) SetLimit(Limit int) *ListFieldValueParams

func (*ListFieldValueParams) SetPageSize

func (params *ListFieldValueParams) SetPageSize(PageSize int) *ListFieldValueParams

type ListFieldValueResponse

type ListFieldValueResponse struct {
	FieldValues []AutopilotV1FieldValue   `json:"field_values,omitempty"`
	Meta        ListAssistantResponseMeta `json:"meta,omitempty"`
}

ListFieldValueResponse struct for ListFieldValueResponse

type ListModelBuildParams

type ListModelBuildParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListModelBuild'

func (*ListModelBuildParams) SetLimit added in v0.13.0

func (params *ListModelBuildParams) SetLimit(Limit int) *ListModelBuildParams

func (*ListModelBuildParams) SetPageSize

func (params *ListModelBuildParams) SetPageSize(PageSize int) *ListModelBuildParams

type ListModelBuildResponse

type ListModelBuildResponse struct {
	Meta        ListAssistantResponseMeta `json:"meta,omitempty"`
	ModelBuilds []AutopilotV1ModelBuild   `json:"model_builds,omitempty"`
}

ListModelBuildResponse struct for ListModelBuildResponse

type ListQueryParams

type ListQueryParams struct {
	// The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used by the Query resources to read. For example: `en-US`.
	Language *string `json:"Language,omitempty"`
	// The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
	ModelBuild *string `json:"ModelBuild,omitempty"`
	// The status of the resources to read. Can be: `pending-review`, `reviewed`, or `discarded`
	Status *string `json:"Status,omitempty"`
	// The SID of the [Dialogue](https://www.twilio.com/docs/autopilot/api/dialogue).
	DialogueSid *string `json:"DialogueSid,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListQuery'

func (*ListQueryParams) SetDialogueSid

func (params *ListQueryParams) SetDialogueSid(DialogueSid string) *ListQueryParams

func (*ListQueryParams) SetLanguage

func (params *ListQueryParams) SetLanguage(Language string) *ListQueryParams

func (*ListQueryParams) SetLimit added in v0.13.0

func (params *ListQueryParams) SetLimit(Limit int) *ListQueryParams

func (*ListQueryParams) SetModelBuild

func (params *ListQueryParams) SetModelBuild(ModelBuild string) *ListQueryParams

func (*ListQueryParams) SetPageSize

func (params *ListQueryParams) SetPageSize(PageSize int) *ListQueryParams

func (*ListQueryParams) SetStatus

func (params *ListQueryParams) SetStatus(Status string) *ListQueryParams

type ListQueryResponse

type ListQueryResponse struct {
	Meta    ListAssistantResponseMeta `json:"meta,omitempty"`
	Queries []AutopilotV1Query        `json:"queries,omitempty"`
}

ListQueryResponse struct for ListQueryResponse

type ListSampleParams

type ListSampleParams struct {
	// The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`.
	Language *string `json:"Language,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListSample'

func (*ListSampleParams) SetLanguage

func (params *ListSampleParams) SetLanguage(Language string) *ListSampleParams

func (*ListSampleParams) SetLimit added in v0.13.0

func (params *ListSampleParams) SetLimit(Limit int) *ListSampleParams

func (*ListSampleParams) SetPageSize

func (params *ListSampleParams) SetPageSize(PageSize int) *ListSampleParams

type ListSampleResponse

type ListSampleResponse struct {
	Meta    ListAssistantResponseMeta `json:"meta,omitempty"`
	Samples []AutopilotV1Sample       `json:"samples,omitempty"`
}

ListSampleResponse struct for ListSampleResponse

type ListTaskParams

type ListTaskParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListTask'

func (*ListTaskParams) SetLimit added in v0.13.0

func (params *ListTaskParams) SetLimit(Limit int) *ListTaskParams

func (*ListTaskParams) SetPageSize

func (params *ListTaskParams) SetPageSize(PageSize int) *ListTaskParams

type ListTaskResponse

type ListTaskResponse struct {
	Meta  ListAssistantResponseMeta `json:"meta,omitempty"`
	Tasks []AutopilotV1Task         `json:"tasks,omitempty"`
}

ListTaskResponse struct for ListTaskResponse

type ListWebhookParams

type ListWebhookParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListWebhook'

func (*ListWebhookParams) SetLimit added in v0.13.0

func (params *ListWebhookParams) SetLimit(Limit int) *ListWebhookParams

func (*ListWebhookParams) SetPageSize

func (params *ListWebhookParams) SetPageSize(PageSize int) *ListWebhookParams

type ListWebhookResponse

type ListWebhookResponse struct {
	Meta     ListAssistantResponseMeta `json:"meta,omitempty"`
	Webhooks []AutopilotV1Webhook      `json:"webhooks,omitempty"`
}

ListWebhookResponse struct for ListWebhookResponse

type UpdateAssistantParams

type UpdateAssistantParams struct {
	// Reserved.
	CallbackEvents *string `json:"CallbackEvents,omitempty"`
	// Reserved.
	CallbackUrl *string `json:"CallbackUrl,omitempty"`
	// A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks.
	Defaults *map[string]interface{} `json:"Defaults,omitempty"`
	// A string describing the state of the assistant.
	DevelopmentStage *string `json:"DevelopmentStage,omitempty"`
	// A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored.
	LogQueries *bool `json:"LogQueries,omitempty"`
	// The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
	StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'UpdateAssistant'

func (*UpdateAssistantParams) SetCallbackEvents

func (params *UpdateAssistantParams) SetCallbackEvents(CallbackEvents string) *UpdateAssistantParams

func (*UpdateAssistantParams) SetCallbackUrl

func (params *UpdateAssistantParams) SetCallbackUrl(CallbackUrl string) *UpdateAssistantParams

func (*UpdateAssistantParams) SetDefaults

func (params *UpdateAssistantParams) SetDefaults(Defaults map[string]interface{}) *UpdateAssistantParams

func (*UpdateAssistantParams) SetDevelopmentStage

func (params *UpdateAssistantParams) SetDevelopmentStage(DevelopmentStage string) *UpdateAssistantParams

func (*UpdateAssistantParams) SetFriendlyName

func (params *UpdateAssistantParams) SetFriendlyName(FriendlyName string) *UpdateAssistantParams

func (*UpdateAssistantParams) SetLogQueries

func (params *UpdateAssistantParams) SetLogQueries(LogQueries bool) *UpdateAssistantParams

func (*UpdateAssistantParams) SetStyleSheet

func (params *UpdateAssistantParams) SetStyleSheet(StyleSheet map[string]interface{}) *UpdateAssistantParams

func (*UpdateAssistantParams) SetUniqueName

func (params *UpdateAssistantParams) SetUniqueName(UniqueName string) *UpdateAssistantParams

type UpdateDefaultsParams

type UpdateDefaultsParams struct {
	// A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations.
	Defaults *map[string]interface{} `json:"Defaults,omitempty"`
}

Optional parameters for the method 'UpdateDefaults'

func (*UpdateDefaultsParams) SetDefaults

func (params *UpdateDefaultsParams) SetDefaults(Defaults map[string]interface{}) *UpdateDefaultsParams

type UpdateFieldTypeParams

type UpdateFieldTypeParams struct {
	// A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'UpdateFieldType'

func (*UpdateFieldTypeParams) SetFriendlyName

func (params *UpdateFieldTypeParams) SetFriendlyName(FriendlyName string) *UpdateFieldTypeParams

func (*UpdateFieldTypeParams) SetUniqueName

func (params *UpdateFieldTypeParams) SetUniqueName(UniqueName string) *UpdateFieldTypeParams

type UpdateModelBuildParams

type UpdateModelBuildParams struct {
	// An application-defined string that uniquely identifies the resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'UpdateModelBuild'

func (*UpdateModelBuildParams) SetUniqueName

func (params *UpdateModelBuildParams) SetUniqueName(UniqueName string) *UpdateModelBuildParams

type UpdateQueryParams

type UpdateQueryParams struct {
	// The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query.
	SampleSid *string `json:"SampleSid,omitempty"`
	// The new status of the resource. Can be: `pending-review`, `reviewed`, or `discarded`
	Status *string `json:"Status,omitempty"`
}

Optional parameters for the method 'UpdateQuery'

func (*UpdateQueryParams) SetSampleSid

func (params *UpdateQueryParams) SetSampleSid(SampleSid string) *UpdateQueryParams

func (*UpdateQueryParams) SetStatus

func (params *UpdateQueryParams) SetStatus(Status string) *UpdateQueryParams

type UpdateRestoreAssistantParams

type UpdateRestoreAssistantParams struct {
	// The Twilio-provided string that uniquely identifies the Assistant resource to restore.
	Assistant *string `json:"Assistant,omitempty"`
}

Optional parameters for the method 'UpdateRestoreAssistant'

func (*UpdateRestoreAssistantParams) SetAssistant

func (params *UpdateRestoreAssistantParams) SetAssistant(Assistant string) *UpdateRestoreAssistantParams

type UpdateSampleParams

type UpdateSampleParams struct {
	// The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`.
	Language *string `json:"Language,omitempty"`
	// The communication channel from which the sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included.
	SourceChannel *string `json:"SourceChannel,omitempty"`
	// The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
	TaggedText *string `json:"TaggedText,omitempty"`
}

Optional parameters for the method 'UpdateSample'

func (*UpdateSampleParams) SetLanguage

func (params *UpdateSampleParams) SetLanguage(Language string) *UpdateSampleParams

func (*UpdateSampleParams) SetSourceChannel

func (params *UpdateSampleParams) SetSourceChannel(SourceChannel string) *UpdateSampleParams

func (*UpdateSampleParams) SetTaggedText

func (params *UpdateSampleParams) SetTaggedText(TaggedText string) *UpdateSampleParams

type UpdateStyleSheetParams

type UpdateStyleSheetParams struct {
	// The JSON string that describes the style sheet object.
	StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"`
}

Optional parameters for the method 'UpdateStyleSheet'

func (*UpdateStyleSheetParams) SetStyleSheet

func (params *UpdateStyleSheetParams) SetStyleSheet(StyleSheet map[string]interface{}) *UpdateStyleSheetParams

type UpdateTaskActionsParams

type UpdateTaskActionsParams struct {
	// The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task.
	Actions *map[string]interface{} `json:"Actions,omitempty"`
}

Optional parameters for the method 'UpdateTaskActions'

func (*UpdateTaskActionsParams) SetActions

func (params *UpdateTaskActionsParams) SetActions(Actions map[string]interface{}) *UpdateTaskActionsParams

type UpdateTaskParams

type UpdateTaskParams struct {
	// The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task.
	Actions *map[string]interface{} `json:"Actions,omitempty"`
	// The URL from which the Assistant can fetch actions.
	ActionsUrl *string `json:"ActionsUrl,omitempty"`
	// A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// An application-defined string that uniquely identifies the resource. This value must be 64 characters or less in length and be unique. It can be used as an alternative to the `sid` in the URL path to address the resource.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'UpdateTask'

func (*UpdateTaskParams) SetActions

func (params *UpdateTaskParams) SetActions(Actions map[string]interface{}) *UpdateTaskParams

func (*UpdateTaskParams) SetActionsUrl

func (params *UpdateTaskParams) SetActionsUrl(ActionsUrl string) *UpdateTaskParams

func (*UpdateTaskParams) SetFriendlyName

func (params *UpdateTaskParams) SetFriendlyName(FriendlyName string) *UpdateTaskParams

func (*UpdateTaskParams) SetUniqueName

func (params *UpdateTaskParams) SetUniqueName(UniqueName string) *UpdateTaskParams

type UpdateWebhookParams

type UpdateWebhookParams struct {
	// The list of space-separated events that this Webhook will subscribe to.
	Events *string `json:"Events,omitempty"`
	// An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length.
	UniqueName *string `json:"UniqueName,omitempty"`
	// The method to be used when calling the webhook's URL.
	WebhookMethod *string `json:"WebhookMethod,omitempty"`
	// The URL associated with this Webhook.
	WebhookUrl *string `json:"WebhookUrl,omitempty"`
}

Optional parameters for the method 'UpdateWebhook'

func (*UpdateWebhookParams) SetEvents

func (params *UpdateWebhookParams) SetEvents(Events string) *UpdateWebhookParams

func (*UpdateWebhookParams) SetUniqueName

func (params *UpdateWebhookParams) SetUniqueName(UniqueName string) *UpdateWebhookParams

func (*UpdateWebhookParams) SetWebhookMethod

func (params *UpdateWebhookParams) SetWebhookMethod(WebhookMethod string) *UpdateWebhookParams

func (*UpdateWebhookParams) SetWebhookUrl

func (params *UpdateWebhookParams) SetWebhookUrl(WebhookUrl string) *UpdateWebhookParams

Jump to

Keyboard shortcuts

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