terse-types 0.0.1
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.
- package/README.md +44 -0
- package/dist/ApiRouteBuilder.d.ts +185 -0
- package/dist/ApiRouteBuilder.js +11 -0
- package/dist/ApiRoutes.json +184 -0
- package/dist/ApprovalTypes.d.ts +28 -0
- package/dist/ApprovalTypes.js +7 -0
- package/dist/ClientBoundTools.d.ts +36 -0
- package/dist/ClientBoundTools.js +36 -0
- package/dist/Configs.d.ts +628 -0
- package/dist/Configs.js +868 -0
- package/dist/DonatedState.d.ts +4 -0
- package/dist/DonatedState.js +12 -0
- package/dist/Entities.d.ts +7 -0
- package/dist/Entities.js +8 -0
- package/dist/FrontendRoutes.json +28 -0
- package/dist/FrontendRoutesBuilder.d.ts +30 -0
- package/dist/FrontendRoutesBuilder.js +13 -0
- package/dist/Integrations.d.ts +254 -0
- package/dist/Integrations.js +210 -0
- package/dist/InvalidationKeys.d.ts +52 -0
- package/dist/InvalidationKeys.js +165 -0
- package/dist/ModelEvents.d.ts +175 -0
- package/dist/ModelEvents.js +28 -0
- package/dist/Notifications.d.ts +42 -0
- package/dist/Notifications.js +5 -0
- package/dist/RunHistoryTypes.d.ts +103 -0
- package/dist/RunHistoryTypes.js +29 -0
- package/dist/SentNotifications.d.ts +29 -0
- package/dist/SentNotifications.js +12 -0
- package/dist/SocketEvents.d.ts +48 -0
- package/dist/SocketEvents.js +52 -0
- package/dist/Survey.d.ts +9 -0
- package/dist/Survey.js +1 -0
- package/dist/TicketSystem.d.ts +153 -0
- package/dist/TicketSystem.js +20 -0
- package/dist/ToolDisplayUtils.d.ts +29 -0
- package/dist/ToolDisplayUtils.js +1162 -0
- package/dist/Tools.d.ts +9202 -0
- package/dist/Tools.js +2099 -0
- package/dist/ToolsTypes.d.ts +17 -0
- package/dist/ToolsTypes.js +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/dist/types.d.ts +704 -0
- package/dist/types.js +115 -0
- package/package.json +45 -0
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { IntegrationType } from "./Integrations.js";
|
|
3
|
+
export declare enum ConfigType {
|
|
4
|
+
GMAIL = "gmail",
|
|
5
|
+
GMAIL_OUTPUT = "gmail_output",
|
|
6
|
+
GMAIL_DRAFT_OUTPUT = "gmail_draft_output",
|
|
7
|
+
FIGMA = "figma",
|
|
8
|
+
SLACK = "slack",
|
|
9
|
+
SLACK_OUTPUT = "slack_output",
|
|
10
|
+
NOTION = "notion",
|
|
11
|
+
LINEAR_INPUT = "linear_input",
|
|
12
|
+
LINEAR_OUTPUT = "linear_output",
|
|
13
|
+
GITHUB = "github",
|
|
14
|
+
JIRA = "jira",
|
|
15
|
+
CONFLUENCE = "confluence",
|
|
16
|
+
POSTHOG = "POSTHOG",
|
|
17
|
+
DATADOG = "DATADOG",
|
|
18
|
+
TIME_TRIGGER = "time_trigger",
|
|
19
|
+
LAUNCHDARKLY = "launchdarkly",
|
|
20
|
+
TERSE = "terse",
|
|
21
|
+
WORKOS_INPUT = "workos_input",
|
|
22
|
+
WORKOS_OUTPUT = "workos_output",
|
|
23
|
+
ATTIO_OUTPUT = "attio_output",
|
|
24
|
+
SNOWFLAKE_OUTPUT = "snowflake_output"
|
|
25
|
+
}
|
|
26
|
+
export declare const configTypeEnum: z.ZodEnum<typeof ConfigType>;
|
|
27
|
+
export interface ConfigDetails {
|
|
28
|
+
configType: ConfigType;
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
integrationType: IntegrationType;
|
|
32
|
+
isInput: boolean;
|
|
33
|
+
isOutput: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const GmailConfigMetadata: {
|
|
36
|
+
readonly configType: ConfigType.GMAIL;
|
|
37
|
+
readonly name: "Gmail";
|
|
38
|
+
readonly description: "Monitor incoming emails";
|
|
39
|
+
readonly integrationType: IntegrationType.GMAIL;
|
|
40
|
+
readonly isInput: true;
|
|
41
|
+
readonly isOutput: false;
|
|
42
|
+
};
|
|
43
|
+
export declare const FigmaConfigMetadata: {
|
|
44
|
+
readonly configType: ConfigType.FIGMA;
|
|
45
|
+
readonly name: "Figma";
|
|
46
|
+
readonly description: "Monitor design changes in Figma files";
|
|
47
|
+
readonly integrationType: IntegrationType.FIGMA;
|
|
48
|
+
readonly isInput: true;
|
|
49
|
+
readonly isOutput: false;
|
|
50
|
+
};
|
|
51
|
+
export declare const SlackConfigMetadata: {
|
|
52
|
+
readonly configType: ConfigType.SLACK;
|
|
53
|
+
readonly name: "Slack";
|
|
54
|
+
readonly description: "Monitor messages in Slack channels or DMs";
|
|
55
|
+
readonly integrationType: IntegrationType.SLACK;
|
|
56
|
+
readonly isInput: true;
|
|
57
|
+
readonly isOutput: false;
|
|
58
|
+
};
|
|
59
|
+
export declare const SlackOutputConfigMetadata: {
|
|
60
|
+
readonly configType: ConfigType.SLACK_OUTPUT;
|
|
61
|
+
readonly name: "Slack";
|
|
62
|
+
readonly description: "Send messages to Slack channels, group DMs, or direct messages";
|
|
63
|
+
readonly integrationType: IntegrationType.SLACK;
|
|
64
|
+
readonly isInput: false;
|
|
65
|
+
readonly isOutput: true;
|
|
66
|
+
};
|
|
67
|
+
export declare const GmailOutputConfigMetadata: {
|
|
68
|
+
readonly configType: ConfigType.GMAIL_OUTPUT;
|
|
69
|
+
readonly name: "Gmail";
|
|
70
|
+
readonly description: "Send emails via Gmail";
|
|
71
|
+
readonly integrationType: IntegrationType.GMAIL;
|
|
72
|
+
readonly isInput: false;
|
|
73
|
+
readonly isOutput: true;
|
|
74
|
+
};
|
|
75
|
+
export declare const GmailDraftOutputConfigMetadata: {
|
|
76
|
+
readonly configType: ConfigType.GMAIL_DRAFT_OUTPUT;
|
|
77
|
+
readonly name: "Gmail Draft";
|
|
78
|
+
readonly description: "Create draft emails in Gmail";
|
|
79
|
+
readonly integrationType: IntegrationType.GMAIL;
|
|
80
|
+
readonly isInput: false;
|
|
81
|
+
readonly isOutput: true;
|
|
82
|
+
};
|
|
83
|
+
export declare const NotionConfigMetadata: {
|
|
84
|
+
readonly configType: ConfigType.NOTION;
|
|
85
|
+
readonly name: "Notion";
|
|
86
|
+
readonly description: "Update and monitor Notion pages and databases";
|
|
87
|
+
readonly integrationType: IntegrationType.NOTION;
|
|
88
|
+
readonly isInput: false;
|
|
89
|
+
readonly isOutput: true;
|
|
90
|
+
};
|
|
91
|
+
export declare const LinearInputConfigMetadata: {
|
|
92
|
+
readonly configType: ConfigType.LINEAR_INPUT;
|
|
93
|
+
readonly name: "Linear";
|
|
94
|
+
readonly description: "Monitor Linear issues";
|
|
95
|
+
readonly integrationType: IntegrationType.LINEAR;
|
|
96
|
+
readonly isInput: true;
|
|
97
|
+
readonly isOutput: false;
|
|
98
|
+
};
|
|
99
|
+
export declare const LinearOutputConfigMetadata: {
|
|
100
|
+
readonly configType: ConfigType.LINEAR_OUTPUT;
|
|
101
|
+
readonly name: "Linear";
|
|
102
|
+
readonly description: "Update Linear issues";
|
|
103
|
+
readonly integrationType: IntegrationType.LINEAR;
|
|
104
|
+
readonly isInput: false;
|
|
105
|
+
readonly isOutput: true;
|
|
106
|
+
};
|
|
107
|
+
export declare const GitHubConfigMetadata: {
|
|
108
|
+
readonly configType: ConfigType.GITHUB;
|
|
109
|
+
readonly name: "GitHub";
|
|
110
|
+
readonly description: "Monitor and read Github repositories";
|
|
111
|
+
readonly integrationType: IntegrationType.GITHUB;
|
|
112
|
+
readonly isInput: true;
|
|
113
|
+
readonly isOutput: true;
|
|
114
|
+
};
|
|
115
|
+
export declare const JiraConfigMetadata: {
|
|
116
|
+
readonly configType: ConfigType.JIRA;
|
|
117
|
+
readonly name: "Jira";
|
|
118
|
+
readonly description: "Monitor and update Jira issues";
|
|
119
|
+
readonly integrationType: IntegrationType.ATLASSIAN;
|
|
120
|
+
readonly isInput: true;
|
|
121
|
+
readonly isOutput: true;
|
|
122
|
+
};
|
|
123
|
+
export declare const ConfluenceConfigMetadata: {
|
|
124
|
+
readonly configType: ConfigType.CONFLUENCE;
|
|
125
|
+
readonly name: "Confluence";
|
|
126
|
+
readonly description: "Update Confluence pages";
|
|
127
|
+
readonly integrationType: IntegrationType.ATLASSIAN;
|
|
128
|
+
readonly isInput: false;
|
|
129
|
+
readonly isOutput: true;
|
|
130
|
+
};
|
|
131
|
+
export declare const PosthogConfigMetadata: {
|
|
132
|
+
readonly configType: ConfigType.POSTHOG;
|
|
133
|
+
readonly name: "Posthog";
|
|
134
|
+
readonly description: "Track user events";
|
|
135
|
+
readonly integrationType: IntegrationType.POSTHOG;
|
|
136
|
+
readonly isInput: false;
|
|
137
|
+
readonly isOutput: true;
|
|
138
|
+
};
|
|
139
|
+
export declare const DatadogConfigMetadata: {
|
|
140
|
+
readonly configType: ConfigType.DATADOG;
|
|
141
|
+
readonly name: "Datadog";
|
|
142
|
+
readonly description: "Search logs in Datadog";
|
|
143
|
+
readonly integrationType: IntegrationType.DATADOG;
|
|
144
|
+
readonly isInput: false;
|
|
145
|
+
readonly isOutput: true;
|
|
146
|
+
};
|
|
147
|
+
export declare const TimeTriggerConfigMetadata: {
|
|
148
|
+
readonly configType: ConfigType.TIME_TRIGGER;
|
|
149
|
+
readonly name: "Time Trigger";
|
|
150
|
+
readonly description: "Run on a schedule (daily, weekly, etc.)";
|
|
151
|
+
readonly integrationType: IntegrationType.CRON_JOB;
|
|
152
|
+
readonly isInput: true;
|
|
153
|
+
readonly isOutput: false;
|
|
154
|
+
};
|
|
155
|
+
export declare const LaunchDarklyConfigMetadata: {
|
|
156
|
+
readonly configType: ConfigType.LAUNCHDARKLY;
|
|
157
|
+
readonly name: "LaunchDarkly";
|
|
158
|
+
readonly description: "Query feature flags";
|
|
159
|
+
readonly integrationType: IntegrationType.LAUNCHDARKLY;
|
|
160
|
+
readonly isInput: false;
|
|
161
|
+
readonly isOutput: true;
|
|
162
|
+
};
|
|
163
|
+
export declare const TerseConfigMetadata: {
|
|
164
|
+
readonly configType: ConfigType.TERSE;
|
|
165
|
+
readonly name: "Terse Skills";
|
|
166
|
+
readonly description: "Built-in capabilities like web search (always available to agents)";
|
|
167
|
+
readonly integrationType: IntegrationType.TERSE;
|
|
168
|
+
readonly isInput: false;
|
|
169
|
+
readonly isOutput: true;
|
|
170
|
+
};
|
|
171
|
+
export declare const WorkOSInputConfigMetadata: {
|
|
172
|
+
readonly configType: ConfigType.WORKOS_INPUT;
|
|
173
|
+
readonly name: "WorkOS";
|
|
174
|
+
readonly description: "Trigger on user signup, deletion, or membership changes in your app";
|
|
175
|
+
readonly integrationType: IntegrationType.WORKOS;
|
|
176
|
+
readonly isInput: true;
|
|
177
|
+
readonly isOutput: false;
|
|
178
|
+
};
|
|
179
|
+
export declare const WorkOSOutputConfigMetadata: {
|
|
180
|
+
readonly configType: ConfigType.WORKOS_OUTPUT;
|
|
181
|
+
readonly name: "WorkOS";
|
|
182
|
+
readonly description: "Fetch and search users from your WorkOS account";
|
|
183
|
+
readonly integrationType: IntegrationType.WORKOS;
|
|
184
|
+
readonly isInput: false;
|
|
185
|
+
readonly isOutput: true;
|
|
186
|
+
};
|
|
187
|
+
export declare const AttioOutputConfigMetadata: {
|
|
188
|
+
readonly configType: ConfigType.ATTIO_OUTPUT;
|
|
189
|
+
readonly name: "Attio";
|
|
190
|
+
readonly description: "Add and update contacts in Attio";
|
|
191
|
+
readonly integrationType: IntegrationType.ATTIO;
|
|
192
|
+
readonly isInput: false;
|
|
193
|
+
readonly isOutput: true;
|
|
194
|
+
};
|
|
195
|
+
export declare const SnowflakeOutputConfigMetadata: {
|
|
196
|
+
readonly configType: ConfigType.SNOWFLAKE_OUTPUT;
|
|
197
|
+
readonly name: "Snowflake";
|
|
198
|
+
readonly description: "Run read-only queries against Snowflake data warehouses";
|
|
199
|
+
readonly integrationType: IntegrationType.SNOWFLAKE;
|
|
200
|
+
readonly isInput: false;
|
|
201
|
+
readonly isOutput: true;
|
|
202
|
+
};
|
|
203
|
+
export type ConfigDetailsMap = Record<ConfigType, ConfigDetails>;
|
|
204
|
+
export declare const CONFIG_DETAILS: ConfigDetailsMap;
|
|
205
|
+
export declare enum SlackEventType {
|
|
206
|
+
MESSAGE = "message",
|
|
207
|
+
APP_MENTION = "app_mention",
|
|
208
|
+
REACTION_ADDED = "reaction_added"
|
|
209
|
+
}
|
|
210
|
+
export declare enum GitHubEventType {
|
|
211
|
+
PUSH = "push",
|
|
212
|
+
PR_OPENED = "pull_request.opened",
|
|
213
|
+
PR_MERGED = "pull_request.merged",
|
|
214
|
+
PR_CLOSED = "pull_request.closed",
|
|
215
|
+
PR_SYNCHRONIZE = "pull_request.synchronize"
|
|
216
|
+
}
|
|
217
|
+
export declare enum LinearEventType {
|
|
218
|
+
ISSUE_CREATED = "issue.created",
|
|
219
|
+
ISSUE_UPDATED = "issue.updated",
|
|
220
|
+
COMMENT_CREATED = "comment.created"
|
|
221
|
+
}
|
|
222
|
+
export declare enum JiraEventType {
|
|
223
|
+
ISSUE_CREATED = "issue.created",
|
|
224
|
+
ISSUE_UPDATED = "issue.updated"
|
|
225
|
+
}
|
|
226
|
+
export declare enum FigmaEventType {
|
|
227
|
+
FILE_COMMENT = "file_comment"
|
|
228
|
+
}
|
|
229
|
+
export declare enum GmailEventType {
|
|
230
|
+
EMAIL_RECEIVED = "email.received"
|
|
231
|
+
}
|
|
232
|
+
export declare enum WorkOSEventType {
|
|
233
|
+
USER_CREATED = "user.created",
|
|
234
|
+
USER_UPDATED = "user.updated",
|
|
235
|
+
USER_DELETED = "user.deleted",
|
|
236
|
+
ORGANIZATION_CREATED = "organization.created",
|
|
237
|
+
ORGANIZATION_MEMBERSHIP_CREATED = "organization_membership.created",
|
|
238
|
+
ORGANIZATION_MEMBERSHIP_UPDATED = "organization_membership.updated",
|
|
239
|
+
ORGANIZATION_MEMBERSHIP_DELETED = "organization_membership.deleted",
|
|
240
|
+
INVITATION_CREATED = "invitation.created",
|
|
241
|
+
INVITATION_ACCEPTED = "invitation.accepted",
|
|
242
|
+
INVITATION_RESENT = "invitation.resent",
|
|
243
|
+
INVITATION_REVOKED = "invitation.revoked"
|
|
244
|
+
}
|
|
245
|
+
export declare const ConfigInstanceSchema: z.ZodObject<{
|
|
246
|
+
integrationId: z.ZodString;
|
|
247
|
+
integrationType: z.ZodEnum<typeof IntegrationType>;
|
|
248
|
+
configType: z.ZodEnum<typeof ConfigType>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export type ConfigInstanceType = z.infer<typeof ConfigInstanceSchema>;
|
|
251
|
+
export type ConfigInstance = ConfigInstanceType & ConfigBehavior;
|
|
252
|
+
export type ConfigBehavior = {
|
|
253
|
+
isComplete(): boolean;
|
|
254
|
+
formatForAgent(): string;
|
|
255
|
+
};
|
|
256
|
+
declare abstract class BaseConfigInstance<TIntegrationType extends IntegrationType, TConfigType extends ConfigType, TIntegrationId extends string = string> implements ConfigInstance, ConfigBehavior {
|
|
257
|
+
readonly integrationId: TIntegrationId;
|
|
258
|
+
readonly integrationType: TIntegrationType;
|
|
259
|
+
readonly configType: TConfigType;
|
|
260
|
+
constructor(integrationId: TIntegrationId, integrationType: TIntegrationType, configType: TConfigType);
|
|
261
|
+
abstract isComplete(): boolean;
|
|
262
|
+
abstract formatForAgent(): string;
|
|
263
|
+
}
|
|
264
|
+
export declare const GmailConfigSchema: z.ZodObject<{
|
|
265
|
+
integrationId: z.ZodString;
|
|
266
|
+
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
267
|
+
configType: z.ZodLiteral<ConfigType.GMAIL>;
|
|
268
|
+
eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof GmailEventType>>>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
export type GmailConfigData = z.infer<typeof GmailConfigSchema>;
|
|
271
|
+
export type GmailConfigInstance = GmailConfigData & ConfigBehavior;
|
|
272
|
+
export declare class GmailConfig extends BaseConfigInstance<IntegrationType.GMAIL, ConfigType.GMAIL> implements GmailConfigInstance {
|
|
273
|
+
eventTypes?: GmailEventType[] | undefined;
|
|
274
|
+
constructor(integrationId: string, eventTypes?: GmailEventType[] | undefined);
|
|
275
|
+
isComplete(): boolean;
|
|
276
|
+
formatForAgent(): string;
|
|
277
|
+
}
|
|
278
|
+
export declare const FigmaConfigSchema: z.ZodObject<{
|
|
279
|
+
integrationId: z.ZodString;
|
|
280
|
+
integrationType: z.ZodLiteral<IntegrationType.FIGMA>;
|
|
281
|
+
configType: z.ZodLiteral<ConfigType.FIGMA>;
|
|
282
|
+
fileKey: z.ZodString;
|
|
283
|
+
fileName: z.ZodString;
|
|
284
|
+
teamId: z.ZodString;
|
|
285
|
+
eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof FigmaEventType>>>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
export type FigmaConfigData = z.infer<typeof FigmaConfigSchema>;
|
|
288
|
+
export type FigmaConfigInstance = FigmaConfigData & ConfigBehavior;
|
|
289
|
+
export declare class FigmaConfig extends BaseConfigInstance<IntegrationType.FIGMA, ConfigType.FIGMA> implements FigmaConfigInstance {
|
|
290
|
+
fileKey: string;
|
|
291
|
+
fileName: string;
|
|
292
|
+
teamId: string;
|
|
293
|
+
eventTypes?: FigmaEventType[] | undefined;
|
|
294
|
+
constructor(integrationId: string, fileKey: string, fileName: string, teamId: string, eventTypes?: FigmaEventType[] | undefined);
|
|
295
|
+
isComplete(): boolean;
|
|
296
|
+
formatForAgent(): string;
|
|
297
|
+
}
|
|
298
|
+
export declare const SlackConfigSchema: z.ZodObject<{
|
|
299
|
+
integrationId: z.ZodString;
|
|
300
|
+
integrationType: z.ZodLiteral<IntegrationType.SLACK>;
|
|
301
|
+
configType: z.ZodLiteral<ConfigType.SLACK>;
|
|
302
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
303
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
304
|
+
listenToUserDms: z.ZodDefault<z.ZodBoolean>;
|
|
305
|
+
userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
306
|
+
eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof SlackEventType>>>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
export type SlackConfigData = z.infer<typeof SlackConfigSchema>;
|
|
309
|
+
export type SlackConfigInstance = SlackConfigData & ConfigBehavior;
|
|
310
|
+
export declare class SlackConfig extends BaseConfigInstance<IntegrationType.SLACK, ConfigType.SLACK> implements SlackConfigInstance {
|
|
311
|
+
channelId?: string | undefined;
|
|
312
|
+
channelName?: string | undefined;
|
|
313
|
+
listenToUserDms: boolean;
|
|
314
|
+
userIds?: string[] | undefined;
|
|
315
|
+
eventTypes?: SlackEventType[] | undefined;
|
|
316
|
+
constructor(integrationId: string, channelId?: string | undefined, channelName?: string | undefined, listenToUserDms?: boolean, userIds?: string[] | undefined, eventTypes?: SlackEventType[] | undefined);
|
|
317
|
+
isComplete(): boolean;
|
|
318
|
+
formatForAgent(): string;
|
|
319
|
+
}
|
|
320
|
+
export declare const SlackOutputConfigSchema: z.ZodObject<{
|
|
321
|
+
integrationId: z.ZodString;
|
|
322
|
+
integrationType: z.ZodLiteral<IntegrationType.SLACK>;
|
|
323
|
+
configType: z.ZodLiteral<ConfigType.SLACK_OUTPUT>;
|
|
324
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
325
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
326
|
+
userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
|
+
userNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
|
+
listenToUserDms: z.ZodDefault<z.ZodBoolean>;
|
|
329
|
+
}, z.core.$strip>;
|
|
330
|
+
export type SlackOutputConfigData = z.infer<typeof SlackOutputConfigSchema>;
|
|
331
|
+
export type SlackOutputConfigInstance = SlackOutputConfigData & ConfigBehavior;
|
|
332
|
+
export declare class SlackOutputConfig extends BaseConfigInstance<IntegrationType.SLACK, ConfigType.SLACK_OUTPUT> implements SlackOutputConfigInstance {
|
|
333
|
+
channelId?: string | undefined;
|
|
334
|
+
channelName?: string | undefined;
|
|
335
|
+
userIds?: string[] | undefined;
|
|
336
|
+
userNames?: string[] | undefined;
|
|
337
|
+
listenToUserDms: boolean;
|
|
338
|
+
constructor(integrationId: string, channelId?: string | undefined, channelName?: string | undefined, userIds?: string[] | undefined, userNames?: string[] | undefined, listenToUserDms?: boolean);
|
|
339
|
+
isComplete(): boolean;
|
|
340
|
+
formatForAgent(): string;
|
|
341
|
+
}
|
|
342
|
+
export declare const GmailOutputConfigSchema: z.ZodObject<{
|
|
343
|
+
integrationId: z.ZodString;
|
|
344
|
+
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
345
|
+
configType: z.ZodLiteral<ConfigType.GMAIL_OUTPUT>;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
export type GmailOutputConfigData = z.infer<typeof GmailOutputConfigSchema>;
|
|
348
|
+
export type GmailOutputConfigInstance = GmailOutputConfigData & ConfigBehavior;
|
|
349
|
+
export declare class GmailOutputConfig extends BaseConfigInstance<IntegrationType.GMAIL, ConfigType.GMAIL_OUTPUT> implements GmailOutputConfigInstance {
|
|
350
|
+
constructor(integrationId: string);
|
|
351
|
+
isComplete(): boolean;
|
|
352
|
+
formatForAgent(): string;
|
|
353
|
+
}
|
|
354
|
+
export declare const GmailDraftOutputConfigSchema: z.ZodObject<{
|
|
355
|
+
integrationId: z.ZodString;
|
|
356
|
+
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
357
|
+
configType: z.ZodLiteral<ConfigType.GMAIL_DRAFT_OUTPUT>;
|
|
358
|
+
}, z.core.$strip>;
|
|
359
|
+
export type GmailDraftOutputConfigData = z.infer<typeof GmailDraftOutputConfigSchema>;
|
|
360
|
+
export type GmailDraftOutputConfigInstance = GmailDraftOutputConfigData & ConfigBehavior;
|
|
361
|
+
export declare class GmailDraftOutputConfig extends BaseConfigInstance<IntegrationType.GMAIL, ConfigType.GMAIL_DRAFT_OUTPUT> implements GmailDraftOutputConfigInstance {
|
|
362
|
+
constructor(integrationId: string);
|
|
363
|
+
isComplete(): boolean;
|
|
364
|
+
formatForAgent(): string;
|
|
365
|
+
}
|
|
366
|
+
export declare const NotionConfigSchema: z.ZodObject<{
|
|
367
|
+
integrationId: z.ZodString;
|
|
368
|
+
integrationType: z.ZodLiteral<IntegrationType.NOTION>;
|
|
369
|
+
configType: z.ZodLiteral<ConfigType.NOTION>;
|
|
370
|
+
databaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
371
|
+
databaseNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
372
|
+
pageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
373
|
+
pageNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
374
|
+
}, z.core.$strip>;
|
|
375
|
+
export type NotionConfigData = z.infer<typeof NotionConfigSchema>;
|
|
376
|
+
export type NotionConfigInstance = NotionConfigData & ConfigBehavior;
|
|
377
|
+
export declare class NotionConfig extends BaseConfigInstance<IntegrationType.NOTION, ConfigType.NOTION> implements NotionConfigInstance {
|
|
378
|
+
databaseIds: string[];
|
|
379
|
+
databaseNames: string[];
|
|
380
|
+
pageIds: string[];
|
|
381
|
+
pageNames: string[];
|
|
382
|
+
constructor(integrationId: string, databaseIds?: string[], databaseNames?: string[], pageIds?: string[], pageNames?: string[]);
|
|
383
|
+
isComplete(): boolean;
|
|
384
|
+
formatForAgent(): string;
|
|
385
|
+
}
|
|
386
|
+
export declare const LinearInputConfigSchema: z.ZodObject<{
|
|
387
|
+
integrationId: z.ZodString;
|
|
388
|
+
integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
|
|
389
|
+
configType: z.ZodLiteral<ConfigType.LINEAR_INPUT>;
|
|
390
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
391
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
392
|
+
eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof LinearEventType>>>;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
export type LinearInputConfigData = z.infer<typeof LinearInputConfigSchema>;
|
|
395
|
+
export type LinearInputConfigInstance = LinearInputConfigData & ConfigBehavior;
|
|
396
|
+
export declare class LinearInputConfig extends BaseConfigInstance<IntegrationType.LINEAR, ConfigType.LINEAR_INPUT> implements LinearInputConfigInstance {
|
|
397
|
+
projectId?: string | undefined;
|
|
398
|
+
projectName?: string | undefined;
|
|
399
|
+
eventTypes?: LinearEventType[] | undefined;
|
|
400
|
+
constructor(integrationId: string, projectId?: string | undefined, projectName?: string | undefined, eventTypes?: LinearEventType[] | undefined);
|
|
401
|
+
isComplete(): boolean;
|
|
402
|
+
formatForAgent(): string;
|
|
403
|
+
}
|
|
404
|
+
export declare const LinearOutputConfigSchema: z.ZodObject<{
|
|
405
|
+
integrationId: z.ZodString;
|
|
406
|
+
integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
|
|
407
|
+
configType: z.ZodLiteral<ConfigType.LINEAR_OUTPUT>;
|
|
408
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
409
|
+
teamName: z.ZodOptional<z.ZodString>;
|
|
410
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
411
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
412
|
+
}, z.core.$strip>;
|
|
413
|
+
export type LinearOutputConfigData = z.infer<typeof LinearOutputConfigSchema>;
|
|
414
|
+
export type LinearOutputConfigInstance = LinearOutputConfigData & ConfigBehavior;
|
|
415
|
+
export declare class LinearOutputConfig extends BaseConfigInstance<IntegrationType.LINEAR, ConfigType.LINEAR_OUTPUT> implements LinearOutputConfigInstance {
|
|
416
|
+
teamId?: string | undefined;
|
|
417
|
+
teamName?: string | undefined;
|
|
418
|
+
projectId?: string | undefined;
|
|
419
|
+
projectName?: string | undefined;
|
|
420
|
+
constructor(integrationId: string, teamId?: string | undefined, teamName?: string | undefined, projectId?: string | undefined, projectName?: string | undefined);
|
|
421
|
+
isComplete(): boolean;
|
|
422
|
+
formatForAgent(): string;
|
|
423
|
+
}
|
|
424
|
+
export declare const GitHubConfigSchema: z.ZodObject<{
|
|
425
|
+
integrationId: z.ZodString;
|
|
426
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
427
|
+
configType: z.ZodLiteral<ConfigType.GITHUB>;
|
|
428
|
+
repositoryIds: z.ZodArray<z.ZodNumber>;
|
|
429
|
+
eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof GitHubEventType>>>;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
export type GitHubConfigData = z.infer<typeof GitHubConfigSchema>;
|
|
432
|
+
export type GitHubConfigInstance = GitHubConfigData & ConfigBehavior;
|
|
433
|
+
export declare class GitHubConfig extends BaseConfigInstance<IntegrationType.GITHUB, ConfigType.GITHUB> implements GitHubConfigInstance {
|
|
434
|
+
repositoryIds: number[];
|
|
435
|
+
eventTypes?: GitHubEventType[] | undefined;
|
|
436
|
+
constructor(integrationId: string, repositoryIds: number[], eventTypes?: GitHubEventType[] | undefined);
|
|
437
|
+
isComplete(): boolean;
|
|
438
|
+
formatForAgent(): string;
|
|
439
|
+
}
|
|
440
|
+
export declare const JiraConfigSchema: z.ZodObject<{
|
|
441
|
+
integrationId: z.ZodString;
|
|
442
|
+
integrationType: z.ZodLiteral<IntegrationType.ATLASSIAN>;
|
|
443
|
+
configType: z.ZodLiteral<ConfigType.JIRA>;
|
|
444
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
445
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
446
|
+
eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof JiraEventType>>>;
|
|
447
|
+
}, z.core.$strip>;
|
|
448
|
+
export type JiraConfigData = z.infer<typeof JiraConfigSchema>;
|
|
449
|
+
export type JiraConfigInstance = JiraConfigData & ConfigBehavior;
|
|
450
|
+
export declare class JiraConfig extends BaseConfigInstance<IntegrationType.ATLASSIAN, ConfigType.JIRA> implements JiraConfigInstance {
|
|
451
|
+
projectKey?: string | undefined;
|
|
452
|
+
projectId?: string | undefined;
|
|
453
|
+
eventTypes?: JiraEventType[] | undefined;
|
|
454
|
+
constructor(integrationId: string, projectKey?: string | undefined, projectId?: string | undefined, eventTypes?: JiraEventType[] | undefined);
|
|
455
|
+
isComplete(): boolean;
|
|
456
|
+
formatForAgent(): string;
|
|
457
|
+
}
|
|
458
|
+
export declare const ConfluenceConfigSchema: z.ZodObject<{
|
|
459
|
+
integrationId: z.ZodString;
|
|
460
|
+
integrationType: z.ZodLiteral<IntegrationType.ATLASSIAN>;
|
|
461
|
+
configType: z.ZodLiteral<ConfigType.CONFLUENCE>;
|
|
462
|
+
spaceName: z.ZodString;
|
|
463
|
+
spaceId: z.ZodString;
|
|
464
|
+
pageId: z.ZodString;
|
|
465
|
+
pageName: z.ZodString;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
export type ConfluenceConfigData = z.infer<typeof ConfluenceConfigSchema>;
|
|
468
|
+
export type ConfluenceConfigInstance = ConfluenceConfigData & ConfigBehavior;
|
|
469
|
+
export declare class ConfluenceConfig extends BaseConfigInstance<IntegrationType.ATLASSIAN, ConfigType.CONFLUENCE> implements ConfluenceConfigInstance {
|
|
470
|
+
spaceName: string;
|
|
471
|
+
spaceId: string;
|
|
472
|
+
pageId: string;
|
|
473
|
+
pageName: string;
|
|
474
|
+
constructor(integrationId: string, spaceName: string, spaceId: string, pageId: string, // Page ID (required for outputs - specific page to write to)
|
|
475
|
+
pageName: string);
|
|
476
|
+
isComplete(): boolean;
|
|
477
|
+
formatForAgent(): string;
|
|
478
|
+
}
|
|
479
|
+
export declare const PosthogConfigSchema: z.ZodObject<{
|
|
480
|
+
integrationId: z.ZodString;
|
|
481
|
+
integrationType: z.ZodLiteral<IntegrationType.POSTHOG>;
|
|
482
|
+
configType: z.ZodLiteral<ConfigType.POSTHOG>;
|
|
483
|
+
projectId: z.ZodString;
|
|
484
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
export type PosthogConfigData = z.infer<typeof PosthogConfigSchema>;
|
|
487
|
+
export type PosthogConfigInstance = PosthogConfigData & ConfigBehavior;
|
|
488
|
+
export declare class PosthogConfig extends BaseConfigInstance<IntegrationType.POSTHOG, ConfigType.POSTHOG> implements PosthogConfigInstance {
|
|
489
|
+
projectId: string;
|
|
490
|
+
projectName?: string | undefined;
|
|
491
|
+
constructor(integrationId: string, projectId: string, projectName?: string | undefined);
|
|
492
|
+
isComplete(): boolean;
|
|
493
|
+
formatForAgent(): string;
|
|
494
|
+
}
|
|
495
|
+
export declare const DatadogConfigSchema: z.ZodObject<{
|
|
496
|
+
integrationId: z.ZodString;
|
|
497
|
+
integrationType: z.ZodLiteral<IntegrationType.DATADOG>;
|
|
498
|
+
configType: z.ZodLiteral<ConfigType.DATADOG>;
|
|
499
|
+
defaultIndexes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
500
|
+
}, z.core.$strip>;
|
|
501
|
+
export type DatadogConfigData = z.infer<typeof DatadogConfigSchema>;
|
|
502
|
+
export type DatadogConfigInstance = DatadogConfigData & ConfigBehavior;
|
|
503
|
+
export declare class DatadogConfig extends BaseConfigInstance<IntegrationType.DATADOG, ConfigType.DATADOG> implements DatadogConfigInstance {
|
|
504
|
+
defaultIndexes: string[];
|
|
505
|
+
constructor(integrationId: string, defaultIndexes?: string[]);
|
|
506
|
+
isComplete(): boolean;
|
|
507
|
+
formatForAgent(): string;
|
|
508
|
+
}
|
|
509
|
+
export declare const TimeTriggerConfigSchema: z.ZodObject<{
|
|
510
|
+
integrationId: z.ZodLiteral<"system">;
|
|
511
|
+
integrationType: z.ZodLiteral<IntegrationType.CRON_JOB>;
|
|
512
|
+
configType: z.ZodLiteral<ConfigType.TIME_TRIGGER>;
|
|
513
|
+
cronExpression: z.ZodString;
|
|
514
|
+
}, z.core.$strip>;
|
|
515
|
+
export type TimeTriggerConfigData = z.infer<typeof TimeTriggerConfigSchema>;
|
|
516
|
+
export type TimeTriggerConfigInstance = TimeTriggerConfigData & ConfigBehavior;
|
|
517
|
+
export declare class TimeTriggerConfig extends BaseConfigInstance<IntegrationType.CRON_JOB, ConfigType.TIME_TRIGGER, "system"> implements TimeTriggerConfigInstance {
|
|
518
|
+
cronExpression: string;
|
|
519
|
+
constructor(cronExpression: string);
|
|
520
|
+
isComplete(): boolean;
|
|
521
|
+
formatForAgent(): string;
|
|
522
|
+
}
|
|
523
|
+
export declare const LaunchDarklyConfigSchema: z.ZodObject<{
|
|
524
|
+
integrationId: z.ZodString;
|
|
525
|
+
integrationType: z.ZodLiteral<IntegrationType.LAUNCHDARKLY>;
|
|
526
|
+
configType: z.ZodLiteral<ConfigType.LAUNCHDARKLY>;
|
|
527
|
+
projectKey: z.ZodString;
|
|
528
|
+
environmentKeys: z.ZodArray<z.ZodString>;
|
|
529
|
+
}, z.core.$strip>;
|
|
530
|
+
export type LaunchDarklyConfigData = z.infer<typeof LaunchDarklyConfigSchema>;
|
|
531
|
+
export type LaunchDarklyConfigInstance = LaunchDarklyConfigData & ConfigBehavior;
|
|
532
|
+
export declare class LaunchDarklyConfig extends BaseConfigInstance<IntegrationType.LAUNCHDARKLY, ConfigType.LAUNCHDARKLY> implements LaunchDarklyConfigInstance {
|
|
533
|
+
projectKey: string;
|
|
534
|
+
environmentKeys: string[];
|
|
535
|
+
constructor(integrationId: string, projectKey: string, environmentKeys: string[]);
|
|
536
|
+
isComplete(): boolean;
|
|
537
|
+
formatForAgent(): string;
|
|
538
|
+
}
|
|
539
|
+
export declare const TerseConfigSchema: z.ZodObject<{
|
|
540
|
+
integrationId: z.ZodLiteral<"system">;
|
|
541
|
+
integrationType: z.ZodLiteral<IntegrationType.TERSE>;
|
|
542
|
+
configType: z.ZodLiteral<ConfigType.TERSE>;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
export type TerseConfigData = z.infer<typeof TerseConfigSchema>;
|
|
545
|
+
export type TerseConfigInstance = TerseConfigData & ConfigBehavior;
|
|
546
|
+
export declare class TerseConfig extends BaseConfigInstance<IntegrationType.TERSE, ConfigType.TERSE, "system"> implements TerseConfigInstance {
|
|
547
|
+
constructor();
|
|
548
|
+
isComplete(): boolean;
|
|
549
|
+
formatForAgent(): string;
|
|
550
|
+
}
|
|
551
|
+
export declare const WorkOSInputConfigSchema: z.ZodObject<{
|
|
552
|
+
integrationId: z.ZodString;
|
|
553
|
+
integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
|
|
554
|
+
configType: z.ZodLiteral<ConfigType.WORKOS_INPUT>;
|
|
555
|
+
eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof WorkOSEventType>>>;
|
|
556
|
+
}, z.core.$strip>;
|
|
557
|
+
export type WorkOSInputConfigData = z.infer<typeof WorkOSInputConfigSchema>;
|
|
558
|
+
export type WorkOSInputConfigInstance = WorkOSInputConfigData & ConfigBehavior;
|
|
559
|
+
export declare class WorkOSInputConfig extends BaseConfigInstance<IntegrationType.WORKOS, ConfigType.WORKOS_INPUT> implements WorkOSInputConfigInstance {
|
|
560
|
+
eventTypes: WorkOSEventType[];
|
|
561
|
+
constructor(integrationId: string, eventTypes?: WorkOSEventType[]);
|
|
562
|
+
isComplete(): boolean;
|
|
563
|
+
formatForAgent(): string;
|
|
564
|
+
}
|
|
565
|
+
export declare const WorkOSOutputConfigSchema: z.ZodObject<{
|
|
566
|
+
integrationId: z.ZodString;
|
|
567
|
+
integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
|
|
568
|
+
configType: z.ZodLiteral<ConfigType.WORKOS_OUTPUT>;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
export type WorkOSOutputConfigData = z.infer<typeof WorkOSOutputConfigSchema>;
|
|
571
|
+
export type WorkOSOutputConfigInstance = WorkOSOutputConfigData & ConfigBehavior;
|
|
572
|
+
export declare class WorkOSOutputConfig extends BaseConfigInstance<IntegrationType.WORKOS, ConfigType.WORKOS_OUTPUT> implements WorkOSOutputConfigInstance {
|
|
573
|
+
constructor(integrationId: string);
|
|
574
|
+
isComplete(): boolean;
|
|
575
|
+
formatForAgent(): string;
|
|
576
|
+
}
|
|
577
|
+
export declare const AttioOutputConfigSchema: z.ZodObject<{
|
|
578
|
+
integrationId: z.ZodString;
|
|
579
|
+
integrationType: z.ZodLiteral<IntegrationType.ATTIO>;
|
|
580
|
+
configType: z.ZodLiteral<ConfigType.ATTIO_OUTPUT>;
|
|
581
|
+
objectSlug: z.ZodOptional<z.ZodString>;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
export type AttioOutputConfigData = z.infer<typeof AttioOutputConfigSchema>;
|
|
584
|
+
export type AttioOutputConfigInstance = AttioOutputConfigData & ConfigBehavior;
|
|
585
|
+
export declare class AttioOutputConfig extends BaseConfigInstance<IntegrationType.ATTIO, ConfigType.ATTIO_OUTPUT> implements AttioOutputConfigInstance {
|
|
586
|
+
objectSlug?: string | undefined;
|
|
587
|
+
constructor(integrationId: string, objectSlug?: string | undefined);
|
|
588
|
+
isComplete(): boolean;
|
|
589
|
+
formatForAgent(): string;
|
|
590
|
+
}
|
|
591
|
+
export declare const SnowflakeOutputConfigSchema: z.ZodObject<{
|
|
592
|
+
integrationId: z.ZodString;
|
|
593
|
+
integrationType: z.ZodLiteral<IntegrationType.SNOWFLAKE>;
|
|
594
|
+
configType: z.ZodLiteral<ConfigType.SNOWFLAKE_OUTPUT>;
|
|
595
|
+
}, z.core.$strip>;
|
|
596
|
+
export type SnowflakeOutputConfigData = z.infer<typeof SnowflakeOutputConfigSchema>;
|
|
597
|
+
export type SnowflakeOutputConfigInstance = SnowflakeOutputConfigData & ConfigBehavior;
|
|
598
|
+
export declare class SnowflakeOutputConfig extends BaseConfigInstance<IntegrationType.SNOWFLAKE, ConfigType.SNOWFLAKE_OUTPUT> implements SnowflakeOutputConfigInstance {
|
|
599
|
+
constructor(integrationId: string);
|
|
600
|
+
isComplete(): boolean;
|
|
601
|
+
formatForAgent(): string;
|
|
602
|
+
}
|
|
603
|
+
type EnsureExhaustiveMetadata<T extends Record<ConfigType, new (...args: any[]) => ConfigInstance>> = T;
|
|
604
|
+
export type ConfigMetadataMap = EnsureExhaustiveMetadata<{
|
|
605
|
+
[ConfigType.GMAIL]: typeof GmailConfig;
|
|
606
|
+
[ConfigType.FIGMA]: typeof FigmaConfig;
|
|
607
|
+
[ConfigType.SLACK]: typeof SlackConfig;
|
|
608
|
+
[ConfigType.SLACK_OUTPUT]: typeof SlackOutputConfig;
|
|
609
|
+
[ConfigType.GMAIL_OUTPUT]: typeof GmailOutputConfig;
|
|
610
|
+
[ConfigType.GMAIL_DRAFT_OUTPUT]: typeof GmailDraftOutputConfig;
|
|
611
|
+
[ConfigType.NOTION]: typeof NotionConfig;
|
|
612
|
+
[ConfigType.LINEAR_INPUT]: typeof LinearInputConfig;
|
|
613
|
+
[ConfigType.LINEAR_OUTPUT]: typeof LinearOutputConfig;
|
|
614
|
+
[ConfigType.GITHUB]: typeof GitHubConfig;
|
|
615
|
+
[ConfigType.JIRA]: typeof JiraConfig;
|
|
616
|
+
[ConfigType.CONFLUENCE]: typeof ConfluenceConfig;
|
|
617
|
+
[ConfigType.POSTHOG]: typeof PosthogConfig;
|
|
618
|
+
[ConfigType.DATADOG]: typeof DatadogConfig;
|
|
619
|
+
[ConfigType.TIME_TRIGGER]: typeof TimeTriggerConfig;
|
|
620
|
+
[ConfigType.LAUNCHDARKLY]: typeof LaunchDarklyConfig;
|
|
621
|
+
[ConfigType.TERSE]: typeof TerseConfig;
|
|
622
|
+
[ConfigType.WORKOS_INPUT]: typeof WorkOSInputConfig;
|
|
623
|
+
[ConfigType.WORKOS_OUTPUT]: typeof WorkOSOutputConfig;
|
|
624
|
+
[ConfigType.ATTIO_OUTPUT]: typeof AttioOutputConfig;
|
|
625
|
+
[ConfigType.SNOWFLAKE_OUTPUT]: typeof SnowflakeOutputConfig;
|
|
626
|
+
}>;
|
|
627
|
+
export declare const CONFIG_METADATA: ConfigMetadataMap;
|
|
628
|
+
export {};
|