From e9fde4a229c7f57c82d622c216cfd01ce44ce193 Mon Sep 17 00:00:00 2001 From: tomer gillmore Date: Thu, 4 Sep 2025 17:49:30 +0300 Subject: [PATCH 1/3] create workspace tool --- .../create-workspace-tool.ts | 48 +++++++++++++++++++ .../core/tools/platform-api-tools/index.ts | 3 ++ .../src/monday-graphql/queries.graphql.ts | 18 +++++++ 3 files changed, 69 insertions(+) create mode 100644 packages/agent-toolkit/src/core/tools/platform-api-tools/create-workspace-tool.ts diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/create-workspace-tool.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/create-workspace-tool.ts new file mode 100644 index 00000000..96d77870 --- /dev/null +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/create-workspace-tool.ts @@ -0,0 +1,48 @@ +import { z } from 'zod'; +import { CreateWorkspaceMutation, CreateWorkspaceMutationVariables } from '../../../monday-graphql/generated/graphql'; +import { createWorkspace } from '../../../monday-graphql/queries.graphql'; +import { ToolInputType, ToolOutputType, ToolType } from '../../tool'; +import { BaseMondayApiTool, createMondayApiAnnotations } from './base-monday-api-tool'; + +export const createWorkspaceToolSchema = { + accountProductId: z.string().optional().describe('The account product ID associated with the workspace'), + description: z.string().optional().describe('The description of the new workspace'), + workspaceKind: z.string().describe('The kind of workspace to create'), + name: z.string().describe('The name of the new workspace to be created'), +}; + +export type CreateWorkspaceToolInput = typeof createWorkspaceToolSchema; + +export class CreateWorkspaceTool extends BaseMondayApiTool { + name = 'create_workspace'; + type = ToolType.WRITE; + annotations = createMondayApiAnnotations({ + title: 'Create Workspace', + readOnlyHint: false, + destructiveHint: false, + idempotentHint: false, + }); + + getDescription(): string { + return 'Create a new workspace in monday.com'; + } + + getInputSchema(): CreateWorkspaceToolInput { + return createWorkspaceToolSchema; + } + + protected async executeInternal(input: ToolInputType): Promise> { + const variables: CreateWorkspaceMutationVariables = { + accountProductId: input.accountProductId, + description: input.description, + workspaceKind: input.workspaceKind, + name: input.name, + }; + + const res = await this.mondayApi.request(createWorkspace, variables); + + return { + content: `Workspace ${res.create_workspace?.id} successfully created`, + }; + } +} diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/index.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/index.ts index d05b0875..20f20420 100644 --- a/packages/agent-toolkit/src/core/tools/platform-api-tools/index.ts +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/index.ts @@ -31,6 +31,7 @@ import { CreateDocTool } from './create-doc-tool'; import { CreateDashboardTool } from './dashboard-tools/create-dashboard-tool'; import { AllWidgetsSchemaTool } from './dashboard-tools/all-widgets-schema-tool'; import { CreateWidgetTool } from './dashboard-tools/create-widget-tool'; +import { CreateWorkspaceTool } from './create-workspace-tool'; export const allGraphqlApiTools: BaseMondayApiToolConstructor[] = [ DeleteItemTool, @@ -66,6 +67,7 @@ export const allGraphqlApiTools: BaseMondayApiToolConstructor[] = [ CreateDashboardTool, AllWidgetsSchemaTool, CreateWidgetTool, + CreateWorkspaceTool, ]; export * from './all-monday-api-tool'; @@ -98,5 +100,6 @@ export * from './list-workspace-tool/list-workspace-tool'; export * from './create-doc-tool'; export * from './get-board-activity/get-board-activity-tool'; export * from './get-board-info/get-board-info-tool'; +export * from './create-workspace-tool'; // Dashboard Tools export * from './dashboard-tools'; diff --git a/packages/agent-toolkit/src/monday-graphql/queries.graphql.ts b/packages/agent-toolkit/src/monday-graphql/queries.graphql.ts index e4f5ce24..73b5bd84 100644 --- a/packages/agent-toolkit/src/monday-graphql/queries.graphql.ts +++ b/packages/agent-toolkit/src/monday-graphql/queries.graphql.ts @@ -559,3 +559,21 @@ export const getWorkspaceInfo = gql` } } `; + +export const createWorkspace = gql` + mutation createWorkspace( + $accountProductId: ID + $description: String + $workspaceKind: WorkspaceKind! + $name: String! + ) { + create_workspace( + account_product_id: $accountProductId + description: $description + kind: $workspaceKind + name: $name + ) { + id + } + } +`; From ff0c96c858c4557553283b62763afe2e02d7c42b Mon Sep 17 00:00:00 2001 From: tomer gillmore Date: Thu, 4 Sep 2025 18:08:09 +0300 Subject: [PATCH 2/3] update generated --- .../src/monday-graphql/generated/graphql.ts | 498 ++++++++++--- .../src/monday-graphql/schema.graphql | 698 +++++++++++++++--- 2 files changed, 978 insertions(+), 218 deletions(-) diff --git a/packages/agent-toolkit/src/monday-graphql/generated/graphql.ts b/packages/agent-toolkit/src/monday-graphql/generated/graphql.ts index e35f6bcd..4eb5528b 100644 --- a/packages/agent-toolkit/src/monday-graphql/generated/graphql.ts +++ b/packages/agent-toolkit/src/monday-graphql/generated/graphql.ts @@ -1,5 +1,3 @@ -import { Form } from "src/core/tools/platform-api-tools/workforms-tools/workforms.types" - export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; @@ -152,12 +150,15 @@ export type AggregateGroupByResult = { }; export type AggregateQueryInput = { + /** Table to select from */ from: AggregateFromTableInput; + /** Group by elements */ group_by?: InputMaybe>; /** Max number of results to return */ limit?: InputMaybe; /** ItemsQuery filter and sort. If not provided, all items will be returned. */ query?: InputMaybe; + /** Select elements to return. Each element must have either a function or column property. If selecting a column or transformative function, the element must appear in group by. */ select: Array; }; @@ -332,6 +333,112 @@ export type AppFeatureType = { updated_at?: Maybe; }; +/** The type of the app feature. */ +export enum AppFeatureTypeE { + /** ACCOUNT_SETTINGS_VIEW */ + AccountSettingsView = 'ACCOUNT_SETTINGS_VIEW', + /** ADMIN_VIEW */ + AdminView = 'ADMIN_VIEW', + /** AI */ + Ai = 'AI', + /** AI_AGENT */ + AiAgent = 'AI_AGENT', + /** AI_AGENT_SKILL */ + AiAgentSkill = 'AI_AGENT_SKILL', + /** AI_BOARD_MAIN_MENU_HEADER */ + AiBoardMainMenuHeader = 'AI_BOARD_MAIN_MENU_HEADER', + /** AI_DOC_CONTEXTUAL_MENU */ + AiDocContextualMenu = 'AI_DOC_CONTEXTUAL_MENU', + /** AI_DOC_QUICK_START */ + AiDocQuickStart = 'AI_DOC_QUICK_START', + /** AI_DOC_SLASH_COMMAND */ + AiDocSlashCommand = 'AI_DOC_SLASH_COMMAND', + /** AI_DOC_TOP_BAR */ + AiDocTopBar = 'AI_DOC_TOP_BAR', + /** AI_EMAILS_AND_ACTIVITIES_HEADER_ACTIONS */ + AiEmailsAndActivitiesHeaderActions = 'AI_EMAILS_AND_ACTIVITIES_HEADER_ACTIONS', + /** AI_FORMULA */ + AiFormula = 'AI_FORMULA', + /** AI_IC_ASSISTANT_HELP_CENTER */ + AiIcAssistantHelpCenter = 'AI_IC_ASSISTANT_HELP_CENTER', + /** AI_ITEM_EMAILS_AND_ACTIVITIES_ACTIONS */ + AiItemEmailsAndActivitiesActions = 'AI_ITEM_EMAILS_AND_ACTIVITIES_ACTIONS', + /** AI_ITEM_UPDATE_ACTIONS */ + AiItemUpdateActions = 'AI_ITEM_UPDATE_ACTIONS', + /** APP_WIZARD */ + AppWizard = 'APP_WIZARD', + /** BLOCK */ + Block = 'BLOCK', + /** BOARD_COLUMN_ACTION */ + BoardColumnAction = 'BOARD_COLUMN_ACTION', + /** BOARD_COLUMN_EXTENSION */ + BoardColumnExtension = 'BOARD_COLUMN_EXTENSION', + /** BOARD_HEADER_ACTION */ + BoardHeaderAction = 'BOARD_HEADER_ACTION', + /** BOARD_VIEW */ + BoardView = 'BOARD_VIEW', + /** COLUMN */ + Column = 'COLUMN', + /** COLUMN_TEMPLATE */ + ColumnTemplate = 'COLUMN_TEMPLATE', + /** CREDENTIALS */ + Credentials = 'CREDENTIALS', + /** DASHBOARD_WIDGET */ + DashboardWidget = 'DASHBOARD_WIDGET', + /** DATA_ENTITY */ + DataEntity = 'DATA_ENTITY', + /** DIALOG */ + Dialog = 'DIALOG', + /** DIGITAL_WORKER */ + DigitalWorker = 'DIGITAL_WORKER', + /** DOC_ACTIONS */ + DocActions = 'DOC_ACTIONS', + /** FIELD_TYPE */ + FieldType = 'FIELD_TYPE', + /** GROUP_MENU_ACTION */ + GroupMenuAction = 'GROUP_MENU_ACTION', + /** GROWTH_CONFIG */ + GrowthConfig = 'GROWTH_CONFIG', + /** INTEGRATION */ + Integration = 'INTEGRATION', + /** ITEM_BATCH_ACTION */ + ItemBatchAction = 'ITEM_BATCH_ACTION', + /** ITEM_MENU_ACTION */ + ItemMenuAction = 'ITEM_MENU_ACTION', + /** ITEM_VIEW */ + ItemView = 'ITEM_VIEW', + /** MODAL */ + Modal = 'MODAL', + /** NOTIFICATION_KIND */ + NotificationKind = 'NOTIFICATION_KIND', + /** NOTIFICATION_SETTING_KIND */ + NotificationSettingKind = 'NOTIFICATION_SETTING_KIND', + /** OAUTH */ + Oauth = 'OAUTH', + /** OBJECT */ + Object = 'OBJECT', + /** PACKAGED_BLOCK */ + PackagedBlock = 'PACKAGED_BLOCK', + /** PRODUCT */ + Product = 'PRODUCT', + /** PRODUCT_VIEW */ + ProductView = 'PRODUCT_VIEW', + /** SOLUTION */ + Solution = 'SOLUTION', + /** SUB_WORKFLOW */ + SubWorkflow = 'SUB_WORKFLOW', + /** SURFACE_VIEW */ + SurfaceView = 'SURFACE_VIEW', + /** SYNCABLE_RESOURCE */ + SyncableResource = 'SYNCABLE_RESOURCE', + /** TOPBAR */ + Topbar = 'TOPBAR', + /** WORKFLOW_TEMPLATE */ + WorkflowTemplate = 'WORKFLOW_TEMPLATE', + /** WORKSPACE_VIEW */ + WorkspaceView = 'WORKSPACE_VIEW' +} + /** An app install details. */ export type AppInstall = { __typename?: 'AppInstall'; @@ -863,6 +970,7 @@ export type BoardActivity_LogsArgs = { /** A monday.com board. */ export type BoardColumnsArgs = { + capabilities?: InputMaybe>; ids?: InputMaybe>>; types?: InputMaybe>; }; @@ -877,6 +985,7 @@ export type BoardGroupsArgs = { /** A monday.com board. */ export type BoardItems_PageArgs = { cursor?: InputMaybe; + hierarchy_scope_config?: InputMaybe; limit?: Scalars['Int']['input']; query_params?: InputMaybe; }; @@ -1146,9 +1255,31 @@ export type CalculatedCapability = { /** Type of the calculated value */ calculated_type?: Maybe; /** Function to calculate the parent values */ - function: Scalars['String']['output']; + function: CalculatedFunction; }; +/** Input for configuring calculated capability settings on a column */ +export type CalculatedCapabilityInput = { + /** Function to calculate the values. If not provided, will use the default function for the column type. */ + function: CalculatedFunction; +}; + +/** Available functions for calculating values in column capabilities */ +export enum CalculatedFunction { + /** Count the number of labels */ + CountKeys = 'COUNT_KEYS', + /** Calculate the maximum value */ + Max = 'MAX', + /** Calculate the minimum value */ + Min = 'MIN', + /** Calculate both minimum and maximum values for time ranges */ + MinMax = 'MIN_MAX', + /** No calculation */ + None = 'NONE', + /** Calculate the sum of all values */ + Sum = 'SUM' +} + /** A cell containing a reference to a block */ export type Cell = { __typename?: 'Cell'; @@ -1246,6 +1377,18 @@ export type ColumnCapabilities = { calculated?: Maybe; }; +/** Input for configuring column capabilities during creation */ +export type ColumnCapabilitiesInput = { + /** Calculated capability settings. If provided, enables calculated functionality for the column. */ + calculated?: InputMaybe; +}; + +/** Capabilities supported by the API */ +export enum ColumnCapability { + /** Capability to show column's calculated value */ + Calculated = 'CALCULATED' +} + /** An object defining a mapping of column between source board and destination board */ export type ColumnMappingInput = { /** The source column's unique identifier. */ @@ -1397,6 +1540,12 @@ export type ColumnsConfigInput = { subitems_column_properties?: InputMaybe>; }; +export type ColumnsMappingInput = { + project_owner: Scalars['ID']['input']; + project_status: Scalars['ID']['input']; + project_timeline: Scalars['ID']['input']; +}; + /** Complexity data. */ export type Complexity = { __typename?: 'Complexity'; @@ -1416,8 +1565,6 @@ export type ConnectProjectResult = { message?: Maybe; /** The ID of the created portfolio item, if successful. */ portfolio_item_id?: Maybe; - /** The unique identifier of the operation. */ - request_id?: Maybe; /** Indicates if the operation was successful. */ success?: Maybe; }; @@ -1447,6 +1594,20 @@ export type Connection = { userId?: Maybe; }; +export type ConvertBoardToProjectInput = { + board_id: Scalars['ID']['input']; + callback_url?: InputMaybe; + column_mappings: ColumnsMappingInput; +}; + +export type ConvertBoardToProjectResult = { + __typename?: 'ConvertBoardToProjectResult'; + message?: Maybe; + process_id?: Maybe; + projectId?: Maybe; + success?: Maybe; +}; + export type Country = { __typename?: 'Country'; /** The country's two-letter code. */ @@ -1546,11 +1707,13 @@ export type CreateFavoriteInput = { object: HierarchyObjectIdInputType; }; -/** Result type for adding an object to a personal list */ +/** Represents the response when adding an object to a list */ export type CreateFavoriteResultType = { __typename?: 'CreateFavoriteResultType'; - /** The added object hierarchy item */ - favorites?: Maybe; + /** The favorite item that was created */ + favorite?: Maybe; + /** If the object that was created is a folder, this is extra data about the folder */ + folder?: Maybe; }; export type CreateFormTagInput = { @@ -3133,6 +3296,52 @@ export type GrantMarketplaceAppDiscountResult = { granted_discount: GrantMarketplaceAppDiscount; }; +/** Represents a folder in the hierarchy */ +export type GraphqlFolder = { + __typename?: 'GraphqlFolder'; + /** The account identifier this folder belongs to */ + accountId?: Maybe; + /** The timestamp when this folder was created */ + createdAt?: Maybe; + /** The user who created this folder */ + createdBy?: Maybe; + /** The unique identifier of the folder */ + id?: Maybe; + /** The name of the folder */ + name?: Maybe; + /** The timestamp when this folder was last updated */ + updatedAt?: Maybe; +}; + +/** Represents an item in favorites */ +export type GraphqlHierarchyObjectItem = { + __typename?: 'GraphqlHierarchyObjectItem'; + /** The account identifier this item belongs to */ + accountId?: Maybe; + /** The timestamp when this item was created */ + createdAt?: Maybe; + /** The folder identifier if the item is contained within a folder */ + folderId?: Maybe; + /** The unique identifier of the hierarchy item */ + id?: Maybe; + /** The object identifier and type */ + object?: Maybe; + /** The position of the item within its list or folder */ + position?: Maybe; + /** The timestamp when this item was last updated */ + updatedAt?: Maybe; +}; + +/** Represents a monday object. */ +export enum GraphqlMondayObject { + /** A monday.com board */ + Board = 'Board', + /** Aggregates data from one or more boards. */ + Dashboard = 'Dashboard', + /** A monday.com folder */ + Folder = 'Folder' +} + /** A group of items in a board. */ export type Group = { __typename?: 'Group'; @@ -3156,6 +3365,7 @@ export type Group = { /** A group of items in a board. */ export type GroupItems_PageArgs = { cursor?: InputMaybe; + hierarchy_scope_config?: InputMaybe; limit?: Scalars['Int']['input']; query_params?: InputMaybe; }; @@ -3228,7 +3438,7 @@ export type HierarchyObjectId = { /** The unique identifier of the object */ id?: Maybe; /** The type of the object */ - type?: Maybe; + type?: Maybe; }; /** Input type for identifying a favorites object by its ID and type */ @@ -3236,28 +3446,7 @@ export type HierarchyObjectIdInputType = { /** The ID of the object */ id: Scalars['ID']['input']; /** The type of the object */ - type: ObjectType; -}; - -/** Represents an item in the object hierarchy */ -export type HierarchyObjectItem = { - __typename?: 'HierarchyObjectItem'; - /** The account identifier this item belongs to */ - accountId?: Maybe; - /** The timestamp when this item was created */ - createdAt?: Maybe; - /** The folder identifier if the item is contained within a folder */ - folderId?: Maybe; - /** The list identifier and type */ - hierarchyListData?: Maybe; - /** The unique identifier of the hierarchy item */ - id?: Maybe; - /** The object identifier and type */ - object?: Maybe; - /** The position of the item within its list or folder */ - position?: Maybe; - /** The timestamp when this item was last updated */ - updatedAt?: Maybe; + type: GraphqlMondayObject; }; export enum HostType { @@ -3430,6 +3619,7 @@ export type ItemAssetsArgs = { /** An item (table row). */ export type ItemColumn_ValuesArgs = { + capabilities?: InputMaybe>; ids?: InputMaybe>; types?: InputMaybe>; }; @@ -3480,7 +3670,7 @@ export type ItemIdValue = ColumnValue & { value?: Maybe; }; -/** The direction to order the items by */ +/** Sort direction */ export enum ItemsOrderByDirection { /** Ascending order */ Asc = 'asc', @@ -3498,9 +3688,9 @@ export type ItemsPageByColumnValuesQuery = { export type ItemsQuery = { /** A list of rule groups */ groups?: InputMaybe>; - /** A list of item IDs to fetch. Use this to fetch a specific set of items by their IDs. Max: 100 IDs */ + /** A list of item IDs to fetch. Use this to fetch a specific set of items by their IDs. Limited to 100 IDs in ItemsQuery */ ids?: InputMaybe>; - /** The operator to use for the query rules or rule groups */ + /** The operator to use for the query rules or rule groups. Default: AND */ operator?: InputMaybe; /** Sort the results by specified columns */ order_by?: InputMaybe>; @@ -3512,13 +3702,13 @@ export type ItemsQuery = { export type ItemsQueryGroup = { /** A list of rule groups */ groups?: InputMaybe>; - /** The operator to use for the query rules or rule groups */ + /** The operator to use for the query rules or rule groups. Default: AND */ operator?: InputMaybe; /** A list of rules */ rules?: InputMaybe>; }; -/** The condition between the query rules */ +/** Logical operator */ export enum ItemsQueryOperator { /** Logical AND */ And = 'and', @@ -3541,7 +3731,7 @@ export type ItemsQueryRule = { operator?: InputMaybe; }; -/** The operator to use for the value comparison */ +/** Rule operator */ export enum ItemsQueryRuleOperator { /** Any of the values */ AnyOf = 'any_of', @@ -3573,7 +3763,7 @@ export enum ItemsQueryRuleOperator { StartsWith = 'starts_with', /** Within the last */ WithinTheLast = 'within_the_last', - /** Within the next */ + /** Within the next */ WithinTheNext = 'within_the_next' } @@ -3725,25 +3915,6 @@ export type ListBlockInput = { parent_block_id?: InputMaybe; }; -/** Represents a list identifier with its type in the hierarchy */ -export type ListId = { - __typename?: 'ListID'; - /** The unique identifier of the list */ - id?: Maybe; - /** The type of the list */ - type?: Maybe; -}; - -/** Types of lists in hierarchyMS */ -export enum ListType { - /** A customized list with specific settings */ - CustomizedList = 'CustomizedList', - /** A personal list owned by a user */ - PersonalList = 'PersonalList', - /** A workspace-level list */ - Workspace = 'Workspace' -} - export type LocationValue = ColumnValue & { __typename?: 'LocationValue'; /** Address */ @@ -4043,6 +4214,10 @@ export type Mutation = { complexity?: Maybe; /** Connect project to portfolio */ connect_project_to_portfolio?: Maybe; + /** Convert an existing monday.com board into a project with enhanced project management capabilities. This mutation transforms a regular board by applying project-specific features and configurations through column mappings that define how existing board columns should be interpreted in the project context. The conversion process is asynchronous and returns a process_id for tracking completion. Optionally accepts a callback URL for notification when the conversion completes. Use this when you have an existing board with data that needs to be upgraded to a full project with advanced project management features like Resource Planner integration. */ + convert_board_to_project?: Maybe; + /** Create a new app feature. */ + create_app_feature?: Maybe; /** Create a new board. */ create_board?: Maybe; /** Generic mutation for creating any column type with validation. Supports creating column with properties like title, description, and type-specific defaults/settings. The mutation validates input against the column type's schema before applying changes. Use get_column_type_schema query to understand available properties for each column type. */ @@ -4113,6 +4288,8 @@ export type Mutation = { /** Delete a column. */ delete_column?: Maybe; delete_custom_activity?: Maybe; + /** Delete an existing dashboard and return true if successful. */ + delete_dashboard?: Maybe; /** Permanently deletes a document and all its content from the system. This action cannot be undone. The document will be removed from all user views and workspaces. Use with caution - ensure the document is no longer needed before deletion. Returns success status and the deleted document ID. */ delete_doc?: Maybe; /** Delete a document block */ @@ -4203,6 +4380,8 @@ export type Mutation = { update_board_hierarchy?: Maybe; /** Generic mutation for updating any column type with validation. Supports updating column properties like title, description, and type-specific defaults/settings. The mutation validates input against the column type's schema before applying changes. Use get_column_type_schema query to understand available properties for each column type. */ update_column?: Maybe; + /** Update an existing dashboard and return the updated Dashboard object. */ + update_dashboard?: Maybe; /** Update the dependency column for a specific pulse */ update_dependency_column: Scalars['JSON']['output']; /** Update a document block */ @@ -4235,6 +4414,8 @@ export type Mutation = { update_mute_board_settings?: Maybe>; /** Updates a notification setting's enabled status. */ update_notification_setting?: Maybe>; + /** Update the position of a dashboard. */ + update_overview_hierarchy?: Maybe; /** Updates a status column's properties including title, description, and status label settings. Status columns allow users to track item progress through customizable labels (e.g., "Working on it", "Done", "Stuck"). This mutation is specifically for status/color columns and provides type-safe updates. */ update_status_column?: Maybe; /** Update managed column of type status mutation. */ @@ -4452,6 +4633,24 @@ export type MutationConnect_Project_To_PortfolioArgs = { }; +/** Root mutation type for the Dependencies service */ +export type MutationConvert_Board_To_ProjectArgs = { + input: ConvertBoardToProjectInput; +}; + + +/** Root mutation type for the Dependencies service */ +export type MutationCreate_App_FeatureArgs = { + app_id: Scalars['ID']['input']; + app_version_id?: InputMaybe; + data?: InputMaybe; + deployment?: InputMaybe; + name?: InputMaybe; + slug: Scalars['String']['input']; + type: AppFeatureTypeE; +}; + + /** Root mutation type for the Dependencies service */ export type MutationCreate_BoardArgs = { board_kind: BoardKind; @@ -4472,6 +4671,7 @@ export type MutationCreate_BoardArgs = { export type MutationCreate_ColumnArgs = { after_column_id?: InputMaybe; board_id: Scalars['ID']['input']; + capabilities?: InputMaybe; column_type: ColumnType; defaults?: InputMaybe; description?: InputMaybe; @@ -4568,9 +4768,7 @@ export type MutationCreate_FormArgs = { destination_folder_id?: InputMaybe; destination_folder_name?: InputMaybe; destination_name?: InputMaybe; - destination_workspace_id?: InputMaybe; - entity_names_mapping?: InputMaybe; - skip_target_folder_creation?: InputMaybe; + destination_workspace_id: Scalars['Float']['input']; }; @@ -4639,6 +4837,7 @@ export type MutationCreate_PortfolioArgs = { export type MutationCreate_Status_ColumnArgs = { after_column_id?: InputMaybe; board_id: Scalars['ID']['input']; + capabilities?: InputMaybe; defaults?: InputMaybe; description?: InputMaybe; id?: InputMaybe; @@ -4700,9 +4899,9 @@ export type MutationCreate_UpdateArgs = { /** Root mutation type for the Dependencies service */ export type MutationCreate_ViewArgs = { board_id: Scalars['ID']['input']; - filter_team_id?: InputMaybe; - filter_user_id?: InputMaybe; - filters?: InputMaybe; + filter?: InputMaybe; + filter_team_id?: InputMaybe; + filter_user_id?: InputMaybe; name?: InputMaybe; settings?: InputMaybe; sort?: InputMaybe>; @@ -4714,9 +4913,9 @@ export type MutationCreate_ViewArgs = { /** Root mutation type for the Dependencies service */ export type MutationCreate_View_TableArgs = { board_id: Scalars['ID']['input']; - filter_team_id?: InputMaybe; - filter_user_id?: InputMaybe; - filters?: InputMaybe; + filter?: InputMaybe; + filter_team_id?: InputMaybe; + filter_user_id?: InputMaybe; name?: InputMaybe; settings?: InputMaybe; sort?: InputMaybe>; @@ -4735,6 +4934,7 @@ export type MutationCreate_WebhookArgs = { /** Root mutation type for the Dependencies service */ export type MutationCreate_WidgetArgs = { + filter?: InputMaybe; kind: ExternalWidget; name: Scalars['String']['input']; parent: WidgetParentInput; @@ -4794,6 +4994,12 @@ export type MutationDelete_Custom_ActivityArgs = { }; +/** Root mutation type for the Dependencies service */ +export type MutationDelete_DashboardArgs = { + id: Scalars['Int']['input']; +}; + + /** Root mutation type for the Dependencies service */ export type MutationDelete_DocArgs = { docId: Scalars['ID']['input']; @@ -5136,6 +5342,7 @@ export type MutationUpdate_Board_HierarchyArgs = { /** Root mutation type for the Dependencies service */ export type MutationUpdate_ColumnArgs = { board_id: Scalars['ID']['input']; + capabilities?: InputMaybe; column_type: ColumnType; description?: InputMaybe; id: Scalars['String']['input']; @@ -5145,6 +5352,16 @@ export type MutationUpdate_ColumnArgs = { }; +/** Root mutation type for the Dependencies service */ +export type MutationUpdate_DashboardArgs = { + board_folder_id?: InputMaybe; + id: Scalars['Int']['input']; + kind?: InputMaybe; + name?: InputMaybe; + workspace_id?: InputMaybe; +}; + + /** Root mutation type for the Dependencies service */ export type MutationUpdate_Dependency_ColumnArgs = { boardId: Scalars['String']['input']; @@ -5279,9 +5496,17 @@ export type MutationUpdate_Notification_SettingArgs = { }; +/** Root mutation type for the Dependencies service */ +export type MutationUpdate_Overview_HierarchyArgs = { + attributes: UpdateOverviewHierarchyAttributesInput; + overview_id: Scalars['ID']['input']; +}; + + /** Root mutation type for the Dependencies service */ export type MutationUpdate_Status_ColumnArgs = { board_id: Scalars['ID']['input']; + capabilities?: InputMaybe; description?: InputMaybe; id: Scalars['String']['input']; revision: Scalars['String']['input']; @@ -5311,9 +5536,9 @@ export type MutationUpdate_Users_RoleArgs = { /** Root mutation type for the Dependencies service */ export type MutationUpdate_ViewArgs = { board_id: Scalars['ID']['input']; - filter_team_id?: InputMaybe; - filter_user_id?: InputMaybe; - filters?: InputMaybe; + filter?: InputMaybe; + filter_team_id?: InputMaybe; + filter_user_id?: InputMaybe; name?: InputMaybe; settings?: InputMaybe; sort?: InputMaybe>; @@ -5326,9 +5551,9 @@ export type MutationUpdate_ViewArgs = { /** Root mutation type for the Dependencies service */ export type MutationUpdate_View_TableArgs = { board_id: Scalars['ID']['input']; - filter_team_id?: InputMaybe; - filter_user_id?: InputMaybe; - filters?: InputMaybe; + filter?: InputMaybe; + filter_team_id?: InputMaybe; + filter_user_id?: InputMaybe; name?: InputMaybe; settings?: InputMaybe; sort?: InputMaybe>; @@ -5522,6 +5747,29 @@ export type OutOfOffice = { type?: Maybe; }; +/** A monday.com overview. */ +export type Overview = { + __typename?: 'Overview'; + /** The time the overview was created at. */ + created_at?: Maybe; + /** The creator of the overview. */ + creator: User; + /** The overview's folder unique identifier. */ + folder_id?: Maybe; + /** The unique identifier of the overview. */ + id: Scalars['ID']['output']; + /** The overview's kind (public/private). */ + kind?: Maybe; + /** The overview's name. */ + name: Scalars['String']['output']; + /** The overview's state. */ + state: Scalars['String']['output']; + /** The last time the overview was updated at. */ + updated_at?: Maybe; + /** The overview's workspace unique identifier. */ + workspace_id?: Maybe; +}; + /** Input for creating page break blocks */ export type PageBreakBlockInput = { /** Optional UUID for the block */ @@ -5865,7 +6113,7 @@ export type Query = { /** Export the dependency graph for a specific board */ export_graph?: Maybe; /** Get all personal list items by list ID */ - favorites?: Maybe>; + favorites?: Maybe>; /** Get a collection of folders. Note: This query won't return folders from closed workspaces to which you are not subscribed */ folders?: Maybe>>; /** Fetch a form by its token. The returned form includes all the details of the form such as its settings, questions, title, etc. Use this endpoint when you need to retrieve complete form data for display or processing. Requires that the requesting user has read access to the associated board. */ @@ -6135,6 +6383,7 @@ export type QueryItems_Page_By_Column_ValuesArgs = { board_id: Scalars['ID']['input']; columns?: InputMaybe>; cursor?: InputMaybe; + hierarchy_scope_config?: InputMaybe; limit?: Scalars['Int']['input']; }; @@ -6238,6 +6487,7 @@ export type QueryTeamsArgs = { /** Root query type for the Dependencies service */ export type QueryTimelineArgs = { id: Scalars['ID']['input']; + skipConnectedItems?: InputMaybe; }; @@ -6424,10 +6674,8 @@ export type ResponseForm = { active: Scalars['Boolean']['output']; /** Object containing visual styling settings including colors, fonts, layout, and branding. */ appearance?: Maybe; - /** Boolean indicating if this form was built or modified using AI functionality. */ + /** Boolean indicating if this form was built using monday’s AI form builder agent. */ builtWithAI: Scalars['Boolean']['output']; - /** Boolean indicating if this form was initially created using AI assistance. */ - createWithAI: Scalars['Boolean']['output']; /** Optional detailed description explaining the form purpose, displayed below the title. */ description?: Maybe; /** Object containing feature toggles and settings like password protection, response limits, etc. */ @@ -6436,8 +6684,6 @@ export type ResponseForm = { id: Scalars['Int']['output']; /** Boolean indicating if responses are collected without identifying the submitter. */ isAnonymous: Scalars['Boolean']['output']; - /** Boolean flag indicating if the form has been flagged for review due to suspicious content or activity. */ - isSuspicious: Scalars['Boolean']['output']; /** The ID of the user who created and owns this form. Determines permissions. */ ownerId?: Maybe; /** Array of question objects that make up the form content, in display order. */ @@ -6595,6 +6841,24 @@ export enum State { Deleted = 'deleted' } +/** Input for configuring calculated capability settings on a status column */ +export type StatusCalculatedCapabilityInput = { + /** Function to calculate the values. For status columns, only COUNT_KEYS function is supported. */ + function: StatusCalculatedFunction; +}; + +/** Available functions for calculating values in status column capabilities */ +export enum StatusCalculatedFunction { + /** Count the number of labels */ + CountKeys = 'COUNT_KEYS' +} + +/** Input for configuring status column capabilities during creation */ +export type StatusColumnCapabilitiesInput = { + /** Calculated capability settings. If provided, enables calculated functionality for the status column. */ + calculated?: InputMaybe; +}; + export enum StatusColumnColors { AmericanGray = 'american_gray', Aquamarine = 'aquamarine', @@ -7305,10 +7569,11 @@ export type UpdateEmailDomainResult = { updated_users?: Maybe>; }; +/** Represents the response when adding an object to a list */ export type UpdateFavoriteResultType = { __typename?: 'UpdateFavoriteResultType'; - /** The updated favorite's object */ - favorites?: Maybe; + /** The favorite item that its position was updated */ + favorite?: Maybe; }; export type UpdateFormInput = { @@ -7341,7 +7606,7 @@ export type UpdateMention = { }; export type UpdateObjectHierarchyPositionInput = { - /** The new folder ID to move the object to */ + /** The new folder ID to move the object to, if necessary */ newFolder?: InputMaybe; /** The new position for the object */ newPosition?: InputMaybe; @@ -7349,6 +7614,29 @@ export type UpdateObjectHierarchyPositionInput = { object: HierarchyObjectIdInputType; }; +/** Result type for updating an overview's hierarchy */ +export type UpdateOverviewHierarchy = { + __typename?: 'UpdateOverviewHierarchy'; + /** Message about the operation result */ + message: Scalars['String']['output']; + /** The updated overview */ + overview?: Maybe; + /** Whether the operation was successful */ + success: Scalars['Boolean']['output']; +}; + +/** Attributes for updating an overview's hierarchy and location */ +export type UpdateOverviewHierarchyAttributesInput = { + /** The ID of the account product where the overview should be placed */ + account_product_id?: InputMaybe; + /** The ID of the folder where the overview should be placed */ + folder_id?: InputMaybe; + /** The position of the overview in the left pane */ + position?: InputMaybe; + /** The ID of the workspace where the overview should be placed */ + workspace_id?: InputMaybe; +}; + /** The pin to top data of the update. */ export type UpdatePin = { __typename?: 'UpdatePin'; @@ -8330,6 +8618,28 @@ export type ListWorkspacesQueryVariables = Exact<{ export type ListWorkspacesQuery = { __typename?: 'Query', workspaces?: Array<{ __typename?: 'Workspace', id?: string | null, name: string, description?: string | null } | null> | null }; +export type CreateFormMutationVariables = Exact<{ + destination_workspace_id: Scalars['Float']['input']; + destination_folder_id?: InputMaybe; + destination_folder_name?: InputMaybe; + board_kind?: InputMaybe; + destination_name?: InputMaybe; + board_owner_ids?: InputMaybe | Scalars['Float']['input']>; + board_owner_team_ids?: InputMaybe | Scalars['Float']['input']>; + board_subscriber_ids?: InputMaybe | Scalars['Float']['input']>; + board_subscriber_teams_ids?: InputMaybe | Scalars['Float']['input']>; +}>; + + +export type CreateFormMutation = { __typename?: 'Mutation', create_form?: { __typename?: 'DehydratedFormResponse', boardId: string, token: string } | null }; + +export type GetFormQueryVariables = Exact<{ + formToken: Scalars['String']['input']; +}>; + + +export type GetFormQuery = { __typename?: 'Query', form?: { __typename?: 'ResponseForm', id: number, token: string, title: string, description?: string | null, active: boolean, ownerId?: number | null, type?: string | null, builtWithAI: boolean, isAnonymous: boolean, questions?: Array<{ __typename?: 'FormQuestion', id: string, type?: FormQuestionType | null, visible: boolean, title: string, description?: string | null, required: boolean, showIfRules?: any | null, options?: Array<{ __typename?: 'FormQuestionOption', label: string }> | null, settings?: { __typename?: 'FormQuestionSettings', prefixAutofilled?: boolean | null, checkedByDefault?: boolean | null, defaultCurrentDate?: boolean | null, includeTime?: boolean | null, display?: FormQuestionSelectDisplay | null, optionsOrder?: FormQuestionSelectOrderByOptions | null, labelLimitCount?: number | null, locationAutofilled?: boolean | null, limit?: number | null, skipValidation?: boolean | null, prefill?: { __typename?: 'PrefillSettings', enabled: boolean, source?: FormQuestionPrefillSources | null, lookup: string } | null, prefixPredefined?: { __typename?: 'PhonePrefixPredefined', enabled: boolean, prefix?: string | null } | null } | null }> | null, features?: { __typename?: 'FormFeatures', isInternal: boolean, reCaptchaChallenge: boolean, shortenedLink?: { __typename?: 'FormShortenedLink', enabled: boolean, url?: string | null } | null, password?: { __typename?: 'FormPassword', enabled: boolean } | null, draftSubmission?: { __typename?: 'FormDraftSubmission', enabled: boolean } | null, requireLogin?: { __typename?: 'FormRequireLogin', enabled: boolean, redirectToLogin: boolean } | null, responseLimit?: { __typename?: 'FormResponseLimit', enabled: boolean, limit?: number | null } | null, closeDate?: { __typename?: 'FormCloseDate', enabled: boolean, date?: string | null } | null, preSubmissionView?: { __typename?: 'FormPreSubmissionView', enabled: boolean, title?: string | null, description?: string | null, startButton?: { __typename?: 'FormStartButton', text?: string | null } | null } | null, afterSubmissionView?: { __typename?: 'FormAfterSubmissionView', title?: string | null, description?: string | null, allowResubmit: boolean, showSuccessImage: boolean, allowEditSubmission: boolean, allowViewSubmission: boolean, redirectAfterSubmission?: { __typename?: 'FormRedirectAfterSubmission', enabled: boolean, redirectUrl?: string | null } | null } | null, monday?: { __typename?: 'FormMonday', itemGroupId?: string | null, includeNameQuestion: boolean, includeUpdateQuestion: boolean, syncQuestionAndColumnsTitles: boolean } | null } | null, appearance?: { __typename?: 'FormAppearance', hideBranding: boolean, showProgressBar: boolean, primaryColor?: string | null, layout?: { __typename?: 'FormLayout', format?: FormFormat | null, alignment?: FormAlignment | null, direction?: FormDirection | null } | null, background?: { __typename?: 'FormBackground', type?: FormBackgrounds | null, value?: string | null } | null, text?: { __typename?: 'FormText', font?: string | null, color?: string | null, size?: FormFontSize | null } | null, logo?: { __typename?: 'FormLogo', position?: FormLogoPosition | null, url?: string | null, size?: FormLogoSize | null } | null, submitButton?: { __typename?: 'FormSubmitButton', text?: string | null } | null } | null, accessibility?: { __typename?: 'FormAccessibility', language?: string | null, logoAltText?: string | null } | null, tags?: Array<{ __typename?: 'FormTag', id: string, name: string, value?: string | null, columnId: string }> | null } | null }; + export type DeleteItemMutationVariables = Exact<{ id: Scalars['ID']['input']; }>; @@ -8532,26 +8842,12 @@ export type GetWorkspaceInfoQueryVariables = Exact<{ export type GetWorkspaceInfoQuery = { __typename?: 'Query', workspaces?: Array<{ __typename?: 'Workspace', id?: string | null, name: string, description?: string | null, kind?: WorkspaceKind | null, created_at?: any | null, state?: State | null, is_default_workspace?: boolean | null, owners_subscribers?: Array<{ __typename?: 'User', id: string, name: string, email: string } | null> | null } | null> | null, boards?: Array<{ __typename?: 'Board', id: string, name: string, board_folder_id?: string | null } | null> | null, docs?: Array<{ __typename?: 'Document', id: string, name: string, doc_folder_id?: string | null } | null> | null, folders?: Array<{ __typename?: 'Folder', id: string, name: string } | null> | null }; -// ----------------------------- -// WorkForms (Forms) Types -// ----------------------------- - -export type CreateFormMutationVariables = Exact<{ - destination_workspace_id: Scalars['Float']['input']; - destination_folder_id?: InputMaybe; - destination_folder_name?: InputMaybe; - board_kind?: InputMaybe; - destination_name?: InputMaybe; - board_owner_ids?: InputMaybe>; - board_owner_team_ids?: InputMaybe>; - board_subscriber_ids?: InputMaybe>; - board_subscriber_teams_ids?: InputMaybe>; +export type CreateWorkspaceMutationVariables = Exact<{ + accountProductId?: InputMaybe; + description?: InputMaybe; + workspaceKind: WorkspaceKind; + name: Scalars['String']['input']; }>; -export type CreateFormMutation = { __typename?: 'Mutation', create_form?: { __typename?: 'CreateFormResult', boardId: string, token: string } | null }; - -export type GetFormQueryVariables = Exact<{ - formToken: Scalars['String']['input']; -}>; -export type GetFormQuery = { __typename?: 'Query', form?: Form & { __typename?: 'Form' } | null }; +export type CreateWorkspaceMutation = { __typename?: 'Mutation', create_workspace?: { __typename?: 'Workspace', id?: string | null } | null }; diff --git a/packages/agent-toolkit/src/monday-graphql/schema.graphql b/packages/agent-toolkit/src/monday-graphql/schema.graphql index feb96c77..5dedfef7 100644 --- a/packages/agent-toolkit/src/monday-graphql/schema.graphql +++ b/packages/agent-toolkit/src/monday-graphql/schema.graphql @@ -227,7 +227,7 @@ type Query { get_view_schema_by_type( """ Specifies which view type to retrieve the schema for. Valid values include - "DashboardBoardView", "TableBoardView", "FormBoardView", "AppBoardView", etc. Each type has different available properties and validation rules. + "DASHBOARD", "TABLE", "FORM", "APP", etc. Each type has different available properties and validation rules. """ type: ViewKind! @@ -301,6 +301,9 @@ type Query { timeline( """The id of the item""" id: ID! + + """Whether to skip connected items""" + skipConnectedItems: Boolean ): TimelineResponse """Get managed column data.""" @@ -337,7 +340,7 @@ type Query { ): BoardGraphExport """Get all personal list items by list ID""" - favorites: [HierarchyObjectItem!] + favorites: [GraphqlHierarchyObjectItem!] marketplace_app_discounts( """The id of an app""" app_id: ID! @@ -549,6 +552,9 @@ type Query { """ cursor: String + """The hierarchy config to use for the query filters.""" + hierarchy_scope_config: String + """ The maximum number of items to fetch in a single request. Use this to control the size of the result set and manage pagination. Maximum: 500. @@ -749,13 +755,13 @@ type Mutation { name: String """User ID to filter by""" - filter_user_id: Int + filter_user_id: ID """Team ID to filter by""" - filter_team_id: Int + filter_team_id: ID """The rule filters to apply to the board view""" - filters: ItemsQueryGroup + filter: ItemsQueryGroup """The sort order to apply to the board view""" sort: [ItemsQueryOrderBy!] @@ -779,13 +785,13 @@ type Mutation { name: String """User ID to filter by""" - filter_user_id: Int + filter_user_id: ID """Team ID to filter by""" - filter_team_id: Int + filter_team_id: ID """The rule filters to apply to the board view""" - filters: ItemsQueryGroup + filter: ItemsQueryGroup """The sort order to apply to the board view""" sort: [ItemsQueryOrderBy!] @@ -814,13 +820,13 @@ type Mutation { name: String """User ID to filter by""" - filter_user_id: Int + filter_user_id: ID """Team ID to filter by""" - filter_team_id: Int + filter_team_id: ID """The rule filters to apply to the board view""" - filters: ItemsQueryGroup + filter: ItemsQueryGroup """The sort order to apply to the board view""" sort: [ItemsQueryOrderBy!] @@ -838,13 +844,13 @@ type Mutation { name: String """User ID to filter by""" - filter_user_id: Int + filter_user_id: ID """Team ID to filter by""" - filter_team_id: Int + filter_team_id: ID """The rule filters to apply to the board view""" - filters: ItemsQueryGroup + filter: ItemsQueryGroup """The sort order to apply to the board view""" sort: [ItemsQueryOrderBy!] @@ -1065,7 +1071,7 @@ type Mutation { """The unique identifier of the board containing the column to update.""" board_id: ID! - """The unique identifier of the status column to update.""" + """The unique identifier of the column to update.""" id: String! """ @@ -1083,6 +1089,11 @@ type Mutation { """ revision: String! + """ + Status column capabilities configuration. If not provided, existing capabilities remain unchanged. + """ + capabilities: StatusColumnCapabilitiesInput + """ Configuration object for status column settings including available status labels, their colors, positions, and other display properties. """ @@ -1096,7 +1107,7 @@ type Mutation { """The unique identifier of the board containing the column to update.""" board_id: ID! - """The unique identifier of the status column to update.""" + """The unique identifier of the column to update.""" id: String! """ @@ -1127,7 +1138,7 @@ type Mutation { """The unique identifier of the board containing the column to update.""" board_id: ID! - """The unique identifier of the status column to update.""" + """The unique identifier of the column to update.""" id: String! """ @@ -1145,6 +1156,11 @@ type Mutation { """ revision: String! + """ + Column capabilities configuration. If not provided, existing capabilities remain unchanged. + """ + capabilities: ColumnCapabilitiesInput + """ Type-specific configuration object containing column settings. The structure varies by column type - use get_column_type_schema query to see available properties. Examples: status column labels, dropdown options, number formatting rules, date display preferences. """ @@ -1179,6 +1195,11 @@ type Mutation { """ after_column_id: ID + """ + Status column capabilities configuration. If not provided, default capabilities will be created. + """ + capabilities: StatusColumnCapabilitiesInput + """ Configuration object for status column settings including available status labels, their colors, positions, and other display properties. """ @@ -1237,6 +1258,11 @@ type Mutation { """ after_column_id: ID + """ + Column capabilities configuration. If not provided, default capabilities will be created. + """ + capabilities: ColumnCapabilitiesInput + """ Type-specific configuration object containing column defaults and settings. Accepts both JSON objects (recommended) and JSON strings (for backward compatibility). For JSON objects, use get_column_type_schema query to see available properties and validation rules. Examples: status column labels, dropdown options, number formatting rules, date display preferences. """ @@ -1269,6 +1295,20 @@ type Mutation { """Update the dependency column for a specific pulse""" update_dependency_column(boardId: String!, pulseId: String!, value: DependencyValueInput!, columnId: String!): JSON! + """ + Adds markdown content to an existing document by converting it into document blocks. Use this to append content to the end of a document or insert content after a specific block. The markdown will be parsed and converted into the appropriate document block types (text, headers, lists, etc.). Returns the IDs of the newly created blocks on success. + """ + add_content_to_doc_from_markdown( + """The document's unique identifier.""" + docId: ID! + + """The markdown content to convert into document blocks.""" + markdown: String! + + """Optional block ID to insert the markdown content after.""" + afterBlockId: String + ): DocBlocksFromMarkdownResult + """ Creates multiple document blocks in a single operation for efficient content creation. Use this when adding substantial content like importing documents, creating structured content (articles, reports, guides), or building complex document sections. Supports all block types including text paragraphs, headers, bullet/numbered lists, images, tables, code blocks, and more. Much faster than creating blocks individually. Perfect for content migration, template creation, or generating documents from external data. Maximum 25 blocks per request. """ @@ -1314,33 +1354,6 @@ type Mutation { duplicateType: DuplicateType ): JSON - """ - Update a document's name/title. Changes are applied immediately and visible to all users with access to the document. - """ - update_doc_name( - """The document's unique identifier. Use document ID from API responses""" - docId: ID! - - """ - The new name/title for the document. Should be descriptive and help users identify the document purpose. - """ - name: String! - ): JSON - - """ - Adds markdown content to an existing document by converting it into document blocks. Use this to append content to the end of a document or insert content after a specific block. The markdown will be parsed and converted into the appropriate document block types (text, headers, lists, etc.). Returns the IDs of the newly created blocks on success. - """ - add_content_to_doc_from_markdown( - """The document's unique identifier.""" - docId: ID! - - """The markdown content to convert into document blocks.""" - markdown: String! - - """Optional block ID to insert the markdown content after.""" - afterBlockId: String - ): DocBlocksFromMarkdownResult - """ Converts document content into standard markdown format for external use, backup, or processing. Exports the entire document by default, or specific blocks if block IDs are provided. Use this to extract content for integration with other systems, create backups, generate reports, or process document content with external tools. The output is clean, portable markdown that preserves formatting and structure. """ @@ -1356,6 +1369,19 @@ type Mutation { blockIds: [String!] ): ExportMarkdownResult + """ + Update a document's name/title. Changes are applied immediately and visible to all users with access to the document. + """ + update_doc_name( + """The document's unique identifier. Use document ID from API responses""" + docId: ID! + + """ + The new name/title for the document. Should be descriptive and help users identify the document purpose. + """ + name: String! + ): JSON + """Add workspace object to favorites""" create_favorite( """The input for adding an object to the favorites""" @@ -1406,6 +1432,38 @@ type Mutation { id: ID! ): AppFeatureType + """Create a new app feature.""" + create_app_feature( + """ + The name of the app feature. If not provided, a default name will be used. + """ + name: String + + """The unique slug identifier for the app feature.""" + slug: String! + + """The ID of the app to create the app feature for.""" + app_id: ID! + + """ + The ID of the app version to create the app feature for. If not provided, the latest draft version will be used. + """ + app_version_id: ID + + """The type of the app feature to create.""" + type: AppFeatureTypeE! + + """ + The app feature data to update. This structure is dynamic and depends on the different app feature types. + """ + data: JSON + + """ + The deployment data for the app feature. https://developer.monday.com/apps/docs/deploy-your-app + """ + deployment: AppFeatureReleaseInput + ): AppFeatureType + """Add a file to a column value.""" add_file_to_column( """The column to add the file to.""" @@ -2191,6 +2249,15 @@ type Mutation { new_value: String! ): Group + """Update the position of a dashboard.""" + update_overview_hierarchy( + """The position and location attributes to update""" + attributes: UpdateOverviewHierarchyAttributesInput! + + """The overview's unique identifier""" + overview_id: ID! + ): UpdateOverviewHierarchy + """Update an existing workspace.""" update_workspace( """The attributes of the workspace to update""" @@ -2248,6 +2315,11 @@ type Mutation { template_id: Int! ): Template + """ + Convert an existing monday.com board into a project with enhanced project management capabilities. This mutation transforms a regular board by applying project-specific features and configurations through column mappings that define how existing board columns should be interpreted in the project context. The conversion process is asynchronous and returns a process_id for tracking completion. Optionally accepts a callback URL for notification when the conversion completes. Use this when you have an existing board with data that needs to be upgraded to a full project with advanced project management features like Resource Planner integration. + """ + convert_board_to_project(input: ConvertBoardToProjectInput!): ConvertBoardToProjectResult + """Updates a notification setting's enabled status.""" update_notification_setting( """ @@ -2398,6 +2470,11 @@ type Mutation { Widget-specific settings as JSON. Each widget type has its own JSON schema that defines the required and optional fields. The settings object must conform to the JSON schema for the specific widget type being created. To discover available widget types and their schemas, use the all_widgets_schema query which returns the complete JSON schema for each supported widget type. """ settings: JSON! + + """ + WORKS ONLY IN BOARD VIEWS. Optional filter to apply to the widget data using GraphQL query syntax. Supports filtering by board columns (status, numbers, date, person, etc.) with operators like any_of, greater_than, equals, contains. Structure: { rules: [{ column_id: "status", compare_value: [1, 2], operator: "any_of" }], operator: "and" }. IMPORTANT: Person/People columns require "person-{id}" format (e.g., ["person-3"] not [3]). Status columns use raw indices [0,1,2]. Numbers use raw values [2,43]. Example - Filter by person: { operator: "and", rules: [{ column_id: "project_owner", operator: "any_of", compare_value: ["person-3"] }] } + """ + filter: ItemsQueryGroup ): WidgetModel """Create a new dashboard and return the complete Dashboard object.""" @@ -2418,6 +2495,30 @@ type Mutation { board_folder_id: Int ): Dashboard + """Update an existing dashboard and return the updated Dashboard object.""" + update_dashboard( + """The ID of the dashboard to update.""" + id: Int! + + """Human-readable dashboard title (UTF-8 chars).""" + name: String + + """The ID of the workspace to update the dashboard in.""" + workspace_id: Int + + """Visibility level: `PUBLIC` or `PRIVATE`.""" + kind: DashboardKind + + """Folder ID within the workspace in which to place the dashboard.""" + board_folder_id: Int + ): Dashboard + + """Delete an existing dashboard and return true if successful.""" + delete_dashboard( + """The ID of the dashboard to delete.""" + id: Int! + ): Boolean + """ Update form properties including title, description, or question order. """ @@ -2570,7 +2671,46 @@ type Mutation { """ Create a new form with specified configuration. Returns the created form with its unique token. """ - create_form(destination_workspace_id: Float, destination_folder_id: Float, destination_folder_name: String, board_kind: BoardKind, destination_name: String, skip_target_folder_creation: Boolean, entity_names_mapping: String, board_owner_ids: [Float!], board_owner_team_ids: [Float!], board_subscriber_ids: [Float!], board_subscriber_teams_ids: [Float!]): DehydratedFormResponse + create_form( + """The workspace in which the form will be created in.""" + destination_workspace_id: Float! + + """The folder in which the form will be created under.""" + destination_folder_id: Float + + """The name of the folder in which the form will be created in.""" + destination_folder_name: String + + """ + The board kind to create for the board in which the form will create items in. + """ + board_kind: BoardKind + + """ + The name of the board that will be created to store the form responses in. + """ + destination_name: String + + """ + Array of user IDs who will have owner permissions on the board in which the form will create items in. + """ + board_owner_ids: [Float!] + + """ + Array of team IDs whose members will have owner permissions on the board in which the form will create items in. + """ + board_owner_team_ids: [Float!] + + """ + Array of user IDs who will receive notifications about board activity for the board in which the form will create items in. + """ + board_subscriber_ids: [Float!] + + """ + Array of team IDs whose members will receive notifications about board activity for the board in which the form will create items in. + """ + board_subscriber_teams_ids: [Float!] + ): DehydratedFormResponse """ Set a password on a form to restrict access. This will enable password protection for the form. @@ -3126,6 +3266,11 @@ type Board { """A list of column types.""" types: [ColumnType!] + + """ + A list of column capabilities to filter by. If unspecified, only columns with no capabilities will be returned. + """ + capabilities: [ColumnCapability!] ): [Column] """The user's permission level for this board (view / edit).""" @@ -3207,6 +3352,9 @@ type Board { """ cursor: String + """The hierarchy config to use for the query filters.""" + hierarchy_scope_config: String + """ The maximum number of items to fetch in a single request. Use this to control the size of the result set and manage pagination. Maximum: 500. @@ -3389,7 +3537,7 @@ input GroupBySortSettingsInput { type: String } -"""The direction to order the items by""" +"""Sort direction""" enum ItemsOrderByDirection { """Ascending order""" asc @@ -3406,11 +3554,11 @@ input ItemsQueryGroup { """A list of rule groups""" groups: [ItemsQueryGroup!] - """The operator to use for the query rules or rule groups""" + """The operator to use for the query rules or rule groups. Default: AND""" operator: ItemsQueryOperator = and } -"""The condition between the query rules""" +"""Logical operator""" enum ItemsQueryOperator { """Logical OR""" or @@ -3435,7 +3583,7 @@ input ItemsQueryRule { operator: ItemsQueryRuleOperator = any_of } -"""The operator to use for the value comparison""" +"""Rule operator""" enum ItemsQueryRuleOperator { """Any of the values""" any_of @@ -3479,7 +3627,7 @@ enum ItemsQueryRuleOperator { """Ends with the value""" ends_with - """Within the next """ + """Within the next""" within_the_next """Within the last""" @@ -3559,6 +3707,9 @@ type Item { """The item's column values.""" column_values( + """Capabilities supported by the API.""" + capabilities: [ColumnCapability!] + """A list of column ids to return""" ids: [String!] @@ -3840,12 +3991,41 @@ type TimelineResponse { """Calculated capability settings for a column""" type CalculatedCapability { """Function to calculate the parent values""" - function: String! + function: CalculatedFunction! """Type of the calculated value""" calculated_type: ColumnType } +"""Input for configuring calculated capability settings on a column""" +input CalculatedCapabilityInput { + """ + Function to calculate the values. If not provided, will use the default function for the column type. + """ + function: CalculatedFunction! +} + +"""Available functions for calculating values in column capabilities""" +enum CalculatedFunction { + """Calculate the minimum value""" + MIN + + """Calculate the maximum value""" + MAX + + """Calculate the sum of all values""" + SUM + + """Calculate both minimum and maximum values for time ranges""" + MIN_MAX + + """No calculation""" + NONE + + """Count the number of labels""" + COUNT_KEYS +} + type Column { """The column's unique identifier.""" id: ID! @@ -3886,6 +4066,20 @@ type ColumnCapabilities { calculated: CalculatedCapability } +"""Input for configuring column capabilities during creation""" +input ColumnCapabilitiesInput { + """ + Calculated capability settings. If provided, enables calculated functionality for the column. + """ + calculated: CalculatedCapabilityInput +} + +"""Capabilities supported by the API""" +enum ColumnCapability { + """Capability to show column's calculated value""" + CALCULATED +} + union ColumnSettings = StatusColumnSettings | DropdownColumnSettings """Types of columns supported by the API""" @@ -4096,6 +4290,32 @@ enum ManagedColumnTypes { dropdown } +""" +Input for configuring calculated capability settings on a status column +""" +input StatusCalculatedCapabilityInput { + """ + Function to calculate the values. For status columns, only COUNT_KEYS function is supported. + """ + function: StatusCalculatedFunction! +} + +""" +Available functions for calculating values in status column capabilities +""" +enum StatusCalculatedFunction { + """Count the number of labels""" + COUNT_KEYS +} + +"""Input for configuring status column capabilities during creation""" +input StatusColumnCapabilitiesInput { + """ + Calculated capability settings. If provided, enables calculated functionality for the status column. + """ + calculated: StatusCalculatedCapabilityInput +} + enum StatusColumnColors { working_orange done_green @@ -4985,10 +5205,15 @@ input CreateFavoriteInput { newPosition: ObjectDynamicPositionInput } -"""Result type for adding an object to a personal list""" +"""Represents the response when adding an object to a list""" type CreateFavoriteResultType { - """The added object hierarchy item""" - favorites: HierarchyObjectItem + """The favorite item that was created""" + favorite: GraphqlHierarchyObjectItem + + """ + If the object that was created is a folder, this is extra data about the folder + """ + folder: GraphqlFolder } """Input type for removing an object from favorites""" @@ -5003,38 +5228,38 @@ type DeleteFavoriteInputResultType { success: Boolean } -"""Represents a monday object identifier with its type""" -type HierarchyObjectID { - """The unique identifier of the object""" +"""Represents a folder in the hierarchy""" +type GraphqlFolder { + """The unique identifier of the folder""" id: ID - """The type of the object""" - type: ObjectType -} + """The account identifier this folder belongs to""" + accountId: ID -"""Input type for identifying a favorites object by its ID and type""" -input HierarchyObjectIDInputType { - """The ID of the object""" - id: ID! + """The name of the folder""" + name: String - """The type of the object""" - type: ObjectType! + """The timestamp when this folder was created""" + createdAt: Date + + """The timestamp when this folder was last updated""" + updatedAt: Date + + """The user who created this folder""" + createdBy: ID } -"""Represents an item in the object hierarchy""" -type HierarchyObjectItem { +"""Represents an item in favorites""" +type GraphqlHierarchyObjectItem { """The unique identifier of the hierarchy item""" id: ID """The account identifier this item belongs to""" - accountId: Int + accountId: ID """The object identifier and type""" object: HierarchyObjectID - """The list identifier and type""" - hierarchyListData: ListID - """The folder identifier if the item is contained within a folder""" folderId: ID @@ -5048,25 +5273,34 @@ type HierarchyObjectItem { updatedAt: Date } -"""Represents a list identifier with its type in the hierarchy""" -type ListID { - """The unique identifier of the list""" - id: ID +"""Represents a monday object.""" +enum GraphqlMondayObject { + """A monday.com board""" + Board - """The type of the list""" - type: ListType + """A monday.com folder""" + Folder + + """Aggregates data from one or more boards.""" + Dashboard } -"""Types of lists in hierarchyMS""" -enum ListType { - """A personal list owned by a user""" - PersonalList +"""Represents a monday object identifier with its type""" +type HierarchyObjectID { + """The unique identifier of the object""" + id: ID - """A workspace-level list""" - Workspace + """The type of the object""" + type: GraphqlMondayObject +} - """A customized list with specific settings""" - CustomizedList +"""Input type for identifying a favorites object by its ID and type""" +input HierarchyObjectIDInputType { + """The ID of the object""" + id: ID! + + """The type of the object""" + type: GraphqlMondayObject! } input ObjectDynamicPositionInput { @@ -5077,28 +5311,17 @@ input ObjectDynamicPositionInput { nextObject: HierarchyObjectIDInputType } -"""Represents a monday object.""" -enum ObjectType { - """Represents a board object type.""" - Board - - """Represents an overview object type.""" - Overview - - """Represents a folder object type.""" - Folder -} - +"""Represents the response when adding an object to a list""" type UpdateFavoriteResultType { - """The updated favorite's object""" - favorites: HierarchyObjectItem + """The favorite item that its position was updated""" + favorite: GraphqlHierarchyObjectItem } input UpdateObjectHierarchyPositionInput { """The favorite's object to update""" object: HierarchyObjectIDInputType! - """The new folder ID to move the object to""" + """The new folder ID to move the object to, if necessary""" newFolder: ID """The new position for the object""" @@ -5407,6 +5630,162 @@ type AppFeatureType { deployment: JSON } +"""The type of the app feature.""" +enum AppFeatureTypeE { + """OAUTH""" + OAUTH + + """BOARD_VIEW""" + BOARD_VIEW + + """INTEGRATION""" + INTEGRATION + + """SOLUTION""" + SOLUTION + + """ITEM_VIEW""" + ITEM_VIEW + + """DASHBOARD_WIDGET""" + DASHBOARD_WIDGET + + """ACCOUNT_SETTINGS_VIEW""" + ACCOUNT_SETTINGS_VIEW + + """DOC_ACTIONS""" + DOC_ACTIONS + + """OBJECT""" + OBJECT + + """WORKSPACE_VIEW""" + WORKSPACE_VIEW + + """AI""" + AI + + """AI_BOARD_MAIN_MENU_HEADER""" + AI_BOARD_MAIN_MENU_HEADER + + """AI_ITEM_UPDATE_ACTIONS""" + AI_ITEM_UPDATE_ACTIONS + + """AI_DOC_SLASH_COMMAND""" + AI_DOC_SLASH_COMMAND + + """AI_DOC_CONTEXTUAL_MENU""" + AI_DOC_CONTEXTUAL_MENU + + """AI_DOC_QUICK_START""" + AI_DOC_QUICK_START + + """AI_DOC_TOP_BAR""" + AI_DOC_TOP_BAR + + """COLUMN_TEMPLATE""" + COLUMN_TEMPLATE + + """AI_IC_ASSISTANT_HELP_CENTER""" + AI_IC_ASSISTANT_HELP_CENTER + + """APP_WIZARD""" + APP_WIZARD + + """GROUP_MENU_ACTION""" + GROUP_MENU_ACTION + + """ITEM_MENU_ACTION""" + ITEM_MENU_ACTION + + """NOTIFICATION_KIND""" + NOTIFICATION_KIND + + """NOTIFICATION_SETTING_KIND""" + NOTIFICATION_SETTING_KIND + + """BLOCK""" + BLOCK + + """ITEM_BATCH_ACTION""" + ITEM_BATCH_ACTION + + """AI_FORMULA""" + AI_FORMULA + + """AI_ITEM_EMAILS_AND_ACTIVITIES_ACTIONS""" + AI_ITEM_EMAILS_AND_ACTIVITIES_ACTIONS + + """AI_EMAILS_AND_ACTIVITIES_HEADER_ACTIONS""" + AI_EMAILS_AND_ACTIVITIES_HEADER_ACTIONS + + """FIELD_TYPE""" + FIELD_TYPE + + """PRODUCT""" + PRODUCT + + """PRODUCT_VIEW""" + PRODUCT_VIEW + + """BOARD_COLUMN_ACTION""" + BOARD_COLUMN_ACTION + + """BOARD_COLUMN_EXTENSION""" + BOARD_COLUMN_EXTENSION + + """PACKAGED_BLOCK""" + PACKAGED_BLOCK + + """CREDENTIALS""" + CREDENTIALS + + """TOPBAR""" + TOPBAR + + """WORKFLOW_TEMPLATE""" + WORKFLOW_TEMPLATE + + """COLUMN""" + COLUMN + + """SUB_WORKFLOW""" + SUB_WORKFLOW + + """BOARD_HEADER_ACTION""" + BOARD_HEADER_ACTION + + """DIALOG""" + DIALOG + + """DATA_ENTITY""" + DATA_ENTITY + + """SYNCABLE_RESOURCE""" + SYNCABLE_RESOURCE + + """AI_AGENT""" + AI_AGENT + + """SURFACE_VIEW""" + SURFACE_VIEW + + """GROWTH_CONFIG""" + GROWTH_CONFIG + + """MODAL""" + MODAL + + """ADMIN_VIEW""" + ADMIN_VIEW + + """DIGITAL_WORKER""" + DIGITAL_WORKER + + """AI_AGENT_SKILL""" + AI_AGENT_SKILL +} + type AppType { id: ID! created_at: Date @@ -6842,6 +7221,9 @@ type Group { """ cursor: String + """The hierarchy config to use for the query filters.""" + hierarchy_scope_config: String + """ The maximum number of items to fetch in a single request. Use this to control the size of the result set and manage pagination. Maximum: 500. @@ -7007,11 +7389,11 @@ input ItemsQuery { groups: [ItemsQueryGroup!] """ - A list of item IDs to fetch. Use this to fetch a specific set of items by their IDs. Max: 100 IDs + A list of item IDs to fetch. Use this to fetch a specific set of items by their IDs. Limited to 100 IDs in ItemsQuery """ ids: [ID!] - """The operator to use for the query rules or rule groups""" + """The operator to use for the query rules or rule groups. Default: AND""" operator: ItemsQueryOperator = and """Sort the results by specified columns""" @@ -7284,6 +7666,18 @@ enum NumberValueUnitDirection { right } +"""Represents a monday object.""" +enum ObjectType { + """Represents a board object type.""" + Board + + """Represents a folder object type.""" + Folder + + """Represents an overview object type.""" + Overview +} + """The working status of a user.""" type OutOfOffice { """Is the status active?""" @@ -7302,6 +7696,36 @@ type OutOfOffice { type: String } +"""A monday.com overview.""" +type Overview { + """The time the overview was created at.""" + created_at: ISO8601DateTime + + """The creator of the overview.""" + creator: User! + + """The overview's folder unique identifier.""" + folder_id: ID + + """The unique identifier of the overview.""" + id: ID! + + """The overview's kind (public/private).""" + kind: String + + """The overview's name.""" + name: String! + + """The overview's state.""" + state: String! + + """The last time the overview was updated at.""" + updated_at: ISO8601DateTime + + """The overview's workspace unique identifier.""" + workspace_id: ID +} + type PeopleEntity { """Id of the entity: a person or a team""" id: ID! @@ -7806,6 +8230,33 @@ type UpdateBoardHierarchyResult { success: Boolean! } +"""Result type for updating an overview's hierarchy""" +type UpdateOverviewHierarchy { + """Message about the operation result""" + message: String! + + """The updated overview""" + overview: Overview + + """Whether the operation was successful""" + success: Boolean! +} + +"""Attributes for updating an overview's hierarchy and location""" +input UpdateOverviewHierarchyAttributesInput { + """The ID of the account product where the overview should be placed""" + account_product_id: ID + + """The ID of the folder where the overview should be placed""" + folder_id: ID + + """The position of the overview in the left pane""" + position: DynamicPosition + + """The ID of the workspace where the overview should be placed""" + workspace_id: ID +} + """Attributes of a workspace to update""" input UpdateWorkspaceAttributesInput { """The target account product's ID to move the workspace to""" @@ -8156,6 +8607,25 @@ enum BoardUsage { CONNECT_TO_PORTFOLIO } +input ColumnsMappingInput { + project_status: ID! + project_timeline: ID! + project_owner: ID! +} + +input ConvertBoardToProjectInput { + board_id: ID! + column_mappings: ColumnsMappingInput! + callback_url: String +} + +type ConvertBoardToProjectResult { + success: Boolean + message: String + projectId: ID + process_id: String +} + type BoardMuteSettings { """Board ID""" board_id: ID @@ -8310,9 +8780,6 @@ type PlatformApiDailyAnalyticsByUser { } type ConnectProjectResult { - """The unique identifier of the operation.""" - request_id: ID - """Indicates if the operation was successful.""" success: Boolean @@ -8362,8 +8829,15 @@ type AggregateGroupByResult { } input AggregateQueryInput { + """ + Select elements to return. Each element must have either a function or column property. If selecting a column or transformative function, the element must appear in group by. + """ select: [AggregateSelectElementInput!]! + + """Table to select from""" from: AggregateFromTableInput! + + """Group by elements""" group_by: [AggregateGroupByElementInput!] """ @@ -10101,12 +10575,7 @@ type ResponseForm { ownerId: Int """ - Boolean indicating if this form was initially created using AI assistance. - """ - createWithAI: Boolean! - - """ - Boolean indicating if this form was built or modified using AI functionality. + Boolean indicating if this form was built using monday’s AI form builder agent. """ builtWithAI: Boolean! @@ -10120,11 +10589,6 @@ type ResponseForm { """ questions: [FormQuestion!] - """ - Boolean flag indicating if the form has been flagged for review due to suspicious content or activity. - """ - isSuspicious: Boolean! - """ Boolean indicating if responses are collected without identifying the submitter. """ From 4e32368a3d85d644b4b3d74e4036c3b66cef306c Mon Sep 17 00:00:00 2001 From: tomer gillmore Date: Thu, 4 Sep 2025 18:30:31 +0300 Subject: [PATCH 3/3] fix --- .../create-workspace-tool.ts | 18 +++++++++++------- .../src/monday-graphql/generated/graphql.ts | 6 +++--- .../src/monday-graphql/queries.graphql.ts | 12 ++++++------ 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/create-workspace-tool.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/create-workspace-tool.ts index 96d77870..59fbd624 100644 --- a/packages/agent-toolkit/src/core/tools/platform-api-tools/create-workspace-tool.ts +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/create-workspace-tool.ts @@ -1,14 +1,18 @@ import { z } from 'zod'; -import { CreateWorkspaceMutation, CreateWorkspaceMutationVariables } from '../../../monday-graphql/generated/graphql'; +import { + CreateWorkspaceMutation, + CreateWorkspaceMutationVariables, + WorkspaceKind, +} from '../../../monday-graphql/generated/graphql'; import { createWorkspace } from '../../../monday-graphql/queries.graphql'; import { ToolInputType, ToolOutputType, ToolType } from '../../tool'; import { BaseMondayApiTool, createMondayApiAnnotations } from './base-monday-api-tool'; export const createWorkspaceToolSchema = { - accountProductId: z.string().optional().describe('The account product ID associated with the workspace'), - description: z.string().optional().describe('The description of the new workspace'), - workspaceKind: z.string().describe('The kind of workspace to create'), name: z.string().describe('The name of the new workspace to be created'), + workspaceKind: z.nativeEnum(WorkspaceKind).describe('The kind of workspace to create'), + description: z.string().optional().describe('The description of the new workspace'), + accountProductId: z.number().optional().describe('The account product ID associated with the workspace'), }; export type CreateWorkspaceToolInput = typeof createWorkspaceToolSchema; @@ -33,10 +37,10 @@ export class CreateWorkspaceTool extends BaseMondayApiTool): Promise> { const variables: CreateWorkspaceMutationVariables = { - accountProductId: input.accountProductId, - description: input.description, - workspaceKind: input.workspaceKind, name: input.name, + workspaceKind: input.workspaceKind, + description: input.description, + accountProductId: input.accountProductId?.toString(), }; const res = await this.mondayApi.request(createWorkspace, variables); diff --git a/packages/agent-toolkit/src/monday-graphql/generated/graphql.ts b/packages/agent-toolkit/src/monday-graphql/generated/graphql.ts index 4eb5528b..ece1a05c 100644 --- a/packages/agent-toolkit/src/monday-graphql/generated/graphql.ts +++ b/packages/agent-toolkit/src/monday-graphql/generated/graphql.ts @@ -8843,10 +8843,10 @@ export type GetWorkspaceInfoQueryVariables = Exact<{ export type GetWorkspaceInfoQuery = { __typename?: 'Query', workspaces?: Array<{ __typename?: 'Workspace', id?: string | null, name: string, description?: string | null, kind?: WorkspaceKind | null, created_at?: any | null, state?: State | null, is_default_workspace?: boolean | null, owners_subscribers?: Array<{ __typename?: 'User', id: string, name: string, email: string } | null> | null } | null> | null, boards?: Array<{ __typename?: 'Board', id: string, name: string, board_folder_id?: string | null } | null> | null, docs?: Array<{ __typename?: 'Document', id: string, name: string, doc_folder_id?: string | null } | null> | null, folders?: Array<{ __typename?: 'Folder', id: string, name: string } | null> | null }; export type CreateWorkspaceMutationVariables = Exact<{ - accountProductId?: InputMaybe; - description?: InputMaybe; - workspaceKind: WorkspaceKind; name: Scalars['String']['input']; + workspaceKind: WorkspaceKind; + description?: InputMaybe; + accountProductId?: InputMaybe; }>; diff --git a/packages/agent-toolkit/src/monday-graphql/queries.graphql.ts b/packages/agent-toolkit/src/monday-graphql/queries.graphql.ts index 73b5bd84..d9022698 100644 --- a/packages/agent-toolkit/src/monday-graphql/queries.graphql.ts +++ b/packages/agent-toolkit/src/monday-graphql/queries.graphql.ts @@ -562,16 +562,16 @@ export const getWorkspaceInfo = gql` export const createWorkspace = gql` mutation createWorkspace( - $accountProductId: ID - $description: String - $workspaceKind: WorkspaceKind! $name: String! + $workspaceKind: WorkspaceKind! + $description: String + $accountProductId: ID ) { create_workspace( - account_product_id: $accountProductId - description: $description - kind: $workspaceKind name: $name + kind: $workspaceKind + description: $description + account_product_id: $accountProductId ) { id }