terse-types 0.0.1 → 0.0.3
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/dist/ApiRouteBuilder.d.ts +2 -0
- package/dist/ApiRoutes.json +4 -2
- package/dist/Configs.d.ts +214 -57
- package/dist/Configs.js +289 -36
- package/dist/Integrations.d.ts +10 -1
- package/dist/Integrations.js +11 -2
- package/dist/ModelEvents.d.ts +302 -155
- package/dist/ModelEvents.js +184 -0
- package/dist/Notifications.d.ts +23 -10
- package/dist/Notifications.js +12 -0
- package/dist/RunHistoryTypes.d.ts +7 -3
- package/dist/RunHistoryTypes.js +5 -6
- package/dist/Tools.d.ts +299 -168
- package/dist/Tools.js +171 -164
- package/dist/ToolsTypes.d.ts +4 -0
- package/dist/ToolsTypes.js +5 -1
- package/dist/types.d.ts +4934 -685
- package/dist/types.js +732 -103
- package/package.json +46 -42
|
@@ -111,6 +111,7 @@ export declare const ApiRoutes: {
|
|
|
111
111
|
LIST: string;
|
|
112
112
|
RECENT: string;
|
|
113
113
|
BY_ID: string;
|
|
114
|
+
WEBHOOK_URL: string;
|
|
114
115
|
};
|
|
115
116
|
IMPROVEMENTS: {
|
|
116
117
|
BY_AGENT_ID: string;
|
|
@@ -167,6 +168,7 @@ export declare const ApiRoutes: {
|
|
|
167
168
|
LINEAR_BY_USER_ID: string;
|
|
168
169
|
SCHEDULE_BY_INPUT_ID: string;
|
|
169
170
|
WORKOS_TRIGGER_BY_INTEGRATION_ID: string;
|
|
171
|
+
WEBHOOK_TRIGGER_BY_TOKEN: string;
|
|
170
172
|
};
|
|
171
173
|
SCHEDULE: {
|
|
172
174
|
TRIGGER_BY_INPUT_ID: string;
|
package/dist/ApiRoutes.json
CHANGED
|
@@ -110,7 +110,8 @@
|
|
|
110
110
|
"AGENTS": {
|
|
111
111
|
"LIST": "/agents",
|
|
112
112
|
"RECENT": "/agents/recent",
|
|
113
|
-
"BY_ID": "/agents/:id"
|
|
113
|
+
"BY_ID": "/agents/:id",
|
|
114
|
+
"WEBHOOK_URL": "/agents/:agentId/webhook-url"
|
|
114
115
|
},
|
|
115
116
|
"IMPROVEMENTS": {
|
|
116
117
|
"BY_AGENT_ID": "/agents/:agentId/improvements",
|
|
@@ -166,7 +167,8 @@
|
|
|
166
167
|
"JIRA_BY_ACCOUNT_ID": "/webhooks/jira/:accountId",
|
|
167
168
|
"LINEAR_BY_USER_ID": "/webhooks/linear/:userId",
|
|
168
169
|
"SCHEDULE_BY_INPUT_ID": "/webhooks/schedule/:inputId",
|
|
169
|
-
"WORKOS_TRIGGER_BY_INTEGRATION_ID": "/webhooks/workos-trigger/:integrationId"
|
|
170
|
+
"WORKOS_TRIGGER_BY_INTEGRATION_ID": "/webhooks/workos-trigger/:integrationId",
|
|
171
|
+
"WEBHOOK_TRIGGER_BY_TOKEN": "/webhooks/trigger/:webhookToken"
|
|
170
172
|
},
|
|
171
173
|
"SCHEDULE": {
|
|
172
174
|
"TRIGGER_BY_INPUT_ID": "/schedule/trigger/:inputId",
|
package/dist/Configs.d.ts
CHANGED
|
@@ -21,7 +21,8 @@ export declare enum ConfigType {
|
|
|
21
21
|
WORKOS_INPUT = "workos_input",
|
|
22
22
|
WORKOS_OUTPUT = "workos_output",
|
|
23
23
|
ATTIO_OUTPUT = "attio_output",
|
|
24
|
-
SNOWFLAKE_OUTPUT = "snowflake_output"
|
|
24
|
+
SNOWFLAKE_OUTPUT = "snowflake_output",
|
|
25
|
+
WEBHOOK_INPUT = "webhook_input"
|
|
25
26
|
}
|
|
26
27
|
export declare const configTypeEnum: z.ZodEnum<typeof ConfigType>;
|
|
27
28
|
export interface ConfigDetails {
|
|
@@ -200,6 +201,14 @@ export declare const SnowflakeOutputConfigMetadata: {
|
|
|
200
201
|
readonly isInput: false;
|
|
201
202
|
readonly isOutput: true;
|
|
202
203
|
};
|
|
204
|
+
export declare const WebhookInputConfigMetadata: {
|
|
205
|
+
readonly configType: ConfigType.WEBHOOK_INPUT;
|
|
206
|
+
readonly name: "Webhook";
|
|
207
|
+
readonly description: "Trigger via an external HTTP request to a generated URL";
|
|
208
|
+
readonly integrationType: IntegrationType.WEBHOOK;
|
|
209
|
+
readonly isInput: true;
|
|
210
|
+
readonly isOutput: false;
|
|
211
|
+
};
|
|
203
212
|
export type ConfigDetailsMap = Record<ConfigType, ConfigDetails>;
|
|
204
213
|
export declare const CONFIG_DETAILS: ConfigDetailsMap;
|
|
205
214
|
export declare enum SlackEventType {
|
|
@@ -265,13 +274,13 @@ export declare const GmailConfigSchema: z.ZodObject<{
|
|
|
265
274
|
integrationId: z.ZodString;
|
|
266
275
|
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
267
276
|
configType: z.ZodLiteral<ConfigType.GMAIL>;
|
|
268
|
-
eventTypes: z.
|
|
277
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof GmailEventType>>>;
|
|
269
278
|
}, z.core.$strip>;
|
|
270
279
|
export type GmailConfigData = z.infer<typeof GmailConfigSchema>;
|
|
271
280
|
export type GmailConfigInstance = GmailConfigData & ConfigBehavior;
|
|
272
281
|
export declare class GmailConfig extends BaseConfigInstance<IntegrationType.GMAIL, ConfigType.GMAIL> implements GmailConfigInstance {
|
|
273
|
-
eventTypes
|
|
274
|
-
constructor(integrationId: string, eventTypes?: GmailEventType[] |
|
|
282
|
+
eventTypes: GmailEventType[] | null;
|
|
283
|
+
constructor(integrationId: string, eventTypes?: GmailEventType[] | null);
|
|
275
284
|
isComplete(): boolean;
|
|
276
285
|
formatForAgent(): string;
|
|
277
286
|
}
|
|
@@ -282,7 +291,7 @@ export declare const FigmaConfigSchema: z.ZodObject<{
|
|
|
282
291
|
fileKey: z.ZodString;
|
|
283
292
|
fileName: z.ZodString;
|
|
284
293
|
teamId: z.ZodString;
|
|
285
|
-
eventTypes: z.
|
|
294
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof FigmaEventType>>>;
|
|
286
295
|
}, z.core.$strip>;
|
|
287
296
|
export type FigmaConfigData = z.infer<typeof FigmaConfigSchema>;
|
|
288
297
|
export type FigmaConfigInstance = FigmaConfigData & ConfigBehavior;
|
|
@@ -290,8 +299,8 @@ export declare class FigmaConfig extends BaseConfigInstance<IntegrationType.FIGM
|
|
|
290
299
|
fileKey: string;
|
|
291
300
|
fileName: string;
|
|
292
301
|
teamId: string;
|
|
293
|
-
eventTypes
|
|
294
|
-
constructor(integrationId: string, fileKey: string, fileName: string, teamId: string, eventTypes?: FigmaEventType[] |
|
|
302
|
+
eventTypes: FigmaEventType[] | null;
|
|
303
|
+
constructor(integrationId: string, fileKey: string, fileName: string, teamId: string, eventTypes?: FigmaEventType[] | null);
|
|
295
304
|
isComplete(): boolean;
|
|
296
305
|
formatForAgent(): string;
|
|
297
306
|
}
|
|
@@ -299,21 +308,21 @@ export declare const SlackConfigSchema: z.ZodObject<{
|
|
|
299
308
|
integrationId: z.ZodString;
|
|
300
309
|
integrationType: z.ZodLiteral<IntegrationType.SLACK>;
|
|
301
310
|
configType: z.ZodLiteral<ConfigType.SLACK>;
|
|
302
|
-
channelId: z.
|
|
303
|
-
channelName: z.
|
|
311
|
+
channelId: z.ZodNullable<z.ZodString>;
|
|
312
|
+
channelName: z.ZodNullable<z.ZodString>;
|
|
304
313
|
listenToUserDms: z.ZodDefault<z.ZodBoolean>;
|
|
305
|
-
userIds: z.
|
|
306
|
-
eventTypes: z.
|
|
314
|
+
userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
315
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof SlackEventType>>>;
|
|
307
316
|
}, z.core.$strip>;
|
|
308
317
|
export type SlackConfigData = z.infer<typeof SlackConfigSchema>;
|
|
309
318
|
export type SlackConfigInstance = SlackConfigData & ConfigBehavior;
|
|
310
319
|
export declare class SlackConfig extends BaseConfigInstance<IntegrationType.SLACK, ConfigType.SLACK> implements SlackConfigInstance {
|
|
311
|
-
channelId
|
|
312
|
-
channelName
|
|
320
|
+
channelId: string | null;
|
|
321
|
+
channelName: string | null;
|
|
313
322
|
listenToUserDms: boolean;
|
|
314
|
-
userIds
|
|
315
|
-
eventTypes
|
|
316
|
-
constructor(integrationId: string, channelId?: string |
|
|
323
|
+
userIds: string[] | null;
|
|
324
|
+
eventTypes: SlackEventType[] | null;
|
|
325
|
+
constructor(integrationId: string, channelId?: string | null, channelName?: string | null, listenToUserDms?: boolean, userIds?: string[] | null, eventTypes?: SlackEventType[] | null);
|
|
317
326
|
isComplete(): boolean;
|
|
318
327
|
formatForAgent(): string;
|
|
319
328
|
}
|
|
@@ -321,21 +330,21 @@ export declare const SlackOutputConfigSchema: z.ZodObject<{
|
|
|
321
330
|
integrationId: z.ZodString;
|
|
322
331
|
integrationType: z.ZodLiteral<IntegrationType.SLACK>;
|
|
323
332
|
configType: z.ZodLiteral<ConfigType.SLACK_OUTPUT>;
|
|
324
|
-
channelId: z.
|
|
325
|
-
channelName: z.
|
|
326
|
-
userIds: z.
|
|
327
|
-
userNames: z.
|
|
333
|
+
channelId: z.ZodNullable<z.ZodString>;
|
|
334
|
+
channelName: z.ZodNullable<z.ZodString>;
|
|
335
|
+
userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
336
|
+
userNames: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
328
337
|
listenToUserDms: z.ZodDefault<z.ZodBoolean>;
|
|
329
338
|
}, z.core.$strip>;
|
|
330
339
|
export type SlackOutputConfigData = z.infer<typeof SlackOutputConfigSchema>;
|
|
331
340
|
export type SlackOutputConfigInstance = SlackOutputConfigData & ConfigBehavior;
|
|
332
341
|
export declare class SlackOutputConfig extends BaseConfigInstance<IntegrationType.SLACK, ConfigType.SLACK_OUTPUT> implements SlackOutputConfigInstance {
|
|
333
|
-
channelId
|
|
334
|
-
channelName
|
|
335
|
-
userIds
|
|
336
|
-
userNames
|
|
342
|
+
channelId: string | null;
|
|
343
|
+
channelName: string | null;
|
|
344
|
+
userIds: string[] | null;
|
|
345
|
+
userNames: string[] | null;
|
|
337
346
|
listenToUserDms: boolean;
|
|
338
|
-
constructor(integrationId: string, channelId?: string |
|
|
347
|
+
constructor(integrationId: string, channelId?: string | null, channelName?: string | null, userIds?: string[] | null, userNames?: string[] | null, listenToUserDms?: boolean);
|
|
339
348
|
isComplete(): boolean;
|
|
340
349
|
formatForAgent(): string;
|
|
341
350
|
}
|
|
@@ -387,17 +396,17 @@ export declare const LinearInputConfigSchema: z.ZodObject<{
|
|
|
387
396
|
integrationId: z.ZodString;
|
|
388
397
|
integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
|
|
389
398
|
configType: z.ZodLiteral<ConfigType.LINEAR_INPUT>;
|
|
390
|
-
projectId: z.
|
|
391
|
-
projectName: z.
|
|
392
|
-
eventTypes: z.
|
|
399
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
400
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
401
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof LinearEventType>>>;
|
|
393
402
|
}, z.core.$strip>;
|
|
394
403
|
export type LinearInputConfigData = z.infer<typeof LinearInputConfigSchema>;
|
|
395
404
|
export type LinearInputConfigInstance = LinearInputConfigData & ConfigBehavior;
|
|
396
405
|
export declare class LinearInputConfig extends BaseConfigInstance<IntegrationType.LINEAR, ConfigType.LINEAR_INPUT> implements LinearInputConfigInstance {
|
|
397
|
-
projectId
|
|
398
|
-
projectName
|
|
399
|
-
eventTypes
|
|
400
|
-
constructor(integrationId: string, projectId?: string |
|
|
406
|
+
projectId: string | null;
|
|
407
|
+
projectName: string | null;
|
|
408
|
+
eventTypes: LinearEventType[] | null;
|
|
409
|
+
constructor(integrationId: string, projectId?: string | null, projectName?: string | null, eventTypes?: LinearEventType[] | null);
|
|
401
410
|
isComplete(): boolean;
|
|
402
411
|
formatForAgent(): string;
|
|
403
412
|
}
|
|
@@ -405,19 +414,19 @@ export declare const LinearOutputConfigSchema: z.ZodObject<{
|
|
|
405
414
|
integrationId: z.ZodString;
|
|
406
415
|
integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
|
|
407
416
|
configType: z.ZodLiteral<ConfigType.LINEAR_OUTPUT>;
|
|
408
|
-
teamId: z.
|
|
409
|
-
teamName: z.
|
|
410
|
-
projectId: z.
|
|
411
|
-
projectName: z.
|
|
417
|
+
teamId: z.ZodNullable<z.ZodString>;
|
|
418
|
+
teamName: z.ZodNullable<z.ZodString>;
|
|
419
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
420
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
412
421
|
}, z.core.$strip>;
|
|
413
422
|
export type LinearOutputConfigData = z.infer<typeof LinearOutputConfigSchema>;
|
|
414
423
|
export type LinearOutputConfigInstance = LinearOutputConfigData & ConfigBehavior;
|
|
415
424
|
export declare class LinearOutputConfig extends BaseConfigInstance<IntegrationType.LINEAR, ConfigType.LINEAR_OUTPUT> implements LinearOutputConfigInstance {
|
|
416
|
-
teamId
|
|
417
|
-
teamName
|
|
418
|
-
projectId
|
|
419
|
-
projectName
|
|
420
|
-
constructor(integrationId: string, teamId?: string |
|
|
425
|
+
teamId: string | null;
|
|
426
|
+
teamName: string | null;
|
|
427
|
+
projectId: string | null;
|
|
428
|
+
projectName: string | null;
|
|
429
|
+
constructor(integrationId: string, teamId?: string | null, teamName?: string | null, projectId?: string | null, projectName?: string | null);
|
|
421
430
|
isComplete(): boolean;
|
|
422
431
|
formatForAgent(): string;
|
|
423
432
|
}
|
|
@@ -426,14 +435,14 @@ export declare const GitHubConfigSchema: z.ZodObject<{
|
|
|
426
435
|
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
427
436
|
configType: z.ZodLiteral<ConfigType.GITHUB>;
|
|
428
437
|
repositoryIds: z.ZodArray<z.ZodNumber>;
|
|
429
|
-
eventTypes: z.
|
|
438
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof GitHubEventType>>>;
|
|
430
439
|
}, z.core.$strip>;
|
|
431
440
|
export type GitHubConfigData = z.infer<typeof GitHubConfigSchema>;
|
|
432
441
|
export type GitHubConfigInstance = GitHubConfigData & ConfigBehavior;
|
|
433
442
|
export declare class GitHubConfig extends BaseConfigInstance<IntegrationType.GITHUB, ConfigType.GITHUB> implements GitHubConfigInstance {
|
|
434
443
|
repositoryIds: number[];
|
|
435
|
-
eventTypes
|
|
436
|
-
constructor(integrationId: string, repositoryIds: number[], eventTypes?: GitHubEventType[] |
|
|
444
|
+
eventTypes: GitHubEventType[] | null;
|
|
445
|
+
constructor(integrationId: string, repositoryIds: number[], eventTypes?: GitHubEventType[] | null);
|
|
437
446
|
isComplete(): boolean;
|
|
438
447
|
formatForAgent(): string;
|
|
439
448
|
}
|
|
@@ -441,17 +450,17 @@ export declare const JiraConfigSchema: z.ZodObject<{
|
|
|
441
450
|
integrationId: z.ZodString;
|
|
442
451
|
integrationType: z.ZodLiteral<IntegrationType.ATLASSIAN>;
|
|
443
452
|
configType: z.ZodLiteral<ConfigType.JIRA>;
|
|
444
|
-
projectKey: z.
|
|
445
|
-
projectId: z.
|
|
446
|
-
eventTypes: z.
|
|
453
|
+
projectKey: z.ZodNullable<z.ZodString>;
|
|
454
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
455
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof JiraEventType>>>;
|
|
447
456
|
}, z.core.$strip>;
|
|
448
457
|
export type JiraConfigData = z.infer<typeof JiraConfigSchema>;
|
|
449
458
|
export type JiraConfigInstance = JiraConfigData & ConfigBehavior;
|
|
450
459
|
export declare class JiraConfig extends BaseConfigInstance<IntegrationType.ATLASSIAN, ConfigType.JIRA> implements JiraConfigInstance {
|
|
451
|
-
projectKey
|
|
452
|
-
projectId
|
|
453
|
-
eventTypes
|
|
454
|
-
constructor(integrationId: string, projectKey?: string |
|
|
460
|
+
projectKey: string | null;
|
|
461
|
+
projectId: string | null;
|
|
462
|
+
eventTypes: JiraEventType[] | null;
|
|
463
|
+
constructor(integrationId: string, projectKey?: string | null, projectId?: string | null, eventTypes?: JiraEventType[] | null);
|
|
455
464
|
isComplete(): boolean;
|
|
456
465
|
formatForAgent(): string;
|
|
457
466
|
}
|
|
@@ -481,14 +490,14 @@ export declare const PosthogConfigSchema: z.ZodObject<{
|
|
|
481
490
|
integrationType: z.ZodLiteral<IntegrationType.POSTHOG>;
|
|
482
491
|
configType: z.ZodLiteral<ConfigType.POSTHOG>;
|
|
483
492
|
projectId: z.ZodString;
|
|
484
|
-
projectName: z.
|
|
493
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
485
494
|
}, z.core.$strip>;
|
|
486
495
|
export type PosthogConfigData = z.infer<typeof PosthogConfigSchema>;
|
|
487
496
|
export type PosthogConfigInstance = PosthogConfigData & ConfigBehavior;
|
|
488
497
|
export declare class PosthogConfig extends BaseConfigInstance<IntegrationType.POSTHOG, ConfigType.POSTHOG> implements PosthogConfigInstance {
|
|
489
498
|
projectId: string;
|
|
490
|
-
projectName
|
|
491
|
-
constructor(integrationId: string, projectId: string, projectName?: string |
|
|
499
|
+
projectName: string | null;
|
|
500
|
+
constructor(integrationId: string, projectId: string, projectName?: string | null);
|
|
492
501
|
isComplete(): boolean;
|
|
493
502
|
formatForAgent(): string;
|
|
494
503
|
}
|
|
@@ -578,13 +587,13 @@ export declare const AttioOutputConfigSchema: z.ZodObject<{
|
|
|
578
587
|
integrationId: z.ZodString;
|
|
579
588
|
integrationType: z.ZodLiteral<IntegrationType.ATTIO>;
|
|
580
589
|
configType: z.ZodLiteral<ConfigType.ATTIO_OUTPUT>;
|
|
581
|
-
objectSlug: z.
|
|
590
|
+
objectSlug: z.ZodNullable<z.ZodString>;
|
|
582
591
|
}, z.core.$strip>;
|
|
583
592
|
export type AttioOutputConfigData = z.infer<typeof AttioOutputConfigSchema>;
|
|
584
593
|
export type AttioOutputConfigInstance = AttioOutputConfigData & ConfigBehavior;
|
|
585
594
|
export declare class AttioOutputConfig extends BaseConfigInstance<IntegrationType.ATTIO, ConfigType.ATTIO_OUTPUT> implements AttioOutputConfigInstance {
|
|
586
|
-
objectSlug
|
|
587
|
-
constructor(integrationId: string, objectSlug?: string |
|
|
595
|
+
objectSlug: string | null;
|
|
596
|
+
constructor(integrationId: string, objectSlug?: string | null);
|
|
588
597
|
isComplete(): boolean;
|
|
589
598
|
formatForAgent(): string;
|
|
590
599
|
}
|
|
@@ -600,6 +609,153 @@ export declare class SnowflakeOutputConfig extends BaseConfigInstance<Integratio
|
|
|
600
609
|
isComplete(): boolean;
|
|
601
610
|
formatForAgent(): string;
|
|
602
611
|
}
|
|
612
|
+
export declare const WebhookInputConfigSchema: z.ZodObject<{
|
|
613
|
+
integrationId: z.ZodLiteral<"system">;
|
|
614
|
+
integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
|
|
615
|
+
configType: z.ZodLiteral<ConfigType.WEBHOOK_INPUT>;
|
|
616
|
+
}, z.core.$strip>;
|
|
617
|
+
export type WebhookInputConfigData = z.infer<typeof WebhookInputConfigSchema>;
|
|
618
|
+
export type WebhookInputConfigInstance = WebhookInputConfigData & ConfigBehavior;
|
|
619
|
+
export declare class WebhookInputConfig extends BaseConfigInstance<IntegrationType.WEBHOOK, ConfigType.WEBHOOK_INPUT, "system"> implements WebhookInputConfigInstance {
|
|
620
|
+
constructor();
|
|
621
|
+
isComplete(): boolean;
|
|
622
|
+
formatForAgent(): string;
|
|
623
|
+
}
|
|
624
|
+
export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
625
|
+
integrationId: z.ZodString;
|
|
626
|
+
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
627
|
+
configType: z.ZodLiteral<ConfigType.GMAIL>;
|
|
628
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof GmailEventType>>>;
|
|
629
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
630
|
+
integrationId: z.ZodString;
|
|
631
|
+
integrationType: z.ZodLiteral<IntegrationType.FIGMA>;
|
|
632
|
+
configType: z.ZodLiteral<ConfigType.FIGMA>;
|
|
633
|
+
fileKey: z.ZodString;
|
|
634
|
+
fileName: z.ZodString;
|
|
635
|
+
teamId: z.ZodString;
|
|
636
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof FigmaEventType>>>;
|
|
637
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
638
|
+
integrationId: z.ZodString;
|
|
639
|
+
integrationType: z.ZodLiteral<IntegrationType.SLACK>;
|
|
640
|
+
configType: z.ZodLiteral<ConfigType.SLACK>;
|
|
641
|
+
channelId: z.ZodNullable<z.ZodString>;
|
|
642
|
+
channelName: z.ZodNullable<z.ZodString>;
|
|
643
|
+
listenToUserDms: z.ZodDefault<z.ZodBoolean>;
|
|
644
|
+
userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
645
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof SlackEventType>>>;
|
|
646
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
647
|
+
integrationId: z.ZodString;
|
|
648
|
+
integrationType: z.ZodLiteral<IntegrationType.SLACK>;
|
|
649
|
+
configType: z.ZodLiteral<ConfigType.SLACK_OUTPUT>;
|
|
650
|
+
channelId: z.ZodNullable<z.ZodString>;
|
|
651
|
+
channelName: z.ZodNullable<z.ZodString>;
|
|
652
|
+
userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
653
|
+
userNames: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
654
|
+
listenToUserDms: z.ZodDefault<z.ZodBoolean>;
|
|
655
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
656
|
+
integrationId: z.ZodString;
|
|
657
|
+
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
658
|
+
configType: z.ZodLiteral<ConfigType.GMAIL_OUTPUT>;
|
|
659
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
660
|
+
integrationId: z.ZodString;
|
|
661
|
+
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
662
|
+
configType: z.ZodLiteral<ConfigType.GMAIL_DRAFT_OUTPUT>;
|
|
663
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
664
|
+
integrationId: z.ZodString;
|
|
665
|
+
integrationType: z.ZodLiteral<IntegrationType.NOTION>;
|
|
666
|
+
configType: z.ZodLiteral<ConfigType.NOTION>;
|
|
667
|
+
databaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
668
|
+
databaseNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
669
|
+
pageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
670
|
+
pageNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
671
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
672
|
+
integrationId: z.ZodString;
|
|
673
|
+
integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
|
|
674
|
+
configType: z.ZodLiteral<ConfigType.LINEAR_INPUT>;
|
|
675
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
676
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
677
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof LinearEventType>>>;
|
|
678
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
679
|
+
integrationId: z.ZodString;
|
|
680
|
+
integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
|
|
681
|
+
configType: z.ZodLiteral<ConfigType.LINEAR_OUTPUT>;
|
|
682
|
+
teamId: z.ZodNullable<z.ZodString>;
|
|
683
|
+
teamName: z.ZodNullable<z.ZodString>;
|
|
684
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
685
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
686
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
687
|
+
integrationId: z.ZodString;
|
|
688
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
689
|
+
configType: z.ZodLiteral<ConfigType.GITHUB>;
|
|
690
|
+
repositoryIds: z.ZodArray<z.ZodNumber>;
|
|
691
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof GitHubEventType>>>;
|
|
692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
693
|
+
integrationId: z.ZodString;
|
|
694
|
+
integrationType: z.ZodLiteral<IntegrationType.ATLASSIAN>;
|
|
695
|
+
configType: z.ZodLiteral<ConfigType.JIRA>;
|
|
696
|
+
projectKey: z.ZodNullable<z.ZodString>;
|
|
697
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
698
|
+
eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof JiraEventType>>>;
|
|
699
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
700
|
+
integrationId: z.ZodString;
|
|
701
|
+
integrationType: z.ZodLiteral<IntegrationType.ATLASSIAN>;
|
|
702
|
+
configType: z.ZodLiteral<ConfigType.CONFLUENCE>;
|
|
703
|
+
spaceName: z.ZodString;
|
|
704
|
+
spaceId: z.ZodString;
|
|
705
|
+
pageId: z.ZodString;
|
|
706
|
+
pageName: z.ZodString;
|
|
707
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
708
|
+
integrationId: z.ZodString;
|
|
709
|
+
integrationType: z.ZodLiteral<IntegrationType.POSTHOG>;
|
|
710
|
+
configType: z.ZodLiteral<ConfigType.POSTHOG>;
|
|
711
|
+
projectId: z.ZodString;
|
|
712
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
714
|
+
integrationId: z.ZodString;
|
|
715
|
+
integrationType: z.ZodLiteral<IntegrationType.DATADOG>;
|
|
716
|
+
configType: z.ZodLiteral<ConfigType.DATADOG>;
|
|
717
|
+
defaultIndexes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
718
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
719
|
+
integrationId: z.ZodLiteral<"system">;
|
|
720
|
+
integrationType: z.ZodLiteral<IntegrationType.CRON_JOB>;
|
|
721
|
+
configType: z.ZodLiteral<ConfigType.TIME_TRIGGER>;
|
|
722
|
+
cronExpression: z.ZodString;
|
|
723
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
724
|
+
integrationId: z.ZodString;
|
|
725
|
+
integrationType: z.ZodLiteral<IntegrationType.LAUNCHDARKLY>;
|
|
726
|
+
configType: z.ZodLiteral<ConfigType.LAUNCHDARKLY>;
|
|
727
|
+
projectKey: z.ZodString;
|
|
728
|
+
environmentKeys: z.ZodArray<z.ZodString>;
|
|
729
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
730
|
+
integrationId: z.ZodLiteral<"system">;
|
|
731
|
+
integrationType: z.ZodLiteral<IntegrationType.TERSE>;
|
|
732
|
+
configType: z.ZodLiteral<ConfigType.TERSE>;
|
|
733
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
734
|
+
integrationId: z.ZodString;
|
|
735
|
+
integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
|
|
736
|
+
configType: z.ZodLiteral<ConfigType.WORKOS_INPUT>;
|
|
737
|
+
eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof WorkOSEventType>>>;
|
|
738
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
739
|
+
integrationId: z.ZodString;
|
|
740
|
+
integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
|
|
741
|
+
configType: z.ZodLiteral<ConfigType.WORKOS_OUTPUT>;
|
|
742
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
743
|
+
integrationId: z.ZodString;
|
|
744
|
+
integrationType: z.ZodLiteral<IntegrationType.ATTIO>;
|
|
745
|
+
configType: z.ZodLiteral<ConfigType.ATTIO_OUTPUT>;
|
|
746
|
+
objectSlug: z.ZodNullable<z.ZodString>;
|
|
747
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
748
|
+
integrationId: z.ZodString;
|
|
749
|
+
integrationType: z.ZodLiteral<IntegrationType.SNOWFLAKE>;
|
|
750
|
+
configType: z.ZodLiteral<ConfigType.SNOWFLAKE_OUTPUT>;
|
|
751
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
752
|
+
integrationId: z.ZodLiteral<"system">;
|
|
753
|
+
integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
|
|
754
|
+
configType: z.ZodLiteral<ConfigType.WEBHOOK_INPUT>;
|
|
755
|
+
}, z.core.$strip>]>;
|
|
756
|
+
export type ConfigData = z.infer<typeof configDataSchema>;
|
|
757
|
+
export declare function isConfigComplete(config: ConfigData | undefined): boolean;
|
|
758
|
+
export declare function formatConfigForAgent(config: ConfigData): string;
|
|
603
759
|
type EnsureExhaustiveMetadata<T extends Record<ConfigType, new (...args: any[]) => ConfigInstance>> = T;
|
|
604
760
|
export type ConfigMetadataMap = EnsureExhaustiveMetadata<{
|
|
605
761
|
[ConfigType.GMAIL]: typeof GmailConfig;
|
|
@@ -623,6 +779,7 @@ export type ConfigMetadataMap = EnsureExhaustiveMetadata<{
|
|
|
623
779
|
[ConfigType.WORKOS_OUTPUT]: typeof WorkOSOutputConfig;
|
|
624
780
|
[ConfigType.ATTIO_OUTPUT]: typeof AttioOutputConfig;
|
|
625
781
|
[ConfigType.SNOWFLAKE_OUTPUT]: typeof SnowflakeOutputConfig;
|
|
782
|
+
[ConfigType.WEBHOOK_INPUT]: typeof WebhookInputConfig;
|
|
626
783
|
}>;
|
|
627
784
|
export declare const CONFIG_METADATA: ConfigMetadataMap;
|
|
628
785
|
export {};
|