diff --git a/.changeset/quick-boats-rhyme.md b/.changeset/quick-boats-rhyme.md new file mode 100644 index 0000000000..a73acdc533 --- /dev/null +++ b/.changeset/quick-boats-rhyme.md @@ -0,0 +1,5 @@ +--- +'@nhost/dashboard': minor +--- + +feat: add model field to the auto-embeddings form diff --git a/dashboard/src/features/ai/AutoEmbeddingsForm/AutoEmbeddingsForm.tsx b/dashboard/src/features/ai/AutoEmbeddingsForm/AutoEmbeddingsForm.tsx index 05475fe74d..acb3b99e44 100644 --- a/dashboard/src/features/ai/AutoEmbeddingsForm/AutoEmbeddingsForm.tsx +++ b/dashboard/src/features/ai/AutoEmbeddingsForm/AutoEmbeddingsForm.tsx @@ -1,4 +1,5 @@ import { useDialog } from '@/components/common/DialogProvider'; +import { ControlledSelect } from '@/components/form/ControlledSelect'; import { Form } from '@/components/form/Form'; import { Box } from '@/components/ui/v2/Box'; import { Button } from '@/components/ui/v2/Button'; @@ -6,6 +7,7 @@ import { ArrowsClockwise } from '@/components/ui/v2/icons/ArrowsClockwise'; import { InfoIcon } from '@/components/ui/v2/icons/InfoIcon'; import { PlusIcon } from '@/components/ui/v2/icons/PlusIcon'; import { Input } from '@/components/ui/v2/Input'; +import { Option } from '@/components/ui/v2/Option'; import { Text } from '@/components/ui/v2/Text'; import { Tooltip } from '@/components/ui/v2/Tooltip'; import { useAdminApolloClient } from '@/features/projects/common/hooks/useAdminApolloClient'; @@ -20,11 +22,18 @@ import { useEffect } from 'react'; import { FormProvider, useForm } from 'react-hook-form'; import * as Yup from 'yup'; +const AUTO_EMBEDDINGS_MODELS = [ + 'text-embedding-ada-002', + 'text-embedding-3-small', + 'text-embedding-3-large', +]; + export const validationSchema = Yup.object({ - name: Yup.string().required('The name is required.'), - schemaName: Yup.string().required('The schema is required'), - tableName: Yup.string().required('The table is required'), - columnName: Yup.string().required('The column is required'), + name: Yup.string().required('The name field is required.'), + model: Yup.string().oneOf(AUTO_EMBEDDINGS_MODELS), + schemaName: Yup.string().required('The schema field is required'), + tableName: Yup.string().required('The table field is required'), + columnName: Yup.string().required('The column field is required'), query: Yup.string(), mutation: Yup.string(), }); @@ -40,7 +49,7 @@ export interface AutoEmbeddingsFormProps extends DialogFormProps { /** * if there is initialData then it's an update operation */ - initialData?: AutoEmbeddingsFormValues; + initialData?: AutoEmbeddingsFormValues & { model: string }; /** * Function to be called when the operation is cancelled. @@ -74,7 +83,10 @@ export default function AutoEmbeddingsForm({ }); const form = useForm({ - defaultValues: initialData, + defaultValues: { + ...initialData, + model: initialData?.model ?? 'text-embedding-ada-002', + }, reValidateMode: 'onSubmit', resolver: yupResolver(validationSchema), }); @@ -106,7 +118,9 @@ export default function AutoEmbeddingsForm({ } await insertGraphiteAutoEmbeddingsConfiguration({ - variables: values, + variables: { + ...values, + }, }); }; @@ -129,9 +143,9 @@ export default function AutoEmbeddingsForm({
-
+
@@ -155,6 +169,36 @@ export default function AutoEmbeddingsForm({ autoComplete="off" autoFocus /> + + + Model + + + + + } + fullWidth + error={!!errors?.model?.message} + helperText={errors?.model?.message} + > + {AUTO_EMBEDDINGS_MODELS.map((model) => ( + + ))} + + Schema where the table belongs to}> @@ -186,7 +230,7 @@ export default function AutoEmbeddingsForm({ @@ -208,7 +252,7 @@ export default function AutoEmbeddingsForm({ @@ -230,7 +274,7 @@ export default function AutoEmbeddingsForm({ @@ -254,7 +298,7 @@ export default function AutoEmbeddingsForm({ @@ -271,7 +315,7 @@ export default function AutoEmbeddingsForm({ />
- + diff --git a/dashboard/src/gql/graphite/auto-embeddings/getGraphiteAutoEmbeddingsConfigurations.gql b/dashboard/src/gql/graphite/auto-embeddings/getGraphiteAutoEmbeddingsConfigurations.gql index d3ff49d28e..c291c91bf9 100644 --- a/dashboard/src/gql/graphite/auto-embeddings/getGraphiteAutoEmbeddingsConfigurations.gql +++ b/dashboard/src/gql/graphite/auto-embeddings/getGraphiteAutoEmbeddingsConfigurations.gql @@ -2,6 +2,7 @@ query getGraphiteAutoEmbeddingsConfigurations($limit: Int!, $offset: Int!) { graphiteAutoEmbeddingsConfigurations(limit: $limit, offset: $offset) { id name + model schemaName tableName columnName diff --git a/dashboard/src/gql/graphite/auto-embeddings/insertGraphiteAutoEmbeddingsConfiguration.gql b/dashboard/src/gql/graphite/auto-embeddings/insertGraphiteAutoEmbeddingsConfiguration.gql index 0a60f7a3d6..aa658b5e16 100644 --- a/dashboard/src/gql/graphite/auto-embeddings/insertGraphiteAutoEmbeddingsConfiguration.gql +++ b/dashboard/src/gql/graphite/auto-embeddings/insertGraphiteAutoEmbeddingsConfiguration.gql @@ -1,5 +1,6 @@ mutation insertGraphiteAutoEmbeddingsConfiguration( $name: String + $model: embedding_model_enum $schemaName: String $tableName: String $columnName: String @@ -9,6 +10,7 @@ mutation insertGraphiteAutoEmbeddingsConfiguration( insertGraphiteAutoEmbeddingsConfiguration( object: { name: $name + model: $model schemaName: $schemaName tableName: $tableName columnName: $columnName diff --git a/dashboard/src/gql/graphite/auto-embeddings/updateGraphiteAutoEmbeddingsConfiguration.gql b/dashboard/src/gql/graphite/auto-embeddings/updateGraphiteAutoEmbeddingsConfiguration.gql index b54b3cdf24..ccd6a48132 100644 --- a/dashboard/src/gql/graphite/auto-embeddings/updateGraphiteAutoEmbeddingsConfiguration.gql +++ b/dashboard/src/gql/graphite/auto-embeddings/updateGraphiteAutoEmbeddingsConfiguration.gql @@ -1,6 +1,7 @@ mutation updateGraphiteAutoEmbeddingsConfiguration( $id: uuid! $name: String + $model: embedding_model_enum $schemaName: String $tableName: String $columnName: String @@ -11,6 +12,7 @@ mutation updateGraphiteAutoEmbeddingsConfiguration( pk_columns: { id: $id } _set: { name: $name + model: $model schemaName: $schemaName tableName: $tableName columnName: $columnName @@ -20,6 +22,7 @@ mutation updateGraphiteAutoEmbeddingsConfiguration( ) { id name + model schemaName tableName columnName diff --git a/dashboard/src/utils/__generated__/graphite.graphql.ts b/dashboard/src/utils/__generated__/graphite.graphql.ts index 46e9881626..f68dd013c2 100644 --- a/dashboard/src/utils/__generated__/graphite.graphql.ts +++ b/dashboard/src/utils/__generated__/graphite.graphql.ts @@ -16,13 +16,12 @@ export type Scalars = { bigint: any; bytea: any; citext: any; - graphitetimestampz: any; - graphiteuuid: any; + embedding_model_enum: any; jsonb: any; - numeric: any; + timestamp: any; timestamptz: any; + timestampz: any; uuid: any; - vector: any; }; /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ @@ -89,11 +88,18 @@ export type _GraphiteAssistants = { __typename?: '_graphiteAssistants'; assistantID?: Maybe; createdAt: Scalars['timestamptz']; + data?: Maybe; id: Scalars['uuid']; updatedAt: Scalars['timestamptz']; user_id?: Maybe; }; + +/** columns and relationships of "graphite.assistants" */ +export type _GraphiteAssistantsDataArgs = { + path?: InputMaybe; +}; + /** aggregated selection of "graphite.assistants" */ export type _GraphiteAssistants_Aggregate = { __typename?: '_graphiteAssistants_aggregate'; @@ -116,6 +122,11 @@ export type _GraphiteAssistants_Aggregate_FieldsCountArgs = { distinct?: InputMaybe; }; +/** append existing jsonb value of filtered columns with new jsonb value */ +export type _GraphiteAssistants_Append_Input = { + data?: InputMaybe; +}; + /** Boolean expression to filter rows from the table "graphite.assistants". All fields are combined with a logical 'AND'. */ export type _GraphiteAssistants_Bool_Exp = { _and?: InputMaybe>; @@ -123,6 +134,7 @@ export type _GraphiteAssistants_Bool_Exp = { _or?: InputMaybe>; assistantID?: InputMaybe; createdAt?: InputMaybe; + data?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; user_id?: InputMaybe; @@ -136,10 +148,26 @@ export enum _GraphiteAssistants_Constraint { AssistantsPkey = 'assistants_pkey' } +/** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */ +export type _GraphiteAssistants_Delete_At_Path_Input = { + data?: InputMaybe>; +}; + +/** delete the array element with specified index (negative integers count from the end). throws an error if top level container is not an array */ +export type _GraphiteAssistants_Delete_Elem_Input = { + data?: InputMaybe; +}; + +/** delete key/value pair or string element. key/value pairs are matched based on their key value */ +export type _GraphiteAssistants_Delete_Key_Input = { + data?: InputMaybe; +}; + /** input type for inserting data into table "graphite.assistants" */ export type _GraphiteAssistants_Insert_Input = { assistantID?: InputMaybe; createdAt?: InputMaybe; + data?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; user_id?: InputMaybe; @@ -185,6 +213,7 @@ export type _GraphiteAssistants_On_Conflict = { export type _GraphiteAssistants_Order_By = { assistantID?: InputMaybe; createdAt?: InputMaybe; + data?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; user_id?: InputMaybe; @@ -195,6 +224,11 @@ export type _GraphiteAssistants_Pk_Columns_Input = { id: Scalars['uuid']; }; +/** prepend existing jsonb value of filtered columns with new jsonb value */ +export type _GraphiteAssistants_Prepend_Input = { + data?: InputMaybe; +}; + /** select columns of table "graphite.assistants" */ export enum _GraphiteAssistants_Select_Column { /** column name */ @@ -202,6 +236,8 @@ export enum _GraphiteAssistants_Select_Column { /** column name */ CreatedAt = 'createdAt', /** column name */ + Data = 'data', + /** column name */ Id = 'id', /** column name */ UpdatedAt = 'updatedAt', @@ -213,6 +249,7 @@ export enum _GraphiteAssistants_Select_Column { export type _GraphiteAssistants_Set_Input = { assistantID?: InputMaybe; createdAt?: InputMaybe; + data?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; user_id?: InputMaybe; @@ -230,6 +267,7 @@ export type _GraphiteAssistants_Stream_Cursor_Input = { export type _GraphiteAssistants_Stream_Cursor_Value_Input = { assistantID?: InputMaybe; createdAt?: InputMaybe; + data?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; user_id?: InputMaybe; @@ -242,6 +280,8 @@ export enum _GraphiteAssistants_Update_Column { /** column name */ CreatedAt = 'createdAt', /** column name */ + Data = 'data', + /** column name */ Id = 'id', /** column name */ UpdatedAt = 'updatedAt', @@ -250,6 +290,16 @@ export enum _GraphiteAssistants_Update_Column { } export type _GraphiteAssistants_Updates = { + /** append existing jsonb value of filtered columns with new jsonb value */ + _append?: InputMaybe<_GraphiteAssistants_Append_Input>; + /** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */ + _delete_at_path?: InputMaybe<_GraphiteAssistants_Delete_At_Path_Input>; + /** delete the array element with specified index (negative integers count from the end). throws an error if top level container is not an array */ + _delete_elem?: InputMaybe<_GraphiteAssistants_Delete_Elem_Input>; + /** delete key/value pair or string element. key/value pairs are matched based on their key value */ + _delete_key?: InputMaybe<_GraphiteAssistants_Delete_Key_Input>; + /** prepend existing jsonb value of filtered columns with new jsonb value */ + _prepend?: InputMaybe<_GraphiteAssistants_Prepend_Input>; /** sets the columns of the filtered rows to the given values */ _set?: InputMaybe<_GraphiteAssistants_Set_Input>; /** filter the rows which have to be updated */ @@ -1497,9 +1547,9 @@ export type AuthUserProviders_Bool_Exp = { export enum AuthUserProviders_Constraint { /** unique or primary key constraint on columns "id" */ UserProvidersPkey = 'user_providers_pkey', - /** unique or primary key constraint on columns "provider_user_id", "provider_id" */ + /** unique or primary key constraint on columns "provider_id", "provider_user_id" */ UserProvidersProviderIdProviderUserIdKey = 'user_providers_provider_id_provider_user_id_key', - /** unique or primary key constraint on columns "user_id", "provider_id" */ + /** unique or primary key constraint on columns "provider_id", "user_id" */ UserProvidersUserIdProviderIdKey = 'user_providers_user_id_provider_id_key' } @@ -2634,6 +2684,19 @@ export enum Cursor_Ordering { Desc = 'DESC' } +/** Boolean expression to compare columns of type "embedding_model_enum". All fields are combined with logical 'AND'. */ +export type Embedding_Model_Enum_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + /** columns and relationships of "storage.files" */ export type Files = { __typename?: 'files'; @@ -3234,6 +3297,7 @@ export type GraphiteAutoEmbeddingsConfiguration = { createdAt: Scalars['timestamptz']; id: Scalars['uuid']; lastRun?: Maybe; + model: Scalars['embedding_model_enum']; mutation?: Maybe; name: Scalars['String']; query?: Maybe; @@ -3273,6 +3337,7 @@ export type GraphiteAutoEmbeddingsConfiguration_Bool_Exp = { createdAt?: InputMaybe; id?: InputMaybe; lastRun?: InputMaybe; + model?: InputMaybe; mutation?: InputMaybe; name?: InputMaybe; query?: InputMaybe; @@ -3287,7 +3352,7 @@ export enum GraphiteAutoEmbeddingsConfiguration_Constraint { AutoEmbeddingsConfigurationNameKey = 'auto_embeddings_configuration_name_key', /** unique or primary key constraint on columns "id" */ AutoEmbeddingsConfigurationPkey = 'auto_embeddings_configuration_pkey', - /** unique or primary key constraint on columns "column_name", "schema_name", "table_name" */ + /** unique or primary key constraint on columns "table_name", "column_name", "schema_name" */ AutoEmbeddingsConfigurationSchemaNameTableNameColumnKey = 'auto_embeddings_configuration_schema_name_table_name_column_key' } @@ -3297,6 +3362,7 @@ export type GraphiteAutoEmbeddingsConfiguration_Insert_Input = { createdAt?: InputMaybe; id?: InputMaybe; lastRun?: InputMaybe; + model?: InputMaybe; mutation?: InputMaybe; name?: InputMaybe; query?: InputMaybe; @@ -3312,6 +3378,7 @@ export type GraphiteAutoEmbeddingsConfiguration_Max_Fields = { createdAt?: Maybe; id?: Maybe; lastRun?: Maybe; + model?: Maybe; mutation?: Maybe; name?: Maybe; query?: Maybe; @@ -3327,6 +3394,7 @@ export type GraphiteAutoEmbeddingsConfiguration_Min_Fields = { createdAt?: Maybe; id?: Maybe; lastRun?: Maybe; + model?: Maybe; mutation?: Maybe; name?: Maybe; query?: Maybe; @@ -3357,6 +3425,7 @@ export type GraphiteAutoEmbeddingsConfiguration_Order_By = { createdAt?: InputMaybe; id?: InputMaybe; lastRun?: InputMaybe; + model?: InputMaybe; mutation?: InputMaybe; name?: InputMaybe; query?: InputMaybe; @@ -3381,6 +3450,8 @@ export enum GraphiteAutoEmbeddingsConfiguration_Select_Column { /** column name */ LastRun = 'lastRun', /** column name */ + Model = 'model', + /** column name */ Mutation = 'mutation', /** column name */ Name = 'name', @@ -3400,6 +3471,7 @@ export type GraphiteAutoEmbeddingsConfiguration_Set_Input = { createdAt?: InputMaybe; id?: InputMaybe; lastRun?: InputMaybe; + model?: InputMaybe; mutation?: InputMaybe; name?: InputMaybe; query?: InputMaybe; @@ -3422,6 +3494,7 @@ export type GraphiteAutoEmbeddingsConfiguration_Stream_Cursor_Value_Input = { createdAt?: InputMaybe; id?: InputMaybe; lastRun?: InputMaybe; + model?: InputMaybe; mutation?: InputMaybe; name?: InputMaybe; query?: InputMaybe; @@ -3441,6 +3514,8 @@ export enum GraphiteAutoEmbeddingsConfiguration_Update_Column { /** column name */ LastRun = 'lastRun', /** column name */ + Model = 'model', + /** column name */ Mutation = 'mutation', /** column name */ Name = 'name', @@ -3464,7 +3539,7 @@ export type GraphiteAutoEmbeddingsConfiguration_Updates = { export type GraphiteMessage = { __typename?: 'graphiteMessage'; /** Timestamp of when the message was sent */ - createdAt: Scalars['graphitetimestampz']; + createdAt: Scalars['timestampz']; /** ID of the message */ id: Scalars['String']; /** Message content */ @@ -3484,9 +3559,9 @@ export type GraphiteMessageResponse = { export type GraphiteMutation = { __typename?: 'graphiteMutation'; /** - * Update an assistant + * Delete an assistant * - * #### Permissions needed + * ## Permissions needed * * select (assistants): * - assistant_id @@ -3496,7 +3571,7 @@ export type GraphiteMutation = { /** * Delete a session * - * #### Permissions needed + * ## Permissions needed * * select (sessions): * - assistant_id @@ -3506,24 +3581,25 @@ export type GraphiteMutation = { /** * Create an assistant * - * #### Permissions needed + * ## Permissions needed * * select (assistants): * - id * insert (assistants): * - user_id + * update (assistants): + * - assistant_id + * - data */ insertAssistant: GraphiteAssistant; /** * Send a message to a developer session. - * If prevMessageID is "", return all messages in the session. - * If prevMessageID is not "", return all messages after prevMessageID. + * If prevMessageID is `""`, return all messages in the session. + * If prevMessageID is not `""`, return all messages after prevMessageID. * - * #### Permissions needed + * ## Permissions needed * - * Permissions are not enforced for developer sessions - * we recommend enforcing permissions via remote schema permissions - * and allow only admins to perform this mutation + * Only admins can send messages to developer sessions */ sendDevMessage: GraphiteMessageResponse; /** @@ -3531,46 +3607,53 @@ export type GraphiteMutation = { * If prevMessageID is "", return all messages in the session. * If prevMessageID is not "", return all messages after prevMessageID. * - * #### Permissions needed + * ## Permissions needed * * select (sessions): * - id * - session_id + * - assistant_id * update (sessions): * - update_at + * select (assistants): + * - id + * - data */ sendMessage: GraphiteMessageResponse; /** * Create a developer session * - * #### Permissions needed + * ## Permissions needed * - * Permissions are not enforced for developer sessions - * we recommend enforcing permissions via remote schema permissions - * and allow only admins to perform this mutation + * Only admins can create developer sessions */ startDevSession: GraphiteSession; /** * Create a session with a given assistant * - * #### Permissions needed + * ## Permissions needed * * select (sessions): * - id * insert (sessions): * - user_id * - assistant_id + * + * select (assistants): + * - id + * - data */ startSession: GraphiteSession; /** * Update an assistant * - * #### Permissions needed + * ## Permissions needed * * select (assistants): * - assistant_id * update (assistants): * - update_at + * - data */ updateAssistant: GraphiteAssistant; }; @@ -3620,27 +3703,29 @@ export type GraphiteQuery = { /** * Retrieve an assistant * - * #### Permissions needed + * ## Permissions needed * * select (assistants): * - id * - assistantID + * - data */ assistant?: Maybe; /** * Retrieve all assistants * - * #### Permissions needed + * ## Permissions needed * * select (assistants): * - id * - assistant_id + * - data */ assistants: Array; /** * Retrieve a session * - * #### Permissions needed + * ## Permissions needed * * select (sessions): * - id @@ -3652,7 +3737,7 @@ export type GraphiteQuery = { /** * Retrieve all messages for a session * - * #### Permissions needed + * ## Permissions needed * * select (sessions): * - id @@ -3664,7 +3749,7 @@ export type GraphiteQuery = { /** * Retrieve all sessions * - * #### Permissions needed + * ## Permissions needed * * select (sessions): * - id @@ -3695,21 +3780,11 @@ export type GraphiteSession = { /** ID of the assistant used in this session */ assistantID: Scalars['String']; /** Messages in this session */ - createdAt: Scalars['graphitetimestampz']; + createdAt: Scalars['timestampz']; /** ID of the session */ sessionID: Scalars['String']; /** ID of the user who started this session */ - userID: Scalars['graphiteuuid']; -}; - -export type Graphite_Search_Movies_Args = { - amount?: InputMaybe; - query?: InputMaybe; -}; - -export type Graphite_Similar_Movies_Args = { - amount?: InputMaybe; - id?: InputMaybe; + userID: Scalars['uuid']; }; export type Jsonb_Cast_Exp = { @@ -3740,348 +3815,6 @@ export type Jsonb_Comparison_Exp = { _nin?: InputMaybe>; }; -/** columns and relationships of "movies" */ -export type Movies = { - __typename?: 'movies'; - budget: Scalars['bigint']; - country: Scalars['String']; - createdAt: Scalars['timestamptz']; - crew: Scalars['String']; - embeddings?: Maybe; - genre: Scalars['String']; - id: Scalars['uuid']; - name: Scalars['String']; - outdated?: Maybe; - overview: Scalars['String']; - revenue: Scalars['bigint']; - score: Scalars['numeric']; - updatedAt: Scalars['timestamptz']; -}; - -export type Movies_Aggregate = { - __typename?: 'movies_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "movies" */ -export type Movies_Aggregate_Fields = { - __typename?: 'movies_aggregate_fields'; - avg?: Maybe; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - - -/** aggregate fields of "movies" */ -export type Movies_Aggregate_FieldsCountArgs = { - columns?: InputMaybe>; - distinct?: InputMaybe; -}; - -/** aggregate avg on columns */ -export type Movies_Avg_Fields = { - __typename?: 'movies_avg_fields'; - budget?: Maybe; - revenue?: Maybe; - score?: Maybe; -}; - -/** Boolean expression to filter rows from the table "movies". All fields are combined with a logical 'AND'. */ -export type Movies_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - budget?: InputMaybe; - country?: InputMaybe; - createdAt?: InputMaybe; - crew?: InputMaybe; - embeddings?: InputMaybe; - genre?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outdated?: InputMaybe; - overview?: InputMaybe; - revenue?: InputMaybe; - score?: InputMaybe; - updatedAt?: InputMaybe; -}; - -/** unique or primary key constraints on table "movies" */ -export enum Movies_Constraint { - /** unique or primary key constraint on columns "id" */ - MoviesPkey = 'movies_pkey' -} - -/** input type for incrementing numeric columns in table "movies" */ -export type Movies_Inc_Input = { - budget?: InputMaybe; - revenue?: InputMaybe; - score?: InputMaybe; -}; - -/** input type for inserting data into table "movies" */ -export type Movies_Insert_Input = { - budget?: InputMaybe; - country?: InputMaybe; - createdAt?: InputMaybe; - crew?: InputMaybe; - embeddings?: InputMaybe; - genre?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outdated?: InputMaybe; - overview?: InputMaybe; - revenue?: InputMaybe; - score?: InputMaybe; - updatedAt?: InputMaybe; -}; - -/** aggregate max on columns */ -export type Movies_Max_Fields = { - __typename?: 'movies_max_fields'; - budget?: Maybe; - country?: Maybe; - createdAt?: Maybe; - crew?: Maybe; - genre?: Maybe; - id?: Maybe; - name?: Maybe; - overview?: Maybe; - revenue?: Maybe; - score?: Maybe; - updatedAt?: Maybe; -}; - -/** aggregate min on columns */ -export type Movies_Min_Fields = { - __typename?: 'movies_min_fields'; - budget?: Maybe; - country?: Maybe; - createdAt?: Maybe; - crew?: Maybe; - genre?: Maybe; - id?: Maybe; - name?: Maybe; - overview?: Maybe; - revenue?: Maybe; - score?: Maybe; - updatedAt?: Maybe; -}; - -/** response of any mutation on the table "movies" */ -export type Movies_Mutation_Response = { - __typename?: 'movies_mutation_response'; - /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']; - /** data from the rows affected by the mutation */ - returning: Array; -}; - -/** on_conflict condition type for table "movies" */ -export type Movies_On_Conflict = { - constraint: Movies_Constraint; - update_columns?: Array; - where?: InputMaybe; -}; - -/** Ordering options when selecting data from "movies". */ -export type Movies_Order_By = { - budget?: InputMaybe; - country?: InputMaybe; - createdAt?: InputMaybe; - crew?: InputMaybe; - embeddings?: InputMaybe; - genre?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outdated?: InputMaybe; - overview?: InputMaybe; - revenue?: InputMaybe; - score?: InputMaybe; - updatedAt?: InputMaybe; -}; - -/** primary key columns input for table: movies */ -export type Movies_Pk_Columns_Input = { - id: Scalars['uuid']; -}; - -/** select columns of table "movies" */ -export enum Movies_Select_Column { - /** column name */ - Budget = 'budget', - /** column name */ - Country = 'country', - /** column name */ - CreatedAt = 'createdAt', - /** column name */ - Crew = 'crew', - /** column name */ - Embeddings = 'embeddings', - /** column name */ - Genre = 'genre', - /** column name */ - Id = 'id', - /** column name */ - Name = 'name', - /** column name */ - Outdated = 'outdated', - /** column name */ - Overview = 'overview', - /** column name */ - Revenue = 'revenue', - /** column name */ - Score = 'score', - /** column name */ - UpdatedAt = 'updatedAt' -} - -/** input type for updating data in table "movies" */ -export type Movies_Set_Input = { - budget?: InputMaybe; - country?: InputMaybe; - createdAt?: InputMaybe; - crew?: InputMaybe; - embeddings?: InputMaybe; - genre?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outdated?: InputMaybe; - overview?: InputMaybe; - revenue?: InputMaybe; - score?: InputMaybe; - updatedAt?: InputMaybe; -}; - -/** aggregate stddev on columns */ -export type Movies_Stddev_Fields = { - __typename?: 'movies_stddev_fields'; - budget?: Maybe; - revenue?: Maybe; - score?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Movies_Stddev_Pop_Fields = { - __typename?: 'movies_stddev_pop_fields'; - budget?: Maybe; - revenue?: Maybe; - score?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Movies_Stddev_Samp_Fields = { - __typename?: 'movies_stddev_samp_fields'; - budget?: Maybe; - revenue?: Maybe; - score?: Maybe; -}; - -/** Streaming cursor of the table "movies" */ -export type Movies_Stream_Cursor_Input = { - /** Stream column input with initial value */ - initial_value: Movies_Stream_Cursor_Value_Input; - /** cursor ordering */ - ordering?: InputMaybe; -}; - -/** Initial value of the column from where the streaming should start */ -export type Movies_Stream_Cursor_Value_Input = { - budget?: InputMaybe; - country?: InputMaybe; - createdAt?: InputMaybe; - crew?: InputMaybe; - embeddings?: InputMaybe; - genre?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outdated?: InputMaybe; - overview?: InputMaybe; - revenue?: InputMaybe; - score?: InputMaybe; - updatedAt?: InputMaybe; -}; - -/** aggregate sum on columns */ -export type Movies_Sum_Fields = { - __typename?: 'movies_sum_fields'; - budget?: Maybe; - revenue?: Maybe; - score?: Maybe; -}; - -/** update columns of table "movies" */ -export enum Movies_Update_Column { - /** column name */ - Budget = 'budget', - /** column name */ - Country = 'country', - /** column name */ - CreatedAt = 'createdAt', - /** column name */ - Crew = 'crew', - /** column name */ - Embeddings = 'embeddings', - /** column name */ - Genre = 'genre', - /** column name */ - Id = 'id', - /** column name */ - Name = 'name', - /** column name */ - Outdated = 'outdated', - /** column name */ - Overview = 'overview', - /** column name */ - Revenue = 'revenue', - /** column name */ - Score = 'score', - /** column name */ - UpdatedAt = 'updatedAt' -} - -export type Movies_Updates = { - /** increments the numeric columns with given value of the filtered values */ - _inc?: InputMaybe; - /** sets the columns of the filtered rows to the given values */ - _set?: InputMaybe; - /** filter the rows which have to be updated */ - where: Movies_Bool_Exp; -}; - -/** aggregate var_pop on columns */ -export type Movies_Var_Pop_Fields = { - __typename?: 'movies_var_pop_fields'; - budget?: Maybe; - revenue?: Maybe; - score?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Movies_Var_Samp_Fields = { - __typename?: 'movies_var_samp_fields'; - budget?: Maybe; - revenue?: Maybe; - score?: Maybe; -}; - -/** aggregate variance on columns */ -export type Movies_Variance_Fields = { - __typename?: 'movies_variance_fields'; - budget?: Maybe; - revenue?: Maybe; - score?: Maybe; -}; - /** mutation root */ export type Mutation_Root = { __typename?: 'mutation_root'; @@ -4157,10 +3890,6 @@ export type Mutation_Root = { deleteGraphiteAutoEmbeddingsConfiguration?: Maybe; /** delete data from the table: "graphite.auto_embeddings_configuration" */ deleteGraphiteAutoEmbeddingsConfigurations?: Maybe; - /** delete single row from the table: "movies" */ - deleteMovie?: Maybe; - /** delete data from the table: "movies" */ - deleteMovies?: Maybe; /** delete single row from the table: "auth.users" */ deleteUser?: Maybe; /** delete data from the table: "auth.users" */ @@ -4169,6 +3898,10 @@ export type Mutation_Root = { deleteVirus?: Maybe; /** delete data from the table: "storage.virus" */ deleteViruses?: Maybe; + /** delete data from the table: "todos" */ + delete_todos?: Maybe; + /** delete single row from the table: "todos" */ + delete_todos_by_pk?: Maybe; graphite?: Maybe; /** insert a single row into the table: "auth.providers" */ insertAuthProvider?: Maybe; @@ -4214,10 +3947,6 @@ export type Mutation_Root = { insertGraphiteAutoEmbeddingsConfiguration?: Maybe; /** insert data into the table: "graphite.auto_embeddings_configuration" */ insertGraphiteAutoEmbeddingsConfigurations?: Maybe; - /** insert a single row into the table: "movies" */ - insertMovie?: Maybe; - /** insert data into the table: "movies" */ - insertMovies?: Maybe; /** insert a single row into the table: "auth.users" */ insertUser?: Maybe; /** insert data into the table: "auth.users" */ @@ -4226,6 +3955,10 @@ export type Mutation_Root = { insertVirus?: Maybe; /** insert data into the table: "storage.virus" */ insertViruses?: Maybe; + /** insert data into the table: "todos" */ + insert_todos?: Maybe; + /** insert a single row into the table: "todos" */ + insert_todos_one?: Maybe; /** update single row of the table: "auth.providers" */ updateAuthProvider?: Maybe; /** update single row of the table: "auth.provider_requests" */ @@ -4272,12 +4005,6 @@ export type Mutation_Root = { updateGraphiteAutoEmbeddingsConfigurations?: Maybe; /** update multiples rows of table: "graphite.auto_embeddings_configuration" */ updateManyGraphiteAutoEmbeddingsConfigurations?: Maybe>>; - /** update single row of the table: "movies" */ - updateMovie?: Maybe; - /** update data of the table: "movies" */ - updateMovies?: Maybe; - /** update multiples rows of table: "movies" */ - updateMoviesMany?: Maybe>>; /** update single row of the table: "auth.users" */ updateUser?: Maybe; /** update data of the table: "auth.users" */ @@ -4306,6 +4033,12 @@ export type Mutation_Root = { update_buckets_many?: Maybe>>; /** update multiples rows of table: "storage.files" */ update_files_many?: Maybe>>; + /** update data of the table: "todos" */ + update_todos?: Maybe; + /** update single row of the table: "todos" */ + update_todos_by_pk?: Maybe; + /** update multiples rows of table: "todos" */ + update_todos_many?: Maybe>>; /** update multiples rows of table: "auth.users" */ update_users_many?: Maybe>>; /** update multiples rows of table: "storage.virus" */ @@ -4367,6 +4100,11 @@ export type Mutation_Root_InsertGraphiteSessionsArgs = { /** mutation root */ export type Mutation_Root_UpdateGraphiteAssistantArgs = { + _append?: InputMaybe<_GraphiteAssistants_Append_Input>; + _delete_at_path?: InputMaybe<_GraphiteAssistants_Delete_At_Path_Input>; + _delete_elem?: InputMaybe<_GraphiteAssistants_Delete_Elem_Input>; + _delete_key?: InputMaybe<_GraphiteAssistants_Delete_Key_Input>; + _prepend?: InputMaybe<_GraphiteAssistants_Prepend_Input>; _set?: InputMaybe<_GraphiteAssistants_Set_Input>; pk_columns: _GraphiteAssistants_Pk_Columns_Input; }; @@ -4374,6 +4112,11 @@ export type Mutation_Root_UpdateGraphiteAssistantArgs = { /** mutation root */ export type Mutation_Root_UpdateGraphiteAssistantsArgs = { + _append?: InputMaybe<_GraphiteAssistants_Append_Input>; + _delete_at_path?: InputMaybe<_GraphiteAssistants_Delete_At_Path_Input>; + _delete_elem?: InputMaybe<_GraphiteAssistants_Delete_Elem_Input>; + _delete_key?: InputMaybe<_GraphiteAssistants_Delete_Key_Input>; + _prepend?: InputMaybe<_GraphiteAssistants_Prepend_Input>; _set?: InputMaybe<_GraphiteAssistants_Set_Input>; where: _GraphiteAssistants_Bool_Exp; }; @@ -4538,38 +4281,38 @@ export type Mutation_RootDeleteGraphiteAutoEmbeddingsConfigurationsArgs = { /** mutation root */ -export type Mutation_RootDeleteMovieArgs = { +export type Mutation_RootDeleteUserArgs = { id: Scalars['uuid']; }; /** mutation root */ -export type Mutation_RootDeleteMoviesArgs = { - where: Movies_Bool_Exp; +export type Mutation_RootDeleteUsersArgs = { + where: Users_Bool_Exp; }; /** mutation root */ -export type Mutation_RootDeleteUserArgs = { +export type Mutation_RootDeleteVirusArgs = { id: Scalars['uuid']; }; /** mutation root */ -export type Mutation_RootDeleteUsersArgs = { - where: Users_Bool_Exp; +export type Mutation_RootDeleteVirusesArgs = { + where: Virus_Bool_Exp; }; /** mutation root */ -export type Mutation_RootDeleteVirusArgs = { - id: Scalars['uuid']; +export type Mutation_RootDelete_TodosArgs = { + where: Todos_Bool_Exp; }; /** mutation root */ -export type Mutation_RootDeleteVirusesArgs = { - where: Virus_Bool_Exp; +export type Mutation_RootDelete_Todos_By_PkArgs = { + id: Scalars['uuid']; }; @@ -4727,20 +4470,6 @@ export type Mutation_RootInsertGraphiteAutoEmbeddingsConfigurationsArgs = { }; -/** mutation root */ -export type Mutation_RootInsertMovieArgs = { - object: Movies_Insert_Input; - on_conflict?: InputMaybe; -}; - - -/** mutation root */ -export type Mutation_RootInsertMoviesArgs = { - objects: Array; - on_conflict?: InputMaybe; -}; - - /** mutation root */ export type Mutation_RootInsertUserArgs = { object: Users_Insert_Input; @@ -4769,6 +4498,20 @@ export type Mutation_RootInsertVirusesArgs = { }; +/** mutation root */ +export type Mutation_RootInsert_TodosArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Todos_OneArgs = { + object: Todos_Insert_Input; + on_conflict?: InputMaybe; +}; + + /** mutation root */ export type Mutation_RootUpdateAuthProviderArgs = { _set?: InputMaybe; @@ -4965,28 +4708,6 @@ export type Mutation_RootUpdateManyGraphiteAutoEmbeddingsConfigurationsArgs = { }; -/** mutation root */ -export type Mutation_RootUpdateMovieArgs = { - _inc?: InputMaybe; - _set?: InputMaybe; - pk_columns: Movies_Pk_Columns_Input; -}; - - -/** mutation root */ -export type Mutation_RootUpdateMoviesArgs = { - _inc?: InputMaybe; - _set?: InputMaybe; - where: Movies_Bool_Exp; -}; - - -/** mutation root */ -export type Mutation_RootUpdateMoviesManyArgs = { - updates: Array; -}; - - /** mutation root */ export type Mutation_RootUpdateUserArgs = { _append?: InputMaybe; @@ -5095,6 +4816,26 @@ export type Mutation_RootUpdate_Files_ManyArgs = { }; +/** mutation root */ +export type Mutation_RootUpdate_TodosArgs = { + _set?: InputMaybe; + where: Todos_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Todos_By_PkArgs = { + _set?: InputMaybe; + pk_columns: Todos_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Todos_ManyArgs = { + updates: Array; +}; + + /** mutation root */ export type Mutation_RootUpdate_Users_ManyArgs = { updates: Array; @@ -5106,19 +4847,6 @@ export type Mutation_RootUpdate_Virus_ManyArgs = { updates: Array; }; -/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ -export type Numeric_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - /** column ordering options */ export enum Order_By { /** in ascending order, nulls last */ @@ -5216,20 +4944,12 @@ export type Query_Root = { graphiteAutoEmbeddingsConfigurationAggregate: GraphiteAutoEmbeddingsConfiguration_Aggregate; /** fetch data from the table: "graphite.auto_embeddings_configuration" */ graphiteAutoEmbeddingsConfigurations: Array; - /** execute function "graphite_search_movies" which returns "movies" */ - graphiteSearchMovies: Array; - /** execute function "graphite_search_movies" and query aggregates on result of table type "movies" */ - graphiteSearchMoviesAggregate: Movies_Aggregate; - /** execute function "graphite_similar_movies" which returns "movies" */ - graphiteSimilarMovies: Array; - /** execute function "graphite_similar_movies" and query aggregates on result of table type "movies" */ - graphiteSimilarMoviesAggregate: Movies_Aggregate; - /** fetch data from the table: "movies" using primary key columns */ - movie?: Maybe; - /** fetch data from the table: "movies" */ - movies: Array; - /** fetch aggregated fields from the table: "movies" */ - moviesAggregate: Movies_Aggregate; + /** fetch data from the table: "todos" */ + todos: Array; + /** fetch aggregated fields from the table: "todos" */ + todos_aggregate: Todos_Aggregate; + /** fetch data from the table: "todos" using primary key columns */ + todos_by_pk?: Maybe; /** fetch data from the table: "auth.users" using primary key columns */ user?: Maybe; /** fetch data from the table: "auth.users" */ @@ -5544,69 +5264,29 @@ export type Query_RootGraphiteAutoEmbeddingsConfigurationsArgs = { }; -export type Query_RootGraphiteSearchMoviesArgs = { - args: Graphite_Search_Movies_Args; - distinct_on?: InputMaybe>; +export type Query_RootTodosArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type Query_RootGraphiteSearchMoviesAggregateArgs = { - args: Graphite_Search_Movies_Args; - distinct_on?: InputMaybe>; +export type Query_RootTodos_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type Query_RootGraphiteSimilarMoviesArgs = { - args: Graphite_Similar_Movies_Args; - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootGraphiteSimilarMoviesAggregateArgs = { - args: Graphite_Similar_Movies_Args; - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootMovieArgs = { +export type Query_RootTodos_By_PkArgs = { id: Scalars['uuid']; }; -export type Query_RootMoviesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootMoviesAggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - export type Query_RootUserArgs = { id: Scalars['uuid']; }; @@ -5758,22 +5438,14 @@ export type Subscription_Root = { graphiteAutoEmbeddingsConfigurationStream: Array; /** fetch data from the table: "graphite.auto_embeddings_configuration" */ graphiteAutoEmbeddingsConfigurations: Array; - /** execute function "graphite_search_movies" which returns "movies" */ - graphiteSearchMovies: Array; - /** execute function "graphite_search_movies" and query aggregates on result of table type "movies" */ - graphiteSearchMoviesAggregate: Movies_Aggregate; - /** execute function "graphite_similar_movies" which returns "movies" */ - graphiteSimilarMovies: Array; - /** execute function "graphite_similar_movies" and query aggregates on result of table type "movies" */ - graphiteSimilarMoviesAggregate: Movies_Aggregate; - /** fetch data from the table: "movies" using primary key columns */ - movie?: Maybe; - /** fetch data from the table: "movies" */ - movies: Array; - /** fetch aggregated fields from the table: "movies" */ - moviesAggregate: Movies_Aggregate; - /** fetch data from the table in a streaming manner: "movies" */ - moviesStream: Array; + /** fetch data from the table: "todos" */ + todos: Array; + /** fetch aggregated fields from the table: "todos" */ + todos_aggregate: Todos_Aggregate; + /** fetch data from the table: "todos" using primary key columns */ + todos_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "todos" */ + todos_stream: Array; /** fetch data from the table: "auth.users" using primary key columns */ user?: Maybe; /** fetch data from the table: "auth.users" */ @@ -6183,73 +5855,33 @@ export type Subscription_RootGraphiteAutoEmbeddingsConfigurationsArgs = { }; -export type Subscription_RootGraphiteSearchMoviesArgs = { - args: Graphite_Search_Movies_Args; - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootGraphiteSearchMoviesAggregateArgs = { - args: Graphite_Search_Movies_Args; - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootGraphiteSimilarMoviesArgs = { - args: Graphite_Similar_Movies_Args; - distinct_on?: InputMaybe>; +export type Subscription_RootTodosArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type Subscription_RootGraphiteSimilarMoviesAggregateArgs = { - args: Graphite_Similar_Movies_Args; - distinct_on?: InputMaybe>; +export type Subscription_RootTodos_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type Subscription_RootMovieArgs = { +export type Subscription_RootTodos_By_PkArgs = { id: Scalars['uuid']; }; -export type Subscription_RootMoviesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootMoviesAggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootMoviesStreamArgs = { +export type Subscription_RootTodos_StreamArgs = { batch_size: Scalars['Int']; - cursor: Array>; - where?: InputMaybe; + cursor: Array>; + where?: InputMaybe; }; @@ -6312,6 +5944,19 @@ export type Subscription_RootVirusesAggregateArgs = { where?: InputMaybe; }; +/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ +export type Timestamp_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + /** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */ export type Timestamptz_Comparison_Exp = { _eq?: InputMaybe; @@ -6325,6 +5970,208 @@ export type Timestamptz_Comparison_Exp = { _nin?: InputMaybe>; }; +/** columns and relationships of "todos" */ +export type Todos = { + __typename?: 'todos'; + /** An object relationship */ + attachment?: Maybe; + createdAt: Scalars['timestamp']; + done: Scalars['Boolean']; + file_id?: Maybe; + id: Scalars['uuid']; + title: Scalars['String']; + updatedAt: Scalars['timestamptz']; + /** An object relationship */ + user: Users; + user_id: Scalars['uuid']; +}; + +/** aggregated selection of "todos" */ +export type Todos_Aggregate = { + __typename?: 'todos_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "todos" */ +export type Todos_Aggregate_Fields = { + __typename?: 'todos_aggregate_fields'; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "todos" */ +export type Todos_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "todos". All fields are combined with a logical 'AND'. */ +export type Todos_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + attachment?: InputMaybe; + createdAt?: InputMaybe; + done?: InputMaybe; + file_id?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; + user?: InputMaybe; + user_id?: InputMaybe; +}; + +/** unique or primary key constraints on table "todos" */ +export enum Todos_Constraint { + /** unique or primary key constraint on columns "id" */ + TodosPkey = 'todos_pkey' +} + +/** input type for inserting data into table "todos" */ +export type Todos_Insert_Input = { + attachment?: InputMaybe; + createdAt?: InputMaybe; + done?: InputMaybe; + file_id?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; + user?: InputMaybe; + user_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Todos_Max_Fields = { + __typename?: 'todos_max_fields'; + createdAt?: Maybe; + file_id?: Maybe; + id?: Maybe; + title?: Maybe; + updatedAt?: Maybe; + user_id?: Maybe; +}; + +/** aggregate min on columns */ +export type Todos_Min_Fields = { + __typename?: 'todos_min_fields'; + createdAt?: Maybe; + file_id?: Maybe; + id?: Maybe; + title?: Maybe; + updatedAt?: Maybe; + user_id?: Maybe; +}; + +/** response of any mutation on the table "todos" */ +export type Todos_Mutation_Response = { + __typename?: 'todos_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** on_conflict condition type for table "todos" */ +export type Todos_On_Conflict = { + constraint: Todos_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "todos". */ +export type Todos_Order_By = { + attachment?: InputMaybe; + createdAt?: InputMaybe; + done?: InputMaybe; + file_id?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; + user?: InputMaybe; + user_id?: InputMaybe; +}; + +/** primary key columns input for table: todos */ +export type Todos_Pk_Columns_Input = { + id: Scalars['uuid']; +}; + +/** select columns of table "todos" */ +export enum Todos_Select_Column { + /** column name */ + CreatedAt = 'createdAt', + /** column name */ + Done = 'done', + /** column name */ + FileId = 'file_id', + /** column name */ + Id = 'id', + /** column name */ + Title = 'title', + /** column name */ + UpdatedAt = 'updatedAt', + /** column name */ + UserId = 'user_id' +} + +/** input type for updating data in table "todos" */ +export type Todos_Set_Input = { + createdAt?: InputMaybe; + done?: InputMaybe; + file_id?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; + user_id?: InputMaybe; +}; + +/** Streaming cursor of the table "todos" */ +export type Todos_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Todos_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Todos_Stream_Cursor_Value_Input = { + createdAt?: InputMaybe; + done?: InputMaybe; + file_id?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; + user_id?: InputMaybe; +}; + +/** update columns of table "todos" */ +export enum Todos_Update_Column { + /** column name */ + CreatedAt = 'createdAt', + /** column name */ + Done = 'done', + /** column name */ + FileId = 'file_id', + /** column name */ + Id = 'id', + /** column name */ + Title = 'title', + /** column name */ + UpdatedAt = 'updatedAt', + /** column name */ + UserId = 'user_id' +} + +export type Todos_Updates = { + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Todos_Bool_Exp; +}; + /** User account information. Don't modify its structure as Hasura Auth relies on it to function properly. */ export type Users = { __typename?: 'users'; @@ -7020,19 +6867,6 @@ export type Uuid_Comparison_Exp = { _nin?: InputMaybe>; }; -/** Boolean expression to compare columns of type "vector". All fields are combined with logical 'AND'. */ -export type Vector_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - /** columns and relationships of "storage.virus" */ export type Virus = { __typename?: 'virus'; @@ -7316,10 +7150,11 @@ export type GetGraphiteAutoEmbeddingsConfigurationsQueryVariables = Exact<{ }>; -export type GetGraphiteAutoEmbeddingsConfigurationsQuery = { __typename?: 'query_root', graphiteAutoEmbeddingsConfigurations: Array<{ __typename?: 'graphiteAutoEmbeddingsConfiguration', id: any, name: string, schemaName: string, tableName: string, columnName: string, query?: string | null, mutation?: string | null, createdAt: any, updatedAt: any }>, graphiteAutoEmbeddingsConfigurationAggregate: { __typename?: 'graphiteAutoEmbeddingsConfiguration_aggregate', aggregate?: { __typename?: 'graphiteAutoEmbeddingsConfiguration_aggregate_fields', count: number } | null } }; +export type GetGraphiteAutoEmbeddingsConfigurationsQuery = { __typename?: 'query_root', graphiteAutoEmbeddingsConfigurations: Array<{ __typename?: 'graphiteAutoEmbeddingsConfiguration', id: any, name: string, model: any, schemaName: string, tableName: string, columnName: string, query?: string | null, mutation?: string | null, createdAt: any, updatedAt: any }>, graphiteAutoEmbeddingsConfigurationAggregate: { __typename?: 'graphiteAutoEmbeddingsConfiguration_aggregate', aggregate?: { __typename?: 'graphiteAutoEmbeddingsConfiguration_aggregate_fields', count: number } | null } }; export type InsertGraphiteAutoEmbeddingsConfigurationMutationVariables = Exact<{ name?: InputMaybe; + model?: InputMaybe; schemaName?: InputMaybe; tableName?: InputMaybe; columnName?: InputMaybe; @@ -7333,6 +7168,7 @@ export type InsertGraphiteAutoEmbeddingsConfigurationMutation = { __typename?: ' export type UpdateGraphiteAutoEmbeddingsConfigurationMutationVariables = Exact<{ id: Scalars['uuid']; name?: InputMaybe; + model?: InputMaybe; schemaName?: InputMaybe; tableName?: InputMaybe; columnName?: InputMaybe; @@ -7341,7 +7177,7 @@ export type UpdateGraphiteAutoEmbeddingsConfigurationMutationVariables = Exact<{ }>; -export type UpdateGraphiteAutoEmbeddingsConfigurationMutation = { __typename?: 'mutation_root', updateGraphiteAutoEmbeddingsConfiguration?: { __typename?: 'graphiteAutoEmbeddingsConfiguration', id: any, name: string, schemaName: string, tableName: string, columnName: string, query?: string | null, mutation?: string | null } | null }; +export type UpdateGraphiteAutoEmbeddingsConfigurationMutation = { __typename?: 'mutation_root', updateGraphiteAutoEmbeddingsConfiguration?: { __typename?: 'graphiteAutoEmbeddingsConfiguration', id: any, name: string, model: any, schemaName: string, tableName: string, columnName: string, query?: string | null, mutation?: string | null } | null }; export type SendDevMessageMutationVariables = Exact<{ sessionId: Scalars['String']; @@ -7604,6 +7440,7 @@ export const GetGraphiteAutoEmbeddingsConfigurationsDocument = gql` graphiteAutoEmbeddingsConfigurations(limit: $limit, offset: $offset) { id name + model schemaName tableName columnName @@ -7652,9 +7489,9 @@ export function refetchGetGraphiteAutoEmbeddingsConfigurationsQuery(variables: G return { query: GetGraphiteAutoEmbeddingsConfigurationsDocument, variables: variables } } export const InsertGraphiteAutoEmbeddingsConfigurationDocument = gql` - mutation insertGraphiteAutoEmbeddingsConfiguration($name: String, $schemaName: String, $tableName: String, $columnName: String, $query: String, $mutation: String) { + mutation insertGraphiteAutoEmbeddingsConfiguration($name: String, $model: embedding_model_enum, $schemaName: String, $tableName: String, $columnName: String, $query: String, $mutation: String) { insertGraphiteAutoEmbeddingsConfiguration( - object: {name: $name, schemaName: $schemaName, tableName: $tableName, columnName: $columnName, query: $query, mutation: $mutation} + object: {name: $name, model: $model, schemaName: $schemaName, tableName: $tableName, columnName: $columnName, query: $query, mutation: $mutation} ) { id } @@ -7676,6 +7513,7 @@ export type InsertGraphiteAutoEmbeddingsConfigurationMutationFn = Apollo.Mutatio * const [insertGraphiteAutoEmbeddingsConfigurationMutation, { data, loading, error }] = useInsertGraphiteAutoEmbeddingsConfigurationMutation({ * variables: { * name: // value for 'name' + * model: // value for 'model' * schemaName: // value for 'schemaName' * tableName: // value for 'tableName' * columnName: // value for 'columnName' @@ -7692,13 +7530,14 @@ export type InsertGraphiteAutoEmbeddingsConfigurationMutationHookResult = Return export type InsertGraphiteAutoEmbeddingsConfigurationMutationResult = Apollo.MutationResult; export type InsertGraphiteAutoEmbeddingsConfigurationMutationOptions = Apollo.BaseMutationOptions; export const UpdateGraphiteAutoEmbeddingsConfigurationDocument = gql` - mutation updateGraphiteAutoEmbeddingsConfiguration($id: uuid!, $name: String, $schemaName: String, $tableName: String, $columnName: String, $query: String, $mutation: String) { + mutation updateGraphiteAutoEmbeddingsConfiguration($id: uuid!, $name: String, $model: embedding_model_enum, $schemaName: String, $tableName: String, $columnName: String, $query: String, $mutation: String) { updateGraphiteAutoEmbeddingsConfiguration( pk_columns: {id: $id} - _set: {name: $name, schemaName: $schemaName, tableName: $tableName, columnName: $columnName, query: $query, mutation: $mutation} + _set: {name: $name, model: $model, schemaName: $schemaName, tableName: $tableName, columnName: $columnName, query: $query, mutation: $mutation} ) { id name + model schemaName tableName columnName @@ -7724,6 +7563,7 @@ export type UpdateGraphiteAutoEmbeddingsConfigurationMutationFn = Apollo.Mutatio * variables: { * id: // value for 'id' * name: // value for 'name' + * model: // value for 'model' * schemaName: // value for 'schemaName' * tableName: // value for 'tableName' * columnName: // value for 'columnName'