From d3a08984bcb22b6cd2e35b6fad3317d29eaea39d Mon Sep 17 00:00:00 2001 From: Louis <133622055+louis-jan@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:33:54 +0700 Subject: [PATCH] chore: add generated graphql schema (#70) --- web-client/.gitignore | 3 - web-client/graphql/generated/gql.ts | 137 + web-client/graphql/generated/graphql.ts | 3774 +++++++++++++++++++++++ web-client/graphql/generated/index.ts | 1 + 4 files changed, 3912 insertions(+), 3 deletions(-) create mode 100644 web-client/graphql/generated/gql.ts create mode 100644 web-client/graphql/generated/graphql.ts create mode 100644 web-client/graphql/generated/index.ts diff --git a/web-client/.gitignore b/web-client/.gitignore index f3079381e..824527df8 100644 --- a/web-client/.gitignore +++ b/web-client/.gitignore @@ -1,8 +1,5 @@ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. -# apollo graphql -/graphql/generated - # dependencies /node_modules /.pnp diff --git a/web-client/graphql/generated/gql.ts b/web-client/graphql/generated/gql.ts new file mode 100644 index 000000000..f1744607f --- /dev/null +++ b/web-client/graphql/generated/gql.ts @@ -0,0 +1,137 @@ +/* eslint-disable */ +import * as types from './graphql'; +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; + +/** + * Map of all GraphQL operations in the project. + * + * This map has several performance disadvantages: + * 1. It is not tree-shakeable, so it will include all operations in the project. + * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle. + * 3. It does not support dead code elimination, so it will add unused operations. + * + * Therefore it is highly recommended to use the babel or swc plugin for production. + */ +const documents = { + "fragment CollectionDetail on collections {\n slug\n name\n}": types.CollectionDetailFragmentDoc, + "fragment ConversationDetail on conversations {\n id\n product_id\n user_id\n last_image_url\n last_text_message\n created_at\n updated_at\n conversation_product {\n ...ProductDetail\n }\n}": types.ConversationDetailFragmentDoc, + "fragment MessageMedia on message_medias {\n id\n message_id\n media_url\n mime_type\n updated_at\n}": types.MessageMediaFragmentDoc, + "fragment MessageDetail on messages {\n id\n conversation_id\n sender\n sender_name\n sender_avatar_url\n content\n message_type\n message_sender_type\n created_at\n updated_at\n status\n message_medias {\n ...MessageMedia\n }\n}": types.MessageDetailFragmentDoc, + "fragment ProductDetail on products {\n id\n name\n slug\n description\n long_description\n technical_description\n image_url\n author\n greeting\n source_url\n version\n inputs\n outputs\n nsfw\n}": types.ProductDetailFragmentDoc, + "fragment PromptDetail on prompts {\n slug\n content\n image_url\n}": types.PromptDetailFragmentDoc, + "mutation createConversation($data: conversations_insert_input!) {\n insert_conversations_one(object: $data) {\n ...ConversationDetail\n }\n}": types.CreateConversationDocument, + "mutation createMessage($data: messages_insert_input!) {\n insert_messages_one(object: $data) {\n ...MessageDetail\n }\n}": types.CreateMessageDocument, + "mutation deleteConversation($id: uuid!) {\n delete_conversations_by_pk(id: $id) {\n id\n }\n}": types.DeleteConversationDocument, + "mutation generateImage($model: String = \"\", $neg_prompt: String = \"\", $prompt: String = \"\", $seed: Int = 10, $steps: Int = 10, $width: Int = 512, $height: Int = 512) {\n imageGeneration(\n input: {model: $model, neg_prompt: $neg_prompt, prompt: $prompt, seed: $seed, steps: $steps, width: $width, height: $height}\n ) {\n url\n }\n}": types.GenerateImageDocument, + "mutation updateConversation($id: uuid!, $lastMessageText: String, $lastMessageUrl: String) {\n update_conversations_by_pk(\n pk_columns: {id: $id}\n _set: {last_text_message: $lastMessageText, last_image_url: $lastMessageUrl}\n ) {\n ...ConversationDetail\n }\n}": types.UpdateConversationDocument, + "mutation updateMessage($id: uuid = \"\", $data: messages_set_input!) {\n update_messages_by_pk(pk_columns: {id: $id}, _set: $data) {\n ...MessageDetail\n }\n}": types.UpdateMessageDocument, + "query getCollections {\n collections {\n ...CollectionDetail\n collection_products {\n products {\n ...ProductDetail\n product_prompts {\n prompts {\n ...PromptDetail\n }\n }\n }\n }\n }\n}": types.GetCollectionsDocument, + "query getConversationMessages($conversation_id: uuid = \"\", $limit: Int = 100, $offset: Int = 100) {\n messages(\n offset: $offset\n limit: $limit\n where: {conversation_id: {_eq: $conversation_id}}\n order_by: {updated_at: desc}\n ) {\n ...MessageDetail\n }\n}": types.GetConversationMessagesDocument, + "query getConversations {\n conversations {\n ...ConversationDetail\n conversation_messages {\n ...MessageDetail\n message_medias {\n ...MessageMedia\n }\n }\n }\n}": types.GetConversationsDocument, + "query getProductsByCollectionSlug($slug: String = \"\") {\n products(where: {product_collections: {collections: {slug: {_eq: $slug}}}}) {\n ...ProductDetail\n product_prompts {\n prompts {\n ...PromptDetail\n }\n }\n product_collections {\n collections {\n ...CollectionDetail\n }\n }\n }\n}": types.GetProductsByCollectionSlugDocument, + "query getProductPrompts($productSlug: String = \"\") {\n prompts(where: {prompt_products: {products: {slug: {_eq: $productSlug}}}}) {\n ...PromptDetail\n }\n}": types.GetProductPromptsDocument, + "query getProducts {\n products {\n ...ProductDetail\n product_prompts {\n prompts {\n ...PromptDetail\n }\n }\n product_collections {\n collections {\n ...CollectionDetail\n }\n }\n }\n}": types.GetProductsDocument, + "query getProductsIn($_in: [String!] = \"\") {\n products(where: {slug: {_in: $_in}}) {\n ...ProductDetail\n }\n}": types.GetProductsInDocument, + "subscription subscribeMessage($id: uuid = \"\") {\n messages_by_pk(id: $id) {\n content\n status\n }\n}": types.SubscribeMessageDocument, +}; + +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + * + * + * @example + * ```ts + * const query = gql(`query GetUser($id: ID!) { user(id: $id) { name } }`); + * ``` + * + * The query argument is unknown! + * Please regenerate the types. + */ +export function gql(source: string): unknown; + +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "fragment CollectionDetail on collections {\n slug\n name\n}"): (typeof documents)["fragment CollectionDetail on collections {\n slug\n name\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "fragment ConversationDetail on conversations {\n id\n product_id\n user_id\n last_image_url\n last_text_message\n created_at\n updated_at\n conversation_product {\n ...ProductDetail\n }\n}"): (typeof documents)["fragment ConversationDetail on conversations {\n id\n product_id\n user_id\n last_image_url\n last_text_message\n created_at\n updated_at\n conversation_product {\n ...ProductDetail\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "fragment MessageMedia on message_medias {\n id\n message_id\n media_url\n mime_type\n updated_at\n}"): (typeof documents)["fragment MessageMedia on message_medias {\n id\n message_id\n media_url\n mime_type\n updated_at\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "fragment MessageDetail on messages {\n id\n conversation_id\n sender\n sender_name\n sender_avatar_url\n content\n message_type\n message_sender_type\n created_at\n updated_at\n status\n message_medias {\n ...MessageMedia\n }\n}"): (typeof documents)["fragment MessageDetail on messages {\n id\n conversation_id\n sender\n sender_name\n sender_avatar_url\n content\n message_type\n message_sender_type\n created_at\n updated_at\n status\n message_medias {\n ...MessageMedia\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "fragment ProductDetail on products {\n id\n name\n slug\n description\n long_description\n technical_description\n image_url\n author\n greeting\n source_url\n version\n inputs\n outputs\n nsfw\n}"): (typeof documents)["fragment ProductDetail on products {\n id\n name\n slug\n description\n long_description\n technical_description\n image_url\n author\n greeting\n source_url\n version\n inputs\n outputs\n nsfw\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "fragment PromptDetail on prompts {\n slug\n content\n image_url\n}"): (typeof documents)["fragment PromptDetail on prompts {\n slug\n content\n image_url\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "mutation createConversation($data: conversations_insert_input!) {\n insert_conversations_one(object: $data) {\n ...ConversationDetail\n }\n}"): (typeof documents)["mutation createConversation($data: conversations_insert_input!) {\n insert_conversations_one(object: $data) {\n ...ConversationDetail\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "mutation createMessage($data: messages_insert_input!) {\n insert_messages_one(object: $data) {\n ...MessageDetail\n }\n}"): (typeof documents)["mutation createMessage($data: messages_insert_input!) {\n insert_messages_one(object: $data) {\n ...MessageDetail\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "mutation deleteConversation($id: uuid!) {\n delete_conversations_by_pk(id: $id) {\n id\n }\n}"): (typeof documents)["mutation deleteConversation($id: uuid!) {\n delete_conversations_by_pk(id: $id) {\n id\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "mutation generateImage($model: String = \"\", $neg_prompt: String = \"\", $prompt: String = \"\", $seed: Int = 10, $steps: Int = 10, $width: Int = 512, $height: Int = 512) {\n imageGeneration(\n input: {model: $model, neg_prompt: $neg_prompt, prompt: $prompt, seed: $seed, steps: $steps, width: $width, height: $height}\n ) {\n url\n }\n}"): (typeof documents)["mutation generateImage($model: String = \"\", $neg_prompt: String = \"\", $prompt: String = \"\", $seed: Int = 10, $steps: Int = 10, $width: Int = 512, $height: Int = 512) {\n imageGeneration(\n input: {model: $model, neg_prompt: $neg_prompt, prompt: $prompt, seed: $seed, steps: $steps, width: $width, height: $height}\n ) {\n url\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "mutation updateConversation($id: uuid!, $lastMessageText: String, $lastMessageUrl: String) {\n update_conversations_by_pk(\n pk_columns: {id: $id}\n _set: {last_text_message: $lastMessageText, last_image_url: $lastMessageUrl}\n ) {\n ...ConversationDetail\n }\n}"): (typeof documents)["mutation updateConversation($id: uuid!, $lastMessageText: String, $lastMessageUrl: String) {\n update_conversations_by_pk(\n pk_columns: {id: $id}\n _set: {last_text_message: $lastMessageText, last_image_url: $lastMessageUrl}\n ) {\n ...ConversationDetail\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "mutation updateMessage($id: uuid = \"\", $data: messages_set_input!) {\n update_messages_by_pk(pk_columns: {id: $id}, _set: $data) {\n ...MessageDetail\n }\n}"): (typeof documents)["mutation updateMessage($id: uuid = \"\", $data: messages_set_input!) {\n update_messages_by_pk(pk_columns: {id: $id}, _set: $data) {\n ...MessageDetail\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "query getCollections {\n collections {\n ...CollectionDetail\n collection_products {\n products {\n ...ProductDetail\n product_prompts {\n prompts {\n ...PromptDetail\n }\n }\n }\n }\n }\n}"): (typeof documents)["query getCollections {\n collections {\n ...CollectionDetail\n collection_products {\n products {\n ...ProductDetail\n product_prompts {\n prompts {\n ...PromptDetail\n }\n }\n }\n }\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "query getConversationMessages($conversation_id: uuid = \"\", $limit: Int = 100, $offset: Int = 100) {\n messages(\n offset: $offset\n limit: $limit\n where: {conversation_id: {_eq: $conversation_id}}\n order_by: {updated_at: desc}\n ) {\n ...MessageDetail\n }\n}"): (typeof documents)["query getConversationMessages($conversation_id: uuid = \"\", $limit: Int = 100, $offset: Int = 100) {\n messages(\n offset: $offset\n limit: $limit\n where: {conversation_id: {_eq: $conversation_id}}\n order_by: {updated_at: desc}\n ) {\n ...MessageDetail\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "query getConversations {\n conversations {\n ...ConversationDetail\n conversation_messages {\n ...MessageDetail\n message_medias {\n ...MessageMedia\n }\n }\n }\n}"): (typeof documents)["query getConversations {\n conversations {\n ...ConversationDetail\n conversation_messages {\n ...MessageDetail\n message_medias {\n ...MessageMedia\n }\n }\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "query getProductsByCollectionSlug($slug: String = \"\") {\n products(where: {product_collections: {collections: {slug: {_eq: $slug}}}}) {\n ...ProductDetail\n product_prompts {\n prompts {\n ...PromptDetail\n }\n }\n product_collections {\n collections {\n ...CollectionDetail\n }\n }\n }\n}"): (typeof documents)["query getProductsByCollectionSlug($slug: String = \"\") {\n products(where: {product_collections: {collections: {slug: {_eq: $slug}}}}) {\n ...ProductDetail\n product_prompts {\n prompts {\n ...PromptDetail\n }\n }\n product_collections {\n collections {\n ...CollectionDetail\n }\n }\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "query getProductPrompts($productSlug: String = \"\") {\n prompts(where: {prompt_products: {products: {slug: {_eq: $productSlug}}}}) {\n ...PromptDetail\n }\n}"): (typeof documents)["query getProductPrompts($productSlug: String = \"\") {\n prompts(where: {prompt_products: {products: {slug: {_eq: $productSlug}}}}) {\n ...PromptDetail\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "query getProducts {\n products {\n ...ProductDetail\n product_prompts {\n prompts {\n ...PromptDetail\n }\n }\n product_collections {\n collections {\n ...CollectionDetail\n }\n }\n }\n}"): (typeof documents)["query getProducts {\n products {\n ...ProductDetail\n product_prompts {\n prompts {\n ...PromptDetail\n }\n }\n product_collections {\n collections {\n ...CollectionDetail\n }\n }\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "query getProductsIn($_in: [String!] = \"\") {\n products(where: {slug: {_in: $_in}}) {\n ...ProductDetail\n }\n}"): (typeof documents)["query getProductsIn($_in: [String!] = \"\") {\n products(where: {slug: {_in: $_in}}) {\n ...ProductDetail\n }\n}"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "subscription subscribeMessage($id: uuid = \"\") {\n messages_by_pk(id: $id) {\n content\n status\n }\n}"): (typeof documents)["subscription subscribeMessage($id: uuid = \"\") {\n messages_by_pk(id: $id) {\n content\n status\n }\n}"]; + +export function gql(source: string) { + return (documents as any)[source] ?? {}; +} + +export type DocumentType> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never; \ No newline at end of file diff --git a/web-client/graphql/generated/graphql.ts b/web-client/graphql/generated/graphql.ts new file mode 100644 index 000000000..524b84bd9 --- /dev/null +++ b/web-client/graphql/generated/graphql.ts @@ -0,0 +1,3774 @@ +/* eslint-disable */ +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + jsonb: { input: any; output: any; } + timestamptz: { input: any; output: any; } + uuid: { input: any; output: any; } +}; + +/** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ +export type Boolean_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +export type ImageGenerationInput = { + height: Scalars['Int']['input']; + model: Scalars['String']['input']; + neg_prompt: Scalars['String']['input']; + prompt: Scalars['String']['input']; + seed: Scalars['Int']['input']; + steps: Scalars['Int']['input']; + width: Scalars['Int']['input']; +}; + +export type ImageGenerationOutput = { + __typename?: 'ImageGenerationOutput'; + url: Scalars['String']['output']; +}; + +/** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */ +export type Int_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 "String". All fields are combined with logical 'AND'. */ +export type String_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + /** does the column match the given case-insensitive pattern */ + _ilike?: InputMaybe; + _in?: InputMaybe>; + /** does the column match the given POSIX regular expression, case insensitive */ + _iregex?: InputMaybe; + _is_null?: InputMaybe; + /** does the column match the given pattern */ + _like?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + /** does the column NOT match the given case-insensitive pattern */ + _nilike?: InputMaybe; + _nin?: InputMaybe>; + /** does the column NOT match the given POSIX regular expression, case insensitive */ + _niregex?: InputMaybe; + /** does the column NOT match the given pattern */ + _nlike?: InputMaybe; + /** does the column NOT match the given POSIX regular expression, case sensitive */ + _nregex?: InputMaybe; + /** does the column NOT match the given SQL regular expression */ + _nsimilar?: InputMaybe; + /** does the column match the given POSIX regular expression, case sensitive */ + _regex?: InputMaybe; + /** does the column match the given SQL regular expression */ + _similar?: InputMaybe; +}; + +/** columns and relationships of "collection_products" */ +export type Collection_Products = { + __typename?: 'collection_products'; + collection_id: Scalars['uuid']['output']; + /** An array relationship */ + collections: Array; + /** An aggregate relationship */ + collections_aggregate: Collections_Aggregate; + created_at: Scalars['timestamptz']['output']; + id: Scalars['uuid']['output']; + product_id: Scalars['uuid']['output']; + /** An array relationship */ + products: Array; + /** An aggregate relationship */ + products_aggregate: Products_Aggregate; + updated_at: Scalars['timestamptz']['output']; +}; + + +/** columns and relationships of "collection_products" */ +export type Collection_ProductsCollectionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "collection_products" */ +export type Collection_ProductsCollections_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "collection_products" */ +export type Collection_ProductsProductsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "collection_products" */ +export type Collection_ProductsProducts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "collection_products" */ +export type Collection_Products_Aggregate = { + __typename?: 'collection_products_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Collection_Products_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Collection_Products_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "collection_products" */ +export type Collection_Products_Aggregate_Fields = { + __typename?: 'collection_products_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "collection_products" */ +export type Collection_Products_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "collection_products" */ +export type Collection_Products_Aggregate_Order_By = { + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; +}; + +/** input type for inserting array relation for remote table "collection_products" */ +export type Collection_Products_Arr_Rel_Insert_Input = { + data: Array; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "collection_products". All fields are combined with a logical 'AND'. */ +export type Collection_Products_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + collection_id?: InputMaybe; + collections?: InputMaybe; + collections_aggregate?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + products?: InputMaybe; + products_aggregate?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** unique or primary key constraints on table "collection_products" */ +export enum Collection_Products_Constraint { + /** unique or primary key constraint on columns "product_id", "collection_id" */ + CollectionProductsCollectionIdProductIdKey = 'collection_products_collection_id_product_id_key', + /** unique or primary key constraint on columns "id" */ + CollectionProductsPkey = 'collection_products_pkey' +} + +/** input type for inserting data into table "collection_products" */ +export type Collection_Products_Insert_Input = { + collection_id?: InputMaybe; + collections?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + products?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Collection_Products_Max_Fields = { + __typename?: 'collection_products_max_fields'; + collection_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + product_id?: Maybe; + updated_at?: Maybe; +}; + +/** order by max() on columns of table "collection_products" */ +export type Collection_Products_Max_Order_By = { + collection_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Collection_Products_Min_Fields = { + __typename?: 'collection_products_min_fields'; + collection_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + product_id?: Maybe; + updated_at?: Maybe; +}; + +/** order by min() on columns of table "collection_products" */ +export type Collection_Products_Min_Order_By = { + collection_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** response of any mutation on the table "collection_products" */ +export type Collection_Products_Mutation_Response = { + __typename?: 'collection_products_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']['output']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** on_conflict condition type for table "collection_products" */ +export type Collection_Products_On_Conflict = { + constraint: Collection_Products_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "collection_products". */ +export type Collection_Products_Order_By = { + collection_id?: InputMaybe; + collections_aggregate?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + products_aggregate?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** primary key columns input for table: collection_products */ +export type Collection_Products_Pk_Columns_Input = { + id: Scalars['uuid']['input']; +}; + +/** select columns of table "collection_products" */ +export enum Collection_Products_Select_Column { + /** column name */ + CollectionId = 'collection_id', + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + ProductId = 'product_id', + /** column name */ + UpdatedAt = 'updated_at' +} + +/** input type for updating data in table "collection_products" */ +export type Collection_Products_Set_Input = { + collection_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** Streaming cursor of the table "collection_products" */ +export type Collection_Products_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Collection_Products_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Collection_Products_Stream_Cursor_Value_Input = { + collection_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** update columns of table "collection_products" */ +export enum Collection_Products_Update_Column { + /** column name */ + CollectionId = 'collection_id', + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + ProductId = 'product_id', + /** column name */ + UpdatedAt = 'updated_at' +} + +export type Collection_Products_Updates = { + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Collection_Products_Bool_Exp; +}; + +/** columns and relationships of "collections" */ +export type Collections = { + __typename?: 'collections'; + /** An array relationship */ + collection_products: Array; + /** An aggregate relationship */ + collection_products_aggregate: Collection_Products_Aggregate; + created_at: Scalars['timestamptz']['output']; + description: Scalars['String']['output']; + id: Scalars['uuid']['output']; + name: Scalars['String']['output']; + slug: Scalars['String']['output']; + updated_at: Scalars['timestamptz']['output']; +}; + + +/** columns and relationships of "collections" */ +export type CollectionsCollection_ProductsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "collections" */ +export type CollectionsCollection_Products_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "collections" */ +export type Collections_Aggregate = { + __typename?: 'collections_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Collections_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Collections_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "collections" */ +export type Collections_Aggregate_Fields = { + __typename?: 'collections_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "collections" */ +export type Collections_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "collections" */ +export type Collections_Aggregate_Order_By = { + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; +}; + +/** input type for inserting array relation for remote table "collections" */ +export type Collections_Arr_Rel_Insert_Input = { + data: Array; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "collections". All fields are combined with a logical 'AND'. */ +export type Collections_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + collection_products?: InputMaybe; + collection_products_aggregate?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** unique or primary key constraints on table "collections" */ +export enum Collections_Constraint { + /** unique or primary key constraint on columns "id" */ + CollectionsPkey = 'collections_pkey', + /** unique or primary key constraint on columns "slug" */ + CollectionsSlugKey = 'collections_slug_key' +} + +/** input type for inserting data into table "collections" */ +export type Collections_Insert_Input = { + collection_products?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Collections_Max_Fields = { + __typename?: 'collections_max_fields'; + created_at?: Maybe; + description?: Maybe; + id?: Maybe; + name?: Maybe; + slug?: Maybe; + updated_at?: Maybe; +}; + +/** order by max() on columns of table "collections" */ +export type Collections_Max_Order_By = { + created_at?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Collections_Min_Fields = { + __typename?: 'collections_min_fields'; + created_at?: Maybe; + description?: Maybe; + id?: Maybe; + name?: Maybe; + slug?: Maybe; + updated_at?: Maybe; +}; + +/** order by min() on columns of table "collections" */ +export type Collections_Min_Order_By = { + created_at?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** response of any mutation on the table "collections" */ +export type Collections_Mutation_Response = { + __typename?: 'collections_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']['output']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** on_conflict condition type for table "collections" */ +export type Collections_On_Conflict = { + constraint: Collections_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "collections". */ +export type Collections_Order_By = { + collection_products_aggregate?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** primary key columns input for table: collections */ +export type Collections_Pk_Columns_Input = { + id: Scalars['uuid']['input']; +}; + +/** select columns of table "collections" */ +export enum Collections_Select_Column { + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Description = 'description', + /** column name */ + Id = 'id', + /** column name */ + Name = 'name', + /** column name */ + Slug = 'slug', + /** column name */ + UpdatedAt = 'updated_at' +} + +/** input type for updating data in table "collections" */ +export type Collections_Set_Input = { + created_at?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** Streaming cursor of the table "collections" */ +export type Collections_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Collections_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Collections_Stream_Cursor_Value_Input = { + created_at?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** update columns of table "collections" */ +export enum Collections_Update_Column { + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Description = 'description', + /** column name */ + Id = 'id', + /** column name */ + Name = 'name', + /** column name */ + Slug = 'slug', + /** column name */ + UpdatedAt = 'updated_at' +} + +export type Collections_Updates = { + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Collections_Bool_Exp; +}; + +/** columns and relationships of "conversations" */ +export type Conversations = { + __typename?: 'conversations'; + /** An array relationship */ + conversation_messages: Array; + /** An aggregate relationship */ + conversation_messages_aggregate: Messages_Aggregate; + /** An object relationship */ + conversation_product?: Maybe; + created_at: Scalars['timestamptz']['output']; + id: Scalars['uuid']['output']; + last_image_url?: Maybe; + last_text_message?: Maybe; + product_id: Scalars['uuid']['output']; + updated_at: Scalars['timestamptz']['output']; + user_id: Scalars['String']['output']; +}; + + +/** columns and relationships of "conversations" */ +export type ConversationsConversation_MessagesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "conversations" */ +export type ConversationsConversation_Messages_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "conversations" */ +export type Conversations_Aggregate = { + __typename?: 'conversations_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "conversations" */ +export type Conversations_Aggregate_Fields = { + __typename?: 'conversations_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "conversations" */ +export type Conversations_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "conversations". All fields are combined with a logical 'AND'. */ +export type Conversations_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + conversation_messages?: InputMaybe; + conversation_messages_aggregate?: InputMaybe; + conversation_product?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + last_image_url?: InputMaybe; + last_text_message?: InputMaybe; + product_id?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; +}; + +/** unique or primary key constraints on table "conversations" */ +export enum Conversations_Constraint { + /** unique or primary key constraint on columns "id" */ + ConversationsPkey = 'conversations_pkey' +} + +/** input type for inserting data into table "conversations" */ +export type Conversations_Insert_Input = { + conversation_messages?: InputMaybe; + conversation_product?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + last_image_url?: InputMaybe; + last_text_message?: InputMaybe; + product_id?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Conversations_Max_Fields = { + __typename?: 'conversations_max_fields'; + created_at?: Maybe; + id?: Maybe; + last_image_url?: Maybe; + last_text_message?: Maybe; + product_id?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; +}; + +/** aggregate min on columns */ +export type Conversations_Min_Fields = { + __typename?: 'conversations_min_fields'; + created_at?: Maybe; + id?: Maybe; + last_image_url?: Maybe; + last_text_message?: Maybe; + product_id?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; +}; + +/** response of any mutation on the table "conversations" */ +export type Conversations_Mutation_Response = { + __typename?: 'conversations_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']['output']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** input type for inserting object relation for remote table "conversations" */ +export type Conversations_Obj_Rel_Insert_Input = { + data: Conversations_Insert_Input; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** on_conflict condition type for table "conversations" */ +export type Conversations_On_Conflict = { + constraint: Conversations_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "conversations". */ +export type Conversations_Order_By = { + conversation_messages_aggregate?: InputMaybe; + conversation_product?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + last_image_url?: InputMaybe; + last_text_message?: InputMaybe; + product_id?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; +}; + +/** primary key columns input for table: conversations */ +export type Conversations_Pk_Columns_Input = { + id: Scalars['uuid']['input']; +}; + +/** select columns of table "conversations" */ +export enum Conversations_Select_Column { + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + LastImageUrl = 'last_image_url', + /** column name */ + LastTextMessage = 'last_text_message', + /** column name */ + ProductId = 'product_id', + /** column name */ + UpdatedAt = 'updated_at', + /** column name */ + UserId = 'user_id' +} + +/** input type for updating data in table "conversations" */ +export type Conversations_Set_Input = { + created_at?: InputMaybe; + id?: InputMaybe; + last_image_url?: InputMaybe; + last_text_message?: InputMaybe; + product_id?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; +}; + +/** Streaming cursor of the table "conversations" */ +export type Conversations_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Conversations_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Conversations_Stream_Cursor_Value_Input = { + created_at?: InputMaybe; + id?: InputMaybe; + last_image_url?: InputMaybe; + last_text_message?: InputMaybe; + product_id?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; +}; + +/** update columns of table "conversations" */ +export enum Conversations_Update_Column { + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + LastImageUrl = 'last_image_url', + /** column name */ + LastTextMessage = 'last_text_message', + /** column name */ + ProductId = 'product_id', + /** column name */ + UpdatedAt = 'updated_at', + /** column name */ + UserId = 'user_id' +} + +export type Conversations_Updates = { + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Conversations_Bool_Exp; +}; + +/** ordering argument of a cursor */ +export enum Cursor_Ordering { + /** ascending ordering of the cursor */ + Asc = 'ASC', + /** descending ordering of the cursor */ + Desc = 'DESC' +} + +export type Jsonb_Cast_Exp = { + String?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ +export type Jsonb_Comparison_Exp = { + _cast?: InputMaybe; + /** is the column contained in the given json value */ + _contained_in?: InputMaybe; + /** does the column contain the given json value at the top level */ + _contains?: InputMaybe; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + /** does the string exist as a top-level key in the column */ + _has_key?: InputMaybe; + /** do all of these strings exist as top-level keys in the column */ + _has_keys_all?: InputMaybe>; + /** do any of these strings exist as top-level keys in the column */ + _has_keys_any?: InputMaybe>; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "message_medias" */ +export type Message_Medias = { + __typename?: 'message_medias'; + created_at: Scalars['timestamptz']['output']; + id: Scalars['uuid']['output']; + /** An object relationship */ + media_message?: Maybe; + media_url?: Maybe; + message_id: Scalars['uuid']['output']; + mime_type?: Maybe; + updated_at: Scalars['timestamptz']['output']; +}; + +/** aggregated selection of "message_medias" */ +export type Message_Medias_Aggregate = { + __typename?: 'message_medias_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Message_Medias_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Message_Medias_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "message_medias" */ +export type Message_Medias_Aggregate_Fields = { + __typename?: 'message_medias_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "message_medias" */ +export type Message_Medias_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "message_medias" */ +export type Message_Medias_Aggregate_Order_By = { + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; +}; + +/** input type for inserting array relation for remote table "message_medias" */ +export type Message_Medias_Arr_Rel_Insert_Input = { + data: Array; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "message_medias". All fields are combined with a logical 'AND'. */ +export type Message_Medias_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + created_at?: InputMaybe; + id?: InputMaybe; + media_message?: InputMaybe; + media_url?: InputMaybe; + message_id?: InputMaybe; + mime_type?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** unique or primary key constraints on table "message_medias" */ +export enum Message_Medias_Constraint { + /** unique or primary key constraint on columns "id" */ + MessageMediasPkey = 'message_medias_pkey' +} + +/** input type for inserting data into table "message_medias" */ +export type Message_Medias_Insert_Input = { + created_at?: InputMaybe; + id?: InputMaybe; + media_message?: InputMaybe; + media_url?: InputMaybe; + message_id?: InputMaybe; + mime_type?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Message_Medias_Max_Fields = { + __typename?: 'message_medias_max_fields'; + created_at?: Maybe; + id?: Maybe; + media_url?: Maybe; + message_id?: Maybe; + mime_type?: Maybe; + updated_at?: Maybe; +}; + +/** order by max() on columns of table "message_medias" */ +export type Message_Medias_Max_Order_By = { + created_at?: InputMaybe; + id?: InputMaybe; + media_url?: InputMaybe; + message_id?: InputMaybe; + mime_type?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Message_Medias_Min_Fields = { + __typename?: 'message_medias_min_fields'; + created_at?: Maybe; + id?: Maybe; + media_url?: Maybe; + message_id?: Maybe; + mime_type?: Maybe; + updated_at?: Maybe; +}; + +/** order by min() on columns of table "message_medias" */ +export type Message_Medias_Min_Order_By = { + created_at?: InputMaybe; + id?: InputMaybe; + media_url?: InputMaybe; + message_id?: InputMaybe; + mime_type?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** response of any mutation on the table "message_medias" */ +export type Message_Medias_Mutation_Response = { + __typename?: 'message_medias_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']['output']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** on_conflict condition type for table "message_medias" */ +export type Message_Medias_On_Conflict = { + constraint: Message_Medias_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "message_medias". */ +export type Message_Medias_Order_By = { + created_at?: InputMaybe; + id?: InputMaybe; + media_message?: InputMaybe; + media_url?: InputMaybe; + message_id?: InputMaybe; + mime_type?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** primary key columns input for table: message_medias */ +export type Message_Medias_Pk_Columns_Input = { + id: Scalars['uuid']['input']; +}; + +/** select columns of table "message_medias" */ +export enum Message_Medias_Select_Column { + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + MediaUrl = 'media_url', + /** column name */ + MessageId = 'message_id', + /** column name */ + MimeType = 'mime_type', + /** column name */ + UpdatedAt = 'updated_at' +} + +/** input type for updating data in table "message_medias" */ +export type Message_Medias_Set_Input = { + created_at?: InputMaybe; + id?: InputMaybe; + media_url?: InputMaybe; + message_id?: InputMaybe; + mime_type?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** Streaming cursor of the table "message_medias" */ +export type Message_Medias_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Message_Medias_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Message_Medias_Stream_Cursor_Value_Input = { + created_at?: InputMaybe; + id?: InputMaybe; + media_url?: InputMaybe; + message_id?: InputMaybe; + mime_type?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** update columns of table "message_medias" */ +export enum Message_Medias_Update_Column { + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + MediaUrl = 'media_url', + /** column name */ + MessageId = 'message_id', + /** column name */ + MimeType = 'mime_type', + /** column name */ + UpdatedAt = 'updated_at' +} + +export type Message_Medias_Updates = { + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Message_Medias_Bool_Exp; +}; + +/** columns and relationships of "messages" */ +export type Messages = { + __typename?: 'messages'; + content?: Maybe; + conversation_id: Scalars['uuid']['output']; + created_at: Scalars['timestamptz']['output']; + id: Scalars['uuid']['output']; + /** An object relationship */ + message_conversation?: Maybe; + /** An array relationship */ + message_medias: Array; + /** An aggregate relationship */ + message_medias_aggregate: Message_Medias_Aggregate; + message_sender_type?: Maybe; + message_type?: Maybe; + prompt_cache?: Maybe; + sender: Scalars['String']['output']; + sender_avatar_url?: Maybe; + sender_name?: Maybe; + status?: Maybe; + updated_at: Scalars['timestamptz']['output']; +}; + + +/** columns and relationships of "messages" */ +export type MessagesMessage_MediasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "messages" */ +export type MessagesMessage_Medias_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "messages" */ +export type MessagesPrompt_CacheArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "messages" */ +export type Messages_Aggregate = { + __typename?: 'messages_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Messages_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Messages_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "messages" */ +export type Messages_Aggregate_Fields = { + __typename?: 'messages_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "messages" */ +export type Messages_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "messages" */ +export type Messages_Aggregate_Order_By = { + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; +}; + +/** append existing jsonb value of filtered columns with new jsonb value */ +export type Messages_Append_Input = { + prompt_cache?: InputMaybe; +}; + +/** input type for inserting array relation for remote table "messages" */ +export type Messages_Arr_Rel_Insert_Input = { + data: Array; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "messages". All fields are combined with a logical 'AND'. */ +export type Messages_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + content?: InputMaybe; + conversation_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + message_conversation?: InputMaybe; + message_medias?: InputMaybe; + message_medias_aggregate?: InputMaybe; + message_sender_type?: InputMaybe; + message_type?: InputMaybe; + prompt_cache?: InputMaybe; + sender?: InputMaybe; + sender_avatar_url?: InputMaybe; + sender_name?: InputMaybe; + status?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** unique or primary key constraints on table "messages" */ +export enum Messages_Constraint { + /** unique or primary key constraint on columns "id" */ + MessagesPkey = 'messages_pkey' +} + +/** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */ +export type Messages_Delete_At_Path_Input = { + prompt_cache?: 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 Messages_Delete_Elem_Input = { + prompt_cache?: InputMaybe; +}; + +/** delete key/value pair or string element. key/value pairs are matched based on their key value */ +export type Messages_Delete_Key_Input = { + prompt_cache?: InputMaybe; +}; + +/** input type for inserting data into table "messages" */ +export type Messages_Insert_Input = { + content?: InputMaybe; + conversation_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + message_conversation?: InputMaybe; + message_medias?: InputMaybe; + message_sender_type?: InputMaybe; + message_type?: InputMaybe; + prompt_cache?: InputMaybe; + sender?: InputMaybe; + sender_avatar_url?: InputMaybe; + sender_name?: InputMaybe; + status?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Messages_Max_Fields = { + __typename?: 'messages_max_fields'; + content?: Maybe; + conversation_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + message_sender_type?: Maybe; + message_type?: Maybe; + sender?: Maybe; + sender_avatar_url?: Maybe; + sender_name?: Maybe; + status?: Maybe; + updated_at?: Maybe; +}; + +/** order by max() on columns of table "messages" */ +export type Messages_Max_Order_By = { + content?: InputMaybe; + conversation_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + message_sender_type?: InputMaybe; + message_type?: InputMaybe; + sender?: InputMaybe; + sender_avatar_url?: InputMaybe; + sender_name?: InputMaybe; + status?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Messages_Min_Fields = { + __typename?: 'messages_min_fields'; + content?: Maybe; + conversation_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + message_sender_type?: Maybe; + message_type?: Maybe; + sender?: Maybe; + sender_avatar_url?: Maybe; + sender_name?: Maybe; + status?: Maybe; + updated_at?: Maybe; +}; + +/** order by min() on columns of table "messages" */ +export type Messages_Min_Order_By = { + content?: InputMaybe; + conversation_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + message_sender_type?: InputMaybe; + message_type?: InputMaybe; + sender?: InputMaybe; + sender_avatar_url?: InputMaybe; + sender_name?: InputMaybe; + status?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** response of any mutation on the table "messages" */ +export type Messages_Mutation_Response = { + __typename?: 'messages_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']['output']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** input type for inserting object relation for remote table "messages" */ +export type Messages_Obj_Rel_Insert_Input = { + data: Messages_Insert_Input; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** on_conflict condition type for table "messages" */ +export type Messages_On_Conflict = { + constraint: Messages_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "messages". */ +export type Messages_Order_By = { + content?: InputMaybe; + conversation_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + message_conversation?: InputMaybe; + message_medias_aggregate?: InputMaybe; + message_sender_type?: InputMaybe; + message_type?: InputMaybe; + prompt_cache?: InputMaybe; + sender?: InputMaybe; + sender_avatar_url?: InputMaybe; + sender_name?: InputMaybe; + status?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** primary key columns input for table: messages */ +export type Messages_Pk_Columns_Input = { + id: Scalars['uuid']['input']; +}; + +/** prepend existing jsonb value of filtered columns with new jsonb value */ +export type Messages_Prepend_Input = { + prompt_cache?: InputMaybe; +}; + +/** select columns of table "messages" */ +export enum Messages_Select_Column { + /** column name */ + Content = 'content', + /** column name */ + ConversationId = 'conversation_id', + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + MessageSenderType = 'message_sender_type', + /** column name */ + MessageType = 'message_type', + /** column name */ + PromptCache = 'prompt_cache', + /** column name */ + Sender = 'sender', + /** column name */ + SenderAvatarUrl = 'sender_avatar_url', + /** column name */ + SenderName = 'sender_name', + /** column name */ + Status = 'status', + /** column name */ + UpdatedAt = 'updated_at' +} + +/** input type for updating data in table "messages" */ +export type Messages_Set_Input = { + content?: InputMaybe; + conversation_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + message_sender_type?: InputMaybe; + message_type?: InputMaybe; + prompt_cache?: InputMaybe; + sender?: InputMaybe; + sender_avatar_url?: InputMaybe; + sender_name?: InputMaybe; + status?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** Streaming cursor of the table "messages" */ +export type Messages_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Messages_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Messages_Stream_Cursor_Value_Input = { + content?: InputMaybe; + conversation_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + message_sender_type?: InputMaybe; + message_type?: InputMaybe; + prompt_cache?: InputMaybe; + sender?: InputMaybe; + sender_avatar_url?: InputMaybe; + sender_name?: InputMaybe; + status?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** update columns of table "messages" */ +export enum Messages_Update_Column { + /** column name */ + Content = 'content', + /** column name */ + ConversationId = 'conversation_id', + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + MessageSenderType = 'message_sender_type', + /** column name */ + MessageType = 'message_type', + /** column name */ + PromptCache = 'prompt_cache', + /** column name */ + Sender = 'sender', + /** column name */ + SenderAvatarUrl = 'sender_avatar_url', + /** column name */ + SenderName = 'sender_name', + /** column name */ + Status = 'status', + /** column name */ + UpdatedAt = 'updated_at' +} + +export type Messages_Updates = { + /** append existing jsonb value of filtered columns with new jsonb value */ + _append?: InputMaybe; + /** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */ + _delete_at_path?: 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 */ + _delete_elem?: InputMaybe; + /** delete key/value pair or string element. key/value pairs are matched based on their key value */ + _delete_key?: InputMaybe; + /** prepend existing jsonb value of filtered columns with new jsonb value */ + _prepend?: InputMaybe; + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Messages_Bool_Exp; +}; + +/** mutation root */ +export type Mutation_Root = { + __typename?: 'mutation_root'; + /** delete data from the table: "collection_products" */ + delete_collection_products?: Maybe; + /** delete single row from the table: "collection_products" */ + delete_collection_products_by_pk?: Maybe; + /** delete data from the table: "collections" */ + delete_collections?: Maybe; + /** delete single row from the table: "collections" */ + delete_collections_by_pk?: Maybe; + /** delete data from the table: "conversations" */ + delete_conversations?: Maybe; + /** delete single row from the table: "conversations" */ + delete_conversations_by_pk?: Maybe; + /** delete data from the table: "message_medias" */ + delete_message_medias?: Maybe; + /** delete single row from the table: "message_medias" */ + delete_message_medias_by_pk?: Maybe; + /** delete data from the table: "messages" */ + delete_messages?: Maybe; + /** delete single row from the table: "messages" */ + delete_messages_by_pk?: Maybe; + /** delete data from the table: "product_prompts" */ + delete_product_prompts?: Maybe; + /** delete single row from the table: "product_prompts" */ + delete_product_prompts_by_pk?: Maybe; + /** delete data from the table: "products" */ + delete_products?: Maybe; + /** delete single row from the table: "products" */ + delete_products_by_pk?: Maybe; + /** delete data from the table: "prompts" */ + delete_prompts?: Maybe; + /** delete single row from the table: "prompts" */ + delete_prompts_by_pk?: Maybe; + imageGeneration?: Maybe; + /** insert data into the table: "collection_products" */ + insert_collection_products?: Maybe; + /** insert a single row into the table: "collection_products" */ + insert_collection_products_one?: Maybe; + /** insert data into the table: "collections" */ + insert_collections?: Maybe; + /** insert a single row into the table: "collections" */ + insert_collections_one?: Maybe; + /** insert data into the table: "conversations" */ + insert_conversations?: Maybe; + /** insert a single row into the table: "conversations" */ + insert_conversations_one?: Maybe; + /** insert data into the table: "message_medias" */ + insert_message_medias?: Maybe; + /** insert a single row into the table: "message_medias" */ + insert_message_medias_one?: Maybe; + /** insert data into the table: "messages" */ + insert_messages?: Maybe; + /** insert a single row into the table: "messages" */ + insert_messages_one?: Maybe; + /** insert data into the table: "product_prompts" */ + insert_product_prompts?: Maybe; + /** insert a single row into the table: "product_prompts" */ + insert_product_prompts_one?: Maybe; + /** insert data into the table: "products" */ + insert_products?: Maybe; + /** insert a single row into the table: "products" */ + insert_products_one?: Maybe; + /** insert data into the table: "prompts" */ + insert_prompts?: Maybe; + /** insert a single row into the table: "prompts" */ + insert_prompts_one?: Maybe; + /** update data of the table: "collection_products" */ + update_collection_products?: Maybe; + /** update single row of the table: "collection_products" */ + update_collection_products_by_pk?: Maybe; + /** update multiples rows of table: "collection_products" */ + update_collection_products_many?: Maybe>>; + /** update data of the table: "collections" */ + update_collections?: Maybe; + /** update single row of the table: "collections" */ + update_collections_by_pk?: Maybe; + /** update multiples rows of table: "collections" */ + update_collections_many?: Maybe>>; + /** update data of the table: "conversations" */ + update_conversations?: Maybe; + /** update single row of the table: "conversations" */ + update_conversations_by_pk?: Maybe; + /** update multiples rows of table: "conversations" */ + update_conversations_many?: Maybe>>; + /** update data of the table: "message_medias" */ + update_message_medias?: Maybe; + /** update single row of the table: "message_medias" */ + update_message_medias_by_pk?: Maybe; + /** update multiples rows of table: "message_medias" */ + update_message_medias_many?: Maybe>>; + /** update data of the table: "messages" */ + update_messages?: Maybe; + /** update single row of the table: "messages" */ + update_messages_by_pk?: Maybe; + /** update multiples rows of table: "messages" */ + update_messages_many?: Maybe>>; + /** update data of the table: "product_prompts" */ + update_product_prompts?: Maybe; + /** update single row of the table: "product_prompts" */ + update_product_prompts_by_pk?: Maybe; + /** update multiples rows of table: "product_prompts" */ + update_product_prompts_many?: Maybe>>; + /** update data of the table: "products" */ + update_products?: Maybe; + /** update single row of the table: "products" */ + update_products_by_pk?: Maybe; + /** update multiples rows of table: "products" */ + update_products_many?: Maybe>>; + /** update data of the table: "prompts" */ + update_prompts?: Maybe; + /** update single row of the table: "prompts" */ + update_prompts_by_pk?: Maybe; + /** update multiples rows of table: "prompts" */ + update_prompts_many?: Maybe>>; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Collection_ProductsArgs = { + where: Collection_Products_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Collection_Products_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +/** mutation root */ +export type Mutation_RootDelete_CollectionsArgs = { + where: Collections_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Collections_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +/** mutation root */ +export type Mutation_RootDelete_ConversationsArgs = { + where: Conversations_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Conversations_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Message_MediasArgs = { + where: Message_Medias_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Message_Medias_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +/** mutation root */ +export type Mutation_RootDelete_MessagesArgs = { + where: Messages_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Messages_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Product_PromptsArgs = { + where: Product_Prompts_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Product_Prompts_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +/** mutation root */ +export type Mutation_RootDelete_ProductsArgs = { + where: Products_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Products_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +/** mutation root */ +export type Mutation_RootDelete_PromptsArgs = { + where: Prompts_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Prompts_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +/** mutation root */ +export type Mutation_RootImageGenerationArgs = { + input: ImageGenerationInput; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Collection_ProductsArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Collection_Products_OneArgs = { + object: Collection_Products_Insert_Input; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_CollectionsArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Collections_OneArgs = { + object: Collections_Insert_Input; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_ConversationsArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Conversations_OneArgs = { + object: Conversations_Insert_Input; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Message_MediasArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Message_Medias_OneArgs = { + object: Message_Medias_Insert_Input; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_MessagesArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Messages_OneArgs = { + object: Messages_Insert_Input; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Product_PromptsArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Product_Prompts_OneArgs = { + object: Product_Prompts_Insert_Input; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_ProductsArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Products_OneArgs = { + object: Products_Insert_Input; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_PromptsArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Prompts_OneArgs = { + object: Prompts_Insert_Input; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Collection_ProductsArgs = { + _set?: InputMaybe; + where: Collection_Products_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Collection_Products_By_PkArgs = { + _set?: InputMaybe; + pk_columns: Collection_Products_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Collection_Products_ManyArgs = { + updates: Array; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_CollectionsArgs = { + _set?: InputMaybe; + where: Collections_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Collections_By_PkArgs = { + _set?: InputMaybe; + pk_columns: Collections_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Collections_ManyArgs = { + updates: Array; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_ConversationsArgs = { + _set?: InputMaybe; + where: Conversations_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Conversations_By_PkArgs = { + _set?: InputMaybe; + pk_columns: Conversations_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Conversations_ManyArgs = { + updates: Array; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Message_MediasArgs = { + _set?: InputMaybe; + where: Message_Medias_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Message_Medias_By_PkArgs = { + _set?: InputMaybe; + pk_columns: Message_Medias_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Message_Medias_ManyArgs = { + updates: Array; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_MessagesArgs = { + _append?: InputMaybe; + _delete_at_path?: InputMaybe; + _delete_elem?: InputMaybe; + _delete_key?: InputMaybe; + _prepend?: InputMaybe; + _set?: InputMaybe; + where: Messages_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Messages_By_PkArgs = { + _append?: InputMaybe; + _delete_at_path?: InputMaybe; + _delete_elem?: InputMaybe; + _delete_key?: InputMaybe; + _prepend?: InputMaybe; + _set?: InputMaybe; + pk_columns: Messages_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Messages_ManyArgs = { + updates: Array; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Product_PromptsArgs = { + _set?: InputMaybe; + where: Product_Prompts_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Product_Prompts_By_PkArgs = { + _set?: InputMaybe; + pk_columns: Product_Prompts_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Product_Prompts_ManyArgs = { + updates: Array; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_ProductsArgs = { + _append?: InputMaybe; + _delete_at_path?: InputMaybe; + _delete_elem?: InputMaybe; + _delete_key?: InputMaybe; + _prepend?: InputMaybe; + _set?: InputMaybe; + where: Products_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Products_By_PkArgs = { + _append?: InputMaybe; + _delete_at_path?: InputMaybe; + _delete_elem?: InputMaybe; + _delete_key?: InputMaybe; + _prepend?: InputMaybe; + _set?: InputMaybe; + pk_columns: Products_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Products_ManyArgs = { + updates: Array; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_PromptsArgs = { + _set?: InputMaybe; + where: Prompts_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Prompts_By_PkArgs = { + _set?: InputMaybe; + pk_columns: Prompts_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Prompts_ManyArgs = { + updates: Array; +}; + +/** column ordering options */ +export enum Order_By { + /** in ascending order, nulls last */ + Asc = 'asc', + /** in ascending order, nulls first */ + AscNullsFirst = 'asc_nulls_first', + /** in ascending order, nulls last */ + AscNullsLast = 'asc_nulls_last', + /** in descending order, nulls first */ + Desc = 'desc', + /** in descending order, nulls first */ + DescNullsFirst = 'desc_nulls_first', + /** in descending order, nulls last */ + DescNullsLast = 'desc_nulls_last' +} + +/** columns and relationships of "product_prompts" */ +export type Product_Prompts = { + __typename?: 'product_prompts'; + created_at: Scalars['timestamptz']['output']; + id: Scalars['uuid']['output']; + product_id: Scalars['uuid']['output']; + /** An array relationship */ + products: Array; + /** An aggregate relationship */ + products_aggregate: Products_Aggregate; + prompt_id: Scalars['uuid']['output']; + /** An array relationship */ + prompts: Array; + /** An aggregate relationship */ + prompts_aggregate: Prompts_Aggregate; + updated_at: Scalars['timestamptz']['output']; +}; + + +/** columns and relationships of "product_prompts" */ +export type Product_PromptsProductsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "product_prompts" */ +export type Product_PromptsProducts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "product_prompts" */ +export type Product_PromptsPromptsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "product_prompts" */ +export type Product_PromptsPrompts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "product_prompts" */ +export type Product_Prompts_Aggregate = { + __typename?: 'product_prompts_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Product_Prompts_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Product_Prompts_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "product_prompts" */ +export type Product_Prompts_Aggregate_Fields = { + __typename?: 'product_prompts_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "product_prompts" */ +export type Product_Prompts_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "product_prompts" */ +export type Product_Prompts_Aggregate_Order_By = { + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; +}; + +/** input type for inserting array relation for remote table "product_prompts" */ +export type Product_Prompts_Arr_Rel_Insert_Input = { + data: Array; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "product_prompts". All fields are combined with a logical 'AND'. */ +export type Product_Prompts_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + products?: InputMaybe; + products_aggregate?: InputMaybe; + prompt_id?: InputMaybe; + prompts?: InputMaybe; + prompts_aggregate?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** unique or primary key constraints on table "product_prompts" */ +export enum Product_Prompts_Constraint { + /** unique or primary key constraint on columns "id" */ + ProductPromptsPkey = 'product_prompts_pkey', + /** unique or primary key constraint on columns "product_id", "prompt_id" */ + ProductPromptsProductIdPromptIdKey = 'product_prompts_product_id_prompt_id_key' +} + +/** input type for inserting data into table "product_prompts" */ +export type Product_Prompts_Insert_Input = { + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + products?: InputMaybe; + prompt_id?: InputMaybe; + prompts?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Product_Prompts_Max_Fields = { + __typename?: 'product_prompts_max_fields'; + created_at?: Maybe; + id?: Maybe; + product_id?: Maybe; + prompt_id?: Maybe; + updated_at?: Maybe; +}; + +/** order by max() on columns of table "product_prompts" */ +export type Product_Prompts_Max_Order_By = { + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + prompt_id?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Product_Prompts_Min_Fields = { + __typename?: 'product_prompts_min_fields'; + created_at?: Maybe; + id?: Maybe; + product_id?: Maybe; + prompt_id?: Maybe; + updated_at?: Maybe; +}; + +/** order by min() on columns of table "product_prompts" */ +export type Product_Prompts_Min_Order_By = { + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + prompt_id?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** response of any mutation on the table "product_prompts" */ +export type Product_Prompts_Mutation_Response = { + __typename?: 'product_prompts_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']['output']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** on_conflict condition type for table "product_prompts" */ +export type Product_Prompts_On_Conflict = { + constraint: Product_Prompts_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "product_prompts". */ +export type Product_Prompts_Order_By = { + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + products_aggregate?: InputMaybe; + prompt_id?: InputMaybe; + prompts_aggregate?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** primary key columns input for table: product_prompts */ +export type Product_Prompts_Pk_Columns_Input = { + id: Scalars['uuid']['input']; +}; + +/** select columns of table "product_prompts" */ +export enum Product_Prompts_Select_Column { + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + ProductId = 'product_id', + /** column name */ + PromptId = 'prompt_id', + /** column name */ + UpdatedAt = 'updated_at' +} + +/** input type for updating data in table "product_prompts" */ +export type Product_Prompts_Set_Input = { + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + prompt_id?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** Streaming cursor of the table "product_prompts" */ +export type Product_Prompts_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Product_Prompts_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Product_Prompts_Stream_Cursor_Value_Input = { + created_at?: InputMaybe; + id?: InputMaybe; + product_id?: InputMaybe; + prompt_id?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** update columns of table "product_prompts" */ +export enum Product_Prompts_Update_Column { + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + ProductId = 'product_id', + /** column name */ + PromptId = 'prompt_id', + /** column name */ + UpdatedAt = 'updated_at' +} + +export type Product_Prompts_Updates = { + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Product_Prompts_Bool_Exp; +}; + +/** columns and relationships of "products" */ +export type Products = { + __typename?: 'products'; + author?: Maybe; + created_at: Scalars['timestamptz']['output']; + description?: Maybe; + greeting?: Maybe; + id: Scalars['uuid']['output']; + image_url?: Maybe; + inputs?: Maybe; + long_description?: Maybe; + name: Scalars['String']['output']; + nsfw: Scalars['Boolean']['output']; + outputs?: Maybe; + /** An array relationship */ + product_collections: Array; + /** An aggregate relationship */ + product_collections_aggregate: Collection_Products_Aggregate; + /** An array relationship */ + product_prompts: Array; + /** An aggregate relationship */ + product_prompts_aggregate: Product_Prompts_Aggregate; + slug: Scalars['String']['output']; + source_url?: Maybe; + technical_description?: Maybe; + updated_at: Scalars['timestamptz']['output']; + version?: Maybe; +}; + + +/** columns and relationships of "products" */ +export type ProductsInputsArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "products" */ +export type ProductsOutputsArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "products" */ +export type ProductsProduct_CollectionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "products" */ +export type ProductsProduct_Collections_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "products" */ +export type ProductsProduct_PromptsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "products" */ +export type ProductsProduct_Prompts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "products" */ +export type Products_Aggregate = { + __typename?: 'products_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Products_Aggregate_Bool_Exp = { + bool_and?: InputMaybe; + bool_or?: InputMaybe; + count?: InputMaybe; +}; + +export type Products_Aggregate_Bool_Exp_Bool_And = { + arguments: Products_Select_Column_Products_Aggregate_Bool_Exp_Bool_And_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Boolean_Comparison_Exp; +}; + +export type Products_Aggregate_Bool_Exp_Bool_Or = { + arguments: Products_Select_Column_Products_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Boolean_Comparison_Exp; +}; + +export type Products_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "products" */ +export type Products_Aggregate_Fields = { + __typename?: 'products_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "products" */ +export type Products_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "products" */ +export type Products_Aggregate_Order_By = { + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; +}; + +/** append existing jsonb value of filtered columns with new jsonb value */ +export type Products_Append_Input = { + inputs?: InputMaybe; + outputs?: InputMaybe; +}; + +/** input type for inserting array relation for remote table "products" */ +export type Products_Arr_Rel_Insert_Input = { + data: Array; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "products". All fields are combined with a logical 'AND'. */ +export type Products_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + author?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + greeting?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + inputs?: InputMaybe; + long_description?: InputMaybe; + name?: InputMaybe; + nsfw?: InputMaybe; + outputs?: InputMaybe; + product_collections?: InputMaybe; + product_collections_aggregate?: InputMaybe; + product_prompts?: InputMaybe; + product_prompts_aggregate?: InputMaybe; + slug?: InputMaybe; + source_url?: InputMaybe; + technical_description?: InputMaybe; + updated_at?: InputMaybe; + version?: InputMaybe; +}; + +/** unique or primary key constraints on table "products" */ +export enum Products_Constraint { + /** unique or primary key constraint on columns "id" */ + ProductsPkey = 'products_pkey', + /** unique or primary key constraint on columns "slug" */ + ProductsSlugKey = 'products_slug_key' +} + +/** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */ +export type Products_Delete_At_Path_Input = { + inputs?: InputMaybe>; + outputs?: 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 Products_Delete_Elem_Input = { + inputs?: InputMaybe; + outputs?: InputMaybe; +}; + +/** delete key/value pair or string element. key/value pairs are matched based on their key value */ +export type Products_Delete_Key_Input = { + inputs?: InputMaybe; + outputs?: InputMaybe; +}; + +/** input type for inserting data into table "products" */ +export type Products_Insert_Input = { + author?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + greeting?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + inputs?: InputMaybe; + long_description?: InputMaybe; + name?: InputMaybe; + nsfw?: InputMaybe; + outputs?: InputMaybe; + product_collections?: InputMaybe; + product_prompts?: InputMaybe; + slug?: InputMaybe; + source_url?: InputMaybe; + technical_description?: InputMaybe; + updated_at?: InputMaybe; + version?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Products_Max_Fields = { + __typename?: 'products_max_fields'; + author?: Maybe; + created_at?: Maybe; + description?: Maybe; + greeting?: Maybe; + id?: Maybe; + image_url?: Maybe; + long_description?: Maybe; + name?: Maybe; + slug?: Maybe; + source_url?: Maybe; + technical_description?: Maybe; + updated_at?: Maybe; + version?: Maybe; +}; + +/** order by max() on columns of table "products" */ +export type Products_Max_Order_By = { + author?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + greeting?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + long_description?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + source_url?: InputMaybe; + technical_description?: InputMaybe; + updated_at?: InputMaybe; + version?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Products_Min_Fields = { + __typename?: 'products_min_fields'; + author?: Maybe; + created_at?: Maybe; + description?: Maybe; + greeting?: Maybe; + id?: Maybe; + image_url?: Maybe; + long_description?: Maybe; + name?: Maybe; + slug?: Maybe; + source_url?: Maybe; + technical_description?: Maybe; + updated_at?: Maybe; + version?: Maybe; +}; + +/** order by min() on columns of table "products" */ +export type Products_Min_Order_By = { + author?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + greeting?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + long_description?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + source_url?: InputMaybe; + technical_description?: InputMaybe; + updated_at?: InputMaybe; + version?: InputMaybe; +}; + +/** response of any mutation on the table "products" */ +export type Products_Mutation_Response = { + __typename?: 'products_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']['output']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** input type for inserting object relation for remote table "products" */ +export type Products_Obj_Rel_Insert_Input = { + data: Products_Insert_Input; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** on_conflict condition type for table "products" */ +export type Products_On_Conflict = { + constraint: Products_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "products". */ +export type Products_Order_By = { + author?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + greeting?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + inputs?: InputMaybe; + long_description?: InputMaybe; + name?: InputMaybe; + nsfw?: InputMaybe; + outputs?: InputMaybe; + product_collections_aggregate?: InputMaybe; + product_prompts_aggregate?: InputMaybe; + slug?: InputMaybe; + source_url?: InputMaybe; + technical_description?: InputMaybe; + updated_at?: InputMaybe; + version?: InputMaybe; +}; + +/** primary key columns input for table: products */ +export type Products_Pk_Columns_Input = { + id: Scalars['uuid']['input']; +}; + +/** prepend existing jsonb value of filtered columns with new jsonb value */ +export type Products_Prepend_Input = { + inputs?: InputMaybe; + outputs?: InputMaybe; +}; + +/** select columns of table "products" */ +export enum Products_Select_Column { + /** column name */ + Author = 'author', + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Description = 'description', + /** column name */ + Greeting = 'greeting', + /** column name */ + Id = 'id', + /** column name */ + ImageUrl = 'image_url', + /** column name */ + Inputs = 'inputs', + /** column name */ + LongDescription = 'long_description', + /** column name */ + Name = 'name', + /** column name */ + Nsfw = 'nsfw', + /** column name */ + Outputs = 'outputs', + /** column name */ + Slug = 'slug', + /** column name */ + SourceUrl = 'source_url', + /** column name */ + TechnicalDescription = 'technical_description', + /** column name */ + UpdatedAt = 'updated_at', + /** column name */ + Version = 'version' +} + +/** select "products_aggregate_bool_exp_bool_and_arguments_columns" columns of table "products" */ +export enum Products_Select_Column_Products_Aggregate_Bool_Exp_Bool_And_Arguments_Columns { + /** column name */ + Nsfw = 'nsfw' +} + +/** select "products_aggregate_bool_exp_bool_or_arguments_columns" columns of table "products" */ +export enum Products_Select_Column_Products_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns { + /** column name */ + Nsfw = 'nsfw' +} + +/** input type for updating data in table "products" */ +export type Products_Set_Input = { + author?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + greeting?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + inputs?: InputMaybe; + long_description?: InputMaybe; + name?: InputMaybe; + nsfw?: InputMaybe; + outputs?: InputMaybe; + slug?: InputMaybe; + source_url?: InputMaybe; + technical_description?: InputMaybe; + updated_at?: InputMaybe; + version?: InputMaybe; +}; + +/** Streaming cursor of the table "products" */ +export type Products_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Products_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Products_Stream_Cursor_Value_Input = { + author?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + greeting?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + inputs?: InputMaybe; + long_description?: InputMaybe; + name?: InputMaybe; + nsfw?: InputMaybe; + outputs?: InputMaybe; + slug?: InputMaybe; + source_url?: InputMaybe; + technical_description?: InputMaybe; + updated_at?: InputMaybe; + version?: InputMaybe; +}; + +/** update columns of table "products" */ +export enum Products_Update_Column { + /** column name */ + Author = 'author', + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Description = 'description', + /** column name */ + Greeting = 'greeting', + /** column name */ + Id = 'id', + /** column name */ + ImageUrl = 'image_url', + /** column name */ + Inputs = 'inputs', + /** column name */ + LongDescription = 'long_description', + /** column name */ + Name = 'name', + /** column name */ + Nsfw = 'nsfw', + /** column name */ + Outputs = 'outputs', + /** column name */ + Slug = 'slug', + /** column name */ + SourceUrl = 'source_url', + /** column name */ + TechnicalDescription = 'technical_description', + /** column name */ + UpdatedAt = 'updated_at', + /** column name */ + Version = 'version' +} + +export type Products_Updates = { + /** append existing jsonb value of filtered columns with new jsonb value */ + _append?: InputMaybe; + /** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */ + _delete_at_path?: 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 */ + _delete_elem?: InputMaybe; + /** delete key/value pair or string element. key/value pairs are matched based on their key value */ + _delete_key?: InputMaybe; + /** prepend existing jsonb value of filtered columns with new jsonb value */ + _prepend?: InputMaybe; + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Products_Bool_Exp; +}; + +/** columns and relationships of "prompts" */ +export type Prompts = { + __typename?: 'prompts'; + content?: Maybe; + created_at: Scalars['timestamptz']['output']; + id: Scalars['uuid']['output']; + image_url?: Maybe; + /** An array relationship */ + prompt_products: Array; + /** An aggregate relationship */ + prompt_products_aggregate: Product_Prompts_Aggregate; + slug: Scalars['String']['output']; + updated_at: Scalars['timestamptz']['output']; +}; + + +/** columns and relationships of "prompts" */ +export type PromptsPrompt_ProductsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "prompts" */ +export type PromptsPrompt_Products_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "prompts" */ +export type Prompts_Aggregate = { + __typename?: 'prompts_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +export type Prompts_Aggregate_Bool_Exp = { + count?: InputMaybe; +}; + +export type Prompts_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +/** aggregate fields of "prompts" */ +export type Prompts_Aggregate_Fields = { + __typename?: 'prompts_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "prompts" */ +export type Prompts_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "prompts" */ +export type Prompts_Aggregate_Order_By = { + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; +}; + +/** input type for inserting array relation for remote table "prompts" */ +export type Prompts_Arr_Rel_Insert_Input = { + data: Array; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "prompts". All fields are combined with a logical 'AND'. */ +export type Prompts_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + content?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + prompt_products?: InputMaybe; + prompt_products_aggregate?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** unique or primary key constraints on table "prompts" */ +export enum Prompts_Constraint { + /** unique or primary key constraint on columns "id" */ + PromptsPkey = 'prompts_pkey', + /** unique or primary key constraint on columns "slug" */ + PromptsSlugKey = 'prompts_slug_key' +} + +/** input type for inserting data into table "prompts" */ +export type Prompts_Insert_Input = { + content?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + prompt_products?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Prompts_Max_Fields = { + __typename?: 'prompts_max_fields'; + content?: Maybe; + created_at?: Maybe; + id?: Maybe; + image_url?: Maybe; + slug?: Maybe; + updated_at?: Maybe; +}; + +/** order by max() on columns of table "prompts" */ +export type Prompts_Max_Order_By = { + content?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Prompts_Min_Fields = { + __typename?: 'prompts_min_fields'; + content?: Maybe; + created_at?: Maybe; + id?: Maybe; + image_url?: Maybe; + slug?: Maybe; + updated_at?: Maybe; +}; + +/** order by min() on columns of table "prompts" */ +export type Prompts_Min_Order_By = { + content?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** response of any mutation on the table "prompts" */ +export type Prompts_Mutation_Response = { + __typename?: 'prompts_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']['output']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** on_conflict condition type for table "prompts" */ +export type Prompts_On_Conflict = { + constraint: Prompts_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "prompts". */ +export type Prompts_Order_By = { + content?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + prompt_products_aggregate?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** primary key columns input for table: prompts */ +export type Prompts_Pk_Columns_Input = { + id: Scalars['uuid']['input']; +}; + +/** select columns of table "prompts" */ +export enum Prompts_Select_Column { + /** column name */ + Content = 'content', + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + ImageUrl = 'image_url', + /** column name */ + Slug = 'slug', + /** column name */ + UpdatedAt = 'updated_at' +} + +/** input type for updating data in table "prompts" */ +export type Prompts_Set_Input = { + content?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** Streaming cursor of the table "prompts" */ +export type Prompts_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Prompts_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Prompts_Stream_Cursor_Value_Input = { + content?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + image_url?: InputMaybe; + slug?: InputMaybe; + updated_at?: InputMaybe; +}; + +/** update columns of table "prompts" */ +export enum Prompts_Update_Column { + /** column name */ + Content = 'content', + /** column name */ + CreatedAt = 'created_at', + /** column name */ + Id = 'id', + /** column name */ + ImageUrl = 'image_url', + /** column name */ + Slug = 'slug', + /** column name */ + UpdatedAt = 'updated_at' +} + +export type Prompts_Updates = { + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Prompts_Bool_Exp; +}; + +export type Query_Root = { + __typename?: 'query_root'; + /** An array relationship */ + collection_products: Array; + /** An aggregate relationship */ + collection_products_aggregate: Collection_Products_Aggregate; + /** fetch data from the table: "collection_products" using primary key columns */ + collection_products_by_pk?: Maybe; + /** An array relationship */ + collections: Array; + /** An aggregate relationship */ + collections_aggregate: Collections_Aggregate; + /** fetch data from the table: "collections" using primary key columns */ + collections_by_pk?: Maybe; + /** fetch data from the table: "conversations" */ + conversations: Array; + /** fetch aggregated fields from the table: "conversations" */ + conversations_aggregate: Conversations_Aggregate; + /** fetch data from the table: "conversations" using primary key columns */ + conversations_by_pk?: Maybe; + /** An array relationship */ + message_medias: Array; + /** An aggregate relationship */ + message_medias_aggregate: Message_Medias_Aggregate; + /** fetch data from the table: "message_medias" using primary key columns */ + message_medias_by_pk?: Maybe; + /** fetch data from the table: "messages" */ + messages: Array; + /** fetch aggregated fields from the table: "messages" */ + messages_aggregate: Messages_Aggregate; + /** fetch data from the table: "messages" using primary key columns */ + messages_by_pk?: Maybe; + /** An array relationship */ + product_prompts: Array; + /** An aggregate relationship */ + product_prompts_aggregate: Product_Prompts_Aggregate; + /** fetch data from the table: "product_prompts" using primary key columns */ + product_prompts_by_pk?: Maybe; + /** An array relationship */ + products: Array; + /** An aggregate relationship */ + products_aggregate: Products_Aggregate; + /** fetch data from the table: "products" using primary key columns */ + products_by_pk?: Maybe; + /** An array relationship */ + prompts: Array; + /** An aggregate relationship */ + prompts_aggregate: Prompts_Aggregate; + /** fetch data from the table: "prompts" using primary key columns */ + prompts_by_pk?: Maybe; +}; + + +export type Query_RootCollection_ProductsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootCollection_Products_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootCollection_Products_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Query_RootCollectionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootCollections_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootCollections_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Query_RootConversationsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootConversations_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootConversations_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Query_RootMessage_MediasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootMessage_Medias_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootMessage_Medias_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Query_RootMessagesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootMessages_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootMessages_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Query_RootProduct_PromptsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootProduct_Prompts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootProduct_Prompts_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Query_RootProductsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootProducts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootProducts_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Query_RootPromptsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootPrompts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootPrompts_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + +export type Subscription_Root = { + __typename?: 'subscription_root'; + /** An array relationship */ + collection_products: Array; + /** An aggregate relationship */ + collection_products_aggregate: Collection_Products_Aggregate; + /** fetch data from the table: "collection_products" using primary key columns */ + collection_products_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "collection_products" */ + collection_products_stream: Array; + /** An array relationship */ + collections: Array; + /** An aggregate relationship */ + collections_aggregate: Collections_Aggregate; + /** fetch data from the table: "collections" using primary key columns */ + collections_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "collections" */ + collections_stream: Array; + /** fetch data from the table: "conversations" */ + conversations: Array; + /** fetch aggregated fields from the table: "conversations" */ + conversations_aggregate: Conversations_Aggregate; + /** fetch data from the table: "conversations" using primary key columns */ + conversations_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "conversations" */ + conversations_stream: Array; + /** An array relationship */ + message_medias: Array; + /** An aggregate relationship */ + message_medias_aggregate: Message_Medias_Aggregate; + /** fetch data from the table: "message_medias" using primary key columns */ + message_medias_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "message_medias" */ + message_medias_stream: Array; + /** fetch data from the table: "messages" */ + messages: Array; + /** fetch aggregated fields from the table: "messages" */ + messages_aggregate: Messages_Aggregate; + /** fetch data from the table: "messages" using primary key columns */ + messages_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "messages" */ + messages_stream: Array; + /** An array relationship */ + product_prompts: Array; + /** An aggregate relationship */ + product_prompts_aggregate: Product_Prompts_Aggregate; + /** fetch data from the table: "product_prompts" using primary key columns */ + product_prompts_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "product_prompts" */ + product_prompts_stream: Array; + /** An array relationship */ + products: Array; + /** An aggregate relationship */ + products_aggregate: Products_Aggregate; + /** fetch data from the table: "products" using primary key columns */ + products_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "products" */ + products_stream: Array; + /** An array relationship */ + prompts: Array; + /** An aggregate relationship */ + prompts_aggregate: Prompts_Aggregate; + /** fetch data from the table: "prompts" using primary key columns */ + prompts_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "prompts" */ + prompts_stream: Array; +}; + + +export type Subscription_RootCollection_ProductsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootCollection_Products_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootCollection_Products_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Subscription_RootCollection_Products_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type Subscription_RootCollectionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootCollections_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootCollections_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Subscription_RootCollections_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type Subscription_RootConversationsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootConversations_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootConversations_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Subscription_RootConversations_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type Subscription_RootMessage_MediasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootMessage_Medias_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootMessage_Medias_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Subscription_RootMessage_Medias_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type Subscription_RootMessagesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootMessages_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootMessages_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Subscription_RootMessages_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type Subscription_RootProduct_PromptsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootProduct_Prompts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootProduct_Prompts_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Subscription_RootProduct_Prompts_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type Subscription_RootProductsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootProducts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootProducts_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Subscription_RootProducts_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + + +export type Subscription_RootPromptsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootPrompts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootPrompts_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Subscription_RootPrompts_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */ +export type Timestamptz_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 "uuid". All fields are combined with logical 'AND'. */ +export type Uuid_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +export type CollectionDetailFragment = { __typename?: 'collections', slug: string, name: string }; + +export type ConversationDetailFragment = { __typename?: 'conversations', id: any, product_id: any, user_id: string, last_image_url?: string | null, last_text_message?: string | null, created_at: any, updated_at: any, conversation_product?: { __typename?: 'products', id: any, name: string, slug: string, description?: string | null, long_description?: string | null, technical_description?: string | null, image_url?: string | null, author?: string | null, greeting?: string | null, source_url?: string | null, version?: string | null, inputs?: any | null, outputs?: any | null, nsfw: boolean } | null }; + +export type MessageMediaFragment = { __typename?: 'message_medias', id: any, message_id: any, media_url?: string | null, mime_type?: string | null, updated_at: any }; + +export type MessageDetailFragment = { __typename?: 'messages', id: any, conversation_id: any, sender: string, sender_name?: string | null, sender_avatar_url?: string | null, content?: string | null, message_type?: string | null, message_sender_type?: string | null, created_at: any, updated_at: any, status?: string | null, message_medias: Array<{ __typename?: 'message_medias', id: any, message_id: any, media_url?: string | null, mime_type?: string | null, updated_at: any }> }; + +export type ProductDetailFragment = { __typename?: 'products', id: any, name: string, slug: string, description?: string | null, long_description?: string | null, technical_description?: string | null, image_url?: string | null, author?: string | null, greeting?: string | null, source_url?: string | null, version?: string | null, inputs?: any | null, outputs?: any | null, nsfw: boolean }; + +export type PromptDetailFragment = { __typename?: 'prompts', slug: string, content?: string | null, image_url?: string | null }; + +export type CreateConversationMutationVariables = Exact<{ + data: Conversations_Insert_Input; +}>; + + +export type CreateConversationMutation = { __typename?: 'mutation_root', insert_conversations_one?: { __typename?: 'conversations', id: any, product_id: any, user_id: string, last_image_url?: string | null, last_text_message?: string | null, created_at: any, updated_at: any, conversation_product?: { __typename?: 'products', id: any, name: string, slug: string, description?: string | null, long_description?: string | null, technical_description?: string | null, image_url?: string | null, author?: string | null, greeting?: string | null, source_url?: string | null, version?: string | null, inputs?: any | null, outputs?: any | null, nsfw: boolean } | null } | null }; + +export type CreateMessageMutationVariables = Exact<{ + data: Messages_Insert_Input; +}>; + + +export type CreateMessageMutation = { __typename?: 'mutation_root', insert_messages_one?: { __typename?: 'messages', id: any, conversation_id: any, sender: string, sender_name?: string | null, sender_avatar_url?: string | null, content?: string | null, message_type?: string | null, message_sender_type?: string | null, created_at: any, updated_at: any, status?: string | null, message_medias: Array<{ __typename?: 'message_medias', id: any, message_id: any, media_url?: string | null, mime_type?: string | null, updated_at: any }> } | null }; + +export type DeleteConversationMutationVariables = Exact<{ + id: Scalars['uuid']['input']; +}>; + + +export type DeleteConversationMutation = { __typename?: 'mutation_root', delete_conversations_by_pk?: { __typename?: 'conversations', id: any } | null }; + +export type GenerateImageMutationVariables = Exact<{ + model?: InputMaybe; + neg_prompt?: InputMaybe; + prompt?: InputMaybe; + seed?: InputMaybe; + steps?: InputMaybe; + width?: InputMaybe; + height?: InputMaybe; +}>; + + +export type GenerateImageMutation = { __typename?: 'mutation_root', imageGeneration?: { __typename?: 'ImageGenerationOutput', url: string } | null }; + +export type UpdateConversationMutationVariables = Exact<{ + id: Scalars['uuid']['input']; + lastMessageText?: InputMaybe; + lastMessageUrl?: InputMaybe; +}>; + + +export type UpdateConversationMutation = { __typename?: 'mutation_root', update_conversations_by_pk?: { __typename?: 'conversations', id: any, product_id: any, user_id: string, last_image_url?: string | null, last_text_message?: string | null, created_at: any, updated_at: any, conversation_product?: { __typename?: 'products', id: any, name: string, slug: string, description?: string | null, long_description?: string | null, technical_description?: string | null, image_url?: string | null, author?: string | null, greeting?: string | null, source_url?: string | null, version?: string | null, inputs?: any | null, outputs?: any | null, nsfw: boolean } | null } | null }; + +export type UpdateMessageMutationVariables = Exact<{ + id?: InputMaybe; + data: Messages_Set_Input; +}>; + + +export type UpdateMessageMutation = { __typename?: 'mutation_root', update_messages_by_pk?: { __typename?: 'messages', id: any, conversation_id: any, sender: string, sender_name?: string | null, sender_avatar_url?: string | null, content?: string | null, message_type?: string | null, message_sender_type?: string | null, created_at: any, updated_at: any, status?: string | null, message_medias: Array<{ __typename?: 'message_medias', id: any, message_id: any, media_url?: string | null, mime_type?: string | null, updated_at: any }> } | null }; + +export type GetCollectionsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetCollectionsQuery = { __typename?: 'query_root', collections: Array<{ __typename?: 'collections', slug: string, name: string, collection_products: Array<{ __typename?: 'collection_products', products: Array<{ __typename?: 'products', id: any, name: string, slug: string, description?: string | null, long_description?: string | null, technical_description?: string | null, image_url?: string | null, author?: string | null, greeting?: string | null, source_url?: string | null, version?: string | null, inputs?: any | null, outputs?: any | null, nsfw: boolean, product_prompts: Array<{ __typename?: 'product_prompts', prompts: Array<{ __typename?: 'prompts', slug: string, content?: string | null, image_url?: string | null }> }> }> }> }> }; + +export type GetConversationMessagesQueryVariables = Exact<{ + conversation_id?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; +}>; + + +export type GetConversationMessagesQuery = { __typename?: 'query_root', messages: Array<{ __typename?: 'messages', id: any, conversation_id: any, sender: string, sender_name?: string | null, sender_avatar_url?: string | null, content?: string | null, message_type?: string | null, message_sender_type?: string | null, created_at: any, updated_at: any, status?: string | null, message_medias: Array<{ __typename?: 'message_medias', id: any, message_id: any, media_url?: string | null, mime_type?: string | null, updated_at: any }> }> }; + +export type GetConversationsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetConversationsQuery = { __typename?: 'query_root', conversations: Array<{ __typename?: 'conversations', id: any, product_id: any, user_id: string, last_image_url?: string | null, last_text_message?: string | null, created_at: any, updated_at: any, conversation_messages: Array<{ __typename?: 'messages', id: any, conversation_id: any, sender: string, sender_name?: string | null, sender_avatar_url?: string | null, content?: string | null, message_type?: string | null, message_sender_type?: string | null, created_at: any, updated_at: any, status?: string | null, message_medias: Array<{ __typename?: 'message_medias', id: any, message_id: any, media_url?: string | null, mime_type?: string | null, updated_at: any }> }>, conversation_product?: { __typename?: 'products', id: any, name: string, slug: string, description?: string | null, long_description?: string | null, technical_description?: string | null, image_url?: string | null, author?: string | null, greeting?: string | null, source_url?: string | null, version?: string | null, inputs?: any | null, outputs?: any | null, nsfw: boolean } | null }> }; + +export type GetProductsByCollectionSlugQueryVariables = Exact<{ + slug?: InputMaybe; +}>; + + +export type GetProductsByCollectionSlugQuery = { __typename?: 'query_root', products: Array<{ __typename?: 'products', id: any, name: string, slug: string, description?: string | null, long_description?: string | null, technical_description?: string | null, image_url?: string | null, author?: string | null, greeting?: string | null, source_url?: string | null, version?: string | null, inputs?: any | null, outputs?: any | null, nsfw: boolean, product_prompts: Array<{ __typename?: 'product_prompts', prompts: Array<{ __typename?: 'prompts', slug: string, content?: string | null, image_url?: string | null }> }>, product_collections: Array<{ __typename?: 'collection_products', collections: Array<{ __typename?: 'collections', slug: string, name: string }> }> }> }; + +export type GetProductPromptsQueryVariables = Exact<{ + productSlug?: InputMaybe; +}>; + + +export type GetProductPromptsQuery = { __typename?: 'query_root', prompts: Array<{ __typename?: 'prompts', slug: string, content?: string | null, image_url?: string | null }> }; + +export type GetProductsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetProductsQuery = { __typename?: 'query_root', products: Array<{ __typename?: 'products', id: any, name: string, slug: string, description?: string | null, long_description?: string | null, technical_description?: string | null, image_url?: string | null, author?: string | null, greeting?: string | null, source_url?: string | null, version?: string | null, inputs?: any | null, outputs?: any | null, nsfw: boolean, product_prompts: Array<{ __typename?: 'product_prompts', prompts: Array<{ __typename?: 'prompts', slug: string, content?: string | null, image_url?: string | null }> }>, product_collections: Array<{ __typename?: 'collection_products', collections: Array<{ __typename?: 'collections', slug: string, name: string }> }> }> }; + +export type GetProductsInQueryVariables = Exact<{ + _in?: InputMaybe | Scalars['String']['input']>; +}>; + + +export type GetProductsInQuery = { __typename?: 'query_root', products: Array<{ __typename?: 'products', id: any, name: string, slug: string, description?: string | null, long_description?: string | null, technical_description?: string | null, image_url?: string | null, author?: string | null, greeting?: string | null, source_url?: string | null, version?: string | null, inputs?: any | null, outputs?: any | null, nsfw: boolean }> }; + +export type SubscribeMessageSubscriptionVariables = Exact<{ + id?: InputMaybe; +}>; + + +export type SubscribeMessageSubscription = { __typename?: 'subscription_root', messages_by_pk?: { __typename?: 'messages', content?: string | null, status?: string | null } | null }; + +export const CollectionDetailFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CollectionDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"collections"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]} as unknown as DocumentNode; +export const ProductDetailFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ProductDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"products"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"long_description"}},{"kind":"Field","name":{"kind":"Name","value":"technical_description"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"greeting"}},{"kind":"Field","name":{"kind":"Name","value":"source_url"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"inputs"}},{"kind":"Field","name":{"kind":"Name","value":"outputs"}},{"kind":"Field","name":{"kind":"Name","value":"nsfw"}}]}}]} as unknown as DocumentNode; +export const ConversationDetailFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConversationDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"conversations"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"product_id"}},{"kind":"Field","name":{"kind":"Name","value":"user_id"}},{"kind":"Field","name":{"kind":"Name","value":"last_image_url"}},{"kind":"Field","name":{"kind":"Name","value":"last_text_message"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ProductDetail"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ProductDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"products"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"long_description"}},{"kind":"Field","name":{"kind":"Name","value":"technical_description"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"greeting"}},{"kind":"Field","name":{"kind":"Name","value":"source_url"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"inputs"}},{"kind":"Field","name":{"kind":"Name","value":"outputs"}},{"kind":"Field","name":{"kind":"Name","value":"nsfw"}}]}}]} as unknown as DocumentNode; +export const MessageMediaFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageMedia"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"message_medias"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"message_id"}},{"kind":"Field","name":{"kind":"Name","value":"media_url"}},{"kind":"Field","name":{"kind":"Name","value":"mime_type"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}}]}}]} as unknown as DocumentNode; +export const MessageDetailFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"messages"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_id"}},{"kind":"Field","name":{"kind":"Name","value":"sender"}},{"kind":"Field","name":{"kind":"Name","value":"sender_name"}},{"kind":"Field","name":{"kind":"Name","value":"sender_avatar_url"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"message_type"}},{"kind":"Field","name":{"kind":"Name","value":"message_sender_type"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"message_medias"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageMedia"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageMedia"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"message_medias"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"message_id"}},{"kind":"Field","name":{"kind":"Name","value":"media_url"}},{"kind":"Field","name":{"kind":"Name","value":"mime_type"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}}]}}]} as unknown as DocumentNode; +export const PromptDetailFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PromptDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"prompts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}}]}}]} as unknown as DocumentNode; +export const CreateConversationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createConversation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"conversations_insert_input"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insert_conversations_one"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"object"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConversationDetail"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ProductDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"products"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"long_description"}},{"kind":"Field","name":{"kind":"Name","value":"technical_description"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"greeting"}},{"kind":"Field","name":{"kind":"Name","value":"source_url"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"inputs"}},{"kind":"Field","name":{"kind":"Name","value":"outputs"}},{"kind":"Field","name":{"kind":"Name","value":"nsfw"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConversationDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"conversations"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"product_id"}},{"kind":"Field","name":{"kind":"Name","value":"user_id"}},{"kind":"Field","name":{"kind":"Name","value":"last_image_url"}},{"kind":"Field","name":{"kind":"Name","value":"last_text_message"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ProductDetail"}}]}}]}}]} as unknown as DocumentNode; +export const CreateMessageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createMessage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"messages_insert_input"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insert_messages_one"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"object"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageDetail"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageMedia"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"message_medias"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"message_id"}},{"kind":"Field","name":{"kind":"Name","value":"media_url"}},{"kind":"Field","name":{"kind":"Name","value":"mime_type"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"messages"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_id"}},{"kind":"Field","name":{"kind":"Name","value":"sender"}},{"kind":"Field","name":{"kind":"Name","value":"sender_name"}},{"kind":"Field","name":{"kind":"Name","value":"sender_avatar_url"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"message_type"}},{"kind":"Field","name":{"kind":"Name","value":"message_sender_type"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"message_medias"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageMedia"}}]}}]}}]} as unknown as DocumentNode; +export const DeleteConversationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"deleteConversation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"uuid"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"delete_conversations_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const GenerateImageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"generateImage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"model"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"neg_prompt"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"prompt"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"seed"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"defaultValue":{"kind":"IntValue","value":"10"}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"steps"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"defaultValue":{"kind":"IntValue","value":"10"}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"width"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"defaultValue":{"kind":"IntValue","value":"512"}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"height"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"defaultValue":{"kind":"IntValue","value":"512"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"imageGeneration"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"model"},"value":{"kind":"Variable","name":{"kind":"Name","value":"model"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"neg_prompt"},"value":{"kind":"Variable","name":{"kind":"Name","value":"neg_prompt"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"prompt"},"value":{"kind":"Variable","name":{"kind":"Name","value":"prompt"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"seed"},"value":{"kind":"Variable","name":{"kind":"Name","value":"seed"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"steps"},"value":{"kind":"Variable","name":{"kind":"Name","value":"steps"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"width"},"value":{"kind":"Variable","name":{"kind":"Name","value":"width"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"height"},"value":{"kind":"Variable","name":{"kind":"Name","value":"height"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateConversationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateConversation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"uuid"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lastMessageText"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lastMessageUrl"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"update_conversations_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk_columns"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}},{"kind":"Argument","name":{"kind":"Name","value":"_set"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"last_text_message"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lastMessageText"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"last_image_url"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lastMessageUrl"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConversationDetail"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ProductDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"products"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"long_description"}},{"kind":"Field","name":{"kind":"Name","value":"technical_description"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"greeting"}},{"kind":"Field","name":{"kind":"Name","value":"source_url"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"inputs"}},{"kind":"Field","name":{"kind":"Name","value":"outputs"}},{"kind":"Field","name":{"kind":"Name","value":"nsfw"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConversationDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"conversations"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"product_id"}},{"kind":"Field","name":{"kind":"Name","value":"user_id"}},{"kind":"Field","name":{"kind":"Name","value":"last_image_url"}},{"kind":"Field","name":{"kind":"Name","value":"last_text_message"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ProductDetail"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateMessageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateMessage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"uuid"}},"defaultValue":{"kind":"StringValue","value":"","block":false}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"messages_set_input"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"update_messages_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk_columns"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}},{"kind":"Argument","name":{"kind":"Name","value":"_set"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageDetail"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageMedia"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"message_medias"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"message_id"}},{"kind":"Field","name":{"kind":"Name","value":"media_url"}},{"kind":"Field","name":{"kind":"Name","value":"mime_type"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"messages"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_id"}},{"kind":"Field","name":{"kind":"Name","value":"sender"}},{"kind":"Field","name":{"kind":"Name","value":"sender_name"}},{"kind":"Field","name":{"kind":"Name","value":"sender_avatar_url"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"message_type"}},{"kind":"Field","name":{"kind":"Name","value":"message_sender_type"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"message_medias"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageMedia"}}]}}]}}]} as unknown as DocumentNode; +export const GetCollectionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getCollections"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"collections"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CollectionDetail"}},{"kind":"Field","name":{"kind":"Name","value":"collection_products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ProductDetail"}},{"kind":"Field","name":{"kind":"Name","value":"product_prompts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"prompts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PromptDetail"}}]}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CollectionDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"collections"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ProductDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"products"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"long_description"}},{"kind":"Field","name":{"kind":"Name","value":"technical_description"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"greeting"}},{"kind":"Field","name":{"kind":"Name","value":"source_url"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"inputs"}},{"kind":"Field","name":{"kind":"Name","value":"outputs"}},{"kind":"Field","name":{"kind":"Name","value":"nsfw"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PromptDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"prompts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}}]}}]} as unknown as DocumentNode; +export const GetConversationMessagesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getConversationMessages"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"conversation_id"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"uuid"}},"defaultValue":{"kind":"StringValue","value":"","block":false}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"defaultValue":{"kind":"IntValue","value":"100"}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"defaultValue":{"kind":"IntValue","value":"100"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"conversation_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"conversation_id"}}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"updated_at"},"value":{"kind":"EnumValue","value":"desc"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageDetail"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageMedia"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"message_medias"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"message_id"}},{"kind":"Field","name":{"kind":"Name","value":"media_url"}},{"kind":"Field","name":{"kind":"Name","value":"mime_type"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"messages"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_id"}},{"kind":"Field","name":{"kind":"Name","value":"sender"}},{"kind":"Field","name":{"kind":"Name","value":"sender_name"}},{"kind":"Field","name":{"kind":"Name","value":"sender_avatar_url"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"message_type"}},{"kind":"Field","name":{"kind":"Name","value":"message_sender_type"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"message_medias"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageMedia"}}]}}]}}]} as unknown as DocumentNode; +export const GetConversationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getConversations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"conversations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConversationDetail"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_messages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageDetail"}},{"kind":"Field","name":{"kind":"Name","value":"message_medias"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageMedia"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ProductDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"products"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"long_description"}},{"kind":"Field","name":{"kind":"Name","value":"technical_description"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"greeting"}},{"kind":"Field","name":{"kind":"Name","value":"source_url"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"inputs"}},{"kind":"Field","name":{"kind":"Name","value":"outputs"}},{"kind":"Field","name":{"kind":"Name","value":"nsfw"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageMedia"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"message_medias"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"message_id"}},{"kind":"Field","name":{"kind":"Name","value":"media_url"}},{"kind":"Field","name":{"kind":"Name","value":"mime_type"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConversationDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"conversations"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"product_id"}},{"kind":"Field","name":{"kind":"Name","value":"user_id"}},{"kind":"Field","name":{"kind":"Name","value":"last_image_url"}},{"kind":"Field","name":{"kind":"Name","value":"last_text_message"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ProductDetail"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MessageDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"messages"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"conversation_id"}},{"kind":"Field","name":{"kind":"Name","value":"sender"}},{"kind":"Field","name":{"kind":"Name","value":"sender_name"}},{"kind":"Field","name":{"kind":"Name","value":"sender_avatar_url"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"message_type"}},{"kind":"Field","name":{"kind":"Name","value":"message_sender_type"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"message_medias"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MessageMedia"}}]}}]}}]} as unknown as DocumentNode; +export const GetProductsByCollectionSlugDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getProductsByCollectionSlug"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"slug"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"products"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"product_collections"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"collections"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"slug"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"slug"}}}]}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ProductDetail"}},{"kind":"Field","name":{"kind":"Name","value":"product_prompts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"prompts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PromptDetail"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"product_collections"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"collections"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CollectionDetail"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ProductDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"products"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"long_description"}},{"kind":"Field","name":{"kind":"Name","value":"technical_description"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"greeting"}},{"kind":"Field","name":{"kind":"Name","value":"source_url"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"inputs"}},{"kind":"Field","name":{"kind":"Name","value":"outputs"}},{"kind":"Field","name":{"kind":"Name","value":"nsfw"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PromptDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"prompts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CollectionDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"collections"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]} as unknown as DocumentNode; +export const GetProductPromptsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getProductPrompts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"productSlug"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"prompts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"prompt_products"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"products"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"slug"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"productSlug"}}}]}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PromptDetail"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PromptDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"prompts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}}]}}]} as unknown as DocumentNode; +export const GetProductsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getProducts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ProductDetail"}},{"kind":"Field","name":{"kind":"Name","value":"product_prompts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"prompts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PromptDetail"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"product_collections"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"collections"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CollectionDetail"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ProductDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"products"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"long_description"}},{"kind":"Field","name":{"kind":"Name","value":"technical_description"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"greeting"}},{"kind":"Field","name":{"kind":"Name","value":"source_url"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"inputs"}},{"kind":"Field","name":{"kind":"Name","value":"outputs"}},{"kind":"Field","name":{"kind":"Name","value":"nsfw"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PromptDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"prompts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CollectionDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"collections"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]} as unknown as DocumentNode; +export const GetProductsInDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getProductsIn"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"_in"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},"defaultValue":{"kind":"StringValue","value":"","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"products"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"slug"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"_in"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ProductDetail"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ProductDetail"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"products"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"long_description"}},{"kind":"Field","name":{"kind":"Name","value":"technical_description"}},{"kind":"Field","name":{"kind":"Name","value":"image_url"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"greeting"}},{"kind":"Field","name":{"kind":"Name","value":"source_url"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"inputs"}},{"kind":"Field","name":{"kind":"Name","value":"outputs"}},{"kind":"Field","name":{"kind":"Name","value":"nsfw"}}]}}]} as unknown as DocumentNode; +export const SubscribeMessageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"subscribeMessage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"uuid"}},"defaultValue":{"kind":"StringValue","value":"","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messages_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/web-client/graphql/generated/index.ts b/web-client/graphql/generated/index.ts new file mode 100644 index 000000000..af7839936 --- /dev/null +++ b/web-client/graphql/generated/index.ts @@ -0,0 +1 @@ +export * from "./gql"; \ No newline at end of file