From 45ad873f05833701e4117f69bee6c559cabd56c5 Mon Sep 17 00:00:00 2001 From: Linoy Margan Date: Sun, 12 Apr 2026 11:37:41 +0300 Subject: [PATCH 1/2] fix(update-doc): move createDocBlocks to dev schema, fix codegen createDocBlocks and its associated types (CreateBlockInput, TextBlock, BlockAlignment, etc.) only exist in the dev schema but were defined in .graphql.ts files validated against the production schema, causing codegen to fail with 10 errors. - Move createDocBlocks mutation to update-doc-tool.graphql.dev.ts - Import CreateDocBlocksMutation/Variables from graphql.dev/graphql - Import all dev-only types in helpers from graphql.dev/graphql - Add versionOverride: 'dev' to the createDocBlocks API request - Regenerate both graphql/ and graphql.dev/ type files Co-Authored-By: Claude Sonnet 4.6 --- .../update-doc-tool.graphql.dev.ts | 72 ++ .../update-doc-tool.graphql.ts | 70 -- .../update-doc-tool.helpers.ts | 2 +- .../update-doc-tool/update-doc-tool.ts | 10 +- .../generated/graphql.dev/gql.ts | 6 + .../generated/graphql.dev/graphql.ts | 10 + .../monday-graphql/generated/graphql/gql.ts | 6 - .../generated/graphql/graphql.ts | 653 +----------------- 8 files changed, 120 insertions(+), 709 deletions(-) create mode 100644 packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.dev.ts diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.dev.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.dev.ts new file mode 100644 index 00000000..a3d853d0 --- /dev/null +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.dev.ts @@ -0,0 +1,72 @@ +import { gql } from 'graphql-request'; + +// Create one or more blocks in a document (dev-only mutation) +export const createDocBlocks = gql` + mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) { + create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) { + id + type + parent_block_id + created_at + content { + ... on TextBlockContent { + delta_format { + insert { + text + } + attributes { + bold + italic + } + } + alignment + direction + } + ... on ListBlockContent { + delta_format { + insert { + text + } + attributes { + bold + italic + } + } + alignment + direction + indentation + } + ... on ImageContent { + width + alignment + } + ... on VideoContent { + url + width + alignment + } + ... on TableContent { + cells { + row_cells { + block_id + } + } + } + ... on LayoutContent { + cells { + block_id + } + } + ... on NoticeBoxContent { + theme + alignment + direction + } + ... on DividerContent { + alignment + direction + } + } + } + } +`; diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.ts index dfeefce2..72340031 100644 --- a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.ts +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.ts @@ -93,73 +93,3 @@ export const createDocComment = gql` } `; -// Create one or more blocks in a document -export const createDocBlocks = gql` - mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) { - create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) { - id - type - parent_block_id - created_at - content { - ... on TextBlockContent { - delta_format { - insert { - text - } - attributes { - bold - italic - } - } - alignment - direction - } - ... on ListBlockContent { - delta_format { - insert { - text - } - attributes { - bold - italic - } - } - alignment - direction - indentation - } - ... on ImageContent { - width - alignment - } - ... on VideoContent { - url - width - alignment - } - ... on TableContent { - cells { - row_cells { - block_id - } - } - } - ... on LayoutContent { - cells { - block_id - } - } - ... on NoticeBoxContent { - theme - alignment - direction - } - ... on DividerContent { - alignment - direction - } - } - } - } -`; diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.helpers.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.helpers.ts index 56d1cb93..77a28b39 100644 --- a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.helpers.ts +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.helpers.ts @@ -8,7 +8,7 @@ import { NoticeBoxTheme, OperationInput, TextBlock, -} from '../../../../monday-graphql/generated/graphql/graphql'; +} from '../../../../monday-graphql/generated/graphql.dev/graphql'; import { DeltaOperation, UpdateBlockContent, CreateBlock } from './update-doc-tool.schema'; // ─── Helpers ───────────────────────────────────────────────────────────────── diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.ts index 4a9f9f83..d05c6170 100644 --- a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.ts +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.ts @@ -1,7 +1,6 @@ import { updateDocBlock, deleteDocBlock, - createDocBlocks, updateDocName, addContentToDocFromMarkdown, getDocByObjectId, @@ -10,20 +9,23 @@ import { createDocComment, getDocBlockContent, } from './update-doc-tool.graphql'; +import { createDocBlocks } from './update-doc-tool.graphql.dev'; import { UpdateDocBlockMutation, UpdateDocBlockMutationVariables, DeleteDocBlockMutation, DeleteDocBlockMutationVariables, - CreateDocBlocksMutation, - CreateDocBlocksMutationVariables, UpdateDocNameMutation, UpdateDocNameMutationVariables, AddContentToDocFromMarkdownMutation, AddContentToDocFromMarkdownMutationVariables, GetDocBlockContentQuery, } from '../../../../monday-graphql/generated/graphql/graphql'; +import { + CreateDocBlocksMutation, + CreateDocBlocksMutationVariables, +} from '../../../../monday-graphql/generated/graphql.dev/graphql'; import { ToolInputType, ToolOutputType, ToolType } from '../../../tool'; import { BaseMondayApiTool, createMondayApiAnnotations } from '../base-monday-api-tool'; import { buildUpdateBlockContent, buildCreateBlockInput, applyCommentToDelta } from './update-doc-tool.helpers'; @@ -269,7 +271,7 @@ COMMENTS: afterBlockId, blocksInput: [blockInput], }; - const res = await this.mondayApi.request(createDocBlocks, variables); + const res = await this.mondayApi.request(createDocBlocks, variables, { versionOverride: 'dev' }); const created = res?.create_doc_blocks; if (!created || created.length === 0) { diff --git a/packages/agent-toolkit/src/monday-graphql/generated/graphql.dev/gql.ts b/packages/agent-toolkit/src/monday-graphql/generated/graphql.dev/gql.ts index 9458f59d..18516c3e 100644 --- a/packages/agent-toolkit/src/monday-graphql/generated/graphql.dev/gql.ts +++ b/packages/agent-toolkit/src/monday-graphql/generated/graphql.dev/gql.ts @@ -17,12 +17,14 @@ type Documents = { "\n query SearchItemsDev($query: String!, $limit: Int!, $filters: SearchFiltersInput!) {\n cross_entity_search(query: $query, limit: $limit, filters: $filters) {\n __typename\n ... on ItemSearchResult {\n data {\n id\n }\n }\n }\n }\n": typeof types.SearchItemsDevDocument, "\n query SearchDev($query: String!, $limit: Int!, $filters: SearchFiltersInput!) {\n cross_entity_search(query: $query, limit: $limit, filters: $filters) {\n __typename\n ... on BoardSearchResult {\n entity_type\n data {\n id\n name\n url\n }\n }\n ... on DocSearchResult {\n entity_type\n data {\n id\n name\n }\n }\n }\n }\n": typeof types.SearchDevDocument, "\n mutation BatchUndo($boardId: ID!, $undoRecordId: ID!) {\n batch_undo(board_id: $boardId, undo_record_id: $undoRecordId) {\n success\n }\n }\n": typeof types.BatchUndoDocument, + "\n mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) {\n create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) {\n id\n type\n parent_block_id\n created_at\n content {\n ... on TextBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n }\n ... on ListBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n indentation\n }\n ... on ImageContent {\n width\n alignment\n }\n ... on VideoContent {\n url\n width\n alignment\n }\n ... on TableContent {\n cells {\n row_cells {\n block_id\n }\n }\n }\n ... on LayoutContent {\n cells {\n block_id\n }\n }\n ... on NoticeBoxContent {\n theme\n alignment\n direction\n }\n ... on DividerContent {\n alignment\n direction\n }\n }\n }\n }\n": typeof types.CreateDocBlocksDocument, "\n query getUserContext {\n me {\n id\n name\n title\n }\n favorites {\n object {\n id\n type\n }\n }\n intelligence {\n relevant_boards(limit: 10) {\n id\n board {\n name\n }\n }\n relevant_people(limit: 10) {\n id\n user {\n name\n }\n }\n }\n }\n": typeof types.GetUserContextDocument, }; const documents: Documents = { "\n query SearchItemsDev($query: String!, $limit: Int!, $filters: SearchFiltersInput!) {\n cross_entity_search(query: $query, limit: $limit, filters: $filters) {\n __typename\n ... on ItemSearchResult {\n data {\n id\n }\n }\n }\n }\n": types.SearchItemsDevDocument, "\n query SearchDev($query: String!, $limit: Int!, $filters: SearchFiltersInput!) {\n cross_entity_search(query: $query, limit: $limit, filters: $filters) {\n __typename\n ... on BoardSearchResult {\n entity_type\n data {\n id\n name\n url\n }\n }\n ... on DocSearchResult {\n entity_type\n data {\n id\n name\n }\n }\n }\n }\n": types.SearchDevDocument, "\n mutation BatchUndo($boardId: ID!, $undoRecordId: ID!) {\n batch_undo(board_id: $boardId, undo_record_id: $undoRecordId) {\n success\n }\n }\n": types.BatchUndoDocument, + "\n mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) {\n create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) {\n id\n type\n parent_block_id\n created_at\n content {\n ... on TextBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n }\n ... on ListBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n indentation\n }\n ... on ImageContent {\n width\n alignment\n }\n ... on VideoContent {\n url\n width\n alignment\n }\n ... on TableContent {\n cells {\n row_cells {\n block_id\n }\n }\n }\n ... on LayoutContent {\n cells {\n block_id\n }\n }\n ... on NoticeBoxContent {\n theme\n alignment\n direction\n }\n ... on DividerContent {\n alignment\n direction\n }\n }\n }\n }\n": types.CreateDocBlocksDocument, "\n query getUserContext {\n me {\n id\n name\n title\n }\n favorites {\n object {\n id\n type\n }\n }\n intelligence {\n relevant_boards(limit: 10) {\n id\n board {\n name\n }\n }\n relevant_people(limit: 10) {\n id\n user {\n name\n }\n }\n }\n }\n": types.GetUserContextDocument, }; @@ -52,6 +54,10 @@ export function graphql(source: "\n query SearchDev($query: String!, $limit: In * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql(source: "\n mutation BatchUndo($boardId: ID!, $undoRecordId: ID!) {\n batch_undo(board_id: $boardId, undo_record_id: $undoRecordId) {\n success\n }\n }\n"): (typeof documents)["\n mutation BatchUndo($boardId: ID!, $undoRecordId: ID!) {\n batch_undo(board_id: $boardId, undo_record_id: $undoRecordId) {\n success\n }\n }\n"]; +/** + * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function graphql(source: "\n mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) {\n create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) {\n id\n type\n parent_block_id\n created_at\n content {\n ... on TextBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n }\n ... on ListBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n indentation\n }\n ... on ImageContent {\n width\n alignment\n }\n ... on VideoContent {\n url\n width\n alignment\n }\n ... on TableContent {\n cells {\n row_cells {\n block_id\n }\n }\n }\n ... on LayoutContent {\n cells {\n block_id\n }\n }\n ... on NoticeBoxContent {\n theme\n alignment\n direction\n }\n ... on DividerContent {\n alignment\n direction\n }\n }\n }\n }\n"): (typeof documents)["\n mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) {\n create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) {\n id\n type\n parent_block_id\n created_at\n content {\n ... on TextBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n }\n ... on ListBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n indentation\n }\n ... on ImageContent {\n width\n alignment\n }\n ... on VideoContent {\n url\n width\n alignment\n }\n ... on TableContent {\n cells {\n row_cells {\n block_id\n }\n }\n }\n ... on LayoutContent {\n cells {\n block_id\n }\n }\n ... on NoticeBoxContent {\n theme\n alignment\n direction\n }\n ... on DividerContent {\n alignment\n direction\n }\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/packages/agent-toolkit/src/monday-graphql/generated/graphql.dev/graphql.ts b/packages/agent-toolkit/src/monday-graphql/generated/graphql.dev/graphql.ts index 71954e7c..6d916d74 100644 --- a/packages/agent-toolkit/src/monday-graphql/generated/graphql.dev/graphql.ts +++ b/packages/agent-toolkit/src/monday-graphql/generated/graphql.dev/graphql.ts @@ -14448,6 +14448,15 @@ export type BatchUndoMutationVariables = Exact<{ export type BatchUndoMutation = { __typename?: 'Mutation', batch_undo?: { __typename?: 'BatchUndoResult', success: boolean } | null }; +export type CreateDocBlocksMutationVariables = Exact<{ + docId: Scalars['ID']['input']; + afterBlockId?: InputMaybe; + blocksInput: Array | CreateBlockInput; +}>; + + +export type CreateDocBlocksMutation = { __typename?: 'Mutation', create_doc_blocks?: Array<{ __typename?: 'DocumentBlockV2', id: string, type?: string | null, parent_block_id?: string | null, created_at?: string | null, content: Array<{ __typename?: 'DividerContent', alignment?: BlockAlignment | null, direction?: BlockDirection | null } | { __typename?: 'ImageContent', width?: number | null, alignment?: BlockAlignment | null } | { __typename?: 'LayoutContent', cells?: Array<{ __typename?: 'Cell', block_id: string }> | null } | { __typename?: 'ListBlockContent', alignment?: BlockAlignment | null, direction?: BlockDirection | null, indentation?: number | null, delta_format: Array<{ __typename?: 'Operation', insert?: { __typename?: 'InsertOps', text?: string | null } | null, attributes?: { __typename?: 'Attributes', bold?: boolean | null, italic?: boolean | null } | null }> } | { __typename?: 'NoticeBoxContent', theme: NoticeBoxTheme, alignment?: BlockAlignment | null, direction?: BlockDirection | null } | { __typename?: 'PageBreakContent' } | { __typename?: 'TableContent', cells?: Array<{ __typename?: 'TableRow', row_cells: Array<{ __typename?: 'Cell', block_id: string }> }> | null } | { __typename?: 'TextBlockContent', alignment?: BlockAlignment | null, direction?: BlockDirection | null, delta_format: Array<{ __typename?: 'Operation', insert?: { __typename?: 'InsertOps', text?: string | null } | null, attributes?: { __typename?: 'Attributes', bold?: boolean | null, italic?: boolean | null } | null }> } | { __typename?: 'VideoContent', url: string, width?: number | null, alignment?: BlockAlignment | null } | null> }> | null }; + export type GetUserContextQueryVariables = Exact<{ [key: string]: never; }>; @@ -14457,4 +14466,5 @@ export type GetUserContextQuery = { __typename?: 'Query', me?: { __typename?: 'U export const SearchItemsDevDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SearchItemsDev"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query"}},"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"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SearchFiltersInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cross_entity_search"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"query"},"value":{"kind":"Variable","name":{"kind":"Name","value":"query"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ItemSearchResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const SearchDevDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SearchDev"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query"}},"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"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SearchFiltersInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cross_entity_search"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"query"},"value":{"kind":"Variable","name":{"kind":"Name","value":"query"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BoardSearchResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entity_type"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DocSearchResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entity_type"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const BatchUndoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"BatchUndo"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"boardId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"undoRecordId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"batch_undo"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"board_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"boardId"}}},{"kind":"Argument","name":{"kind":"Name","value":"undo_record_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"undoRecordId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode; +export const CreateDocBlocksDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createDocBlocks"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"docId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"afterBlockId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"blocksInput"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateBlockInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"create_doc_blocks"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"docId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"docId"}}},{"kind":"Argument","name":{"kind":"Name","value":"afterBlockId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"afterBlockId"}}},{"kind":"Argument","name":{"kind":"Name","value":"blocksInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"blocksInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"parent_block_id"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"content"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TextBlockContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"delta_format"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insert"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"text"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bold"}},{"kind":"Field","name":{"kind":"Name","value":"italic"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListBlockContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"delta_format"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insert"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"text"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bold"}},{"kind":"Field","name":{"kind":"Name","value":"italic"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"indentation"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ImageContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"width"}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VideoContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"width"}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TableContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cells"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"row_cells"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block_id"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LayoutContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cells"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block_id"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NoticeBoxContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"theme"}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DividerContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"alignment"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const GetUserContextDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getUserContext"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}},{"kind":"Field","name":{"kind":"Name","value":"favorites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"object"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"intelligence"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"relevant_boards"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"board"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"relevant_people"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/agent-toolkit/src/monday-graphql/generated/graphql/gql.ts b/packages/agent-toolkit/src/monday-graphql/generated/graphql/gql.ts index 008ecd74..b6c82402 100644 --- a/packages/agent-toolkit/src/monday-graphql/generated/graphql/gql.ts +++ b/packages/agent-toolkit/src/monday-graphql/generated/graphql/gql.ts @@ -78,7 +78,6 @@ type Documents = { "\n query getDocBoardItem($boardId: ID!) {\n boards(ids: [$boardId]) {\n items_page(limit: 1) {\n items {\n id\n }\n }\n }\n }\n": typeof types.GetDocBoardItemDocument, "\n query getDocBlockContent($docId: [ID!]) {\n docs(ids: $docId) {\n blocks {\n id\n type\n content\n }\n }\n }\n": typeof types.GetDocBlockContentDocument, "\n mutation createDocComment($itemId: ID!, $body: String!, $parentId: ID, $mentionsList: [UpdateMention]) {\n create_update(body: $body, item_id: $itemId, parent_id: $parentId, mentions_list: $mentionsList) {\n id\n body\n created_at\n }\n }\n": typeof types.CreateDocCommentDocument, - "\n mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) {\n create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) {\n id\n type\n parent_block_id\n created_at\n content {\n ... on TextBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n }\n ... on ListBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n indentation\n }\n ... on ImageContent {\n width\n alignment\n }\n ... on VideoContent {\n url\n width\n alignment\n }\n ... on TableContent {\n cells {\n row_cells {\n block_id\n }\n }\n }\n ... on LayoutContent {\n cells {\n block_id\n }\n }\n ... on NoticeBoxContent {\n theme\n alignment\n direction\n }\n ... on DividerContent {\n alignment\n direction\n }\n }\n }\n }\n": typeof types.CreateDocBlocksDocument, "\n mutation updateFolder(\n $folderId: ID!\n $name: String\n $color: FolderColor\n $fontWeight: FolderFontWeight\n $customIcon: FolderCustomIcon\n $parentFolderId: ID\n $workspaceId: ID\n $accountProductId: ID\n $position: DynamicPosition\n ) {\n update_folder(\n folder_id: $folderId\n name: $name\n color: $color\n font_weight: $fontWeight\n custom_icon: $customIcon\n parent_folder_id: $parentFolderId\n workspace_id: $workspaceId\n account_product_id: $accountProductId\n position: $position\n ) {\n id\n name\n }\n }\n": typeof types.UpdateFolderDocument, "\n mutation updateWorkspace($id: ID!, $attributes: UpdateWorkspaceAttributesInput!) {\n update_workspace(id: $id, attributes: $attributes) {\n id\n name\n }\n }\n": typeof types.UpdateWorkspaceDocument, "\n query getFavoriteDetails(\n $boardIds: [ID!]\n $folderIds: [ID!]\n $workspaceIds: [ID!]\n $dashboardIds: [ID!]\n ) {\n boards(ids: $boardIds) {\n id\n name\n }\n folders(ids: $folderIds) {\n id\n name\n }\n workspaces(ids: $workspaceIds) {\n id\n name\n }\n dashboards: boards(ids: $dashboardIds) {\n id\n name\n }\n }\n": typeof types.GetFavoriteDetailsDocument, @@ -192,7 +191,6 @@ const documents: Documents = { "\n query getDocBoardItem($boardId: ID!) {\n boards(ids: [$boardId]) {\n items_page(limit: 1) {\n items {\n id\n }\n }\n }\n }\n": types.GetDocBoardItemDocument, "\n query getDocBlockContent($docId: [ID!]) {\n docs(ids: $docId) {\n blocks {\n id\n type\n content\n }\n }\n }\n": types.GetDocBlockContentDocument, "\n mutation createDocComment($itemId: ID!, $body: String!, $parentId: ID, $mentionsList: [UpdateMention]) {\n create_update(body: $body, item_id: $itemId, parent_id: $parentId, mentions_list: $mentionsList) {\n id\n body\n created_at\n }\n }\n": types.CreateDocCommentDocument, - "\n mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) {\n create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) {\n id\n type\n parent_block_id\n created_at\n content {\n ... on TextBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n }\n ... on ListBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n indentation\n }\n ... on ImageContent {\n width\n alignment\n }\n ... on VideoContent {\n url\n width\n alignment\n }\n ... on TableContent {\n cells {\n row_cells {\n block_id\n }\n }\n }\n ... on LayoutContent {\n cells {\n block_id\n }\n }\n ... on NoticeBoxContent {\n theme\n alignment\n direction\n }\n ... on DividerContent {\n alignment\n direction\n }\n }\n }\n }\n": types.CreateDocBlocksDocument, "\n mutation updateFolder(\n $folderId: ID!\n $name: String\n $color: FolderColor\n $fontWeight: FolderFontWeight\n $customIcon: FolderCustomIcon\n $parentFolderId: ID\n $workspaceId: ID\n $accountProductId: ID\n $position: DynamicPosition\n ) {\n update_folder(\n folder_id: $folderId\n name: $name\n color: $color\n font_weight: $fontWeight\n custom_icon: $customIcon\n parent_folder_id: $parentFolderId\n workspace_id: $workspaceId\n account_product_id: $accountProductId\n position: $position\n ) {\n id\n name\n }\n }\n": types.UpdateFolderDocument, "\n mutation updateWorkspace($id: ID!, $attributes: UpdateWorkspaceAttributesInput!) {\n update_workspace(id: $id, attributes: $attributes) {\n id\n name\n }\n }\n": types.UpdateWorkspaceDocument, "\n query getFavoriteDetails(\n $boardIds: [ID!]\n $folderIds: [ID!]\n $workspaceIds: [ID!]\n $dashboardIds: [ID!]\n ) {\n boards(ids: $boardIds) {\n id\n name\n }\n folders(ids: $folderIds) {\n id\n name\n }\n workspaces(ids: $workspaceIds) {\n id\n name\n }\n dashboards: boards(ids: $dashboardIds) {\n id\n name\n }\n }\n": types.GetFavoriteDetailsDocument, @@ -512,10 +510,6 @@ export function graphql(source: "\n query getDocBlockContent($docId: [ID!]) {\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql(source: "\n mutation createDocComment($itemId: ID!, $body: String!, $parentId: ID, $mentionsList: [UpdateMention]) {\n create_update(body: $body, item_id: $itemId, parent_id: $parentId, mentions_list: $mentionsList) {\n id\n body\n created_at\n }\n }\n"): (typeof documents)["\n mutation createDocComment($itemId: ID!, $body: String!, $parentId: ID, $mentionsList: [UpdateMention]) {\n create_update(body: $body, item_id: $itemId, parent_id: $parentId, mentions_list: $mentionsList) {\n id\n body\n created_at\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) {\n create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) {\n id\n type\n parent_block_id\n created_at\n content {\n ... on TextBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n }\n ... on ListBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n indentation\n }\n ... on ImageContent {\n width\n alignment\n }\n ... on VideoContent {\n url\n width\n alignment\n }\n ... on TableContent {\n cells {\n row_cells {\n block_id\n }\n }\n }\n ... on LayoutContent {\n cells {\n block_id\n }\n }\n ... on NoticeBoxContent {\n theme\n alignment\n direction\n }\n ... on DividerContent {\n alignment\n direction\n }\n }\n }\n }\n"): (typeof documents)["\n mutation createDocBlocks($docId: ID!, $afterBlockId: String, $blocksInput: [CreateBlockInput!]!) {\n create_doc_blocks(docId: $docId, afterBlockId: $afterBlockId, blocksInput: $blocksInput) {\n id\n type\n parent_block_id\n created_at\n content {\n ... on TextBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n }\n ... on ListBlockContent {\n delta_format {\n insert {\n text\n }\n attributes {\n bold\n italic\n }\n }\n alignment\n direction\n indentation\n }\n ... on ImageContent {\n width\n alignment\n }\n ... on VideoContent {\n url\n width\n alignment\n }\n ... on TableContent {\n cells {\n row_cells {\n block_id\n }\n }\n }\n ... on LayoutContent {\n cells {\n block_id\n }\n }\n ... on NoticeBoxContent {\n theme\n alignment\n direction\n }\n ... on DividerContent {\n alignment\n direction\n }\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/packages/agent-toolkit/src/monday-graphql/generated/graphql/graphql.ts b/packages/agent-toolkit/src/monday-graphql/generated/graphql/graphql.ts index d2bd6793..b6886564 100644 --- a/packages/agent-toolkit/src/monday-graphql/generated/graphql/graphql.ts +++ b/packages/agent-toolkit/src/monday-graphql/generated/graphql/graphql.ts @@ -918,46 +918,11 @@ export type AssignTeamOwnersResult = { team?: Maybe; }; -/** Text formatting attributes (bold, italic, links, colors, etc.) */ -export type Attributes = { - __typename?: 'Attributes'; - /** Background color for text highlighting (hex, rgb, or named color) */ - background?: Maybe; - /** Apply bold formatting to the text */ - bold?: Maybe; - /** Apply inline code formatting to the text */ - code?: Maybe; - /** Text color (hex, rgb, or named color) */ - color?: Maybe; - /** Apply italic formatting to the text */ - italic?: Maybe; - /** URL to create a hyperlink */ - link?: Maybe; - /** Apply strikethrough formatting to the text */ - strike?: Maybe; - /** Apply underline formatting to the text */ - underline?: Maybe; -}; - -/** Text formatting attributes (bold, italic, links, colors, etc.) */ -export type AttributesInput = { - /** Background color for text highlighting (hex, rgb, or named color) */ - background?: InputMaybe; - /** Apply bold formatting to the text */ - bold?: InputMaybe; - /** Apply inline code formatting to the text */ - code?: InputMaybe; - /** Text color (hex, rgb, or named color) */ - color?: InputMaybe; - /** Apply italic formatting to the text */ - italic?: InputMaybe; - /** URL to create a hyperlink */ - link?: InputMaybe; - /** Apply strikethrough formatting to the text */ - strike?: InputMaybe; - /** Apply underline formatting to the text */ - underline?: InputMaybe; -}; +/** The type of entity that a reaction is attributed to. */ +export enum AttributionEntity { + /** An AI agent */ + Agent = 'AGENT' +} export type AuditEventCatalogueEntry = { __typename?: 'AuditEventCatalogueEntry'; @@ -1047,13 +1012,6 @@ export type BatteryValueItem = { key: Scalars['ID']['output']; }; -/** Alignment options for blocks */ -export enum BlockAlignment { - Center = 'CENTER', - Left = 'LEFT', - Right = 'RIGHT' -} - /** Describes what type of change occurred to a block between two versions. */ export type BlockChanges = { __typename?: 'BlockChanges'; @@ -1065,15 +1023,6 @@ export type BlockChanges = { deleted?: Maybe; }; -/** Abstract union type representing different types of block content */ -export type BlockContent = DividerContent | ImageContent | LayoutContent | ListBlockContent | NoticeBoxContent | PageBreakContent | TableContent | TextBlockContent | VideoContent; - -/** Text direction options for blocks */ -export enum BlockDirection { - Ltr = 'LTR', - Rtl = 'RTL' -} - /** Automation block execution event */ export type BlockEvent = { __typename?: 'BlockEvent'; @@ -1128,17 +1077,6 @@ export type BlockEventsPage = { blockEvents?: Maybe>; }; -/** Object representing structured data within a text block */ -export type BlotContent = DocsColumnValue | Mention; - -/** Object representing structured data within a text block */ -export type BlotInput = { - /** Column value blot data */ - column_value?: InputMaybe; - /** Mention blot data */ - mention?: InputMaybe; -}; - /** A monday.com board. */ export type Board = { __typename?: 'Board'; @@ -1514,83 +1452,6 @@ export enum BoardsOrderBy { UsedAt = 'used_at' } -/** Reason for failure when status is Rejected or Failed */ -export enum BulkImportFailureReason { - /** The account item capacity was exceeded. */ - AccountCapacityExceeded = 'ACCOUNT_CAPACITY_EXCEEDED', - /** The authorization failed. */ - AuthorizationFailed = 'AUTHORIZATION_FAILED', - /** The board capacity exceeded. */ - BoardCapacityExceeded = 'BOARD_CAPACITY_EXCEEDED', - /** An internal error occurred. */ - InternalError = 'INTERNAL_ERROR', - /** The upload is invalid. */ - InvalidUpload = 'INVALID_UPLOAD', - /** The permission was denied. */ - PermissionDenied = 'PERMISSION_DENIED' -} - -/** Initialization response for bulk import containing import ID and upload URL */ -export type BulkImportInit = { - __typename?: 'BulkImportInit'; - /** The unique identifier of the bulk import operation */ - import_id?: Maybe; - /** The URL where the file should be uploaded for processing */ - upload_url?: Maybe; -}; - -/** Item counts for a bulk import process */ -export type BulkImportItemCounts = { - __typename?: 'BulkImportItemCounts'; - /** Number of items that have been created */ - created?: Maybe; - /** Number of valid items that failed during import execution */ - failed?: Maybe; - /** Number of items that failed validation */ - invalid?: Maybe; - /** Number of items that were skipped */ - skipped?: Maybe; - /** Total number of items submitted for import */ - submitted?: Maybe; - /** Number of items that have been updated */ - updated?: Maybe; -}; - -/** Current state of the import process */ -export enum BulkImportState { - /** The import is completed. */ - Completed = 'COMPLETED', - /** The import is failed. */ - Failed = 'FAILED', - /** The import is processing. */ - Processing = 'PROCESSING', - /** The import is rejected. */ - Rejected = 'REJECTED', - /** The upload is pending. */ - UploadPending = 'UPLOAD_PENDING' -} - -/** Status information for a bulk import process */ -export type BulkImportStatus = { - __typename?: 'BulkImportStatus'; - /** Item counts breakdown for the import process */ - counts?: Maybe; - /** User-friendly error message explaining why the import failed or was rejected */ - failure_message?: Maybe; - /** Reason for failure when status is Rejected or Failed */ - failure_reason?: Maybe; - /** Indicates if the upload is completely done */ - fully_imported?: Maybe; - /** Progress percentage (0-100) of the import process */ - progress_percentage?: Maybe; - /** Indicates if a report file has been generated */ - report_created?: Maybe; - /** URL to download the import report, valid for 10 minutes */ - report_url?: Maybe; - /** Current state of the import process */ - status?: Maybe; -}; - export type ButtonValue = ColumnValue & { __typename?: 'ButtonValue'; /** The button's color in hex value. */ @@ -1641,13 +1502,6 @@ export enum CalculatedFunction { Sum = 'SUM' } -/** A cell containing a reference to a block */ -export type Cell = { - __typename?: 'Cell'; - /** The ID of the block representing the cell (parent block of all the content blocks in the cell) */ - block_id: Scalars['String']['output']; -}; - /** The result of adding users to / removing users from a team. */ export type ChangeTeamMembershipsResult = { __typename?: 'ChangeTeamMembershipsResult'; @@ -1790,19 +1644,6 @@ export type ColumnPropertyInput = { export type ColumnSettings = DropdownColumnSettings | StatusColumnSettings; -/** Column style configuration */ -export type ColumnStyle = { - __typename?: 'ColumnStyle'; - /** The width percentage of the column */ - width: Scalars['Int']['output']; -}; - -/** Column style configuration input */ -export type ColumnStyleInput = { - /** The width percentage of the column */ - width: Scalars['Int']['input']; -}; - /** Types of columns supported by the API */ export enum ColumnType { /** Number items according to their order in the group/board */ @@ -2047,34 +1888,6 @@ export type CreateAppResponse = { signing_secret?: Maybe; }; -/** - * Choose one specific block type to create. - * - * 💡 TIP: Before using table_block, consider add_content_to_doc_from_markdown for tables with data. - * - * table_block creates empty structure requiring manual cell population. - */ -export type CreateBlockInput = { - /** Create a divider block */ - divider_block?: InputMaybe; - /** Create an image block */ - image_block?: InputMaybe; - /** Create a layout block. Capture its returned ID; nest child blocks by setting parentBlockId to that ID and use afterBlockId for sibling ordering. */ - layout_block?: InputMaybe; - /** Create a list block (bulleted, numbered, checklist) */ - list_block?: InputMaybe; - /** The notice-box's own ID must be captured. Every block that should appear inside it must be created with parentBlockId = that ID (and can still use afterBlockId for ordering among siblings). */ - notice_box_block?: InputMaybe; - /** Create a page break block */ - page_break_block?: InputMaybe; - /** Create a table block. Capture its returned ID; nest child blocks by setting parentBlockId to that ID and use afterBlockId for sibling ordering. */ - table_block?: InputMaybe; - /** Create a text block (normal text, titles) */ - text_block?: InputMaybe; - /** Create a video block */ - video_block?: InputMaybe; -}; - /** Data for creating a department. */ export type CreateDepartmentDataInput = { /** The name of the department. */ @@ -2694,29 +2507,6 @@ export enum DiscountPeriod { Yearly = 'YEARLY' } -/** Input for creating divider blocks */ -export type DividerBlockInput = { - /** The parent block id to append the created block under. */ - parent_block_id?: InputMaybe; -}; - -/** Content for a divider block */ -export type DividerContent = DocBaseBlockContent & { - __typename?: 'DividerContent'; - /** The alignment of the block content */ - alignment?: Maybe; - /** The text direction of the block content */ - direction?: Maybe; -}; - -/** Base interface for all block content types */ -export type DocBaseBlockContent = { - /** The alignment of the block content */ - alignment?: Maybe; - /** The text direction of the block content */ - direction?: Maybe; -}; - /** Various documents blocks types, such as text. */ export enum DocBlockContentType { /** Bulleted list block */ @@ -2777,6 +2567,8 @@ export enum DocKind { /** A single restoring point (snapshot) in the document version history. Represents a group of changes made within a time window, including which users made changes. */ export type DocRestoringPoint = { __typename?: 'DocRestoringPoint'; + /** AI agents that contributed changes in this restoring point time window. */ + agent_attributions?: Maybe>; /** The ISO 8601 timestamp of when this restoring point was captured. */ date?: Maybe; /** The type of restoring point. "publish" indicates the document was published at this point. Null for regular edit snapshots. */ @@ -2825,33 +2617,6 @@ export type DocVersionHistory = { restoring_points?: Maybe>; }; -/** Column value reference for displaying board item column data */ -export type DocsColumnValue = { - __typename?: 'DocsColumnValue'; - /** The ID of the column */ - column_id?: Maybe; - /** The ID of the board item */ - item_id?: Maybe; -}; - -/** Column value reference for displaying board item column data */ -export type DocsColumnValueInput = { - /** The ID of the column */ - column_id: Scalars['String']['input']; - /** The ID of the board item */ - item_id: Scalars['ID']['input']; -}; - -/** Type of mention - user, document, or board */ -export enum DocsMention { - /** Mention of a board */ - Board = 'BOARD', - /** Mention of a document */ - Doc = 'DOC', - /** Mention of a user */ - User = 'USER' -} - /** Options to order by. */ export enum DocsOrderBy { /** The rank order of the document creation time (desc). */ @@ -2951,29 +2716,6 @@ export type DocumentBlockIdOnly = { id: Scalars['String']['output']; }; -/** Represents a content block — the fundamental building unit of a monday.com document. Each block encapsulates its structured content, hierarchical relationships, and associated metadata. */ -export type DocumentBlockV2 = { - __typename?: 'DocumentBlockV2'; - /** The block's content as an array of structured content blocks. */ - content: Array>; - /** The block's creation date. */ - created_at?: Maybe; - /** The block's creator. */ - created_by?: Maybe; - /** The block's document unique identifier. */ - doc_id?: Maybe; - /** The block's unique identifier. */ - id: Scalars['ID']['output']; - /** The block's parent block unique identifier. Used for nesting (e.g., content inside table cells, layout columns, or notice boxes). Null for top-level blocks. */ - parent_block_id?: Maybe; - /** The block's position on the document (auto-generated). Higher numbers appear later in document. Use afterBlockId in mutations to control ordering. */ - position?: Maybe; - /** The block content type. */ - type?: Maybe; - /** The block's last updated date. */ - updated_at?: Maybe; -}; - export type DropdownColumnSettings = { __typename?: 'DropdownColumnSettings'; labels?: Maybe>; @@ -3635,6 +3377,7 @@ export enum FormFontSize { Small = 'Small' } +/** String specifying the form display format. Can be a step by step form or a classic one page form. */ export enum FormFormat { Classic = 'Classic', OneByOne = 'OneByOne' @@ -3769,6 +3512,7 @@ export type FormQuestion = { /** Boolean indicating if the question must be answered before form submission. */ required: Scalars['Boolean']['output']; settings?: Maybe; + /** Conditional logic rules that control when this question is displayed based on other question answers. */ showIfRules?: Maybe; /** The question text displayed to respondents. Must be at least 1 character long and clearly indicate the expected response. */ title: Scalars['String']['output']; @@ -4227,31 +3971,6 @@ export type HourValue = ColumnValue & { value?: Maybe; }; -/** Input for creating image blocks */ -export type ImageBlockInput = { - /** The monday.com asset ID of the image */ - asset_id?: InputMaybe; - /** The parent block id to append the created block under. */ - parent_block_id?: InputMaybe; - /** The public URL of the image */ - public_url?: InputMaybe; - /** The width of the image */ - width?: InputMaybe; -}; - -/** Content for an image block */ -export type ImageContent = DocBaseBlockContent & { - __typename?: 'ImageContent'; - /** The alignment of the block content */ - alignment?: Maybe; - /** The text direction of the block content */ - direction?: Maybe; - /** The public URL of the image */ - public_url: Scalars['String']['output']; - /** The width of the image */ - width?: Maybe; -}; - /** Response from importing an HTML document. Contains success status and the ID of the newly created document. */ export type ImportDocFromHtmlResult = { __typename?: 'ImportDocFromHtmlResult'; @@ -4263,23 +3982,6 @@ export type ImportDocFromHtmlResult = { success: Scalars['Boolean']['output']; }; -/** Content inserted in delta operations */ -export type InsertOps = { - __typename?: 'InsertOps'; - /** Object representing structured data within a text block */ - blot?: Maybe; - /** Plain text content */ - text?: Maybe; -}; - -/** Content to insert in delta operations */ -export type InsertOpsInput = { - /** Object representing structured data within a text block */ - blot?: InputMaybe; - /** Plain text content */ - text?: InputMaybe; -}; - /** Result of executing an integration block */ export type IntegrationExecutionResult = { __typename?: 'IntegrationExecutionResult'; @@ -4601,48 +4303,6 @@ export type LastUpdatedValue = ColumnValue & { value?: Maybe; }; -/** - * Input for creating layout blocks. - * - * Behaviour: - * • When a layout is created the system automatically generates - * column_count child "cell" blocks (one per column). - * • The layout block itself is just a container; each generated cell block has - * parentBlockId === and acts as the direct parent for any - * content you want to insert into that column. - * • The creation response already contains the ordered list of generated cell - * IDs under `content[0].cells` (1-D array from left to right). - * • To populate a layout: - * 1. Create the layout and capture its ID. - * 2. Obtain the cell block IDs either by inspecting `content[0].cells` - * in the response **or** by querying the document for children of the - * layout block. - * 3. Create your content blocks (textBlock, imageBlock, tableBlock, etc.) - * with parentBlockId set to the specific cell block ID. - * • Use afterBlockId only to order siblings *within* the same cell. - */ -export type LayoutBlockInput = { - /** The number of columns in the layout */ - column_count: Scalars['Int']['input']; - /** The column style configuration */ - column_style?: InputMaybe>; - /** The parent block id to append the created block under. */ - parent_block_id?: InputMaybe; -}; - -/** Content for a layout block */ -export type LayoutContent = DocBaseBlockContent & { - __typename?: 'LayoutContent'; - /** The alignment of the block content */ - alignment?: Maybe; - /** 1-D array of cells (columns). Each cell carries a blockId reference. */ - cells?: Maybe>; - /** The column style configuration */ - column_style?: Maybe>; - /** The text direction of the block content */ - direction?: Maybe; -}; - /** Input for a single lifecycle event subscription */ export type LifecycleEventInput = { /** The lifecycle event type (e.g., "AppFeatureColumn:create") */ @@ -4676,6 +4336,10 @@ export type LifecycleSubscriptionKind = { export type Like = { __typename?: 'Like'; + /** The reference identifier of the entity that created this reaction on behalf of the user, who this reaction should be attributed to (e.g. agent_{agentId}). */ + attribution_entity_ref?: Maybe; + /** The type of entity that created this reaction. */ + attribution_entity_type?: Maybe; created_at?: Maybe; creator?: Maybe; creator_id?: Maybe; @@ -4705,40 +4369,6 @@ export type LinkValue = ColumnValue & { value?: Maybe; }; -/** Specific types of list blocks */ -export enum ListBlock { - BulletedList = 'BULLETED_LIST', - CheckList = 'CHECK_LIST', - NumberedList = 'NUMBERED_LIST' -} - -/** Content for a list block (bulleted, numbered, todo) */ -export type ListBlockContent = DocBaseBlockContent & { - __typename?: 'ListBlockContent'; - /** The alignment of the block content */ - alignment?: Maybe; - /** The text content in delta format - array of operations with insert content and optional attributes */ - delta_format: Array; - /** The text direction of the block content */ - direction?: Maybe; - /** The indentation level of the list item */ - indentation?: Maybe; -}; - -/** Input for creating list blocks (bulleted, numbered, todo) */ -export type ListBlockInput = { - alignment?: InputMaybe; - /** The text content in delta format - array of operations with insert content and optional attributes */ - delta_format: Array; - direction?: InputMaybe; - /** The indentation level of the list item */ - indentation?: InputMaybe; - /** The specific type of list block (defaults to bulleted list) */ - list_block_type?: InputMaybe; - /** The parent block id to append the created block under. */ - parent_block_id?: InputMaybe; -}; - export type LocationValue = ColumnValue & { __typename?: 'LocationValue'; /** Address */ @@ -4991,23 +4621,6 @@ export type MeetingsResponse = { page_info?: Maybe; }; -/** Mention object for user or document references */ -export type Mention = { - __typename?: 'Mention'; - /** The unique identifier of the mentioned entity */ - id?: Maybe; - /** The type of the mentioned entity */ - type?: Maybe; -}; - -/** Mention object for user or document references */ -export type MentionInput = { - /** The ID of the mentioned user or document */ - id: Scalars['ID']['input']; - /** The type of mention: user, doc, or board */ - type: DocsMention; -}; - /** The type of the mention. */ export enum MentionType { /** Mention an AI agent */ @@ -5119,8 +4732,6 @@ export type Mutation = { batch_extend_trial_period?: Maybe; /** Batch update the dependency column values in a board. Limited to 50 items per batch. */ batch_update_dependency_column: Scalars['JSON']['output']; - /** Initialize bulk import for a board and group. Returns import ID and upload URL to begin the process. */ - bulk_import_items?: Maybe; /** Change a column's properties */ change_column_metadata?: Maybe; /** Change a column's title */ @@ -5162,8 +4773,6 @@ export type Mutation = { create_doc?: Maybe; /** Create new document block */ create_doc_block?: Maybe; - /** 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. */ - create_doc_blocks?: Maybe>; /** Creates a new dropdown column with strongly typed settings. Dropdown columns allow users to select from a predefined list of options. This mutation is specifically for dropdown columns and provides type-safe creation with dropdown options configuration. */ create_dropdown_column?: Maybe; /** Create managed column of type dropdown mutation. */ @@ -5598,14 +5207,6 @@ export type MutationBatch_Update_Dependency_ColumnArgs = { }; -/** Root mutation type for the Dependencies service */ -export type MutationBulk_Import_ItemsArgs = { - board_id: Scalars['ID']['input']; - group_id: Scalars['ID']['input']; - on_match?: InputMaybe; -}; - - /** Root mutation type for the Dependencies service */ export type MutationChange_Column_MetadataArgs = { board_id: Scalars['ID']['input']; @@ -5784,14 +5385,6 @@ export type MutationCreate_Doc_BlockArgs = { }; -/** Root mutation type for the Dependencies service */ -export type MutationCreate_Doc_BlocksArgs = { - afterBlockId?: InputMaybe; - blocksInput: Array; - docId: Scalars['ID']['input']; -}; - - /** Root mutation type for the Dependencies service */ export type MutationCreate_Dropdown_ColumnArgs = { after_column_id?: InputMaybe; @@ -6844,32 +6437,6 @@ export type NotetakerQueriesMeetingsArgs = { limit?: InputMaybe; }; -/** The notice-box's own ID must be captured. Every block that should appear inside it must be created with parentBlockId = that ID (and can still use afterBlockId for ordering among siblings). */ -export type NoticeBoxBlockInput = { - /** The parent block id to append the created block under. */ - parent_block_id?: InputMaybe; - theme: NoticeBoxTheme; -}; - -/** Content for a notice box block */ -export type NoticeBoxContent = DocBaseBlockContent & { - __typename?: 'NoticeBoxContent'; - /** The alignment of the block content */ - alignment?: Maybe; - /** The text direction of the block content */ - direction?: Maybe; - /** The theme of the notice box */ - theme: NoticeBoxTheme; -}; - -/** Theme options for notice box blocks */ -export enum NoticeBoxTheme { - General = 'GENERAL', - Info = 'INFO', - Tips = 'TIPS', - Warning = 'WARNING' -} - /** A notification. */ export type Notification = { __typename?: 'Notification'; @@ -7073,39 +6640,6 @@ export type ObjectTypeUniqueKey = { object_type_unique_key?: Maybe; }; -/** Strategy for handling matching items during import */ -export enum OnMatchBehaviour { - /** Skip if a matching item exists */ - Skip = 'SKIP', - /** Update if a matching item exists, otherwise create a new item */ - Upsert = 'UPSERT' -} - -/** Configuration for how to handle matching items during import */ -export type OnMatchInput = { - /** Strategy for handling matching items */ - behaviour: OnMatchBehaviour; - /** The column ID to use for matching (e.g., email, phone number). When importing items, this column value will be used to identify matches. */ - match_column_id: Scalars['String']['input']; -}; - -/** A delta operation with insert content and optional formatting attributes */ -export type Operation = { - __typename?: 'Operation'; - /** Optional formatting attributes (bold, italic, underline, strike, code, link, color, background) */ - attributes?: Maybe; - /** Content to insert - either text or blot object */ - insert?: Maybe; -}; - -/** A delta operation with insert content and optional formatting attributes */ -export type OperationInput = { - /** Optional formatting attributes (bold, italic, underline, strike, code, link, color, background) */ - attributes?: InputMaybe; - /** Content to insert - either text or blot object */ - insert: InsertOpsInput; -}; - /** Defines the sorting order for returned objects in the objects query. */ export enum OrderBy { /** Sort objects by their creation date, from newest to oldest. */ @@ -7152,21 +6686,6 @@ export type Overview = { workspace_id?: Maybe; }; -/** Input for creating page break blocks */ -export type PageBreakBlockInput = { - /** The parent block id to append the created block under. */ - parent_block_id?: InputMaybe; -}; - -/** Content for a page break block */ -export type PageBreakContent = DocBaseBlockContent & { - __typename?: 'PageBreakContent'; - /** The alignment of the block content */ - alignment?: Maybe; - /** The text direction of the block content */ - direction?: Maybe; -}; - /** Pagination metadata for cursor-based pagination. */ export type PageInfo = { __typename?: 'PageInfo'; @@ -7523,8 +7042,6 @@ export type Query = { board_candidates?: Maybe>; /** Get a collection of boards. */ boards?: Maybe>>; - /** Get the status of a bulk import items process */ - bulk_import_items_status: BulkImportStatus; /** Get the complexity data of your queries. */ complexity?: Maybe; /** Fetch a single connection by its unique ID. */ @@ -7780,12 +7297,6 @@ export type QueryBoardsArgs = { }; -/** Root query type for the Dependencies service */ -export type QueryBulk_Import_Items_StatusArgs = { - import_id: Scalars['ID']['input']; -}; - - /** Root query type for the Dependencies service */ export type QueryConnectionArgs = { id: Scalars['Int']['input']; @@ -8168,7 +7679,7 @@ export type QueryWorkspacesArgs = { }; export type QuestionOptionInput = { - /** The label to display for the option */ + /** The display text for the option shown to respondents. Must be at least 1 character long. */ label: Scalars['String']['input']; }; @@ -8315,6 +7826,17 @@ export type ResponseForm = { type?: Maybe; }; +/** An AI agent that contributed changes in this restoring point time window. */ +export type RestoringPointAgentAttribution = { + __typename?: 'RestoringPointAgentAttribution'; + /** The ID of the agent that made changes. */ + agent_id?: Maybe; + /** The display name of the agent, if available. */ + agent_name?: Maybe; + /** The type of entity (e.g. "agent", "workflow"). */ + entity_type?: Maybe; +}; + /** notification settings scope types, the options are account user defaults or user private settings */ export enum ScopeType { AccountNewUserDefaults = 'AccountNewUserDefaults', @@ -8716,59 +8238,6 @@ export type SubtasksValue = ColumnValue & { value?: Maybe; }; -/** - * Input for creating table blocks. - * ⚠️ RECOMMENDATION: Use add_content_to_doc_from_markdown with markdown tables instead for simpler table creation. - * Behavior: - * - When a table is created, the system automatically generates `row_count × column_count` child "cell" blocks (one per cell). - * - The table block is a container. Each generated cell block has `parentBlockId === ` and is used to insert content. - * - * Important: - * - Always use the 2D matrix returned under `content[0].cells` to access cells. - * - This matrix is row-major: `matrix[rowIndex][columnIndex]`. - * - Do not rely on the order returned by `docs { blocks { ... } }`, as it's implementation-specific. - * - * Recommended workflow: - * 1. Create the table and capture its ID. - * 2. Read `content[0].cells` to get the cell ID matrix. - * 3. Use bulk create blocks to create all the child blocks (e.g. textBlock, imageBlock) with `parentBlockId = matrix[row][col]`. - * Use `afterBlockId` only to order siblings within the same cell. - */ -export type TableBlockInput = { - /** The number of columns in the table */ - column_count: Scalars['Int']['input']; - /** The column style configuration */ - column_style?: InputMaybe>; - /** The parent block id to append the created block under. */ - parent_block_id?: InputMaybe; - /** The number of rows in the table */ - row_count: Scalars['Int']['input']; - /** The width of the table */ - width?: InputMaybe; -}; - -/** Content for a table block */ -export type TableContent = DocBaseBlockContent & { - __typename?: 'TableContent'; - /** The alignment of the block content */ - alignment?: Maybe; - /** 2-D array of cells (rows × columns). Each cell contains a blockId reference that represents the parent block for all content blocks within that cell. */ - cells?: Maybe>; - /** The column style configuration */ - column_style?: Maybe>; - /** The text direction of the block content */ - direction?: Maybe; - /** The width of the table */ - width?: Maybe; -}; - -/** A row of cells in a table */ -export type TableRow = { - __typename?: 'TableRow'; - /** The cells in this row */ - row_cells: Array; -}; - /** Settings configuration for table view display options */ export type TableViewSettingsInput = { /** Column visibility configuration for the board view */ @@ -8886,45 +8355,6 @@ export type Template = { process_id?: Maybe; }; -/** Text block formatting types. Controls visual appearance and semantic meaning. */ -export enum TextBlock { - /** Code styling */ - Code = 'CODE', - /** Main document title (H1 equivalent) */ - LargeTitle = 'LARGE_TITLE', - /** Section heading (H2 equivalent) */ - MediumTitle = 'MEDIUM_TITLE', - /** Regular paragraph text */ - NormalText = 'NORMAL_TEXT', - /** Indented quote/blockquote styling */ - Quote = 'QUOTE', - /** Subsection heading (H3 equivalent) */ - SmallTitle = 'SMALL_TITLE' -} - -/** Content for a text block */ -export type TextBlockContent = DocBaseBlockContent & { - __typename?: 'TextBlockContent'; - /** The alignment of the block content */ - alignment?: Maybe; - /** The text content in delta format - array of operations with insert content and optional attributes */ - delta_format: Array; - /** The text direction of the block content */ - direction?: Maybe; -}; - -/** Input for creating text blocks (normal text, titles, quote, code) */ -export type TextBlockInput = { - alignment?: InputMaybe; - /** The text content in delta format - array of operations with insert content and optional attributes */ - delta_format: Array; - direction?: InputMaybe; - /** The parent block id to append the created block under. */ - parent_block_id?: InputMaybe; - /** The specific type of text block (defaults to normal text) */ - text_block_type?: InputMaybe; -}; - export type TextValue = ColumnValue & { __typename?: 'TextValue'; /** The column that this value belongs to. */ @@ -9774,29 +9204,6 @@ export enum VersionKind { ReleaseCandidate = 'release_candidate' } -/** Input for creating video blocks */ -export type VideoBlockInput = { - /** The parent block id to append the created block under. */ - parent_block_id?: InputMaybe; - /** The raw URL of the video */ - raw_url: Scalars['String']['input']; - /** The width of the video */ - width?: InputMaybe; -}; - -/** Content for a video block */ -export type VideoContent = DocBaseBlockContent & { - __typename?: 'VideoContent'; - /** The alignment of the block content */ - alignment?: Maybe; - /** The text direction of the block content */ - direction?: Maybe; - /** The raw URL of the video */ - url: Scalars['String']['output']; - /** The width of the video */ - width?: Maybe; -}; - /** Available view types for board displays */ export enum ViewKind { /** App view for feature-specific display */ @@ -10830,15 +10237,6 @@ export type CreateDocCommentMutationVariables = Exact<{ export type CreateDocCommentMutation = { __typename?: 'Mutation', create_update?: { __typename?: 'Update', id: string, body: string, created_at?: any | null } | null }; -export type CreateDocBlocksMutationVariables = Exact<{ - docId: Scalars['ID']['input']; - afterBlockId?: InputMaybe; - blocksInput: Array | CreateBlockInput; -}>; - - -export type CreateDocBlocksMutation = { __typename?: 'Mutation', create_doc_blocks?: Array<{ __typename?: 'DocumentBlockV2', id: string, type?: string | null, parent_block_id?: string | null, created_at?: string | null, content: Array<{ __typename?: 'DividerContent', alignment?: BlockAlignment | null, direction?: BlockDirection | null } | { __typename?: 'ImageContent', width?: number | null, alignment?: BlockAlignment | null } | { __typename?: 'LayoutContent', cells?: Array<{ __typename?: 'Cell', block_id: string }> | null } | { __typename?: 'ListBlockContent', alignment?: BlockAlignment | null, direction?: BlockDirection | null, indentation?: number | null, delta_format: Array<{ __typename?: 'Operation', insert?: { __typename?: 'InsertOps', text?: string | null } | null, attributes?: { __typename?: 'Attributes', bold?: boolean | null, italic?: boolean | null } | null }> } | { __typename?: 'NoticeBoxContent', theme: NoticeBoxTheme, alignment?: BlockAlignment | null, direction?: BlockDirection | null } | { __typename?: 'PageBreakContent' } | { __typename?: 'TableContent', cells?: Array<{ __typename?: 'TableRow', row_cells: Array<{ __typename?: 'Cell', block_id: string }> }> | null } | { __typename?: 'TextBlockContent', alignment?: BlockAlignment | null, direction?: BlockDirection | null, delta_format: Array<{ __typename?: 'Operation', insert?: { __typename?: 'InsertOps', text?: string | null } | null, attributes?: { __typename?: 'Attributes', bold?: boolean | null, italic?: boolean | null } | null }> } | { __typename?: 'VideoContent', url: string, width?: number | null, alignment?: BlockAlignment | null } | null> }> | null }; - export type UpdateFolderMutationVariables = Exact<{ folderId: Scalars['ID']['input']; name?: InputMaybe; @@ -11263,7 +10661,6 @@ export const GetDocObjectIdByDocIdDocument = {"kind":"Document","definitions":[{ export const GetDocBoardItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getDocBoardItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"boardId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"boards"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"ListValue","values":[{"kind":"Variable","name":{"kind":"Name","value":"boardId"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items_page"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const GetDocBlockContentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getDocBlockContent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"docId"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"docs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"docId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"content"}}]}}]}}]}}]} as unknown as DocumentNode; export const CreateDocCommentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createDocComment"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"itemId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"body"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parentId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"mentionsList"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateMention"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"create_update"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"body"},"value":{"kind":"Variable","name":{"kind":"Name","value":"body"}}},{"kind":"Argument","name":{"kind":"Name","value":"item_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"itemId"}}},{"kind":"Argument","name":{"kind":"Name","value":"parent_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"parentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"mentions_list"},"value":{"kind":"Variable","name":{"kind":"Name","value":"mentionsList"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"body"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}}]}}]}}]} as unknown as DocumentNode; -export const CreateDocBlocksDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createDocBlocks"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"docId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"afterBlockId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"blocksInput"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateBlockInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"create_doc_blocks"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"docId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"docId"}}},{"kind":"Argument","name":{"kind":"Name","value":"afterBlockId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"afterBlockId"}}},{"kind":"Argument","name":{"kind":"Name","value":"blocksInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"blocksInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"parent_block_id"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"content"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TextBlockContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"delta_format"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insert"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"text"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bold"}},{"kind":"Field","name":{"kind":"Name","value":"italic"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ListBlockContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"delta_format"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insert"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"text"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bold"}},{"kind":"Field","name":{"kind":"Name","value":"italic"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"indentation"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ImageContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"width"}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VideoContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"width"}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TableContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cells"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"row_cells"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block_id"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LayoutContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cells"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block_id"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NoticeBoxContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"theme"}},{"kind":"Field","name":{"kind":"Name","value":"alignment"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DividerContent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"alignment"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const UpdateFolderDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateFolder"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"folderId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"color"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"FolderColor"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fontWeight"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"FolderFontWeight"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"customIcon"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"FolderCustomIcon"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parentFolderId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"workspaceId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accountProductId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"position"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DynamicPosition"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"update_folder"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"folder_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"folderId"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"color"},"value":{"kind":"Variable","name":{"kind":"Name","value":"color"}}},{"kind":"Argument","name":{"kind":"Name","value":"font_weight"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fontWeight"}}},{"kind":"Argument","name":{"kind":"Name","value":"custom_icon"},"value":{"kind":"Variable","name":{"kind":"Name","value":"customIcon"}}},{"kind":"Argument","name":{"kind":"Name","value":"parent_folder_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"parentFolderId"}}},{"kind":"Argument","name":{"kind":"Name","value":"workspace_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"workspaceId"}}},{"kind":"Argument","name":{"kind":"Name","value":"account_product_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accountProductId"}}},{"kind":"Argument","name":{"kind":"Name","value":"position"},"value":{"kind":"Variable","name":{"kind":"Name","value":"position"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; export const UpdateWorkspaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateWorkspace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"attributes"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateWorkspaceAttributesInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"update_workspace"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"attributes"},"value":{"kind":"Variable","name":{"kind":"Name","value":"attributes"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; export const GetFavoriteDetailsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getFavoriteDetails"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"boardIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"folderIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"workspaceIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"dashboardIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"boards"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"boardIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"folders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"folderIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaces"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"workspaceIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"dashboards"},"name":{"kind":"Name","value":"boards"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"dashboardIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; From 222645429bb1c15fd9f1794483f41c21ef0a1703 Mon Sep 17 00:00:00 2001 From: Linoy Margan Date: Sun, 12 Apr 2026 11:55:02 +0300 Subject: [PATCH 2/2] chore(update-doc): apply prettier formatting Run prettier on update-doc-tool files after codegen fix. Monday: https://monday.monday.com/boards/18404309029/pulses/11637822468 Co-Authored-By: Claude Sonnet 4.6 --- .../update-doc-tool/update-doc-tool.graphql.ts | 1 - .../platform-api-tools/update-doc-tool/update-doc-tool.ts | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.ts index 72340031..05dc3bcf 100644 --- a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.ts +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.graphql.ts @@ -92,4 +92,3 @@ export const createDocComment = gql` } } `; - diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.ts index d05c6170..bf3de6ca 100644 --- a/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.ts +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/update-doc-tool/update-doc-tool.ts @@ -271,7 +271,9 @@ COMMENTS: afterBlockId, blocksInput: [blockInput], }; - const res = await this.mondayApi.request(createDocBlocks, variables, { versionOverride: 'dev' }); + const res = await this.mondayApi.request(createDocBlocks, variables, { + versionOverride: 'dev', + }); const created = res?.create_doc_blocks; if (!created || created.length === 0) {