diff --git a/refact-agent/gui/generated/documents.ts b/refact-agent/gui/generated/documents.ts index 1fd943af9..4500be0fe 100644 --- a/refact-agent/gui/generated/documents.ts +++ b/refact-agent/gui/generated/documents.ts @@ -16,12 +16,15 @@ export type Scalars = { Float: { input: number; output: number; } JSON: { input: any; output: any; } Union: { input: any; output: any; } + Void: { input: any; output: any; } }; export type BasicStuffResult = { __typename?: 'BasicStuffResult'; + fuser_avatar: Scalars['String']['output']; fuser_id: Scalars['String']['output']; fuser_psystem?: Maybe; + fuser_questionnaire?: Maybe; invitations?: Maybe>; is_oauth: Scalars['Boolean']['output']; my_own_ws_id?: Maybe; @@ -31,6 +34,7 @@ export type BasicStuffResult = { export type CloudtoolResultInput = { dollars?: Scalars['Float']['input']; fcall_id: Scalars['String']['input']; + fcall_untrusted_key: Scalars['String']['input']; ftm_content: Scalars['String']['input']; ftm_provenance: Scalars['String']['input']; }; @@ -70,6 +74,14 @@ export type FBotInstallOutput = { marketable_version: Scalars['String']['output']; }; +export type FBotVersionsSubs = { + __typename?: 'FBotVersionsSubs'; + news_action: Scalars['String']['output']; + news_payload_id: Scalars['String']['output']; + news_payload_marketplace?: Maybe; + news_pubsub: Scalars['String']['output']; +}; + export type FCloudTool = { __typename?: 'FCloudTool'; ctool_confirmed_exists_ts?: Maybe; @@ -148,8 +160,13 @@ export type FExpertSubs = { news_pubsub: Scalars['String']['output']; }; +export type FExternalAuthOAuthStartInput = { + ws_id: Scalars['String']['input']; +}; + export type FExternalDataSourceInput = { eds_json: Scalars['String']['input']; + eds_last_successful_scan_ts?: Scalars['Float']['input']; eds_name: Scalars['String']['input']; eds_type: Scalars['String']['input']; located_fgroup_id: Scalars['String']['input']; @@ -183,6 +200,13 @@ export type FExternalDataSourceSubs = { news_payload_id: Scalars['String']['output']; }; +export type FGitHubMintTokenOutput = { + __typename?: 'FGitHubMintTokenOutput'; + expires_at: Scalars['String']['output']; + installation_id: Scalars['String']['output']; + token: Scalars['String']['output']; +}; + export type FKanbanTaskInput = { details_json?: InputMaybe; state: Scalars['String']['input']; @@ -232,6 +256,24 @@ export type FKnowledgeItemSubs = { news_pubsub: Scalars['String']['output']; }; +export type FMarketplaceBuildCheckResult = { + __typename?: 'FMarketplaceBuildCheckResult'; + can_build: Scalars['Boolean']['output']; + error_message?: Maybe; + github_app_install_url?: Maybe; + is_private_repo: Scalars['Boolean']['output']; + needs_credentials: Scalars['Boolean']['output']; +}; + +export type FMarketplaceDetails = { + __typename?: 'FMarketplaceDetails'; + dev_personas: Array; + dev_version_details?: Maybe; + personas: Array; + showcased_version_details?: Maybe; + versions: Array; +}; + export type FMarketplaceExpertInput = { fexp_allow_tools: Scalars['String']['input']; fexp_app_capture_tools?: Scalars['String']['input']; @@ -241,26 +283,42 @@ export type FMarketplaceExpertInput = { fexp_system_prompt: Scalars['String']['input']; }; -export type FMarketplaceInstallOutput = { - __typename?: 'FMarketplaceInstallOutput'; - persona_id: Scalars['String']['output']; -}; - export type FMarketplaceOutput = { __typename?: 'FMarketplaceOutput'; available_ws_id?: Maybe; + fuser_is_owner?: Maybe; + marketable_author: Scalars['String']['output']; marketable_description: Scalars['String']['output']; + marketable_docker_image_built_ts: Scalars['Float']['output']; + marketable_github_repo: Scalars['String']['output']; marketable_name: Scalars['String']['output']; + marketable_occupation: Scalars['String']['output']; marketable_picture_big?: Maybe; marketable_picture_small?: Maybe; marketable_popularity_counter: Scalars['Int']['output']; marketable_price: Scalars['Int']['output']; + marketable_stage: Scalars['String']['output']; marketable_star_event: Scalars['Int']['output']; marketable_star_sum: Scalars['Int']['output']; + marketable_tags: Array; marketable_title1: Scalars['String']['output']; marketable_title2: Scalars['String']['output']; - marketable_version: Scalars['String']['output']; + marketable_typical_group: Scalars['String']['output']; + marketable_version: Scalars['Int']['output']; + popularity_counter_all_versions?: Maybe; seller_fuser_id?: Maybe; + stars_avg_all_versions?: Maybe; + stars_count_all_versions?: Maybe; + stars_event_all_versions?: Maybe; +}; + +export type FMarketplaceVersionInfo = { + __typename?: 'FMarketplaceVersionInfo'; + marketable_current_persona_count: Scalars['Int']['output']; + marketable_docker_image_error_msg?: Maybe; + marketable_docker_image_status?: Maybe; + marketable_stage: Scalars['String']['output']; + marketable_version: Scalars['Int']['output']; }; export type FMassInvitationOutput = { @@ -276,6 +334,8 @@ export type FMcpServerInput = { mcp_enabled?: Scalars['Boolean']['input']; mcp_env_vars?: InputMaybe; mcp_name: Scalars['String']['input']; + mcp_preinstall_script?: Scalars['String']['input']; + owner_shared?: Scalars['Boolean']['input']; }; export type FMcpServerOutput = { @@ -289,6 +349,7 @@ export type FMcpServerOutput = { mcp_id: Scalars['String']['output']; mcp_modified_ts: Scalars['Float']['output']; mcp_name: Scalars['String']['output']; + mcp_preinstall_script: Scalars['String']['output']; owner_fuser_id: Scalars['String']['output']; owner_shared: Scalars['Boolean']['output']; }; @@ -300,6 +361,7 @@ export type FMcpServerPatch = { mcp_enabled?: InputMaybe; mcp_env_vars?: InputMaybe; mcp_name?: InputMaybe; + mcp_preinstall_script?: InputMaybe; owner_shared?: InputMaybe; }; @@ -311,6 +373,20 @@ export type FMcpServerSubs = { news_pubsub: Scalars['String']['output']; }; +export type FMeteringOutput = { + __typename?: 'FMeteringOutput'; + fgroup_id: Scalars['String']['output']; + met_coins: Scalars['Int']['output']; + met_details: Scalars['JSON']['output']; + met_involved_ft_id: Scalars['String']['output']; + met_involved_fuser_id: Scalars['String']['output']; + met_involved_model: Scalars['String']['output']; + met_serial: Scalars['Int']['output']; + met_ts: Scalars['Float']['output']; + met_type: Scalars['String']['output']; + ws_id: Scalars['String']['output']; +}; + export type FModelItem = { __typename?: 'FModelItem'; provm_caps: Scalars['JSON']['output']; @@ -336,19 +412,13 @@ export type FPermissionSubs = { news_pubsub: Scalars['String']['output']; }; -export type FPersonaHistoryItemOutput = { - __typename?: 'FPersonaHistoryItemOutput'; - ft_id: Scalars['String']['output']; - title: Scalars['String']['output']; -}; - -export type FPersonaInput = { - located_fgroup_id: Scalars['String']['input']; - persona_discounts?: InputMaybe; - persona_marketable_name: Scalars['String']['input']; - persona_marketable_version: Scalars['String']['input']; - persona_name: Scalars['String']['input']; - persona_setup: Scalars['String']['input']; +export type FPersonaDocOutput = { + __typename?: 'FPersonaDocOutput'; + ctime: Scalars['Float']['output']; + mime_type: Scalars['String']['output']; + mtime: Scalars['Float']['output']; + path: Scalars['String']['output']; + size_bytes: Scalars['Int']['output']; }; export type FPersonaKanbanSubs = { @@ -363,14 +433,18 @@ export type FPersonaKanbanTaskOutput = { __typename?: 'FPersonaKanbanTaskOutput'; ktask_blocks_ktask_id?: Maybe; ktask_budget: Scalars['Int']['output']; + ktask_coins: Scalars['Int']['output']; + ktask_daily_timekey: Scalars['String']['output']; ktask_details: Scalars['JSON']['output']; ktask_done_ts: Scalars['Float']['output']; - ktask_failed_ts: Scalars['Float']['output']; ktask_id: Scalars['String']['output']; ktask_inbox_provenance: Scalars['JSON']['output']; ktask_inbox_ts: Scalars['Float']['output']; - ktask_inprogress_ft_id: Scalars['String']['output']; + ktask_inprogress_activity_ts: Scalars['Float']['output']; + ktask_inprogress_ft_id?: Maybe; ktask_inprogress_ts: Scalars['Float']['output']; + ktask_resolution_code?: Maybe; + ktask_resolution_summary?: Maybe; ktask_title: Scalars['String']['output']; ktask_todo_ts: Scalars['Float']['output']; persona_id: Scalars['String']['output']; @@ -378,32 +452,54 @@ export type FPersonaKanbanTaskOutput = { export type FPersonaOutput = { __typename?: 'FPersonaOutput'; - history?: Maybe>; latest_ft_id?: Maybe; located_fgroup_id: Scalars['String']['output']; + marketable_author?: Maybe; marketable_docker_image?: Maybe; + marketable_occupation?: Maybe; marketable_run_this?: Maybe; marketable_setup_default?: Maybe; + marketable_stage?: Maybe; owner_fuser_id: Scalars['String']['output']; - persona_archived_ts: Scalars['Float']['output']; + persona_auto_upgrade: Scalars['Boolean']['output']; persona_created_ts: Scalars['Float']['output']; + persona_daily_budget: Scalars['Int']['output']; + persona_daily_coins: Scalars['Int']['output']; + persona_daily_timekey: Scalars['String']['output']; persona_discounts?: Maybe; persona_enabled: Scalars['Boolean']['output']; persona_id: Scalars['String']['output']; + persona_inbox_budget: Scalars['Int']['output']; persona_marketable_name: Scalars['String']['output']; - persona_marketable_version: Scalars['String']['output']; + persona_marketable_version: Scalars['Int']['output']; persona_name: Scalars['String']['output']; persona_picture_big?: Maybe; persona_picture_small?: Maybe; + persona_preferred_model: Scalars['String']['output']; + persona_prerelease: Scalars['Boolean']['output']; persona_setup: Scalars['JSON']['output']; + pstat_fail: Scalars['Int']['output']; + pstat_humanhours: Scalars['Float']['output']; + pstat_inbox: Scalars['Int']['output']; + pstat_inconclusive: Scalars['Int']['output']; + pstat_irrelevant: Scalars['Int']['output']; + pstat_prioritize: Scalars['Int']['output']; + pstat_reopened: Scalars['Int']['output']; + pstat_success: Scalars['Int']['output']; + pstat_week_base?: Maybe; + ws_id?: Maybe; + ws_timezone?: Maybe; }; export type FPersonaPatch = { located_fgroup_id?: InputMaybe; - persona_archived_ts?: InputMaybe; + persona_auto_upgrade?: InputMaybe; + persona_daily_budget?: InputMaybe; persona_enabled?: InputMaybe; - persona_marketable_version?: InputMaybe; + persona_inbox_budget?: InputMaybe; persona_name?: InputMaybe; + persona_preferred_model?: InputMaybe; + persona_prerelease?: InputMaybe; persona_setup?: InputMaybe; }; @@ -415,20 +511,25 @@ export type FPersonaScheduleListOutput = { export type FPersonaScheduleOutput = { __typename?: 'FPersonaScheduleOutput'; + sched_enable: Scalars['Boolean']['output']; sched_first_question: Scalars['String']['output']; sched_id: Scalars['String']['output']; + sched_last_ft_id?: Maybe; sched_last_run_ts: Scalars['Float']['output']; + sched_marketplace: Scalars['Boolean']['output']; sched_persona_id: Scalars['String']['output']; - sched_rrule: Scalars['String']['output']; - sched_start_ts: Scalars['Float']['output']; + sched_type: Scalars['String']['output']; + sched_when: Scalars['String']['output']; }; export type FPersonaScheduleUpsertInput = { + sched_enable: Scalars['Boolean']['input']; sched_first_question: Scalars['String']['input']; sched_id?: InputMaybe; + sched_marketplace: Scalars['Boolean']['input']; sched_persona_id: Scalars['String']['input']; - sched_rrule: Scalars['String']['input']; - sched_start_ts: Scalars['Float']['input']; + sched_type: Scalars['String']['input']; + sched_when: Scalars['String']['input']; }; export type FPersonaSubs = { @@ -441,9 +542,10 @@ export type FPersonaSubs = { export type FStatsAddInput = { fgroup_id?: Scalars['String']['input']; + ft_id?: Scalars['String']['input']; st_chart: Scalars['Int']['input']; st_how_many: Scalars['Union']['input']; - st_involved_fexp_id?: Scalars['String']['input']; + st_involved_expert?: Scalars['String']['input']; st_involved_fuser_id?: Scalars['String']['input']; st_involved_model?: Scalars['String']['input']; st_thing: Scalars['String']['input']; @@ -454,13 +556,29 @@ export type FStatsOutput = { __typename?: 'FStatsOutput'; fgroup_id?: Maybe; st_how_many: Scalars['Union']['output']; - st_involved_fexp_id?: Maybe; + st_involved_expert?: Maybe; st_involved_fuser_id?: Maybe; st_involved_model?: Maybe; + st_thing?: Maybe; st_timekey: Scalars['String']['output']; ws_id?: Maybe; }; +export type FSubchatProgress = { + __typename?: 'FSubchatProgress'; + subchat_progress_completed: Scalars['Int']['output']; + subchat_progress_total: Scalars['Int']['output']; +}; + +export type FTamagotchiSubs = { + __typename?: 'FTamagotchiSubs'; + news_action: Scalars['String']['output']; + news_payload_id: Scalars['String']['output']; + news_payload_persona?: Maybe; + news_payload_wishes?: Maybe; + news_pubsub: Scalars['String']['output']; +}; + export type FThreadDelta = { __typename?: 'FThreadDelta'; ftm_content: Scalars['JSON']['output']; @@ -471,10 +589,11 @@ export type FThreadInput = { ft_app_capture?: Scalars['String']['input']; ft_app_searchable?: Scalars['String']['input']; ft_app_specific?: Scalars['String']['input']; + ft_archived_ts?: Scalars['Float']['input']; + ft_budget?: Scalars['Int']['input']; ft_error?: Scalars['String']['input']; ft_fexp_id: Scalars['String']['input']; ft_persona_id?: InputMaybe; - ft_subchat_dest_ft_id?: InputMaybe; ft_title: Scalars['String']['input']; ft_toolset?: Scalars['String']['input']; located_fgroup_id: Scalars['String']['input']; @@ -483,17 +602,17 @@ export type FThreadInput = { export type FThreadMessageInput = { ftm_alt: Scalars['Int']['input']; - ftm_app_specific?: InputMaybe; + ftm_app_specific?: Scalars['String']['input']; ftm_belongs_to_ft_id: Scalars['String']['input']; ftm_call_id: Scalars['String']['input']; - ftm_content?: InputMaybe; + ftm_content?: Scalars['String']['input']; ftm_num: Scalars['Int']['input']; ftm_prev_alt: Scalars['Int']['input']; ftm_provenance: Scalars['String']['input']; ftm_role: Scalars['String']['input']; - ftm_tool_calls?: InputMaybe; - ftm_usage?: InputMaybe; - ftm_user_preferences?: InputMaybe; + ftm_tool_calls?: Scalars['String']['input']; + ftm_usage?: Scalars['String']['input']; + ftm_user_preferences?: Scalars['String']['input']; }; export type FThreadMessageOutput = { @@ -523,6 +642,7 @@ export type FThreadMessageSubs = { news_payload_thread?: Maybe; news_payload_thread_message?: Maybe; stream_delta?: Maybe; + subchat_progress?: Maybe; }; export type FThreadMultipleMessagesInput = { @@ -536,8 +656,9 @@ export type FThreadOutput = { ft_app_searchable: Scalars['String']['output']; ft_app_specific?: Maybe; ft_archived_ts: Scalars['Float']['output']; + ft_budget: Scalars['Int']['output']; + ft_coins: Scalars['Int']['output']; ft_confirmation_request?: Maybe; - ft_confirmation_response?: Maybe; ft_created_ts: Scalars['Float']['output']; ft_error?: Maybe; ft_fexp_id: Scalars['String']['output']; @@ -547,7 +668,6 @@ export type FThreadOutput = { ft_need_tool_calls: Scalars['Int']['output']; ft_need_user: Scalars['Int']['output']; ft_persona_id?: Maybe; - ft_subchat_dest_ft_id?: Maybe; ft_title: Scalars['String']['output']; ft_toolset?: Maybe; ft_updated_ts: Scalars['Float']['output']; @@ -560,10 +680,8 @@ export type FThreadPatch = { ft_app_searchable?: InputMaybe; ft_app_specific?: InputMaybe; ft_archived_ts?: InputMaybe; - ft_confirmation_request?: InputMaybe; - ft_confirmation_response?: InputMaybe; + ft_budget?: InputMaybe; ft_error?: InputMaybe; - ft_subchat_dest_ft_id?: InputMaybe; ft_title?: InputMaybe; ft_toolset?: InputMaybe; located_fgroup_id?: InputMaybe; @@ -580,14 +698,20 @@ export type FThreadSubs = { export type FUserProfileOutput = { __typename?: 'FUserProfileOutput'; + fuser_avatar?: Maybe; fuser_experimental: Scalars['Boolean']['output']; fuser_fullname: Scalars['String']['output']; fuser_id: Scalars['String']['output']; + fuser_nickname: Scalars['String']['output']; + fuser_questionnaire?: Maybe; }; export type FUserProfilePatch = { + fuser_avatar?: InputMaybe; fuser_experimental?: InputMaybe; fuser_fullname?: InputMaybe; + fuser_nickname?: InputMaybe; + fuser_questionnaire?: InputMaybe; }; export type FWorkspaceCreateInput = { @@ -607,14 +731,69 @@ export type FWorkspaceInvitationOutput = { export type FWorkspaceOutput = { __typename?: 'FWorkspaceOutput'; have_admin: Scalars['Boolean']['output']; + have_billing: Scalars['Boolean']['output']; have_coins_enough: Scalars['Boolean']['output']; have_coins_exactly: Scalars['Union']['output']; root_group_name: Scalars['String']['output']; ws_archived_ts: Scalars['Float']['output']; + ws_auto_recharge_amount?: Maybe; + ws_auto_recharge_enabled?: Maybe; + ws_auto_recharge_threshold?: Maybe; + ws_company_logo: Scalars['String']['output']; ws_created_ts: Scalars['Float']['output']; ws_id: Scalars['String']['output']; + ws_monthly_spending_alert?: Maybe; + ws_monthly_spending_limit?: Maybe; ws_owner_fuser_id: Scalars['String']['output']; + ws_payment_method?: Maybe; ws_root_group_id: Scalars['String']['output']; + ws_timezone: Scalars['String']['output']; +}; + +export type FWorkspacePatch = { + new_workspace_name?: InputMaybe; + ws_auto_recharge_amount?: InputMaybe; + ws_auto_recharge_enabled?: InputMaybe; + ws_auto_recharge_threshold?: InputMaybe; + ws_monthly_spending_alert?: InputMaybe; + ws_monthly_spending_limit?: InputMaybe; + ws_payment_method?: InputMaybe; + ws_timezone?: InputMaybe; +}; + +export type FeedbackInput = { + active_ws_id?: InputMaybe; + feedback_ft_id?: InputMaybe; + feedback_guest_email?: InputMaybe; + feedback_guest_nickname?: InputMaybe; + feedback_public: Scalars['Boolean']['input']; + feedback_stars?: InputMaybe; + feedback_text: Scalars['String']['input']; + feedback_type: Scalars['String']['input']; + persona_marketable_name: Scalars['String']['input']; + persona_marketable_version: Scalars['Int']['input']; +}; + +export type FeedbackOutput = { + __typename?: 'FeedbackOutput'; + author_nickname?: Maybe; + feedback_created_ts: Scalars['Float']['output']; + feedback_ft_id?: Maybe; + feedback_fuser_id?: Maybe; + feedback_guest_email?: Maybe; + feedback_guest_nickname?: Maybe; + feedback_id: Scalars['String']['output']; + feedback_marketable_name: Scalars['String']['output']; + feedback_marketable_version: Scalars['Int']['output']; + feedback_stars?: Maybe; + feedback_text: Scalars['String']['output']; + feedback_type: Scalars['String']['output']; +}; + +export type FeedbackPatch = { + feedback_public?: InputMaybe; + feedback_stars?: InputMaybe; + feedback_text?: InputMaybe; }; export type FlexusGroup = { @@ -637,20 +816,45 @@ export type FlexusGroupPatch = { fgroup_parent_id?: InputMaybe; }; +export type InstallationResult = { + __typename?: 'InstallationResult'; + fgroup_id: Scalars['String']['output']; + persona_id: Scalars['String']['output']; +}; + +export type MarketplaceFeedbackOutput = { + __typename?: 'MarketplaceFeedbackOutput'; + feedbacks: Array; + marketplace: FMarketplaceOutput; +}; + +export type McpRuntimeInfoDelta = { + __typename?: 'McpRuntimeInfoDelta'; + logs: Array; + mcp_id: Scalars['String']['output']; + status: Scalars['JSON']['output']; + usage: Scalars['JSON']['output']; +}; + export type Mutation = { __typename?: 'Mutation'; api_key_delete: Scalars['Boolean']['output']; api_key_generate: FApiKeyOutput; bot_activate: FThreadOutput; bot_arrange_kanban_situation: Scalars['Boolean']['output']; - bot_install_from_marketplace: Scalars['Boolean']['output']; + bot_install_from_marketplace: InstallationResult; bot_kanban_post_into_inbox: Scalars['Boolean']['output']; + bot_subchat_create_multiple?: Maybe; + bot_upgrade: Scalars['Int']['output']; + cloudtool_confirmation_request: Scalars['Boolean']['output']; cloudtool_post_result: Scalars['Boolean']['output']; create_captured_thread: FThreadOutput; email_confirm: EmailConfirmResult; expert_create: FExpertOutput; expert_delete: Scalars['Boolean']['output']; expert_patch: FExpertOutput; + external_auth_mint_github_token: FGitHubMintTokenOutput; + external_auth_start_github_oauth: Scalars['String']['output']; external_data_source_create: FExternalDataSourceOutput; external_data_source_delete: Scalars['Boolean']['output']; external_data_source_patch: FExternalDataSourceOutput; @@ -666,8 +870,12 @@ export type Mutation = { knowledge_item_mass_group_patch: Scalars['Int']['output']; knowledge_item_patch: FKnowledgeItemOutput; make_sure_have_expert: Scalars['String']['output']; - marketplace_install: FMarketplaceInstallOutput; - marketplace_upgrade: Scalars['Boolean']['output']; + marketplace_change_stage: Scalars['Boolean']['output']; + marketplace_check_build_requirements: FMarketplaceBuildCheckResult; + marketplace_delete_version: Scalars['Boolean']['output']; + marketplace_feedback_delete: Scalars['Boolean']['output']; + marketplace_feedback_patch: FeedbackOutput; + marketplace_feedback_submit: FeedbackOutput; marketplace_upsert_dev_bot: FBotInstallOutput; mcp_server_create: FMcpServerOutput; mcp_server_delete: Scalars['Boolean']['output']; @@ -675,7 +883,6 @@ export type Mutation = { password_change: Scalars['Boolean']['output']; permission_delete: Scalars['Boolean']['output']; permission_patch: FPermissionOutput; - persona_create: FPersonaOutput; persona_delete: Scalars['Boolean']['output']; persona_patch: FPersonaOutput; persona_schedule_delete: FPersonaScheduleOutput; @@ -686,7 +893,7 @@ export type Mutation = { session_renew: Scalars['String']['output']; stats_add: Scalars['Boolean']['output']; thread_app_capture_patch: Scalars['Boolean']['output']; - thread_clear_confirmation: Scalars['Boolean']['output']; + thread_confirmation_resolve: Scalars['Boolean']['output']; thread_create: FThreadOutput; thread_delete: Scalars['Boolean']['output']; thread_lock: Scalars['Boolean']['output']; @@ -695,14 +902,16 @@ export type Mutation = { thread_patch: FThreadOutput; thread_reset_error: Scalars['Boolean']['output']; thread_reset_title: Scalars['Boolean']['output']; - thread_set_confirmation_request: Scalars['Boolean']['output']; - thread_set_confirmation_response: Scalars['Boolean']['output']; thread_unlock: Scalars['Boolean']['output']; + user_avatar_upload: FUserProfileOutput; user_profile_patch: FUserProfileOutput; user_register: Scalars['Boolean']['output']; workspace_create: Scalars['String']['output']; workspace_delete: Scalars['String']['output']; workspace_leave: Scalars['String']['output']; + workspace_logo_upload: Scalars['Boolean']['output']; + workspace_patch: Scalars['Boolean']['output']; + workspace_undelete: Scalars['String']['output']; }; @@ -712,11 +921,12 @@ export type MutationApi_Key_DeleteArgs = { export type MutationBot_ActivateArgs = { - activation_type: Scalars['String']['input']; + activation_type?: Scalars['String']['input']; + fexp_id?: Scalars['String']['input']; first_calls: Scalars['String']['input']; first_question: Scalars['String']['input']; - localtools: Scalars['String']['input']; persona_id: Scalars['String']['input']; + sched_id?: Scalars['String']['input']; title: Scalars['String']['input']; who_is_asking: Scalars['String']['input']; }; @@ -730,23 +940,51 @@ export type MutationBot_Arrange_Kanban_SituationArgs = { export type MutationBot_Install_From_MarketplaceArgs = { - inside_fgroup_id: Scalars['String']['input']; + inside_fgroup_id?: InputMaybe; + install_dev_version?: Scalars['Boolean']['input']; new_setup: Scalars['String']['input']; - persona_id: Scalars['String']['input']; + persona_id?: InputMaybe; persona_marketable_name: Scalars['String']['input']; - persona_marketable_version: Scalars['String']['input']; persona_name: Scalars['String']['input']; + specific_version?: InputMaybe; + ws_id: Scalars['String']['input']; }; export type MutationBot_Kanban_Post_Into_InboxArgs = { - budget: Scalars['Int']['input']; details_json: Scalars['String']['input']; persona_id: Scalars['String']['input']; title: Scalars['String']['input']; }; +export type MutationBot_Subchat_Create_MultipleArgs = { + fcall_id: Scalars['String']['input']; + first_calls: Array; + first_question: Array; + persona_id: Scalars['String']['input']; + title: Array; + who_is_asking: Scalars['String']['input']; +}; + + +export type MutationBot_UpgradeArgs = { + auto_upgrade?: InputMaybe; + marketable_name: Scalars['String']['input']; + prerelease?: InputMaybe; + specific_version?: InputMaybe; + ws_id: Scalars['String']['input']; +}; + + +export type MutationCloudtool_Confirmation_RequestArgs = { + confirm_command: Scalars['String']['input']; + confirm_explanation: Scalars['String']['input']; + confirm_setup_key: Scalars['String']['input']; + fcall_id: Scalars['String']['input']; +}; + + export type MutationCloudtool_Post_ResultArgs = { input: CloudtoolResultInput; }; @@ -779,6 +1017,16 @@ export type MutationExpert_PatchArgs = { }; +export type MutationExternal_Auth_Mint_Github_TokenArgs = { + ws_id: Scalars['String']['input']; +}; + + +export type MutationExternal_Auth_Start_Github_OauthArgs = { + input: FExternalAuthOAuthStartInput; +}; + + export type MutationExternal_Data_Source_CreateArgs = { input: FExternalDataSourceInput; }; @@ -865,20 +1113,48 @@ export type MutationMake_Sure_Have_ExpertArgs = { }; -export type MutationMarketplace_InstallArgs = { - fgroup_id: Scalars['String']['input']; +export type MutationMarketplace_Change_StageArgs = { marketable_name: Scalars['String']['input']; + marketable_version: Scalars['Int']['input']; + move_to_stage: Scalars['String']['input']; + ws_id: Scalars['String']['input']; }; -export type MutationMarketplace_UpgradeArgs = { - fgroup_id: Scalars['String']['input']; +export type MutationMarketplace_Check_Build_RequirementsArgs = { marketable_name: Scalars['String']['input']; - specific_version: Scalars['String']['input']; + marketable_version: Scalars['Int']['input']; + ws_id: Scalars['String']['input']; +}; + + +export type MutationMarketplace_Delete_VersionArgs = { + marketable_name: Scalars['String']['input']; + marketable_version: Scalars['Int']['input']; + ws_id: Scalars['String']['input']; +}; + + +export type MutationMarketplace_Feedback_DeleteArgs = { + feedback_id: Scalars['String']['input']; +}; + + +export type MutationMarketplace_Feedback_PatchArgs = { + feedback_id: Scalars['String']['input']; + patch: FeedbackPatch; +}; + + +export type MutationMarketplace_Feedback_SubmitArgs = { + input: FeedbackInput; }; export type MutationMarketplace_Upsert_Dev_BotArgs = { + marketable_author: Scalars['String']['input']; + marketable_daily_budget_default: Scalars['Int']['input']; + marketable_default_inbox_default: Scalars['Int']['input']; marketable_description: Scalars['String']['input']; marketable_expert_default: FMarketplaceExpertInput; marketable_expert_setup?: InputMaybe; @@ -886,12 +1162,18 @@ export type MutationMarketplace_Upsert_Dev_BotArgs = { marketable_expert_todo?: InputMaybe; marketable_github_repo: Scalars['String']['input']; marketable_name: Scalars['String']['input']; - marketable_picture_big_b64?: InputMaybe; - marketable_picture_small_b64?: InputMaybe; + marketable_occupation: Scalars['String']['input']; + marketable_picture_big_b64: Scalars['String']['input']; + marketable_picture_small_b64: Scalars['String']['input']; + marketable_preferred_model_default: Scalars['String']['input']; marketable_run_this: Scalars['String']['input']; + marketable_schedule: Scalars['String']['input']; marketable_setup_default: Scalars['String']['input']; + marketable_stage?: Scalars['String']['input']; + marketable_tags: Array; marketable_title1: Scalars['String']['input']; marketable_title2: Scalars['String']['input']; + marketable_typical_group: Scalars['String']['input']; marketable_version: Scalars['String']['input']; ws_id: Scalars['String']['input']; }; @@ -932,11 +1214,6 @@ export type MutationPermission_PatchArgs = { }; -export type MutationPersona_CreateArgs = { - input: FPersonaInput; -}; - - export type MutationPersona_DeleteArgs = { id: Scalars['String']['input']; }; @@ -987,8 +1264,10 @@ export type MutationThread_App_Capture_PatchArgs = { }; -export type MutationThread_Clear_ConfirmationArgs = { +export type MutationThread_Confirmation_ResolveArgs = { + fcall_id: Scalars['String']['input']; ft_id: Scalars['String']['input']; + positive: Scalars['Boolean']['input']; }; @@ -1018,6 +1297,7 @@ export type MutationThread_Messages_Create_MultipleArgs = { delete_negative?: InputMaybe>; input: FThreadMultipleMessagesInput; mission_accomplished_adv_worker?: InputMaybe; + mission_accomplished_with_err?: InputMaybe; }; @@ -1039,21 +1319,14 @@ export type MutationThread_Reset_TitleArgs = { }; -export type MutationThread_Set_Confirmation_RequestArgs = { - confirmation_request: Scalars['String']['input']; - ft_id: Scalars['String']['input']; -}; - - -export type MutationThread_Set_Confirmation_ResponseArgs = { - confirmation_response: Scalars['String']['input']; +export type MutationThread_UnlockArgs = { ft_id: Scalars['String']['input']; + worker_name: Scalars['String']['input']; }; -export type MutationThread_UnlockArgs = { - ft_id: Scalars['String']['input']; - worker_name: Scalars['String']['input']; +export type MutationUser_Avatar_UploadArgs = { + avatar_b64: Scalars['String']['input']; }; @@ -1073,7 +1346,6 @@ export type MutationWorkspace_CreateArgs = { export type MutationWorkspace_DeleteArgs = { - dry_run?: Scalars['Boolean']['input']; ws_id: Scalars['String']['input']; }; @@ -1082,6 +1354,23 @@ export type MutationWorkspace_LeaveArgs = { ws_id: Scalars['String']['input']; }; + +export type MutationWorkspace_Logo_UploadArgs = { + logo_b64: Scalars['String']['input']; + ws_id: Scalars['String']['input']; +}; + + +export type MutationWorkspace_PatchArgs = { + input: FWorkspacePatch; + ws_id: Scalars['String']['input']; +}; + + +export type MutationWorkspace_UndeleteArgs = { + ws_id: Scalars['String']['input']; +}; + export type PasswordResetTokenInfo = { __typename?: 'PasswordResetTokenInfo'; freset_used: Scalars['Boolean']['output']; @@ -1106,14 +1395,17 @@ export type Query = { knowledge_item_get: FKnowledgeItemOutput; knowledge_item_list: Array; knowledge_vecdb_search: Array; - marketplace_details: Array; + marketplace_details: FMarketplaceDetails; + marketplace_feedback_list: Array; marketplace_list: Array; marketplace_search: Array; mcp_server_get: FMcpServerOutput; mcp_server_list: Array; + metering_list: Array; permission_list: Array; persona_get: FPersonaOutput; persona_list: Array; + persona_mongo_docs_list: Array; persona_opened_in_ui: FPersonaOutput; persona_schedule_list: FPersonaScheduleListOutput; query_basic_stuff: BasicStuffResult; @@ -1221,21 +1513,35 @@ export type QueryKnowledge_Vecdb_SearchArgs = { export type QueryMarketplace_DetailsArgs = { - fgroup_id: Scalars['String']['input']; marketable_name: Scalars['String']['input']; + ws_id: Scalars['String']['input']; +}; + + +export type QueryMarketplace_Feedback_ListArgs = { + active_ws_id: Scalars['String']['input']; + feedback_type?: InputMaybe; + limit_marketplaces?: Scalars['Int']['input']; + limit_per_marketplace?: Scalars['Int']['input']; + only_my_feedback?: Scalars['Boolean']['input']; + persona_marketable_name?: InputMaybe; + persona_marketable_version?: InputMaybe; + skip_marketplaces?: Scalars['Int']['input']; + skip_per_marketplace?: Scalars['Int']['input']; }; export type QueryMarketplace_ListArgs = { - fgroup_id: Scalars['String']['input']; take?: Scalars['Int']['input']; + ws_id: Scalars['String']['input']; }; export type QueryMarketplace_SearchArgs = { - fgroup_id: Scalars['String']['input']; query: Scalars['String']['input']; + tags?: Array; take?: Scalars['Int']['input']; + ws_id: Scalars['String']['input']; }; @@ -1252,6 +1558,19 @@ export type QueryMcp_Server_ListArgs = { }; +export type QueryMetering_ListArgs = { + date_from?: InputMaybe; + date_to?: InputMaybe; + fgroup_id?: InputMaybe; + limit?: InputMaybe; + met_type_exclude?: InputMaybe>; + met_type_include?: InputMaybe>; + offset?: InputMaybe; + search?: InputMaybe; + ws_id: Scalars['String']['input']; +}; + + export type QueryPermission_ListArgs = { fgroup_id: Scalars['String']['input']; }; @@ -1270,6 +1589,12 @@ export type QueryPersona_ListArgs = { }; +export type QueryPersona_Mongo_Docs_ListArgs = { + path: Scalars['String']['input']; + persona_id: Scalars['String']['input']; +}; + + export type QueryPersona_Opened_In_UiArgs = { persona_id: Scalars['String']['input']; }; @@ -1291,11 +1616,12 @@ export type QueryReset_Password_Token_InfoArgs = { export type QueryStats_QueryArgs = { - breakdown_fexp_name: Array; + breakdown_expert: Array; breakdown_fuser_id: Array; breakdown_model: Array; + breakdown_thing: Array; fgroup_id?: Scalars['String']['input']; - filter_fexp_id?: Array; + filter_expert?: Array; filter_fuser_id?: Array; filter_model?: Array; filter_thing?: Array; @@ -1309,9 +1635,10 @@ export type QueryStats_QueryArgs = { export type QueryStats_Query_DistinctArgs = { fgroup_id: Scalars['String']['input']; - filter_fexp_id: Array; + filter_expert: Array; filter_fuser_id: Array; filter_model: Array; + filter_thing: Array; st_chart: Scalars['Int']['input']; st_span: Scalars['String']['input']; timekey_from: Scalars['String']['input']; @@ -1363,7 +1690,7 @@ export type RegisterInput = { export type StatsDistinctOutput = { __typename?: 'StatsDistinctOutput'; - st_involved_fexp_id: Scalars['JSON']['output']; + st_involved_expert: Scalars['JSON']['output']; st_involved_fuser_id: Scalars['JSON']['output']; st_involved_model: Scalars['JSON']['output']; st_thing: Array; @@ -1372,20 +1699,29 @@ export type StatsDistinctOutput = { export type Subscription = { __typename?: 'Subscription'; + bot_versions_subs: FBotVersionsSubs; comprehensive_thread_subs: FThreadMessageSubs; ephemeral_subs: FEphemeralSubs; experts_in_group: FExpertSubs; external_data_sources_in_group: FExternalDataSourceSubs; knowledge_items_in_group: FKnowledgeItemSubs; + mcp_runtime_info_subscription: McpRuntimeInfoDelta; mcp_servers_in_group: FMcpServerSubs; permissions_in_group_subs: FPermissionSubs; persona_kanban_subs: FPersonaKanbanSubs; personas_in_group: FPersonaSubs; + tamagotchi_subs: FTamagotchiSubs; threads_in_group: FThreadSubs; tree_subscription: TreeUpdateSubs; }; +export type SubscriptionBot_Versions_SubsArgs = { + marketable_name: Scalars['String']['input']; + ws_id: Scalars['String']['input']; +}; + + export type SubscriptionComprehensive_Thread_SubsArgs = { ft_id: Scalars['String']['input']; want_deltas: Scalars['Boolean']['input']; @@ -1398,34 +1734,40 @@ export type SubscriptionEphemeral_SubsArgs = { export type SubscriptionExperts_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; }; export type SubscriptionExternal_Data_Sources_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; }; export type SubscriptionKnowledge_Items_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; +}; + + +export type SubscriptionMcp_Runtime_Info_SubscriptionArgs = { + fgroup_id: Scalars['String']['input']; + mcp_id: Scalars['String']['input']; }; export type SubscriptionMcp_Servers_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; }; @@ -1438,25 +1780,29 @@ export type SubscriptionPermissions_In_Group_SubsArgs = { export type SubscriptionPersona_Kanban_SubsArgs = { limit_done?: Scalars['Int']['input']; - limit_garbage?: Scalars['Int']['input']; limit_inbox?: Scalars['Int']['input']; persona_id: Scalars['String']['input']; }; export type SubscriptionPersonas_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; +}; + + +export type SubscriptionTamagotchi_SubsArgs = { + fgroup_id: Scalars['String']['input']; }; export type SubscriptionThreads_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; }; @@ -1464,6 +1810,18 @@ export type SubscriptionTree_SubscriptionArgs = { ws_id: Scalars['String']['input']; }; +export type TamagotchiMissing = { + __typename?: 'TamagotchiMissing'; + group: Scalars['String']['output']; + importance: Scalars['Int']['output']; +}; + +export type TamagotchiWishes = { + __typename?: 'TamagotchiWishes'; + setup_quest_count: Scalars['Int']['output']; + setup_quest_missing: Array; +}; + export type TreeUpdateSubs = { __typename?: 'TreeUpdateSubs'; treeupd_action: Scalars['String']['output']; @@ -1503,7 +1861,7 @@ export type MessagesSubscriptionSubscriptionVariables = Exact<{ }>; -export type MessagesSubscriptionSubscription = { __typename?: 'Subscription', comprehensive_thread_subs: { __typename?: 'FThreadMessageSubs', news_action: string, news_payload_id: string, news_payload_thread_message?: { __typename?: 'FThreadMessageOutput', ft_app_specific?: any | null, ftm_belongs_to_ft_id: string, ftm_alt: number, ftm_num: number, ftm_prev_alt: number, ftm_role: string, ftm_content?: any | null, ftm_tool_calls?: any | null, ftm_call_id: string, ftm_usage?: any | null, ftm_created_ts: number, ftm_user_preferences?: any | null } | null, stream_delta?: { __typename?: 'FThreadDelta', ftm_role: string, ftm_content: any } | null, news_payload_thread?: { __typename?: 'FThreadOutput', located_fgroup_id: string, ft_id: string, ft_need_user: number, ft_need_assistant: number, ft_fexp_id: string, ft_confirmation_request?: any | null, ft_confirmation_response?: any | null, ft_title: string, ft_toolset?: any | null } | null } }; +export type MessagesSubscriptionSubscription = { __typename?: 'Subscription', comprehensive_thread_subs: { __typename?: 'FThreadMessageSubs', news_action: string, news_payload_id: string, news_payload_thread_message?: { __typename?: 'FThreadMessageOutput', ft_app_specific?: any | null, ftm_belongs_to_ft_id: string, ftm_alt: number, ftm_num: number, ftm_prev_alt: number, ftm_role: string, ftm_content?: any | null, ftm_tool_calls?: any | null, ftm_call_id: string, ftm_usage?: any | null, ftm_created_ts: number, ftm_user_preferences?: any | null } | null, stream_delta?: { __typename?: 'FThreadDelta', ftm_role: string, ftm_content: any } | null, news_payload_thread?: { __typename?: 'FThreadOutput', located_fgroup_id: string, ft_id: string, ft_need_user: number, ft_need_assistant: number, ft_fexp_id: string, ft_confirmation_request?: any | null, ft_title: string, ft_toolset?: any | null } | null } }; export type MessageCreateMultipleMutationVariables = Exact<{ input: FThreadMultipleMessagesInput; @@ -1542,13 +1900,14 @@ export type ToolsForGroupQueryVariables = Exact<{ export type ToolsForGroupQuery = { __typename?: 'Query', cloud_tools_list: Array<{ __typename?: 'FCloudTool', ctool_confirmed_exists_ts?: number | null, ctool_description: string, ctool_id: string, ctool_name: string, ctool_parameters: any, located_fgroup_id?: string | null, owner_fuser_id?: string | null }> }; -export type ThreadConfirmationResponseMutationVariables = Exact<{ - confirmation_response?: InputMaybe; - ft_id?: InputMaybe; +export type ThreadConfirmationResolveMutationVariables = Exact<{ + fcall_id: Scalars['String']['input']; + ft_id: Scalars['String']['input']; + positive: Scalars['Boolean']['input']; }>; -export type ThreadConfirmationResponseMutation = { __typename?: 'Mutation', thread_set_confirmation_response: boolean }; +export type ThreadConfirmationResolveMutation = { __typename?: 'Mutation', thread_confirmation_resolve: boolean }; export type BasicStuffQueryVariables = Exact<{ [key: string]: never; }>; @@ -1574,13 +1933,13 @@ export type WorkspaceTreeSubscription = { __typename?: 'Subscription', tree_subs export const ThreadsPageSubsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"ThreadsPageSubs"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threads_in_group"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"located_fgroup_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"news_action"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_id"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"owner_fuser_id"}},{"kind":"Field","name":{"kind":"Name","value":"owner_shared"}},{"kind":"Field","name":{"kind":"Name","value":"ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_title"}},{"kind":"Field","name":{"kind":"Name","value":"ft_error"}},{"kind":"Field","name":{"kind":"Name","value":"ft_updated_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ft_locked_by"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_assistant"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_tool_calls"}},{"kind":"Field","name":{"kind":"Name","value":"ft_archived_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ft_created_ts"}}]}}]}}]}}]} as unknown as DocumentNode; export const DeleteThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_delete"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode; export const CreateThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FThreadInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_create"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ft_id"}}]}}]}}]} as unknown as DocumentNode; -export const MessagesSubscriptionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"MessagesSubscription"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"want_deltas"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"comprehensive_thread_subs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ft_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"want_deltas"},"value":{"kind":"Variable","name":{"kind":"Name","value":"want_deltas"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"news_action"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_id"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_thread_message"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ft_app_specific"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_belongs_to_ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_alt"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_num"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_prev_alt"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_role"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_content"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_tool_calls"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_call_id"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_usage"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_created_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_user_preferences"}}]}},{"kind":"Field","name":{"kind":"Name","value":"stream_delta"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ftm_role"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_content"}}]}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_thread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"located_fgroup_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_user"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_assistant"}},{"kind":"Field","name":{"kind":"Name","value":"ft_fexp_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_confirmation_request"}},{"kind":"Field","name":{"kind":"Name","value":"ft_confirmation_response"}},{"kind":"Field","name":{"kind":"Name","value":"ft_title"}},{"kind":"Field","name":{"kind":"Name","value":"ft_toolset"}}]}}]}}]}}]} as unknown as DocumentNode; +export const MessagesSubscriptionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"MessagesSubscription"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"want_deltas"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"comprehensive_thread_subs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ft_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"want_deltas"},"value":{"kind":"Variable","name":{"kind":"Name","value":"want_deltas"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"news_action"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_id"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_thread_message"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ft_app_specific"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_belongs_to_ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_alt"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_num"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_prev_alt"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_role"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_content"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_tool_calls"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_call_id"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_usage"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_created_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_user_preferences"}}]}},{"kind":"Field","name":{"kind":"Name","value":"stream_delta"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ftm_role"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_content"}}]}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_thread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"located_fgroup_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_user"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_assistant"}},{"kind":"Field","name":{"kind":"Name","value":"ft_fexp_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_confirmation_request"}},{"kind":"Field","name":{"kind":"Name","value":"ft_title"}},{"kind":"Field","name":{"kind":"Name","value":"ft_toolset"}}]}}]}}]}}]} as unknown as DocumentNode; export const MessageCreateMultipleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MessageCreateMultiple"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FThreadMultipleMessagesInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_messages_create_multiple"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode; export const ThreadPatchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ThreadPatch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"message"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_patch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"patch"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"ft_error"},"value":{"kind":"Variable","name":{"kind":"Name","value":"message"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ft_id"}}]}}]}}]} as unknown as DocumentNode; export const ExpertsForGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ExpertsForGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"experts_effective_list"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"located_fgroup_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fexp_id"}},{"kind":"Field","name":{"kind":"Name","value":"fexp_name"}}]}}]}}]} as unknown as DocumentNode; export const ModelsForExpertDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ModelsForExpert"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fexp_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inside_fgroup_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"expert_choice_consequences"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fexp_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fexp_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"inside_fgroup_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inside_fgroup_id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"models"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"provm_name"}},{"kind":"Field","name":{"kind":"Name","value":"provm_caps"}}]}}]}}]}}]} as unknown as DocumentNode; export const ToolsForGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ToolsForGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cloud_tools_list"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"located_fgroup_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"include_offline"},"value":{"kind":"BooleanValue","value":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ctool_confirmed_exists_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ctool_description"}},{"kind":"Field","name":{"kind":"Name","value":"ctool_id"}},{"kind":"Field","name":{"kind":"Name","value":"ctool_name"}},{"kind":"Field","name":{"kind":"Name","value":"ctool_parameters"}},{"kind":"Field","name":{"kind":"Name","value":"located_fgroup_id"}},{"kind":"Field","name":{"kind":"Name","value":"owner_fuser_id"}}]}}]}}]} as unknown as DocumentNode; -export const ThreadConfirmationResponseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ThreadConfirmationResponse"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"confirmation_response"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_set_confirmation_response"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ft_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"confirmation_response"},"value":{"kind":"Variable","name":{"kind":"Name","value":"confirmation_response"}}}]}]}}]} as unknown as DocumentNode; +export const ThreadConfirmationResolveDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ThreadConfirmationResolve"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fcall_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"positive"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_confirmation_resolve"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fcall_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fcall_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"ft_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"positive"},"value":{"kind":"Variable","name":{"kind":"Name","value":"positive"}}}]}]}}]} as unknown as DocumentNode; export const BasicStuffDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BasicStuff"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query_basic_stuff"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fuser_id"}},{"kind":"Field","name":{"kind":"Name","value":"my_own_ws_id"}},{"kind":"Field","name":{"kind":"Name","value":"workspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ws_id"}},{"kind":"Field","name":{"kind":"Name","value":"ws_owner_fuser_id"}},{"kind":"Field","name":{"kind":"Name","value":"ws_root_group_id"}},{"kind":"Field","name":{"kind":"Name","value":"root_group_name"}},{"kind":"Field","name":{"kind":"Name","value":"have_coins_exactly"}},{"kind":"Field","name":{"kind":"Name","value":"have_coins_enough"}},{"kind":"Field","name":{"kind":"Name","value":"have_admin"}}]}}]}}]}}]} as unknown as DocumentNode; export const CreateWorkSpaceGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateWorkSpaceGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fgroup_name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fgroup_parent_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"group_create"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"fgroup_name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fgroup_name"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"fgroup_parent_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fgroup_parent_id"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fgroup_id"}},{"kind":"Field","name":{"kind":"Name","value":"fgroup_name"}},{"kind":"Field","name":{"kind":"Name","value":"ws_id"}},{"kind":"Field","name":{"kind":"Name","value":"fgroup_parent_id"}},{"kind":"Field","name":{"kind":"Name","value":"fgroup_created_ts"}}]}}]}}]} as unknown as DocumentNode; export const WorkspaceTreeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"WorkspaceTree"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ws_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tree_subscription"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ws_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ws_id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"treeupd_action"}},{"kind":"Field","name":{"kind":"Name","value":"treeupd_id"}},{"kind":"Field","name":{"kind":"Name","value":"treeupd_path"}},{"kind":"Field","name":{"kind":"Name","value":"treeupd_type"}},{"kind":"Field","name":{"kind":"Name","value":"treeupd_title"}}]}}]}}]} as unknown as DocumentNode; @@ -1599,6 +1958,7 @@ export function CloudtoolResultInputSchema(): z.ZodObject> { }) } +export function FExternalAuthOAuthStartInputSchema(): z.ZodObject> { + return z.object({ + ws_id: z.string() + }) +} + export function FExternalDataSourceInputSchema(): z.ZodObject> { return z.object({ eds_json: z.string(), + eds_last_successful_scan_ts: z.number().default(0), eds_name: z.string(), eds_type: z.string(), located_fgroup_id: z.string() @@ -1689,7 +2056,9 @@ export function FMcpServerInputSchema(): z.ZodObject mcp_description: z.string().default(""), mcp_enabled: z.boolean().default(false), mcp_env_vars: definedNonNullAnySchema.nullish(), - mcp_name: z.string() + mcp_name: z.string(), + mcp_preinstall_script: z.string().default(""), + owner_shared: z.boolean().default(true) }) } @@ -1701,6 +2070,7 @@ export function FMcpServerPatchSchema(): z.ZodObject mcp_enabled: z.boolean().nullish(), mcp_env_vars: definedNonNullAnySchema.nullish(), mcp_name: z.string().nullish(), + mcp_preinstall_script: z.string().nullish(), owner_shared: z.boolean().nullish() }) } @@ -1711,44 +2081,39 @@ export function FPermissionPatchSchema(): z.ZodObject> { - return z.object({ - located_fgroup_id: z.string(), - persona_discounts: z.string().nullish(), - persona_marketable_name: z.string(), - persona_marketable_version: z.string(), - persona_name: z.string(), - persona_setup: z.string() - }) -} - export function FPersonaPatchSchema(): z.ZodObject> { return z.object({ located_fgroup_id: z.string().nullish(), - persona_archived_ts: z.number().nullish(), + persona_auto_upgrade: z.boolean().nullish(), + persona_daily_budget: z.number().nullish(), persona_enabled: z.boolean().nullish(), - persona_marketable_version: z.string().nullish(), + persona_inbox_budget: z.number().nullish(), persona_name: z.string().nullish(), + persona_preferred_model: z.string().nullish(), + persona_prerelease: z.boolean().nullish(), persona_setup: z.string().nullish() }) } export function FPersonaScheduleUpsertInputSchema(): z.ZodObject> { return z.object({ + sched_enable: z.boolean(), sched_first_question: z.string(), sched_id: z.string().nullish(), + sched_marketplace: z.boolean(), sched_persona_id: z.string(), - sched_rrule: z.string(), - sched_start_ts: z.number() + sched_type: z.string(), + sched_when: z.string() }) } export function FStatsAddInputSchema(): z.ZodObject> { return z.object({ fgroup_id: z.string().default(""), + ft_id: z.string().default(""), st_chart: z.number(), st_how_many: definedNonNullAnySchema, - st_involved_fexp_id: z.string().default(""), + st_involved_expert: z.string().default(""), st_involved_fuser_id: z.string().default(""), st_involved_model: z.string().default(""), st_thing: z.string(), @@ -1761,10 +2126,11 @@ export function FThreadInputSchema(): z.ZodObject> { ft_app_capture: z.string().default(""), ft_app_searchable: z.string().default(""), ft_app_specific: z.string().default("null"), + ft_archived_ts: z.number().default(0), + ft_budget: z.number().default(500000), ft_error: z.string().default("null"), ft_fexp_id: z.string(), ft_persona_id: z.string().nullish(), - ft_subchat_dest_ft_id: z.string().nullish(), ft_title: z.string(), ft_toolset: z.string().default("null"), located_fgroup_id: z.string(), @@ -1775,17 +2141,17 @@ export function FThreadInputSchema(): z.ZodObject> { export function FThreadMessageInputSchema(): z.ZodObject> { return z.object({ ftm_alt: z.number(), - ftm_app_specific: z.string().default("null").nullish(), + ftm_app_specific: z.string().default("null"), ftm_belongs_to_ft_id: z.string(), ftm_call_id: z.string(), - ftm_content: z.string().default("null").nullish(), + ftm_content: z.string().default("null"), ftm_num: z.number(), ftm_prev_alt: z.number(), ftm_provenance: z.string(), ftm_role: z.string(), - ftm_tool_calls: z.string().default("null").nullish(), - ftm_usage: z.string().default("null").nullish(), - ftm_user_preferences: z.string().default("null").nullish() + ftm_tool_calls: z.string().default("null"), + ftm_usage: z.string().default("null"), + ftm_user_preferences: z.string().default("null") }) } @@ -1801,10 +2167,8 @@ export function FThreadPatchSchema(): z.ZodObject> { ft_app_searchable: z.string().nullish(), ft_app_specific: z.string().nullish(), ft_archived_ts: z.number().nullish(), - ft_confirmation_request: z.string().nullish(), - ft_confirmation_response: z.string().nullish(), + ft_budget: z.number().nullish(), ft_error: z.string().nullish(), - ft_subchat_dest_ft_id: z.string().nullish(), ft_title: z.string().nullish(), ft_toolset: z.string().nullish(), located_fgroup_id: z.string().nullish(), @@ -1814,8 +2178,11 @@ export function FThreadPatchSchema(): z.ZodObject> { export function FUserProfilePatchSchema(): z.ZodObject> { return z.object({ + fuser_avatar: z.string().nullish(), fuser_experimental: z.boolean().nullish(), - fuser_fullname: z.string().nullish() + fuser_fullname: z.string().nullish(), + fuser_nickname: z.string().nullish(), + fuser_questionnaire: z.string().nullish() }) } @@ -1825,6 +2192,42 @@ export function FWorkspaceCreateInputSchema(): z.ZodObject> { + return z.object({ + new_workspace_name: z.string().nullish(), + ws_auto_recharge_amount: z.number().nullish(), + ws_auto_recharge_enabled: z.boolean().nullish(), + ws_auto_recharge_threshold: z.number().nullish(), + ws_monthly_spending_alert: z.number().nullish(), + ws_monthly_spending_limit: z.number().nullish(), + ws_payment_method: z.string().nullish(), + ws_timezone: z.string().nullish() + }) +} + +export function FeedbackInputSchema(): z.ZodObject> { + return z.object({ + active_ws_id: z.string().nullish(), + feedback_ft_id: z.string().nullish(), + feedback_guest_email: z.string().nullish(), + feedback_guest_nickname: z.string().nullish(), + feedback_public: z.boolean(), + feedback_stars: z.number().nullish(), + feedback_text: z.string(), + feedback_type: z.string(), + persona_marketable_name: z.string(), + persona_marketable_version: z.number() + }) +} + +export function FeedbackPatchSchema(): z.ZodObject> { + return z.object({ + feedback_public: z.boolean().nullish(), + feedback_stars: z.number().nullish(), + feedback_text: z.string().nullish() + }) +} + export function FlexusGroupInputSchema(): z.ZodObject> { return z.object({ fgroup_name: z.string(), diff --git a/refact-agent/gui/generated/graphql/gql.ts b/refact-agent/gui/generated/graphql/gql.ts index b2028b478..f812a495a 100644 --- a/refact-agent/gui/generated/graphql/gql.ts +++ b/refact-agent/gui/generated/graphql/gql.ts @@ -14,10 +14,10 @@ import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document- * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size */ type Documents = { - "subscription ThreadsPageSubs($located_fgroup_id: String!, $limit: Int!) {\n threads_in_group(located_fgroup_id: $located_fgroup_id, limit: $limit) {\n news_action\n news_payload_id\n news_payload {\n owner_fuser_id\n owner_shared\n ft_id\n ft_title\n ft_error\n ft_updated_ts\n ft_locked_by\n ft_need_assistant\n ft_need_tool_calls\n ft_archived_ts\n ft_created_ts\n }\n }\n}\n\nmutation DeleteThread($id: String!) {\n thread_delete(id: $id)\n}\n\nmutation CreateThread($input: FThreadInput!) {\n thread_create(input: $input) {\n ft_id\n }\n}\n\nsubscription MessagesSubscription($ft_id: String!, $want_deltas: Boolean!) {\n comprehensive_thread_subs(ft_id: $ft_id, want_deltas: $want_deltas) {\n news_action\n news_payload_id\n news_payload_thread_message {\n ft_app_specific\n ftm_belongs_to_ft_id\n ftm_alt\n ftm_num\n ftm_prev_alt\n ftm_role\n ftm_content\n ftm_tool_calls\n ftm_call_id\n ftm_usage\n ftm_created_ts\n ftm_user_preferences\n }\n stream_delta {\n ftm_role\n ftm_content\n }\n news_payload_thread {\n located_fgroup_id\n ft_id\n ft_need_user\n ft_need_assistant\n ft_fexp_id\n ft_confirmation_request\n ft_confirmation_response\n ft_title\n ft_toolset\n }\n }\n}\n\nmutation MessageCreateMultiple($input: FThreadMultipleMessagesInput!) {\n thread_messages_create_multiple(input: $input)\n}\n\nmutation ThreadPatch($id: String!, $message: String!) {\n thread_patch(id: $id, patch: {ft_error: $message}) {\n ft_id\n }\n}\n\nquery ExpertsForGroup($located_fgroup_id: String!) {\n experts_effective_list(located_fgroup_id: $located_fgroup_id) {\n fexp_id\n fexp_name\n }\n}\n\nquery ModelsForExpert($fexp_id: String!, $inside_fgroup_id: String!) {\n expert_choice_consequences(\n fexp_id: $fexp_id\n inside_fgroup_id: $inside_fgroup_id\n ) {\n models {\n provm_name\n provm_caps\n }\n }\n}\n\nquery ToolsForGroup($located_fgroup_id: String!) {\n cloud_tools_list(located_fgroup_id: $located_fgroup_id, include_offline: false) {\n ctool_confirmed_exists_ts\n ctool_description\n ctool_id\n ctool_name\n ctool_parameters\n located_fgroup_id\n owner_fuser_id\n }\n}\n\nmutation ThreadConfirmationResponse($confirmation_response: String = \"\", $ft_id: String = \"\") {\n thread_set_confirmation_response(\n ft_id: $ft_id\n confirmation_response: $confirmation_response\n )\n}\n\nquery BasicStuff {\n query_basic_stuff {\n fuser_id\n my_own_ws_id\n workspaces {\n ws_id\n ws_owner_fuser_id\n ws_root_group_id\n root_group_name\n have_coins_exactly\n have_coins_enough\n have_admin\n }\n }\n}\n\nmutation CreateWorkSpaceGroup($fgroup_name: String!, $fgroup_parent_id: String!) {\n group_create(\n input: {fgroup_name: $fgroup_name, fgroup_parent_id: $fgroup_parent_id}\n ) {\n fgroup_id\n fgroup_name\n ws_id\n fgroup_parent_id\n fgroup_created_ts\n }\n}\n\nsubscription WorkspaceTree($ws_id: String!) {\n tree_subscription(ws_id: $ws_id) {\n treeupd_action\n treeupd_id\n treeupd_path\n treeupd_type\n treeupd_title\n }\n}": typeof types.ThreadsPageSubsDocument, + "subscription ThreadsPageSubs($located_fgroup_id: String!, $limit: Int!) {\n threads_in_group(located_fgroup_id: $located_fgroup_id, limit: $limit) {\n news_action\n news_payload_id\n news_payload {\n owner_fuser_id\n owner_shared\n ft_id\n ft_title\n ft_error\n ft_updated_ts\n ft_locked_by\n ft_need_assistant\n ft_need_tool_calls\n ft_archived_ts\n ft_created_ts\n }\n }\n}\n\nmutation DeleteThread($id: String!) {\n thread_delete(id: $id)\n}\n\nmutation CreateThread($input: FThreadInput!) {\n thread_create(input: $input) {\n ft_id\n }\n}\n\nsubscription MessagesSubscription($ft_id: String!, $want_deltas: Boolean!) {\n comprehensive_thread_subs(ft_id: $ft_id, want_deltas: $want_deltas) {\n news_action\n news_payload_id\n news_payload_thread_message {\n ft_app_specific\n ftm_belongs_to_ft_id\n ftm_alt\n ftm_num\n ftm_prev_alt\n ftm_role\n ftm_content\n ftm_tool_calls\n ftm_call_id\n ftm_usage\n ftm_created_ts\n ftm_user_preferences\n }\n stream_delta {\n ftm_role\n ftm_content\n }\n news_payload_thread {\n located_fgroup_id\n ft_id\n ft_need_user\n ft_need_assistant\n ft_fexp_id\n ft_confirmation_request\n ft_title\n ft_toolset\n }\n }\n}\n\nmutation MessageCreateMultiple($input: FThreadMultipleMessagesInput!) {\n thread_messages_create_multiple(input: $input)\n}\n\nmutation ThreadPatch($id: String!, $message: String!) {\n thread_patch(id: $id, patch: {ft_error: $message}) {\n ft_id\n }\n}\n\nquery ExpertsForGroup($located_fgroup_id: String!) {\n experts_effective_list(located_fgroup_id: $located_fgroup_id) {\n fexp_id\n fexp_name\n }\n}\n\nquery ModelsForExpert($fexp_id: String!, $inside_fgroup_id: String!) {\n expert_choice_consequences(\n fexp_id: $fexp_id\n inside_fgroup_id: $inside_fgroup_id\n ) {\n models {\n provm_name\n provm_caps\n }\n }\n}\n\nquery ToolsForGroup($located_fgroup_id: String!) {\n cloud_tools_list(located_fgroup_id: $located_fgroup_id, include_offline: false) {\n ctool_confirmed_exists_ts\n ctool_description\n ctool_id\n ctool_name\n ctool_parameters\n located_fgroup_id\n owner_fuser_id\n }\n}\n\nmutation ThreadConfirmationResolve($fcall_id: String!, $ft_id: String!, $positive: Boolean!) {\n thread_confirmation_resolve(\n fcall_id: $fcall_id\n ft_id: $ft_id\n positive: $positive\n )\n}\n\nquery BasicStuff {\n query_basic_stuff {\n fuser_id\n my_own_ws_id\n workspaces {\n ws_id\n ws_owner_fuser_id\n ws_root_group_id\n root_group_name\n have_coins_exactly\n have_coins_enough\n have_admin\n }\n }\n}\n\nmutation CreateWorkSpaceGroup($fgroup_name: String!, $fgroup_parent_id: String!) {\n group_create(\n input: {fgroup_name: $fgroup_name, fgroup_parent_id: $fgroup_parent_id}\n ) {\n fgroup_id\n fgroup_name\n ws_id\n fgroup_parent_id\n fgroup_created_ts\n }\n}\n\nsubscription WorkspaceTree($ws_id: String!) {\n tree_subscription(ws_id: $ws_id) {\n treeupd_action\n treeupd_id\n treeupd_path\n treeupd_type\n treeupd_title\n }\n}": typeof types.ThreadsPageSubsDocument, }; const documents: Documents = { - "subscription ThreadsPageSubs($located_fgroup_id: String!, $limit: Int!) {\n threads_in_group(located_fgroup_id: $located_fgroup_id, limit: $limit) {\n news_action\n news_payload_id\n news_payload {\n owner_fuser_id\n owner_shared\n ft_id\n ft_title\n ft_error\n ft_updated_ts\n ft_locked_by\n ft_need_assistant\n ft_need_tool_calls\n ft_archived_ts\n ft_created_ts\n }\n }\n}\n\nmutation DeleteThread($id: String!) {\n thread_delete(id: $id)\n}\n\nmutation CreateThread($input: FThreadInput!) {\n thread_create(input: $input) {\n ft_id\n }\n}\n\nsubscription MessagesSubscription($ft_id: String!, $want_deltas: Boolean!) {\n comprehensive_thread_subs(ft_id: $ft_id, want_deltas: $want_deltas) {\n news_action\n news_payload_id\n news_payload_thread_message {\n ft_app_specific\n ftm_belongs_to_ft_id\n ftm_alt\n ftm_num\n ftm_prev_alt\n ftm_role\n ftm_content\n ftm_tool_calls\n ftm_call_id\n ftm_usage\n ftm_created_ts\n ftm_user_preferences\n }\n stream_delta {\n ftm_role\n ftm_content\n }\n news_payload_thread {\n located_fgroup_id\n ft_id\n ft_need_user\n ft_need_assistant\n ft_fexp_id\n ft_confirmation_request\n ft_confirmation_response\n ft_title\n ft_toolset\n }\n }\n}\n\nmutation MessageCreateMultiple($input: FThreadMultipleMessagesInput!) {\n thread_messages_create_multiple(input: $input)\n}\n\nmutation ThreadPatch($id: String!, $message: String!) {\n thread_patch(id: $id, patch: {ft_error: $message}) {\n ft_id\n }\n}\n\nquery ExpertsForGroup($located_fgroup_id: String!) {\n experts_effective_list(located_fgroup_id: $located_fgroup_id) {\n fexp_id\n fexp_name\n }\n}\n\nquery ModelsForExpert($fexp_id: String!, $inside_fgroup_id: String!) {\n expert_choice_consequences(\n fexp_id: $fexp_id\n inside_fgroup_id: $inside_fgroup_id\n ) {\n models {\n provm_name\n provm_caps\n }\n }\n}\n\nquery ToolsForGroup($located_fgroup_id: String!) {\n cloud_tools_list(located_fgroup_id: $located_fgroup_id, include_offline: false) {\n ctool_confirmed_exists_ts\n ctool_description\n ctool_id\n ctool_name\n ctool_parameters\n located_fgroup_id\n owner_fuser_id\n }\n}\n\nmutation ThreadConfirmationResponse($confirmation_response: String = \"\", $ft_id: String = \"\") {\n thread_set_confirmation_response(\n ft_id: $ft_id\n confirmation_response: $confirmation_response\n )\n}\n\nquery BasicStuff {\n query_basic_stuff {\n fuser_id\n my_own_ws_id\n workspaces {\n ws_id\n ws_owner_fuser_id\n ws_root_group_id\n root_group_name\n have_coins_exactly\n have_coins_enough\n have_admin\n }\n }\n}\n\nmutation CreateWorkSpaceGroup($fgroup_name: String!, $fgroup_parent_id: String!) {\n group_create(\n input: {fgroup_name: $fgroup_name, fgroup_parent_id: $fgroup_parent_id}\n ) {\n fgroup_id\n fgroup_name\n ws_id\n fgroup_parent_id\n fgroup_created_ts\n }\n}\n\nsubscription WorkspaceTree($ws_id: String!) {\n tree_subscription(ws_id: $ws_id) {\n treeupd_action\n treeupd_id\n treeupd_path\n treeupd_type\n treeupd_title\n }\n}": types.ThreadsPageSubsDocument, + "subscription ThreadsPageSubs($located_fgroup_id: String!, $limit: Int!) {\n threads_in_group(located_fgroup_id: $located_fgroup_id, limit: $limit) {\n news_action\n news_payload_id\n news_payload {\n owner_fuser_id\n owner_shared\n ft_id\n ft_title\n ft_error\n ft_updated_ts\n ft_locked_by\n ft_need_assistant\n ft_need_tool_calls\n ft_archived_ts\n ft_created_ts\n }\n }\n}\n\nmutation DeleteThread($id: String!) {\n thread_delete(id: $id)\n}\n\nmutation CreateThread($input: FThreadInput!) {\n thread_create(input: $input) {\n ft_id\n }\n}\n\nsubscription MessagesSubscription($ft_id: String!, $want_deltas: Boolean!) {\n comprehensive_thread_subs(ft_id: $ft_id, want_deltas: $want_deltas) {\n news_action\n news_payload_id\n news_payload_thread_message {\n ft_app_specific\n ftm_belongs_to_ft_id\n ftm_alt\n ftm_num\n ftm_prev_alt\n ftm_role\n ftm_content\n ftm_tool_calls\n ftm_call_id\n ftm_usage\n ftm_created_ts\n ftm_user_preferences\n }\n stream_delta {\n ftm_role\n ftm_content\n }\n news_payload_thread {\n located_fgroup_id\n ft_id\n ft_need_user\n ft_need_assistant\n ft_fexp_id\n ft_confirmation_request\n ft_title\n ft_toolset\n }\n }\n}\n\nmutation MessageCreateMultiple($input: FThreadMultipleMessagesInput!) {\n thread_messages_create_multiple(input: $input)\n}\n\nmutation ThreadPatch($id: String!, $message: String!) {\n thread_patch(id: $id, patch: {ft_error: $message}) {\n ft_id\n }\n}\n\nquery ExpertsForGroup($located_fgroup_id: String!) {\n experts_effective_list(located_fgroup_id: $located_fgroup_id) {\n fexp_id\n fexp_name\n }\n}\n\nquery ModelsForExpert($fexp_id: String!, $inside_fgroup_id: String!) {\n expert_choice_consequences(\n fexp_id: $fexp_id\n inside_fgroup_id: $inside_fgroup_id\n ) {\n models {\n provm_name\n provm_caps\n }\n }\n}\n\nquery ToolsForGroup($located_fgroup_id: String!) {\n cloud_tools_list(located_fgroup_id: $located_fgroup_id, include_offline: false) {\n ctool_confirmed_exists_ts\n ctool_description\n ctool_id\n ctool_name\n ctool_parameters\n located_fgroup_id\n owner_fuser_id\n }\n}\n\nmutation ThreadConfirmationResolve($fcall_id: String!, $ft_id: String!, $positive: Boolean!) {\n thread_confirmation_resolve(\n fcall_id: $fcall_id\n ft_id: $ft_id\n positive: $positive\n )\n}\n\nquery BasicStuff {\n query_basic_stuff {\n fuser_id\n my_own_ws_id\n workspaces {\n ws_id\n ws_owner_fuser_id\n ws_root_group_id\n root_group_name\n have_coins_exactly\n have_coins_enough\n have_admin\n }\n }\n}\n\nmutation CreateWorkSpaceGroup($fgroup_name: String!, $fgroup_parent_id: String!) {\n group_create(\n input: {fgroup_name: $fgroup_name, fgroup_parent_id: $fgroup_parent_id}\n ) {\n fgroup_id\n fgroup_name\n ws_id\n fgroup_parent_id\n fgroup_created_ts\n }\n}\n\nsubscription WorkspaceTree($ws_id: String!) {\n tree_subscription(ws_id: $ws_id) {\n treeupd_action\n treeupd_id\n treeupd_path\n treeupd_type\n treeupd_title\n }\n}": types.ThreadsPageSubsDocument, }; /** @@ -37,7 +37,7 @@ export function graphql(source: string): unknown; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "subscription ThreadsPageSubs($located_fgroup_id: String!, $limit: Int!) {\n threads_in_group(located_fgroup_id: $located_fgroup_id, limit: $limit) {\n news_action\n news_payload_id\n news_payload {\n owner_fuser_id\n owner_shared\n ft_id\n ft_title\n ft_error\n ft_updated_ts\n ft_locked_by\n ft_need_assistant\n ft_need_tool_calls\n ft_archived_ts\n ft_created_ts\n }\n }\n}\n\nmutation DeleteThread($id: String!) {\n thread_delete(id: $id)\n}\n\nmutation CreateThread($input: FThreadInput!) {\n thread_create(input: $input) {\n ft_id\n }\n}\n\nsubscription MessagesSubscription($ft_id: String!, $want_deltas: Boolean!) {\n comprehensive_thread_subs(ft_id: $ft_id, want_deltas: $want_deltas) {\n news_action\n news_payload_id\n news_payload_thread_message {\n ft_app_specific\n ftm_belongs_to_ft_id\n ftm_alt\n ftm_num\n ftm_prev_alt\n ftm_role\n ftm_content\n ftm_tool_calls\n ftm_call_id\n ftm_usage\n ftm_created_ts\n ftm_user_preferences\n }\n stream_delta {\n ftm_role\n ftm_content\n }\n news_payload_thread {\n located_fgroup_id\n ft_id\n ft_need_user\n ft_need_assistant\n ft_fexp_id\n ft_confirmation_request\n ft_confirmation_response\n ft_title\n ft_toolset\n }\n }\n}\n\nmutation MessageCreateMultiple($input: FThreadMultipleMessagesInput!) {\n thread_messages_create_multiple(input: $input)\n}\n\nmutation ThreadPatch($id: String!, $message: String!) {\n thread_patch(id: $id, patch: {ft_error: $message}) {\n ft_id\n }\n}\n\nquery ExpertsForGroup($located_fgroup_id: String!) {\n experts_effective_list(located_fgroup_id: $located_fgroup_id) {\n fexp_id\n fexp_name\n }\n}\n\nquery ModelsForExpert($fexp_id: String!, $inside_fgroup_id: String!) {\n expert_choice_consequences(\n fexp_id: $fexp_id\n inside_fgroup_id: $inside_fgroup_id\n ) {\n models {\n provm_name\n provm_caps\n }\n }\n}\n\nquery ToolsForGroup($located_fgroup_id: String!) {\n cloud_tools_list(located_fgroup_id: $located_fgroup_id, include_offline: false) {\n ctool_confirmed_exists_ts\n ctool_description\n ctool_id\n ctool_name\n ctool_parameters\n located_fgroup_id\n owner_fuser_id\n }\n}\n\nmutation ThreadConfirmationResponse($confirmation_response: String = \"\", $ft_id: String = \"\") {\n thread_set_confirmation_response(\n ft_id: $ft_id\n confirmation_response: $confirmation_response\n )\n}\n\nquery BasicStuff {\n query_basic_stuff {\n fuser_id\n my_own_ws_id\n workspaces {\n ws_id\n ws_owner_fuser_id\n ws_root_group_id\n root_group_name\n have_coins_exactly\n have_coins_enough\n have_admin\n }\n }\n}\n\nmutation CreateWorkSpaceGroup($fgroup_name: String!, $fgroup_parent_id: String!) {\n group_create(\n input: {fgroup_name: $fgroup_name, fgroup_parent_id: $fgroup_parent_id}\n ) {\n fgroup_id\n fgroup_name\n ws_id\n fgroup_parent_id\n fgroup_created_ts\n }\n}\n\nsubscription WorkspaceTree($ws_id: String!) {\n tree_subscription(ws_id: $ws_id) {\n treeupd_action\n treeupd_id\n treeupd_path\n treeupd_type\n treeupd_title\n }\n}"): (typeof documents)["subscription ThreadsPageSubs($located_fgroup_id: String!, $limit: Int!) {\n threads_in_group(located_fgroup_id: $located_fgroup_id, limit: $limit) {\n news_action\n news_payload_id\n news_payload {\n owner_fuser_id\n owner_shared\n ft_id\n ft_title\n ft_error\n ft_updated_ts\n ft_locked_by\n ft_need_assistant\n ft_need_tool_calls\n ft_archived_ts\n ft_created_ts\n }\n }\n}\n\nmutation DeleteThread($id: String!) {\n thread_delete(id: $id)\n}\n\nmutation CreateThread($input: FThreadInput!) {\n thread_create(input: $input) {\n ft_id\n }\n}\n\nsubscription MessagesSubscription($ft_id: String!, $want_deltas: Boolean!) {\n comprehensive_thread_subs(ft_id: $ft_id, want_deltas: $want_deltas) {\n news_action\n news_payload_id\n news_payload_thread_message {\n ft_app_specific\n ftm_belongs_to_ft_id\n ftm_alt\n ftm_num\n ftm_prev_alt\n ftm_role\n ftm_content\n ftm_tool_calls\n ftm_call_id\n ftm_usage\n ftm_created_ts\n ftm_user_preferences\n }\n stream_delta {\n ftm_role\n ftm_content\n }\n news_payload_thread {\n located_fgroup_id\n ft_id\n ft_need_user\n ft_need_assistant\n ft_fexp_id\n ft_confirmation_request\n ft_confirmation_response\n ft_title\n ft_toolset\n }\n }\n}\n\nmutation MessageCreateMultiple($input: FThreadMultipleMessagesInput!) {\n thread_messages_create_multiple(input: $input)\n}\n\nmutation ThreadPatch($id: String!, $message: String!) {\n thread_patch(id: $id, patch: {ft_error: $message}) {\n ft_id\n }\n}\n\nquery ExpertsForGroup($located_fgroup_id: String!) {\n experts_effective_list(located_fgroup_id: $located_fgroup_id) {\n fexp_id\n fexp_name\n }\n}\n\nquery ModelsForExpert($fexp_id: String!, $inside_fgroup_id: String!) {\n expert_choice_consequences(\n fexp_id: $fexp_id\n inside_fgroup_id: $inside_fgroup_id\n ) {\n models {\n provm_name\n provm_caps\n }\n }\n}\n\nquery ToolsForGroup($located_fgroup_id: String!) {\n cloud_tools_list(located_fgroup_id: $located_fgroup_id, include_offline: false) {\n ctool_confirmed_exists_ts\n ctool_description\n ctool_id\n ctool_name\n ctool_parameters\n located_fgroup_id\n owner_fuser_id\n }\n}\n\nmutation ThreadConfirmationResponse($confirmation_response: String = \"\", $ft_id: String = \"\") {\n thread_set_confirmation_response(\n ft_id: $ft_id\n confirmation_response: $confirmation_response\n )\n}\n\nquery BasicStuff {\n query_basic_stuff {\n fuser_id\n my_own_ws_id\n workspaces {\n ws_id\n ws_owner_fuser_id\n ws_root_group_id\n root_group_name\n have_coins_exactly\n have_coins_enough\n have_admin\n }\n }\n}\n\nmutation CreateWorkSpaceGroup($fgroup_name: String!, $fgroup_parent_id: String!) {\n group_create(\n input: {fgroup_name: $fgroup_name, fgroup_parent_id: $fgroup_parent_id}\n ) {\n fgroup_id\n fgroup_name\n ws_id\n fgroup_parent_id\n fgroup_created_ts\n }\n}\n\nsubscription WorkspaceTree($ws_id: String!) {\n tree_subscription(ws_id: $ws_id) {\n treeupd_action\n treeupd_id\n treeupd_path\n treeupd_type\n treeupd_title\n }\n}"]; +export function graphql(source: "subscription ThreadsPageSubs($located_fgroup_id: String!, $limit: Int!) {\n threads_in_group(located_fgroup_id: $located_fgroup_id, limit: $limit) {\n news_action\n news_payload_id\n news_payload {\n owner_fuser_id\n owner_shared\n ft_id\n ft_title\n ft_error\n ft_updated_ts\n ft_locked_by\n ft_need_assistant\n ft_need_tool_calls\n ft_archived_ts\n ft_created_ts\n }\n }\n}\n\nmutation DeleteThread($id: String!) {\n thread_delete(id: $id)\n}\n\nmutation CreateThread($input: FThreadInput!) {\n thread_create(input: $input) {\n ft_id\n }\n}\n\nsubscription MessagesSubscription($ft_id: String!, $want_deltas: Boolean!) {\n comprehensive_thread_subs(ft_id: $ft_id, want_deltas: $want_deltas) {\n news_action\n news_payload_id\n news_payload_thread_message {\n ft_app_specific\n ftm_belongs_to_ft_id\n ftm_alt\n ftm_num\n ftm_prev_alt\n ftm_role\n ftm_content\n ftm_tool_calls\n ftm_call_id\n ftm_usage\n ftm_created_ts\n ftm_user_preferences\n }\n stream_delta {\n ftm_role\n ftm_content\n }\n news_payload_thread {\n located_fgroup_id\n ft_id\n ft_need_user\n ft_need_assistant\n ft_fexp_id\n ft_confirmation_request\n ft_title\n ft_toolset\n }\n }\n}\n\nmutation MessageCreateMultiple($input: FThreadMultipleMessagesInput!) {\n thread_messages_create_multiple(input: $input)\n}\n\nmutation ThreadPatch($id: String!, $message: String!) {\n thread_patch(id: $id, patch: {ft_error: $message}) {\n ft_id\n }\n}\n\nquery ExpertsForGroup($located_fgroup_id: String!) {\n experts_effective_list(located_fgroup_id: $located_fgroup_id) {\n fexp_id\n fexp_name\n }\n}\n\nquery ModelsForExpert($fexp_id: String!, $inside_fgroup_id: String!) {\n expert_choice_consequences(\n fexp_id: $fexp_id\n inside_fgroup_id: $inside_fgroup_id\n ) {\n models {\n provm_name\n provm_caps\n }\n }\n}\n\nquery ToolsForGroup($located_fgroup_id: String!) {\n cloud_tools_list(located_fgroup_id: $located_fgroup_id, include_offline: false) {\n ctool_confirmed_exists_ts\n ctool_description\n ctool_id\n ctool_name\n ctool_parameters\n located_fgroup_id\n owner_fuser_id\n }\n}\n\nmutation ThreadConfirmationResolve($fcall_id: String!, $ft_id: String!, $positive: Boolean!) {\n thread_confirmation_resolve(\n fcall_id: $fcall_id\n ft_id: $ft_id\n positive: $positive\n )\n}\n\nquery BasicStuff {\n query_basic_stuff {\n fuser_id\n my_own_ws_id\n workspaces {\n ws_id\n ws_owner_fuser_id\n ws_root_group_id\n root_group_name\n have_coins_exactly\n have_coins_enough\n have_admin\n }\n }\n}\n\nmutation CreateWorkSpaceGroup($fgroup_name: String!, $fgroup_parent_id: String!) {\n group_create(\n input: {fgroup_name: $fgroup_name, fgroup_parent_id: $fgroup_parent_id}\n ) {\n fgroup_id\n fgroup_name\n ws_id\n fgroup_parent_id\n fgroup_created_ts\n }\n}\n\nsubscription WorkspaceTree($ws_id: String!) {\n tree_subscription(ws_id: $ws_id) {\n treeupd_action\n treeupd_id\n treeupd_path\n treeupd_type\n treeupd_title\n }\n}"): (typeof documents)["subscription ThreadsPageSubs($located_fgroup_id: String!, $limit: Int!) {\n threads_in_group(located_fgroup_id: $located_fgroup_id, limit: $limit) {\n news_action\n news_payload_id\n news_payload {\n owner_fuser_id\n owner_shared\n ft_id\n ft_title\n ft_error\n ft_updated_ts\n ft_locked_by\n ft_need_assistant\n ft_need_tool_calls\n ft_archived_ts\n ft_created_ts\n }\n }\n}\n\nmutation DeleteThread($id: String!) {\n thread_delete(id: $id)\n}\n\nmutation CreateThread($input: FThreadInput!) {\n thread_create(input: $input) {\n ft_id\n }\n}\n\nsubscription MessagesSubscription($ft_id: String!, $want_deltas: Boolean!) {\n comprehensive_thread_subs(ft_id: $ft_id, want_deltas: $want_deltas) {\n news_action\n news_payload_id\n news_payload_thread_message {\n ft_app_specific\n ftm_belongs_to_ft_id\n ftm_alt\n ftm_num\n ftm_prev_alt\n ftm_role\n ftm_content\n ftm_tool_calls\n ftm_call_id\n ftm_usage\n ftm_created_ts\n ftm_user_preferences\n }\n stream_delta {\n ftm_role\n ftm_content\n }\n news_payload_thread {\n located_fgroup_id\n ft_id\n ft_need_user\n ft_need_assistant\n ft_fexp_id\n ft_confirmation_request\n ft_title\n ft_toolset\n }\n }\n}\n\nmutation MessageCreateMultiple($input: FThreadMultipleMessagesInput!) {\n thread_messages_create_multiple(input: $input)\n}\n\nmutation ThreadPatch($id: String!, $message: String!) {\n thread_patch(id: $id, patch: {ft_error: $message}) {\n ft_id\n }\n}\n\nquery ExpertsForGroup($located_fgroup_id: String!) {\n experts_effective_list(located_fgroup_id: $located_fgroup_id) {\n fexp_id\n fexp_name\n }\n}\n\nquery ModelsForExpert($fexp_id: String!, $inside_fgroup_id: String!) {\n expert_choice_consequences(\n fexp_id: $fexp_id\n inside_fgroup_id: $inside_fgroup_id\n ) {\n models {\n provm_name\n provm_caps\n }\n }\n}\n\nquery ToolsForGroup($located_fgroup_id: String!) {\n cloud_tools_list(located_fgroup_id: $located_fgroup_id, include_offline: false) {\n ctool_confirmed_exists_ts\n ctool_description\n ctool_id\n ctool_name\n ctool_parameters\n located_fgroup_id\n owner_fuser_id\n }\n}\n\nmutation ThreadConfirmationResolve($fcall_id: String!, $ft_id: String!, $positive: Boolean!) {\n thread_confirmation_resolve(\n fcall_id: $fcall_id\n ft_id: $ft_id\n positive: $positive\n )\n}\n\nquery BasicStuff {\n query_basic_stuff {\n fuser_id\n my_own_ws_id\n workspaces {\n ws_id\n ws_owner_fuser_id\n ws_root_group_id\n root_group_name\n have_coins_exactly\n have_coins_enough\n have_admin\n }\n }\n}\n\nmutation CreateWorkSpaceGroup($fgroup_name: String!, $fgroup_parent_id: String!) {\n group_create(\n input: {fgroup_name: $fgroup_name, fgroup_parent_id: $fgroup_parent_id}\n ) {\n fgroup_id\n fgroup_name\n ws_id\n fgroup_parent_id\n fgroup_created_ts\n }\n}\n\nsubscription WorkspaceTree($ws_id: String!) {\n tree_subscription(ws_id: $ws_id) {\n treeupd_action\n treeupd_id\n treeupd_path\n treeupd_type\n treeupd_title\n }\n}"]; export function graphql(source: string) { return (documents as any)[source] ?? {}; diff --git a/refact-agent/gui/generated/graphql/graphql.ts b/refact-agent/gui/generated/graphql/graphql.ts index ac4291759..0fd1347d0 100644 --- a/refact-agent/gui/generated/graphql/graphql.ts +++ b/refact-agent/gui/generated/graphql/graphql.ts @@ -18,12 +18,16 @@ export type Scalars = { JSON: { input: any; output: any; } /** BigInt field */ Union: { input: any; output: any; } + /** Represents NULL values */ + Void: { input: any; output: any; } }; export type BasicStuffResult = { __typename?: 'BasicStuffResult'; + fuser_avatar: Scalars['String']['output']; fuser_id: Scalars['String']['output']; fuser_psystem?: Maybe; + fuser_questionnaire?: Maybe; invitations?: Maybe>; is_oauth: Scalars['Boolean']['output']; my_own_ws_id?: Maybe; @@ -33,6 +37,7 @@ export type BasicStuffResult = { export type CloudtoolResultInput = { dollars?: Scalars['Float']['input']; fcall_id: Scalars['String']['input']; + fcall_untrusted_key: Scalars['String']['input']; ftm_content: Scalars['String']['input']; ftm_provenance: Scalars['String']['input']; }; @@ -72,6 +77,14 @@ export type FBotInstallOutput = { marketable_version: Scalars['String']['output']; }; +export type FBotVersionsSubs = { + __typename?: 'FBotVersionsSubs'; + news_action: Scalars['String']['output']; + news_payload_id: Scalars['String']['output']; + news_payload_marketplace?: Maybe; + news_pubsub: Scalars['String']['output']; +}; + export type FCloudTool = { __typename?: 'FCloudTool'; ctool_confirmed_exists_ts?: Maybe; @@ -150,8 +163,13 @@ export type FExpertSubs = { news_pubsub: Scalars['String']['output']; }; +export type FExternalAuthOAuthStartInput = { + ws_id: Scalars['String']['input']; +}; + export type FExternalDataSourceInput = { eds_json: Scalars['String']['input']; + eds_last_successful_scan_ts?: Scalars['Float']['input']; eds_name: Scalars['String']['input']; eds_type: Scalars['String']['input']; located_fgroup_id: Scalars['String']['input']; @@ -185,6 +203,13 @@ export type FExternalDataSourceSubs = { news_payload_id: Scalars['String']['output']; }; +export type FGitHubMintTokenOutput = { + __typename?: 'FGitHubMintTokenOutput'; + expires_at: Scalars['String']['output']; + installation_id: Scalars['String']['output']; + token: Scalars['String']['output']; +}; + export type FKanbanTaskInput = { details_json?: InputMaybe; state: Scalars['String']['input']; @@ -234,6 +259,24 @@ export type FKnowledgeItemSubs = { news_pubsub: Scalars['String']['output']; }; +export type FMarketplaceBuildCheckResult = { + __typename?: 'FMarketplaceBuildCheckResult'; + can_build: Scalars['Boolean']['output']; + error_message?: Maybe; + github_app_install_url?: Maybe; + is_private_repo: Scalars['Boolean']['output']; + needs_credentials: Scalars['Boolean']['output']; +}; + +export type FMarketplaceDetails = { + __typename?: 'FMarketplaceDetails'; + dev_personas: Array; + dev_version_details?: Maybe; + personas: Array; + showcased_version_details?: Maybe; + versions: Array; +}; + export type FMarketplaceExpertInput = { fexp_allow_tools: Scalars['String']['input']; fexp_app_capture_tools?: Scalars['String']['input']; @@ -243,26 +286,42 @@ export type FMarketplaceExpertInput = { fexp_system_prompt: Scalars['String']['input']; }; -export type FMarketplaceInstallOutput = { - __typename?: 'FMarketplaceInstallOutput'; - persona_id: Scalars['String']['output']; -}; - export type FMarketplaceOutput = { __typename?: 'FMarketplaceOutput'; available_ws_id?: Maybe; + fuser_is_owner?: Maybe; + marketable_author: Scalars['String']['output']; marketable_description: Scalars['String']['output']; + marketable_docker_image_built_ts: Scalars['Float']['output']; + marketable_github_repo: Scalars['String']['output']; marketable_name: Scalars['String']['output']; + marketable_occupation: Scalars['String']['output']; marketable_picture_big?: Maybe; marketable_picture_small?: Maybe; marketable_popularity_counter: Scalars['Int']['output']; marketable_price: Scalars['Int']['output']; + marketable_stage: Scalars['String']['output']; marketable_star_event: Scalars['Int']['output']; marketable_star_sum: Scalars['Int']['output']; + marketable_tags: Array; marketable_title1: Scalars['String']['output']; marketable_title2: Scalars['String']['output']; - marketable_version: Scalars['String']['output']; + marketable_typical_group: Scalars['String']['output']; + marketable_version: Scalars['Int']['output']; + popularity_counter_all_versions?: Maybe; seller_fuser_id?: Maybe; + stars_avg_all_versions?: Maybe; + stars_count_all_versions?: Maybe; + stars_event_all_versions?: Maybe; +}; + +export type FMarketplaceVersionInfo = { + __typename?: 'FMarketplaceVersionInfo'; + marketable_current_persona_count: Scalars['Int']['output']; + marketable_docker_image_error_msg?: Maybe; + marketable_docker_image_status?: Maybe; + marketable_stage: Scalars['String']['output']; + marketable_version: Scalars['Int']['output']; }; export type FMassInvitationOutput = { @@ -278,6 +337,8 @@ export type FMcpServerInput = { mcp_enabled?: Scalars['Boolean']['input']; mcp_env_vars?: InputMaybe; mcp_name: Scalars['String']['input']; + mcp_preinstall_script?: Scalars['String']['input']; + owner_shared?: Scalars['Boolean']['input']; }; export type FMcpServerOutput = { @@ -291,6 +352,7 @@ export type FMcpServerOutput = { mcp_id: Scalars['String']['output']; mcp_modified_ts: Scalars['Float']['output']; mcp_name: Scalars['String']['output']; + mcp_preinstall_script: Scalars['String']['output']; owner_fuser_id: Scalars['String']['output']; owner_shared: Scalars['Boolean']['output']; }; @@ -302,6 +364,7 @@ export type FMcpServerPatch = { mcp_enabled?: InputMaybe; mcp_env_vars?: InputMaybe; mcp_name?: InputMaybe; + mcp_preinstall_script?: InputMaybe; owner_shared?: InputMaybe; }; @@ -313,6 +376,20 @@ export type FMcpServerSubs = { news_pubsub: Scalars['String']['output']; }; +export type FMeteringOutput = { + __typename?: 'FMeteringOutput'; + fgroup_id: Scalars['String']['output']; + met_coins: Scalars['Int']['output']; + met_details: Scalars['JSON']['output']; + met_involved_ft_id: Scalars['String']['output']; + met_involved_fuser_id: Scalars['String']['output']; + met_involved_model: Scalars['String']['output']; + met_serial: Scalars['Int']['output']; + met_ts: Scalars['Float']['output']; + met_type: Scalars['String']['output']; + ws_id: Scalars['String']['output']; +}; + export type FModelItem = { __typename?: 'FModelItem'; provm_caps: Scalars['JSON']['output']; @@ -338,19 +415,13 @@ export type FPermissionSubs = { news_pubsub: Scalars['String']['output']; }; -export type FPersonaHistoryItemOutput = { - __typename?: 'FPersonaHistoryItemOutput'; - ft_id: Scalars['String']['output']; - title: Scalars['String']['output']; -}; - -export type FPersonaInput = { - located_fgroup_id: Scalars['String']['input']; - persona_discounts?: InputMaybe; - persona_marketable_name: Scalars['String']['input']; - persona_marketable_version: Scalars['String']['input']; - persona_name: Scalars['String']['input']; - persona_setup: Scalars['String']['input']; +export type FPersonaDocOutput = { + __typename?: 'FPersonaDocOutput'; + ctime: Scalars['Float']['output']; + mime_type: Scalars['String']['output']; + mtime: Scalars['Float']['output']; + path: Scalars['String']['output']; + size_bytes: Scalars['Int']['output']; }; export type FPersonaKanbanSubs = { @@ -365,14 +436,18 @@ export type FPersonaKanbanTaskOutput = { __typename?: 'FPersonaKanbanTaskOutput'; ktask_blocks_ktask_id?: Maybe; ktask_budget: Scalars['Int']['output']; + ktask_coins: Scalars['Int']['output']; + ktask_daily_timekey: Scalars['String']['output']; ktask_details: Scalars['JSON']['output']; ktask_done_ts: Scalars['Float']['output']; - ktask_failed_ts: Scalars['Float']['output']; ktask_id: Scalars['String']['output']; ktask_inbox_provenance: Scalars['JSON']['output']; ktask_inbox_ts: Scalars['Float']['output']; - ktask_inprogress_ft_id: Scalars['String']['output']; + ktask_inprogress_activity_ts: Scalars['Float']['output']; + ktask_inprogress_ft_id?: Maybe; ktask_inprogress_ts: Scalars['Float']['output']; + ktask_resolution_code?: Maybe; + ktask_resolution_summary?: Maybe; ktask_title: Scalars['String']['output']; ktask_todo_ts: Scalars['Float']['output']; persona_id: Scalars['String']['output']; @@ -380,32 +455,54 @@ export type FPersonaKanbanTaskOutput = { export type FPersonaOutput = { __typename?: 'FPersonaOutput'; - history?: Maybe>; latest_ft_id?: Maybe; located_fgroup_id: Scalars['String']['output']; + marketable_author?: Maybe; marketable_docker_image?: Maybe; + marketable_occupation?: Maybe; marketable_run_this?: Maybe; marketable_setup_default?: Maybe; + marketable_stage?: Maybe; owner_fuser_id: Scalars['String']['output']; - persona_archived_ts: Scalars['Float']['output']; + persona_auto_upgrade: Scalars['Boolean']['output']; persona_created_ts: Scalars['Float']['output']; + persona_daily_budget: Scalars['Int']['output']; + persona_daily_coins: Scalars['Int']['output']; + persona_daily_timekey: Scalars['String']['output']; persona_discounts?: Maybe; persona_enabled: Scalars['Boolean']['output']; persona_id: Scalars['String']['output']; + persona_inbox_budget: Scalars['Int']['output']; persona_marketable_name: Scalars['String']['output']; - persona_marketable_version: Scalars['String']['output']; + persona_marketable_version: Scalars['Int']['output']; persona_name: Scalars['String']['output']; persona_picture_big?: Maybe; persona_picture_small?: Maybe; + persona_preferred_model: Scalars['String']['output']; + persona_prerelease: Scalars['Boolean']['output']; persona_setup: Scalars['JSON']['output']; + pstat_fail: Scalars['Int']['output']; + pstat_humanhours: Scalars['Float']['output']; + pstat_inbox: Scalars['Int']['output']; + pstat_inconclusive: Scalars['Int']['output']; + pstat_irrelevant: Scalars['Int']['output']; + pstat_prioritize: Scalars['Int']['output']; + pstat_reopened: Scalars['Int']['output']; + pstat_success: Scalars['Int']['output']; + pstat_week_base?: Maybe; + ws_id?: Maybe; + ws_timezone?: Maybe; }; export type FPersonaPatch = { located_fgroup_id?: InputMaybe; - persona_archived_ts?: InputMaybe; + persona_auto_upgrade?: InputMaybe; + persona_daily_budget?: InputMaybe; persona_enabled?: InputMaybe; - persona_marketable_version?: InputMaybe; + persona_inbox_budget?: InputMaybe; persona_name?: InputMaybe; + persona_preferred_model?: InputMaybe; + persona_prerelease?: InputMaybe; persona_setup?: InputMaybe; }; @@ -417,20 +514,25 @@ export type FPersonaScheduleListOutput = { export type FPersonaScheduleOutput = { __typename?: 'FPersonaScheduleOutput'; + sched_enable: Scalars['Boolean']['output']; sched_first_question: Scalars['String']['output']; sched_id: Scalars['String']['output']; + sched_last_ft_id?: Maybe; sched_last_run_ts: Scalars['Float']['output']; + sched_marketplace: Scalars['Boolean']['output']; sched_persona_id: Scalars['String']['output']; - sched_rrule: Scalars['String']['output']; - sched_start_ts: Scalars['Float']['output']; + sched_type: Scalars['String']['output']; + sched_when: Scalars['String']['output']; }; export type FPersonaScheduleUpsertInput = { + sched_enable: Scalars['Boolean']['input']; sched_first_question: Scalars['String']['input']; sched_id?: InputMaybe; + sched_marketplace: Scalars['Boolean']['input']; sched_persona_id: Scalars['String']['input']; - sched_rrule: Scalars['String']['input']; - sched_start_ts: Scalars['Float']['input']; + sched_type: Scalars['String']['input']; + sched_when: Scalars['String']['input']; }; export type FPersonaSubs = { @@ -443,9 +545,10 @@ export type FPersonaSubs = { export type FStatsAddInput = { fgroup_id?: Scalars['String']['input']; + ft_id?: Scalars['String']['input']; st_chart: Scalars['Int']['input']; st_how_many: Scalars['Union']['input']; - st_involved_fexp_id?: Scalars['String']['input']; + st_involved_expert?: Scalars['String']['input']; st_involved_fuser_id?: Scalars['String']['input']; st_involved_model?: Scalars['String']['input']; st_thing: Scalars['String']['input']; @@ -456,13 +559,29 @@ export type FStatsOutput = { __typename?: 'FStatsOutput'; fgroup_id?: Maybe; st_how_many: Scalars['Union']['output']; - st_involved_fexp_id?: Maybe; + st_involved_expert?: Maybe; st_involved_fuser_id?: Maybe; st_involved_model?: Maybe; + st_thing?: Maybe; st_timekey: Scalars['String']['output']; ws_id?: Maybe; }; +export type FSubchatProgress = { + __typename?: 'FSubchatProgress'; + subchat_progress_completed: Scalars['Int']['output']; + subchat_progress_total: Scalars['Int']['output']; +}; + +export type FTamagotchiSubs = { + __typename?: 'FTamagotchiSubs'; + news_action: Scalars['String']['output']; + news_payload_id: Scalars['String']['output']; + news_payload_persona?: Maybe; + news_payload_wishes?: Maybe; + news_pubsub: Scalars['String']['output']; +}; + export type FThreadDelta = { __typename?: 'FThreadDelta'; ftm_content: Scalars['JSON']['output']; @@ -473,10 +592,11 @@ export type FThreadInput = { ft_app_capture?: Scalars['String']['input']; ft_app_searchable?: Scalars['String']['input']; ft_app_specific?: Scalars['String']['input']; + ft_archived_ts?: Scalars['Float']['input']; + ft_budget?: Scalars['Int']['input']; ft_error?: Scalars['String']['input']; ft_fexp_id: Scalars['String']['input']; ft_persona_id?: InputMaybe; - ft_subchat_dest_ft_id?: InputMaybe; ft_title: Scalars['String']['input']; ft_toolset?: Scalars['String']['input']; located_fgroup_id: Scalars['String']['input']; @@ -485,17 +605,17 @@ export type FThreadInput = { export type FThreadMessageInput = { ftm_alt: Scalars['Int']['input']; - ftm_app_specific?: InputMaybe; + ftm_app_specific?: Scalars['String']['input']; ftm_belongs_to_ft_id: Scalars['String']['input']; ftm_call_id: Scalars['String']['input']; - ftm_content?: InputMaybe; + ftm_content?: Scalars['String']['input']; ftm_num: Scalars['Int']['input']; ftm_prev_alt: Scalars['Int']['input']; ftm_provenance: Scalars['String']['input']; ftm_role: Scalars['String']['input']; - ftm_tool_calls?: InputMaybe; - ftm_usage?: InputMaybe; - ftm_user_preferences?: InputMaybe; + ftm_tool_calls?: Scalars['String']['input']; + ftm_usage?: Scalars['String']['input']; + ftm_user_preferences?: Scalars['String']['input']; }; export type FThreadMessageOutput = { @@ -525,6 +645,7 @@ export type FThreadMessageSubs = { news_payload_thread?: Maybe; news_payload_thread_message?: Maybe; stream_delta?: Maybe; + subchat_progress?: Maybe; }; export type FThreadMultipleMessagesInput = { @@ -538,8 +659,9 @@ export type FThreadOutput = { ft_app_searchable: Scalars['String']['output']; ft_app_specific?: Maybe; ft_archived_ts: Scalars['Float']['output']; + ft_budget: Scalars['Int']['output']; + ft_coins: Scalars['Int']['output']; ft_confirmation_request?: Maybe; - ft_confirmation_response?: Maybe; ft_created_ts: Scalars['Float']['output']; ft_error?: Maybe; ft_fexp_id: Scalars['String']['output']; @@ -549,7 +671,6 @@ export type FThreadOutput = { ft_need_tool_calls: Scalars['Int']['output']; ft_need_user: Scalars['Int']['output']; ft_persona_id?: Maybe; - ft_subchat_dest_ft_id?: Maybe; ft_title: Scalars['String']['output']; ft_toolset?: Maybe; ft_updated_ts: Scalars['Float']['output']; @@ -562,10 +683,8 @@ export type FThreadPatch = { ft_app_searchable?: InputMaybe; ft_app_specific?: InputMaybe; ft_archived_ts?: InputMaybe; - ft_confirmation_request?: InputMaybe; - ft_confirmation_response?: InputMaybe; + ft_budget?: InputMaybe; ft_error?: InputMaybe; - ft_subchat_dest_ft_id?: InputMaybe; ft_title?: InputMaybe; ft_toolset?: InputMaybe; located_fgroup_id?: InputMaybe; @@ -582,14 +701,20 @@ export type FThreadSubs = { export type FUserProfileOutput = { __typename?: 'FUserProfileOutput'; + fuser_avatar?: Maybe; fuser_experimental: Scalars['Boolean']['output']; fuser_fullname: Scalars['String']['output']; fuser_id: Scalars['String']['output']; + fuser_nickname: Scalars['String']['output']; + fuser_questionnaire?: Maybe; }; export type FUserProfilePatch = { + fuser_avatar?: InputMaybe; fuser_experimental?: InputMaybe; fuser_fullname?: InputMaybe; + fuser_nickname?: InputMaybe; + fuser_questionnaire?: InputMaybe; }; export type FWorkspaceCreateInput = { @@ -609,14 +734,69 @@ export type FWorkspaceInvitationOutput = { export type FWorkspaceOutput = { __typename?: 'FWorkspaceOutput'; have_admin: Scalars['Boolean']['output']; + have_billing: Scalars['Boolean']['output']; have_coins_enough: Scalars['Boolean']['output']; have_coins_exactly: Scalars['Union']['output']; root_group_name: Scalars['String']['output']; ws_archived_ts: Scalars['Float']['output']; + ws_auto_recharge_amount?: Maybe; + ws_auto_recharge_enabled?: Maybe; + ws_auto_recharge_threshold?: Maybe; + ws_company_logo: Scalars['String']['output']; ws_created_ts: Scalars['Float']['output']; ws_id: Scalars['String']['output']; + ws_monthly_spending_alert?: Maybe; + ws_monthly_spending_limit?: Maybe; ws_owner_fuser_id: Scalars['String']['output']; + ws_payment_method?: Maybe; ws_root_group_id: Scalars['String']['output']; + ws_timezone: Scalars['String']['output']; +}; + +export type FWorkspacePatch = { + new_workspace_name?: InputMaybe; + ws_auto_recharge_amount?: InputMaybe; + ws_auto_recharge_enabled?: InputMaybe; + ws_auto_recharge_threshold?: InputMaybe; + ws_monthly_spending_alert?: InputMaybe; + ws_monthly_spending_limit?: InputMaybe; + ws_payment_method?: InputMaybe; + ws_timezone?: InputMaybe; +}; + +export type FeedbackInput = { + active_ws_id?: InputMaybe; + feedback_ft_id?: InputMaybe; + feedback_guest_email?: InputMaybe; + feedback_guest_nickname?: InputMaybe; + feedback_public: Scalars['Boolean']['input']; + feedback_stars?: InputMaybe; + feedback_text: Scalars['String']['input']; + feedback_type: Scalars['String']['input']; + persona_marketable_name: Scalars['String']['input']; + persona_marketable_version: Scalars['Int']['input']; +}; + +export type FeedbackOutput = { + __typename?: 'FeedbackOutput'; + author_nickname?: Maybe; + feedback_created_ts: Scalars['Float']['output']; + feedback_ft_id?: Maybe; + feedback_fuser_id?: Maybe; + feedback_guest_email?: Maybe; + feedback_guest_nickname?: Maybe; + feedback_id: Scalars['String']['output']; + feedback_marketable_name: Scalars['String']['output']; + feedback_marketable_version: Scalars['Int']['output']; + feedback_stars?: Maybe; + feedback_text: Scalars['String']['output']; + feedback_type: Scalars['String']['output']; +}; + +export type FeedbackPatch = { + feedback_public?: InputMaybe; + feedback_stars?: InputMaybe; + feedback_text?: InputMaybe; }; export type FlexusGroup = { @@ -639,20 +819,45 @@ export type FlexusGroupPatch = { fgroup_parent_id?: InputMaybe; }; +export type InstallationResult = { + __typename?: 'InstallationResult'; + fgroup_id: Scalars['String']['output']; + persona_id: Scalars['String']['output']; +}; + +export type MarketplaceFeedbackOutput = { + __typename?: 'MarketplaceFeedbackOutput'; + feedbacks: Array; + marketplace: FMarketplaceOutput; +}; + +export type McpRuntimeInfoDelta = { + __typename?: 'McpRuntimeInfoDelta'; + logs: Array; + mcp_id: Scalars['String']['output']; + status: Scalars['JSON']['output']; + usage: Scalars['JSON']['output']; +}; + export type Mutation = { __typename?: 'Mutation'; api_key_delete: Scalars['Boolean']['output']; api_key_generate: FApiKeyOutput; bot_activate: FThreadOutput; bot_arrange_kanban_situation: Scalars['Boolean']['output']; - bot_install_from_marketplace: Scalars['Boolean']['output']; + bot_install_from_marketplace: InstallationResult; bot_kanban_post_into_inbox: Scalars['Boolean']['output']; + bot_subchat_create_multiple?: Maybe; + bot_upgrade: Scalars['Int']['output']; + cloudtool_confirmation_request: Scalars['Boolean']['output']; cloudtool_post_result: Scalars['Boolean']['output']; create_captured_thread: FThreadOutput; email_confirm: EmailConfirmResult; expert_create: FExpertOutput; expert_delete: Scalars['Boolean']['output']; expert_patch: FExpertOutput; + external_auth_mint_github_token: FGitHubMintTokenOutput; + external_auth_start_github_oauth: Scalars['String']['output']; external_data_source_create: FExternalDataSourceOutput; external_data_source_delete: Scalars['Boolean']['output']; external_data_source_patch: FExternalDataSourceOutput; @@ -668,8 +873,12 @@ export type Mutation = { knowledge_item_mass_group_patch: Scalars['Int']['output']; knowledge_item_patch: FKnowledgeItemOutput; make_sure_have_expert: Scalars['String']['output']; - marketplace_install: FMarketplaceInstallOutput; - marketplace_upgrade: Scalars['Boolean']['output']; + marketplace_change_stage: Scalars['Boolean']['output']; + marketplace_check_build_requirements: FMarketplaceBuildCheckResult; + marketplace_delete_version: Scalars['Boolean']['output']; + marketplace_feedback_delete: Scalars['Boolean']['output']; + marketplace_feedback_patch: FeedbackOutput; + marketplace_feedback_submit: FeedbackOutput; marketplace_upsert_dev_bot: FBotInstallOutput; mcp_server_create: FMcpServerOutput; mcp_server_delete: Scalars['Boolean']['output']; @@ -677,7 +886,6 @@ export type Mutation = { password_change: Scalars['Boolean']['output']; permission_delete: Scalars['Boolean']['output']; permission_patch: FPermissionOutput; - persona_create: FPersonaOutput; persona_delete: Scalars['Boolean']['output']; persona_patch: FPersonaOutput; persona_schedule_delete: FPersonaScheduleOutput; @@ -688,7 +896,7 @@ export type Mutation = { session_renew: Scalars['String']['output']; stats_add: Scalars['Boolean']['output']; thread_app_capture_patch: Scalars['Boolean']['output']; - thread_clear_confirmation: Scalars['Boolean']['output']; + thread_confirmation_resolve: Scalars['Boolean']['output']; thread_create: FThreadOutput; thread_delete: Scalars['Boolean']['output']; thread_lock: Scalars['Boolean']['output']; @@ -697,14 +905,16 @@ export type Mutation = { thread_patch: FThreadOutput; thread_reset_error: Scalars['Boolean']['output']; thread_reset_title: Scalars['Boolean']['output']; - thread_set_confirmation_request: Scalars['Boolean']['output']; - thread_set_confirmation_response: Scalars['Boolean']['output']; thread_unlock: Scalars['Boolean']['output']; + user_avatar_upload: FUserProfileOutput; user_profile_patch: FUserProfileOutput; user_register: Scalars['Boolean']['output']; workspace_create: Scalars['String']['output']; workspace_delete: Scalars['String']['output']; workspace_leave: Scalars['String']['output']; + workspace_logo_upload: Scalars['Boolean']['output']; + workspace_patch: Scalars['Boolean']['output']; + workspace_undelete: Scalars['String']['output']; }; @@ -714,11 +924,12 @@ export type MutationApi_Key_DeleteArgs = { export type MutationBot_ActivateArgs = { - activation_type: Scalars['String']['input']; + activation_type?: Scalars['String']['input']; + fexp_id?: Scalars['String']['input']; first_calls: Scalars['String']['input']; first_question: Scalars['String']['input']; - localtools: Scalars['String']['input']; persona_id: Scalars['String']['input']; + sched_id?: Scalars['String']['input']; title: Scalars['String']['input']; who_is_asking: Scalars['String']['input']; }; @@ -732,23 +943,51 @@ export type MutationBot_Arrange_Kanban_SituationArgs = { export type MutationBot_Install_From_MarketplaceArgs = { - inside_fgroup_id: Scalars['String']['input']; + inside_fgroup_id?: InputMaybe; + install_dev_version?: Scalars['Boolean']['input']; new_setup: Scalars['String']['input']; - persona_id: Scalars['String']['input']; + persona_id?: InputMaybe; persona_marketable_name: Scalars['String']['input']; - persona_marketable_version: Scalars['String']['input']; persona_name: Scalars['String']['input']; + specific_version?: InputMaybe; + ws_id: Scalars['String']['input']; }; export type MutationBot_Kanban_Post_Into_InboxArgs = { - budget: Scalars['Int']['input']; details_json: Scalars['String']['input']; persona_id: Scalars['String']['input']; title: Scalars['String']['input']; }; +export type MutationBot_Subchat_Create_MultipleArgs = { + fcall_id: Scalars['String']['input']; + first_calls: Array; + first_question: Array; + persona_id: Scalars['String']['input']; + title: Array; + who_is_asking: Scalars['String']['input']; +}; + + +export type MutationBot_UpgradeArgs = { + auto_upgrade?: InputMaybe; + marketable_name: Scalars['String']['input']; + prerelease?: InputMaybe; + specific_version?: InputMaybe; + ws_id: Scalars['String']['input']; +}; + + +export type MutationCloudtool_Confirmation_RequestArgs = { + confirm_command: Scalars['String']['input']; + confirm_explanation: Scalars['String']['input']; + confirm_setup_key: Scalars['String']['input']; + fcall_id: Scalars['String']['input']; +}; + + export type MutationCloudtool_Post_ResultArgs = { input: CloudtoolResultInput; }; @@ -781,6 +1020,16 @@ export type MutationExpert_PatchArgs = { }; +export type MutationExternal_Auth_Mint_Github_TokenArgs = { + ws_id: Scalars['String']['input']; +}; + + +export type MutationExternal_Auth_Start_Github_OauthArgs = { + input: FExternalAuthOAuthStartInput; +}; + + export type MutationExternal_Data_Source_CreateArgs = { input: FExternalDataSourceInput; }; @@ -867,20 +1116,48 @@ export type MutationMake_Sure_Have_ExpertArgs = { }; -export type MutationMarketplace_InstallArgs = { - fgroup_id: Scalars['String']['input']; +export type MutationMarketplace_Change_StageArgs = { marketable_name: Scalars['String']['input']; + marketable_version: Scalars['Int']['input']; + move_to_stage: Scalars['String']['input']; + ws_id: Scalars['String']['input']; }; -export type MutationMarketplace_UpgradeArgs = { - fgroup_id: Scalars['String']['input']; +export type MutationMarketplace_Check_Build_RequirementsArgs = { + marketable_name: Scalars['String']['input']; + marketable_version: Scalars['Int']['input']; + ws_id: Scalars['String']['input']; +}; + + +export type MutationMarketplace_Delete_VersionArgs = { marketable_name: Scalars['String']['input']; - specific_version: Scalars['String']['input']; + marketable_version: Scalars['Int']['input']; + ws_id: Scalars['String']['input']; +}; + + +export type MutationMarketplace_Feedback_DeleteArgs = { + feedback_id: Scalars['String']['input']; +}; + + +export type MutationMarketplace_Feedback_PatchArgs = { + feedback_id: Scalars['String']['input']; + patch: FeedbackPatch; +}; + + +export type MutationMarketplace_Feedback_SubmitArgs = { + input: FeedbackInput; }; export type MutationMarketplace_Upsert_Dev_BotArgs = { + marketable_author: Scalars['String']['input']; + marketable_daily_budget_default: Scalars['Int']['input']; + marketable_default_inbox_default: Scalars['Int']['input']; marketable_description: Scalars['String']['input']; marketable_expert_default: FMarketplaceExpertInput; marketable_expert_setup?: InputMaybe; @@ -888,12 +1165,18 @@ export type MutationMarketplace_Upsert_Dev_BotArgs = { marketable_expert_todo?: InputMaybe; marketable_github_repo: Scalars['String']['input']; marketable_name: Scalars['String']['input']; - marketable_picture_big_b64?: InputMaybe; - marketable_picture_small_b64?: InputMaybe; + marketable_occupation: Scalars['String']['input']; + marketable_picture_big_b64: Scalars['String']['input']; + marketable_picture_small_b64: Scalars['String']['input']; + marketable_preferred_model_default: Scalars['String']['input']; marketable_run_this: Scalars['String']['input']; + marketable_schedule: Scalars['String']['input']; marketable_setup_default: Scalars['String']['input']; + marketable_stage?: Scalars['String']['input']; + marketable_tags: Array; marketable_title1: Scalars['String']['input']; marketable_title2: Scalars['String']['input']; + marketable_typical_group: Scalars['String']['input']; marketable_version: Scalars['String']['input']; ws_id: Scalars['String']['input']; }; @@ -934,11 +1217,6 @@ export type MutationPermission_PatchArgs = { }; -export type MutationPersona_CreateArgs = { - input: FPersonaInput; -}; - - export type MutationPersona_DeleteArgs = { id: Scalars['String']['input']; }; @@ -989,8 +1267,10 @@ export type MutationThread_App_Capture_PatchArgs = { }; -export type MutationThread_Clear_ConfirmationArgs = { +export type MutationThread_Confirmation_ResolveArgs = { + fcall_id: Scalars['String']['input']; ft_id: Scalars['String']['input']; + positive: Scalars['Boolean']['input']; }; @@ -1020,6 +1300,7 @@ export type MutationThread_Messages_Create_MultipleArgs = { delete_negative?: InputMaybe>; input: FThreadMultipleMessagesInput; mission_accomplished_adv_worker?: InputMaybe; + mission_accomplished_with_err?: InputMaybe; }; @@ -1041,21 +1322,14 @@ export type MutationThread_Reset_TitleArgs = { }; -export type MutationThread_Set_Confirmation_RequestArgs = { - confirmation_request: Scalars['String']['input']; - ft_id: Scalars['String']['input']; -}; - - -export type MutationThread_Set_Confirmation_ResponseArgs = { - confirmation_response: Scalars['String']['input']; +export type MutationThread_UnlockArgs = { ft_id: Scalars['String']['input']; + worker_name: Scalars['String']['input']; }; -export type MutationThread_UnlockArgs = { - ft_id: Scalars['String']['input']; - worker_name: Scalars['String']['input']; +export type MutationUser_Avatar_UploadArgs = { + avatar_b64: Scalars['String']['input']; }; @@ -1075,7 +1349,6 @@ export type MutationWorkspace_CreateArgs = { export type MutationWorkspace_DeleteArgs = { - dry_run?: Scalars['Boolean']['input']; ws_id: Scalars['String']['input']; }; @@ -1084,6 +1357,23 @@ export type MutationWorkspace_LeaveArgs = { ws_id: Scalars['String']['input']; }; + +export type MutationWorkspace_Logo_UploadArgs = { + logo_b64: Scalars['String']['input']; + ws_id: Scalars['String']['input']; +}; + + +export type MutationWorkspace_PatchArgs = { + input: FWorkspacePatch; + ws_id: Scalars['String']['input']; +}; + + +export type MutationWorkspace_UndeleteArgs = { + ws_id: Scalars['String']['input']; +}; + export type PasswordResetTokenInfo = { __typename?: 'PasswordResetTokenInfo'; freset_used: Scalars['Boolean']['output']; @@ -1108,14 +1398,17 @@ export type Query = { knowledge_item_get: FKnowledgeItemOutput; knowledge_item_list: Array; knowledge_vecdb_search: Array; - marketplace_details: Array; + marketplace_details: FMarketplaceDetails; + marketplace_feedback_list: Array; marketplace_list: Array; marketplace_search: Array; mcp_server_get: FMcpServerOutput; mcp_server_list: Array; + metering_list: Array; permission_list: Array; persona_get: FPersonaOutput; persona_list: Array; + persona_mongo_docs_list: Array; persona_opened_in_ui: FPersonaOutput; persona_schedule_list: FPersonaScheduleListOutput; query_basic_stuff: BasicStuffResult; @@ -1223,21 +1516,35 @@ export type QueryKnowledge_Vecdb_SearchArgs = { export type QueryMarketplace_DetailsArgs = { - fgroup_id: Scalars['String']['input']; marketable_name: Scalars['String']['input']; + ws_id: Scalars['String']['input']; +}; + + +export type QueryMarketplace_Feedback_ListArgs = { + active_ws_id: Scalars['String']['input']; + feedback_type?: InputMaybe; + limit_marketplaces?: Scalars['Int']['input']; + limit_per_marketplace?: Scalars['Int']['input']; + only_my_feedback?: Scalars['Boolean']['input']; + persona_marketable_name?: InputMaybe; + persona_marketable_version?: InputMaybe; + skip_marketplaces?: Scalars['Int']['input']; + skip_per_marketplace?: Scalars['Int']['input']; }; export type QueryMarketplace_ListArgs = { - fgroup_id: Scalars['String']['input']; take?: Scalars['Int']['input']; + ws_id: Scalars['String']['input']; }; export type QueryMarketplace_SearchArgs = { - fgroup_id: Scalars['String']['input']; query: Scalars['String']['input']; + tags?: Array; take?: Scalars['Int']['input']; + ws_id: Scalars['String']['input']; }; @@ -1254,6 +1561,19 @@ export type QueryMcp_Server_ListArgs = { }; +export type QueryMetering_ListArgs = { + date_from?: InputMaybe; + date_to?: InputMaybe; + fgroup_id?: InputMaybe; + limit?: InputMaybe; + met_type_exclude?: InputMaybe>; + met_type_include?: InputMaybe>; + offset?: InputMaybe; + search?: InputMaybe; + ws_id: Scalars['String']['input']; +}; + + export type QueryPermission_ListArgs = { fgroup_id: Scalars['String']['input']; }; @@ -1272,6 +1592,12 @@ export type QueryPersona_ListArgs = { }; +export type QueryPersona_Mongo_Docs_ListArgs = { + path: Scalars['String']['input']; + persona_id: Scalars['String']['input']; +}; + + export type QueryPersona_Opened_In_UiArgs = { persona_id: Scalars['String']['input']; }; @@ -1293,11 +1619,12 @@ export type QueryReset_Password_Token_InfoArgs = { export type QueryStats_QueryArgs = { - breakdown_fexp_name: Array; + breakdown_expert: Array; breakdown_fuser_id: Array; breakdown_model: Array; + breakdown_thing: Array; fgroup_id?: Scalars['String']['input']; - filter_fexp_id?: Array; + filter_expert?: Array; filter_fuser_id?: Array; filter_model?: Array; filter_thing?: Array; @@ -1311,9 +1638,10 @@ export type QueryStats_QueryArgs = { export type QueryStats_Query_DistinctArgs = { fgroup_id: Scalars['String']['input']; - filter_fexp_id: Array; + filter_expert: Array; filter_fuser_id: Array; filter_model: Array; + filter_thing: Array; st_chart: Scalars['Int']['input']; st_span: Scalars['String']['input']; timekey_from: Scalars['String']['input']; @@ -1365,7 +1693,7 @@ export type RegisterInput = { export type StatsDistinctOutput = { __typename?: 'StatsDistinctOutput'; - st_involved_fexp_id: Scalars['JSON']['output']; + st_involved_expert: Scalars['JSON']['output']; st_involved_fuser_id: Scalars['JSON']['output']; st_involved_model: Scalars['JSON']['output']; st_thing: Array; @@ -1374,20 +1702,29 @@ export type StatsDistinctOutput = { export type Subscription = { __typename?: 'Subscription'; + bot_versions_subs: FBotVersionsSubs; comprehensive_thread_subs: FThreadMessageSubs; ephemeral_subs: FEphemeralSubs; experts_in_group: FExpertSubs; external_data_sources_in_group: FExternalDataSourceSubs; knowledge_items_in_group: FKnowledgeItemSubs; + mcp_runtime_info_subscription: McpRuntimeInfoDelta; mcp_servers_in_group: FMcpServerSubs; permissions_in_group_subs: FPermissionSubs; persona_kanban_subs: FPersonaKanbanSubs; personas_in_group: FPersonaSubs; + tamagotchi_subs: FTamagotchiSubs; threads_in_group: FThreadSubs; tree_subscription: TreeUpdateSubs; }; +export type SubscriptionBot_Versions_SubsArgs = { + marketable_name: Scalars['String']['input']; + ws_id: Scalars['String']['input']; +}; + + export type SubscriptionComprehensive_Thread_SubsArgs = { ft_id: Scalars['String']['input']; want_deltas: Scalars['Boolean']['input']; @@ -1400,34 +1737,40 @@ export type SubscriptionEphemeral_SubsArgs = { export type SubscriptionExperts_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; }; export type SubscriptionExternal_Data_Sources_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; }; export type SubscriptionKnowledge_Items_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; +}; + + +export type SubscriptionMcp_Runtime_Info_SubscriptionArgs = { + fgroup_id: Scalars['String']['input']; + mcp_id: Scalars['String']['input']; }; export type SubscriptionMcp_Servers_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; }; @@ -1440,25 +1783,29 @@ export type SubscriptionPermissions_In_Group_SubsArgs = { export type SubscriptionPersona_Kanban_SubsArgs = { limit_done?: Scalars['Int']['input']; - limit_garbage?: Scalars['Int']['input']; limit_inbox?: Scalars['Int']['input']; persona_id: Scalars['String']['input']; }; export type SubscriptionPersonas_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; +}; + + +export type SubscriptionTamagotchi_SubsArgs = { + fgroup_id: Scalars['String']['input']; }; export type SubscriptionThreads_In_GroupArgs = { - filter?: Array; limit?: Scalars['Int']['input']; located_fgroup_id: Scalars['String']['input']; sort_by?: Array; + subs_filter?: Array; }; @@ -1466,6 +1813,18 @@ export type SubscriptionTree_SubscriptionArgs = { ws_id: Scalars['String']['input']; }; +export type TamagotchiMissing = { + __typename?: 'TamagotchiMissing'; + group: Scalars['String']['output']; + importance: Scalars['Int']['output']; +}; + +export type TamagotchiWishes = { + __typename?: 'TamagotchiWishes'; + setup_quest_count: Scalars['Int']['output']; + setup_quest_missing: Array; +}; + export type TreeUpdateSubs = { __typename?: 'TreeUpdateSubs'; treeupd_action: Scalars['String']['output']; @@ -1505,7 +1864,7 @@ export type MessagesSubscriptionSubscriptionVariables = Exact<{ }>; -export type MessagesSubscriptionSubscription = { __typename?: 'Subscription', comprehensive_thread_subs: { __typename?: 'FThreadMessageSubs', news_action: string, news_payload_id: string, news_payload_thread_message?: { __typename?: 'FThreadMessageOutput', ft_app_specific?: any | null, ftm_belongs_to_ft_id: string, ftm_alt: number, ftm_num: number, ftm_prev_alt: number, ftm_role: string, ftm_content?: any | null, ftm_tool_calls?: any | null, ftm_call_id: string, ftm_usage?: any | null, ftm_created_ts: number, ftm_user_preferences?: any | null } | null, stream_delta?: { __typename?: 'FThreadDelta', ftm_role: string, ftm_content: any } | null, news_payload_thread?: { __typename?: 'FThreadOutput', located_fgroup_id: string, ft_id: string, ft_need_user: number, ft_need_assistant: number, ft_fexp_id: string, ft_confirmation_request?: any | null, ft_confirmation_response?: any | null, ft_title: string, ft_toolset?: any | null } | null } }; +export type MessagesSubscriptionSubscription = { __typename?: 'Subscription', comprehensive_thread_subs: { __typename?: 'FThreadMessageSubs', news_action: string, news_payload_id: string, news_payload_thread_message?: { __typename?: 'FThreadMessageOutput', ft_app_specific?: any | null, ftm_belongs_to_ft_id: string, ftm_alt: number, ftm_num: number, ftm_prev_alt: number, ftm_role: string, ftm_content?: any | null, ftm_tool_calls?: any | null, ftm_call_id: string, ftm_usage?: any | null, ftm_created_ts: number, ftm_user_preferences?: any | null } | null, stream_delta?: { __typename?: 'FThreadDelta', ftm_role: string, ftm_content: any } | null, news_payload_thread?: { __typename?: 'FThreadOutput', located_fgroup_id: string, ft_id: string, ft_need_user: number, ft_need_assistant: number, ft_fexp_id: string, ft_confirmation_request?: any | null, ft_title: string, ft_toolset?: any | null } | null } }; export type MessageCreateMultipleMutationVariables = Exact<{ input: FThreadMultipleMessagesInput; @@ -1544,13 +1903,14 @@ export type ToolsForGroupQueryVariables = Exact<{ export type ToolsForGroupQuery = { __typename?: 'Query', cloud_tools_list: Array<{ __typename?: 'FCloudTool', ctool_confirmed_exists_ts?: number | null, ctool_description: string, ctool_id: string, ctool_name: string, ctool_parameters: any, located_fgroup_id?: string | null, owner_fuser_id?: string | null }> }; -export type ThreadConfirmationResponseMutationVariables = Exact<{ - confirmation_response?: InputMaybe; - ft_id?: InputMaybe; +export type ThreadConfirmationResolveMutationVariables = Exact<{ + fcall_id: Scalars['String']['input']; + ft_id: Scalars['String']['input']; + positive: Scalars['Boolean']['input']; }>; -export type ThreadConfirmationResponseMutation = { __typename?: 'Mutation', thread_set_confirmation_response: boolean }; +export type ThreadConfirmationResolveMutation = { __typename?: 'Mutation', thread_confirmation_resolve: boolean }; export type BasicStuffQueryVariables = Exact<{ [key: string]: never; }>; @@ -1576,13 +1936,13 @@ export type WorkspaceTreeSubscription = { __typename?: 'Subscription', tree_subs export const ThreadsPageSubsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"ThreadsPageSubs"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threads_in_group"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"located_fgroup_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"news_action"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_id"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"owner_fuser_id"}},{"kind":"Field","name":{"kind":"Name","value":"owner_shared"}},{"kind":"Field","name":{"kind":"Name","value":"ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_title"}},{"kind":"Field","name":{"kind":"Name","value":"ft_error"}},{"kind":"Field","name":{"kind":"Name","value":"ft_updated_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ft_locked_by"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_assistant"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_tool_calls"}},{"kind":"Field","name":{"kind":"Name","value":"ft_archived_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ft_created_ts"}}]}}]}}]}}]} as unknown as DocumentNode; export const DeleteThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_delete"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode; export const CreateThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FThreadInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_create"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ft_id"}}]}}]}}]} as unknown as DocumentNode; -export const MessagesSubscriptionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"MessagesSubscription"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"want_deltas"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"comprehensive_thread_subs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ft_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"want_deltas"},"value":{"kind":"Variable","name":{"kind":"Name","value":"want_deltas"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"news_action"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_id"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_thread_message"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ft_app_specific"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_belongs_to_ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_alt"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_num"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_prev_alt"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_role"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_content"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_tool_calls"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_call_id"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_usage"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_created_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_user_preferences"}}]}},{"kind":"Field","name":{"kind":"Name","value":"stream_delta"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ftm_role"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_content"}}]}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_thread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"located_fgroup_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_user"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_assistant"}},{"kind":"Field","name":{"kind":"Name","value":"ft_fexp_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_confirmation_request"}},{"kind":"Field","name":{"kind":"Name","value":"ft_confirmation_response"}},{"kind":"Field","name":{"kind":"Name","value":"ft_title"}},{"kind":"Field","name":{"kind":"Name","value":"ft_toolset"}}]}}]}}]}}]} as unknown as DocumentNode; +export const MessagesSubscriptionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"MessagesSubscription"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"want_deltas"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"comprehensive_thread_subs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ft_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"want_deltas"},"value":{"kind":"Variable","name":{"kind":"Name","value":"want_deltas"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"news_action"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_id"}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_thread_message"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ft_app_specific"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_belongs_to_ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_alt"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_num"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_prev_alt"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_role"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_content"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_tool_calls"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_call_id"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_usage"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_created_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_user_preferences"}}]}},{"kind":"Field","name":{"kind":"Name","value":"stream_delta"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ftm_role"}},{"kind":"Field","name":{"kind":"Name","value":"ftm_content"}}]}},{"kind":"Field","name":{"kind":"Name","value":"news_payload_thread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"located_fgroup_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_user"}},{"kind":"Field","name":{"kind":"Name","value":"ft_need_assistant"}},{"kind":"Field","name":{"kind":"Name","value":"ft_fexp_id"}},{"kind":"Field","name":{"kind":"Name","value":"ft_confirmation_request"}},{"kind":"Field","name":{"kind":"Name","value":"ft_title"}},{"kind":"Field","name":{"kind":"Name","value":"ft_toolset"}}]}}]}}]}}]} as unknown as DocumentNode; export const MessageCreateMultipleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MessageCreateMultiple"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FThreadMultipleMessagesInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_messages_create_multiple"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode; export const ThreadPatchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ThreadPatch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"message"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_patch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"patch"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"ft_error"},"value":{"kind":"Variable","name":{"kind":"Name","value":"message"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ft_id"}}]}}]}}]} as unknown as DocumentNode; export const ExpertsForGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ExpertsForGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"experts_effective_list"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"located_fgroup_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fexp_id"}},{"kind":"Field","name":{"kind":"Name","value":"fexp_name"}}]}}]}}]} as unknown as DocumentNode; export const ModelsForExpertDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ModelsForExpert"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fexp_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inside_fgroup_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"expert_choice_consequences"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fexp_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fexp_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"inside_fgroup_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inside_fgroup_id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"models"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"provm_name"}},{"kind":"Field","name":{"kind":"Name","value":"provm_caps"}}]}}]}}]}}]} as unknown as DocumentNode; export const ToolsForGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ToolsForGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cloud_tools_list"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"located_fgroup_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"located_fgroup_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"include_offline"},"value":{"kind":"BooleanValue","value":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ctool_confirmed_exists_ts"}},{"kind":"Field","name":{"kind":"Name","value":"ctool_description"}},{"kind":"Field","name":{"kind":"Name","value":"ctool_id"}},{"kind":"Field","name":{"kind":"Name","value":"ctool_name"}},{"kind":"Field","name":{"kind":"Name","value":"ctool_parameters"}},{"kind":"Field","name":{"kind":"Name","value":"located_fgroup_id"}},{"kind":"Field","name":{"kind":"Name","value":"owner_fuser_id"}}]}}]}}]} as unknown as DocumentNode; -export const ThreadConfirmationResponseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ThreadConfirmationResponse"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"confirmation_response"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_set_confirmation_response"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ft_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"confirmation_response"},"value":{"kind":"Variable","name":{"kind":"Name","value":"confirmation_response"}}}]}]}}]} as unknown as DocumentNode; +export const ThreadConfirmationResolveDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ThreadConfirmationResolve"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fcall_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"positive"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread_confirmation_resolve"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fcall_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fcall_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"ft_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ft_id"}}},{"kind":"Argument","name":{"kind":"Name","value":"positive"},"value":{"kind":"Variable","name":{"kind":"Name","value":"positive"}}}]}]}}]} as unknown as DocumentNode; export const BasicStuffDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BasicStuff"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"query_basic_stuff"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fuser_id"}},{"kind":"Field","name":{"kind":"Name","value":"my_own_ws_id"}},{"kind":"Field","name":{"kind":"Name","value":"workspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ws_id"}},{"kind":"Field","name":{"kind":"Name","value":"ws_owner_fuser_id"}},{"kind":"Field","name":{"kind":"Name","value":"ws_root_group_id"}},{"kind":"Field","name":{"kind":"Name","value":"root_group_name"}},{"kind":"Field","name":{"kind":"Name","value":"have_coins_exactly"}},{"kind":"Field","name":{"kind":"Name","value":"have_coins_enough"}},{"kind":"Field","name":{"kind":"Name","value":"have_admin"}}]}}]}}]}}]} as unknown as DocumentNode; export const CreateWorkSpaceGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateWorkSpaceGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fgroup_name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fgroup_parent_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"group_create"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"fgroup_name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fgroup_name"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"fgroup_parent_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fgroup_parent_id"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fgroup_id"}},{"kind":"Field","name":{"kind":"Name","value":"fgroup_name"}},{"kind":"Field","name":{"kind":"Name","value":"ws_id"}},{"kind":"Field","name":{"kind":"Name","value":"fgroup_parent_id"}},{"kind":"Field","name":{"kind":"Name","value":"fgroup_created_ts"}}]}}]}}]} as unknown as DocumentNode; export const WorkspaceTreeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"WorkspaceTree"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ws_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tree_subscription"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ws_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ws_id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"treeupd_action"}},{"kind":"Field","name":{"kind":"Name","value":"treeupd_id"}},{"kind":"Field","name":{"kind":"Name","value":"treeupd_path"}},{"kind":"Field","name":{"kind":"Name","value":"treeupd_type"}},{"kind":"Field","name":{"kind":"Name","value":"treeupd_title"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/refact-agent/gui/generated/schema.graphql b/refact-agent/gui/generated/schema.graphql index 52adcc603..374bdc208 100644 --- a/refact-agent/gui/generated/schema.graphql +++ b/refact-agent/gui/generated/schema.graphql @@ -5,8 +5,10 @@ schema { } type BasicStuffResult { + fuser_avatar: String! fuser_id: String! fuser_psystem: JSON + fuser_questionnaire: JSON invitations: [FWorkspaceInvitationOutput!] is_oauth: Boolean! my_own_ws_id: String @@ -16,6 +18,7 @@ type BasicStuffResult { input CloudtoolResultInput { dollars: Float! = 0 fcall_id: String! + fcall_untrusted_key: String! ftm_content: String! ftm_provenance: String! } @@ -51,6 +54,13 @@ type FBotInstallOutput { marketable_version: String! } +type FBotVersionsSubs { + news_action: String! + news_payload_id: String! + news_payload_marketplace: FMarketplaceVersionInfo + news_pubsub: String! +} + type FCloudTool { ctool_confirmed_exists_ts: Float ctool_description: String! @@ -123,8 +133,13 @@ type FExpertSubs { news_pubsub: String! } +input FExternalAuthOAuthStartInput { + ws_id: String! +} + input FExternalDataSourceInput { eds_json: String! + eds_last_successful_scan_ts: Float! = 0 eds_name: String! eds_type: String! located_fgroup_id: String! @@ -156,6 +171,12 @@ type FExternalDataSourceSubs { news_payload_id: String! } +type FGitHubMintTokenOutput { + expires_at: String! + installation_id: String! + token: String! +} + input FKanbanTaskInput { details_json: String = null state: String! @@ -203,6 +224,22 @@ type FKnowledgeItemSubs { news_pubsub: String! } +type FMarketplaceBuildCheckResult { + can_build: Boolean! + error_message: String + github_app_install_url: String + is_private_repo: Boolean! + needs_credentials: Boolean! +} + +type FMarketplaceDetails { + dev_personas: [FPersonaOutput!]! + dev_version_details: FMarketplaceOutput + personas: [FPersonaOutput!]! + showcased_version_details: FMarketplaceOutput + versions: [FMarketplaceVersionInfo!]! +} + input FMarketplaceExpertInput { fexp_allow_tools: String! fexp_app_capture_tools: String! = "" @@ -212,24 +249,40 @@ input FMarketplaceExpertInput { fexp_system_prompt: String! } -type FMarketplaceInstallOutput { - persona_id: String! -} - type FMarketplaceOutput { available_ws_id: String + fuser_is_owner: Boolean + marketable_author: String! marketable_description: String! + marketable_docker_image_built_ts: Float! + marketable_github_repo: String! marketable_name: String! + marketable_occupation: String! marketable_picture_big: String marketable_picture_small: String marketable_popularity_counter: Int! marketable_price: Int! + marketable_stage: String! marketable_star_event: Int! marketable_star_sum: Int! + marketable_tags: [String!]! marketable_title1: String! marketable_title2: String! - marketable_version: String! + marketable_typical_group: String! + marketable_version: Int! + popularity_counter_all_versions: Int seller_fuser_id: String + stars_avg_all_versions: Float + stars_count_all_versions: Int + stars_event_all_versions: Int +} + +type FMarketplaceVersionInfo { + marketable_current_persona_count: Int! + marketable_docker_image_error_msg: String + marketable_docker_image_status: String + marketable_stage: String! + marketable_version: Int! } type FMassInvitationOutput { @@ -244,6 +297,8 @@ input FMcpServerInput { mcp_enabled: Boolean! = false mcp_env_vars: JSON = null mcp_name: String! + mcp_preinstall_script: String! = "" + owner_shared: Boolean! = true } type FMcpServerOutput { @@ -256,6 +311,7 @@ type FMcpServerOutput { mcp_id: String! mcp_modified_ts: Float! mcp_name: String! + mcp_preinstall_script: String! owner_fuser_id: String! owner_shared: Boolean! } @@ -267,6 +323,7 @@ input FMcpServerPatch { mcp_enabled: Boolean = null mcp_env_vars: JSON = null mcp_name: String = null + mcp_preinstall_script: String = null owner_shared: Boolean = null } @@ -277,6 +334,19 @@ type FMcpServerSubs { news_pubsub: String! } +type FMeteringOutput { + fgroup_id: String! + met_coins: Int! + met_details: JSON! + met_involved_ft_id: String! + met_involved_fuser_id: String! + met_involved_model: String! + met_serial: Int! + met_ts: Float! + met_type: String! + ws_id: String! +} + type FModelItem { provm_caps: JSON! provm_name: String! @@ -299,18 +369,12 @@ type FPermissionSubs { news_pubsub: String! } -type FPersonaHistoryItemOutput { - ft_id: String! - title: String! -} - -input FPersonaInput { - located_fgroup_id: String! - persona_discounts: String = null - persona_marketable_name: String! - persona_marketable_version: String! - persona_name: String! - persona_setup: String! +type FPersonaDocOutput { + ctime: Float! + mime_type: String! + mtime: Float! + path: String! + size_bytes: Int! } type FPersonaKanbanSubs { @@ -323,46 +387,72 @@ type FPersonaKanbanSubs { type FPersonaKanbanTaskOutput { ktask_blocks_ktask_id: String ktask_budget: Int! + ktask_coins: Int! + ktask_daily_timekey: String! ktask_details: JSON! ktask_done_ts: Float! - ktask_failed_ts: Float! ktask_id: String! ktask_inbox_provenance: JSON! ktask_inbox_ts: Float! - ktask_inprogress_ft_id: String! + ktask_inprogress_activity_ts: Float! + ktask_inprogress_ft_id: String ktask_inprogress_ts: Float! + ktask_resolution_code: String + ktask_resolution_summary: String ktask_title: String! ktask_todo_ts: Float! persona_id: String! } type FPersonaOutput { - history: [FPersonaHistoryItemOutput!] latest_ft_id: String located_fgroup_id: String! + marketable_author: String marketable_docker_image: String + marketable_occupation: String marketable_run_this: String marketable_setup_default: JSON + marketable_stage: String owner_fuser_id: String! - persona_archived_ts: Float! + persona_auto_upgrade: Boolean! persona_created_ts: Float! + persona_daily_budget: Int! + persona_daily_coins: Int! + persona_daily_timekey: String! persona_discounts: JSON persona_enabled: Boolean! persona_id: String! + persona_inbox_budget: Int! persona_marketable_name: String! - persona_marketable_version: String! + persona_marketable_version: Int! persona_name: String! persona_picture_big: String persona_picture_small: String + persona_preferred_model: String! + persona_prerelease: Boolean! persona_setup: JSON! + pstat_fail: Int! + pstat_humanhours: Float! + pstat_inbox: Int! + pstat_inconclusive: Int! + pstat_irrelevant: Int! + pstat_prioritize: Int! + pstat_reopened: Int! + pstat_success: Int! + pstat_week_base: JSON + ws_id: String + ws_timezone: String } input FPersonaPatch { located_fgroup_id: String = null - persona_archived_ts: Float = null + persona_auto_upgrade: Boolean = null + persona_daily_budget: Int = null persona_enabled: Boolean = null - persona_marketable_version: String = null + persona_inbox_budget: Int = null persona_name: String = null + persona_preferred_model: String = null + persona_prerelease: Boolean = null persona_setup: String = null } @@ -372,20 +462,25 @@ type FPersonaScheduleListOutput { } type FPersonaScheduleOutput { + sched_enable: Boolean! sched_first_question: String! sched_id: String! + sched_last_ft_id: String sched_last_run_ts: Float! + sched_marketplace: Boolean! sched_persona_id: String! - sched_rrule: String! - sched_start_ts: Float! + sched_type: String! + sched_when: String! } input FPersonaScheduleUpsertInput { + sched_enable: Boolean! sched_first_question: String! sched_id: String = null + sched_marketplace: Boolean! sched_persona_id: String! - sched_rrule: String! - sched_start_ts: Float! + sched_type: String! + sched_when: String! } type FPersonaSubs { @@ -397,9 +492,10 @@ type FPersonaSubs { input FStatsAddInput { fgroup_id: String! = "" + ft_id: String! = "" st_chart: Int! st_how_many: Union! - st_involved_fexp_id: String! = "" + st_involved_expert: String! = "" st_involved_fuser_id: String! = "" st_involved_model: String! = "" st_thing: String! @@ -409,13 +505,27 @@ input FStatsAddInput { type FStatsOutput { fgroup_id: String st_how_many: Union! - st_involved_fexp_id: String + st_involved_expert: String st_involved_fuser_id: String st_involved_model: String + st_thing: String st_timekey: String! ws_id: String } +type FSubchatProgress { + subchat_progress_completed: Int! + subchat_progress_total: Int! +} + +type FTamagotchiSubs { + news_action: String! + news_payload_id: String! + news_payload_persona: FPersonaOutput + news_payload_wishes: TamagotchiWishes + news_pubsub: String! +} + type FThreadDelta { ftm_content: JSON! ftm_role: String! @@ -425,10 +535,11 @@ input FThreadInput { ft_app_capture: String! = "" ft_app_searchable: String! = "" ft_app_specific: String! = "null" + ft_archived_ts: Float! = 0 + ft_budget: Int! = 500000 ft_error: String! = "null" ft_fexp_id: String! ft_persona_id: String = null - ft_subchat_dest_ft_id: String = null ft_title: String! ft_toolset: String! = "null" located_fgroup_id: String! @@ -437,17 +548,17 @@ input FThreadInput { input FThreadMessageInput { ftm_alt: Int! - ftm_app_specific: String = "null" + ftm_app_specific: String! = "null" ftm_belongs_to_ft_id: String! ftm_call_id: String! - ftm_content: String = "null" + ftm_content: String! = "null" ftm_num: Int! ftm_prev_alt: Int! ftm_provenance: String! ftm_role: String! - ftm_tool_calls: String = "null" - ftm_usage: String = "null" - ftm_user_preferences: String = "null" + ftm_tool_calls: String! = "null" + ftm_usage: String! = "null" + ftm_user_preferences: String! = "null" } type FThreadMessageOutput { @@ -475,6 +586,7 @@ type FThreadMessageSubs { news_payload_thread: FThreadOutput news_payload_thread_message: FThreadMessageOutput stream_delta: FThreadDelta + subchat_progress: FSubchatProgress } input FThreadMultipleMessagesInput { @@ -487,8 +599,9 @@ type FThreadOutput { ft_app_searchable: String! ft_app_specific: JSON ft_archived_ts: Float! + ft_budget: Int! + ft_coins: Int! ft_confirmation_request: JSON - ft_confirmation_response: JSON ft_created_ts: Float! ft_error: JSON ft_fexp_id: String! @@ -498,7 +611,6 @@ type FThreadOutput { ft_need_tool_calls: Int! ft_need_user: Int! ft_persona_id: String - ft_subchat_dest_ft_id: String ft_title: String! ft_toolset: JSON ft_updated_ts: Float! @@ -511,10 +623,8 @@ input FThreadPatch { ft_app_searchable: String = null ft_app_specific: String = null ft_archived_ts: Float = null - ft_confirmation_request: String = null - ft_confirmation_response: String = null + ft_budget: Int = null ft_error: String = null - ft_subchat_dest_ft_id: String = null ft_title: String = null ft_toolset: String = null located_fgroup_id: String = null @@ -529,14 +639,20 @@ type FThreadSubs { } type FUserProfileOutput { + fuser_avatar: String fuser_experimental: Boolean! fuser_fullname: String! fuser_id: String! + fuser_nickname: String! + fuser_questionnaire: JSON } input FUserProfilePatch { + fuser_avatar: String = null fuser_experimental: Boolean = null fuser_fullname: String = null + fuser_nickname: String = null + fuser_questionnaire: String = null } input FWorkspaceCreateInput { @@ -554,14 +670,68 @@ type FWorkspaceInvitationOutput { type FWorkspaceOutput { have_admin: Boolean! + have_billing: Boolean! have_coins_enough: Boolean! have_coins_exactly: Union! root_group_name: String! ws_archived_ts: Float! + ws_auto_recharge_amount: Int + ws_auto_recharge_enabled: Boolean + ws_auto_recharge_threshold: Int + ws_company_logo: String! ws_created_ts: Float! ws_id: String! + ws_monthly_spending_alert: Int + ws_monthly_spending_limit: Int ws_owner_fuser_id: String! + ws_payment_method: String ws_root_group_id: String! + ws_timezone: String! +} + +input FWorkspacePatch { + new_workspace_name: String = null + ws_auto_recharge_amount: Int = null + ws_auto_recharge_enabled: Boolean = null + ws_auto_recharge_threshold: Int = null + ws_monthly_spending_alert: Int = null + ws_monthly_spending_limit: Int = null + ws_payment_method: String = null + ws_timezone: String = null +} + +input FeedbackInput { + active_ws_id: String = null + feedback_ft_id: String = null + feedback_guest_email: String = null + feedback_guest_nickname: String = null + feedback_public: Boolean! + feedback_stars: Int = null + feedback_text: String! + feedback_type: String! + persona_marketable_name: String! + persona_marketable_version: Int! +} + +type FeedbackOutput { + author_nickname: String + feedback_created_ts: Float! + feedback_ft_id: String + feedback_fuser_id: String + feedback_guest_email: String + feedback_guest_nickname: String + feedback_id: String! + feedback_marketable_name: String! + feedback_marketable_version: Int! + feedback_stars: Int + feedback_text: String! + feedback_type: String! +} + +input FeedbackPatch { + feedback_public: Boolean = null + feedback_stars: Int = null + feedback_text: String = null } type FlexusGroup { @@ -583,24 +753,46 @@ input FlexusGroupPatch { fgroup_parent_id: String = null } +type InstallationResult { + fgroup_id: String! + persona_id: String! +} + """ The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf). """ scalar JSON +type MarketplaceFeedbackOutput { + feedbacks: [FeedbackOutput!]! + marketplace: FMarketplaceOutput! +} + +type McpRuntimeInfoDelta { + logs: [JSON!]! + mcp_id: String! + status: JSON! + usage: JSON! +} + type Mutation { api_key_delete(apikey_id: String!): Boolean! api_key_generate: FApiKeyOutput! - bot_activate(activation_type: String!, first_calls: String!, first_question: String!, localtools: String!, persona_id: String!, title: String!, who_is_asking: String!): FThreadOutput! + bot_activate(activation_type: String! = "", fexp_id: String! = "", first_calls: String!, first_question: String!, persona_id: String!, sched_id: String! = "", title: String!, who_is_asking: String!): FThreadOutput! bot_arrange_kanban_situation(persona_id: String!, tasks: [FKanbanTaskInput!]!, ws_id: String!): Boolean! - bot_install_from_marketplace(inside_fgroup_id: String!, new_setup: String!, persona_id: String!, persona_marketable_name: String!, persona_marketable_version: String!, persona_name: String!): Boolean! - bot_kanban_post_into_inbox(budget: Int!, details_json: String!, persona_id: String!, title: String!): Boolean! + bot_install_from_marketplace(inside_fgroup_id: String, install_dev_version: Boolean! = false, new_setup: String!, persona_id: String = null, persona_marketable_name: String!, persona_name: String!, specific_version: Int = null, ws_id: String!): InstallationResult! + bot_kanban_post_into_inbox(details_json: String!, persona_id: String!, title: String!): Boolean! + bot_subchat_create_multiple(fcall_id: String!, first_calls: [String!]!, first_question: [String!]!, persona_id: String!, title: [String!]!, who_is_asking: String!): Void + bot_upgrade(auto_upgrade: Boolean = null, marketable_name: String!, prerelease: Boolean = null, specific_version: Int = null, ws_id: String!): Int! + cloudtool_confirmation_request(confirm_command: String!, confirm_explanation: String!, confirm_setup_key: String!, fcall_id: String!): Boolean! cloudtool_post_result(input: CloudtoolResultInput!): Boolean! create_captured_thread(input: FThreadInput!, on_behalf_of_fuser_id: String = null): FThreadOutput! email_confirm(token: String!): EmailConfirmResult! expert_create(input: FExpertInput!): FExpertOutput! expert_delete(id: String!): Boolean! expert_patch(id: String!, patch: FExpertPatch!): FExpertOutput! + external_auth_mint_github_token(ws_id: String!): FGitHubMintTokenOutput! + external_auth_start_github_oauth(input: FExternalAuthOAuthStartInput!): String! external_data_source_create(input: FExternalDataSourceInput!): FExternalDataSourceOutput! external_data_source_delete(id: String!): Boolean! external_data_source_patch(id: String!, patch: FExternalDataSourcePatch!): FExternalDataSourceOutput! @@ -616,16 +808,19 @@ type Mutation { knowledge_item_mass_group_patch(dst_group_id: String!, src_group_id: String!): Int! knowledge_item_patch(id: String!, patch: FKnowledgeItemPatch!): FKnowledgeItemOutput! make_sure_have_expert(fexp_name: String!, fgroup_id: String, owner_fuser_id: String, python_kernel: String!, system_prompt: String!): String! - marketplace_install(fgroup_id: String!, marketable_name: String!): FMarketplaceInstallOutput! - marketplace_upgrade(fgroup_id: String!, marketable_name: String!, specific_version: String!): Boolean! - marketplace_upsert_dev_bot(marketable_description: String!, marketable_expert_default: FMarketplaceExpertInput!, marketable_expert_setup: FMarketplaceExpertInput, marketable_expert_subchat: FMarketplaceExpertInput, marketable_expert_todo: FMarketplaceExpertInput, marketable_github_repo: String!, marketable_name: String!, marketable_picture_big_b64: String = null, marketable_picture_small_b64: String = null, marketable_run_this: String!, marketable_setup_default: String!, marketable_title1: String!, marketable_title2: String!, marketable_version: String!, ws_id: String!): FBotInstallOutput! + marketplace_change_stage(marketable_name: String!, marketable_version: Int!, move_to_stage: String!, ws_id: String!): Boolean! + marketplace_check_build_requirements(marketable_name: String!, marketable_version: Int!, ws_id: String!): FMarketplaceBuildCheckResult! + marketplace_delete_version(marketable_name: String!, marketable_version: Int!, ws_id: String!): Boolean! + marketplace_feedback_delete(feedback_id: String!): Boolean! + marketplace_feedback_patch(feedback_id: String!, patch: FeedbackPatch!): FeedbackOutput! + marketplace_feedback_submit(input: FeedbackInput!): FeedbackOutput! + marketplace_upsert_dev_bot(marketable_author: String!, marketable_daily_budget_default: Int!, marketable_default_inbox_default: Int!, marketable_description: String!, marketable_expert_default: FMarketplaceExpertInput!, marketable_expert_setup: FMarketplaceExpertInput, marketable_expert_subchat: FMarketplaceExpertInput, marketable_expert_todo: FMarketplaceExpertInput, marketable_github_repo: String!, marketable_name: String!, marketable_occupation: String!, marketable_picture_big_b64: String!, marketable_picture_small_b64: String!, marketable_preferred_model_default: String!, marketable_run_this: String!, marketable_schedule: String!, marketable_setup_default: String!, marketable_stage: String! = "MARKETPLACE_DEV", marketable_tags: [String!]!, marketable_title1: String!, marketable_title2: String!, marketable_typical_group: String!, marketable_version: String!, ws_id: String!): FBotInstallOutput! mcp_server_create(input: FMcpServerInput!): FMcpServerOutput! mcp_server_delete(id: String!): Boolean! mcp_server_patch(id: String!, patch: FMcpServerPatch!): FMcpServerOutput! password_change(new_password: String!, old_password: String!): Boolean! permission_delete(fgroup_id: String!, fuser_id: String!): Boolean! permission_patch(fgroup_id: String!, fuser_id: String!, patch: FPermissionPatch!): FPermissionOutput! - persona_create(input: FPersonaInput!): FPersonaOutput! persona_delete(id: String!): Boolean! persona_patch(id: String!, patch: FPersonaPatch!): FPersonaOutput! persona_schedule_delete(sched_id: String!): FPersonaScheduleOutput! @@ -636,23 +831,25 @@ type Mutation { session_renew: String! stats_add(records: [FStatsAddInput!]!): Boolean! thread_app_capture_patch(ft_app_searchable: String = null, ft_app_specific: String = null, ft_id: String!): Boolean! - thread_clear_confirmation(ft_id: String!): Boolean! + thread_confirmation_resolve(fcall_id: String!, ft_id: String!, positive: Boolean!): Boolean! thread_create(input: FThreadInput!): FThreadOutput! thread_delete(id: String!): Boolean! thread_lock(ft_id: String!, worker_name: String!): Boolean! thread_mass_group_patch(dst_group_id: String!, src_group_id: String!): Int! - thread_messages_create_multiple(delete_negative: [Int!] = null, input: FThreadMultipleMessagesInput!, mission_accomplished_adv_worker: String = null): Int! + thread_messages_create_multiple(delete_negative: [Int!] = null, input: FThreadMultipleMessagesInput!, mission_accomplished_adv_worker: String = null, mission_accomplished_with_err: String = null): Int! thread_patch(id: String!, patch: FThreadPatch!): FThreadOutput! thread_reset_error(ft_error: String!, ft_id: String!): Boolean! thread_reset_title(ft_id: String!, ft_title: String!): Boolean! - thread_set_confirmation_request(confirmation_request: String!, ft_id: String!): Boolean! - thread_set_confirmation_response(confirmation_response: String!, ft_id: String!): Boolean! thread_unlock(ft_id: String!, worker_name: String!): Boolean! + user_avatar_upload(avatar_b64: String!): FUserProfileOutput! user_profile_patch(patch: FUserProfilePatch!): FUserProfileOutput! user_register(input: RegisterInput!): Boolean! workspace_create(input: FWorkspaceCreateInput!): String! - workspace_delete(dry_run: Boolean! = false, ws_id: String!): String! + workspace_delete(ws_id: String!): String! workspace_leave(ws_id: String!): String! + workspace_logo_upload(logo_b64: String!, ws_id: String!): Boolean! + workspace_patch(input: FWorkspacePatch!, ws_id: String!): Boolean! + workspace_undelete(ws_id: String!): String! } type PasswordResetTokenInfo { @@ -677,20 +874,23 @@ type Query { knowledge_item_get(id: String!): FKnowledgeItemOutput! knowledge_item_list(limit: Int!, located_fgroup_id: String!, skip: Int!, sort_by: String! = ""): [FKnowledgeItemOutput!]! knowledge_vecdb_search(fgroup_id: String!, q: String!, top_n: Int! = 5): [FKnowledgeItemOutput!]! - marketplace_details(fgroup_id: String!, marketable_name: String!): [FMarketplaceOutput!]! - marketplace_list(fgroup_id: String!, take: Int! = 20): [FMarketplaceOutput!]! - marketplace_search(fgroup_id: String!, query: String!, take: Int! = 20): [FMarketplaceOutput!]! + marketplace_details(marketable_name: String!, ws_id: String!): FMarketplaceDetails! + marketplace_feedback_list(active_ws_id: String!, feedback_type: String = null, limit_marketplaces: Int! = 10, limit_per_marketplace: Int! = 10, only_my_feedback: Boolean! = false, persona_marketable_name: String = null, persona_marketable_version: Int = null, skip_marketplaces: Int! = 0, skip_per_marketplace: Int! = 0): [MarketplaceFeedbackOutput!]! + marketplace_list(take: Int! = 20, ws_id: String!): [FMarketplaceOutput!]! + marketplace_search(query: String!, tags: [String!]! = ["Field(name=None,type=,default=,default_factory= at 0x7ff5fc4739c0>,init=True,repr=True,hash=None,compare=True,metadata=mappingproxy({}),kw_only=,_field_type=None)"], take: Int! = 20, ws_id: String!): [FMarketplaceOutput!]! mcp_server_get(id: String!): FMcpServerOutput! mcp_server_list(limit: Int!, located_fgroup_id: String!, skip: Int!, sort_by: String! = ""): [FMcpServerOutput!]! + metering_list(date_from: Int = null, date_to: Int = null, fgroup_id: String = null, limit: Int = null, met_type_exclude: [String!] = null, met_type_include: [String!] = null, offset: Int = 0, search: String = null, ws_id: String!): [FMeteringOutput!]! permission_list(fgroup_id: String!): [FPermissionOutput!]! persona_get(id: String!): FPersonaOutput! persona_list(limit: Int!, located_fgroup_id: String!, skip: Int!, sort_by: String! = ""): [FPersonaOutput!]! + persona_mongo_docs_list(path: String!, persona_id: String!): [FPersonaDocOutput!]! persona_opened_in_ui(persona_id: String!): FPersonaOutput! persona_schedule_list(persona_id: String!): FPersonaScheduleListOutput! query_basic_stuff(want_invitations: Boolean! = false): BasicStuffResult! reset_password_token_info(token: String!): PasswordResetTokenInfo! - stats_query(breakdown_fexp_name: [String!]!, breakdown_fuser_id: [String!]!, breakdown_model: [String!]!, fgroup_id: String! = "", filter_fexp_id: [String!]! = [], filter_fuser_id: [String!]! = [], filter_model: [String!]! = [], filter_thing: [String!]! = [], st_chart: Int!, st_span: String!, timekey_from: String!, timekey_to: String!, ws_id: String! = ""): [FStatsOutput!]! - stats_query_distinct(fgroup_id: String!, filter_fexp_id: [String!]!, filter_fuser_id: [String!]!, filter_model: [String!]!, st_chart: Int!, st_span: String!, timekey_from: String!, timekey_to: String!, ws_id: String!): StatsDistinctOutput! + stats_query(breakdown_expert: [String!]!, breakdown_fuser_id: [String!]!, breakdown_model: [String!]!, breakdown_thing: [String!]!, fgroup_id: String! = "", filter_expert: [String!]! = [], filter_fuser_id: [String!]! = [], filter_model: [String!]! = [], filter_thing: [String!]! = [], st_chart: Int!, st_span: String!, timekey_from: String!, timekey_to: String!, ws_id: String! = ""): [FStatsOutput!]! + stats_query_distinct(fgroup_id: String!, filter_expert: [String!]!, filter_fuser_id: [String!]!, filter_model: [String!]!, filter_thing: [String!]!, st_chart: Int!, st_span: String!, timekey_from: String!, timekey_to: String!, ws_id: String!): StatsDistinctOutput! thread_get(id: String!): FThreadOutput! thread_list(limit: Int!, located_fgroup_id: String!, skip: Int!, sort_by: String! = ""): [FThreadOutput!]! thread_messages_list(ft_id: String!, ftm_alt: Int = null): [FThreadMessageOutput!]! @@ -707,7 +907,7 @@ input RegisterInput { } type StatsDistinctOutput { - st_involved_fexp_id: JSON! + st_involved_expert: JSON! st_involved_fuser_id: JSON! st_involved_model: JSON! st_thing: [String!]! @@ -715,19 +915,32 @@ type StatsDistinctOutput { } type Subscription { + bot_versions_subs(marketable_name: String!, ws_id: String!): FBotVersionsSubs! comprehensive_thread_subs(ft_id: String!, want_deltas: Boolean!): FThreadMessageSubs! ephemeral_subs(eds_id: String!): FEphemeralSubs! - experts_in_group(filter: [String!]! = [], limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = []): FExpertSubs! - external_data_sources_in_group(filter: [String!]! = [], limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = []): FExternalDataSourceSubs! - knowledge_items_in_group(filter: [String!]! = [], limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = []): FKnowledgeItemSubs! - mcp_servers_in_group(filter: [String!]! = [], limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = []): FMcpServerSubs! + experts_in_group(limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = [], subs_filter: [String!]! = []): FExpertSubs! + external_data_sources_in_group(limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = [], subs_filter: [String!]! = []): FExternalDataSourceSubs! + knowledge_items_in_group(limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = [], subs_filter: [String!]! = []): FKnowledgeItemSubs! + mcp_runtime_info_subscription(fgroup_id: String!, mcp_id: String!): McpRuntimeInfoDelta! + mcp_servers_in_group(limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = [], subs_filter: [String!]! = []): FMcpServerSubs! permissions_in_group_subs(fgroup_id: String!, limit: Int!, quicksearch: String!): FPermissionSubs! - persona_kanban_subs(limit_done: Int! = 30, limit_garbage: Int! = 30, limit_inbox: Int! = 30, persona_id: String!): FPersonaKanbanSubs! - personas_in_group(filter: [String!]! = [], limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = []): FPersonaSubs! - threads_in_group(filter: [String!]! = [], limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = []): FThreadSubs! + persona_kanban_subs(limit_done: Int! = 30, limit_inbox: Int! = 30, persona_id: String!): FPersonaKanbanSubs! + personas_in_group(limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = [], subs_filter: [String!]! = []): FPersonaSubs! + tamagotchi_subs(fgroup_id: String!): FTamagotchiSubs! + threads_in_group(limit: Int! = 0, located_fgroup_id: String!, sort_by: [String!]! = [], subs_filter: [String!]! = []): FThreadSubs! tree_subscription(ws_id: String!): TreeUpdateSubs! } +type TamagotchiMissing { + group: String! + importance: Int! +} + +type TamagotchiWishes { + setup_quest_count: Int! + setup_quest_missing: [TamagotchiMissing!]! +} + type TreeUpdateSubs { treeupd_action: String! treeupd_id: String! @@ -739,4 +952,7 @@ type TreeUpdateSubs { } """BigInt field""" -scalar Union \ No newline at end of file +scalar Union + +"""Represents NULL values""" +scalar Void \ No newline at end of file diff --git a/refact-agent/gui/src/app/middleware.ts b/refact-agent/gui/src/app/middleware.ts index 328efb7df..238800e7f 100644 --- a/refact-agent/gui/src/app/middleware.ts +++ b/refact-agent/gui/src/app/middleware.ts @@ -31,15 +31,10 @@ import { isToolMessage, modelsApi, providersApi } from "../services/refact"; import { receiveThread, receiveThreadMessages, - selectLastMessageForAlt, - selectMessageByToolCallId, selectToolConfirmationRequests, threadMessagesSlice, } from "../features/ThreadMessages"; -import { - graphqlQueriesAndMutations, - rejectToolUsageAction, -} from "../services/graphql"; +import { graphqlQueriesAndMutations } from "../services/graphql"; import { push } from "../features/Pages/pagesSlice"; import { setExpert, setModel } from "../features/ExpertsAndModels/expertsSlice"; import { setBallanceInformation } from "../features/Errors/informationSlice"; @@ -368,7 +363,6 @@ startListening({ }); // TODO: this should let flexus know that the user accepted the tool -// Tool Call results from ide. startListening({ actionCreator: ideToolCallResponse, effect: (action, listenerApi) => { @@ -384,30 +378,14 @@ startListening({ ); if (!maybePendingToolCall) return; - if (action.payload.accepted) { - const thunk = - graphqlQueriesAndMutations.endpoints.toolConfirmation.initiate({ - ft_id: action.payload.chatId, - confirmation_response: JSON.stringify([action.payload.toolCallId]), - }); - void listenerApi.dispatch(thunk); - return; - } - - // rejection creates a new message at the end of the thread - // find the parent, then find the end point - const message = selectMessageByToolCallId(state, action.payload.toolCallId); - if (!message) return; - const lastMessage = selectLastMessageForAlt(state, message.ftm_alt); - if (!lastMessage) return; - const rejectAction = rejectToolUsageAction( - [action.payload.toolCallId], - action.payload.chatId, - lastMessage.ftm_num, - lastMessage.ftm_alt, - lastMessage.ftm_prev_alt, - ); - void listenerApi.dispatch(rejectAction); + const thunk = + graphqlQueriesAndMutations.endpoints.toolConfirmation.initiate({ + ft_id: action.payload.chatId, + fcall_id: action.payload.toolCallId, + positive: action.payload.accepted, + }); + void listenerApi.dispatch(thunk); + return; }, }); diff --git a/refact-agent/gui/src/components/ChatForm/ChatControls.tsx b/refact-agent/gui/src/components/ChatForm/ChatControls.tsx index eb134d0ee..1aa0d6e24 100644 --- a/refact-agent/gui/src/components/ChatForm/ChatControls.tsx +++ b/refact-agent/gui/src/components/ChatForm/ChatControls.tsx @@ -22,31 +22,31 @@ import { import { selectPatchIsAutomatic, - selectThreadId, - selectToolConfirmationResponses, + // selectThreadId, + // selectToolConfirmationResponses, } from "../../features/ThreadMessages"; import { useAppSelector } from "../../hooks"; import { useAttachedFiles } from "./useCheckBoxes"; -import { graphqlQueriesAndMutations } from "../../services/graphql"; +// import { graphqlQueriesAndMutations } from "../../services/graphql"; export const ApplyPatchSwitch: React.FC = () => { - const chatId = useAppSelector(selectThreadId); + // const chatId = useAppSelector(selectThreadId); const isPatchAutomatic = useAppSelector(selectPatchIsAutomatic); - const toolConfirmationResponses = useAppSelector( - selectToolConfirmationResponses, - ); - const [toolConfirmation, _toolConfirmationResult] = - graphqlQueriesAndMutations.useToolConfirmationMutation(); - - const handleAutomaticPatchChange = (checked: boolean) => { - const value = checked - ? toolConfirmationResponses.filter((res) => res !== "*") - : [...toolConfirmationResponses, "*"]; + // const toolConfirmationResponses = useAppSelector( + // selectToolConfirmationResponses, + // ); + // const [toolConfirmation, _toolConfirmationResult] = + // graphqlQueriesAndMutations.useToolConfirmationMutation(); - void toolConfirmation({ - ft_id: chatId, - confirmation_response: JSON.stringify(value), - }); + const handleAutomaticPatchChange = (_checked: boolean) => { + // TODO: enable tools + // const value = checked + // ? toolConfirmationResponses.filter((res) => res !== "*") + // : [...toolConfirmationResponses, "*"]; + // void toolConfirmation({ + // ft_id: chatId, + // confirmation_response: JSON.stringify(value), + // }); }; return ( diff --git a/refact-agent/gui/src/components/ChatForm/ToolConfirmation.tsx b/refact-agent/gui/src/components/ChatForm/ToolConfirmation.tsx index bc47c4140..f2aa0e532 100644 --- a/refact-agent/gui/src/components/ChatForm/ToolConfirmation.tsx +++ b/refact-agent/gui/src/components/ChatForm/ToolConfirmation.tsx @@ -1,10 +1,5 @@ import React, { useCallback, useMemo } from "react"; -import { - useAppDispatch, - useAppSelector, - // useSendChatRequest, - // useEventsBusForIDE -} from "../../hooks"; +import { useAppSelector } from "../../hooks"; import { Card, Button, Text, Flex } from "@radix-ui/themes"; import { Markdown } from "../Markdown"; import styles from "./ToolConfirmation.module.css"; @@ -22,29 +17,27 @@ const PATCH_LIKE_FUNCTIONS = [ import { selectThreadMessages, selectThreadMeta, - selectThreadEnd, ToolConfirmationRequest, } from "../../features/ThreadMessages"; -import { - graphqlQueriesAndMutations, - rejectToolUsageAction, -} from "../../services/graphql"; +import { graphqlQueriesAndMutations } from "../../services/graphql"; import { parseOrElse } from "../../utils/parseOrElse"; function useToolConfirmation() { - const dispatch = useAppDispatch(); const threadMeta = useAppSelector(selectThreadMeta); - const threadEnd = useAppSelector(selectThreadEnd); const [toolConfirmation, _toolConfirmationResult] = graphqlQueriesAndMutations.useToolConfirmationMutation(); const confirmToolUsage = useCallback( (ids: string[]) => { if (!threadMeta?.ft_id) return; - void toolConfirmation({ - ft_id: threadMeta.ft_id, - confirmation_response: JSON.stringify(ids), - }); + const requests = ids.map((id) => + toolConfirmation({ + ft_id: threadMeta.ft_id, + fcall_id: id, + positive: true, + }), + ); + void Promise.all(requests); }, [threadMeta?.ft_id, toolConfirmation], ); @@ -53,32 +46,22 @@ function useToolConfirmation() { (ids: string[]) => { // TODO: find the message with the tool call if (!threadMeta?.ft_id) return; - const action = rejectToolUsageAction( - ids, - threadMeta.ft_id, - threadEnd.endNumber, - threadEnd.endAlt, - threadEnd.endPrevAlt, + const requests = ids.map((id) => + toolConfirmation({ + ft_id: threadMeta.ft_id, + fcall_id: id, + positive: false, + }), ); - void dispatch(action); + void Promise.all(requests); }, - [ - dispatch, - threadEnd.endAlt, - threadEnd.endNumber, - threadEnd.endPrevAlt, - threadMeta?.ft_id, - ], + [threadMeta?.ft_id, toolConfirmation], ); + // TBD: how to allow all ? const allowAll = useCallback(() => { - if (!threadMeta?.ft_id) return; - - void toolConfirmation({ - ft_id: threadMeta.ft_id, - confirmation_response: JSON.stringify(["*"]), - }); - }, [threadMeta?.ft_id, toolConfirmation]); + confirmToolUsage(["*"]); + }, [confirmToolUsage]); return { confirmToolUsage, rejectToolUsage, allowAll }; } @@ -120,7 +103,6 @@ const getConfirmationMessage = ( } }; -// here export const ToolConfirmation: React.FC = ({ toolConfirmationRequests, }) => { diff --git a/refact-agent/gui/src/components/Toolbar/Dropdown.tsx b/refact-agent/gui/src/components/Toolbar/Dropdown.tsx index ae371e867..403b22d4a 100644 --- a/refact-agent/gui/src/components/Toolbar/Dropdown.tsx +++ b/refact-agent/gui/src/components/Toolbar/Dropdown.tsx @@ -191,7 +191,7 @@ export const Dropdown: React.FC = ({ {/**TODO: there could be multiple source for this */} - {coinBallance / 100000} + {coinBallance / 1000000} diff --git a/refact-agent/gui/src/features/ThreadMessages/threadMessagesSlice.ts b/refact-agent/gui/src/features/ThreadMessages/threadMessagesSlice.ts index df7896680..4ecf76098 100644 --- a/refact-agent/gui/src/features/ThreadMessages/threadMessagesSlice.ts +++ b/refact-agent/gui/src/features/ThreadMessages/threadMessagesSlice.ts @@ -424,30 +424,34 @@ export const threadMessagesSlice = createSlice({ }, ), + // TODO: fix this once the lsp is working again :/ selectToolConfirmationRequests: (state) => { if (!state.thread) return []; - if ( - Array.isArray(state.thread.ft_confirmation_response) && - state.thread.ft_confirmation_response.includes("*") - ) { - return []; - } + // if ( + // Array.isArray(state.thread.ft_confirmation_response) && + // state.thread.ft_confirmation_response.includes("*") + // ) { + // return []; + // } const messages = Object.values(state.messages); if (messages.length === 0) return []; if (!state.thread.ft_confirmation_request) return []; if (!Array.isArray(state.thread.ft_confirmation_request)) return []; - const responses = Array.isArray(state.thread.ft_confirmation_response) - ? state.thread.ft_confirmation_response - : []; + // const responses = Array.isArray(state.thread.ft_confirmation_response) + // ? state.thread.ft_confirmation_response + // : []; const toolRequests = state.thread.ft_confirmation_request.filter( isToolConfirmationRequest, ); const messageIds = messages.map((message) => message.ftm_call_id); + // const unresolved = toolRequests.filter( + // (req) => + // !responses.includes(req.tool_call_id) && + // !messageIds.includes(req.tool_call_id), + // ); const unresolved = toolRequests.filter( - (req) => - !responses.includes(req.tool_call_id) && - !messageIds.includes(req.tool_call_id), + (req) => !messageIds.includes(req.tool_call_id), ); return unresolved; @@ -455,20 +459,23 @@ export const threadMessagesSlice = createSlice({ selectToolConfirmationResponses: (state) => { if (!state.thread) return []; - if (!Array.isArray(state.thread.ft_confirmation_response)) { - return []; - } - - return state.thread.ft_confirmation_response.filter( - (s) => typeof s === "string", - ); + return []; + // if (!Array.isArray(state.thread.ft_confirmation_response)) { + // return []; + // } + + // return state.thread.ft_confirmation_response.filter( + // (s) => typeof s === "string", + // ); }, + // TODO: figure this out selectPatchIsAutomatic: (state) => { if (!state.thread) return false; - return ( - Array.isArray(state.thread.ft_confirmation_response) && - state.thread.ft_confirmation_response.includes("*") - ); + return false; + // return ( + // Array.isArray(state.thread.ft_confirmation_response) && + // state.thread.ft_confirmation_response.includes("*") + // ); }, selectMessageByToolCallId: createSelector( [selectMessagesValues, (_messages, id: string) => id], diff --git a/refact-agent/gui/src/hooks/useEventBusForIDE.ts b/refact-agent/gui/src/hooks/useEventBusForIDE.ts index 18925f642..ea6a29749 100644 --- a/refact-agent/gui/src/hooks/useEventBusForIDE.ts +++ b/refact-agent/gui/src/hooks/useEventBusForIDE.ts @@ -63,7 +63,7 @@ export const ideToolCall = createAction<{ export const ideToolCallResponse = createAction<{ toolCallId: string; chatId: string; - accepted: boolean | "indeterminate"; + accepted: boolean; }>("ide/toolEditResponse"); export const ideForceReloadProjectTreeFiles = createAction( diff --git a/refact-agent/gui/src/services/graphql/actions.ts b/refact-agent/gui/src/services/graphql/actions.ts deleted file mode 100644 index 91f650345..000000000 --- a/refact-agent/gui/src/services/graphql/actions.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { FThreadMessageInput } from "../../../generated/documents"; -import { graphqlQueriesAndMutations } from "./queriesAndMutationsApi"; - -export function rejectToolUsageAction( - ids: string[], - ft_id: string, - endNumber: number, - endAlt: number, - endPrevAlt: number, -) { - const messagesToSend: FThreadMessageInput[] = ids.map((id, index) => { - return { - ftm_role: "tool", - ftm_belongs_to_ft_id: ft_id, - ftm_content: JSON.stringify("The user rejected the changes."), - ftm_call_id: id, - ftm_num: endNumber + index + 1, - ftm_alt: endAlt, - ftm_prev_alt: endPrevAlt, - ftm_provenance: "null", - }; - }); - - const action = graphqlQueriesAndMutations.endpoints.sendMessages.initiate({ - input: { messages: messagesToSend, ftm_belongs_to_ft_id: ft_id }, - }); - - return action; -} diff --git a/refact-agent/gui/src/services/graphql/flexus.graphql b/refact-agent/gui/src/services/graphql/flexus.graphql index 06090933b..bf8b8f554 100644 --- a/refact-agent/gui/src/services/graphql/flexus.graphql +++ b/refact-agent/gui/src/services/graphql/flexus.graphql @@ -63,7 +63,7 @@ subscription MessagesSubscription($ft_id: String!, $want_deltas: Boolean!) { ft_need_assistant ft_fexp_id ## contain the expert id ft_confirmation_request - ft_confirmation_response + # ft_confirmation_response ft_title ft_toolset ## ft_need_tool_calls ## This might be useful for tool confirmation? @@ -115,13 +115,15 @@ query ToolsForGroup($located_fgroup_id: String!) { } } -mutation ThreadConfirmationResponse( - $confirmation_response: String = "" - $ft_id: String = "" +mutation ThreadConfirmationResolve( + $fcall_id: String! + $ft_id: String! + $positive: Boolean! ) { - thread_set_confirmation_response( + thread_confirmation_resolve( + fcall_id: $fcall_id ft_id: $ft_id - confirmation_response: $confirmation_response + positive: $positive ) } diff --git a/refact-agent/gui/src/services/graphql/index.ts b/refact-agent/gui/src/services/graphql/index.ts index f7ea1fcf1..601658226 100644 --- a/refact-agent/gui/src/services/graphql/index.ts +++ b/refact-agent/gui/src/services/graphql/index.ts @@ -1,3 +1,2 @@ export * from "./queriesAndMutationsApi"; export * from "./subscriptions"; -export * from "./actions"; diff --git a/refact-agent/gui/src/services/graphql/queriesAndMutationsApi.ts b/refact-agent/gui/src/services/graphql/queriesAndMutationsApi.ts index bad437512..811d74e2f 100644 --- a/refact-agent/gui/src/services/graphql/queriesAndMutationsApi.ts +++ b/refact-agent/gui/src/services/graphql/queriesAndMutationsApi.ts @@ -26,15 +26,15 @@ import { ToolsForGroupQueryVariables, ToolsForGroupDocument, FCloudTool, - ThreadConfirmationResponseMutation, - ThreadConfirmationResponseMutationVariables, - ThreadConfirmationResponseDocument, BasicStuffQuery, BasicStuffQueryVariables, BasicStuffDocument, CreateWorkSpaceGroupMutation, CreateWorkSpaceGroupMutationVariables, CreateWorkSpaceGroupDocument, + ThreadConfirmationResolveDocument, + ThreadConfirmationResolveMutation, + ThreadConfirmationResolveMutationVariables, } from "../../../generated/documents"; import { type RootState } from "../../app/store"; @@ -566,9 +566,10 @@ export const graphqlQueriesAndMutations = createApi({ return { data: result.data }; }, }), + toolConfirmation: builder.mutation< - ThreadConfirmationResponseMutation, - ThreadConfirmationResponseMutationVariables + ThreadConfirmationResolveMutation, + ThreadConfirmationResolveMutationVariables >({ async queryFn(args, api, _extraOptions, _baseQuery) { const state = api.getState() as RootState; @@ -578,9 +579,9 @@ export const graphqlQueriesAndMutations = createApi({ const client = createGraphqlClient(addressUrl, apiKey, api.signal); const result = await client.mutation< - ThreadConfirmationResponseMutation, - ThreadConfirmationResponseMutationVariables - >(ThreadConfirmationResponseDocument, args); + ThreadConfirmationResolveMutation, + ThreadConfirmationResolveMutationVariables + >(ThreadConfirmationResolveDocument, args); if (result.error) { return {