Documentation ¶
Index ¶
- type ApiService
- func (c *ApiService) CreateAssistant(params *CreateAssistantParams) (*AutopilotV1Assistant, error)
- func (c *ApiService) CreateField(AssistantSid string, TaskSid string, params *CreateFieldParams) (*AutopilotV1Field, error)
- func (c *ApiService) CreateFieldType(AssistantSid string, params *CreateFieldTypeParams) (*AutopilotV1FieldType, error)
- func (c *ApiService) CreateFieldValue(AssistantSid string, FieldTypeSid string, params *CreateFieldValueParams) (*AutopilotV1FieldValue, error)
- func (c *ApiService) CreateModelBuild(AssistantSid string, params *CreateModelBuildParams) (*AutopilotV1ModelBuild, error)
- func (c *ApiService) CreateQuery(AssistantSid string, params *CreateQueryParams) (*AutopilotV1Query, error)
- func (c *ApiService) CreateSample(AssistantSid string, TaskSid string, params *CreateSampleParams) (*AutopilotV1Sample, error)
- func (c *ApiService) CreateTask(AssistantSid string, params *CreateTaskParams) (*AutopilotV1Task, error)
- func (c *ApiService) CreateWebhook(AssistantSid string, params *CreateWebhookParams) (*AutopilotV1Webhook, error)
- func (c *ApiService) DeleteAssistant(Sid string) error
- func (c *ApiService) DeleteField(AssistantSid string, TaskSid string, Sid string) error
- func (c *ApiService) DeleteFieldType(AssistantSid string, Sid string) error
- func (c *ApiService) DeleteFieldValue(AssistantSid string, FieldTypeSid string, Sid string) error
- func (c *ApiService) DeleteModelBuild(AssistantSid string, Sid string) error
- func (c *ApiService) DeleteQuery(AssistantSid string, Sid string) error
- func (c *ApiService) DeleteSample(AssistantSid string, TaskSid string, Sid string) error
- func (c *ApiService) DeleteTask(AssistantSid string, Sid string) error
- func (c *ApiService) DeleteWebhook(AssistantSid string, Sid string) error
- func (c *ApiService) FetchAssistant(Sid string) (*AutopilotV1Assistant, error)
- func (c *ApiService) FetchDefaults(AssistantSid string) (*AutopilotV1Defaults, error)
- func (c *ApiService) FetchDialogue(AssistantSid string, Sid string) (*AutopilotV1Dialogue, error)
- func (c *ApiService) FetchField(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1Field, error)
- func (c *ApiService) FetchFieldType(AssistantSid string, Sid string) (*AutopilotV1FieldType, error)
- func (c *ApiService) FetchFieldValue(AssistantSid string, FieldTypeSid string, Sid string) (*AutopilotV1FieldValue, error)
- func (c *ApiService) FetchModelBuild(AssistantSid string, Sid string) (*AutopilotV1ModelBuild, error)
- func (c *ApiService) FetchQuery(AssistantSid string, Sid string) (*AutopilotV1Query, error)
- func (c *ApiService) FetchSample(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1Sample, error)
- func (c *ApiService) FetchStyleSheet(AssistantSid string) (*AutopilotV1StyleSheet, error)
- func (c *ApiService) FetchTask(AssistantSid string, Sid string) (*AutopilotV1Task, error)
- func (c *ApiService) FetchTaskActions(AssistantSid string, TaskSid string) (*AutopilotV1TaskActions, error)
- func (c *ApiService) FetchTaskStatistics(AssistantSid string, TaskSid string) (*AutopilotV1TaskStatistics, error)
- func (c *ApiService) FetchWebhook(AssistantSid string, Sid string) (*AutopilotV1Webhook, error)
- func (c *ApiService) ListAssistant(params *ListAssistantParams) ([]AutopilotV1Assistant, error)
- func (c *ApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) ([]AutopilotV1Field, error)
- func (c *ApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) ([]AutopilotV1FieldType, error)
- func (c *ApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) ([]AutopilotV1FieldValue, error)
- func (c *ApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) ([]AutopilotV1ModelBuild, error)
- func (c *ApiService) ListQuery(AssistantSid string, params *ListQueryParams) ([]AutopilotV1Query, error)
- func (c *ApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) ([]AutopilotV1Sample, error)
- func (c *ApiService) ListTask(AssistantSid string, params *ListTaskParams) ([]AutopilotV1Task, error)
- func (c *ApiService) ListWebhook(AssistantSid string, params *ListWebhookParams) ([]AutopilotV1Webhook, error)
- func (c *ApiService) PageAssistant(params *ListAssistantParams, pageToken, pageNumber string) (*ListAssistantResponse, error)
- func (c *ApiService) PageField(AssistantSid string, TaskSid string, params *ListFieldParams, ...) (*ListFieldResponse, error)
- func (c *ApiService) PageFieldType(AssistantSid string, params *ListFieldTypeParams, pageToken, pageNumber string) (*ListFieldTypeResponse, error)
- func (c *ApiService) PageFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams, ...) (*ListFieldValueResponse, error)
- func (c *ApiService) PageModelBuild(AssistantSid string, params *ListModelBuildParams, ...) (*ListModelBuildResponse, error)
- func (c *ApiService) PageQuery(AssistantSid string, params *ListQueryParams, pageToken, pageNumber string) (*ListQueryResponse, error)
- func (c *ApiService) PageSample(AssistantSid string, TaskSid string, params *ListSampleParams, ...) (*ListSampleResponse, error)
- func (c *ApiService) PageTask(AssistantSid string, params *ListTaskParams, pageToken, pageNumber string) (*ListTaskResponse, error)
- func (c *ApiService) PageWebhook(AssistantSid string, params *ListWebhookParams, pageToken, pageNumber string) (*ListWebhookResponse, error)
- func (c *ApiService) StreamAssistant(params *ListAssistantParams) (chan AutopilotV1Assistant, chan error)
- func (c *ApiService) StreamField(AssistantSid string, TaskSid string, params *ListFieldParams) (chan AutopilotV1Field, chan error)
- func (c *ApiService) StreamFieldType(AssistantSid string, params *ListFieldTypeParams) (chan AutopilotV1FieldType, chan error)
- func (c *ApiService) StreamFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (chan AutopilotV1FieldValue, chan error)
- func (c *ApiService) StreamModelBuild(AssistantSid string, params *ListModelBuildParams) (chan AutopilotV1ModelBuild, chan error)
- func (c *ApiService) StreamQuery(AssistantSid string, params *ListQueryParams) (chan AutopilotV1Query, chan error)
- func (c *ApiService) StreamSample(AssistantSid string, TaskSid string, params *ListSampleParams) (chan AutopilotV1Sample, chan error)
- func (c *ApiService) StreamTask(AssistantSid string, params *ListTaskParams) (chan AutopilotV1Task, chan error)
- func (c *ApiService) StreamWebhook(AssistantSid string, params *ListWebhookParams) (chan AutopilotV1Webhook, chan error)
- func (c *ApiService) UpdateAssistant(Sid string, params *UpdateAssistantParams) (*AutopilotV1Assistant, error)
- func (c *ApiService) UpdateDefaults(AssistantSid string, params *UpdateDefaultsParams) (*AutopilotV1Defaults, error)
- func (c *ApiService) UpdateFieldType(AssistantSid string, Sid string, params *UpdateFieldTypeParams) (*AutopilotV1FieldType, error)
- func (c *ApiService) UpdateModelBuild(AssistantSid string, Sid string, params *UpdateModelBuildParams) (*AutopilotV1ModelBuild, error)
- func (c *ApiService) UpdateQuery(AssistantSid string, Sid string, params *UpdateQueryParams) (*AutopilotV1Query, error)
- func (c *ApiService) UpdateRestoreAssistant(params *UpdateRestoreAssistantParams) (*AutopilotV1RestoreAssistant, error)
- func (c *ApiService) UpdateSample(AssistantSid string, TaskSid string, Sid string, params *UpdateSampleParams) (*AutopilotV1Sample, error)
- func (c *ApiService) UpdateStyleSheet(AssistantSid string, params *UpdateStyleSheetParams) (*AutopilotV1StyleSheet, error)
- func (c *ApiService) UpdateTask(AssistantSid string, Sid string, params *UpdateTaskParams) (*AutopilotV1Task, error)
- func (c *ApiService) UpdateTaskActions(AssistantSid string, TaskSid string, params *UpdateTaskActionsParams) (*AutopilotV1TaskActions, error)
- func (c *ApiService) UpdateWebhook(AssistantSid string, Sid string, params *UpdateWebhookParams) (*AutopilotV1Webhook, error)
- type AutopilotV1Assistant
- type AutopilotV1Defaults
- type AutopilotV1Dialogue
- type AutopilotV1Field
- type AutopilotV1FieldType
- type AutopilotV1FieldValue
- type AutopilotV1ModelBuild
- type AutopilotV1Query
- type AutopilotV1RestoreAssistant
- type AutopilotV1Sample
- type AutopilotV1StyleSheet
- type AutopilotV1Task
- type AutopilotV1TaskActions
- type AutopilotV1TaskStatistics
- type AutopilotV1Webhook
- type CreateAssistantParams
- func (params *CreateAssistantParams) SetCallbackEvents(CallbackEvents string) *CreateAssistantParams
- func (params *CreateAssistantParams) SetCallbackUrl(CallbackUrl string) *CreateAssistantParams
- func (params *CreateAssistantParams) SetDefaults(Defaults interface{}) *CreateAssistantParams
- func (params *CreateAssistantParams) SetFriendlyName(FriendlyName string) *CreateAssistantParams
- func (params *CreateAssistantParams) SetLogQueries(LogQueries bool) *CreateAssistantParams
- func (params *CreateAssistantParams) SetStyleSheet(StyleSheet interface{}) *CreateAssistantParams
- func (params *CreateAssistantParams) SetUniqueName(UniqueName string) *CreateAssistantParams
- type CreateFieldParams
- type CreateFieldTypeParams
- type CreateFieldValueParams
- type CreateModelBuildParams
- type CreateQueryParams
- func (params *CreateQueryParams) SetLanguage(Language string) *CreateQueryParams
- func (params *CreateQueryParams) SetModelBuild(ModelBuild string) *CreateQueryParams
- func (params *CreateQueryParams) SetQuery(Query string) *CreateQueryParams
- func (params *CreateQueryParams) SetTasks(Tasks string) *CreateQueryParams
- type CreateSampleParams
- type CreateTaskParams
- func (params *CreateTaskParams) SetActions(Actions interface{}) *CreateTaskParams
- func (params *CreateTaskParams) SetActionsUrl(ActionsUrl string) *CreateTaskParams
- func (params *CreateTaskParams) SetFriendlyName(FriendlyName string) *CreateTaskParams
- func (params *CreateTaskParams) SetUniqueName(UniqueName string) *CreateTaskParams
- type CreateWebhookParams
- func (params *CreateWebhookParams) SetEvents(Events string) *CreateWebhookParams
- func (params *CreateWebhookParams) SetUniqueName(UniqueName string) *CreateWebhookParams
- func (params *CreateWebhookParams) SetWebhookMethod(WebhookMethod string) *CreateWebhookParams
- func (params *CreateWebhookParams) SetWebhookUrl(WebhookUrl string) *CreateWebhookParams
- type ListAssistantParams
- type ListAssistantResponse
- type ListAssistantResponseMeta
- type ListFieldParams
- type ListFieldResponse
- type ListFieldTypeParams
- type ListFieldTypeResponse
- type ListFieldValueParams
- type ListFieldValueResponse
- type ListModelBuildParams
- type ListModelBuildResponse
- type ListQueryParams
- func (params *ListQueryParams) SetDialogueSid(DialogueSid string) *ListQueryParams
- func (params *ListQueryParams) SetLanguage(Language string) *ListQueryParams
- func (params *ListQueryParams) SetLimit(Limit int) *ListQueryParams
- func (params *ListQueryParams) SetModelBuild(ModelBuild string) *ListQueryParams
- func (params *ListQueryParams) SetPageSize(PageSize int) *ListQueryParams
- func (params *ListQueryParams) SetStatus(Status string) *ListQueryParams
- type ListQueryResponse
- type ListSampleParams
- type ListSampleResponse
- type ListTaskParams
- type ListTaskResponse
- type ListWebhookParams
- type ListWebhookResponse
- type UpdateAssistantParams
- func (params *UpdateAssistantParams) SetCallbackEvents(CallbackEvents string) *UpdateAssistantParams
- func (params *UpdateAssistantParams) SetCallbackUrl(CallbackUrl string) *UpdateAssistantParams
- func (params *UpdateAssistantParams) SetDefaults(Defaults interface{}) *UpdateAssistantParams
- func (params *UpdateAssistantParams) SetDevelopmentStage(DevelopmentStage string) *UpdateAssistantParams
- func (params *UpdateAssistantParams) SetFriendlyName(FriendlyName string) *UpdateAssistantParams
- func (params *UpdateAssistantParams) SetLogQueries(LogQueries bool) *UpdateAssistantParams
- func (params *UpdateAssistantParams) SetStyleSheet(StyleSheet interface{}) *UpdateAssistantParams
- func (params *UpdateAssistantParams) SetUniqueName(UniqueName string) *UpdateAssistantParams
- type UpdateDefaultsParams
- type UpdateFieldTypeParams
- type UpdateModelBuildParams
- type UpdateQueryParams
- type UpdateRestoreAssistantParams
- type UpdateSampleParams
- type UpdateStyleSheetParams
- type UpdateTaskActionsParams
- type UpdateTaskParams
- func (params *UpdateTaskParams) SetActions(Actions interface{}) *UpdateTaskParams
- func (params *UpdateTaskParams) SetActionsUrl(ActionsUrl string) *UpdateTaskParams
- func (params *UpdateTaskParams) SetFriendlyName(FriendlyName string) *UpdateTaskParams
- func (params *UpdateTaskParams) SetUniqueName(UniqueName string) *UpdateTaskParams
- type UpdateWebhookParams
- func (params *UpdateWebhookParams) SetEvents(Events string) *UpdateWebhookParams
- func (params *UpdateWebhookParams) SetUniqueName(UniqueName string) *UpdateWebhookParams
- func (params *UpdateWebhookParams) SetWebhookMethod(WebhookMethod string) *UpdateWebhookParams
- func (params *UpdateWebhookParams) SetWebhookUrl(WebhookUrl string) *UpdateWebhookParams
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, chan 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, chan 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, chan 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, chan 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, chan 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, chan 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, chan 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, chan 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, chan 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](https://www.twilio.com/docs/iam/api/account) that created the Assistant resource. AccountSid *string `json:"account_sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The string that you assigned to describe the resource. It is not unique and can be up to 255 characters long. 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. 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:"log_queries,omitempty"` // A string describing the state of the assistant. DevelopmentStage *string `json:"development_stage,omitempty"` // Whether model needs to be rebuilt. NeedsModelBuild *bool `json:"needs_model_build,omitempty"` // The unique string that we created to identify the Assistant resource. Sid *string `json:"sid,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. It can be up to 64 characters long. UniqueName *string `json:"unique_name,omitempty"` // The absolute URL of the Assistant resource. Url *string `json:"url,omitempty"` // Reserved. CallbackUrl *string `json:"callback_url,omitempty"` // Reserved. CallbackEvents *string `json:"callback_events,omitempty"` }
AutopilotV1Assistant struct for AutopilotV1Assistant
type AutopilotV1Defaults ¶ added in v0.14.0
type AutopilotV1Defaults struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Defaults resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The absolute URL of the Defaults resource. Url *string `json:"url,omitempty"` // The JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations. Data *interface{} `json:"data,omitempty"` }
AutopilotV1Defaults struct for AutopilotV1Defaults
type AutopilotV1Dialogue ¶ added in v0.14.0
type AutopilotV1Dialogue struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Dialogue resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The unique string that we created to identify the Dialogue resource. Sid *string `json:"sid,omitempty"` // The JSON string that describes the dialogue session object. Data *interface{} `json:"data,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](https://www.twilio.com/docs/iam/api/account) that created the Field resource. AccountSid *string `json:"account_sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The Field Type of the 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:"field_type,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"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The unique string that we created to identify the Field resource. Sid *string `json:"sid,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address 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](https://www.twilio.com/docs/iam/api/account) that created the FieldType resource. AccountSid *string `json:"account_sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The string that you assigned to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"friendly_name,omitempty"` // A list of the URLs of related resources. Links *map[string]interface{} `json:"links,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The unique string that we created to identify the FieldType resource. Sid *string `json:"sid,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address 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](https://www.twilio.com/docs/iam/api/account) that created the FieldValue resource. AccountSid *string `json:"account_sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 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](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 SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The unique string that we created to identify the FieldValue resource. Sid *string `json:"sid,omitempty"` // The Field Value data. Value *string `json:"value,omitempty"` // The absolute URL of the FieldValue resource. Url *string `json:"url,omitempty"` // The word for which the field value is a synonym of. SynonymOf *string `json:"synonym_of,omitempty"` }
AutopilotV1FieldValue struct for AutopilotV1FieldValue
type AutopilotV1ModelBuild ¶ added in v0.14.0
type AutopilotV1ModelBuild struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ModelBuild resource. AccountSid *string `json:"account_sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The unique string that we created to identify the ModelBuild resource. Sid *string `json:"sid,omitempty"` Status *string `json:"status,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. UniqueName *string `json:"unique_name,omitempty"` // The absolute URL of the ModelBuild resource. Url *string `json:"url,omitempty"` // The time in seconds it took to build the model. BuildDuration *int `json:"build_duration,omitempty"` // If the `status` for the model build is `failed`, this value is a code to more information about the failure. This value will be null for all other statuses. See [error code dictionary](https://www.twilio.com/docs/api/errors) for a description of the error. ErrorCode *int `json:"error_code,omitempty"` }
AutopilotV1ModelBuild struct for AutopilotV1ModelBuild
type AutopilotV1Query ¶ added in v0.14.0
type AutopilotV1Query struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Query resource. AccountSid *string `json:"account_sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The natural language analysis results that include the [Task](https://www.twilio.com/docs/autopilot/api/task) recognized and a list of identified [Fields](https://www.twilio.com/docs/autopilot/api/task-field). Results *interface{} `json:"results,omitempty"` // 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. For example: `en-US`. 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 SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query. SampleSid *string `json:"sample_sid,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The unique string that we created to identify the Query resource. Sid *string `json:"sid,omitempty"` // The status of the Query. Can be: `pending-review`, `reviewed`, or `discarded` Status *string `json:"status,omitempty"` // The absolute URL of the Query resource. Url *string `json:"url,omitempty"` // The communication channel from where the end-user input came. SourceChannel *string `json:"source_channel,omitempty"` // The SID of the [Dialogue](https://www.twilio.com/docs/autopilot/api/dialogue). DialogueSid *string `json:"dialogue_sid,omitempty"` }
AutopilotV1Query struct for AutopilotV1Query
type AutopilotV1RestoreAssistant ¶
type AutopilotV1RestoreAssistant struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Assistant resource. AccountSid *string `json:"account_sid,omitempty"` // The unique string that we created to identify the Assistant resource. Sid *string `json:"sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. UniqueName *string `json:"unique_name,omitempty"` // The string that you assigned to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"friendly_name,omitempty"` // Whether model needs to be rebuilt. NeedsModelBuild *bool `json:"needs_model_build,omitempty"` // Reserved. LatestModelBuildSid *string `json:"latest_model_build_sid,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:"log_queries,omitempty"` // A string describing the state of the assistant. DevelopmentStage *string `json:"development_stage,omitempty"` // Reserved. CallbackUrl *string `json:"callback_url,omitempty"` // Reserved. CallbackEvents *string `json:"callback_events,omitempty"` }
AutopilotV1RestoreAssistant struct for AutopilotV1RestoreAssistant
type AutopilotV1Sample ¶ added in v0.14.0
type AutopilotV1Sample struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Sample resource. AccountSid *string `json:"account_sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the resource. TaskSid *string `json:"task_sid,omitempty"` // 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 SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The unique string that we created to identify the Sample resource. Sid *string `json:"sid,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:"tagged_text,omitempty"` // The absolute URL of the Sample resource. Url *string `json:"url,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:"source_channel,omitempty"` }
AutopilotV1Sample struct for AutopilotV1Sample
type AutopilotV1StyleSheet ¶ added in v0.14.0
type AutopilotV1StyleSheet struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the StyleSheet resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The absolute URL of the StyleSheet resource. Url *string `json:"url,omitempty"` // The JSON string that describes the style sheet object. Data *interface{} `json:"data,omitempty"` }
AutopilotV1StyleSheet struct for AutopilotV1StyleSheet
type AutopilotV1Task ¶ added in v0.14.0
type AutopilotV1Task struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Task resource. AccountSid *string `json:"account_sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The string that you assigned to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"friendly_name,omitempty"` // A list of the URLs of related resources. Links *map[string]interface{} `json:"links,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The unique string that we created to identify the Task resource. Sid *string `json:"sid,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. UniqueName *string `json:"unique_name,omitempty"` // The URL from which the Assistant can fetch actions. ActionsUrl *string `json:"actions_url,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](https://www.twilio.com/docs/iam/api/account) that created the TaskActions resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the resource. TaskSid *string `json:"task_sid,omitempty"` // The absolute URL of the TaskActions resource. Url *string `json:"url,omitempty"` // The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. Data *interface{} `json:"data,omitempty"` }
AutopilotV1TaskActions struct for AutopilotV1TaskActions
type AutopilotV1TaskStatistics ¶ added in v0.14.0
type AutopilotV1TaskStatistics struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskStatistics resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the statistics were collected. TaskSid *string `json:"task_sid,omitempty"` // The total number of [Samples](https://www.twilio.com/docs/autopilot/api/task-sample) associated with the Task. SamplesCount *int `json:"samples_count,omitempty"` // The total number of [Fields](https://www.twilio.com/docs/autopilot/api/task-field) associated with the Task. FieldsCount *int `json:"fields_count,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 absolute URL of the Webhook resource. Url *string `json:"url,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Webhook resource. AccountSid *string `json:"account_sid,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource. AssistantSid *string `json:"assistant_sid,omitempty"` // The unique string that we created to identify the Webhook resource. Sid *string `json:"sid,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. UniqueName *string `json:"unique_name,omitempty"` // The list of space-separated events that this Webhook is subscribed to. Events *string `json:"events,omitempty"` // The URL associated with this Webhook. WebhookUrl *string `json:"webhook_url,omitempty"` // The method used when calling the webhook's URL. WebhookMethod *string `json:"webhook_method,omitempty"` }
AutopilotV1Webhook struct for AutopilotV1Webhook
type CreateAssistantParams ¶
type CreateAssistantParams 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"` // 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"` // 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"` // Reserved. CallbackUrl *string `json:"CallbackUrl,omitempty"` // Reserved. CallbackEvents *string `json:"CallbackEvents,omitempty"` // The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) StyleSheet *interface{} `json:"StyleSheet,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 *interface{} `json:"Defaults,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 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 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 { // 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"` // 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"` }
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 Field Value data. Value *string `json:"Value,omitempty"` // The string value that indicates which word the field value is a synonym of. SynonymOf *string `json:"SynonymOf,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 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"` // 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"` }
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 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"` // 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"` }
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 { // 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"` // 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"` // 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 *interface{} `json:"Actions,omitempty"` // The URL from which the Assistant can fetch actions. ActionsUrl *string `json:"ActionsUrl,omitempty"` }
Optional parameters for the method 'CreateTask'
func (*CreateTaskParams) SetActions ¶
func (params *CreateTaskParams) SetActions(Actions 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 { // 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 list of space-separated events that this Webhook will subscribe to. Events *string `json:"Events,omitempty"` // The URL associated with this Webhook. WebhookUrl *string `json:"WebhookUrl,omitempty"` // The method to be used when calling the webhook's URL. WebhookMethod *string `json:"WebhookMethod,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"` 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"` Key string `json:"key,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 { ModelBuilds []AutopilotV1ModelBuild `json:"model_builds,omitempty"` Meta ListAssistantResponseMeta `json:"meta,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 { Queries []AutopilotV1Query `json:"queries,omitempty"` Meta ListAssistantResponseMeta `json:"meta,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 { Samples []AutopilotV1Sample `json:"samples,omitempty"` Meta ListAssistantResponseMeta `json:"meta,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 { Tasks []AutopilotV1Task `json:"tasks,omitempty"` Meta ListAssistantResponseMeta `json:"meta,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 { Webhooks []AutopilotV1Webhook `json:"webhooks,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListWebhookResponse struct for ListWebhookResponse
type UpdateAssistantParams ¶
type UpdateAssistantParams 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"` // 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"` // 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"` // Reserved. CallbackUrl *string `json:"CallbackUrl,omitempty"` // Reserved. CallbackEvents *string `json:"CallbackEvents,omitempty"` // The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) StyleSheet *interface{} `json:"StyleSheet,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 *interface{} `json:"Defaults,omitempty"` // A string describing the state of the assistant. DevelopmentStage *string `json:"DevelopmentStage,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 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 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 *interface{} `json:"Defaults,omitempty"`
}
Optional parameters for the method 'UpdateDefaults'
func (*UpdateDefaultsParams) SetDefaults ¶
func (params *UpdateDefaultsParams) SetDefaults(Defaults 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 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"` // 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"` }
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 *interface{} `json:"StyleSheet,omitempty"`
}
Optional parameters for the method 'UpdateStyleSheet'
func (*UpdateStyleSheetParams) SetStyleSheet ¶
func (params *UpdateStyleSheetParams) SetStyleSheet(StyleSheet 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 *interface{} `json:"Actions,omitempty"`
}
Optional parameters for the method 'UpdateTaskActions'
func (*UpdateTaskActionsParams) SetActions ¶
func (params *UpdateTaskActionsParams) SetActions(Actions interface{}) *UpdateTaskActionsParams
type UpdateTaskParams ¶
type UpdateTaskParams 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. 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"` // 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 *interface{} `json:"Actions,omitempty"` // The URL from which the Assistant can fetch actions. ActionsUrl *string `json:"ActionsUrl,omitempty"` }
Optional parameters for the method 'UpdateTask'
func (*UpdateTaskParams) SetActions ¶
func (params *UpdateTaskParams) SetActions(Actions 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 { // 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 list of space-separated events that this Webhook will subscribe to. Events *string `json:"Events,omitempty"` // The URL associated with this Webhook. WebhookUrl *string `json:"WebhookUrl,omitempty"` // The method to be used when calling the webhook's URL. WebhookMethod *string `json:"WebhookMethod,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
Source Files ¶
- api_service.go
- assistants.go
- assistants_defaults.go
- assistants_dialogues.go
- assistants_field_types.go
- assistants_field_types_field_values.go
- assistants_model_builds.go
- assistants_queries.go
- assistants_restore.go
- assistants_style_sheet.go
- assistants_tasks.go
- assistants_tasks_actions.go
- assistants_tasks_fields.go
- assistants_tasks_samples.go
- assistants_tasks_statistics.go
- assistants_webhooks.go
- model_autopilot_v1_assistant.go
- model_autopilot_v1_defaults.go
- model_autopilot_v1_dialogue.go
- model_autopilot_v1_field.go
- model_autopilot_v1_field_type.go
- model_autopilot_v1_field_value.go
- model_autopilot_v1_model_build.go
- model_autopilot_v1_query.go
- model_autopilot_v1_restore_assistant.go
- model_autopilot_v1_sample.go
- model_autopilot_v1_style_sheet.go
- model_autopilot_v1_task.go
- model_autopilot_v1_task_actions.go
- model_autopilot_v1_task_statistics.go
- model_autopilot_v1_webhook.go
- model_list_assistant_response.go
- model_list_assistant_response_meta.go
- model_list_field_response.go
- model_list_field_type_response.go
- model_list_field_value_response.go
- model_list_model_build_response.go
- model_list_query_response.go
- model_list_sample_response.go
- model_list_task_response.go
- model_list_webhook_response.go