Documentation ¶
Index ¶
- func ElementsAsString(list types.List) []string
- func ListValueFromStrings(strings []string) types.List
- func New(version string) func() provider.Provider
- func NewVAPIAssistantResource() resource.Resource
- func NewVAPIFileResource() resource.Resource
- func NewVAPIPhoneNumberResource() resource.Resource
- func NewVAPIToolFunctionResource() resource.Resource
- type AnalysisPlanResourceModel
- type KnowledgeBaseResourceModel
- type MessagePlanResourceModel
- type ModelResourceModel
- type Parameters
- type Property
- type PropertyResourceModel
- type ScaffoldingProviderModel
- type StartSpeakingPlanResourceModel
- type StopSpeakingPlanResourceModel
- type StructuredDataSchemaResourceModel
- type TranscriberResourceModel
- type TranscriptionEndpointingPlanResourceModel
- type VAPIAssistantResource
- func (r *VAPIAssistantResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VAPIAssistantResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VAPIAssistantResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VAPIAssistantResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VAPIAssistantResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VAPIAssistantResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VAPIAssistantResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VAPIAssistantResourceModel
- type VAPIFileResource
- func (r *VAPIFileResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VAPIFileResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VAPIFileResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VAPIFileResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *VAPIFileResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VAPIFileResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VAPIFileResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VAPIFileResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VAPIFileResourceModel
- type VAPIProvider
- func (p *VAPIProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *VAPIProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *VAPIProvider) Functions(ctx context.Context) []func() function.Function
- func (p *VAPIProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *VAPIProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *VAPIProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type VAPIToolFunctionResource
- func (r *VAPIToolFunctionResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VAPIToolFunctionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VAPIToolFunctionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VAPIToolFunctionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *VAPIToolFunctionResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VAPIToolFunctionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VAPIToolFunctionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VAPIToolFunctionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VAPIToolFunctionResourceModel
- type VAPITwilioPhoneNumberResource
- func (r *VAPITwilioPhoneNumberResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VAPITwilioPhoneNumberResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VAPITwilioPhoneNumberResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VAPITwilioPhoneNumberResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *VAPITwilioPhoneNumberResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VAPITwilioPhoneNumberResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VAPITwilioPhoneNumberResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VAPITwilioPhoneNumberResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VAPITwilioPhoneNumberResourceModel
- type VoiceResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementsAsString ¶ added in v0.5.0
ElementsAsString converts a Terraform types.List into a slice of strings.
func ListValueFromStrings ¶ added in v0.5.0
ListValueFromStrings converts a slice of strings to a Terraform types.List.
func NewVAPIAssistantResource ¶ added in v0.5.0
func NewVAPIFileResource ¶ added in v0.2.0
func NewVAPIPhoneNumberResource ¶ added in v0.3.0
NewVAPIPhoneNumberResource constructor.
func NewVAPIToolFunctionResource ¶ added in v0.4.0
Types ¶
type AnalysisPlanResourceModel ¶ added in v0.5.0
type AnalysisPlanResourceModel struct { SummaryPrompt types.String `tfsdk:"summary_prompt"` StructuredDataPrompt types.String `tfsdk:"structured_data_prompt"` StructuredDataSchema *StructuredDataSchemaResourceModel `tfsdk:"structured_data_schema"` SuccessEvaluationPrompt types.String `tfsdk:"success_evaluation_prompt"` SuccessEvaluationRubric types.String `tfsdk:"success_evaluation_rubric"` }
type KnowledgeBaseResourceModel ¶ added in v0.5.1
type MessagePlanResourceModel ¶ added in v0.5.0
type ModelResourceModel ¶ added in v0.5.0
type ModelResourceModel struct { Model types.String `tfsdk:"model"` SystemPrompt types.String `tfsdk:"system_prompt"` Provider types.String `tfsdk:"provider"` Temperature types.Float64 `tfsdk:"temperature"` MaxTokens types.Int64 `tfsdk:"max_tokens"` ToolIDs types.List `tfsdk:"tool_ids"` KnowledgeBase *KnowledgeBaseResourceModel `tfsdk:"knowledge_base"` }
type Parameters ¶ added in v0.4.0
type PropertyResourceModel ¶ added in v0.5.0
type ScaffoldingProviderModel ¶ added in v0.2.0
ScaffoldingProviderModel describes the provider data model.
type StartSpeakingPlanResourceModel ¶ added in v0.5.0
type StartSpeakingPlanResourceModel struct { WaitSeconds types.Float64 `tfsdk:"wait_seconds"` SmartEndpointingEnabled types.Bool `tfsdk:"smart_endpointing_enabled"` TranscriptionEndpointingPlan *TranscriptionEndpointingPlanResourceModel `tfsdk:"transcription_endpointing_plan"` }
type StopSpeakingPlanResourceModel ¶ added in v0.5.0
type StructuredDataSchemaResourceModel ¶ added in v0.5.0
type StructuredDataSchemaResourceModel struct { Type types.String `tfsdk:"type"` Properties map[string]PropertyResourceModel `tfsdk:"properties"` }
type TranscriberResourceModel ¶ added in v0.5.0
type TranscriptionEndpointingPlanResourceModel ¶ added in v0.5.0
type VAPIAssistantResource ¶ added in v0.5.0
type VAPIAssistantResource struct {
// contains filtered or unexported fields
}
func (*VAPIAssistantResource) Configure ¶ added in v0.5.0
func (r *VAPIAssistantResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure assigns the configured API client to the resource.
func (*VAPIAssistantResource) Create ¶ added in v0.5.0
func (r *VAPIAssistantResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements the create operation for the assistant resource.
func (*VAPIAssistantResource) Delete ¶ added in v0.5.0
func (r *VAPIAssistantResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements the delete operation for the assistant resource.
func (*VAPIAssistantResource) Metadata ¶ added in v0.5.0
func (r *VAPIAssistantResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata sets the resource type name for Terraform.
func (*VAPIAssistantResource) Read ¶ added in v0.5.0
func (r *VAPIAssistantResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements the read operation for the assistant resource.
func (*VAPIAssistantResource) Schema ¶ added in v0.5.0
func (r *VAPIAssistantResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the resource schema for the assistant resource.
func (*VAPIAssistantResource) Update ¶ added in v0.5.0
func (r *VAPIAssistantResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements the update operation for the assistant resource.
type VAPIAssistantResourceModel ¶ added in v0.5.0
type VAPIAssistantResourceModel struct { ID types.String `tfsdk:"id"` OrgID types.String `tfsdk:"org_id"` Name types.String `tfsdk:"name"` FirstMessageMode types.String `tfsdk:"first_message_mode"` HipaaEnabled types.Bool `tfsdk:"hipaa_enabled"` ClientMessages types.List `tfsdk:"client_messages"` ServerMessages types.List `tfsdk:"server_messages"` SilenceTimeoutSeconds types.Float64 `tfsdk:"silence_timeout_seconds"` MaxDurationSeconds types.Int64 `tfsdk:"max_duration_seconds"` BackgroundSound types.String `tfsdk:"background_sound"` BackgroundDenoising types.Bool `tfsdk:"background_denoising"` ModelOutputEnabled types.Bool `tfsdk:"model_output_enabled"` FirstMessage types.String `tfsdk:"first_message"` VoicemailMessage types.String `tfsdk:"voicemail_message"` EndCallMessage types.String `tfsdk:"end_call_message"` ServerURL types.String `tfsdk:"server_url"` ServerURLSecret types.String `tfsdk:"server_url_secret"` EndCallPhrases types.List `tfsdk:"end_call_phrases"` Transcriber *TranscriberResourceModel `tfsdk:"transcriber"` Model *ModelResourceModel `tfsdk:"model"` Voice *VoiceResourceModel `tfsdk:"voice"` StartSpeakingPlan *StartSpeakingPlanResourceModel `tfsdk:"start_speaking_plan"` StopSpeakingPlan *StopSpeakingPlanResourceModel `tfsdk:"stop_speaking_plan"` AnalysisPlan *AnalysisPlanResourceModel `tfsdk:"analysis_plan"` MessagePlan *MessagePlanResourceModel `tfsdk:"message_plan"` EndCallFunctionEnabled types.Bool `tfsdk:"end_call_function_enabled"` RecordingEnabled types.Bool `tfsdk:"recording_enabled"` ForwardingPhoneNumber types.String `tfsdk:"forwarding_phone_number"` PhoneNumberID types.String `tfsdk:"phone_number_id"` Language types.String `tfsdk:"language"` InterruptionsEnabled types.Bool `tfsdk:"interruptions_enabled"` DialKeypadFunctionEnabled types.Bool `tfsdk:"dial_keypad_function_enabled"` FillersEnabled types.Bool `tfsdk:"fillers_enabled"` ResponseDelaySeconds types.Float64 `tfsdk:"response_delay_seconds"` NumWordsToInterruptAssistant types.Int64 `tfsdk:"num_words_to_interrupt_assistant"` LiveTranscriptsEnabled types.Bool `tfsdk:"live_transcripts_enabled"` Keywords types.List `tfsdk:"keywords"` ParentID types.String `tfsdk:"parent_id"` }
type VAPIFileResource ¶ added in v0.2.0
type VAPIFileResource struct {
// contains filtered or unexported fields
}
func (*VAPIFileResource) Configure ¶ added in v0.2.0
func (r *VAPIFileResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*VAPIFileResource) Create ¶ added in v0.2.0
func (r *VAPIFileResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*VAPIFileResource) Delete ¶ added in v0.2.0
func (r *VAPIFileResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*VAPIFileResource) ImportState ¶ added in v0.2.0
func (r *VAPIFileResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*VAPIFileResource) Metadata ¶ added in v0.2.0
func (r *VAPIFileResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*VAPIFileResource) Read ¶ added in v0.2.0
func (r *VAPIFileResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*VAPIFileResource) Schema ¶ added in v0.2.0
func (r *VAPIFileResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*VAPIFileResource) Update ¶ added in v0.2.0
func (r *VAPIFileResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type VAPIFileResourceModel ¶ added in v0.2.0
type VAPIFileResourceModel struct { Content types.String `tfsdk:"content"` Filename types.String `tfsdk:"filename"` Name types.String `tfsdk:"name"` OriginalName types.String `tfsdk:"original_name"` Bytes types.Int64 `tfsdk:"bytes"` Mimetype types.String `tfsdk:"mimetype"` Path types.String `tfsdk:"path"` URL types.String `tfsdk:"url"` CreatedAt types.String `tfsdk:"created_at"` UpdatedAt types.String `tfsdk:"updated_at"` Id types.String `tfsdk:"id"` OrgID types.String `tfsdk:"org_id"` Status types.String `tfsdk:"status"` Bucket types.String `tfsdk:"bucket"` Purpose types.String `tfsdk:"purpose"` }
type VAPIProvider ¶ added in v0.2.0
type VAPIProvider struct {
// contains filtered or unexported fields
}
VAPIProvider defines the provider implementation.
func (*VAPIProvider) Configure ¶ added in v0.2.0
func (p *VAPIProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*VAPIProvider) DataSources ¶ added in v0.2.0
func (p *VAPIProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*VAPIProvider) Functions ¶ added in v0.2.0
func (p *VAPIProvider) Functions(ctx context.Context) []func() function.Function
func (*VAPIProvider) Metadata ¶ added in v0.2.0
func (p *VAPIProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*VAPIProvider) Resources ¶ added in v0.2.0
func (p *VAPIProvider) Resources(ctx context.Context) []func() resource.Resource
func (*VAPIProvider) Schema ¶ added in v0.2.0
func (p *VAPIProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type VAPIToolFunctionResource ¶ added in v0.4.0
type VAPIToolFunctionResource struct {
// contains filtered or unexported fields
}
func (*VAPIToolFunctionResource) Configure ¶ added in v0.4.0
func (r *VAPIToolFunctionResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*VAPIToolFunctionResource) Create ¶ added in v0.4.0
func (r *VAPIToolFunctionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*VAPIToolFunctionResource) Delete ¶ added in v0.4.0
func (r *VAPIToolFunctionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*VAPIToolFunctionResource) ImportState ¶ added in v0.4.0
func (r *VAPIToolFunctionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*VAPIToolFunctionResource) Metadata ¶ added in v0.4.0
func (r *VAPIToolFunctionResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*VAPIToolFunctionResource) Read ¶ added in v0.4.0
func (r *VAPIToolFunctionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*VAPIToolFunctionResource) Schema ¶ added in v0.4.0
func (r *VAPIToolFunctionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*VAPIToolFunctionResource) Update ¶ added in v0.4.0
func (r *VAPIToolFunctionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type VAPIToolFunctionResourceModel ¶ added in v0.4.0
type VAPIToolFunctionResourceModel struct { ID types.String `tfsdk:"id"` OrgID types.String `tfsdk:"org_id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Async types.Bool `tfsdk:"async"` Type types.String `tfsdk:"type"` ServerURL types.String `tfsdk:"server_url"` ServerSecret types.String `tfsdk:"server_secret"` Parameters Parameters `tfsdk:"parameters"` CreatedAt types.String `tfsdk:"created_at"` UpdatedAt types.String `tfsdk:"updated_at"` }
type VAPITwilioPhoneNumberResource ¶ added in v0.3.0
type VAPITwilioPhoneNumberResource struct {
// contains filtered or unexported fields
}
VAPITwilioPhoneNumberResource struct.
func (*VAPITwilioPhoneNumberResource) Configure ¶ added in v0.3.0
func (r *VAPITwilioPhoneNumberResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*VAPITwilioPhoneNumberResource) Create ¶ added in v0.3.0
func (r *VAPITwilioPhoneNumberResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*VAPITwilioPhoneNumberResource) Delete ¶ added in v0.3.0
func (r *VAPITwilioPhoneNumberResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*VAPITwilioPhoneNumberResource) ImportState ¶ added in v0.3.0
func (r *VAPITwilioPhoneNumberResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*VAPITwilioPhoneNumberResource) Metadata ¶ added in v0.3.0
func (r *VAPITwilioPhoneNumberResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*VAPITwilioPhoneNumberResource) Read ¶ added in v0.3.0
func (r *VAPITwilioPhoneNumberResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*VAPITwilioPhoneNumberResource) Schema ¶ added in v0.3.0
func (r *VAPITwilioPhoneNumberResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*VAPITwilioPhoneNumberResource) Update ¶ added in v0.3.0
func (r *VAPITwilioPhoneNumberResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type VAPITwilioPhoneNumberResourceModel ¶ added in v0.3.0
type VAPITwilioPhoneNumberResourceModel struct { ID types.String `tfsdk:"id"` OrgID types.String `tfsdk:"org_id"` Number types.String `tfsdk:"number"` CreatedAt types.String `tfsdk:"created_at"` UpdatedAt types.String `tfsdk:"updated_at"` TwilioAccountSid types.String `tfsdk:"twilio_account_sid"` TwilioAuthToken types.String `tfsdk:"twilio_auth_token"` Name types.String `tfsdk:"name"` PhoneProvider types.String `tfsdk:"phone_provider"` FallbackType types.String `tfsdk:"fallback_destination_type"` FallbackE164CheckEnabled types.String `tfsdk:"fallback_destination_number_e164_check_enabled"` FallbackNumber types.String `tfsdk:"fallback_destination_number"` FallbackExtension types.String `tfsdk:"fallback_destination_extension"` FallbackMessage types.String `tfsdk:"fallback_destination_message"` FallbackDescription types.String `tfsdk:"fallback_destination_description"` AssistantID types.String `tfsdk:"assistant_id"` }
VAPITwilioPhoneNumberResourceModel struct.