provider

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 18 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 NewVAPIToolFunctionResource added in v0.4.0

func NewVAPIToolFunctionResource() 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 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 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"`
}

type Property added in v0.4.0

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

type PropertyResourceModel added in v0.5.0

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

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