@mondaydotcomorg/agent-toolkit 5.40.0 → 5.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { ZodRawShape, z, ZodTypeAny } from 'zod';
2
2
  import { ToolAnnotations } from '@modelcontextprotocol/sdk/types';
3
- import { ApiClient, ApiClientConfig } from '@mondaydotcomorg/api';
3
+ import { ApiClientConfig, ApiClient } from '@mondaydotcomorg/api';
4
4
 
5
5
  type SessionContext = {
6
6
  metadata?: Record<string, unknown>;
@@ -29,12 +29,48 @@ interface Tool<Input extends ZodRawShape | undefined, Output extends Record<stri
29
29
  getInputSchema(): Input;
30
30
  }
31
31
 
32
+ declare enum ToolMode {
33
+ API = "api",
34
+ APPS = "apps",
35
+ ATP = "atp"
36
+ }
37
+ type ToolsConfiguration = {
38
+ include?: string[];
39
+ exclude?: string[];
40
+ readOnlyMode?: boolean;
41
+ mode?: ToolMode;
42
+ enableDynamicApiTools?: boolean | 'only';
43
+ enableToolManager?: boolean;
44
+ };
45
+ type MondayFetchRequest = {
46
+ serviceName: string;
47
+ path: string;
48
+ method?: string;
49
+ headers?: Record<string, string>;
50
+ body?: string;
51
+ signal?: AbortSignal;
52
+ };
53
+ type MondayFetch = (request: MondayFetchRequest) => Promise<Response>;
54
+ type FetchConfig = {
55
+ fetch?: MondayFetch;
56
+ };
57
+ type MondayAgentToolkitConfig = {
58
+ mondayApiToken: ApiClientConfig['token'] | (() => string);
59
+ mondayApiVersion?: ApiClientConfig['apiVersion'];
60
+ mondayApiEndpoint?: ApiClientConfig['endpoint'];
61
+ mondayApiRequestConfig?: ApiClientConfig['requestConfig'];
62
+ toolsConfiguration?: ToolsConfiguration;
63
+ context?: MondayApiToolContext;
64
+ fetchConfig?: FetchConfig;
65
+ };
66
+
32
67
  type MondayApiToolContext = {
33
68
  boardId?: number;
34
69
  apiVersion?: string;
35
70
  agentType?: string;
36
71
  agentClientName?: string;
37
72
  clientRedirectUris?: string[];
73
+ fetchConfig?: FetchConfig;
38
74
  };
39
75
  type BaseMondayApiToolConstructor = new (api: ApiClient) => BaseMondayApiTool<any>;
40
76
  declare abstract class BaseMondayApiTool<Input extends ZodRawShape | undefined, Output extends Record<string, unknown> = never> implements Tool<Input, Output> {
@@ -120,26 +156,4 @@ declare const allGraphqlApiTools: BaseMondayApiToolConstructor[];
120
156
 
121
157
  declare const allTools: (MondayAppsToolType | BaseMondayApiToolConstructor)[];
122
158
 
123
- declare enum ToolMode {
124
- API = "api",
125
- APPS = "apps",
126
- ATP = "atp"
127
- }
128
- type ToolsConfiguration = {
129
- include?: string[];
130
- exclude?: string[];
131
- readOnlyMode?: boolean;
132
- mode?: ToolMode;
133
- enableDynamicApiTools?: boolean | 'only';
134
- enableToolManager?: boolean;
135
- };
136
- type MondayAgentToolkitConfig = {
137
- mondayApiToken: ApiClientConfig['token'] | (() => string);
138
- mondayApiVersion?: ApiClientConfig['apiVersion'];
139
- mondayApiEndpoint?: ApiClientConfig['endpoint'];
140
- mondayApiRequestConfig?: ApiClientConfig['requestConfig'];
141
- toolsConfiguration?: ToolsConfiguration;
142
- context?: MondayApiToolContext;
143
- };
144
-
145
- export { Executable, MondayAgentToolkitConfig, SessionContext, Tool, ToolInputType, ToolMode, ToolOutputType, ToolType, ToolsConfiguration, allGraphqlApiTools, allMondayAppsTools, allMondayDevTools, allTools };
159
+ export { Executable, FetchConfig, MondayAgentToolkitConfig, MondayFetch, MondayFetchRequest, SessionContext, Tool, ToolInputType, ToolMode, ToolOutputType, ToolType, ToolsConfiguration, allGraphqlApiTools, allMondayAppsTools, allMondayDevTools, allTools };