diff --git a/packages/agent-toolkit/package.json b/packages/agent-toolkit/package.json index e7a0d473..87487e64 100644 --- a/packages/agent-toolkit/package.json +++ b/packages/agent-toolkit/package.json @@ -1,6 +1,6 @@ { "name": "@mondaydotcomorg/agent-toolkit", - "version": "5.3.3", + "version": "5.4.0", "description": "monday.com agent toolkit", diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/get-account-context/get-account-context-tool.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/get-account-context/get-account-context-tool.ts new file mode 100644 index 00000000..93facd25 --- /dev/null +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/get-account-context/get-account-context-tool.ts @@ -0,0 +1,46 @@ +import { ToolOutputType, ToolType } from '../../../tool'; +import { BaseMondayApiTool, createMondayApiAnnotations } from '../base-monday-api-tool'; +import { getAccountContextQuery } from './get-account-context.graphql'; +import { GetAccountContextQuery } from '../../../../monday-graphql/generated/graphql/graphql'; + +export class GetAccountContextTool extends BaseMondayApiTool { + name = 'get_account_context'; + type = ToolType.READ; + annotations = createMondayApiAnnotations({ + title: 'Get Account Context', + readOnlyHint: true, + destructiveHint: false, + idempotentHint: true, + }); + + getDescription(): string { + return ( + "Fetch the current user's account information including account identity, plan details, active products, and configuration. " + + 'Use this tool when you need to: ' + + 'identify which account the user belongs to (id, name, slug), ' + + "check the account's plan tier, billing period, or user limits (max_users), " + + 'count how many people/members are in the account (returns active_members_count — PREFERRED over listing users when only the count is needed), ' + + 'discover which products are active (core, CRM, software, service, marketing, forms, whiteboard), ' + + 'determine trial status (is_during_trial, is_trial_expired), ' + + 'or get account-level settings (first_day_of_the_week, show_timeline_weekends, country_code).' + ); + } + + getInputSchema(): undefined { + return undefined; + } + + protected async executeInternal(): Promise> { + const { me } = await this.mondayApi.request(getAccountContextQuery, {}); + + if (!me) { + return { + content: 'AUTHENTICATION_ERROR: Unable to fetch account context. Verify API token and user permissions.', + }; + } + + return { + content: me.account, + }; + } +} diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/get-account-context/get-account-context.graphql.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/get-account-context/get-account-context.graphql.ts new file mode 100644 index 00000000..12568b47 --- /dev/null +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/get-account-context/get-account-context.graphql.ts @@ -0,0 +1,34 @@ +import { gql } from 'graphql-request'; + +export const getAccountContextQuery = gql` + query GetAccountContext { + me { + account { + id + name + slug + tier + country_code + created_at + first_day_of_the_week + active_members_count + is_during_trial + is_trial_expired + show_timeline_weekends + sign_up_product_kind + plan { + tier + period + max_users + version + } + products { + id + kind + tier + default_workspace_id + } + } + } + } +`; diff --git a/packages/agent-toolkit/src/core/tools/platform-api-tools/get-account-context/get-account-context.test.ts b/packages/agent-toolkit/src/core/tools/platform-api-tools/get-account-context/get-account-context.test.ts new file mode 100644 index 00000000..a93fa061 --- /dev/null +++ b/packages/agent-toolkit/src/core/tools/platform-api-tools/get-account-context/get-account-context.test.ts @@ -0,0 +1,112 @@ +import { MondayAgentToolkit } from 'src/mcp/toolkit'; +import { callToolByNameRawAsync, createMockApiClient, parseToolResult } from '../test-utils/mock-api-client'; +import { GetAccountContextQuery } from 'src/monday-graphql/generated/graphql/graphql'; +import { FirstDayOfTheWeek } from 'src/monday-graphql/generated/graphql/graphql'; + +describe('GetAccountContextTool', () => { + let mocks: ReturnType; + + beforeEach(() => { + mocks = createMockApiClient(); + jest.spyOn(MondayAgentToolkit.prototype as any, 'createApiClient').mockReturnValue(mocks.mockApiClient); + }); + + const fullAccountResponse: GetAccountContextQuery = { + me: { + account: { + id: '12345', + name: 'Acme Corp', + slug: 'acme-corp', + tier: 'enterprise', + country_code: 'US', + created_at: '2023-01-15', + first_day_of_the_week: FirstDayOfTheWeek.Monday, + active_members_count: 150, + is_during_trial: false, + is_trial_expired: false, + show_timeline_weekends: false, + sign_up_product_kind: 'core', + plan: { + tier: 'enterprise', + period: 'yearly', + max_users: 500, + version: 3, + }, + products: [ + { id: '1', kind: 'core', tier: 'enterprise', default_workspace_id: '100' }, + { id: '2', kind: 'crm', tier: 'enterprise', default_workspace_id: '200' }, + null, + ], + }, + }, + }; + + it('should fetch full account context with plan and products', async () => { + mocks.setResponse(fullAccountResponse); + + const result = await callToolByNameRawAsync('get_account_context', {}); + const parsed = parseToolResult(result); + + expect(parsed.id).toBe('12345'); + expect(parsed.name).toBe('Acme Corp'); + expect(parsed.slug).toBe('acme-corp'); + expect(parsed.tier).toBe('enterprise'); + expect(parsed.plan.tier).toBe('enterprise'); + expect(parsed.plan.period).toBe('yearly'); + expect(parsed.plan.max_users).toBe(500); + expect(parsed.products).toEqual([ + { id: '1', kind: 'core', tier: 'enterprise', default_workspace_id: '100' }, + { id: '2', kind: 'crm', tier: 'enterprise', default_workspace_id: '200' }, + null, + ]); + }); + + it('should handle account with minimal/null optional fields', async () => { + const minimalResponse: GetAccountContextQuery = { + me: { + account: { + id: '99999', + name: 'Minimal Co', + slug: 'minimal-co', + tier: null, + country_code: null, + created_at: null, + first_day_of_the_week: FirstDayOfTheWeek.Sunday, + active_members_count: null, + is_during_trial: null, + is_trial_expired: null, + show_timeline_weekends: true, + sign_up_product_kind: null, + plan: null, + products: null, + }, + }, + }; + + mocks.setResponse(minimalResponse); + + const result = await callToolByNameRawAsync('get_account_context', {}); + const parsed = parseToolResult(result); + + expect(parsed.id).toBe('99999'); + expect(parsed.name).toBe('Minimal Co'); + expect(parsed.plan).toBeNull(); + expect(parsed.products).toBeNull(); + }); + + it('should return auth error when me is null', async () => { + mocks.setResponse({ me: null }); + + const result = await callToolByNameRawAsync('get_account_context', {}); + + expect(result.content[0].text).toBe( + 'AUTHENTICATION_ERROR: Unable to fetch account context. Verify API token and user permissions.', + ); + }); + + it('should handle GraphQL error', async () => { + mocks.setError('Unauthorized'); + const result = await callToolByNameRawAsync('get_account_context', {}); + expect(result.content[0].text).toBe('Failed to execute tool get_account_context: Unauthorized'); + }); +}); 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 7d190764..240d0e28 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 @@ -62,6 +62,7 @@ import { CreateUpdateInMondayTool } from './create-update-tool-ui/create-update- import { UpdateAssetsOnItemTool } from './update-assets-on-item-tool/update-assets-on-item-tool'; import { GetAssetsTool } from './get-assets-tool/get-assets-tool'; import { UserContextTool } from './user-context-tool/user-context-tool'; +import { GetAccountContextTool } from './get-account-context/get-account-context-tool'; import { GetNotetakerMeetingsTool } from './get-notetaker-meetings-tool/get-notetaker-meetings-tool'; import { UndoActionTool } from './undo-action-tool/undo-action-tool'; @@ -114,6 +115,7 @@ export const allGraphqlApiTools: BaseMondayApiToolConstructor[] = [ BoardInsightsTool, SearchTool, UserContextTool, + GetAccountContextTool, UpdateAssetsOnItemTool, GetAssetsTool, GetNotetakerMeetingsTool, @@ -193,6 +195,7 @@ export * from './move-object-tool/move-object-tool'; export * from './board-insights/board-insights-tool'; export * from './search-tool/search-tool'; export * from './user-context-tool/user-context-tool'; +export * from './get-account-context/get-account-context-tool'; export * from './update-assets-on-item-tool/update-assets-on-item-tool'; export * from './get-assets-tool/get-assets-tool'; // Notetaker Tools 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 b6b5dca3..a9bac119 100644 --- a/packages/agent-toolkit/src/monday-graphql/generated/graphql/gql.ts +++ b/packages/agent-toolkit/src/monday-graphql/generated/graphql/gql.ts @@ -37,6 +37,7 @@ type Documents = { "\n mutation CreateWidget($parent: WidgetParentInput!, $kind: ExternalWidget!, $name: String!, $settings: JSON!) {\n create_widget(parent: $parent, kind: $kind, name: $name, settings: $settings) {\n id\n name\n kind\n parent {\n kind\n id\n }\n }\n }\n": typeof types.CreateWidgetDocument, "\n query getBoardData($boardId: ID!, $itemsLimit: Int!, $queryParams: ItemsQuery) {\n boards(ids: [$boardId]) {\n id\n name\n items_page(limit: $itemsLimit, query_params: $queryParams) {\n items {\n id\n name\n column_values {\n id\n text\n type\n value\n ... on PeopleValue {\n persons_and_teams {\n id\n kind\n }\n }\n }\n updates {\n id\n creator_id\n text_body\n created_at\n replies {\n id\n text_body\n created_at\n creator_id\n }\n }\n }\n }\n columns {\n id\n title\n type\n settings\n }\n }\n }\n": typeof types.GetBoardDataDocument, "\n query getUsersByIds($userIds: [ID!]!) {\n users(ids: $userIds) {\n id\n name\n photo_tiny\n }\n }\n": typeof types.GetUsersByIdsDocument, + "\n query GetAccountContext {\n me {\n account {\n id\n name\n slug\n tier\n country_code\n created_at\n first_day_of_the_week\n active_members_count\n is_during_trial\n is_trial_expired\n show_timeline_weekends\n sign_up_product_kind\n plan {\n tier\n period\n max_users\n version\n }\n products {\n id\n kind\n tier\n default_workspace_id\n }\n }\n }\n }\n": typeof types.GetAccountContextDocument, "\n query getAssets($ids: [ID!]!) {\n assets(ids: $ids) {\n id\n name\n file_extension\n file_size\n public_url\n url\n url_thumbnail\n created_at\n original_geometry\n uploaded_by {\n id\n name\n }\n }\n }\n": typeof types.GetAssetsDocument, "\n query GetBoardAllActivity(\n $boardId: ID!\n $fromDate: ISO8601DateTime!\n $toDate: ISO8601DateTime!\n $limit: Int = 1000\n $page: Int = 1\n $includeData: Boolean!\n ) {\n boards(ids: [$boardId]) {\n name\n url\n activity_logs(from: $fromDate, to: $toDate, limit: $limit, page: $page) {\n user_id\n entity\n event\n data @include(if: $includeData)\n created_at\n }\n }\n }\n": typeof types.GetBoardAllActivityDocument, "\n query GetBoardInfo($boardId: ID!) {\n boards(ids: [$boardId]) {\n # Basic Board Metadata\n id\n name\n description\n state\n board_kind\n permissions\n url\n\n # Timestamps\n updated_at\n\n # Board Configuration\n item_terminology\n items_count\n items_limit\n\n # Creator Information\n creator {\n id\n name\n email\n }\n\n # Workspace Information\n workspace {\n id\n name\n kind\n description\n }\n\n board_folder_id\n\n # All Columns with Full Metadata\n columns {\n id\n title\n description\n type\n settings\n }\n\n # All Groups with Metadata\n groups {\n id\n title\n }\n\n # Board Owners (Individual Users)\n owners {\n id\n name\n }\n\n # Team Owners\n team_owners {\n id\n name\n picture_url\n }\n\n # Board Tags\n tags {\n id\n name\n }\n\n # Top Group (default group)\n top_group {\n id\n }\n\n # Board Views (filters, sorts, and display configurations)\n views {\n id\n name\n type\n settings\n filter\n sort\n }\n }\n }\n": typeof types.GetBoardInfoDocument, @@ -152,6 +153,7 @@ const documents: Documents = { "\n mutation CreateWidget($parent: WidgetParentInput!, $kind: ExternalWidget!, $name: String!, $settings: JSON!) {\n create_widget(parent: $parent, kind: $kind, name: $name, settings: $settings) {\n id\n name\n kind\n parent {\n kind\n id\n }\n }\n }\n": types.CreateWidgetDocument, "\n query getBoardData($boardId: ID!, $itemsLimit: Int!, $queryParams: ItemsQuery) {\n boards(ids: [$boardId]) {\n id\n name\n items_page(limit: $itemsLimit, query_params: $queryParams) {\n items {\n id\n name\n column_values {\n id\n text\n type\n value\n ... on PeopleValue {\n persons_and_teams {\n id\n kind\n }\n }\n }\n updates {\n id\n creator_id\n text_body\n created_at\n replies {\n id\n text_body\n created_at\n creator_id\n }\n }\n }\n }\n columns {\n id\n title\n type\n settings\n }\n }\n }\n": types.GetBoardDataDocument, "\n query getUsersByIds($userIds: [ID!]!) {\n users(ids: $userIds) {\n id\n name\n photo_tiny\n }\n }\n": types.GetUsersByIdsDocument, + "\n query GetAccountContext {\n me {\n account {\n id\n name\n slug\n tier\n country_code\n created_at\n first_day_of_the_week\n active_members_count\n is_during_trial\n is_trial_expired\n show_timeline_weekends\n sign_up_product_kind\n plan {\n tier\n period\n max_users\n version\n }\n products {\n id\n kind\n tier\n default_workspace_id\n }\n }\n }\n }\n": types.GetAccountContextDocument, "\n query getAssets($ids: [ID!]!) {\n assets(ids: $ids) {\n id\n name\n file_extension\n file_size\n public_url\n url\n url_thumbnail\n created_at\n original_geometry\n uploaded_by {\n id\n name\n }\n }\n }\n": types.GetAssetsDocument, "\n query GetBoardAllActivity(\n $boardId: ID!\n $fromDate: ISO8601DateTime!\n $toDate: ISO8601DateTime!\n $limit: Int = 1000\n $page: Int = 1\n $includeData: Boolean!\n ) {\n boards(ids: [$boardId]) {\n name\n url\n activity_logs(from: $fromDate, to: $toDate, limit: $limit, page: $page) {\n user_id\n entity\n event\n data @include(if: $includeData)\n created_at\n }\n }\n }\n": types.GetBoardAllActivityDocument, "\n query GetBoardInfo($boardId: ID!) {\n boards(ids: [$boardId]) {\n # Basic Board Metadata\n id\n name\n description\n state\n board_kind\n permissions\n url\n\n # Timestamps\n updated_at\n\n # Board Configuration\n item_terminology\n items_count\n items_limit\n\n # Creator Information\n creator {\n id\n name\n email\n }\n\n # Workspace Information\n workspace {\n id\n name\n kind\n description\n }\n\n board_folder_id\n\n # All Columns with Full Metadata\n columns {\n id\n title\n description\n type\n settings\n }\n\n # All Groups with Metadata\n groups {\n id\n title\n }\n\n # Board Owners (Individual Users)\n owners {\n id\n name\n }\n\n # Team Owners\n team_owners {\n id\n name\n picture_url\n }\n\n # Board Tags\n tags {\n id\n name\n }\n\n # Top Group (default group)\n top_group {\n id\n }\n\n # Board Views (filters, sorts, and display configurations)\n views {\n id\n name\n type\n settings\n filter\n sort\n }\n }\n }\n": types.GetBoardInfoDocument, @@ -350,6 +352,10 @@ export function graphql(source: "\n query getBoardData($boardId: ID!, $itemsLim * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql(source: "\n query getUsersByIds($userIds: [ID!]!) {\n users(ids: $userIds) {\n id\n name\n photo_tiny\n }\n }\n"): (typeof documents)["\n query getUsersByIds($userIds: [ID!]!) {\n users(ids: $userIds) {\n id\n name\n photo_tiny\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 query GetAccountContext {\n me {\n account {\n id\n name\n slug\n tier\n country_code\n created_at\n first_day_of_the_week\n active_members_count\n is_during_trial\n is_trial_expired\n show_timeline_weekends\n sign_up_product_kind\n plan {\n tier\n period\n max_users\n version\n }\n products {\n id\n kind\n tier\n default_workspace_id\n }\n }\n }\n }\n"): (typeof documents)["\n query GetAccountContext {\n me {\n account {\n id\n name\n slug\n tier\n country_code\n created_at\n first_day_of_the_week\n active_members_count\n is_during_trial\n is_trial_expired\n show_timeline_weekends\n sign_up_product_kind\n plan {\n tier\n period\n max_users\n version\n }\n products {\n id\n kind\n tier\n default_workspace_id\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 cdc58045..4898586d 100644 --- a/packages/agent-toolkit/src/monday-graphql/generated/graphql/graphql.ts +++ b/packages/agent-toolkit/src/monday-graphql/generated/graphql/graphql.ts @@ -11373,6 +11373,11 @@ export type GetUsersByIdsQueryVariables = Exact<{ export type GetUsersByIdsQuery = { __typename?: 'Query', users?: Array<{ __typename?: 'User', id: string, name: string, photo_tiny?: string | null }> | null }; +export type GetAccountContextQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetAccountContextQuery = { __typename?: 'Query', me?: { __typename?: 'User', account: { __typename?: 'Account', id: string, name: string, slug: string, tier?: string | null, country_code?: string | null, created_at?: any | null, first_day_of_the_week: FirstDayOfTheWeek, active_members_count?: number | null, is_during_trial?: boolean | null, is_trial_expired?: boolean | null, show_timeline_weekends: boolean, sign_up_product_kind?: string | null, plan?: { __typename?: 'Plan', tier?: string | null, period?: string | null, max_users: number, version: number } | null, products?: Array<{ __typename?: 'AccountProduct', id?: string | null, kind?: string | null, tier?: string | null, default_workspace_id?: string | null } | null> | null } } | null }; + export type GetAssetsQueryVariables = Exact<{ ids: Array | Scalars['ID']['input']; }>; @@ -12090,6 +12095,7 @@ export const GetAllWidgetsSchemaDocument = {"kind":"Document","definitions":[{"k export const CreateWidgetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateWidget"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parent"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"WidgetParentInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"kind"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ExternalWidget"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"settings"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"create_widget"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"parent"},"value":{"kind":"Variable","name":{"kind":"Name","value":"parent"}}},{"kind":"Argument","name":{"kind":"Name","value":"kind"},"value":{"kind":"Variable","name":{"kind":"Name","value":"kind"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"settings"},"value":{"kind":"Variable","name":{"kind":"Name","value":"settings"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"parent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; export const GetBoardDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getBoardData"},"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":"itemsLimit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"queryParams"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ItemsQuery"}}}],"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"items_page"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"itemsLimit"}}},{"kind":"Argument","name":{"kind":"Name","value":"query_params"},"value":{"kind":"Variable","name":{"kind":"Name","value":"queryParams"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"column_values"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"text"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PeopleValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"persons_and_teams"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"updates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"creator_id"}},{"kind":"Field","name":{"kind":"Name","value":"text_body"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"replies"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"text_body"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"creator_id"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"columns"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}}]}}]}}]}}]} as unknown as DocumentNode; export const GetUsersByIdsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getUsersByIds"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"userIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"users"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"userIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photo_tiny"}}]}}]}}]} as unknown as DocumentNode; +export const GetAccountContextDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAccountContext"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"tier"}},{"kind":"Field","name":{"kind":"Name","value":"country_code"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"first_day_of_the_week"}},{"kind":"Field","name":{"kind":"Name","value":"active_members_count"}},{"kind":"Field","name":{"kind":"Name","value":"is_during_trial"}},{"kind":"Field","name":{"kind":"Name","value":"is_trial_expired"}},{"kind":"Field","name":{"kind":"Name","value":"show_timeline_weekends"}},{"kind":"Field","name":{"kind":"Name","value":"sign_up_product_kind"}},{"kind":"Field","name":{"kind":"Name","value":"plan"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tier"}},{"kind":"Field","name":{"kind":"Name","value":"period"}},{"kind":"Field","name":{"kind":"Name","value":"max_users"}},{"kind":"Field","name":{"kind":"Name","value":"version"}}]}},{"kind":"Field","name":{"kind":"Name","value":"products"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"tier"}},{"kind":"Field","name":{"kind":"Name","value":"default_workspace_id"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const GetAssetsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"getAssets"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ids"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"assets"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ids"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"file_extension"}},{"kind":"Field","name":{"kind":"Name","value":"file_size"}},{"kind":"Field","name":{"kind":"Name","value":"public_url"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"url_thumbnail"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"original_geometry"}},{"kind":"Field","name":{"kind":"Name","value":"uploaded_by"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; export const GetBoardAllActivityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetBoardAllActivity"},"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":"fromDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ISO8601DateTime"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ISO8601DateTime"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"defaultValue":{"kind":"IntValue","value":"1000"}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"page"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"defaultValue":{"kind":"IntValue","value":"1"}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"includeData"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"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":"name"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"activity_logs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"from"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"to"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"page"},"value":{"kind":"Variable","name":{"kind":"Name","value":"page"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user_id"}},{"kind":"Field","name":{"kind":"Name","value":"entity"}},{"kind":"Field","name":{"kind":"Name","value":"event"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"include"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"if"},"value":{"kind":"Variable","name":{"kind":"Name","value":"includeData"}}}]}]},{"kind":"Field","name":{"kind":"Name","value":"created_at"}}]}}]}}]}}]} as unknown as DocumentNode; export const GetBoardInfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetBoardInfo"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"board_kind"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"updated_at"}},{"kind":"Field","name":{"kind":"Name","value":"item_terminology"}},{"kind":"Field","name":{"kind":"Name","value":"items_count"}},{"kind":"Field","name":{"kind":"Name","value":"items_limit"}},{"kind":"Field","name":{"kind":"Name","value":"creator"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"Field","name":{"kind":"Name","value":"board_folder_id"}},{"kind":"Field","name":{"kind":"Name","value":"columns"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}}]}},{"kind":"Field","name":{"kind":"Name","value":"groups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}},{"kind":"Field","name":{"kind":"Name","value":"owners"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"team_owners"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"picture_url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"top_group"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"views"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"sort"}}]}}]}}]}}]} as unknown as DocumentNode;