terse-types 0.0.3 → 0.0.5

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/Configs.d.ts CHANGED
@@ -4,15 +4,12 @@ export declare enum ConfigType {
4
4
  GMAIL = "gmail",
5
5
  GMAIL_OUTPUT = "gmail_output",
6
6
  GMAIL_DRAFT_OUTPUT = "gmail_draft_output",
7
- FIGMA = "figma",
8
7
  SLACK = "slack",
9
8
  SLACK_OUTPUT = "slack_output",
10
9
  NOTION = "notion",
11
10
  LINEAR_INPUT = "linear_input",
12
11
  LINEAR_OUTPUT = "linear_output",
13
12
  GITHUB = "github",
14
- JIRA = "jira",
15
- CONFLUENCE = "confluence",
16
13
  POSTHOG = "POSTHOG",
17
14
  DATADOG = "DATADOG",
18
15
  TIME_TRIGGER = "time_trigger",
@@ -41,14 +38,6 @@ export declare const GmailConfigMetadata: {
41
38
  readonly isInput: true;
42
39
  readonly isOutput: false;
43
40
  };
44
- export declare const FigmaConfigMetadata: {
45
- readonly configType: ConfigType.FIGMA;
46
- readonly name: "Figma";
47
- readonly description: "Monitor design changes in Figma files";
48
- readonly integrationType: IntegrationType.FIGMA;
49
- readonly isInput: true;
50
- readonly isOutput: false;
51
- };
52
41
  export declare const SlackConfigMetadata: {
53
42
  readonly configType: ConfigType.SLACK;
54
43
  readonly name: "Slack";
@@ -113,22 +102,6 @@ export declare const GitHubConfigMetadata: {
113
102
  readonly isInput: true;
114
103
  readonly isOutput: true;
115
104
  };
116
- export declare const JiraConfigMetadata: {
117
- readonly configType: ConfigType.JIRA;
118
- readonly name: "Jira";
119
- readonly description: "Monitor and update Jira issues";
120
- readonly integrationType: IntegrationType.ATLASSIAN;
121
- readonly isInput: true;
122
- readonly isOutput: true;
123
- };
124
- export declare const ConfluenceConfigMetadata: {
125
- readonly configType: ConfigType.CONFLUENCE;
126
- readonly name: "Confluence";
127
- readonly description: "Update Confluence pages";
128
- readonly integrationType: IntegrationType.ATLASSIAN;
129
- readonly isInput: false;
130
- readonly isOutput: true;
131
- };
132
105
  export declare const PosthogConfigMetadata: {
133
106
  readonly configType: ConfigType.POSTHOG;
134
107
  readonly name: "Posthog";
@@ -211,46 +184,77 @@ export declare const WebhookInputConfigMetadata: {
211
184
  };
212
185
  export type ConfigDetailsMap = Record<ConfigType, ConfigDetails>;
213
186
  export declare const CONFIG_DETAILS: ConfigDetailsMap;
214
- export declare enum SlackEventType {
215
- MESSAGE = "message",
216
- APP_MENTION = "app_mention",
217
- REACTION_ADDED = "reaction_added"
218
- }
219
- export declare enum GitHubEventType {
220
- PUSH = "push",
221
- PR_OPENED = "pull_request.opened",
222
- PR_MERGED = "pull_request.merged",
223
- PR_CLOSED = "pull_request.closed",
224
- PR_SYNCHRONIZE = "pull_request.synchronize"
225
- }
226
- export declare enum LinearEventType {
227
- ISSUE_CREATED = "issue.created",
228
- ISSUE_UPDATED = "issue.updated",
229
- COMMENT_CREATED = "comment.created"
230
- }
231
- export declare enum JiraEventType {
232
- ISSUE_CREATED = "issue.created",
233
- ISSUE_UPDATED = "issue.updated"
234
- }
235
- export declare enum FigmaEventType {
236
- FILE_COMMENT = "file_comment"
237
- }
238
- export declare enum GmailEventType {
239
- EMAIL_RECEIVED = "email.received"
240
- }
241
- export declare enum WorkOSEventType {
242
- USER_CREATED = "user.created",
243
- USER_UPDATED = "user.updated",
244
- USER_DELETED = "user.deleted",
245
- ORGANIZATION_CREATED = "organization.created",
246
- ORGANIZATION_MEMBERSHIP_CREATED = "organization_membership.created",
247
- ORGANIZATION_MEMBERSHIP_UPDATED = "organization_membership.updated",
248
- ORGANIZATION_MEMBERSHIP_DELETED = "organization_membership.deleted",
249
- INVITATION_CREATED = "invitation.created",
250
- INVITATION_ACCEPTED = "invitation.accepted",
251
- INVITATION_RESENT = "invitation.resent",
252
- INVITATION_REVOKED = "invitation.revoked"
253
- }
187
+ export declare const SlackEventType: {
188
+ readonly MESSAGE: "message";
189
+ readonly APP_MENTION: "app_mention";
190
+ readonly REACTION_ADDED: "reaction_added";
191
+ };
192
+ export declare const slackEventTypeSchema: z.ZodEnum<{
193
+ readonly MESSAGE: "message";
194
+ readonly APP_MENTION: "app_mention";
195
+ readonly REACTION_ADDED: "reaction_added";
196
+ }>;
197
+ export type SlackEventType = z.infer<typeof slackEventTypeSchema>;
198
+ export declare const GitHubEventType: {
199
+ readonly PUSH: "push";
200
+ readonly PR_OPENED: "pull_request.opened";
201
+ readonly PR_MERGED: "pull_request.merged";
202
+ readonly PR_CLOSED: "pull_request.closed";
203
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
204
+ };
205
+ export declare const gitHubEventTypeSchema: z.ZodEnum<{
206
+ readonly PUSH: "push";
207
+ readonly PR_OPENED: "pull_request.opened";
208
+ readonly PR_MERGED: "pull_request.merged";
209
+ readonly PR_CLOSED: "pull_request.closed";
210
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
211
+ }>;
212
+ export type GitHubEventType = z.infer<typeof gitHubEventTypeSchema>;
213
+ export declare const LinearEventType: {
214
+ readonly ISSUE_CREATED: "issue.created";
215
+ readonly ISSUE_UPDATED: "issue.updated";
216
+ readonly COMMENT_CREATED: "comment.created";
217
+ };
218
+ export declare const linearEventTypeSchema: z.ZodEnum<{
219
+ readonly ISSUE_CREATED: "issue.created";
220
+ readonly ISSUE_UPDATED: "issue.updated";
221
+ readonly COMMENT_CREATED: "comment.created";
222
+ }>;
223
+ export type LinearEventType = z.infer<typeof linearEventTypeSchema>;
224
+ export declare const GmailEventType: {
225
+ readonly EMAIL_RECEIVED: "email.received";
226
+ };
227
+ export declare const gmailEventTypeSchema: z.ZodEnum<{
228
+ readonly EMAIL_RECEIVED: "email.received";
229
+ }>;
230
+ export type GmailEventType = z.infer<typeof gmailEventTypeSchema>;
231
+ export declare const WorkOSEventType: {
232
+ readonly USER_CREATED: "user.created";
233
+ readonly USER_UPDATED: "user.updated";
234
+ readonly USER_DELETED: "user.deleted";
235
+ readonly ORGANIZATION_CREATED: "organization.created";
236
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
237
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
238
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
239
+ readonly INVITATION_CREATED: "invitation.created";
240
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
241
+ readonly INVITATION_RESENT: "invitation.resent";
242
+ readonly INVITATION_REVOKED: "invitation.revoked";
243
+ };
244
+ export declare const workOSEventTypeSchema: z.ZodEnum<{
245
+ readonly USER_CREATED: "user.created";
246
+ readonly USER_UPDATED: "user.updated";
247
+ readonly USER_DELETED: "user.deleted";
248
+ readonly ORGANIZATION_CREATED: "organization.created";
249
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
250
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
251
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
252
+ readonly INVITATION_CREATED: "invitation.created";
253
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
254
+ readonly INVITATION_RESENT: "invitation.resent";
255
+ readonly INVITATION_REVOKED: "invitation.revoked";
256
+ }>;
257
+ export type WorkOSEventType = z.infer<typeof workOSEventTypeSchema>;
254
258
  export declare const ConfigInstanceSchema: z.ZodObject<{
255
259
  integrationId: z.ZodString;
256
260
  integrationType: z.ZodEnum<typeof IntegrationType>;
@@ -274,7 +278,9 @@ export declare const GmailConfigSchema: z.ZodObject<{
274
278
  integrationId: z.ZodString;
275
279
  integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
276
280
  configType: z.ZodLiteral<ConfigType.GMAIL>;
277
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof GmailEventType>>>;
281
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
282
+ readonly EMAIL_RECEIVED: "email.received";
283
+ }>>>;
278
284
  }, z.core.$strip>;
279
285
  export type GmailConfigData = z.infer<typeof GmailConfigSchema>;
280
286
  export type GmailConfigInstance = GmailConfigData & ConfigBehavior;
@@ -284,26 +290,6 @@ export declare class GmailConfig extends BaseConfigInstance<IntegrationType.GMAI
284
290
  isComplete(): boolean;
285
291
  formatForAgent(): string;
286
292
  }
287
- export declare const FigmaConfigSchema: z.ZodObject<{
288
- integrationId: z.ZodString;
289
- integrationType: z.ZodLiteral<IntegrationType.FIGMA>;
290
- configType: z.ZodLiteral<ConfigType.FIGMA>;
291
- fileKey: z.ZodString;
292
- fileName: z.ZodString;
293
- teamId: z.ZodString;
294
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof FigmaEventType>>>;
295
- }, z.core.$strip>;
296
- export type FigmaConfigData = z.infer<typeof FigmaConfigSchema>;
297
- export type FigmaConfigInstance = FigmaConfigData & ConfigBehavior;
298
- export declare class FigmaConfig extends BaseConfigInstance<IntegrationType.FIGMA, ConfigType.FIGMA> implements FigmaConfigInstance {
299
- fileKey: string;
300
- fileName: string;
301
- teamId: string;
302
- eventTypes: FigmaEventType[] | null;
303
- constructor(integrationId: string, fileKey: string, fileName: string, teamId: string, eventTypes?: FigmaEventType[] | null);
304
- isComplete(): boolean;
305
- formatForAgent(): string;
306
- }
307
293
  export declare const SlackConfigSchema: z.ZodObject<{
308
294
  integrationId: z.ZodString;
309
295
  integrationType: z.ZodLiteral<IntegrationType.SLACK>;
@@ -312,7 +298,11 @@ export declare const SlackConfigSchema: z.ZodObject<{
312
298
  channelName: z.ZodNullable<z.ZodString>;
313
299
  listenToUserDms: z.ZodDefault<z.ZodBoolean>;
314
300
  userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
315
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof SlackEventType>>>;
301
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
302
+ readonly MESSAGE: "message";
303
+ readonly APP_MENTION: "app_mention";
304
+ readonly REACTION_ADDED: "reaction_added";
305
+ }>>>;
316
306
  }, z.core.$strip>;
317
307
  export type SlackConfigData = z.infer<typeof SlackConfigSchema>;
318
308
  export type SlackConfigInstance = SlackConfigData & ConfigBehavior;
@@ -396,17 +386,21 @@ export declare const LinearInputConfigSchema: z.ZodObject<{
396
386
  integrationId: z.ZodString;
397
387
  integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
398
388
  configType: z.ZodLiteral<ConfigType.LINEAR_INPUT>;
389
+ teamId: z.ZodNullable<z.ZodString>;
399
390
  projectId: z.ZodNullable<z.ZodString>;
400
- projectName: z.ZodNullable<z.ZodString>;
401
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof LinearEventType>>>;
391
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
392
+ readonly ISSUE_CREATED: "issue.created";
393
+ readonly ISSUE_UPDATED: "issue.updated";
394
+ readonly COMMENT_CREATED: "comment.created";
395
+ }>>>;
402
396
  }, z.core.$strip>;
403
397
  export type LinearInputConfigData = z.infer<typeof LinearInputConfigSchema>;
404
398
  export type LinearInputConfigInstance = LinearInputConfigData & ConfigBehavior;
405
399
  export declare class LinearInputConfig extends BaseConfigInstance<IntegrationType.LINEAR, ConfigType.LINEAR_INPUT> implements LinearInputConfigInstance {
406
400
  projectId: string | null;
407
- projectName: string | null;
408
401
  eventTypes: LinearEventType[] | null;
409
- constructor(integrationId: string, projectId?: string | null, projectName?: string | null, eventTypes?: LinearEventType[] | null);
402
+ teamId: string | null;
403
+ constructor(integrationId: string, projectId?: string | null, eventTypes?: LinearEventType[] | null, teamId?: string | null);
410
404
  isComplete(): boolean;
411
405
  formatForAgent(): string;
412
406
  }
@@ -417,7 +411,6 @@ export declare const LinearOutputConfigSchema: z.ZodObject<{
417
411
  teamId: z.ZodNullable<z.ZodString>;
418
412
  teamName: z.ZodNullable<z.ZodString>;
419
413
  projectId: z.ZodNullable<z.ZodString>;
420
- projectName: z.ZodNullable<z.ZodString>;
421
414
  }, z.core.$strip>;
422
415
  export type LinearOutputConfigData = z.infer<typeof LinearOutputConfigSchema>;
423
416
  export type LinearOutputConfigInstance = LinearOutputConfigData & ConfigBehavior;
@@ -425,8 +418,7 @@ export declare class LinearOutputConfig extends BaseConfigInstance<IntegrationTy
425
418
  teamId: string | null;
426
419
  teamName: string | null;
427
420
  projectId: string | null;
428
- projectName: string | null;
429
- constructor(integrationId: string, teamId?: string | null, teamName?: string | null, projectId?: string | null, projectName?: string | null);
421
+ constructor(integrationId: string, teamId?: string | null, teamName?: string | null, projectId?: string | null);
430
422
  isComplete(): boolean;
431
423
  formatForAgent(): string;
432
424
  }
@@ -435,7 +427,13 @@ export declare const GitHubConfigSchema: z.ZodObject<{
435
427
  integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
436
428
  configType: z.ZodLiteral<ConfigType.GITHUB>;
437
429
  repositoryIds: z.ZodArray<z.ZodNumber>;
438
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof GitHubEventType>>>;
430
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
431
+ readonly PUSH: "push";
432
+ readonly PR_OPENED: "pull_request.opened";
433
+ readonly PR_MERGED: "pull_request.merged";
434
+ readonly PR_CLOSED: "pull_request.closed";
435
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
436
+ }>>>;
439
437
  }, z.core.$strip>;
440
438
  export type GitHubConfigData = z.infer<typeof GitHubConfigSchema>;
441
439
  export type GitHubConfigInstance = GitHubConfigData & ConfigBehavior;
@@ -446,45 +444,17 @@ export declare class GitHubConfig extends BaseConfigInstance<IntegrationType.GIT
446
444
  isComplete(): boolean;
447
445
  formatForAgent(): string;
448
446
  }
449
- export declare const JiraConfigSchema: z.ZodObject<{
447
+ /**
448
+ * Skill-specific variant of GitHubConfigSchema.
449
+ * Skills do not listen for events, so eventTypes is omitted entirely.
450
+ */
451
+ export declare const GitHubSkillConfigSchema: z.ZodObject<{
450
452
  integrationId: z.ZodString;
451
- integrationType: z.ZodLiteral<IntegrationType.ATLASSIAN>;
452
- configType: z.ZodLiteral<ConfigType.JIRA>;
453
- projectKey: z.ZodNullable<z.ZodString>;
454
- projectId: z.ZodNullable<z.ZodString>;
455
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof JiraEventType>>>;
456
- }, z.core.$strip>;
457
- export type JiraConfigData = z.infer<typeof JiraConfigSchema>;
458
- export type JiraConfigInstance = JiraConfigData & ConfigBehavior;
459
- export declare class JiraConfig extends BaseConfigInstance<IntegrationType.ATLASSIAN, ConfigType.JIRA> implements JiraConfigInstance {
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);
464
- isComplete(): boolean;
465
- formatForAgent(): string;
466
- }
467
- export declare const ConfluenceConfigSchema: z.ZodObject<{
468
- integrationId: z.ZodString;
469
- integrationType: z.ZodLiteral<IntegrationType.ATLASSIAN>;
470
- configType: z.ZodLiteral<ConfigType.CONFLUENCE>;
471
- spaceName: z.ZodString;
472
- spaceId: z.ZodString;
473
- pageId: z.ZodString;
474
- pageName: z.ZodString;
453
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
454
+ configType: z.ZodLiteral<ConfigType.GITHUB>;
455
+ repositoryIds: z.ZodArray<z.ZodNumber>;
475
456
  }, z.core.$strip>;
476
- export type ConfluenceConfigData = z.infer<typeof ConfluenceConfigSchema>;
477
- export type ConfluenceConfigInstance = ConfluenceConfigData & ConfigBehavior;
478
- export declare class ConfluenceConfig extends BaseConfigInstance<IntegrationType.ATLASSIAN, ConfigType.CONFLUENCE> implements ConfluenceConfigInstance {
479
- spaceName: string;
480
- spaceId: string;
481
- pageId: string;
482
- pageName: string;
483
- constructor(integrationId: string, spaceName: string, spaceId: string, pageId: string, // Page ID (required for outputs - specific page to write to)
484
- pageName: string);
485
- isComplete(): boolean;
486
- formatForAgent(): string;
487
- }
457
+ export type GitHubSkillConfigData = z.infer<typeof GitHubSkillConfigSchema>;
488
458
  export declare const PosthogConfigSchema: z.ZodObject<{
489
459
  integrationId: z.ZodString;
490
460
  integrationType: z.ZodLiteral<IntegrationType.POSTHOG>;
@@ -561,7 +531,19 @@ export declare const WorkOSInputConfigSchema: z.ZodObject<{
561
531
  integrationId: z.ZodString;
562
532
  integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
563
533
  configType: z.ZodLiteral<ConfigType.WORKOS_INPUT>;
564
- eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof WorkOSEventType>>>;
534
+ eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
535
+ readonly USER_CREATED: "user.created";
536
+ readonly USER_UPDATED: "user.updated";
537
+ readonly USER_DELETED: "user.deleted";
538
+ readonly ORGANIZATION_CREATED: "organization.created";
539
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
540
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
541
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
542
+ readonly INVITATION_CREATED: "invitation.created";
543
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
544
+ readonly INVITATION_RESENT: "invitation.resent";
545
+ readonly INVITATION_REVOKED: "invitation.revoked";
546
+ }>>>;
565
547
  }, z.core.$strip>;
566
548
  export type WorkOSInputConfigData = z.infer<typeof WorkOSInputConfigSchema>;
567
549
  export type WorkOSInputConfigInstance = WorkOSInputConfigData & ConfigBehavior;
@@ -625,15 +607,9 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
625
607
  integrationId: z.ZodString;
626
608
  integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
627
609
  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>>>;
610
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
611
+ readonly EMAIL_RECEIVED: "email.received";
612
+ }>>>;
637
613
  }, z.core.$strip>, z.ZodObject<{
638
614
  integrationId: z.ZodString;
639
615
  integrationType: z.ZodLiteral<IntegrationType.SLACK>;
@@ -642,7 +618,11 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
642
618
  channelName: z.ZodNullable<z.ZodString>;
643
619
  listenToUserDms: z.ZodDefault<z.ZodBoolean>;
644
620
  userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
645
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof SlackEventType>>>;
621
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
622
+ readonly MESSAGE: "message";
623
+ readonly APP_MENTION: "app_mention";
624
+ readonly REACTION_ADDED: "reaction_added";
625
+ }>>>;
646
626
  }, z.core.$strip>, z.ZodObject<{
647
627
  integrationId: z.ZodString;
648
628
  integrationType: z.ZodLiteral<IntegrationType.SLACK>;
@@ -672,9 +652,13 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
672
652
  integrationId: z.ZodString;
673
653
  integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
674
654
  configType: z.ZodLiteral<ConfigType.LINEAR_INPUT>;
655
+ teamId: z.ZodNullable<z.ZodString>;
675
656
  projectId: z.ZodNullable<z.ZodString>;
676
- projectName: z.ZodNullable<z.ZodString>;
677
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof LinearEventType>>>;
657
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
658
+ readonly ISSUE_CREATED: "issue.created";
659
+ readonly ISSUE_UPDATED: "issue.updated";
660
+ readonly COMMENT_CREATED: "comment.created";
661
+ }>>>;
678
662
  }, z.core.$strip>, z.ZodObject<{
679
663
  integrationId: z.ZodString;
680
664
  integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
@@ -682,28 +666,23 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
682
666
  teamId: z.ZodNullable<z.ZodString>;
683
667
  teamName: z.ZodNullable<z.ZodString>;
684
668
  projectId: z.ZodNullable<z.ZodString>;
685
- projectName: z.ZodNullable<z.ZodString>;
686
669
  }, z.core.$strip>, z.ZodObject<{
687
670
  integrationId: z.ZodString;
688
671
  integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
689
672
  configType: z.ZodLiteral<ConfigType.GITHUB>;
690
673
  repositoryIds: z.ZodArray<z.ZodNumber>;
691
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<typeof GitHubEventType>>>;
674
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
675
+ readonly PUSH: "push";
676
+ readonly PR_OPENED: "pull_request.opened";
677
+ readonly PR_MERGED: "pull_request.merged";
678
+ readonly PR_CLOSED: "pull_request.closed";
679
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
680
+ }>>>;
692
681
  }, z.core.$strip>, z.ZodObject<{
693
682
  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;
683
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
684
+ configType: z.ZodLiteral<ConfigType.GITHUB>;
685
+ repositoryIds: z.ZodArray<z.ZodNumber>;
707
686
  }, z.core.$strip>, z.ZodObject<{
708
687
  integrationId: z.ZodString;
709
688
  integrationType: z.ZodLiteral<IntegrationType.POSTHOG>;
@@ -734,7 +713,19 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
734
713
  integrationId: z.ZodString;
735
714
  integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
736
715
  configType: z.ZodLiteral<ConfigType.WORKOS_INPUT>;
737
- eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof WorkOSEventType>>>;
716
+ eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
717
+ readonly USER_CREATED: "user.created";
718
+ readonly USER_UPDATED: "user.updated";
719
+ readonly USER_DELETED: "user.deleted";
720
+ readonly ORGANIZATION_CREATED: "organization.created";
721
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
722
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
723
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
724
+ readonly INVITATION_CREATED: "invitation.created";
725
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
726
+ readonly INVITATION_RESENT: "invitation.resent";
727
+ readonly INVITATION_REVOKED: "invitation.revoked";
728
+ }>>>;
738
729
  }, z.core.$strip>, z.ZodObject<{
739
730
  integrationId: z.ZodString;
740
731
  integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
@@ -754,12 +745,157 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
754
745
  configType: z.ZodLiteral<ConfigType.WEBHOOK_INPUT>;
755
746
  }, z.core.$strip>]>;
756
747
  export type ConfigData = z.infer<typeof configDataSchema>;
748
+ /** Configs that can serve as triggers (event sources). */
749
+ export declare const triggerConfigDataSchema: z.ZodUnion<readonly [z.ZodObject<{
750
+ integrationId: z.ZodString;
751
+ integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
752
+ configType: z.ZodLiteral<ConfigType.GMAIL>;
753
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
754
+ readonly EMAIL_RECEIVED: "email.received";
755
+ }>>>;
756
+ }, z.core.$strip>, z.ZodObject<{
757
+ integrationId: z.ZodString;
758
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
759
+ configType: z.ZodLiteral<ConfigType.SLACK>;
760
+ channelId: z.ZodNullable<z.ZodString>;
761
+ channelName: z.ZodNullable<z.ZodString>;
762
+ listenToUserDms: z.ZodDefault<z.ZodBoolean>;
763
+ userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
764
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
765
+ readonly MESSAGE: "message";
766
+ readonly APP_MENTION: "app_mention";
767
+ readonly REACTION_ADDED: "reaction_added";
768
+ }>>>;
769
+ }, z.core.$strip>, z.ZodObject<{
770
+ integrationId: z.ZodString;
771
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
772
+ configType: z.ZodLiteral<ConfigType.LINEAR_INPUT>;
773
+ teamId: z.ZodNullable<z.ZodString>;
774
+ projectId: z.ZodNullable<z.ZodString>;
775
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
776
+ readonly ISSUE_CREATED: "issue.created";
777
+ readonly ISSUE_UPDATED: "issue.updated";
778
+ readonly COMMENT_CREATED: "comment.created";
779
+ }>>>;
780
+ }, z.core.$strip>, z.ZodObject<{
781
+ integrationId: z.ZodString;
782
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
783
+ configType: z.ZodLiteral<ConfigType.GITHUB>;
784
+ repositoryIds: z.ZodArray<z.ZodNumber>;
785
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
786
+ readonly PUSH: "push";
787
+ readonly PR_OPENED: "pull_request.opened";
788
+ readonly PR_MERGED: "pull_request.merged";
789
+ readonly PR_CLOSED: "pull_request.closed";
790
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
791
+ }>>>;
792
+ }, z.core.$strip>, z.ZodObject<{
793
+ integrationId: z.ZodLiteral<"system">;
794
+ integrationType: z.ZodLiteral<IntegrationType.CRON_JOB>;
795
+ configType: z.ZodLiteral<ConfigType.TIME_TRIGGER>;
796
+ cronExpression: z.ZodString;
797
+ }, z.core.$strip>, z.ZodObject<{
798
+ integrationId: z.ZodString;
799
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
800
+ configType: z.ZodLiteral<ConfigType.WORKOS_INPUT>;
801
+ eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
802
+ readonly USER_CREATED: "user.created";
803
+ readonly USER_UPDATED: "user.updated";
804
+ readonly USER_DELETED: "user.deleted";
805
+ readonly ORGANIZATION_CREATED: "organization.created";
806
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
807
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
808
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
809
+ readonly INVITATION_CREATED: "invitation.created";
810
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
811
+ readonly INVITATION_RESENT: "invitation.resent";
812
+ readonly INVITATION_REVOKED: "invitation.revoked";
813
+ }>>>;
814
+ }, z.core.$strip>, z.ZodObject<{
815
+ integrationId: z.ZodLiteral<"system">;
816
+ integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
817
+ configType: z.ZodLiteral<ConfigType.WEBHOOK_INPUT>;
818
+ }, z.core.$strip>]>;
819
+ export type TriggerConfigData = z.infer<typeof triggerConfigDataSchema>;
820
+ /** Configs that can serve as skills (tools / outputs). */
821
+ export declare const skillConfigDataSchema: z.ZodUnion<readonly [z.ZodObject<{
822
+ integrationId: z.ZodString;
823
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
824
+ configType: z.ZodLiteral<ConfigType.SLACK_OUTPUT>;
825
+ channelId: z.ZodNullable<z.ZodString>;
826
+ channelName: z.ZodNullable<z.ZodString>;
827
+ userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
828
+ userNames: z.ZodNullable<z.ZodArray<z.ZodString>>;
829
+ listenToUserDms: z.ZodDefault<z.ZodBoolean>;
830
+ }, z.core.$strip>, z.ZodObject<{
831
+ integrationId: z.ZodString;
832
+ integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
833
+ configType: z.ZodLiteral<ConfigType.GMAIL_OUTPUT>;
834
+ }, z.core.$strip>, z.ZodObject<{
835
+ integrationId: z.ZodString;
836
+ integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
837
+ configType: z.ZodLiteral<ConfigType.GMAIL_DRAFT_OUTPUT>;
838
+ }, z.core.$strip>, z.ZodObject<{
839
+ integrationId: z.ZodString;
840
+ integrationType: z.ZodLiteral<IntegrationType.NOTION>;
841
+ configType: z.ZodLiteral<ConfigType.NOTION>;
842
+ databaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
843
+ databaseNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
844
+ pageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
845
+ pageNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
846
+ }, z.core.$strip>, z.ZodObject<{
847
+ integrationId: z.ZodString;
848
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
849
+ configType: z.ZodLiteral<ConfigType.LINEAR_OUTPUT>;
850
+ teamId: z.ZodNullable<z.ZodString>;
851
+ teamName: z.ZodNullable<z.ZodString>;
852
+ projectId: z.ZodNullable<z.ZodString>;
853
+ }, z.core.$strip>, z.ZodObject<{
854
+ integrationId: z.ZodString;
855
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
856
+ configType: z.ZodLiteral<ConfigType.GITHUB>;
857
+ repositoryIds: z.ZodArray<z.ZodNumber>;
858
+ }, z.core.$strip>, z.ZodObject<{
859
+ integrationId: z.ZodString;
860
+ integrationType: z.ZodLiteral<IntegrationType.POSTHOG>;
861
+ configType: z.ZodLiteral<ConfigType.POSTHOG>;
862
+ projectId: z.ZodString;
863
+ projectName: z.ZodNullable<z.ZodString>;
864
+ }, z.core.$strip>, z.ZodObject<{
865
+ integrationId: z.ZodString;
866
+ integrationType: z.ZodLiteral<IntegrationType.DATADOG>;
867
+ configType: z.ZodLiteral<ConfigType.DATADOG>;
868
+ defaultIndexes: z.ZodDefault<z.ZodArray<z.ZodString>>;
869
+ }, z.core.$strip>, z.ZodObject<{
870
+ integrationId: z.ZodString;
871
+ integrationType: z.ZodLiteral<IntegrationType.LAUNCHDARKLY>;
872
+ configType: z.ZodLiteral<ConfigType.LAUNCHDARKLY>;
873
+ projectKey: z.ZodString;
874
+ environmentKeys: z.ZodArray<z.ZodString>;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ integrationId: z.ZodLiteral<"system">;
877
+ integrationType: z.ZodLiteral<IntegrationType.TERSE>;
878
+ configType: z.ZodLiteral<ConfigType.TERSE>;
879
+ }, z.core.$strip>, z.ZodObject<{
880
+ integrationId: z.ZodString;
881
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
882
+ configType: z.ZodLiteral<ConfigType.WORKOS_OUTPUT>;
883
+ }, z.core.$strip>, z.ZodObject<{
884
+ integrationId: z.ZodString;
885
+ integrationType: z.ZodLiteral<IntegrationType.ATTIO>;
886
+ configType: z.ZodLiteral<ConfigType.ATTIO_OUTPUT>;
887
+ objectSlug: z.ZodNullable<z.ZodString>;
888
+ }, z.core.$strip>, z.ZodObject<{
889
+ integrationId: z.ZodString;
890
+ integrationType: z.ZodLiteral<IntegrationType.SNOWFLAKE>;
891
+ configType: z.ZodLiteral<ConfigType.SNOWFLAKE_OUTPUT>;
892
+ }, z.core.$strip>]>;
893
+ export type SkillConfigData = z.infer<typeof skillConfigDataSchema>;
757
894
  export declare function isConfigComplete(config: ConfigData | undefined): boolean;
758
895
  export declare function formatConfigForAgent(config: ConfigData): string;
759
896
  type EnsureExhaustiveMetadata<T extends Record<ConfigType, new (...args: any[]) => ConfigInstance>> = T;
760
897
  export type ConfigMetadataMap = EnsureExhaustiveMetadata<{
761
898
  [ConfigType.GMAIL]: typeof GmailConfig;
762
- [ConfigType.FIGMA]: typeof FigmaConfig;
763
899
  [ConfigType.SLACK]: typeof SlackConfig;
764
900
  [ConfigType.SLACK_OUTPUT]: typeof SlackOutputConfig;
765
901
  [ConfigType.GMAIL_OUTPUT]: typeof GmailOutputConfig;
@@ -768,8 +904,6 @@ export type ConfigMetadataMap = EnsureExhaustiveMetadata<{
768
904
  [ConfigType.LINEAR_INPUT]: typeof LinearInputConfig;
769
905
  [ConfigType.LINEAR_OUTPUT]: typeof LinearOutputConfig;
770
906
  [ConfigType.GITHUB]: typeof GitHubConfig;
771
- [ConfigType.JIRA]: typeof JiraConfig;
772
- [ConfigType.CONFLUENCE]: typeof ConfluenceConfig;
773
907
  [ConfigType.POSTHOG]: typeof PosthogConfig;
774
908
  [ConfigType.DATADOG]: typeof DatadogConfig;
775
909
  [ConfigType.TIME_TRIGGER]: typeof TimeTriggerConfig;