Documentation
¶
Index ¶
- type AutopilotV1Assistant
- type AutopilotV1AssistantDefaults
- type AutopilotV1AssistantDialogue
- type AutopilotV1AssistantFieldType
- type AutopilotV1AssistantFieldTypeFieldValue
- type AutopilotV1AssistantModelBuild
- type AutopilotV1AssistantQuery
- type AutopilotV1AssistantStyleSheet
- type AutopilotV1AssistantTask
- type AutopilotV1AssistantTaskField
- type AutopilotV1AssistantTaskSample
- type AutopilotV1AssistantTaskTaskActions
- type AutopilotV1AssistantTaskTaskStatistics
- type AutopilotV1AssistantWebhook
- type AutopilotV1RestoreAssistant
- type CreateAssistantParams
- func (params *CreateAssistantParams) SetCallbackEvents(CallbackEvents string) *CreateAssistantParams
- func (params *CreateAssistantParams) SetCallbackUrl(CallbackUrl string) *CreateAssistantParams
- func (params *CreateAssistantParams) SetDefaults(Defaults map[string]interface{}) *CreateAssistantParams
- func (params *CreateAssistantParams) SetFriendlyName(FriendlyName string) *CreateAssistantParams
- func (params *CreateAssistantParams) SetLogQueries(LogQueries bool) *CreateAssistantParams
- func (params *CreateAssistantParams) SetStyleSheet(StyleSheet map[string]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 map[string]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 DefaultApiService
- func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*AutopilotV1Assistant, error)
- func (c *DefaultApiService) CreateField(AssistantSid string, TaskSid string, params *CreateFieldParams) (*AutopilotV1AssistantTaskField, error)
- func (c *DefaultApiService) CreateFieldType(AssistantSid string, params *CreateFieldTypeParams) (*AutopilotV1AssistantFieldType, error)
- func (c *DefaultApiService) CreateFieldValue(AssistantSid string, FieldTypeSid string, params *CreateFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValue, error)
- func (c *DefaultApiService) CreateModelBuild(AssistantSid string, params *CreateModelBuildParams) (*AutopilotV1AssistantModelBuild, error)
- func (c *DefaultApiService) CreateQuery(AssistantSid string, params *CreateQueryParams) (*AutopilotV1AssistantQuery, error)
- func (c *DefaultApiService) CreateSample(AssistantSid string, TaskSid string, params *CreateSampleParams) (*AutopilotV1AssistantTaskSample, error)
- func (c *DefaultApiService) CreateTask(AssistantSid string, params *CreateTaskParams) (*AutopilotV1AssistantTask, error)
- func (c *DefaultApiService) CreateWebhook(AssistantSid string, params *CreateWebhookParams) (*AutopilotV1AssistantWebhook, error)
- func (c *DefaultApiService) DeleteAssistant(Sid string) error
- func (c *DefaultApiService) DeleteField(AssistantSid string, TaskSid string, Sid string) error
- func (c *DefaultApiService) DeleteFieldType(AssistantSid string, Sid string) error
- func (c *DefaultApiService) DeleteFieldValue(AssistantSid string, FieldTypeSid string, Sid string) error
- func (c *DefaultApiService) DeleteModelBuild(AssistantSid string, Sid string) error
- func (c *DefaultApiService) DeleteQuery(AssistantSid string, Sid string) error
- func (c *DefaultApiService) DeleteSample(AssistantSid string, TaskSid string, Sid string) error
- func (c *DefaultApiService) DeleteTask(AssistantSid string, Sid string) error
- func (c *DefaultApiService) DeleteWebhook(AssistantSid string, Sid string) error
- func (c *DefaultApiService) FetchAssistant(Sid string) (*AutopilotV1Assistant, error)
- func (c *DefaultApiService) FetchDefaults(AssistantSid string) (*AutopilotV1AssistantDefaults, error)
- func (c *DefaultApiService) FetchDialogue(AssistantSid string, Sid string) (*AutopilotV1AssistantDialogue, error)
- func (c *DefaultApiService) FetchField(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1AssistantTaskField, error)
- func (c *DefaultApiService) FetchFieldType(AssistantSid string, Sid string) (*AutopilotV1AssistantFieldType, error)
- func (c *DefaultApiService) FetchFieldValue(AssistantSid string, FieldTypeSid string, Sid string) (*AutopilotV1AssistantFieldTypeFieldValue, error)
- func (c *DefaultApiService) FetchModelBuild(AssistantSid string, Sid string) (*AutopilotV1AssistantModelBuild, error)
- func (c *DefaultApiService) FetchQuery(AssistantSid string, Sid string) (*AutopilotV1AssistantQuery, error)
- func (c *DefaultApiService) FetchSample(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1AssistantTaskSample, error)
- func (c *DefaultApiService) FetchStyleSheet(AssistantSid string) (*AutopilotV1AssistantStyleSheet, error)
- func (c *DefaultApiService) FetchTask(AssistantSid string, Sid string) (*AutopilotV1AssistantTask, error)
- func (c *DefaultApiService) FetchTaskActions(AssistantSid string, TaskSid string) (*AutopilotV1AssistantTaskTaskActions, error)
- func (c *DefaultApiService) FetchTaskStatistics(AssistantSid string, TaskSid string) (*AutopilotV1AssistantTaskTaskStatistics, error)
- func (c *DefaultApiService) FetchWebhook(AssistantSid string, Sid string) (*AutopilotV1AssistantWebhook, error)
- func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*ListAssistantResponse, error)
- func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) (*ListFieldResponse, error)
- func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) (*ListFieldTypeResponse, error)
- func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (*ListFieldValueResponse, error)
- func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) (*ListModelBuildResponse, error)
- func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryParams) (*ListQueryResponse, error)
- func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) (*ListSampleResponse, error)
- func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams) (*ListTaskResponse, error)
- func (c *DefaultApiService) ListWebhook(AssistantSid string, params *ListWebhookParams) (*ListWebhookResponse, error)
- func (c *DefaultApiService) UpdateAssistant(Sid string, params *UpdateAssistantParams) (*AutopilotV1Assistant, error)
- func (c *DefaultApiService) UpdateDefaults(AssistantSid string, params *UpdateDefaultsParams) (*AutopilotV1AssistantDefaults, error)
- func (c *DefaultApiService) UpdateFieldType(AssistantSid string, Sid string, params *UpdateFieldTypeParams) (*AutopilotV1AssistantFieldType, error)
- func (c *DefaultApiService) UpdateModelBuild(AssistantSid string, Sid string, params *UpdateModelBuildParams) (*AutopilotV1AssistantModelBuild, error)
- func (c *DefaultApiService) UpdateQuery(AssistantSid string, Sid string, params *UpdateQueryParams) (*AutopilotV1AssistantQuery, error)
- func (c *DefaultApiService) UpdateRestoreAssistant(params *UpdateRestoreAssistantParams) (*AutopilotV1RestoreAssistant, error)
- func (c *DefaultApiService) UpdateSample(AssistantSid string, TaskSid string, Sid string, params *UpdateSampleParams) (*AutopilotV1AssistantTaskSample, error)
- func (c *DefaultApiService) UpdateStyleSheet(AssistantSid string, params *UpdateStyleSheetParams) (*AutopilotV1AssistantStyleSheet, error)
- func (c *DefaultApiService) UpdateTask(AssistantSid string, Sid string, params *UpdateTaskParams) (*AutopilotV1AssistantTask, error)
- func (c *DefaultApiService) UpdateTaskActions(AssistantSid string, TaskSid string, params *UpdateTaskActionsParams) (*AutopilotV1AssistantTaskTaskActions, error)
- func (c *DefaultApiService) UpdateWebhook(AssistantSid string, Sid string, params *UpdateWebhookParams) (*AutopilotV1AssistantWebhook, error)
- 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) SetModelBuild(ModelBuild string) *ListQueryParams
- func (params *ListQueryParams) SetPageSize(PageSize int32) *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 map[string]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 map[string]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 map[string]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 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 AutopilotV1AssistantDefaults ¶
type AutopilotV1AssistantDefaults 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"` }
AutopilotV1AssistantDefaults struct for AutopilotV1AssistantDefaults
type AutopilotV1AssistantDialogue ¶
type AutopilotV1AssistantDialogue 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"` }
AutopilotV1AssistantDialogue struct for AutopilotV1AssistantDialogue
type AutopilotV1AssistantFieldType ¶
type AutopilotV1AssistantFieldType 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"` }
AutopilotV1AssistantFieldType struct for AutopilotV1AssistantFieldType
type AutopilotV1AssistantFieldTypeFieldValue ¶
type AutopilotV1AssistantFieldTypeFieldValue 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"` }
AutopilotV1AssistantFieldTypeFieldValue struct for AutopilotV1AssistantFieldTypeFieldValue
type AutopilotV1AssistantModelBuild ¶
type AutopilotV1AssistantModelBuild 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 *int32 `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 *int32 `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"` }
AutopilotV1AssistantModelBuild struct for AutopilotV1AssistantModelBuild
type AutopilotV1AssistantQuery ¶
type AutopilotV1AssistantQuery 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"` }
AutopilotV1AssistantQuery struct for AutopilotV1AssistantQuery
type AutopilotV1AssistantStyleSheet ¶
type AutopilotV1AssistantStyleSheet 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"` }
AutopilotV1AssistantStyleSheet struct for AutopilotV1AssistantStyleSheet
type AutopilotV1AssistantTask ¶
type AutopilotV1AssistantTask 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"` }
AutopilotV1AssistantTask struct for AutopilotV1AssistantTask
type AutopilotV1AssistantTaskField ¶
type AutopilotV1AssistantTaskField 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"` }
AutopilotV1AssistantTaskField struct for AutopilotV1AssistantTaskField
type AutopilotV1AssistantTaskSample ¶
type AutopilotV1AssistantTaskSample 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"` }
AutopilotV1AssistantTaskSample struct for AutopilotV1AssistantTaskSample
type AutopilotV1AssistantTaskTaskActions ¶
type AutopilotV1AssistantTaskTaskActions 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"` }
AutopilotV1AssistantTaskTaskActions struct for AutopilotV1AssistantTaskTaskActions
type AutopilotV1AssistantTaskTaskStatistics ¶
type AutopilotV1AssistantTaskTaskStatistics 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 *int32 `json:"fields_count,omitempty"` // The total number of Samples associated with the Task SamplesCount *int32 `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"` }
AutopilotV1AssistantTaskTaskStatistics struct for AutopilotV1AssistantTaskTaskStatistics
type AutopilotV1AssistantWebhook ¶
type AutopilotV1AssistantWebhook 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"` }
AutopilotV1AssistantWebhook struct for AutopilotV1AssistantWebhook
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 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 DefaultApiService ¶
type DefaultApiService struct {
// contains filtered or unexported fields
}
func NewDefaultApiService ¶
func NewDefaultApiService(client twilio.BaseClient) *DefaultApiService
func (*DefaultApiService) CreateAssistant ¶
func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*AutopilotV1Assistant, error)
func (*DefaultApiService) CreateField ¶
func (c *DefaultApiService) CreateField(AssistantSid string, TaskSid string, params *CreateFieldParams) (*AutopilotV1AssistantTaskField, error)
func (*DefaultApiService) CreateFieldType ¶
func (c *DefaultApiService) CreateFieldType(AssistantSid string, params *CreateFieldTypeParams) (*AutopilotV1AssistantFieldType, error)
func (*DefaultApiService) CreateFieldValue ¶
func (c *DefaultApiService) CreateFieldValue(AssistantSid string, FieldTypeSid string, params *CreateFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValue, error)
func (*DefaultApiService) CreateModelBuild ¶
func (c *DefaultApiService) CreateModelBuild(AssistantSid string, params *CreateModelBuildParams) (*AutopilotV1AssistantModelBuild, error)
func (*DefaultApiService) CreateQuery ¶
func (c *DefaultApiService) CreateQuery(AssistantSid string, params *CreateQueryParams) (*AutopilotV1AssistantQuery, error)
func (*DefaultApiService) CreateSample ¶
func (c *DefaultApiService) CreateSample(AssistantSid string, TaskSid string, params *CreateSampleParams) (*AutopilotV1AssistantTaskSample, error)
func (*DefaultApiService) CreateTask ¶
func (c *DefaultApiService) CreateTask(AssistantSid string, params *CreateTaskParams) (*AutopilotV1AssistantTask, error)
func (*DefaultApiService) CreateWebhook ¶
func (c *DefaultApiService) CreateWebhook(AssistantSid string, params *CreateWebhookParams) (*AutopilotV1AssistantWebhook, error)
func (*DefaultApiService) DeleteAssistant ¶
func (c *DefaultApiService) DeleteAssistant(Sid string) error
func (*DefaultApiService) DeleteField ¶
func (c *DefaultApiService) DeleteField(AssistantSid string, TaskSid string, Sid string) error
func (*DefaultApiService) DeleteFieldType ¶
func (c *DefaultApiService) DeleteFieldType(AssistantSid string, Sid string) error
func (*DefaultApiService) DeleteFieldValue ¶
func (c *DefaultApiService) DeleteFieldValue(AssistantSid string, FieldTypeSid string, Sid string) error
func (*DefaultApiService) DeleteModelBuild ¶
func (c *DefaultApiService) DeleteModelBuild(AssistantSid string, Sid string) error
func (*DefaultApiService) DeleteQuery ¶
func (c *DefaultApiService) DeleteQuery(AssistantSid string, Sid string) error
func (*DefaultApiService) DeleteSample ¶
func (c *DefaultApiService) DeleteSample(AssistantSid string, TaskSid string, Sid string) error
func (*DefaultApiService) DeleteTask ¶
func (c *DefaultApiService) DeleteTask(AssistantSid string, Sid string) error
func (*DefaultApiService) DeleteWebhook ¶
func (c *DefaultApiService) DeleteWebhook(AssistantSid string, Sid string) error
func (*DefaultApiService) FetchAssistant ¶
func (c *DefaultApiService) FetchAssistant(Sid string) (*AutopilotV1Assistant, error)
func (*DefaultApiService) FetchDefaults ¶
func (c *DefaultApiService) FetchDefaults(AssistantSid string) (*AutopilotV1AssistantDefaults, error)
func (*DefaultApiService) FetchDialogue ¶
func (c *DefaultApiService) FetchDialogue(AssistantSid string, Sid string) (*AutopilotV1AssistantDialogue, error)
func (*DefaultApiService) FetchField ¶
func (c *DefaultApiService) FetchField(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1AssistantTaskField, error)
func (*DefaultApiService) FetchFieldType ¶
func (c *DefaultApiService) FetchFieldType(AssistantSid string, Sid string) (*AutopilotV1AssistantFieldType, error)
func (*DefaultApiService) FetchFieldValue ¶
func (c *DefaultApiService) FetchFieldValue(AssistantSid string, FieldTypeSid string, Sid string) (*AutopilotV1AssistantFieldTypeFieldValue, error)
func (*DefaultApiService) FetchModelBuild ¶
func (c *DefaultApiService) FetchModelBuild(AssistantSid string, Sid string) (*AutopilotV1AssistantModelBuild, error)
func (*DefaultApiService) FetchQuery ¶
func (c *DefaultApiService) FetchQuery(AssistantSid string, Sid string) (*AutopilotV1AssistantQuery, error)
func (*DefaultApiService) FetchSample ¶
func (c *DefaultApiService) FetchSample(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1AssistantTaskSample, error)
func (*DefaultApiService) FetchStyleSheet ¶
func (c *DefaultApiService) FetchStyleSheet(AssistantSid string) (*AutopilotV1AssistantStyleSheet, error)
Returns Style sheet JSON object for the Assistant
func (*DefaultApiService) FetchTask ¶
func (c *DefaultApiService) FetchTask(AssistantSid string, Sid string) (*AutopilotV1AssistantTask, error)
func (*DefaultApiService) FetchTaskActions ¶
func (c *DefaultApiService) FetchTaskActions(AssistantSid string, TaskSid string) (*AutopilotV1AssistantTaskTaskActions, error)
Returns JSON actions for the Task.
func (*DefaultApiService) FetchTaskStatistics ¶
func (c *DefaultApiService) FetchTaskStatistics(AssistantSid string, TaskSid string) (*AutopilotV1AssistantTaskTaskStatistics, error)
func (*DefaultApiService) FetchWebhook ¶
func (c *DefaultApiService) FetchWebhook(AssistantSid string, Sid string) (*AutopilotV1AssistantWebhook, error)
func (*DefaultApiService) ListAssistant ¶
func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*ListAssistantResponse, error)
func (*DefaultApiService) ListField ¶
func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) (*ListFieldResponse, error)
func (*DefaultApiService) ListFieldType ¶
func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) (*ListFieldTypeResponse, error)
func (*DefaultApiService) ListFieldValue ¶
func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (*ListFieldValueResponse, error)
func (*DefaultApiService) ListModelBuild ¶
func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) (*ListModelBuildResponse, error)
func (*DefaultApiService) ListQuery ¶
func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryParams) (*ListQueryResponse, error)
func (*DefaultApiService) ListSample ¶
func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) (*ListSampleResponse, error)
func (*DefaultApiService) ListTask ¶
func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams) (*ListTaskResponse, error)
func (*DefaultApiService) ListWebhook ¶
func (c *DefaultApiService) ListWebhook(AssistantSid string, params *ListWebhookParams) (*ListWebhookResponse, error)
func (*DefaultApiService) UpdateAssistant ¶
func (c *DefaultApiService) UpdateAssistant(Sid string, params *UpdateAssistantParams) (*AutopilotV1Assistant, error)
func (*DefaultApiService) UpdateDefaults ¶
func (c *DefaultApiService) UpdateDefaults(AssistantSid string, params *UpdateDefaultsParams) (*AutopilotV1AssistantDefaults, error)
func (*DefaultApiService) UpdateFieldType ¶
func (c *DefaultApiService) UpdateFieldType(AssistantSid string, Sid string, params *UpdateFieldTypeParams) (*AutopilotV1AssistantFieldType, error)
func (*DefaultApiService) UpdateModelBuild ¶
func (c *DefaultApiService) UpdateModelBuild(AssistantSid string, Sid string, params *UpdateModelBuildParams) (*AutopilotV1AssistantModelBuild, error)
func (*DefaultApiService) UpdateQuery ¶
func (c *DefaultApiService) UpdateQuery(AssistantSid string, Sid string, params *UpdateQueryParams) (*AutopilotV1AssistantQuery, error)
func (*DefaultApiService) UpdateRestoreAssistant ¶
func (c *DefaultApiService) UpdateRestoreAssistant(params *UpdateRestoreAssistantParams) (*AutopilotV1RestoreAssistant, error)
func (*DefaultApiService) UpdateSample ¶
func (c *DefaultApiService) UpdateSample(AssistantSid string, TaskSid string, Sid string, params *UpdateSampleParams) (*AutopilotV1AssistantTaskSample, error)
func (*DefaultApiService) UpdateStyleSheet ¶
func (c *DefaultApiService) UpdateStyleSheet(AssistantSid string, params *UpdateStyleSheetParams) (*AutopilotV1AssistantStyleSheet, error)
Updates the style sheet for an Assistant identified by `assistant_sid`.
func (*DefaultApiService) UpdateTask ¶
func (c *DefaultApiService) UpdateTask(AssistantSid string, Sid string, params *UpdateTaskParams) (*AutopilotV1AssistantTask, error)
func (*DefaultApiService) UpdateTaskActions ¶
func (c *DefaultApiService) UpdateTaskActions(AssistantSid string, TaskSid string, params *UpdateTaskActionsParams) (*AutopilotV1AssistantTaskTaskActions, error)
Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}.
func (*DefaultApiService) UpdateWebhook ¶
func (c *DefaultApiService) UpdateWebhook(AssistantSid string, Sid string, params *UpdateWebhookParams) (*AutopilotV1AssistantWebhook, error)
type ListAssistantParams ¶
type ListAssistantParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListAssistant'
func (*ListAssistantParams) SetPageSize ¶
func (params *ListAssistantParams) SetPageSize(PageSize int32) *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 int32 `json:"page,omitempty"` PageSize int32 `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 *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListField'
func (*ListFieldParams) SetPageSize ¶
func (params *ListFieldParams) SetPageSize(PageSize int32) *ListFieldParams
type ListFieldResponse ¶
type ListFieldResponse struct { Fields []AutopilotV1AssistantTaskField `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 *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListFieldType'
func (*ListFieldTypeParams) SetPageSize ¶
func (params *ListFieldTypeParams) SetPageSize(PageSize int32) *ListFieldTypeParams
type ListFieldTypeResponse ¶
type ListFieldTypeResponse struct { FieldTypes []AutopilotV1AssistantFieldType `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 *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListFieldValue'
func (*ListFieldValueParams) SetLanguage ¶
func (params *ListFieldValueParams) SetLanguage(Language string) *ListFieldValueParams
func (*ListFieldValueParams) SetPageSize ¶
func (params *ListFieldValueParams) SetPageSize(PageSize int32) *ListFieldValueParams
type ListFieldValueResponse ¶
type ListFieldValueResponse struct { FieldValues []AutopilotV1AssistantFieldTypeFieldValue `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 *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListModelBuild'
func (*ListModelBuildParams) SetPageSize ¶
func (params *ListModelBuildParams) SetPageSize(PageSize int32) *ListModelBuildParams
type ListModelBuildResponse ¶
type ListModelBuildResponse struct { Meta ListAssistantResponseMeta `json:"meta,omitempty"` ModelBuilds []AutopilotV1AssistantModelBuild `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 *int32 `json:"PageSize,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) SetModelBuild ¶
func (params *ListQueryParams) SetModelBuild(ModelBuild string) *ListQueryParams
func (*ListQueryParams) SetPageSize ¶
func (params *ListQueryParams) SetPageSize(PageSize int32) *ListQueryParams
func (*ListQueryParams) SetStatus ¶
func (params *ListQueryParams) SetStatus(Status string) *ListQueryParams
type ListQueryResponse ¶
type ListQueryResponse struct { Meta ListAssistantResponseMeta `json:"meta,omitempty"` Queries []AutopilotV1AssistantQuery `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 *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListSample'
func (*ListSampleParams) SetLanguage ¶
func (params *ListSampleParams) SetLanguage(Language string) *ListSampleParams
func (*ListSampleParams) SetPageSize ¶
func (params *ListSampleParams) SetPageSize(PageSize int32) *ListSampleParams
type ListSampleResponse ¶
type ListSampleResponse struct { Meta ListAssistantResponseMeta `json:"meta,omitempty"` Samples []AutopilotV1AssistantTaskSample `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 *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListTask'
func (*ListTaskParams) SetPageSize ¶
func (params *ListTaskParams) SetPageSize(PageSize int32) *ListTaskParams
type ListTaskResponse ¶
type ListTaskResponse struct { Meta ListAssistantResponseMeta `json:"meta,omitempty"` Tasks []AutopilotV1AssistantTask `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 *int32 `json:"PageSize,omitempty"` }
Optional parameters for the method 'ListWebhook'
func (*ListWebhookParams) SetPageSize ¶
func (params *ListWebhookParams) SetPageSize(PageSize int32) *ListWebhookParams
type ListWebhookResponse ¶
type ListWebhookResponse struct { Meta ListAssistantResponseMeta `json:"meta,omitempty"` Webhooks []AutopilotV1AssistantWebhook `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
Source Files
¶
- api_default.go
- model_autopilot_v1_assistant.go
- model_autopilot_v1_assistant_defaults.go
- model_autopilot_v1_assistant_dialogue.go
- model_autopilot_v1_assistant_field_type.go
- model_autopilot_v1_assistant_field_type_field_value.go
- model_autopilot_v1_assistant_model_build.go
- model_autopilot_v1_assistant_query.go
- model_autopilot_v1_assistant_style_sheet.go
- model_autopilot_v1_assistant_task.go
- model_autopilot_v1_assistant_task_field.go
- model_autopilot_v1_assistant_task_sample.go
- model_autopilot_v1_assistant_task_task_actions.go
- model_autopilot_v1_assistant_task_task_statistics.go
- model_autopilot_v1_assistant_webhook.go
- model_autopilot_v1_restore_assistant.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