openapi

package
v1.23.11 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 6 Imported by: 1

README

Go API client for openapi

This is the public Twilio REST API.

Overview

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

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

Installation

Install the following dependencies:

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

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

import "./openapi"

Documentation for API Endpoints

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

Class Method HTTP request Description
OperatorTypesApi FetchOperatorType Get /v2/OperatorTypes/{Sid}
OperatorTypesApi ListOperatorType Get /v2/OperatorTypes
OperatorsApi FetchOperator Get /v2/Operators/{Sid}
OperatorsApi ListOperator Get /v2/Operators
OperatorsCustomApi CreateCustomOperator Post /v2/Operators/Custom
OperatorsCustomApi DeleteCustomOperator Delete /v2/Operators/Custom/{Sid}
OperatorsCustomApi FetchCustomOperator Get /v2/Operators/Custom/{Sid}
OperatorsCustomApi ListCustomOperator Get /v2/Operators/Custom
OperatorsCustomApi UpdateCustomOperator Post /v2/Operators/Custom/{Sid}
OperatorsPreBuiltApi FetchPrebuiltOperator Get /v2/Operators/PreBuilt/{Sid}
OperatorsPreBuiltApi ListPrebuiltOperator Get /v2/Operators/PreBuilt
ServicesApi CreateService Post /v2/Services
ServicesApi DeleteService Delete /v2/Services/{Sid}
ServicesApi FetchService Get /v2/Services/{Sid}
ServicesApi ListService Get /v2/Services
ServicesApi UpdateService Post /v2/Services/{Sid}
ServicesOperatorsApi CreateOperatorAttachment Post /v2/Services/{ServiceSid}/Operators/{OperatorSid}
ServicesOperatorsApi DeleteOperatorAttachment Delete /v2/Services/{ServiceSid}/Operators/{OperatorSid}
ServicesOperatorsApi FetchOperatorAttachments Get /v2/Services/{ServiceSid}/Operators
TranscriptsApi CreateTranscript Post /v2/Transcripts
TranscriptsApi DeleteTranscript Delete /v2/Transcripts/{Sid}
TranscriptsApi FetchTranscript Get /v2/Transcripts/{Sid}
TranscriptsApi ListTranscript Get /v2/Transcripts
TranscriptsMediaApi FetchMedia Get /v2/Transcripts/{Sid}/Media
TranscriptsOperatorResultsApi FetchOperatorResult Get /v2/Transcripts/{TranscriptSid}/OperatorResults/{OperatorSid}
TranscriptsOperatorResultsApi ListOperatorResult Get /v2/Transcripts/{TranscriptSid}/OperatorResults
TranscriptsSentencesApi ListSentence Get /v2/Transcripts/{TranscriptSid}/Sentences

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService

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

func NewApiService

func NewApiService(requestHandler *twilio.RequestHandler) *ApiService

func NewApiServiceWithClient

func NewApiServiceWithClient(client twilio.BaseClient) *ApiService

func (*ApiService) CreateCustomOperator added in v1.21.0

func (c *ApiService) CreateCustomOperator(params *CreateCustomOperatorParams) (*IntelligenceV2CustomOperator, error)

Create a new Custom Operator for the given Account

func (*ApiService) CreateOperatorAttachment added in v1.21.0

func (c *ApiService) CreateOperatorAttachment(ServiceSid string, OperatorSid string) (*IntelligenceV2OperatorAttachment, error)

Attach an Operator to a Service.

func (*ApiService) CreateService

func (c *ApiService) CreateService(params *CreateServiceParams) (*IntelligenceV2Service, error)

Create a new Service for the given Account

func (*ApiService) CreateTranscript

func (c *ApiService) CreateTranscript(params *CreateTranscriptParams) (*IntelligenceV2Transcript, error)

Create a new Transcript for the service

func (*ApiService) DeleteCustomOperator added in v1.21.0

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

Delete a specific Custom Operator.

func (*ApiService) DeleteOperatorAttachment added in v1.21.0

func (c *ApiService) DeleteOperatorAttachment(ServiceSid string, OperatorSid string) error

Detach an Operator from a Service.

func (*ApiService) DeleteService

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

Delete a specific Service.

func (*ApiService) DeleteTranscript

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

Delete a specific Transcript.

func (*ApiService) FetchCustomOperator added in v1.21.0

func (c *ApiService) FetchCustomOperator(Sid string) (*IntelligenceV2CustomOperator, error)

Fetch a specific Custom Operator.

func (*ApiService) FetchMedia

func (c *ApiService) FetchMedia(Sid string, params *FetchMediaParams) (*IntelligenceV2Media, error)

Get download URLs for media if possible

func (*ApiService) FetchOperator added in v1.21.0

func (c *ApiService) FetchOperator(Sid string) (*IntelligenceV2Operator, error)

Fetch a specific Operator. Works for both Custom and Pre-built Operators.

func (*ApiService) FetchOperatorAttachments added in v1.21.0

func (c *ApiService) FetchOperatorAttachments(ServiceSid string) (*IntelligenceV2OperatorAttachments, error)

Retrieve Operators attached to a Service.

func (*ApiService) FetchOperatorResult

func (c *ApiService) FetchOperatorResult(TranscriptSid string, OperatorSid string, params *FetchOperatorResultParams) (*IntelligenceV2OperatorResult, error)

Fetch a specific Operator Result for the given Transcript.

func (*ApiService) FetchOperatorType added in v1.21.0

func (c *ApiService) FetchOperatorType(Sid string) (*IntelligenceV2OperatorType, error)

Fetch a specific Operator Type.

func (*ApiService) FetchPrebuiltOperator added in v1.21.0

func (c *ApiService) FetchPrebuiltOperator(Sid string) (*IntelligenceV2PrebuiltOperator, error)

Fetch a specific Pre-built Operator.

func (*ApiService) FetchService

func (c *ApiService) FetchService(Sid string) (*IntelligenceV2Service, error)

Fetch a specific Service.

func (*ApiService) FetchTranscript

func (c *ApiService) FetchTranscript(Sid string) (*IntelligenceV2Transcript, error)

Fetch a specific Transcript.

func (*ApiService) ListCustomOperator added in v1.21.0

func (c *ApiService) ListCustomOperator(params *ListCustomOperatorParams) ([]IntelligenceV2CustomOperator, error)

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

func (*ApiService) ListOperator added in v1.21.0

func (c *ApiService) ListOperator(params *ListOperatorParams) ([]IntelligenceV2Operator, error)

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

func (*ApiService) ListOperatorResult

func (c *ApiService) ListOperatorResult(TranscriptSid string, params *ListOperatorResultParams) ([]IntelligenceV2OperatorResult, error)

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

func (*ApiService) ListOperatorType added in v1.21.0

func (c *ApiService) ListOperatorType(params *ListOperatorTypeParams) ([]IntelligenceV2OperatorType, error)

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

func (*ApiService) ListPrebuiltOperator added in v1.21.0

func (c *ApiService) ListPrebuiltOperator(params *ListPrebuiltOperatorParams) ([]IntelligenceV2PrebuiltOperator, error)

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

func (*ApiService) ListSentence

func (c *ApiService) ListSentence(TranscriptSid string, params *ListSentenceParams) ([]IntelligenceV2Sentence, error)

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

func (*ApiService) ListService

func (c *ApiService) ListService(params *ListServiceParams) ([]IntelligenceV2Service, error)

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

func (*ApiService) ListTranscript

func (c *ApiService) ListTranscript(params *ListTranscriptParams) ([]IntelligenceV2Transcript, error)

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

func (*ApiService) PageCustomOperator added in v1.21.0

func (c *ApiService) PageCustomOperator(params *ListCustomOperatorParams, pageToken, pageNumber string) (*ListCustomOperatorResponse, error)

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

func (*ApiService) PageOperator added in v1.21.0

func (c *ApiService) PageOperator(params *ListOperatorParams, pageToken, pageNumber string) (*ListOperatorResponse, error)

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

func (*ApiService) PageOperatorResult

func (c *ApiService) PageOperatorResult(TranscriptSid string, params *ListOperatorResultParams, pageToken, pageNumber string) (*ListOperatorResultResponse, error)

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

func (*ApiService) PageOperatorType added in v1.21.0

func (c *ApiService) PageOperatorType(params *ListOperatorTypeParams, pageToken, pageNumber string) (*ListOperatorTypeResponse, error)

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

func (*ApiService) PagePrebuiltOperator added in v1.21.0

func (c *ApiService) PagePrebuiltOperator(params *ListPrebuiltOperatorParams, pageToken, pageNumber string) (*ListPrebuiltOperatorResponse, error)

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

func (*ApiService) PageSentence

func (c *ApiService) PageSentence(TranscriptSid string, params *ListSentenceParams, pageToken, pageNumber string) (*ListSentenceResponse, error)

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

func (*ApiService) PageService

func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)

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

func (*ApiService) PageTranscript

func (c *ApiService) PageTranscript(params *ListTranscriptParams, pageToken, pageNumber string) (*ListTranscriptResponse, error)

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

func (*ApiService) StreamCustomOperator added in v1.21.0

func (c *ApiService) StreamCustomOperator(params *ListCustomOperatorParams) (chan IntelligenceV2CustomOperator, chan error)

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

func (*ApiService) StreamOperator added in v1.21.0

func (c *ApiService) StreamOperator(params *ListOperatorParams) (chan IntelligenceV2Operator, chan error)

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

func (*ApiService) StreamOperatorResult

func (c *ApiService) StreamOperatorResult(TranscriptSid string, params *ListOperatorResultParams) (chan IntelligenceV2OperatorResult, chan error)

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

func (*ApiService) StreamOperatorType added in v1.21.0

func (c *ApiService) StreamOperatorType(params *ListOperatorTypeParams) (chan IntelligenceV2OperatorType, chan error)

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

func (*ApiService) StreamPrebuiltOperator added in v1.21.0

func (c *ApiService) StreamPrebuiltOperator(params *ListPrebuiltOperatorParams) (chan IntelligenceV2PrebuiltOperator, chan error)

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

func (*ApiService) StreamSentence

func (c *ApiService) StreamSentence(TranscriptSid string, params *ListSentenceParams) (chan IntelligenceV2Sentence, chan error)

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

func (*ApiService) StreamService

func (c *ApiService) StreamService(params *ListServiceParams) (chan IntelligenceV2Service, chan error)

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

func (*ApiService) StreamTranscript

func (c *ApiService) StreamTranscript(params *ListTranscriptParams) (chan IntelligenceV2Transcript, chan error)

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

func (*ApiService) UpdateCustomOperator added in v1.21.0

func (c *ApiService) UpdateCustomOperator(Sid string, params *UpdateCustomOperatorParams) (*IntelligenceV2CustomOperator, error)

Update a specific Custom Operator.

func (*ApiService) UpdateService

func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*IntelligenceV2Service, error)

Update a specific Service.

type CreateCustomOperatorParams added in v1.21.0

type CreateCustomOperatorParams struct {
	// A human readable description of the new Operator, up to 64 characters.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// Operator Type for this Operator. References an existing Operator Type resource.
	OperatorType *string `json:"OperatorType,omitempty"`
	// Operator configuration, following the schema defined by the Operator Type.
	Config *interface{} `json:"Config,omitempty"`
}

Optional parameters for the method 'CreateCustomOperator'

func (*CreateCustomOperatorParams) SetConfig added in v1.21.0

func (params *CreateCustomOperatorParams) SetConfig(Config interface{}) *CreateCustomOperatorParams

func (*CreateCustomOperatorParams) SetFriendlyName added in v1.21.0

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

func (*CreateCustomOperatorParams) SetOperatorType added in v1.21.0

func (params *CreateCustomOperatorParams) SetOperatorType(OperatorType string) *CreateCustomOperatorParams

type CreateServiceParams

type CreateServiceParams struct {
	// Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
	UniqueName *string `json:"UniqueName,omitempty"`
	// Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
	AutoTranscribe *bool `json:"AutoTranscribe,omitempty"`
	// Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
	DataLogging *bool `json:"DataLogging,omitempty"`
	// A human readable description of this resource, up to 64 characters.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The language code set during Service creation determines the Transcription language for all call recordings processed by that Service. The default is en-US if no language code is set. A Service can only support one language code, and it cannot be updated once it's set.
	LanguageCode *string `json:"LanguageCode,omitempty"`
	// Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
	AutoRedaction *bool `json:"AutoRedaction,omitempty"`
	// Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
	MediaRedaction *bool `json:"MediaRedaction,omitempty"`
	// The URL Twilio will request when executing the Webhook.
	WebhookUrl *string `json:"WebhookUrl,omitempty"`
	//
	WebhookHttpMethod *string `json:"WebhookHttpMethod,omitempty"`
}

Optional parameters for the method 'CreateService'

func (*CreateServiceParams) SetAutoRedaction

func (params *CreateServiceParams) SetAutoRedaction(AutoRedaction bool) *CreateServiceParams

func (*CreateServiceParams) SetAutoTranscribe

func (params *CreateServiceParams) SetAutoTranscribe(AutoTranscribe bool) *CreateServiceParams

func (*CreateServiceParams) SetDataLogging

func (params *CreateServiceParams) SetDataLogging(DataLogging bool) *CreateServiceParams

func (*CreateServiceParams) SetFriendlyName

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

func (*CreateServiceParams) SetLanguageCode

func (params *CreateServiceParams) SetLanguageCode(LanguageCode string) *CreateServiceParams

func (*CreateServiceParams) SetMediaRedaction

func (params *CreateServiceParams) SetMediaRedaction(MediaRedaction bool) *CreateServiceParams

func (*CreateServiceParams) SetUniqueName

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

func (*CreateServiceParams) SetWebhookHttpMethod

func (params *CreateServiceParams) SetWebhookHttpMethod(WebhookHttpMethod string) *CreateServiceParams

func (*CreateServiceParams) SetWebhookUrl

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

type CreateTranscriptParams

type CreateTranscriptParams struct {
	// The unique SID identifier of the Service.
	ServiceSid *string `json:"ServiceSid,omitempty"`
	// JSON object describing Media Channel including Source and Participants
	Channel *interface{} `json:"Channel,omitempty"`
	// Used to store client provided metadata. Maximum of 64 double-byte UTF8 characters.
	CustomerKey *string `json:"CustomerKey,omitempty"`
	// The date that this Transcript's media was started, given in ISO 8601 format.
	MediaStartTime *time.Time `json:"MediaStartTime,omitempty"`
}

Optional parameters for the method 'CreateTranscript'

func (*CreateTranscriptParams) SetChannel

func (params *CreateTranscriptParams) SetChannel(Channel interface{}) *CreateTranscriptParams

func (*CreateTranscriptParams) SetCustomerKey

func (params *CreateTranscriptParams) SetCustomerKey(CustomerKey string) *CreateTranscriptParams

func (*CreateTranscriptParams) SetMediaStartTime

func (params *CreateTranscriptParams) SetMediaStartTime(MediaStartTime time.Time) *CreateTranscriptParams

func (*CreateTranscriptParams) SetServiceSid

func (params *CreateTranscriptParams) SetServiceSid(ServiceSid string) *CreateTranscriptParams

type FetchMediaParams

type FetchMediaParams struct {
	// Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
	Redacted *bool `json:"Redacted,omitempty"`
}

Optional parameters for the method 'FetchMedia'

func (*FetchMediaParams) SetRedacted

func (params *FetchMediaParams) SetRedacted(Redacted bool) *FetchMediaParams

type FetchOperatorResultParams

type FetchOperatorResultParams struct {
	// Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True.
	Redacted *bool `json:"Redacted,omitempty"`
}

Optional parameters for the method 'FetchOperatorResult'

func (*FetchOperatorResultParams) SetRedacted

func (params *FetchOperatorResultParams) SetRedacted(Redacted bool) *FetchOperatorResultParams

type IntelligenceV2CustomOperator added in v1.21.0

type IntelligenceV2CustomOperator struct {
	// The unique SID identifier of the Account the Custom Operator belongs to.
	AccountSid *string `json:"account_sid,omitempty"`
	// A 34 character string that uniquely identifies this Custom Operator.
	Sid *string `json:"sid,omitempty"`
	// A human-readable name of this resource, up to 64 characters.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// A human-readable description of this resource, longer than the friendly name.
	Description *string `json:"description,omitempty"`
	// The creator of the Custom Operator. Custom Operators can only be created by a Twilio Account.
	Author *string `json:"author,omitempty"`
	// Operator Type for this Operator. References an existing Operator Type resource.
	OperatorType *string `json:"operator_type,omitempty"`
	// Numeric Custom Operator version. Incremented with each update on the resource, used to ensure integrity when updating the Custom Operator.
	Version      int     `json:"version,omitempty"`
	Availability *string `json:"availability,omitempty"`
	// Operator configuration, following the schema defined by the Operator Type. Only available on Operators created by the Account.
	Config *interface{} `json:"config,omitempty"`
	// The date that this Custom Operator was created, given in ISO 8601 format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this Custom Operator was updated, given in ISO 8601 format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
}

IntelligenceV2CustomOperator struct for IntelligenceV2CustomOperator

type IntelligenceV2Media

type IntelligenceV2Media struct {
	// The unique SID identifier of the Account.
	AccountSid *string `json:"account_sid,omitempty"`
	// Downloadable URL for media, if stored in Twilio AI.
	MediaUrl *string `json:"media_url,omitempty"`
	// The unique SID identifier of the Service.
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique SID identifier of the Transcript.
	Sid *string `json:"sid,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
}

IntelligenceV2Media struct for IntelligenceV2Media

type IntelligenceV2Operator added in v1.21.0

type IntelligenceV2Operator struct {
	// The unique SID identifier of the Account the Operator belongs to.
	AccountSid *string `json:"account_sid,omitempty"`
	// A 34 character string that uniquely identifies this Operator.
	Sid *string `json:"sid,omitempty"`
	// A human-readable name of this resource, up to 64 characters.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// A human-readable description of this resource, longer than the friendly name.
	Description *string `json:"description,omitempty"`
	// The creator of the Operator. Either Twilio or the creating Account.
	Author *string `json:"author,omitempty"`
	// Operator Type for this Operator. References an existing Operator Type resource.
	OperatorType *string `json:"operator_type,omitempty"`
	// Numeric Operator version. Incremented with each update on the resource, used to ensure integrity when updating the Operator.
	Version      int     `json:"version,omitempty"`
	Availability *string `json:"availability,omitempty"`
	// Operator configuration, following the schema defined by the Operator Type. Only available on Custom Operators created by the Account.
	Config *interface{} `json:"config,omitempty"`
	// The date that this Operator was created, given in ISO 8601 format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this Operator was updated, given in ISO 8601 format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
}

IntelligenceV2Operator struct for IntelligenceV2Operator

type IntelligenceV2OperatorAttachment added in v1.21.0

type IntelligenceV2OperatorAttachment struct {
	// The unique SID identifier of the Service.
	ServiceSid *string `json:"service_sid,omitempty"`
	// The unique SID identifier of the Operator.
	OperatorSid *string `json:"operator_sid,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
}

IntelligenceV2OperatorAttachment struct for IntelligenceV2OperatorAttachment

type IntelligenceV2OperatorAttachments added in v1.21.0

type IntelligenceV2OperatorAttachments struct {
	// The unique SID identifier of the Service.
	ServiceSid *string `json:"service_sid,omitempty"`
	// List of Operator SIDs attached to the service. Includes both Custom and Pre-built Operators.
	OperatorSids *[]string `json:"operator_sids,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
}

IntelligenceV2OperatorAttachments struct for IntelligenceV2OperatorAttachments

type IntelligenceV2OperatorResult

type IntelligenceV2OperatorResult struct {
	OperatorType *string `json:"operator_type,omitempty"`
	// The name of the applied Language Understanding.
	Name *string `json:"name,omitempty"`
	// A 34 character string that identifies this Language Understanding operator sid.
	OperatorSid *string `json:"operator_sid,omitempty"`
	// Boolean to tell if extract Language Understanding Processing model matches results.
	ExtractMatch *bool `json:"extract_match,omitempty"`
	// Percentage of 'matching' class needed to consider a sentence matches
	MatchProbability *float32 `json:"match_probability,omitempty"`
	// Normalized output of extraction stage which matches Label.
	NormalizedResult *string `json:"normalized_result,omitempty"`
	// List of mapped utterance object which matches sentences.
	UtteranceResults *[]interface{} `json:"utterance_results,omitempty"`
	// Boolean to tell if Utterance matches results.
	UtteranceMatch *bool `json:"utterance_match,omitempty"`
	// The 'matching' class. This might be available on conversation classify model outputs.
	PredictedLabel *string `json:"predicted_label,omitempty"`
	// Percentage of 'matching' class needed to consider a sentence matches.
	PredictedProbability *float32 `json:"predicted_probability,omitempty"`
	// The labels probabilities. This might be available on conversation classify model outputs.
	LabelProbabilities *interface{} `json:"label_probabilities,omitempty"`
	// List of text extraction results. This might be available on classify-extract model outputs.
	ExtractResults *interface{} `json:"extract_results,omitempty"`
	// Output of a text generation operator for example Conversation Sumamary.
	TextGenerationResults *interface{} `json:"text_generation_results,omitempty"`
	// A 34 character string that uniquely identifies this Transcript.
	TranscriptSid *string `json:"transcript_sid,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
}

IntelligenceV2OperatorResult struct for IntelligenceV2OperatorResult

func (*IntelligenceV2OperatorResult) UnmarshalJSON

func (response *IntelligenceV2OperatorResult) UnmarshalJSON(bytes []byte) (err error)

type IntelligenceV2OperatorType added in v1.21.0

type IntelligenceV2OperatorType struct {
	// A unique name that references an Operator's Operator Type.
	Name *string `json:"name,omitempty"`
	// A 34 character string that uniquely identifies this Operator Type.
	Sid *string `json:"sid,omitempty"`
	// A human-readable name of this resource, up to 64 characters.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// A human-readable description of this resource, longer than the friendly name.
	Description *string `json:"description,omitempty"`
	// Additional documentation for the Operator Type.
	DocsLink   *string `json:"docs_link,omitempty"`
	OutputType *string `json:"output_type,omitempty"`
	// List of languages this Operator Type supports.
	SupportedLanguages *[]string `json:"supported_languages,omitempty"`
	Provider           *string   `json:"provider,omitempty"`
	Availability       *string   `json:"availability,omitempty"`
	// Operators can be created from configurable Operator Types.
	Configurable *bool `json:"configurable,omitempty"`
	// JSON Schema for configuring an Operator with this Operator Type. Following https://json-schema.org/
	ConfigSchema *interface{} `json:"config_schema,omitempty"`
	// The date that this Operator Type was created, given in ISO 8601 format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this Operator Type was updated, given in ISO 8601 format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
}

IntelligenceV2OperatorType struct for IntelligenceV2OperatorType

type IntelligenceV2PrebuiltOperator added in v1.21.0

type IntelligenceV2PrebuiltOperator struct {
	// The unique SID identifier of the Account the Pre-built Operator belongs to.
	AccountSid *string `json:"account_sid,omitempty"`
	// A 34 character string that uniquely identifies this Pre-built Operator.
	Sid *string `json:"sid,omitempty"`
	// A human-readable name of this resource, up to 64 characters.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// A human-readable description of this resource, longer than the friendly name.
	Description *string `json:"description,omitempty"`
	// The creator of the Operator. Pre-built Operators can only be created by Twilio.
	Author *string `json:"author,omitempty"`
	// Operator Type for this Operator. References an existing Operator Type resource.
	OperatorType *string `json:"operator_type,omitempty"`
	// Numeric Operator version. Incremented with each update on the resource, used to ensure integrity when updating the Operator.
	Version      int     `json:"version,omitempty"`
	Availability *string `json:"availability,omitempty"`
	// Operator configuration, following the schema defined by the Operator Type. Only available on Custom Operators created by the Account, will be empty for Pre-Built Operators.
	Config *interface{} `json:"config,omitempty"`
	// The date that this Pre-built Operator was created, given in ISO 8601 format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this Pre-built Operator was updated, given in ISO 8601 format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
}

IntelligenceV2PrebuiltOperator struct for IntelligenceV2PrebuiltOperator

type IntelligenceV2Sentence

type IntelligenceV2Sentence struct {
	// The channel number.
	MediaChannel int `json:"media_channel,omitempty"`
	// The index of the sentence in the transcript.
	SentenceIndex int `json:"sentence_index,omitempty"`
	// Offset from the beginning of the transcript when this sentence starts.
	StartTime *float32 `json:"start_time,omitempty"`
	// Offset from the beginning of the transcript when this sentence ends.
	EndTime *float32 `json:"end_time,omitempty"`
	// Transcript text.
	Transcript *string `json:"transcript,omitempty"`
	// A 34 character string that uniquely identifies this Sentence.
	Sid        *string  `json:"sid,omitempty"`
	Confidence *float32 `json:"confidence,omitempty"`
	// Detailed information for each of the words of the given Sentence.
	Words *[]interface{} `json:"words,omitempty"`
}

IntelligenceV2Sentence struct for IntelligenceV2Sentence

func (*IntelligenceV2Sentence) UnmarshalJSON

func (response *IntelligenceV2Sentence) UnmarshalJSON(bytes []byte) (err error)

type IntelligenceV2Service

type IntelligenceV2Service struct {
	// The unique SID identifier of the Account the Service belongs to.
	AccountSid *string `json:"account_sid,omitempty"`
	// Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
	AutoRedaction *bool `json:"auto_redaction,omitempty"`
	// Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
	MediaRedaction *bool `json:"media_redaction,omitempty"`
	// Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
	AutoTranscribe *bool `json:"auto_transcribe,omitempty"`
	// Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
	DataLogging *bool `json:"data_logging,omitempty"`
	// The date that this Service was created, given in ISO 8601 format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this Service was updated, given in ISO 8601 format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// A human readable description of this resource, up to 64 characters.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The language code set during Service creation determines the Transcription language for all call recordings processed by that Service. The default is en-US if no language code is set. A Service can only support one language code, and it cannot be updated once it's set.
	LanguageCode *string `json:"language_code,omitempty"`
	// A 34 character string that uniquely identifies this Service.
	Sid *string `json:"sid,omitempty"`
	// Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
	UniqueName *string `json:"unique_name,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
	// The URL Twilio will request when executing the Webhook.
	WebhookUrl        *string `json:"webhook_url,omitempty"`
	WebhookHttpMethod *string `json:"webhook_http_method,omitempty"`
	// Operator sids attached to this service, read only
	ReadOnlyAttachedOperatorSids *[]string `json:"read_only_attached_operator_sids,omitempty"`
	// The version number of this Service.
	Version int `json:"version,omitempty"`
}

IntelligenceV2Service struct for IntelligenceV2Service

type IntelligenceV2Transcript

type IntelligenceV2Transcript struct {
	// The unique SID identifier of the Account.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique SID identifier of the Service.
	ServiceSid *string `json:"service_sid,omitempty"`
	// A 34 character string that uniquely identifies this Transcript.
	Sid *string `json:"sid,omitempty"`
	// The date that this Transcript was created, given in ISO 8601 format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this Transcript was updated, given in ISO 8601 format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	Status      *string    `json:"status,omitempty"`
	// Media Channel describing Transcript Source and Participant Mapping
	Channel *interface{} `json:"channel,omitempty"`
	// Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
	DataLogging *bool `json:"data_logging,omitempty"`
	// The default language code of the audio.
	LanguageCode *string `json:"language_code,omitempty"`
	CustomerKey  *string `json:"customer_key,omitempty"`
	// The date that this Transcript's media was started, given in ISO 8601 format.
	MediaStartTime *time.Time `json:"media_start_time,omitempty"`
	// The duration of this Transcript's source
	Duration int `json:"duration,omitempty"`
	// The URL of this resource.
	Url *string `json:"url,omitempty"`
	// If the transcript has been redacted, a redacted alternative of the transcript will be available.
	Redaction *bool                   `json:"redaction,omitempty"`
	Links     *map[string]interface{} `json:"links,omitempty"`
}

IntelligenceV2Transcript struct for IntelligenceV2Transcript

type ListCustomOperatorParams added in v1.21.0

type ListCustomOperatorParams struct {
	// Returns Custom Operators with the provided availability type. Possible values: internal, beta, public, retired.
	Availability *string `json:"Availability,omitempty"`
	// Returns Custom Operators that support the provided language code.
	LanguageCode *string `json:"LanguageCode,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 'ListCustomOperator'

func (*ListCustomOperatorParams) SetAvailability added in v1.21.0

func (params *ListCustomOperatorParams) SetAvailability(Availability string) *ListCustomOperatorParams

func (*ListCustomOperatorParams) SetLanguageCode added in v1.21.0

func (params *ListCustomOperatorParams) SetLanguageCode(LanguageCode string) *ListCustomOperatorParams

func (*ListCustomOperatorParams) SetLimit added in v1.21.0

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

func (*ListCustomOperatorParams) SetPageSize added in v1.21.0

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

type ListCustomOperatorResponse added in v1.21.0

type ListCustomOperatorResponse struct {
	Operators []IntelligenceV2CustomOperator `json:"operators,omitempty"`
	Meta      ListCustomOperatorResponseMeta `json:"meta,omitempty"`
}

ListCustomOperatorResponse struct for ListCustomOperatorResponse

type ListCustomOperatorResponseMeta added in v1.21.0

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

ListCustomOperatorResponseMeta struct for ListCustomOperatorResponseMeta

type ListOperatorParams added in v1.21.0

type ListOperatorParams struct {
	// Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
	Availability *string `json:"Availability,omitempty"`
	// Returns Operators that support the provided language code.
	LanguageCode *string `json:"LanguageCode,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 'ListOperator'

func (*ListOperatorParams) SetAvailability added in v1.21.0

func (params *ListOperatorParams) SetAvailability(Availability string) *ListOperatorParams

func (*ListOperatorParams) SetLanguageCode added in v1.21.0

func (params *ListOperatorParams) SetLanguageCode(LanguageCode string) *ListOperatorParams

func (*ListOperatorParams) SetLimit added in v1.21.0

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

func (*ListOperatorParams) SetPageSize added in v1.21.0

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

type ListOperatorResponse added in v1.21.0

type ListOperatorResponse struct {
	Operators []IntelligenceV2Operator       `json:"operators,omitempty"`
	Meta      ListCustomOperatorResponseMeta `json:"meta,omitempty"`
}

ListOperatorResponse struct for ListOperatorResponse

type ListOperatorResultParams

type ListOperatorResultParams struct {
	// Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True.
	Redacted *bool `json:"Redacted,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 'ListOperatorResult'

func (*ListOperatorResultParams) SetLimit

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

func (*ListOperatorResultParams) SetPageSize

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

func (*ListOperatorResultParams) SetRedacted

func (params *ListOperatorResultParams) SetRedacted(Redacted bool) *ListOperatorResultParams

type ListOperatorResultResponse

type ListOperatorResultResponse struct {
	OperatorResults []IntelligenceV2OperatorResult `json:"operator_results,omitempty"`
	Meta            ListCustomOperatorResponseMeta `json:"meta,omitempty"`
}

ListOperatorResultResponse struct for ListOperatorResultResponse

type ListOperatorTypeParams added in v1.21.0

type ListOperatorTypeParams 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 'ListOperatorType'

func (*ListOperatorTypeParams) SetLimit added in v1.21.0

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

func (*ListOperatorTypeParams) SetPageSize added in v1.21.0

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

type ListOperatorTypeResponse added in v1.21.0

type ListOperatorTypeResponse struct {
	OperatorTypes []IntelligenceV2OperatorType   `json:"operator_types,omitempty"`
	Meta          ListCustomOperatorResponseMeta `json:"meta,omitempty"`
}

ListOperatorTypeResponse struct for ListOperatorTypeResponse

type ListPrebuiltOperatorParams added in v1.21.0

type ListPrebuiltOperatorParams struct {
	// Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
	Availability *string `json:"Availability,omitempty"`
	// Returns Pre-built Operators that support the provided language code.
	LanguageCode *string `json:"LanguageCode,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 'ListPrebuiltOperator'

func (*ListPrebuiltOperatorParams) SetAvailability added in v1.21.0

func (params *ListPrebuiltOperatorParams) SetAvailability(Availability string) *ListPrebuiltOperatorParams

func (*ListPrebuiltOperatorParams) SetLanguageCode added in v1.21.0

func (params *ListPrebuiltOperatorParams) SetLanguageCode(LanguageCode string) *ListPrebuiltOperatorParams

func (*ListPrebuiltOperatorParams) SetLimit added in v1.21.0

func (*ListPrebuiltOperatorParams) SetPageSize added in v1.21.0

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

type ListPrebuiltOperatorResponse added in v1.21.0

type ListPrebuiltOperatorResponse struct {
	Operators []IntelligenceV2PrebuiltOperator `json:"operators,omitempty"`
	Meta      ListCustomOperatorResponseMeta   `json:"meta,omitempty"`
}

ListPrebuiltOperatorResponse struct for ListPrebuiltOperatorResponse

type ListSentenceParams

type ListSentenceParams struct {
	// Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
	Redacted *bool `json:"Redacted,omitempty"`
	// Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
	WordTimestamps *bool `json:"WordTimestamps,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 'ListSentence'

func (*ListSentenceParams) SetLimit

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

func (*ListSentenceParams) SetPageSize

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

func (*ListSentenceParams) SetRedacted

func (params *ListSentenceParams) SetRedacted(Redacted bool) *ListSentenceParams

func (*ListSentenceParams) SetWordTimestamps added in v1.22.4

func (params *ListSentenceParams) SetWordTimestamps(WordTimestamps bool) *ListSentenceParams

type ListSentenceResponse

type ListSentenceResponse struct {
	Sentences []IntelligenceV2Sentence       `json:"sentences,omitempty"`
	Meta      ListCustomOperatorResponseMeta `json:"meta,omitempty"`
}

ListSentenceResponse struct for ListSentenceResponse

type ListServiceParams

type ListServiceParams 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 'ListService'

func (*ListServiceParams) SetLimit

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

func (*ListServiceParams) SetPageSize

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

type ListServiceResponse

type ListServiceResponse struct {
	Services []IntelligenceV2Service        `json:"services,omitempty"`
	Meta     ListCustomOperatorResponseMeta `json:"meta,omitempty"`
}

ListServiceResponse struct for ListServiceResponse

type ListTranscriptParams

type ListTranscriptParams struct {
	// The unique SID identifier of the Service.
	ServiceSid *string `json:"ServiceSid,omitempty"`
	// Filter by before StartTime.
	BeforeStartTime *string `json:"BeforeStartTime,omitempty"`
	// Filter by after StartTime.
	AfterStartTime *string `json:"AfterStartTime,omitempty"`
	// Filter by before DateCreated.
	BeforeDateCreated *string `json:"BeforeDateCreated,omitempty"`
	// Filter by after DateCreated.
	AfterDateCreated *string `json:"AfterDateCreated,omitempty"`
	// Filter by status.
	Status *string `json:"Status,omitempty"`
	// Filter by Language Code.
	LanguageCode *string `json:"LanguageCode,omitempty"`
	// Filter by SourceSid.
	SourceSid *string `json:"SourceSid,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 'ListTranscript'

func (*ListTranscriptParams) SetAfterDateCreated

func (params *ListTranscriptParams) SetAfterDateCreated(AfterDateCreated string) *ListTranscriptParams

func (*ListTranscriptParams) SetAfterStartTime

func (params *ListTranscriptParams) SetAfterStartTime(AfterStartTime string) *ListTranscriptParams

func (*ListTranscriptParams) SetBeforeDateCreated

func (params *ListTranscriptParams) SetBeforeDateCreated(BeforeDateCreated string) *ListTranscriptParams

func (*ListTranscriptParams) SetBeforeStartTime

func (params *ListTranscriptParams) SetBeforeStartTime(BeforeStartTime string) *ListTranscriptParams

func (*ListTranscriptParams) SetLanguageCode

func (params *ListTranscriptParams) SetLanguageCode(LanguageCode string) *ListTranscriptParams

func (*ListTranscriptParams) SetLimit

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

func (*ListTranscriptParams) SetPageSize

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

func (*ListTranscriptParams) SetServiceSid

func (params *ListTranscriptParams) SetServiceSid(ServiceSid string) *ListTranscriptParams

func (*ListTranscriptParams) SetSourceSid

func (params *ListTranscriptParams) SetSourceSid(SourceSid string) *ListTranscriptParams

func (*ListTranscriptParams) SetStatus

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

type ListTranscriptResponse

type ListTranscriptResponse struct {
	Transcripts []IntelligenceV2Transcript     `json:"transcripts,omitempty"`
	Meta        ListCustomOperatorResponseMeta `json:"meta,omitempty"`
}

ListTranscriptResponse struct for ListTranscriptResponse

type UpdateCustomOperatorParams added in v1.21.0

type UpdateCustomOperatorParams struct {
	// The If-Match HTTP request header
	IfMatch *string `json:"If-Match,omitempty"`
	// A human-readable name of this resource, up to 64 characters.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// Operator configuration, following the schema defined by the Operator Type.
	Config *interface{} `json:"Config,omitempty"`
}

Optional parameters for the method 'UpdateCustomOperator'

func (*UpdateCustomOperatorParams) SetConfig added in v1.21.0

func (params *UpdateCustomOperatorParams) SetConfig(Config interface{}) *UpdateCustomOperatorParams

func (*UpdateCustomOperatorParams) SetFriendlyName added in v1.21.0

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

func (*UpdateCustomOperatorParams) SetIfMatch added in v1.21.0

func (params *UpdateCustomOperatorParams) SetIfMatch(IfMatch string) *UpdateCustomOperatorParams

type UpdateServiceParams

type UpdateServiceParams struct {
	// The If-Match HTTP request header
	IfMatch *string `json:"If-Match,omitempty"`
	// Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
	AutoTranscribe *bool `json:"AutoTranscribe,omitempty"`
	// Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
	DataLogging *bool `json:"DataLogging,omitempty"`
	// A human readable description of this resource, up to 64 characters.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
	UniqueName *string `json:"UniqueName,omitempty"`
	// Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
	AutoRedaction *bool `json:"AutoRedaction,omitempty"`
	// Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
	MediaRedaction *bool `json:"MediaRedaction,omitempty"`
	// The URL Twilio will request when executing the Webhook.
	WebhookUrl *string `json:"WebhookUrl,omitempty"`
	//
	WebhookHttpMethod *string `json:"WebhookHttpMethod,omitempty"`
}

Optional parameters for the method 'UpdateService'

func (*UpdateServiceParams) SetAutoRedaction

func (params *UpdateServiceParams) SetAutoRedaction(AutoRedaction bool) *UpdateServiceParams

func (*UpdateServiceParams) SetAutoTranscribe

func (params *UpdateServiceParams) SetAutoTranscribe(AutoTranscribe bool) *UpdateServiceParams

func (*UpdateServiceParams) SetDataLogging

func (params *UpdateServiceParams) SetDataLogging(DataLogging bool) *UpdateServiceParams

func (*UpdateServiceParams) SetFriendlyName

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

func (*UpdateServiceParams) SetIfMatch

func (params *UpdateServiceParams) SetIfMatch(IfMatch string) *UpdateServiceParams

func (*UpdateServiceParams) SetMediaRedaction

func (params *UpdateServiceParams) SetMediaRedaction(MediaRedaction bool) *UpdateServiceParams

func (*UpdateServiceParams) SetUniqueName

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

func (*UpdateServiceParams) SetWebhookHttpMethod

func (params *UpdateServiceParams) SetWebhookHttpMethod(WebhookHttpMethod string) *UpdateServiceParams

func (*UpdateServiceParams) SetWebhookUrl

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

Jump to

Keyboard shortcuts

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