function

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 38 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceSchema

func DataSourceSchema(ctx context.Context) schema.Schema

func ListDataSourceSchema

func ListDataSourceSchema(ctx context.Context) schema.Schema

func NewFunctionDataSource

func NewFunctionDataSource() datasource.DataSource

func NewFunctionsDataSource

func NewFunctionsDataSource() datasource.DataSource

func NewResource

func NewResource() resource.Resource

func ResourceSchema

func ResourceSchema(ctx context.Context) schema.Schema

Types

type FunctionClassificationsModel

type FunctionClassificationsModel struct {
	Name            types.String                        `tfsdk:"name" json:"name,required"`
	Description     types.String                        `tfsdk:"description" json:"description,optional"`
	FunctionID      types.String                        `tfsdk:"function_id" json:"functionID,optional"`
	FunctionName    types.String                        `tfsdk:"function_name" json:"functionName,optional"`
	IsErrorFallback types.Bool                          `tfsdk:"is_error_fallback" json:"isErrorFallback,optional"`
	Origin          *FunctionClassificationsOriginModel `tfsdk:"origin" json:"origin,optional"`
	Regex           *FunctionClassificationsRegexModel  `tfsdk:"regex" json:"regex,optional"`
}

type FunctionClassificationsOriginEmailModel

type FunctionClassificationsOriginEmailModel struct {
	Patterns *[]types.String `tfsdk:"patterns" json:"patterns,optional"`
}

type FunctionClassificationsOriginModel

type FunctionClassificationsOriginModel struct {
	Email *FunctionClassificationsOriginEmailModel `tfsdk:"email" json:"email,optional"`
}

type FunctionClassificationsRegexModel

type FunctionClassificationsRegexModel struct {
	Patterns *[]types.String `tfsdk:"patterns" json:"patterns,optional"`
}

type FunctionConfigEndpointsModel added in v0.8.0

type FunctionConfigEndpointsModel struct {
	Method            types.String         `tfsdk:"method" json:"method,required"`
	Name              types.String         `tfsdk:"name" json:"name,required"`
	URL               types.String         `tfsdk:"url" json:"url,required"`
	BodyTemplate      types.String         `tfsdk:"body_template" json:"bodyTemplate,optional"`
	Headers           jsontypes.Normalized `tfsdk:"headers" json:"headers,optional"`
	MatchInstructions types.String         `tfsdk:"match_instructions" json:"matchInstructions,optional"`
	MatchTopK         types.Int64          `tfsdk:"match_top_k" json:"matchTopK,computed_optional"`
	MaxCandidates     types.Int64          `tfsdk:"max_candidates" json:"maxCandidates,computed_optional"`
	MaxPages          types.Int64          `tfsdk:"max_pages" json:"maxPages,computed_optional"`
	NextPageParam     types.String         `tfsdk:"next_page_param" json:"nextPageParam,optional"`
	NextPagePath      types.String         `tfsdk:"next_page_path" json:"nextPagePath,optional"`
	QueryParam        types.String         `tfsdk:"query_param" json:"queryParam,optional"`
	ResponsePath      types.String         `tfsdk:"response_path" json:"responsePath,optional"`
}

type FunctionConfigModel

type FunctionConfigModel struct {
	Steps     *[]*FunctionConfigStepsModel                               `tfsdk:"steps" json:"steps,required"`
	Endpoints customfield.NestedObjectList[FunctionConfigEndpointsModel] `tfsdk:"endpoints" json:"endpoints,computed_optional"`
}

type FunctionConfigStepsModel

type FunctionConfigStepsModel struct {
	SourceField           types.String  `tfsdk:"source_field" json:"sourceField,required"`
	TargetField           types.String  `tfsdk:"target_field" json:"targetField,required"`
	CollectionName        types.String  `tfsdk:"collection_name" json:"collectionName,optional"`
	EndpointName          types.String  `tfsdk:"endpoint_name" json:"endpointName,optional"`
	IncludeScore          types.Bool    `tfsdk:"include_score" json:"includeScore,optional"`
	IncludeSubcollections types.Bool    `tfsdk:"include_subcollections" json:"includeSubcollections,optional"`
	ScoreThreshold        types.Float64 `tfsdk:"score_threshold" json:"scoreThreshold,computed_optional"`
	SearchMode            types.String  `tfsdk:"search_mode" json:"searchMode,computed_optional"`
	Source                types.String  `tfsdk:"source" json:"source,computed_optional"`
	TopK                  types.Int64   `tfsdk:"top_k" json:"topK,computed_optional"`
}

type FunctionDataSource

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

func (*FunctionDataSource) ConfigValidators

func (d *FunctionDataSource) ConfigValidators(_ context.Context) []datasource.ConfigValidator

func (*FunctionDataSource) Configure

func (*FunctionDataSource) Metadata

func (*FunctionDataSource) Read

func (*FunctionDataSource) Schema

type FunctionDataSourceModel

type FunctionDataSourceModel struct {
	ID                   types.String                                              `tfsdk:"id" path:"functionName,computed"`
	FunctionName         types.String                                              `tfsdk:"function_name" path:"functionName,optional"`
	IncludeExtraSettings types.Bool                                                `tfsdk:"include_extra_settings" query:"includeExtraSettings,optional"`
	Function             customfield.NestedObject[FunctionFunctionDataSourceModel] `tfsdk:"function" json:"function,computed"`
	FindOneBy            *FunctionFindOneByDataSourceModel                         `tfsdk:"find_one_by"`
}

type FunctionExtraConfigModel added in v0.7.0

type FunctionExtraConfigModel struct {
	EnableBoundingBoxes types.Bool `tfsdk:"enable_bounding_boxes" json:"enableBoundingBoxes,optional"`
}

type FunctionFindOneByDataSourceModel

type FunctionFindOneByDataSourceModel struct {
	DisplayName             types.String    `tfsdk:"display_name" query:"displayName,optional"`
	FunctionIDs             *[]types.String `tfsdk:"function_ids" query:"functionIDs,optional"`
	FunctionNames           *[]types.String `tfsdk:"function_names" query:"functionNames,optional"`
	SortOrder               types.String    `tfsdk:"sort_order" query:"sortOrder,computed_optional"`
	Tags                    *[]types.String `tfsdk:"tags" query:"tags,optional"`
	Types                   *[]types.String `tfsdk:"types" query:"types,optional"`
	WorkflowIDs             *[]types.String `tfsdk:"workflow_ids" query:"workflowIDs,optional"`
	WorkflowIDVersionNums   *[]types.String `tfsdk:"workflow_id_version_nums" query:"workflowIDVersionNums,optional"`
	WorkflowNames           *[]types.String `tfsdk:"workflow_names" query:"workflowNames,optional"`
	WorkflowNameVersionNums *[]types.String `tfsdk:"workflow_name_version_nums" query:"workflowNameVersionNums,optional"`
}

type FunctionFunctionAuditDataSourceModel

type FunctionFunctionAuditDataSourceModel struct {
	FunctionCreatedBy     customfield.NestedObject[FunctionFunctionAuditFunctionCreatedByDataSourceModel]     `tfsdk:"function_created_by" json:"functionCreatedBy,computed"`
	FunctionLastUpdatedBy customfield.NestedObject[FunctionFunctionAuditFunctionLastUpdatedByDataSourceModel] `tfsdk:"function_last_updated_by" json:"functionLastUpdatedBy,computed"`
	VersionCreatedBy      customfield.NestedObject[FunctionFunctionAuditVersionCreatedByDataSourceModel]      `tfsdk:"version_created_by" json:"versionCreatedBy,computed"`
}

type FunctionFunctionAuditFunctionCreatedByDataSourceModel

type FunctionFunctionAuditFunctionCreatedByDataSourceModel struct {
	CreatedAt    timetypes.RFC3339 `tfsdk:"created_at" json:"createdAt,computed" format:"date-time"`
	UserActionID types.String      `tfsdk:"user_action_id" json:"userActionID,computed"`
	APIKeyName   types.String      `tfsdk:"api_key_name" json:"apiKeyName,computed"`
	EmailAddress types.String      `tfsdk:"email_address" json:"emailAddress,computed"`
	UserEmail    types.String      `tfsdk:"user_email" json:"userEmail,computed"`
	UserID       types.String      `tfsdk:"user_id" json:"userID,computed"`
}

type FunctionFunctionAuditFunctionCreatedByModel

type FunctionFunctionAuditFunctionCreatedByModel struct {
	CreatedAt    timetypes.RFC3339 `tfsdk:"created_at" json:"createdAt,computed" format:"date-time"`
	UserActionID types.String      `tfsdk:"user_action_id" json:"userActionID,computed"`
	APIKeyName   types.String      `tfsdk:"api_key_name" json:"apiKeyName,computed"`
	EmailAddress types.String      `tfsdk:"email_address" json:"emailAddress,computed"`
	UserEmail    types.String      `tfsdk:"user_email" json:"userEmail,computed"`
	UserID       types.String      `tfsdk:"user_id" json:"userID,computed"`
}

type FunctionFunctionAuditFunctionLastUpdatedByDataSourceModel

type FunctionFunctionAuditFunctionLastUpdatedByDataSourceModel struct {
	CreatedAt    timetypes.RFC3339 `tfsdk:"created_at" json:"createdAt,computed" format:"date-time"`
	UserActionID types.String      `tfsdk:"user_action_id" json:"userActionID,computed"`
	APIKeyName   types.String      `tfsdk:"api_key_name" json:"apiKeyName,computed"`
	EmailAddress types.String      `tfsdk:"email_address" json:"emailAddress,computed"`
	UserEmail    types.String      `tfsdk:"user_email" json:"userEmail,computed"`
	UserID       types.String      `tfsdk:"user_id" json:"userID,computed"`
}

type FunctionFunctionAuditFunctionLastUpdatedByModel

type FunctionFunctionAuditFunctionLastUpdatedByModel struct {
	CreatedAt    timetypes.RFC3339 `tfsdk:"created_at" json:"createdAt,computed" format:"date-time"`
	UserActionID types.String      `tfsdk:"user_action_id" json:"userActionID,computed"`
	APIKeyName   types.String      `tfsdk:"api_key_name" json:"apiKeyName,computed"`
	EmailAddress types.String      `tfsdk:"email_address" json:"emailAddress,computed"`
	UserEmail    types.String      `tfsdk:"user_email" json:"userEmail,computed"`
	UserID       types.String      `tfsdk:"user_id" json:"userID,computed"`
}

type FunctionFunctionAuditModel

type FunctionFunctionAuditModel struct {
	FunctionCreatedBy     customfield.NestedObject[FunctionFunctionAuditFunctionCreatedByModel]     `tfsdk:"function_created_by" json:"functionCreatedBy,computed"`
	FunctionLastUpdatedBy customfield.NestedObject[FunctionFunctionAuditFunctionLastUpdatedByModel] `tfsdk:"function_last_updated_by" json:"functionLastUpdatedBy,computed"`
	VersionCreatedBy      customfield.NestedObject[FunctionFunctionAuditVersionCreatedByModel]      `tfsdk:"version_created_by" json:"versionCreatedBy,computed"`
}

type FunctionFunctionAuditVersionCreatedByDataSourceModel

type FunctionFunctionAuditVersionCreatedByDataSourceModel struct {
	CreatedAt    timetypes.RFC3339 `tfsdk:"created_at" json:"createdAt,computed" format:"date-time"`
	UserActionID types.String      `tfsdk:"user_action_id" json:"userActionID,computed"`
	APIKeyName   types.String      `tfsdk:"api_key_name" json:"apiKeyName,computed"`
	EmailAddress types.String      `tfsdk:"email_address" json:"emailAddress,computed"`
	UserEmail    types.String      `tfsdk:"user_email" json:"userEmail,computed"`
	UserID       types.String      `tfsdk:"user_id" json:"userID,computed"`
}

type FunctionFunctionAuditVersionCreatedByModel

type FunctionFunctionAuditVersionCreatedByModel struct {
	CreatedAt    timetypes.RFC3339 `tfsdk:"created_at" json:"createdAt,computed" format:"date-time"`
	UserActionID types.String      `tfsdk:"user_action_id" json:"userActionID,computed"`
	APIKeyName   types.String      `tfsdk:"api_key_name" json:"apiKeyName,computed"`
	EmailAddress types.String      `tfsdk:"email_address" json:"emailAddress,computed"`
	UserEmail    types.String      `tfsdk:"user_email" json:"userEmail,computed"`
	UserID       types.String      `tfsdk:"user_id" json:"userID,computed"`
}

type FunctionFunctionClassificationsDataSourceModel

type FunctionFunctionClassificationsDataSourceModel struct {
	Name            types.String                                                                   `tfsdk:"name" json:"name,computed"`
	Description     types.String                                                                   `tfsdk:"description" json:"description,computed"`
	FunctionID      types.String                                                                   `tfsdk:"function_id" json:"functionID,computed"`
	FunctionName    types.String                                                                   `tfsdk:"function_name" json:"functionName,computed"`
	IsErrorFallback types.Bool                                                                     `tfsdk:"is_error_fallback" json:"isErrorFallback,computed"`
	Origin          customfield.NestedObject[FunctionFunctionClassificationsOriginDataSourceModel] `tfsdk:"origin" json:"origin,computed"`
	Regex           customfield.NestedObject[FunctionFunctionClassificationsRegexDataSourceModel]  `tfsdk:"regex" json:"regex,computed"`
}

type FunctionFunctionClassificationsModel

type FunctionFunctionClassificationsModel struct {
	Name            types.String                                                         `tfsdk:"name" json:"name,computed"`
	Description     types.String                                                         `tfsdk:"description" json:"description,computed"`
	FunctionID      types.String                                                         `tfsdk:"function_id" json:"functionID,computed"`
	FunctionName    types.String                                                         `tfsdk:"function_name" json:"functionName,computed"`
	IsErrorFallback types.Bool                                                           `tfsdk:"is_error_fallback" json:"isErrorFallback,computed"`
	Origin          customfield.NestedObject[FunctionFunctionClassificationsOriginModel] `tfsdk:"origin" json:"origin,computed"`
	Regex           customfield.NestedObject[FunctionFunctionClassificationsRegexModel]  `tfsdk:"regex" json:"regex,computed"`
}

type FunctionFunctionClassificationsOriginDataSourceModel

type FunctionFunctionClassificationsOriginDataSourceModel struct {
	Email customfield.NestedObject[FunctionFunctionClassificationsOriginEmailDataSourceModel] `tfsdk:"email" json:"email,computed"`
}

type FunctionFunctionClassificationsOriginEmailDataSourceModel

type FunctionFunctionClassificationsOriginEmailDataSourceModel struct {
	Patterns customfield.List[types.String] `tfsdk:"patterns" json:"patterns,computed"`
}

type FunctionFunctionClassificationsOriginEmailModel

type FunctionFunctionClassificationsOriginEmailModel struct {
	Patterns customfield.List[types.String] `tfsdk:"patterns" json:"patterns,computed"`
}

type FunctionFunctionClassificationsOriginModel

type FunctionFunctionClassificationsOriginModel struct {
	Email customfield.NestedObject[FunctionFunctionClassificationsOriginEmailModel] `tfsdk:"email" json:"email,computed"`
}

type FunctionFunctionClassificationsRegexDataSourceModel

type FunctionFunctionClassificationsRegexDataSourceModel struct {
	Patterns customfield.List[types.String] `tfsdk:"patterns" json:"patterns,computed"`
}

type FunctionFunctionClassificationsRegexModel

type FunctionFunctionClassificationsRegexModel struct {
	Patterns customfield.List[types.String] `tfsdk:"patterns" json:"patterns,computed"`
}

type FunctionFunctionConfigDataSourceModel

type FunctionFunctionConfigDataSourceModel struct {
	Steps     customfield.NestedObjectList[FunctionFunctionConfigStepsDataSourceModel]     `tfsdk:"steps" json:"steps,computed"`
	Endpoints customfield.NestedObjectList[FunctionFunctionConfigEndpointsDataSourceModel] `tfsdk:"endpoints" json:"endpoints,computed"`
}

type FunctionFunctionConfigEndpointsDataSourceModel added in v0.8.0

type FunctionFunctionConfigEndpointsDataSourceModel struct {
	Method            types.String         `tfsdk:"method" json:"method,computed"`
	Name              types.String         `tfsdk:"name" json:"name,computed"`
	URL               types.String         `tfsdk:"url" json:"url,computed"`
	BodyTemplate      types.String         `tfsdk:"body_template" json:"bodyTemplate,computed"`
	Headers           jsontypes.Normalized `tfsdk:"headers" json:"headers,computed"`
	MatchInstructions types.String         `tfsdk:"match_instructions" json:"matchInstructions,computed"`
	MatchTopK         types.Int64          `tfsdk:"match_top_k" json:"matchTopK,computed"`
	MaxCandidates     types.Int64          `tfsdk:"max_candidates" json:"maxCandidates,computed"`
	MaxPages          types.Int64          `tfsdk:"max_pages" json:"maxPages,computed"`
	NextPageParam     types.String         `tfsdk:"next_page_param" json:"nextPageParam,computed"`
	NextPagePath      types.String         `tfsdk:"next_page_path" json:"nextPagePath,computed"`
	QueryParam        types.String         `tfsdk:"query_param" json:"queryParam,computed"`
	ResponsePath      types.String         `tfsdk:"response_path" json:"responsePath,computed"`
}

type FunctionFunctionConfigEndpointsModel added in v0.8.0

type FunctionFunctionConfigEndpointsModel struct {
	Method            types.String         `tfsdk:"method" json:"method,computed"`
	Name              types.String         `tfsdk:"name" json:"name,computed"`
	URL               types.String         `tfsdk:"url" json:"url,computed"`
	BodyTemplate      types.String         `tfsdk:"body_template" json:"bodyTemplate,computed"`
	Headers           jsontypes.Normalized `tfsdk:"headers" json:"headers,computed"`
	MatchInstructions types.String         `tfsdk:"match_instructions" json:"matchInstructions,computed"`
	MatchTopK         types.Int64          `tfsdk:"match_top_k" json:"matchTopK,computed"`
	MaxCandidates     types.Int64          `tfsdk:"max_candidates" json:"maxCandidates,computed"`
	MaxPages          types.Int64          `tfsdk:"max_pages" json:"maxPages,computed"`
	NextPageParam     types.String         `tfsdk:"next_page_param" json:"nextPageParam,computed"`
	NextPagePath      types.String         `tfsdk:"next_page_path" json:"nextPagePath,computed"`
	QueryParam        types.String         `tfsdk:"query_param" json:"queryParam,computed"`
	ResponsePath      types.String         `tfsdk:"response_path" json:"responsePath,computed"`
}

type FunctionFunctionConfigModel

type FunctionFunctionConfigModel struct {
	Steps     customfield.NestedObjectList[FunctionFunctionConfigStepsModel]     `tfsdk:"steps" json:"steps,computed"`
	Endpoints customfield.NestedObjectList[FunctionFunctionConfigEndpointsModel] `tfsdk:"endpoints" json:"endpoints,computed"`
}

type FunctionFunctionConfigStepsDataSourceModel

type FunctionFunctionConfigStepsDataSourceModel struct {
	SourceField           types.String  `tfsdk:"source_field" json:"sourceField,computed"`
	TargetField           types.String  `tfsdk:"target_field" json:"targetField,computed"`
	CollectionName        types.String  `tfsdk:"collection_name" json:"collectionName,computed"`
	EndpointName          types.String  `tfsdk:"endpoint_name" json:"endpointName,computed"`
	IncludeScore          types.Bool    `tfsdk:"include_score" json:"includeScore,computed"`
	IncludeSubcollections types.Bool    `tfsdk:"include_subcollections" json:"includeSubcollections,computed"`
	ScoreThreshold        types.Float64 `tfsdk:"score_threshold" json:"scoreThreshold,computed"`
	SearchMode            types.String  `tfsdk:"search_mode" json:"searchMode,computed"`
	Source                types.String  `tfsdk:"source" json:"source,computed"`
	TopK                  types.Int64   `tfsdk:"top_k" json:"topK,computed"`
}

type FunctionFunctionConfigStepsModel

type FunctionFunctionConfigStepsModel struct {
	SourceField           types.String  `tfsdk:"source_field" json:"sourceField,computed"`
	TargetField           types.String  `tfsdk:"target_field" json:"targetField,computed"`
	CollectionName        types.String  `tfsdk:"collection_name" json:"collectionName,computed"`
	EndpointName          types.String  `tfsdk:"endpoint_name" json:"endpointName,computed"`
	IncludeScore          types.Bool    `tfsdk:"include_score" json:"includeScore,computed"`
	IncludeSubcollections types.Bool    `tfsdk:"include_subcollections" json:"includeSubcollections,computed"`
	ScoreThreshold        types.Float64 `tfsdk:"score_threshold" json:"scoreThreshold,computed"`
	SearchMode            types.String  `tfsdk:"search_mode" json:"searchMode,computed"`
	Source                types.String  `tfsdk:"source" json:"source,computed"`
	TopK                  types.Int64   `tfsdk:"top_k" json:"topK,computed"`
}

type FunctionFunctionDataSourceModel

type FunctionFunctionDataSourceModel struct {
	EmailAddress            types.String                                                                     `tfsdk:"email_address" json:"emailAddress,computed"`
	FunctionID              types.String                                                                     `tfsdk:"function_id" json:"functionID,computed"`
	FunctionName            types.String                                                                     `tfsdk:"function_name" json:"functionName,computed"`
	OutputSchema            jsontypes.Normalized                                                             `tfsdk:"output_schema" json:"outputSchema,computed"`
	OutputSchemaName        types.String                                                                     `tfsdk:"output_schema_name" json:"outputSchemaName,computed"`
	TabularChunkingEnabled  types.Bool                                                                       `tfsdk:"tabular_chunking_enabled" json:"tabularChunkingEnabled,computed"`
	Type                    types.String                                                                     `tfsdk:"type" json:"type,computed"`
	VersionNum              types.Int64                                                                      `tfsdk:"version_num" json:"versionNum,computed"`
	Audit                   customfield.NestedObject[FunctionFunctionAuditDataSourceModel]                   `tfsdk:"audit" json:"audit,computed"`
	DisplayName             types.String                                                                     `tfsdk:"display_name" json:"displayName,computed"`
	Tags                    customfield.List[types.String]                                                   `tfsdk:"tags" json:"tags,computed"`
	UsedInWorkflows         customfield.NestedObjectList[FunctionFunctionUsedInWorkflowsDataSourceModel]     `tfsdk:"used_in_workflows" json:"usedInWorkflows,computed"`
	EnableBoundingBoxes     types.Bool                                                                       `tfsdk:"enable_bounding_boxes" json:"enableBoundingBoxes,computed"`
	PreCount                types.Bool                                                                       `tfsdk:"pre_count" json:"preCount,computed"`
	Classifications         customfield.NestedObjectList[FunctionFunctionClassificationsDataSourceModel]     `tfsdk:"classifications" json:"classifications,computed"`
	Description             types.String                                                                     `tfsdk:"description" json:"description,computed"`
	NativeVisualInput       types.Bool                                                                       `tfsdk:"native_visual_input" json:"nativeVisualInput,computed"`
	DestinationType         types.String                                                                     `tfsdk:"destination_type" json:"destinationType,computed"`
	GoogleDriveFolderID     types.String                                                                     `tfsdk:"google_drive_folder_id" json:"googleDriveFolderId,computed"`
	S3Bucket                types.String                                                                     `tfsdk:"s3_bucket" json:"s3Bucket,computed"`
	S3Prefix                types.String                                                                     `tfsdk:"s3_prefix" json:"s3Prefix,computed"`
	WebhookSigningEnabled   types.Bool                                                                       `tfsdk:"webhook_signing_enabled" json:"webhookSigningEnabled,computed"`
	WebhookURL              types.String                                                                     `tfsdk:"webhook_url" json:"webhookUrl,computed"`
	SplitType               types.String                                                                     `tfsdk:"split_type" json:"splitType,computed"`
	PrintPageSplitConfig    customfield.NestedObject[FunctionFunctionPrintPageSplitConfigDataSourceModel]    `tfsdk:"print_page_split_config" json:"printPageSplitConfig,computed"`
	SemanticPageSplitConfig customfield.NestedObject[FunctionFunctionSemanticPageSplitConfigDataSourceModel] `tfsdk:"semantic_page_split_config" json:"semanticPageSplitConfig,computed"`
	JoinType                types.String                                                                     `tfsdk:"join_type" json:"joinType,computed"`
	ShapingSchema           types.String                                                                     `tfsdk:"shaping_schema" json:"shapingSchema,computed"`
	Config                  customfield.NestedObject[FunctionFunctionConfigDataSourceModel]                  `tfsdk:"config" json:"config,computed"`
	ExtraConfig             customfield.NestedObject[FunctionFunctionExtraConfigDataSourceModel]             `tfsdk:"extra_config" json:"extraConfig,computed"`
	ParseConfig             customfield.NestedObject[FunctionFunctionParseConfigDataSourceModel]             `tfsdk:"parse_config" json:"parseConfig,computed"`
	RenderConfig            customfield.NestedObject[FunctionFunctionRenderConfigDataSourceModel]            `tfsdk:"render_config" json:"renderConfig,computed"`
}

type FunctionFunctionEnvelope added in v0.14.1

type FunctionFunctionEnvelope struct {
	Function FunctionModel `json:"function"`
}

FunctionFunctionEnvelope mirrors WorkflowWorkflowEnvelope: the API wraps a function payload as {"function": {...}}.

Deliberately declared here rather than in model.go, which carries the Stainless generated-file header. Stainless generates the workflow envelope but not this one, so keeping it in a hand-written file means a regen cannot silently drop it.

type FunctionFunctionExtraConfigDataSourceModel added in v0.7.0

type FunctionFunctionExtraConfigDataSourceModel struct {
	EnableBoundingBoxes types.Bool `tfsdk:"enable_bounding_boxes" json:"enableBoundingBoxes,computed"`
}

type FunctionFunctionExtraConfigModel added in v0.7.0

type FunctionFunctionExtraConfigModel struct {
	EnableBoundingBoxes types.Bool `tfsdk:"enable_bounding_boxes" json:"enableBoundingBoxes,computed"`
}

type FunctionFunctionModel

type FunctionFunctionModel struct {
	EmailAddress            types.String                                                           `tfsdk:"email_address" json:"emailAddress,computed"`
	FunctionID              types.String                                                           `tfsdk:"function_id" json:"functionID,computed"`
	FunctionName            types.String                                                           `tfsdk:"function_name" json:"functionName,computed"`
	OutputSchema            jsontypes.Normalized                                                   `tfsdk:"output_schema" json:"outputSchema,computed"`
	OutputSchemaName        types.String                                                           `tfsdk:"output_schema_name" json:"outputSchemaName,computed"`
	TabularChunkingEnabled  types.Bool                                                             `tfsdk:"tabular_chunking_enabled" json:"tabularChunkingEnabled,computed"`
	Type                    types.String                                                           `tfsdk:"type" json:"type,computed"`
	VersionNum              types.Int64                                                            `tfsdk:"version_num" json:"versionNum,computed"`
	Audit                   customfield.NestedObject[FunctionFunctionAuditModel]                   `tfsdk:"audit" json:"audit,computed"`
	DisplayName             types.String                                                           `tfsdk:"display_name" json:"displayName,computed"`
	Tags                    customfield.List[types.String]                                         `tfsdk:"tags" json:"tags,computed"`
	UsedInWorkflows         customfield.NestedObjectList[FunctionFunctionUsedInWorkflowsModel]     `tfsdk:"used_in_workflows" json:"usedInWorkflows,computed"`
	EnableBoundingBoxes     types.Bool                                                             `tfsdk:"enable_bounding_boxes" json:"enableBoundingBoxes,computed"`
	PreCount                types.Bool                                                             `tfsdk:"pre_count" json:"preCount,computed"`
	Classifications         customfield.NestedObjectList[FunctionFunctionClassificationsModel]     `tfsdk:"classifications" json:"classifications,computed"`
	Description             types.String                                                           `tfsdk:"description" json:"description,computed"`
	NativeVisualInput       types.Bool                                                             `tfsdk:"native_visual_input" json:"nativeVisualInput,computed"`
	DestinationType         types.String                                                           `tfsdk:"destination_type" json:"destinationType,computed"`
	GoogleDriveFolderID     types.String                                                           `tfsdk:"google_drive_folder_id" json:"googleDriveFolderId,computed"`
	S3Bucket                types.String                                                           `tfsdk:"s3_bucket" json:"s3Bucket,computed"`
	S3Prefix                types.String                                                           `tfsdk:"s3_prefix" json:"s3Prefix,computed"`
	WebhookSigningEnabled   types.Bool                                                             `tfsdk:"webhook_signing_enabled" json:"webhookSigningEnabled,computed"`
	WebhookURL              types.String                                                           `tfsdk:"webhook_url" json:"webhookUrl,computed"`
	SplitType               types.String                                                           `tfsdk:"split_type" json:"splitType,computed"`
	PrintPageSplitConfig    customfield.NestedObject[FunctionFunctionPrintPageSplitConfigModel]    `tfsdk:"print_page_split_config" json:"printPageSplitConfig,computed"`
	SemanticPageSplitConfig customfield.NestedObject[FunctionFunctionSemanticPageSplitConfigModel] `tfsdk:"semantic_page_split_config" json:"semanticPageSplitConfig,computed"`
	JoinType                types.String                                                           `tfsdk:"join_type" json:"joinType,computed"`
	ShapingSchema           types.String                                                           `tfsdk:"shaping_schema" json:"shapingSchema,computed"`
	Config                  customfield.NestedObject[FunctionFunctionConfigModel]                  `tfsdk:"config" json:"config,computed"`
	ExtraConfig             customfield.NestedObject[FunctionFunctionExtraConfigModel]             `tfsdk:"extra_config" json:"extraConfig,computed"`
	ParseConfig             customfield.NestedObject[FunctionFunctionParseConfigModel]             `tfsdk:"parse_config" json:"parseConfig,computed"`
	RenderConfig            customfield.NestedObject[FunctionFunctionRenderConfigModel]            `tfsdk:"render_config" json:"renderConfig,computed"`
}

type FunctionFunctionParseConfigDataSourceModel added in v0.2.0

type FunctionFunctionParseConfigDataSourceModel struct {
	DefaultBucket       types.String         `tfsdk:"default_bucket" json:"defaultBucket,computed"`
	ExtractEntities     types.Bool           `tfsdk:"extract_entities" json:"extractEntities,computed"`
	LinkAcrossDocuments types.Bool           `tfsdk:"link_across_documents" json:"linkAcrossDocuments,computed"`
	Schema              jsontypes.Normalized `tfsdk:"schema" json:"schema,computed"`
}

type FunctionFunctionParseConfigModel added in v0.2.0

type FunctionFunctionParseConfigModel struct {
	DefaultBucket       types.String         `tfsdk:"default_bucket" json:"defaultBucket,computed"`
	ExtractEntities     types.Bool           `tfsdk:"extract_entities" json:"extractEntities,computed"`
	LinkAcrossDocuments types.Bool           `tfsdk:"link_across_documents" json:"linkAcrossDocuments,computed"`
	Schema              jsontypes.Normalized `tfsdk:"schema" json:"schema,computed"`
}

type FunctionFunctionPrintPageSplitConfigDataSourceModel

type FunctionFunctionPrintPageSplitConfigDataSourceModel struct {
	NextFunctionID types.String `tfsdk:"next_function_id" json:"nextFunctionID,computed"`
}

type FunctionFunctionPrintPageSplitConfigModel

type FunctionFunctionPrintPageSplitConfigModel struct {
	NextFunctionID types.String `tfsdk:"next_function_id" json:"nextFunctionID,computed"`
}

type FunctionFunctionRenderConfigDataSourceModel added in v0.9.0

type FunctionFunctionRenderConfigDataSourceModel struct {
	Template customfield.NestedObject[FunctionFunctionRenderConfigTemplateDataSourceModel] `tfsdk:"template" json:"template,computed"`
}

type FunctionFunctionRenderConfigModel added in v0.9.0

type FunctionFunctionRenderConfigModel struct {
	Template customfield.NestedObject[FunctionFunctionRenderConfigTemplateModel] `tfsdk:"template" json:"template,computed"`
}

type FunctionFunctionRenderConfigTemplateDataSourceModel added in v0.9.0

type FunctionFunctionRenderConfigTemplateDataSourceModel struct {
	DownloadURL   types.String                                                                              `tfsdk:"download_url" json:"downloadURL,computed"`
	ListKinds     customfield.List[types.String]                                                            `tfsdk:"list_kinds" json:"listKinds,computed"`
	Name          types.String                                                                              `tfsdk:"name" json:"name,computed"`
	Placeholders  customfield.NestedObject[FunctionFunctionRenderConfigTemplatePlaceholdersDataSourceModel] `tfsdk:"placeholders" json:"placeholders,computed"`
	StyleIDs      customfield.List[types.String]                                                            `tfsdk:"style_ids" json:"styleIds,computed"`
	TableStyleIDs customfield.List[types.String]                                                            `tfsdk:"table_style_ids" json:"tableStyleIds,computed"`
}

type FunctionFunctionRenderConfigTemplateModel added in v0.9.0

type FunctionFunctionRenderConfigTemplateModel struct {
	DownloadURL   types.String                                                                    `tfsdk:"download_url" json:"downloadURL,computed"`
	ListKinds     customfield.List[types.String]                                                  `tfsdk:"list_kinds" json:"listKinds,computed"`
	Name          types.String                                                                    `tfsdk:"name" json:"name,computed"`
	Placeholders  customfield.NestedObject[FunctionFunctionRenderConfigTemplatePlaceholdersModel] `tfsdk:"placeholders" json:"placeholders,computed"`
	StyleIDs      customfield.List[types.String]                                                  `tfsdk:"style_ids" json:"styleIds,computed"`
	TableStyleIDs customfield.List[types.String]                                                  `tfsdk:"table_style_ids" json:"tableStyleIds,computed"`
}

type FunctionFunctionRenderConfigTemplatePlaceholdersDataSourceModel added in v0.9.0

type FunctionFunctionRenderConfigTemplatePlaceholdersDataSourceModel struct {
	BlockKeys  customfield.List[types.String] `tfsdk:"block_keys" json:"blockKeys,computed"`
	StringKeys customfield.List[types.String] `tfsdk:"string_keys" json:"stringKeys,computed"`
}

type FunctionFunctionRenderConfigTemplatePlaceholdersModel added in v0.9.0

type FunctionFunctionRenderConfigTemplatePlaceholdersModel struct {
	BlockKeys  customfield.List[types.String] `tfsdk:"block_keys" json:"blockKeys,computed"`
	StringKeys customfield.List[types.String] `tfsdk:"string_keys" json:"stringKeys,computed"`
}

type FunctionFunctionSemanticPageSplitConfigDataSourceModel

type FunctionFunctionSemanticPageSplitConfigDataSourceModel struct {
	ItemClasses customfield.NestedObjectList[FunctionFunctionSemanticPageSplitConfigItemClassesDataSourceModel] `tfsdk:"item_classes" json:"itemClasses,computed"`
}

type FunctionFunctionSemanticPageSplitConfigItemClassesDataSourceModel

type FunctionFunctionSemanticPageSplitConfigItemClassesDataSourceModel struct {
	Name             types.String `tfsdk:"name" json:"name,computed"`
	Description      types.String `tfsdk:"description" json:"description,computed"`
	NextFunctionID   types.String `tfsdk:"next_function_id" json:"nextFunctionID,computed"`
	NextFunctionName types.String `tfsdk:"next_function_name" json:"nextFunctionName,computed"`
}

type FunctionFunctionSemanticPageSplitConfigItemClassesModel

type FunctionFunctionSemanticPageSplitConfigItemClassesModel struct {
	Name             types.String `tfsdk:"name" json:"name,computed"`
	Description      types.String `tfsdk:"description" json:"description,computed"`
	NextFunctionID   types.String `tfsdk:"next_function_id" json:"nextFunctionID,computed"`
	NextFunctionName types.String `tfsdk:"next_function_name" json:"nextFunctionName,computed"`
}

type FunctionFunctionSemanticPageSplitConfigModel

type FunctionFunctionSemanticPageSplitConfigModel struct {
	ItemClasses customfield.NestedObjectList[FunctionFunctionSemanticPageSplitConfigItemClassesModel] `tfsdk:"item_classes" json:"itemClasses,computed"`
}

type FunctionFunctionUsedInWorkflowsDataSourceModel

type FunctionFunctionUsedInWorkflowsDataSourceModel struct {
	CurrentVersionNum         types.Int64                   `tfsdk:"current_version_num" json:"currentVersionNum,computed"`
	UsedInWorkflowVersionNums customfield.List[types.Int64] `tfsdk:"used_in_workflow_version_nums" json:"usedInWorkflowVersionNums,computed"`
	WorkflowID                types.String                  `tfsdk:"workflow_id" json:"workflowID,computed"`
	WorkflowName              types.String                  `tfsdk:"workflow_name" json:"workflowName,computed"`
}

type FunctionFunctionUsedInWorkflowsModel

type FunctionFunctionUsedInWorkflowsModel struct {
	CurrentVersionNum         types.Int64                   `tfsdk:"current_version_num" json:"currentVersionNum,computed"`
	UsedInWorkflowVersionNums customfield.List[types.Int64] `tfsdk:"used_in_workflow_version_nums" json:"usedInWorkflowVersionNums,computed"`
	WorkflowID                types.String                  `tfsdk:"workflow_id" json:"workflowID,computed"`
	WorkflowName              types.String                  `tfsdk:"workflow_name" json:"workflowName,computed"`
}

type FunctionModel

type FunctionModel struct {
	ID                      types.String                                    `tfsdk:"id" json:"-,computed"`
	FunctionName            types.String                                    `tfsdk:"function_name" json:"functionName,required,no_refresh"`
	Type                    types.String                                    `tfsdk:"type" json:"type,required,no_refresh"`
	Description             types.String                                    `tfsdk:"description" json:"description,computed_optional,no_refresh"`
	DestinationType         types.String                                    `tfsdk:"destination_type" json:"destinationType,optional,no_refresh,full_replace"`
	DisplayName             types.String                                    `tfsdk:"display_name" json:"displayName,optional,no_refresh"`
	EnableBoundingBoxes     types.Bool                                      `tfsdk:"enable_bounding_boxes" json:"enableBoundingBoxes,computed_optional,no_refresh"`
	GoogleDriveFolderID     types.String                                    `tfsdk:"google_drive_folder_id" json:"googleDriveFolderId,optional,no_refresh,full_replace"`
	JoinType                types.String                                    `tfsdk:"join_type" json:"joinType,optional,no_refresh"`
	NativeVisualInput       types.Bool                                      `tfsdk:"native_visual_input" json:"nativeVisualInput,optional,no_refresh"`
	OutputSchemaName        types.String                                    `tfsdk:"output_schema_name" json:"outputSchemaName,optional,no_refresh"`
	PreCount                types.Bool                                      `tfsdk:"pre_count" json:"preCount,computed_optional,no_refresh"`
	S3Bucket                types.String                                    `tfsdk:"s3_bucket" json:"s3Bucket,optional,no_refresh,full_replace"`
	S3Prefix                types.String                                    `tfsdk:"s3_prefix" json:"s3Prefix,optional,no_refresh,full_replace"`
	ShapingSchema           types.String                                    `tfsdk:"shaping_schema" json:"shapingSchema,optional,no_refresh,full_replace"`
	SplitType               types.String                                    `tfsdk:"split_type" json:"splitType,optional,no_refresh"`
	TabularChunkingEnabled  types.Bool                                      `tfsdk:"tabular_chunking_enabled" json:"tabularChunkingEnabled,computed_optional,no_refresh"`
	WebhookSigningEnabled   types.Bool                                      `tfsdk:"webhook_signing_enabled" json:"webhookSigningEnabled,optional,no_refresh,full_replace"`
	WebhookURL              types.String                                    `tfsdk:"webhook_url" json:"webhookUrl,optional,no_refresh,full_replace"`
	Tags                    customfield.List[types.String]                  `tfsdk:"tags" json:"tags,computed_optional,no_refresh"`
	Classifications         *[]*FunctionClassificationsModel                `tfsdk:"classifications" json:"classifications,optional,no_refresh"`
	ExtraConfig             *FunctionExtraConfigModel                       `tfsdk:"extra_config" json:"extraConfig,optional,no_refresh"`
	ParseConfig             *FunctionParseConfigModel                       `tfsdk:"parse_config" json:"parseConfig,optional,no_refresh"`
	PrintPageSplitConfig    *FunctionPrintPageSplitConfigModel              `tfsdk:"print_page_split_config" json:"printPageSplitConfig,optional,no_refresh"`
	RenderConfig            *FunctionRenderConfigModel                      `tfsdk:"render_config" json:"renderConfig,optional,no_refresh"`
	SemanticPageSplitConfig *FunctionSemanticPageSplitConfigModel           `tfsdk:"semantic_page_split_config" json:"semanticPageSplitConfig,optional,no_refresh"`
	OutputSchema            jsontypes.Normalized                            `tfsdk:"output_schema" json:"outputSchema,optional,no_refresh"`
	Config                  customfield.NestedObject[FunctionConfigModel]   `tfsdk:"config" json:"config,computed_optional,no_refresh,full_replace"`
	Function                customfield.NestedObject[FunctionFunctionModel] `tfsdk:"function" json:"function,computed"`
}

func (FunctionModel) MarshalJSON

func (m FunctionModel) MarshalJSON() (data []byte, err error)

func (FunctionModel) MarshalJSONForUpdate

func (m FunctionModel) MarshalJSONForUpdate(state FunctionModel) (data []byte, err error)

type FunctionParseConfigModel added in v0.2.0

type FunctionParseConfigModel struct {
	DefaultBucket       types.String         `tfsdk:"default_bucket" json:"defaultBucket,optional"`
	ExtractEntities     types.Bool           `tfsdk:"extract_entities" json:"extractEntities,optional"`
	LinkAcrossDocuments types.Bool           `tfsdk:"link_across_documents" json:"linkAcrossDocuments,optional"`
	Schema              jsontypes.Normalized `tfsdk:"schema" json:"schema,optional"`
}

type FunctionPrintPageSplitConfigModel

type FunctionPrintPageSplitConfigModel struct {
	NextFunctionID   types.String `tfsdk:"next_function_id" json:"nextFunctionID,optional"`
	NextFunctionName types.String `tfsdk:"next_function_name" json:"nextFunctionName,optional"`
}

type FunctionRenderConfigModel added in v0.9.0

type FunctionRenderConfigModel struct {
	Template *FunctionRenderConfigTemplateModel `tfsdk:"template" json:"template,required"`
}

type FunctionRenderConfigTemplateModel added in v0.9.0

type FunctionRenderConfigTemplateModel struct {
	Base64 types.String `tfsdk:"base64" json:"base64,required"`
	Name   types.String `tfsdk:"name" json:"name,optional"`
}

type FunctionResource

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

FunctionResource defines the resource implementation.

func (*FunctionResource) ConfigValidators

func (r *FunctionResource) ConfigValidators(_ context.Context) []resource.ConfigValidator

func (*FunctionResource) Configure

func (*FunctionResource) Create

func (*FunctionResource) Delete

func (*FunctionResource) ImportState

func (*FunctionResource) Metadata

func (*FunctionResource) ModifyPlan

func (*FunctionResource) Read

func (*FunctionResource) Schema

func (*FunctionResource) Update

func (*FunctionResource) UpgradeState

func (r *FunctionResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader

type FunctionSemanticPageSplitConfigItemClassesModel

type FunctionSemanticPageSplitConfigItemClassesModel struct {
	Name             types.String `tfsdk:"name" json:"name,required"`
	Description      types.String `tfsdk:"description" json:"description,optional"`
	NextFunctionID   types.String `tfsdk:"next_function_id" json:"nextFunctionID,optional"`
	NextFunctionName types.String `tfsdk:"next_function_name" json:"nextFunctionName,optional"`
}

type FunctionSemanticPageSplitConfigModel

type FunctionSemanticPageSplitConfigModel struct {
	ItemClasses *[]*FunctionSemanticPageSplitConfigItemClassesModel `tfsdk:"item_classes" json:"itemClasses,optional"`
}

type FunctionsAuditDataSourceModel

type FunctionsAuditDataSourceModel struct {
	FunctionCreatedBy     customfield.NestedObject[FunctionsAuditFunctionCreatedByDataSourceModel]     `tfsdk:"function_created_by" json:"functionCreatedBy,computed"`
	FunctionLastUpdatedBy customfield.NestedObject[FunctionsAuditFunctionLastUpdatedByDataSourceModel] `tfsdk:"function_last_updated_by" json:"functionLastUpdatedBy,computed"`
	VersionCreatedBy      customfield.NestedObject[FunctionsAuditVersionCreatedByDataSourceModel]      `tfsdk:"version_created_by" json:"versionCreatedBy,computed"`
}

type FunctionsAuditFunctionCreatedByDataSourceModel

type FunctionsAuditFunctionCreatedByDataSourceModel struct {
	CreatedAt    timetypes.RFC3339 `tfsdk:"created_at" json:"createdAt,computed" format:"date-time"`
	UserActionID types.String      `tfsdk:"user_action_id" json:"userActionID,computed"`
	APIKeyName   types.String      `tfsdk:"api_key_name" json:"apiKeyName,computed"`
	EmailAddress types.String      `tfsdk:"email_address" json:"emailAddress,computed"`
	UserEmail    types.String      `tfsdk:"user_email" json:"userEmail,computed"`
	UserID       types.String      `tfsdk:"user_id" json:"userID,computed"`
}

type FunctionsAuditFunctionLastUpdatedByDataSourceModel

type FunctionsAuditFunctionLastUpdatedByDataSourceModel struct {
	CreatedAt    timetypes.RFC3339 `tfsdk:"created_at" json:"createdAt,computed" format:"date-time"`
	UserActionID types.String      `tfsdk:"user_action_id" json:"userActionID,computed"`
	APIKeyName   types.String      `tfsdk:"api_key_name" json:"apiKeyName,computed"`
	EmailAddress types.String      `tfsdk:"email_address" json:"emailAddress,computed"`
	UserEmail    types.String      `tfsdk:"user_email" json:"userEmail,computed"`
	UserID       types.String      `tfsdk:"user_id" json:"userID,computed"`
}

type FunctionsAuditVersionCreatedByDataSourceModel

type FunctionsAuditVersionCreatedByDataSourceModel struct {
	CreatedAt    timetypes.RFC3339 `tfsdk:"created_at" json:"createdAt,computed" format:"date-time"`
	UserActionID types.String      `tfsdk:"user_action_id" json:"userActionID,computed"`
	APIKeyName   types.String      `tfsdk:"api_key_name" json:"apiKeyName,computed"`
	EmailAddress types.String      `tfsdk:"email_address" json:"emailAddress,computed"`
	UserEmail    types.String      `tfsdk:"user_email" json:"userEmail,computed"`
	UserID       types.String      `tfsdk:"user_id" json:"userID,computed"`
}

type FunctionsClassificationsDataSourceModel

type FunctionsClassificationsDataSourceModel struct {
	Name            types.String                                                            `tfsdk:"name" json:"name,computed"`
	Description     types.String                                                            `tfsdk:"description" json:"description,computed"`
	FunctionID      types.String                                                            `tfsdk:"function_id" json:"functionID,computed"`
	FunctionName    types.String                                                            `tfsdk:"function_name" json:"functionName,computed"`
	IsErrorFallback types.Bool                                                              `tfsdk:"is_error_fallback" json:"isErrorFallback,computed"`
	Origin          customfield.NestedObject[FunctionsClassificationsOriginDataSourceModel] `tfsdk:"origin" json:"origin,computed"`
	Regex           customfield.NestedObject[FunctionsClassificationsRegexDataSourceModel]  `tfsdk:"regex" json:"regex,computed"`
}

type FunctionsClassificationsOriginDataSourceModel

type FunctionsClassificationsOriginDataSourceModel struct {
	Email customfield.NestedObject[FunctionsClassificationsOriginEmailDataSourceModel] `tfsdk:"email" json:"email,computed"`
}

type FunctionsClassificationsOriginEmailDataSourceModel

type FunctionsClassificationsOriginEmailDataSourceModel struct {
	Patterns customfield.List[types.String] `tfsdk:"patterns" json:"patterns,computed"`
}

type FunctionsClassificationsRegexDataSourceModel

type FunctionsClassificationsRegexDataSourceModel struct {
	Patterns customfield.List[types.String] `tfsdk:"patterns" json:"patterns,computed"`
}

type FunctionsConfigDataSourceModel

type FunctionsConfigDataSourceModel struct {
	Steps     customfield.NestedObjectList[FunctionsConfigStepsDataSourceModel]     `tfsdk:"steps" json:"steps,computed"`
	Endpoints customfield.NestedObjectList[FunctionsConfigEndpointsDataSourceModel] `tfsdk:"endpoints" json:"endpoints,computed"`
}

type FunctionsConfigEndpointsDataSourceModel added in v0.8.0

type FunctionsConfigEndpointsDataSourceModel struct {
	Method            types.String         `tfsdk:"method" json:"method,computed"`
	Name              types.String         `tfsdk:"name" json:"name,computed"`
	URL               types.String         `tfsdk:"url" json:"url,computed"`
	BodyTemplate      types.String         `tfsdk:"body_template" json:"bodyTemplate,computed"`
	Headers           jsontypes.Normalized `tfsdk:"headers" json:"headers,computed"`
	MatchInstructions types.String         `tfsdk:"match_instructions" json:"matchInstructions,computed"`
	MatchTopK         types.Int64          `tfsdk:"match_top_k" json:"matchTopK,computed"`
	MaxCandidates     types.Int64          `tfsdk:"max_candidates" json:"maxCandidates,computed"`
	MaxPages          types.Int64          `tfsdk:"max_pages" json:"maxPages,computed"`
	NextPageParam     types.String         `tfsdk:"next_page_param" json:"nextPageParam,computed"`
	NextPagePath      types.String         `tfsdk:"next_page_path" json:"nextPagePath,computed"`
	QueryParam        types.String         `tfsdk:"query_param" json:"queryParam,computed"`
	ResponsePath      types.String         `tfsdk:"response_path" json:"responsePath,computed"`
}

type FunctionsConfigStepsDataSourceModel

type FunctionsConfigStepsDataSourceModel struct {
	SourceField           types.String  `tfsdk:"source_field" json:"sourceField,computed"`
	TargetField           types.String  `tfsdk:"target_field" json:"targetField,computed"`
	CollectionName        types.String  `tfsdk:"collection_name" json:"collectionName,computed"`
	EndpointName          types.String  `tfsdk:"endpoint_name" json:"endpointName,computed"`
	IncludeScore          types.Bool    `tfsdk:"include_score" json:"includeScore,computed"`
	IncludeSubcollections types.Bool    `tfsdk:"include_subcollections" json:"includeSubcollections,computed"`
	ScoreThreshold        types.Float64 `tfsdk:"score_threshold" json:"scoreThreshold,computed"`
	SearchMode            types.String  `tfsdk:"search_mode" json:"searchMode,computed"`
	Source                types.String  `tfsdk:"source" json:"source,computed"`
	TopK                  types.Int64   `tfsdk:"top_k" json:"topK,computed"`
}

type FunctionsDataSource

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

func (*FunctionsDataSource) ConfigValidators

func (*FunctionsDataSource) Configure

func (*FunctionsDataSource) Metadata

func (*FunctionsDataSource) Read

func (*FunctionsDataSource) Schema

type FunctionsDataSourceModel

type FunctionsDataSourceModel struct {
	DisplayName             types.String                                                `tfsdk:"display_name" query:"displayName,optional"`
	IncludeExtraSettings    types.Bool                                                  `tfsdk:"include_extra_settings" query:"includeExtraSettings,optional"`
	FunctionIDs             *[]types.String                                             `tfsdk:"function_ids" query:"functionIDs,optional"`
	FunctionNames           *[]types.String                                             `tfsdk:"function_names" query:"functionNames,optional"`
	Tags                    *[]types.String                                             `tfsdk:"tags" query:"tags,optional"`
	Types                   *[]types.String                                             `tfsdk:"types" query:"types,optional"`
	WorkflowIDVersionNums   *[]types.String                                             `tfsdk:"workflow_id_version_nums" query:"workflowIDVersionNums,optional"`
	WorkflowIDs             *[]types.String                                             `tfsdk:"workflow_ids" query:"workflowIDs,optional"`
	WorkflowNameVersionNums *[]types.String                                             `tfsdk:"workflow_name_version_nums" query:"workflowNameVersionNums,optional"`
	WorkflowNames           *[]types.String                                             `tfsdk:"workflow_names" query:"workflowNames,optional"`
	SortOrder               types.String                                                `tfsdk:"sort_order" query:"sortOrder,computed_optional"`
	MaxItems                types.Int64                                                 `tfsdk:"max_items"`
	Items                   customfield.NestedObjectList[FunctionsItemsDataSourceModel] `tfsdk:"items"`
}

type FunctionsExtraConfigDataSourceModel added in v0.7.0

type FunctionsExtraConfigDataSourceModel struct {
	EnableBoundingBoxes types.Bool `tfsdk:"enable_bounding_boxes" json:"enableBoundingBoxes,computed"`
}

type FunctionsFunctionsListDataSourceEnvelope

type FunctionsFunctionsListDataSourceEnvelope struct {
	Functions customfield.NestedObjectList[FunctionsItemsDataSourceModel] `json:"functions,computed"`
}

type FunctionsItemsDataSourceModel

type FunctionsItemsDataSourceModel struct {
	EmailAddress            types.String                                                              `tfsdk:"email_address" json:"emailAddress,computed"`
	FunctionID              types.String                                                              `tfsdk:"function_id" json:"functionID,computed"`
	FunctionName            types.String                                                              `tfsdk:"function_name" json:"functionName,computed"`
	OutputSchema            jsontypes.Normalized                                                      `tfsdk:"output_schema" json:"outputSchema,computed"`
	OutputSchemaName        types.String                                                              `tfsdk:"output_schema_name" json:"outputSchemaName,computed"`
	TabularChunkingEnabled  types.Bool                                                                `tfsdk:"tabular_chunking_enabled" json:"tabularChunkingEnabled,computed"`
	Type                    types.String                                                              `tfsdk:"type" json:"type,computed"`
	VersionNum              types.Int64                                                               `tfsdk:"version_num" json:"versionNum,computed"`
	Audit                   customfield.NestedObject[FunctionsAuditDataSourceModel]                   `tfsdk:"audit" json:"audit,computed"`
	DisplayName             types.String                                                              `tfsdk:"display_name" json:"displayName,computed"`
	Tags                    customfield.List[types.String]                                            `tfsdk:"tags" json:"tags,computed"`
	UsedInWorkflows         customfield.NestedObjectList[FunctionsUsedInWorkflowsDataSourceModel]     `tfsdk:"used_in_workflows" json:"usedInWorkflows,computed"`
	EnableBoundingBoxes     types.Bool                                                                `tfsdk:"enable_bounding_boxes" json:"enableBoundingBoxes,computed"`
	PreCount                types.Bool                                                                `tfsdk:"pre_count" json:"preCount,computed"`
	Classifications         customfield.NestedObjectList[FunctionsClassificationsDataSourceModel]     `tfsdk:"classifications" json:"classifications,computed"`
	Description             types.String                                                              `tfsdk:"description" json:"description,computed"`
	NativeVisualInput       types.Bool                                                                `tfsdk:"native_visual_input" json:"nativeVisualInput,computed"`
	DestinationType         types.String                                                              `tfsdk:"destination_type" json:"destinationType,computed"`
	GoogleDriveFolderID     types.String                                                              `tfsdk:"google_drive_folder_id" json:"googleDriveFolderId,computed"`
	S3Bucket                types.String                                                              `tfsdk:"s3_bucket" json:"s3Bucket,computed"`
	S3Prefix                types.String                                                              `tfsdk:"s3_prefix" json:"s3Prefix,computed"`
	WebhookSigningEnabled   types.Bool                                                                `tfsdk:"webhook_signing_enabled" json:"webhookSigningEnabled,computed"`
	WebhookURL              types.String                                                              `tfsdk:"webhook_url" json:"webhookUrl,computed"`
	SplitType               types.String                                                              `tfsdk:"split_type" json:"splitType,computed"`
	PrintPageSplitConfig    customfield.NestedObject[FunctionsPrintPageSplitConfigDataSourceModel]    `tfsdk:"print_page_split_config" json:"printPageSplitConfig,computed"`
	SemanticPageSplitConfig customfield.NestedObject[FunctionsSemanticPageSplitConfigDataSourceModel] `tfsdk:"semantic_page_split_config" json:"semanticPageSplitConfig,computed"`
	JoinType                types.String                                                              `tfsdk:"join_type" json:"joinType,computed"`
	ShapingSchema           types.String                                                              `tfsdk:"shaping_schema" json:"shapingSchema,computed"`
	Config                  customfield.NestedObject[FunctionsConfigDataSourceModel]                  `tfsdk:"config" json:"config,computed"`
	ExtraConfig             customfield.NestedObject[FunctionsExtraConfigDataSourceModel]             `tfsdk:"extra_config" json:"extraConfig,computed"`
	ParseConfig             customfield.NestedObject[FunctionsParseConfigDataSourceModel]             `tfsdk:"parse_config" json:"parseConfig,computed"`
	RenderConfig            customfield.NestedObject[FunctionsRenderConfigDataSourceModel]            `tfsdk:"render_config" json:"renderConfig,computed"`
}

type FunctionsParseConfigDataSourceModel added in v0.2.0

type FunctionsParseConfigDataSourceModel struct {
	DefaultBucket       types.String         `tfsdk:"default_bucket" json:"defaultBucket,computed"`
	ExtractEntities     types.Bool           `tfsdk:"extract_entities" json:"extractEntities,computed"`
	LinkAcrossDocuments types.Bool           `tfsdk:"link_across_documents" json:"linkAcrossDocuments,computed"`
	Schema              jsontypes.Normalized `tfsdk:"schema" json:"schema,computed"`
}

type FunctionsPrintPageSplitConfigDataSourceModel

type FunctionsPrintPageSplitConfigDataSourceModel struct {
	NextFunctionID types.String `tfsdk:"next_function_id" json:"nextFunctionID,computed"`
}

type FunctionsRenderConfigDataSourceModel added in v0.9.0

type FunctionsRenderConfigDataSourceModel struct {
	Template customfield.NestedObject[FunctionsRenderConfigTemplateDataSourceModel] `tfsdk:"template" json:"template,computed"`
}

type FunctionsRenderConfigTemplateDataSourceModel added in v0.9.0

type FunctionsRenderConfigTemplateDataSourceModel struct {
	DownloadURL   types.String                                                                       `tfsdk:"download_url" json:"downloadURL,computed"`
	ListKinds     customfield.List[types.String]                                                     `tfsdk:"list_kinds" json:"listKinds,computed"`
	Name          types.String                                                                       `tfsdk:"name" json:"name,computed"`
	Placeholders  customfield.NestedObject[FunctionsRenderConfigTemplatePlaceholdersDataSourceModel] `tfsdk:"placeholders" json:"placeholders,computed"`
	StyleIDs      customfield.List[types.String]                                                     `tfsdk:"style_ids" json:"styleIds,computed"`
	TableStyleIDs customfield.List[types.String]                                                     `tfsdk:"table_style_ids" json:"tableStyleIds,computed"`
}

type FunctionsRenderConfigTemplatePlaceholdersDataSourceModel added in v0.9.0

type FunctionsRenderConfigTemplatePlaceholdersDataSourceModel struct {
	BlockKeys  customfield.List[types.String] `tfsdk:"block_keys" json:"blockKeys,computed"`
	StringKeys customfield.List[types.String] `tfsdk:"string_keys" json:"stringKeys,computed"`
}

type FunctionsSemanticPageSplitConfigDataSourceModel

type FunctionsSemanticPageSplitConfigDataSourceModel struct {
	ItemClasses customfield.NestedObjectList[FunctionsSemanticPageSplitConfigItemClassesDataSourceModel] `tfsdk:"item_classes" json:"itemClasses,computed"`
}

type FunctionsSemanticPageSplitConfigItemClassesDataSourceModel

type FunctionsSemanticPageSplitConfigItemClassesDataSourceModel struct {
	Name             types.String `tfsdk:"name" json:"name,computed"`
	Description      types.String `tfsdk:"description" json:"description,computed"`
	NextFunctionID   types.String `tfsdk:"next_function_id" json:"nextFunctionID,computed"`
	NextFunctionName types.String `tfsdk:"next_function_name" json:"nextFunctionName,computed"`
}

type FunctionsUsedInWorkflowsDataSourceModel

type FunctionsUsedInWorkflowsDataSourceModel struct {
	CurrentVersionNum         types.Int64                   `tfsdk:"current_version_num" json:"currentVersionNum,computed"`
	UsedInWorkflowVersionNums customfield.List[types.Int64] `tfsdk:"used_in_workflow_version_nums" json:"usedInWorkflowVersionNums,computed"`
	WorkflowID                types.String                  `tfsdk:"workflow_id" json:"workflowID,computed"`
	WorkflowName              types.String                  `tfsdk:"workflow_name" json:"workflowName,computed"`
}

Jump to

Keyboard shortcuts

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