terse-types 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Configs.d.ts CHANGED
@@ -300,6 +300,7 @@ export declare const GitHubEventType: {
300
300
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
301
301
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
302
302
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
303
+ readonly ISSUE_CREATED: "issues.opened";
303
304
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
304
305
  };
305
306
  export declare const gitHubEventTypeSchema: z.ZodEnum<{
@@ -310,6 +311,7 @@ export declare const gitHubEventTypeSchema: z.ZodEnum<{
310
311
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
311
312
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
312
313
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
314
+ readonly ISSUE_CREATED: "issues.opened";
313
315
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
314
316
  }>;
315
317
  export type GitHubEventType = z.infer<typeof gitHubEventTypeSchema>;
@@ -638,6 +640,7 @@ export declare const GitHubConfigSchema: z.ZodObject<{
638
640
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
639
641
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
640
642
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
643
+ readonly ISSUE_CREATED: "issues.opened";
641
644
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
642
645
  }>>>;
643
646
  }, z.core.$strip>;
@@ -1611,6 +1614,7 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
1611
1614
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
1612
1615
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
1613
1616
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
1617
+ readonly ISSUE_CREATED: "issues.opened";
1614
1618
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
1615
1619
  }>>>;
1616
1620
  }, z.core.$strip>, z.ZodObject<{
@@ -2270,6 +2274,7 @@ export declare const triggerConfigDataSchema: z.ZodUnion<readonly [z.ZodObject<{
2270
2274
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
2271
2275
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
2272
2276
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
2277
+ readonly ISSUE_CREATED: "issues.opened";
2273
2278
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
2274
2279
  }>>>;
2275
2280
  }, z.core.$strip>, z.ZodObject<{
package/dist/Configs.js CHANGED
@@ -314,6 +314,7 @@ export const GitHubEventType = {
314
314
  PR_SYNCHRONIZE: "pull_request.synchronize",
315
315
  PR_COMMENT_CREATED: "pull_request.comment.created",
316
316
  PR_COMMENT_EDITED: "pull_request.comment.edited",
317
+ ISSUE_CREATED: "issues.opened",
317
318
  ISSUE_COMMENT_CREATED: "issue_comment.created"
318
319
  };
319
320
  export const gitHubEventTypeSchema = z.enum(GitHubEventType);
@@ -22,6 +22,7 @@ export function formatGithubTrigger(event) {
22
22
  "pull_request.closed": "Pull Request Closed",
23
23
  "pull_request.merged": "Pull Request Merged",
24
24
  "pull_request.comment.edited": "Pull Request Comment Edited",
25
+ "issues.opened": "Issue Created",
25
26
  "issue_comment.created": "Issue Comment Created"
26
27
  };
27
28
  const eventDescription = event.eventType === "issue_comment.created" && event.issue.isPullRequest ? "Pull Request Comment Created" : eventTypeDescriptions[event.eventType] || event.eventType;
@@ -33,10 +34,11 @@ export function formatGithubTrigger(event) {
33
34
  ].join("\n");
34
35
  const senderInfo = [`Actor: ${event.sender.login}`, ...(event.sender.email ? [`Email: ${event.sender.email}`] : [])].join("\n");
35
36
  const isCommentEvent = event.eventType === "issue_comment.created" || event.eventType === "pull_request.comment.edited";
36
- const branch = isCommentEvent ? undefined : event.branch;
37
+ const isIssueEvent = event.eventType === "issues.opened";
38
+ const branch = isCommentEvent || isIssueEvent ? undefined : event.branch;
37
39
  const branchInfo = branch ? `Branch: ${branch}` : null;
38
40
  let prInfo = "";
39
- if (!isCommentEvent && event.pullRequest) {
41
+ if (!isCommentEvent && !isIssueEvent && event.pullRequest) {
40
42
  const pr = event.pullRequest;
41
43
  const author = pr.author ?? pr.user;
42
44
  const prLines = [
@@ -52,6 +54,16 @@ export function formatGithubTrigger(event) {
52
54
  }
53
55
  prInfo = prLines.join("\n");
54
56
  }
57
+ if (isIssueEvent) {
58
+ const issue = event.issue;
59
+ prInfo = [
60
+ `Issue #${issue.number}: ${issue.title}`,
61
+ `State: ${issue.state}`,
62
+ `Author: ${issue.author.login}`,
63
+ `View: ${issue.url}`,
64
+ ...(issue.body ? [`Description:\n${indentMultiline(issue.body)}`] : [])
65
+ ].join("\n");
66
+ }
55
67
  let commentInfo = "";
56
68
  if (isCommentEvent) {
57
69
  const c = event.comment;
@@ -71,7 +83,7 @@ export function formatGithubTrigger(event) {
71
83
  commentInfo = commentLines.join("\n");
72
84
  }
73
85
  let commitsInfo = "";
74
- const commits = isCommentEvent ? [] : event.commits;
86
+ const commits = isCommentEvent || isIssueEvent ? [] : event.commits;
75
87
  if (commits.length > 0) {
76
88
  const commitLines = [];
77
89
  commitLines.push(`Commits (${commits.length}):`);
@@ -88,7 +100,7 @@ export function formatGithubTrigger(event) {
88
100
  });
89
101
  commitsInfo = commitLines.join("\n");
90
102
  }
91
- const targetSectionLabel = isCommentEvent ? (event.issue.isPullRequest ? "Pull Request Information" : "Issue Information") : "Pull Request Information";
103
+ const targetSectionLabel = isIssueEvent ? "Issue Information" : isCommentEvent ? (event.issue.isPullRequest ? "Pull Request Information" : "Issue Information") : "Pull Request Information";
92
104
  return [
93
105
  `Incoming GitHub Event: ${eventDescription}`,
94
106
  `\nRepository Information:\n${indentMultiline(repoInfo)}`,
@@ -103,6 +115,12 @@ export function debugGithubTrigger(event) {
103
115
  return `GitHub Event: ${event.eventType} - ${event.repository.owner}/${event.repository.name} - ${event.sender.login}`;
104
116
  }
105
117
  export function formatGithubDisplay(event) {
118
+ if (event.eventType === "issues.opened") {
119
+ return {
120
+ title: `#${event.issue.number} ${truncateForDisplay(event.issue.title, 80)}`,
121
+ subtitle: `${event.repository.owner}/${event.repository.name} · Issue created by ${event.sender.login}`
122
+ };
123
+ }
106
124
  if (event.eventType === "issue_comment.created" || event.eventType === "pull_request.comment.edited") {
107
125
  const kind = event.issue.isPullRequest ? "PR" : "Issue";
108
126
  return {
@@ -476,6 +476,40 @@ export declare const issueCommentSchema: z.ZodObject<{
476
476
  createdAt: z.ZodString;
477
477
  updatedAt: z.ZodString;
478
478
  }, z.core.$strip>;
479
+ export declare const GithubIssueCreatedTriggerSchema: z.ZodObject<{
480
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
481
+ username: z.ZodString;
482
+ installationId: z.ZodNumber;
483
+ repositoryName: z.ZodString;
484
+ repository: z.ZodObject<{
485
+ id: z.ZodNumber;
486
+ name: z.ZodString;
487
+ owner: z.ZodString;
488
+ defaultBranch: z.ZodString;
489
+ }, z.core.$strip>;
490
+ sender: z.ZodObject<{
491
+ login: z.ZodString;
492
+ email: z.ZodOptional<z.ZodString>;
493
+ }, z.core.$strip>;
494
+ eventType: z.ZodLiteral<"issues.opened">;
495
+ issue: z.ZodObject<{
496
+ id: z.ZodNumber;
497
+ number: z.ZodNumber;
498
+ title: z.ZodString;
499
+ body: z.ZodOptional<z.ZodString>;
500
+ state: z.ZodEnum<{
501
+ open: "open";
502
+ closed: "closed";
503
+ }>;
504
+ url: z.ZodString;
505
+ author: z.ZodObject<{
506
+ login: z.ZodString;
507
+ email: z.ZodOptional<z.ZodString>;
508
+ }, z.core.$strip>;
509
+ isPullRequest: z.ZodLiteral<false>;
510
+ }, z.core.$strip>;
511
+ }, z.core.$strip>;
512
+ export type GithubIssueCreatedTrigger = z.infer<typeof GithubIssueCreatedTriggerSchema>;
479
513
  export declare const GithubIssueCommentCreatedTriggerSchema: z.ZodObject<{
480
514
  integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
481
515
  username: z.ZodString;
@@ -1161,6 +1195,38 @@ export declare const GithubTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1161
1195
  }, z.core.$strip>>;
1162
1196
  eventType: z.ZodLiteral<"pull_request.merged">;
1163
1197
  }, z.core.$strip>], "eventType">, z.ZodObject<{
1198
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
1199
+ username: z.ZodString;
1200
+ installationId: z.ZodNumber;
1201
+ repositoryName: z.ZodString;
1202
+ repository: z.ZodObject<{
1203
+ id: z.ZodNumber;
1204
+ name: z.ZodString;
1205
+ owner: z.ZodString;
1206
+ defaultBranch: z.ZodString;
1207
+ }, z.core.$strip>;
1208
+ sender: z.ZodObject<{
1209
+ login: z.ZodString;
1210
+ email: z.ZodOptional<z.ZodString>;
1211
+ }, z.core.$strip>;
1212
+ eventType: z.ZodLiteral<"issues.opened">;
1213
+ issue: z.ZodObject<{
1214
+ id: z.ZodNumber;
1215
+ number: z.ZodNumber;
1216
+ title: z.ZodString;
1217
+ body: z.ZodOptional<z.ZodString>;
1218
+ state: z.ZodEnum<{
1219
+ open: "open";
1220
+ closed: "closed";
1221
+ }>;
1222
+ url: z.ZodString;
1223
+ author: z.ZodObject<{
1224
+ login: z.ZodString;
1225
+ email: z.ZodOptional<z.ZodString>;
1226
+ }, z.core.$strip>;
1227
+ isPullRequest: z.ZodLiteral<false>;
1228
+ }, z.core.$strip>;
1229
+ }, z.core.$strip>, z.ZodObject<{
1164
1230
  integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
1165
1231
  username: z.ZodString;
1166
1232
  installationId: z.ZodNumber;
@@ -1443,6 +1509,7 @@ export declare const TriggerTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
1443
1509
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
1444
1510
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
1445
1511
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
1512
+ readonly ISSUE_CREATED: "issues.opened";
1446
1513
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
1447
1514
  }>, z.ZodEnum<{
1448
1515
  readonly ISSUE_CREATED: "issue.created";
@@ -1518,6 +1585,7 @@ export declare const baseTriggerSchema: z.ZodObject<{
1518
1585
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
1519
1586
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
1520
1587
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
1588
+ readonly ISSUE_CREATED: "issues.opened";
1521
1589
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
1522
1590
  }>, z.ZodEnum<{
1523
1591
  readonly ISSUE_CREATED: "issue.created";
@@ -5800,6 +5868,38 @@ export declare const TriggerSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion
5800
5868
  }, z.core.$strip>>;
5801
5869
  eventType: z.ZodLiteral<"pull_request.merged">;
5802
5870
  }, z.core.$strip>], "eventType">, z.ZodObject<{
5871
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
5872
+ username: z.ZodString;
5873
+ installationId: z.ZodNumber;
5874
+ repositoryName: z.ZodString;
5875
+ repository: z.ZodObject<{
5876
+ id: z.ZodNumber;
5877
+ name: z.ZodString;
5878
+ owner: z.ZodString;
5879
+ defaultBranch: z.ZodString;
5880
+ }, z.core.$strip>;
5881
+ sender: z.ZodObject<{
5882
+ login: z.ZodString;
5883
+ email: z.ZodOptional<z.ZodString>;
5884
+ }, z.core.$strip>;
5885
+ eventType: z.ZodLiteral<"issues.opened">;
5886
+ issue: z.ZodObject<{
5887
+ id: z.ZodNumber;
5888
+ number: z.ZodNumber;
5889
+ title: z.ZodString;
5890
+ body: z.ZodOptional<z.ZodString>;
5891
+ state: z.ZodEnum<{
5892
+ open: "open";
5893
+ closed: "closed";
5894
+ }>;
5895
+ url: z.ZodString;
5896
+ author: z.ZodObject<{
5897
+ login: z.ZodString;
5898
+ email: z.ZodOptional<z.ZodString>;
5899
+ }, z.core.$strip>;
5900
+ isPullRequest: z.ZodLiteral<false>;
5901
+ }, z.core.$strip>;
5902
+ }, z.core.$strip>, z.ZodObject<{
5803
5903
  integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
5804
5904
  username: z.ZodString;
5805
5905
  installationId: z.ZodNumber;
@@ -7849,6 +7949,38 @@ export declare const TriggerArraySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodDi
7849
7949
  }, z.core.$strip>>;
7850
7950
  eventType: z.ZodLiteral<"pull_request.merged">;
7851
7951
  }, z.core.$strip>], "eventType">, z.ZodObject<{
7952
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
7953
+ username: z.ZodString;
7954
+ installationId: z.ZodNumber;
7955
+ repositoryName: z.ZodString;
7956
+ repository: z.ZodObject<{
7957
+ id: z.ZodNumber;
7958
+ name: z.ZodString;
7959
+ owner: z.ZodString;
7960
+ defaultBranch: z.ZodString;
7961
+ }, z.core.$strip>;
7962
+ sender: z.ZodObject<{
7963
+ login: z.ZodString;
7964
+ email: z.ZodOptional<z.ZodString>;
7965
+ }, z.core.$strip>;
7966
+ eventType: z.ZodLiteral<"issues.opened">;
7967
+ issue: z.ZodObject<{
7968
+ id: z.ZodNumber;
7969
+ number: z.ZodNumber;
7970
+ title: z.ZodString;
7971
+ body: z.ZodOptional<z.ZodString>;
7972
+ state: z.ZodEnum<{
7973
+ open: "open";
7974
+ closed: "closed";
7975
+ }>;
7976
+ url: z.ZodString;
7977
+ author: z.ZodObject<{
7978
+ login: z.ZodString;
7979
+ email: z.ZodOptional<z.ZodString>;
7980
+ }, z.core.$strip>;
7981
+ isPullRequest: z.ZodLiteral<false>;
7982
+ }, z.core.$strip>;
7983
+ }, z.core.$strip>, z.ZodObject<{
7852
7984
  integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
7853
7985
  username: z.ZodString;
7854
7986
  installationId: z.ZodNumber;
@@ -9610,6 +9742,7 @@ export declare const serializedEventSchema: z.ZodObject<{
9610
9742
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
9611
9743
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
9612
9744
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
9745
+ readonly ISSUE_CREATED: "issues.opened";
9613
9746
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
9614
9747
  }>, z.ZodEnum<{
9615
9748
  readonly ISSUE_CREATED: "issue.created";
@@ -9977,6 +10110,38 @@ export declare const serializedEventSchema: z.ZodObject<{
9977
10110
  }, z.core.$strip>>;
9978
10111
  eventType: z.ZodLiteral<"pull_request.merged">;
9979
10112
  }, z.core.$strip>], "eventType">, z.ZodObject<{
10113
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
10114
+ username: z.ZodString;
10115
+ installationId: z.ZodNumber;
10116
+ repositoryName: z.ZodString;
10117
+ repository: z.ZodObject<{
10118
+ id: z.ZodNumber;
10119
+ name: z.ZodString;
10120
+ owner: z.ZodString;
10121
+ defaultBranch: z.ZodString;
10122
+ }, z.core.$strip>;
10123
+ sender: z.ZodObject<{
10124
+ login: z.ZodString;
10125
+ email: z.ZodOptional<z.ZodString>;
10126
+ }, z.core.$strip>;
10127
+ eventType: z.ZodLiteral<"issues.opened">;
10128
+ issue: z.ZodObject<{
10129
+ id: z.ZodNumber;
10130
+ number: z.ZodNumber;
10131
+ title: z.ZodString;
10132
+ body: z.ZodOptional<z.ZodString>;
10133
+ state: z.ZodEnum<{
10134
+ open: "open";
10135
+ closed: "closed";
10136
+ }>;
10137
+ url: z.ZodString;
10138
+ author: z.ZodObject<{
10139
+ login: z.ZodString;
10140
+ email: z.ZodOptional<z.ZodString>;
10141
+ }, z.core.$strip>;
10142
+ isPullRequest: z.ZodLiteral<false>;
10143
+ }, z.core.$strip>;
10144
+ }, z.core.$strip>, z.ZodObject<{
9980
10145
  integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
9981
10146
  username: z.ZodString;
9982
10147
  installationId: z.ZodNumber;
@@ -12026,6 +12191,38 @@ export declare const eventFixtureSchema: z.ZodIntersection<z.ZodUnion<readonly [
12026
12191
  }, z.core.$strip>>;
12027
12192
  eventType: z.ZodLiteral<"pull_request.merged">;
12028
12193
  }, z.core.$strip>], "eventType">, z.ZodObject<{
12194
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
12195
+ username: z.ZodString;
12196
+ installationId: z.ZodNumber;
12197
+ repositoryName: z.ZodString;
12198
+ repository: z.ZodObject<{
12199
+ id: z.ZodNumber;
12200
+ name: z.ZodString;
12201
+ owner: z.ZodString;
12202
+ defaultBranch: z.ZodString;
12203
+ }, z.core.$strip>;
12204
+ sender: z.ZodObject<{
12205
+ login: z.ZodString;
12206
+ email: z.ZodOptional<z.ZodString>;
12207
+ }, z.core.$strip>;
12208
+ eventType: z.ZodLiteral<"issues.opened">;
12209
+ issue: z.ZodObject<{
12210
+ id: z.ZodNumber;
12211
+ number: z.ZodNumber;
12212
+ title: z.ZodString;
12213
+ body: z.ZodOptional<z.ZodString>;
12214
+ state: z.ZodEnum<{
12215
+ open: "open";
12216
+ closed: "closed";
12217
+ }>;
12218
+ url: z.ZodString;
12219
+ author: z.ZodObject<{
12220
+ login: z.ZodString;
12221
+ email: z.ZodOptional<z.ZodString>;
12222
+ }, z.core.$strip>;
12223
+ isPullRequest: z.ZodLiteral<false>;
12224
+ }, z.core.$strip>;
12225
+ }, z.core.$strip>, z.ZodObject<{
12029
12226
  integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
12030
12227
  username: z.ZodString;
12031
12228
  installationId: z.ZodNumber;
@@ -14084,6 +14281,39 @@ export declare const TriggerDefinitions: {
14084
14281
  }, z.core.$strip>>;
14085
14282
  eventType: z.ZodLiteral<"pull_request.merged">;
14086
14283
  }, z.core.$strip>>;
14284
+ GithubIssueCreatedTrigger: ConcreteTriggerDefinition<z.ZodObject<{
14285
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
14286
+ username: z.ZodString;
14287
+ installationId: z.ZodNumber;
14288
+ repositoryName: z.ZodString;
14289
+ repository: z.ZodObject<{
14290
+ id: z.ZodNumber;
14291
+ name: z.ZodString;
14292
+ owner: z.ZodString;
14293
+ defaultBranch: z.ZodString;
14294
+ }, z.core.$strip>;
14295
+ sender: z.ZodObject<{
14296
+ login: z.ZodString;
14297
+ email: z.ZodOptional<z.ZodString>;
14298
+ }, z.core.$strip>;
14299
+ eventType: z.ZodLiteral<"issues.opened">;
14300
+ issue: z.ZodObject<{
14301
+ id: z.ZodNumber;
14302
+ number: z.ZodNumber;
14303
+ title: z.ZodString;
14304
+ body: z.ZodOptional<z.ZodString>;
14305
+ state: z.ZodEnum<{
14306
+ open: "open";
14307
+ closed: "closed";
14308
+ }>;
14309
+ url: z.ZodString;
14310
+ author: z.ZodObject<{
14311
+ login: z.ZodString;
14312
+ email: z.ZodOptional<z.ZodString>;
14313
+ }, z.core.$strip>;
14314
+ isPullRequest: z.ZodLiteral<false>;
14315
+ }, z.core.$strip>;
14316
+ }, z.core.$strip>>;
14087
14317
  GithubIssueCommentCreatedTrigger: ConcreteTriggerDefinition<z.ZodObject<{
14088
14318
  integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
14089
14319
  username: z.ZodString;
package/dist/Triggers.js CHANGED
@@ -144,6 +144,10 @@ export const issueCommentSchema = z.object({
144
144
  createdAt: z.string(),
145
145
  updatedAt: z.string()
146
146
  });
147
+ export const GithubIssueCreatedTriggerSchema = GithubTriggerBaseSchema.extend({
148
+ eventType: z.literal(GitHubEventType.ISSUE_CREATED),
149
+ issue: issueCommentTargetSchema.extend({ isPullRequest: z.literal(false) })
150
+ });
147
151
  export const GithubIssueCommentCreatedTriggerSchema = GithubTriggerBaseSchema.extend({
148
152
  eventType: z.literal(GitHubEventType.ISSUE_COMMENT_CREATED),
149
153
  issue: issueCommentTargetSchema,
@@ -162,7 +166,13 @@ export const GithubPRCommentEditedTriggerSchema = GithubTriggerBaseSchema.extend
162
166
  });
163
167
  export const GithubPRCommentTriggerSchema = z.union([GithubPRCommentCreatedTriggerSchema, GithubPRCommentEditedTriggerSchema]);
164
168
  export const GithubPRTriggerSchema = z.discriminatedUnion("eventType", [GithubPROpenedTriggerSchema, GithubPRSynchronizedTriggerSchema, GithubPRClosedTriggerSchema, GithubPRMergedTriggerSchema]);
165
- export const GithubTriggerSchema = z.discriminatedUnion("eventType", [GithubPushTriggerSchema, GithubPRTriggerSchema, GithubIssueCommentCreatedTriggerSchema, GithubPRCommentEditedTriggerSchema]);
169
+ export const GithubTriggerSchema = z.discriminatedUnion("eventType", [
170
+ GithubPushTriggerSchema,
171
+ GithubPRTriggerSchema,
172
+ GithubIssueCreatedTriggerSchema,
173
+ GithubIssueCommentCreatedTriggerSchema,
174
+ GithubPRCommentEditedTriggerSchema
175
+ ]);
166
176
  export const GmailParsedAttachmentSchema = z.object({
167
177
  attachmentId: z.string(),
168
178
  filename: z.string(),
@@ -902,6 +912,12 @@ export const TriggerDefinitions = {
902
912
  eventTypes: [GitHubEventType.PR_MERGED],
903
913
  presenter: githubPresenter
904
914
  }),
915
+ GithubIssueCreatedTrigger: defineTrigger({
916
+ integration: IntegrationType.GITHUB,
917
+ schema: GithubIssueCreatedTriggerSchema,
918
+ eventTypes: [GitHubEventType.ISSUE_CREATED],
919
+ presenter: githubPresenter
920
+ }),
905
921
  GithubIssueCommentCreatedTrigger: defineTrigger({
906
922
  integration: IntegrationType.GITHUB,
907
923
  schema: GithubIssueCommentCreatedTriggerSchema,
@@ -930,7 +946,7 @@ export const TriggerDefinitions = {
930
946
  }),
931
947
  GithubTrigger: defineTriggerUnion({
932
948
  integration: IntegrationType.GITHUB,
933
- members: ["GithubPushTrigger", "GithubPRTrigger", "GithubIssueCommentCreatedTrigger", "GithubPRCommentEditedTrigger"],
949
+ members: ["GithubPushTrigger", "GithubPRTrigger", "GithubIssueCreatedTrigger", "GithubIssueCommentCreatedTrigger", "GithubPRCommentEditedTrigger"],
934
950
  presenter: githubPresenter
935
951
  }),
936
952
  GmailTrigger: defineTrigger({
package/dist/types.d.ts CHANGED
@@ -421,6 +421,7 @@ export declare const agentTriggerSchema: z.ZodObject<{
421
421
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
422
422
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
423
423
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
424
+ readonly ISSUE_CREATED: "issues.opened";
424
425
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
425
426
  }>>>;
426
427
  }, z.core.$strip>, z.ZodObject<{
@@ -1117,6 +1118,7 @@ export declare const agentOutputSchema: z.ZodObject<{
1117
1118
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
1118
1119
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
1119
1120
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
1121
+ readonly ISSUE_CREATED: "issues.opened";
1120
1122
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
1121
1123
  }>>>;
1122
1124
  }, z.core.$strip>, z.ZodObject<{
@@ -1814,6 +1816,7 @@ export declare const transientAgentTriggerSchema: z.ZodObject<{
1814
1816
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
1815
1817
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
1816
1818
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
1819
+ readonly ISSUE_CREATED: "issues.opened";
1817
1820
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
1818
1821
  }>>>;
1819
1822
  }, z.core.$strip>, z.ZodObject<{
@@ -2508,6 +2511,7 @@ export declare const transientAgentOutputSchema: z.ZodObject<{
2508
2511
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
2509
2512
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
2510
2513
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
2514
+ readonly ISSUE_CREATED: "issues.opened";
2511
2515
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
2512
2516
  }>>>;
2513
2517
  }, z.core.$strip>, z.ZodObject<{
@@ -3432,6 +3436,7 @@ export declare const agentSchema: z.ZodObject<{
3432
3436
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
3433
3437
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
3434
3438
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
3439
+ readonly ISSUE_CREATED: "issues.opened";
3435
3440
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
3436
3441
  }>>>;
3437
3442
  }, z.core.$strip>, z.ZodObject<{
@@ -4127,6 +4132,7 @@ export declare const agentSchema: z.ZodObject<{
4127
4132
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
4128
4133
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
4129
4134
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
4135
+ readonly ISSUE_CREATED: "issues.opened";
4130
4136
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
4131
4137
  }>>>;
4132
4138
  }, z.core.$strip>, z.ZodObject<{
@@ -4843,6 +4849,7 @@ export declare const agentUpdateSchema: z.ZodObject<{
4843
4849
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
4844
4850
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
4845
4851
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
4852
+ readonly ISSUE_CREATED: "issues.opened";
4846
4853
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
4847
4854
  }>>>;
4848
4855
  }, z.core.$strip>, z.ZodObject<{
@@ -5538,6 +5545,7 @@ export declare const agentUpdateSchema: z.ZodObject<{
5538
5545
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
5539
5546
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
5540
5547
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
5548
+ readonly ISSUE_CREATED: "issues.opened";
5541
5549
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
5542
5550
  }>>>;
5543
5551
  }, z.core.$strip>, z.ZodObject<{
@@ -6264,6 +6272,7 @@ export declare const agentsResponseSchema: z.ZodObject<{
6264
6272
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
6265
6273
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
6266
6274
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
6275
+ readonly ISSUE_CREATED: "issues.opened";
6267
6276
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
6268
6277
  }>>>;
6269
6278
  }, z.core.$strip>, z.ZodObject<{
@@ -6959,6 +6968,7 @@ export declare const agentsResponseSchema: z.ZodObject<{
6959
6968
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
6960
6969
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
6961
6970
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
6971
+ readonly ISSUE_CREATED: "issues.opened";
6962
6972
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
6963
6973
  }>>>;
6964
6974
  }, z.core.$strip>, z.ZodObject<{
@@ -7688,6 +7698,7 @@ export declare const recentAgentSchema: z.ZodObject<{
7688
7698
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
7689
7699
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
7690
7700
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
7701
+ readonly ISSUE_CREATED: "issues.opened";
7691
7702
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
7692
7703
  }>>>;
7693
7704
  }, z.core.$strip>, z.ZodObject<{
@@ -8383,6 +8394,7 @@ export declare const recentAgentSchema: z.ZodObject<{
8383
8394
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
8384
8395
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
8385
8396
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
8397
+ readonly ISSUE_CREATED: "issues.opened";
8386
8398
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
8387
8399
  }>>>;
8388
8400
  }, z.core.$strip>, z.ZodObject<{
@@ -9825,6 +9837,38 @@ export declare const sdkAgentRunNormalizedRequestSchema: z.ZodObject<{
9825
9837
  }, z.core.$strip>>;
9826
9838
  eventType: z.ZodLiteral<"pull_request.merged">;
9827
9839
  }, z.core.$strip>], "eventType">, z.ZodObject<{
9840
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
9841
+ username: z.ZodString;
9842
+ installationId: z.ZodNumber;
9843
+ repositoryName: z.ZodString;
9844
+ repository: z.ZodObject<{
9845
+ id: z.ZodNumber;
9846
+ name: z.ZodString;
9847
+ owner: z.ZodString;
9848
+ defaultBranch: z.ZodString;
9849
+ }, z.core.$strip>;
9850
+ sender: z.ZodObject<{
9851
+ login: z.ZodString;
9852
+ email: z.ZodOptional<z.ZodString>;
9853
+ }, z.core.$strip>;
9854
+ eventType: z.ZodLiteral<"issues.opened">;
9855
+ issue: z.ZodObject<{
9856
+ id: z.ZodNumber;
9857
+ number: z.ZodNumber;
9858
+ title: z.ZodString;
9859
+ body: z.ZodOptional<z.ZodString>;
9860
+ state: z.ZodEnum<{
9861
+ open: "open";
9862
+ closed: "closed";
9863
+ }>;
9864
+ url: z.ZodString;
9865
+ author: z.ZodObject<{
9866
+ login: z.ZodString;
9867
+ email: z.ZodOptional<z.ZodString>;
9868
+ }, z.core.$strip>;
9869
+ isPullRequest: z.ZodLiteral<false>;
9870
+ }, z.core.$strip>;
9871
+ }, z.core.$strip>, z.ZodObject<{
9828
9872
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
9829
9873
  username: z.ZodString;
9830
9874
  installationId: z.ZodNumber;
@@ -11983,6 +12027,38 @@ export declare const sdkAgentRunResponseBodySchema: z.ZodObject<{
11983
12027
  }, z.core.$strip>>;
11984
12028
  eventType: z.ZodLiteral<"pull_request.merged">;
11985
12029
  }, z.core.$strip>], "eventType">, z.ZodObject<{
12030
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
12031
+ username: z.ZodString;
12032
+ installationId: z.ZodNumber;
12033
+ repositoryName: z.ZodString;
12034
+ repository: z.ZodObject<{
12035
+ id: z.ZodNumber;
12036
+ name: z.ZodString;
12037
+ owner: z.ZodString;
12038
+ defaultBranch: z.ZodString;
12039
+ }, z.core.$strip>;
12040
+ sender: z.ZodObject<{
12041
+ login: z.ZodString;
12042
+ email: z.ZodOptional<z.ZodString>;
12043
+ }, z.core.$strip>;
12044
+ eventType: z.ZodLiteral<"issues.opened">;
12045
+ issue: z.ZodObject<{
12046
+ id: z.ZodNumber;
12047
+ number: z.ZodNumber;
12048
+ title: z.ZodString;
12049
+ body: z.ZodOptional<z.ZodString>;
12050
+ state: z.ZodEnum<{
12051
+ open: "open";
12052
+ closed: "closed";
12053
+ }>;
12054
+ url: z.ZodString;
12055
+ author: z.ZodObject<{
12056
+ login: z.ZodString;
12057
+ email: z.ZodOptional<z.ZodString>;
12058
+ }, z.core.$strip>;
12059
+ isPullRequest: z.ZodLiteral<false>;
12060
+ }, z.core.$strip>;
12061
+ }, z.core.$strip>, z.ZodObject<{
11986
12062
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
11987
12063
  username: z.ZodString;
11988
12064
  installationId: z.ZodNumber;
@@ -14249,6 +14325,7 @@ export declare const sdkDeployJobSchema: z.ZodObject<{
14249
14325
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
14250
14326
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
14251
14327
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
14328
+ readonly ISSUE_CREATED: "issues.opened";
14252
14329
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
14253
14330
  }>>>;
14254
14331
  }, z.core.$strip>, z.ZodObject<{
@@ -14842,6 +14919,7 @@ export declare const sdkDeployRequestBodySchema: z.ZodObject<{
14842
14919
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
14843
14920
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
14844
14921
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
14922
+ readonly ISSUE_CREATED: "issues.opened";
14845
14923
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
14846
14924
  }>>>;
14847
14925
  }, z.core.$strip>, z.ZodObject<{
@@ -15580,6 +15658,7 @@ export declare const sdkTestRunStartRequestSchema: z.ZodObject<{
15580
15658
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
15581
15659
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
15582
15660
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
15661
+ readonly ISSUE_CREATED: "issues.opened";
15583
15662
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
15584
15663
  }>, z.ZodEnum<{
15585
15664
  readonly ISSUE_CREATED: "issue.created";
@@ -15947,6 +16026,38 @@ export declare const sdkTestRunStartRequestSchema: z.ZodObject<{
15947
16026
  }, z.core.$strip>>;
15948
16027
  eventType: z.ZodLiteral<"pull_request.merged">;
15949
16028
  }, z.core.$strip>], "eventType">, z.ZodObject<{
16029
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
16030
+ username: z.ZodString;
16031
+ installationId: z.ZodNumber;
16032
+ repositoryName: z.ZodString;
16033
+ repository: z.ZodObject<{
16034
+ id: z.ZodNumber;
16035
+ name: z.ZodString;
16036
+ owner: z.ZodString;
16037
+ defaultBranch: z.ZodString;
16038
+ }, z.core.$strip>;
16039
+ sender: z.ZodObject<{
16040
+ login: z.ZodString;
16041
+ email: z.ZodOptional<z.ZodString>;
16042
+ }, z.core.$strip>;
16043
+ eventType: z.ZodLiteral<"issues.opened">;
16044
+ issue: z.ZodObject<{
16045
+ id: z.ZodNumber;
16046
+ number: z.ZodNumber;
16047
+ title: z.ZodString;
16048
+ body: z.ZodOptional<z.ZodString>;
16049
+ state: z.ZodEnum<{
16050
+ open: "open";
16051
+ closed: "closed";
16052
+ }>;
16053
+ url: z.ZodString;
16054
+ author: z.ZodObject<{
16055
+ login: z.ZodString;
16056
+ email: z.ZodOptional<z.ZodString>;
16057
+ }, z.core.$strip>;
16058
+ isPullRequest: z.ZodLiteral<false>;
16059
+ }, z.core.$strip>;
16060
+ }, z.core.$strip>, z.ZodObject<{
15950
16061
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
15951
16062
  username: z.ZodString;
15952
16063
  installationId: z.ZodNumber;
@@ -17724,6 +17835,7 @@ export declare const sdkRunTriggerEventResponseSchema: z.ZodObject<{
17724
17835
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
17725
17836
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
17726
17837
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
17838
+ readonly ISSUE_CREATED: "issues.opened";
17727
17839
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
17728
17840
  }>, z.ZodEnum<{
17729
17841
  readonly ISSUE_CREATED: "issue.created";
@@ -18091,6 +18203,38 @@ export declare const sdkRunTriggerEventResponseSchema: z.ZodObject<{
18091
18203
  }, z.core.$strip>>;
18092
18204
  eventType: z.ZodLiteral<"pull_request.merged">;
18093
18205
  }, z.core.$strip>], "eventType">, z.ZodObject<{
18206
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
18207
+ username: z.ZodString;
18208
+ installationId: z.ZodNumber;
18209
+ repositoryName: z.ZodString;
18210
+ repository: z.ZodObject<{
18211
+ id: z.ZodNumber;
18212
+ name: z.ZodString;
18213
+ owner: z.ZodString;
18214
+ defaultBranch: z.ZodString;
18215
+ }, z.core.$strip>;
18216
+ sender: z.ZodObject<{
18217
+ login: z.ZodString;
18218
+ email: z.ZodOptional<z.ZodString>;
18219
+ }, z.core.$strip>;
18220
+ eventType: z.ZodLiteral<"issues.opened">;
18221
+ issue: z.ZodObject<{
18222
+ id: z.ZodNumber;
18223
+ number: z.ZodNumber;
18224
+ title: z.ZodString;
18225
+ body: z.ZodOptional<z.ZodString>;
18226
+ state: z.ZodEnum<{
18227
+ open: "open";
18228
+ closed: "closed";
18229
+ }>;
18230
+ url: z.ZodString;
18231
+ author: z.ZodObject<{
18232
+ login: z.ZodString;
18233
+ email: z.ZodOptional<z.ZodString>;
18234
+ }, z.core.$strip>;
18235
+ isPullRequest: z.ZodLiteral<false>;
18236
+ }, z.core.$strip>;
18237
+ }, z.core.$strip>, z.ZodObject<{
18094
18238
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
18095
18239
  username: z.ZodString;
18096
18240
  installationId: z.ZodNumber;
@@ -19934,6 +20078,7 @@ export declare const sdkSampleEventsRequestSchema: z.ZodObject<{
19934
20078
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
19935
20079
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
19936
20080
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
20081
+ readonly ISSUE_CREATED: "issues.opened";
19937
20082
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
19938
20083
  }>>>;
19939
20084
  }, z.core.$strip>, z.ZodObject<{
@@ -20601,6 +20746,7 @@ export declare const sdkSampleEventRefSchema: z.ZodObject<{
20601
20746
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
20602
20747
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
20603
20748
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
20749
+ readonly ISSUE_CREATED: "issues.opened";
20604
20750
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
20605
20751
  }>, z.ZodEnum<{
20606
20752
  readonly ISSUE_CREATED: "issue.created";
@@ -20968,6 +21114,38 @@ export declare const sdkSampleEventRefSchema: z.ZodObject<{
20968
21114
  }, z.core.$strip>>;
20969
21115
  eventType: z.ZodLiteral<"pull_request.merged">;
20970
21116
  }, z.core.$strip>], "eventType">, z.ZodObject<{
21117
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
21118
+ username: z.ZodString;
21119
+ installationId: z.ZodNumber;
21120
+ repositoryName: z.ZodString;
21121
+ repository: z.ZodObject<{
21122
+ id: z.ZodNumber;
21123
+ name: z.ZodString;
21124
+ owner: z.ZodString;
21125
+ defaultBranch: z.ZodString;
21126
+ }, z.core.$strip>;
21127
+ sender: z.ZodObject<{
21128
+ login: z.ZodString;
21129
+ email: z.ZodOptional<z.ZodString>;
21130
+ }, z.core.$strip>;
21131
+ eventType: z.ZodLiteral<"issues.opened">;
21132
+ issue: z.ZodObject<{
21133
+ id: z.ZodNumber;
21134
+ number: z.ZodNumber;
21135
+ title: z.ZodString;
21136
+ body: z.ZodOptional<z.ZodString>;
21137
+ state: z.ZodEnum<{
21138
+ open: "open";
21139
+ closed: "closed";
21140
+ }>;
21141
+ url: z.ZodString;
21142
+ author: z.ZodObject<{
21143
+ login: z.ZodString;
21144
+ email: z.ZodOptional<z.ZodString>;
21145
+ }, z.core.$strip>;
21146
+ isPullRequest: z.ZodLiteral<false>;
21147
+ }, z.core.$strip>;
21148
+ }, z.core.$strip>, z.ZodObject<{
20971
21149
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
20972
21150
  username: z.ZodString;
20973
21151
  installationId: z.ZodNumber;
@@ -22742,6 +22920,7 @@ export declare const sdkSampleEventsResponseSchema: z.ZodObject<{
22742
22920
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
22743
22921
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
22744
22922
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
22923
+ readonly ISSUE_CREATED: "issues.opened";
22745
22924
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
22746
22925
  }>, z.ZodEnum<{
22747
22926
  readonly ISSUE_CREATED: "issue.created";
@@ -23109,6 +23288,38 @@ export declare const sdkSampleEventsResponseSchema: z.ZodObject<{
23109
23288
  }, z.core.$strip>>;
23110
23289
  eventType: z.ZodLiteral<"pull_request.merged">;
23111
23290
  }, z.core.$strip>], "eventType">, z.ZodObject<{
23291
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
23292
+ username: z.ZodString;
23293
+ installationId: z.ZodNumber;
23294
+ repositoryName: z.ZodString;
23295
+ repository: z.ZodObject<{
23296
+ id: z.ZodNumber;
23297
+ name: z.ZodString;
23298
+ owner: z.ZodString;
23299
+ defaultBranch: z.ZodString;
23300
+ }, z.core.$strip>;
23301
+ sender: z.ZodObject<{
23302
+ login: z.ZodString;
23303
+ email: z.ZodOptional<z.ZodString>;
23304
+ }, z.core.$strip>;
23305
+ eventType: z.ZodLiteral<"issues.opened">;
23306
+ issue: z.ZodObject<{
23307
+ id: z.ZodNumber;
23308
+ number: z.ZodNumber;
23309
+ title: z.ZodString;
23310
+ body: z.ZodOptional<z.ZodString>;
23311
+ state: z.ZodEnum<{
23312
+ open: "open";
23313
+ closed: "closed";
23314
+ }>;
23315
+ url: z.ZodString;
23316
+ author: z.ZodObject<{
23317
+ login: z.ZodString;
23318
+ email: z.ZodOptional<z.ZodString>;
23319
+ }, z.core.$strip>;
23320
+ isPullRequest: z.ZodLiteral<false>;
23321
+ }, z.core.$strip>;
23322
+ }, z.core.$strip>, z.ZodObject<{
23112
23323
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
23113
23324
  username: z.ZodString;
23114
23325
  installationId: z.ZodNumber;
@@ -24887,6 +25098,7 @@ export declare const sdkHydrateSampleEventResponseSchema: z.ZodObject<{
24887
25098
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
24888
25099
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
24889
25100
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
25101
+ readonly ISSUE_CREATED: "issues.opened";
24890
25102
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
24891
25103
  }>, z.ZodEnum<{
24892
25104
  readonly ISSUE_CREATED: "issue.created";
@@ -25254,6 +25466,38 @@ export declare const sdkHydrateSampleEventResponseSchema: z.ZodObject<{
25254
25466
  }, z.core.$strip>>;
25255
25467
  eventType: z.ZodLiteral<"pull_request.merged">;
25256
25468
  }, z.core.$strip>], "eventType">, z.ZodObject<{
25469
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
25470
+ username: z.ZodString;
25471
+ installationId: z.ZodNumber;
25472
+ repositoryName: z.ZodString;
25473
+ repository: z.ZodObject<{
25474
+ id: z.ZodNumber;
25475
+ name: z.ZodString;
25476
+ owner: z.ZodString;
25477
+ defaultBranch: z.ZodString;
25478
+ }, z.core.$strip>;
25479
+ sender: z.ZodObject<{
25480
+ login: z.ZodString;
25481
+ email: z.ZodOptional<z.ZodString>;
25482
+ }, z.core.$strip>;
25483
+ eventType: z.ZodLiteral<"issues.opened">;
25484
+ issue: z.ZodObject<{
25485
+ id: z.ZodNumber;
25486
+ number: z.ZodNumber;
25487
+ title: z.ZodString;
25488
+ body: z.ZodOptional<z.ZodString>;
25489
+ state: z.ZodEnum<{
25490
+ open: "open";
25491
+ closed: "closed";
25492
+ }>;
25493
+ url: z.ZodString;
25494
+ author: z.ZodObject<{
25495
+ login: z.ZodString;
25496
+ email: z.ZodOptional<z.ZodString>;
25497
+ }, z.core.$strip>;
25498
+ isPullRequest: z.ZodLiteral<false>;
25499
+ }, z.core.$strip>;
25500
+ }, z.core.$strip>, z.ZodObject<{
25257
25501
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
25258
25502
  username: z.ZodString;
25259
25503
  installationId: z.ZodNumber;
@@ -27300,6 +27544,38 @@ export declare const triggerWithEventRequestSchema: z.ZodUnion<readonly [z.ZodOb
27300
27544
  }, z.core.$strip>>;
27301
27545
  eventType: z.ZodLiteral<"pull_request.merged">;
27302
27546
  }, z.core.$strip>], "eventType">, z.ZodObject<{
27547
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
27548
+ username: z.ZodString;
27549
+ installationId: z.ZodNumber;
27550
+ repositoryName: z.ZodString;
27551
+ repository: z.ZodObject<{
27552
+ id: z.ZodNumber;
27553
+ name: z.ZodString;
27554
+ owner: z.ZodString;
27555
+ defaultBranch: z.ZodString;
27556
+ }, z.core.$strip>;
27557
+ sender: z.ZodObject<{
27558
+ login: z.ZodString;
27559
+ email: z.ZodOptional<z.ZodString>;
27560
+ }, z.core.$strip>;
27561
+ eventType: z.ZodLiteral<"issues.opened">;
27562
+ issue: z.ZodObject<{
27563
+ id: z.ZodNumber;
27564
+ number: z.ZodNumber;
27565
+ title: z.ZodString;
27566
+ body: z.ZodOptional<z.ZodString>;
27567
+ state: z.ZodEnum<{
27568
+ open: "open";
27569
+ closed: "closed";
27570
+ }>;
27571
+ url: z.ZodString;
27572
+ author: z.ZodObject<{
27573
+ login: z.ZodString;
27574
+ email: z.ZodOptional<z.ZodString>;
27575
+ }, z.core.$strip>;
27576
+ isPullRequest: z.ZodLiteral<false>;
27577
+ }, z.core.$strip>;
27578
+ }, z.core.$strip>, z.ZodObject<{
27303
27579
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
27304
27580
  username: z.ZodString;
27305
27581
  installationId: z.ZodNumber;
@@ -29081,6 +29357,7 @@ export declare const webhookJobTriggerRequestSchema: z.ZodObject<{
29081
29357
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
29082
29358
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
29083
29359
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
29360
+ readonly ISSUE_CREATED: "issues.opened";
29084
29361
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
29085
29362
  }>, z.ZodEnum<{
29086
29363
  readonly ISSUE_CREATED: "issue.created";
@@ -29448,6 +29725,38 @@ export declare const webhookJobTriggerRequestSchema: z.ZodObject<{
29448
29725
  }, z.core.$strip>>;
29449
29726
  eventType: z.ZodLiteral<"pull_request.merged">;
29450
29727
  }, z.core.$strip>], "eventType">, z.ZodObject<{
29728
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
29729
+ username: z.ZodString;
29730
+ installationId: z.ZodNumber;
29731
+ repositoryName: z.ZodString;
29732
+ repository: z.ZodObject<{
29733
+ id: z.ZodNumber;
29734
+ name: z.ZodString;
29735
+ owner: z.ZodString;
29736
+ defaultBranch: z.ZodString;
29737
+ }, z.core.$strip>;
29738
+ sender: z.ZodObject<{
29739
+ login: z.ZodString;
29740
+ email: z.ZodOptional<z.ZodString>;
29741
+ }, z.core.$strip>;
29742
+ eventType: z.ZodLiteral<"issues.opened">;
29743
+ issue: z.ZodObject<{
29744
+ id: z.ZodNumber;
29745
+ number: z.ZodNumber;
29746
+ title: z.ZodString;
29747
+ body: z.ZodOptional<z.ZodString>;
29748
+ state: z.ZodEnum<{
29749
+ open: "open";
29750
+ closed: "closed";
29751
+ }>;
29752
+ url: z.ZodString;
29753
+ author: z.ZodObject<{
29754
+ login: z.ZodString;
29755
+ email: z.ZodOptional<z.ZodString>;
29756
+ }, z.core.$strip>;
29757
+ isPullRequest: z.ZodLiteral<false>;
29758
+ }, z.core.$strip>;
29759
+ }, z.core.$strip>, z.ZodObject<{
29451
29760
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
29452
29761
  username: z.ZodString;
29453
29762
  installationId: z.ZodNumber;
@@ -31299,6 +31608,7 @@ export declare const sdkListenForwardedEventSchema: z.ZodObject<{
31299
31608
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
31300
31609
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
31301
31610
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
31611
+ readonly ISSUE_CREATED: "issues.opened";
31302
31612
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
31303
31613
  }>, z.ZodEnum<{
31304
31614
  readonly ISSUE_CREATED: "issue.created";
@@ -31666,6 +31976,38 @@ export declare const sdkListenForwardedEventSchema: z.ZodObject<{
31666
31976
  }, z.core.$strip>>;
31667
31977
  eventType: z.ZodLiteral<"pull_request.merged">;
31668
31978
  }, z.core.$strip>], "eventType">, z.ZodObject<{
31979
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
31980
+ username: z.ZodString;
31981
+ installationId: z.ZodNumber;
31982
+ repositoryName: z.ZodString;
31983
+ repository: z.ZodObject<{
31984
+ id: z.ZodNumber;
31985
+ name: z.ZodString;
31986
+ owner: z.ZodString;
31987
+ defaultBranch: z.ZodString;
31988
+ }, z.core.$strip>;
31989
+ sender: z.ZodObject<{
31990
+ login: z.ZodString;
31991
+ email: z.ZodOptional<z.ZodString>;
31992
+ }, z.core.$strip>;
31993
+ eventType: z.ZodLiteral<"issues.opened">;
31994
+ issue: z.ZodObject<{
31995
+ id: z.ZodNumber;
31996
+ number: z.ZodNumber;
31997
+ title: z.ZodString;
31998
+ body: z.ZodOptional<z.ZodString>;
31999
+ state: z.ZodEnum<{
32000
+ open: "open";
32001
+ closed: "closed";
32002
+ }>;
32003
+ url: z.ZodString;
32004
+ author: z.ZodObject<{
32005
+ login: z.ZodString;
32006
+ email: z.ZodOptional<z.ZodString>;
32007
+ }, z.core.$strip>;
32008
+ isPullRequest: z.ZodLiteral<false>;
32009
+ }, z.core.$strip>;
32010
+ }, z.core.$strip>, z.ZodObject<{
31669
32011
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
31670
32012
  username: z.ZodString;
31671
32013
  installationId: z.ZodNumber;
@@ -33435,6 +33777,7 @@ export declare const sdkListenStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodO
33435
33777
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
33436
33778
  readonly PR_COMMENT_CREATED: "pull_request.comment.created";
33437
33779
  readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
33780
+ readonly ISSUE_CREATED: "issues.opened";
33438
33781
  readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
33439
33782
  }>, z.ZodEnum<{
33440
33783
  readonly ISSUE_CREATED: "issue.created";
@@ -33802,6 +34145,38 @@ export declare const sdkListenStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodO
33802
34145
  }, z.core.$strip>>;
33803
34146
  eventType: z.ZodLiteral<"pull_request.merged">;
33804
34147
  }, z.core.$strip>], "eventType">, z.ZodObject<{
34148
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
34149
+ username: z.ZodString;
34150
+ installationId: z.ZodNumber;
34151
+ repositoryName: z.ZodString;
34152
+ repository: z.ZodObject<{
34153
+ id: z.ZodNumber;
34154
+ name: z.ZodString;
34155
+ owner: z.ZodString;
34156
+ defaultBranch: z.ZodString;
34157
+ }, z.core.$strip>;
34158
+ sender: z.ZodObject<{
34159
+ login: z.ZodString;
34160
+ email: z.ZodOptional<z.ZodString>;
34161
+ }, z.core.$strip>;
34162
+ eventType: z.ZodLiteral<"issues.opened">;
34163
+ issue: z.ZodObject<{
34164
+ id: z.ZodNumber;
34165
+ number: z.ZodNumber;
34166
+ title: z.ZodString;
34167
+ body: z.ZodOptional<z.ZodString>;
34168
+ state: z.ZodEnum<{
34169
+ open: "open";
34170
+ closed: "closed";
34171
+ }>;
34172
+ url: z.ZodString;
34173
+ author: z.ZodObject<{
34174
+ login: z.ZodString;
34175
+ email: z.ZodOptional<z.ZodString>;
34176
+ }, z.core.$strip>;
34177
+ isPullRequest: z.ZodLiteral<false>;
34178
+ }, z.core.$strip>;
34179
+ }, z.core.$strip>, z.ZodObject<{
33805
34180
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
33806
34181
  username: z.ZodString;
33807
34182
  installationId: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",