provider

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElementsAsString added in v0.5.0

func ElementsAsString(list types.List) []string

ElementsAsString converts a Terraform types.List into a slice of strings.

func ListValueFromStrings added in v0.5.0

func ListValueFromStrings(strings []string) types.List

ListValueFromStrings converts a slice of strings to a Terraform types.List.

func New added in v0.2.0

func New(version string) func() provider.Provider

func NewVAPIAssistantResource added in v0.5.0

func NewVAPIAssistantResource() resource.Resource

func NewVAPIFileResource added in v0.2.0

func NewVAPIFileResource() resource.Resource

func NewVAPIPhoneNumberResource added in v0.3.0

func NewVAPIPhoneNumberResource() resource.Resource

NewVAPIPhoneNumberResource constructor.

func NewVAPISIPTrunkPhoneNumberResource added in v0.11.0

func NewVAPISIPTrunkPhoneNumberResource() resource.Resource

NewVAPISIPTrunkPhoneNumberResource returns a new SIP trunk phone number resource.

func NewVAPISIPTrunkResource added in v0.10.0

func NewVAPISIPTrunkResource() resource.Resource

func NewVAPIToolFunctionResource added in v0.4.0

func NewVAPIToolFunctionResource() resource.Resource

func NewVAPIToolQueryFunctionResource added in v0.7.0

func NewVAPIToolQueryFunctionResource() resource.Resource

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 ArtifactPlanResourceModel added in v0.8.2

type ArtifactPlanResourceModel struct {
	RecordingFormat types.String `tfsdk:"recording_format"`
}

type Destination added in v0.8.0

type Destination struct {
	Type                   types.String `tfsdk:"type"`
	Number                 types.String `tfsdk:"number"`
	Extension              types.String `tfsdk:"extension"`
	Message                types.String `tfsdk:"message"`
	Description            types.String `tfsdk:"description"`
	NumberE164CheckEnabled types.Bool   `tfsdk:"number_e164_check_enabled"`
}

type KnowledgeBase added in v0.7.0

type KnowledgeBase struct {
	Provider    types.String `tfsdk:"provider"`
	Name        types.String `tfsdk:"name"`
	Model       types.String `tfsdk:"model"`
	Description types.String `tfsdk:"description"`
	FileIDs     types.List   `tfsdk:"file_ids"`
}

type KnowledgeBaseResourceModel added in v0.5.1

type KnowledgeBaseResourceModel struct {
	TopK     types.Int64  `tfsdk:"top_k"`
	FileIDs  types.List   `tfsdk:"file_ids"`
	Provider types.String `tfsdk:"provider"`
}

type MessagePlanResourceModel added in v0.5.0

type MessagePlanResourceModel struct {
	IdleMessages types.List `tfsdk:"idle_messages"`
}

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 OutboundAuthenticationPlanModel added in v0.10.0

type OutboundAuthenticationPlanModel struct {
	AuthUsername    types.String          `tfsdk:"auth_username"`
	AuthPassword    types.String          `tfsdk:"auth_password"`
	SIPRegisterPlan *SIPRegisterPlanModel `tfsdk:"sip_register_plan"`
}

type Parameters added in v0.4.0

type Parameters struct {
	Type       types.String        `tfsdk:"type"`
	Async      types.Bool          `tfsdk:"async"`
	Properties map[string]Property `tfsdk:"properties"`
	Required   types.List          `tfsdk:"required"`
}

type Property added in v0.4.0

type Property struct {
	Type        types.String `tfsdk:"type"`
	Description types.String `tfsdk:"description"`
	Enum        types.List   `tfsdk:"enum"`
}

type PropertyResourceModel added in v0.5.0

type PropertyResourceModel struct {
	Type        types.String `tfsdk:"type"`
	Description types.String `tfsdk:"description"`
}

type SIPGatewayModel added in v0.10.0

type SIPGatewayModel struct {
	IP types.String `tfsdk:"ip"`
}

type SIPRegisterPlanModel added in v0.10.0

type SIPRegisterPlanModel struct {
	Domain   types.String `tfsdk:"domain"`
	Username types.String `tfsdk:"username"`
	Realm    types.String `tfsdk:"realm"`
}

type ScaffoldingProviderModel added in v0.2.0

type ScaffoldingProviderModel struct {
	URL   string `tfsdk:"url"`
	Token string `tfsdk:"token"`
}

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 StopSpeakingPlanResourceModel struct {
	NumWords       types.Float64 `tfsdk:"num_words"`
	VoiceSeconds   types.Float64 `tfsdk:"voice_seconds"`
	BackoffSeconds types.Float64 `tfsdk:"backoff_seconds"`
}

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 TranscriberResourceModel struct {
	Provider types.String `tfsdk:"provider"`
	Model    types.String `tfsdk:"model"`
	Language types.String `tfsdk:"language"`
}

type TranscriptionEndpointingPlanResourceModel added in v0.5.0

type TranscriptionEndpointingPlanResourceModel struct {
	OnPunctuationSeconds   types.Float64 `tfsdk:"on_punctuation_seconds"`
	OnNoPunctuationSeconds types.Float64 `tfsdk:"on_no_punctuation_seconds"`
	OnNumberSeconds        types.Float64 `tfsdk:"on_number_seconds"`
}

type VAPIAssistantResource added in v0.5.0

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

func (*VAPIAssistantResource) Configure added in v0.5.0

Configure assigns the configured API client to the resource.

func (*VAPIAssistantResource) Create added in v0.5.0

Create implements the create operation for the assistant resource.

func (*VAPIAssistantResource) Delete added in v0.5.0

Delete implements the delete operation for the assistant resource.

func (*VAPIAssistantResource) Metadata added in v0.5.0

Metadata sets the resource type name for Terraform.

func (*VAPIAssistantResource) Read added in v0.5.0

Read implements the read operation for the assistant resource.

func (*VAPIAssistantResource) Schema added in v0.5.0

Schema defines the resource schema for the assistant resource.

func (*VAPIAssistantResource) Update added in v0.5.0

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"`
	ArtifactPlan                 *ArtifactPlanResourceModel      `tfsdk:"artifact_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 (*VAPIFileResource) Create added in v0.2.0

func (*VAPIFileResource) Delete added in v0.2.0

func (*VAPIFileResource) ImportState added in v0.2.0

func (*VAPIFileResource) Metadata added in v0.2.0

func (*VAPIFileResource) Read added in v0.2.0

func (*VAPIFileResource) Schema added in v0.2.0

func (*VAPIFileResource) Update added in v0.2.0

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 (*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 (*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

type VAPISIPTrunkPhoneNumberResource added in v0.11.0

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

VAPISIPTrunkPhoneNumberResource manages a SIP Trunk phone number resource.

func (*VAPISIPTrunkPhoneNumberResource) Configure added in v0.11.0

Configure binds the API client to the resource.

func (*VAPISIPTrunkPhoneNumberResource) Create added in v0.11.0

Create creates the SIP trunk phone number.

func (*VAPISIPTrunkPhoneNumberResource) Delete added in v0.11.0

Delete removes the SIP trunk phone number.

func (*VAPISIPTrunkPhoneNumberResource) ImportState added in v0.11.0

ImportState enables `terraform import`.

func (*VAPISIPTrunkPhoneNumberResource) Metadata added in v0.11.0

Metadata sets the resource type name.

func (*VAPISIPTrunkPhoneNumberResource) Read added in v0.11.0

Read fetches the current state from the API.

func (*VAPISIPTrunkPhoneNumberResource) Schema added in v0.11.0

Schema defines the resource schema.

func (*VAPISIPTrunkPhoneNumberResource) Update added in v0.11.0

Update deletes and recreates the SIP trunk phone number.

type VAPISIPTrunkPhoneNumberResourceModel added in v0.11.0

type VAPISIPTrunkPhoneNumberResourceModel struct {
	ID                     types.String `tfsdk:"id"`
	OrgID                  types.String `tfsdk:"org_id"`
	Number                 types.String `tfsdk:"number"`
	Name                   types.String `tfsdk:"name"`
	PhoneProvider          types.String `tfsdk:"phone_provider"`
	CreatedAt              types.String `tfsdk:"created_at"`
	UpdatedAt              types.String `tfsdk:"updated_at"`
	CredentialID           types.String `tfsdk:"credential_id"`
	NumberE164CheckEnabled types.Bool   `tfsdk:"number_e164_check_enabled"`
}

VAPISIPTrunkPhoneNumberResourceModel maps the schema data.

type VAPISIPTrunkResource added in v0.10.0

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

func (*VAPISIPTrunkResource) Configure added in v0.10.0

func (*VAPISIPTrunkResource) Create added in v0.10.0

func (*VAPISIPTrunkResource) Delete added in v0.10.0

func (*VAPISIPTrunkResource) ImportState added in v0.10.0

func (*VAPISIPTrunkResource) Metadata added in v0.10.0

func (*VAPISIPTrunkResource) Read added in v0.10.0

func (*VAPISIPTrunkResource) Schema added in v0.10.0

func (*VAPISIPTrunkResource) Update added in v0.10.0

type VAPISIPTrunkResourceModel added in v0.10.0

type VAPISIPTrunkResourceModel struct {
	ID                         types.String                     `tfsdk:"id"`
	SIPProvider                types.String                     `tfsdk:"sip_provider"`
	Name                       types.String                     `tfsdk:"name"`
	Gateways                   []SIPGatewayModel                `tfsdk:"gateways"`
	OutboundAuthenticationPlan *OutboundAuthenticationPlanModel `tfsdk:"outbound_authentication_plan"`
	OutboundLeadingPlusEnabled types.Bool                       `tfsdk:"outbound_leading_plus_enabled"`
	TechPrefix                 types.String                     `tfsdk:"tech_prefix"`
	SIPDiversionHeader         types.String                     `tfsdk:"sip_diversion_header"`
}

type VAPIToolFunctionResource added in v0.4.0

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

func (*VAPIToolFunctionResource) Configure added in v0.4.0

func (*VAPIToolFunctionResource) Create added in v0.4.0

func (*VAPIToolFunctionResource) Delete added in v0.4.0

func (*VAPIToolFunctionResource) ImportState added in v0.4.0

func (*VAPIToolFunctionResource) Metadata added in v0.4.0

func (*VAPIToolFunctionResource) Read added in v0.4.0

func (*VAPIToolFunctionResource) Schema added in v0.4.0

func (*VAPIToolFunctionResource) Update added in v0.4.0

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"`
	Destinations []Destination `tfsdk:"destinations"`
	CreatedAt    types.String  `tfsdk:"created_at"`
	UpdatedAt    types.String  `tfsdk:"updated_at"`
}

type VAPIToolQueryFunctionResource added in v0.7.0

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

func (*VAPIToolQueryFunctionResource) Configure added in v0.7.0

func (*VAPIToolQueryFunctionResource) Create added in v0.7.0

func (*VAPIToolQueryFunctionResource) Delete added in v0.7.0

func (*VAPIToolQueryFunctionResource) ImportState added in v0.7.0

func (*VAPIToolQueryFunctionResource) Metadata added in v0.7.0

func (*VAPIToolQueryFunctionResource) Read added in v0.7.0

func (*VAPIToolQueryFunctionResource) Schema added in v0.7.0

func (*VAPIToolQueryFunctionResource) Update added in v0.7.0

type VAPIToolQueryFunctionResourceModel added in v0.7.0

type VAPIToolQueryFunctionResourceModel struct {
	ID             types.String `tfsdk:"id"`
	OrgID          types.String `tfsdk:"org_id"`
	Name           types.String `tfsdk:"name"`
	Description    types.String `tfsdk:"description"`
	KnowledgeBases types.List   `tfsdk:"knowledge_bases"`
}

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 (*VAPITwilioPhoneNumberResource) Create added in v0.3.0

func (*VAPITwilioPhoneNumberResource) Delete added in v0.3.0

func (*VAPITwilioPhoneNumberResource) ImportState added in v0.3.0

func (*VAPITwilioPhoneNumberResource) Metadata added in v0.3.0

func (*VAPITwilioPhoneNumberResource) Read added in v0.3.0

func (*VAPITwilioPhoneNumberResource) Schema added in v0.3.0

func (*VAPITwilioPhoneNumberResource) Update added in v0.3.0

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.

type VoiceResourceModel added in v0.5.0

type VoiceResourceModel struct {
	Model           types.String  `tfsdk:"model"`
	Provider        types.String  `tfsdk:"provider"`
	VoiceID         types.String  `tfsdk:"voice_id"`
	Stability       types.Float64 `tfsdk:"stability"`
	SimilarityBoost types.Float64 `tfsdk:"similarity_boost"`
}

Jump to

Keyboard shortcuts

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