terse-types 0.1.6 → 0.1.8
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 +5 -0
- package/dist/Configs.js +1 -0
- package/dist/TriggerPresenters.js +9 -7
- package/dist/Triggers.d.ts +396 -0
- package/dist/Triggers.js +18 -2
- package/dist/types.d.ts +496 -0
- package/package.json +1 -1
package/dist/Configs.d.ts
CHANGED
|
@@ -299,6 +299,7 @@ export declare const GitHubEventType: {
|
|
|
299
299
|
readonly PR_CLOSED: "pull_request.closed";
|
|
300
300
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
301
301
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
302
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
302
303
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
303
304
|
};
|
|
304
305
|
export declare const gitHubEventTypeSchema: z.ZodEnum<{
|
|
@@ -308,6 +309,7 @@ export declare const gitHubEventTypeSchema: z.ZodEnum<{
|
|
|
308
309
|
readonly PR_CLOSED: "pull_request.closed";
|
|
309
310
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
310
311
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
312
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
311
313
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
312
314
|
}>;
|
|
313
315
|
export type GitHubEventType = z.infer<typeof gitHubEventTypeSchema>;
|
|
@@ -635,6 +637,7 @@ export declare const GitHubConfigSchema: z.ZodObject<{
|
|
|
635
637
|
readonly PR_CLOSED: "pull_request.closed";
|
|
636
638
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
637
639
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
640
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
638
641
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
639
642
|
}>>>;
|
|
640
643
|
}, z.core.$strip>;
|
|
@@ -1607,6 +1610,7 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1607
1610
|
readonly PR_CLOSED: "pull_request.closed";
|
|
1608
1611
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
1609
1612
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
1613
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
1610
1614
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
1611
1615
|
}>>>;
|
|
1612
1616
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2265,6 +2269,7 @@ export declare const triggerConfigDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2265
2269
|
readonly PR_CLOSED: "pull_request.closed";
|
|
2266
2270
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
2267
2271
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
2272
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
2268
2273
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
2269
2274
|
}>>>;
|
|
2270
2275
|
}, z.core.$strip>, z.ZodObject<{
|
package/dist/Configs.js
CHANGED
|
@@ -313,6 +313,7 @@ export const GitHubEventType = {
|
|
|
313
313
|
PR_CLOSED: "pull_request.closed",
|
|
314
314
|
PR_SYNCHRONIZE: "pull_request.synchronize",
|
|
315
315
|
PR_COMMENT_CREATED: "pull_request.comment.created",
|
|
316
|
+
PR_COMMENT_EDITED: "pull_request.comment.edited",
|
|
316
317
|
ISSUE_COMMENT_CREATED: "issue_comment.created"
|
|
317
318
|
};
|
|
318
319
|
export const gitHubEventTypeSchema = z.enum(GitHubEventType);
|
|
@@ -21,9 +21,10 @@ export function formatGithubTrigger(event) {
|
|
|
21
21
|
"pull_request.synchronize": "Pull Request Updated (new commits added)",
|
|
22
22
|
"pull_request.closed": "Pull Request Closed",
|
|
23
23
|
"pull_request.merged": "Pull Request Merged",
|
|
24
|
+
"pull_request.comment.edited": "Pull Request Comment Edited",
|
|
24
25
|
"issue_comment.created": "Issue Comment Created"
|
|
25
26
|
};
|
|
26
|
-
const eventDescription = eventTypeDescriptions[event.eventType] || event.eventType;
|
|
27
|
+
const eventDescription = event.eventType === "issue_comment.created" && event.issue.isPullRequest ? "Pull Request Comment Created" : eventTypeDescriptions[event.eventType] || event.eventType;
|
|
27
28
|
const repoInfo = [
|
|
28
29
|
`Repository: ${event.repository.owner}/${event.repository.name}`,
|
|
29
30
|
`Repository ID: ${event.repository.id}`,
|
|
@@ -31,10 +32,11 @@ export function formatGithubTrigger(event) {
|
|
|
31
32
|
`View on GitHub: https://github.com/${event.repository.owner}/${event.repository.name}`
|
|
32
33
|
].join("\n");
|
|
33
34
|
const senderInfo = [`Actor: ${event.sender.login}`, ...(event.sender.email ? [`Email: ${event.sender.email}`] : [])].join("\n");
|
|
34
|
-
const
|
|
35
|
+
const isCommentEvent = event.eventType === "issue_comment.created" || event.eventType === "pull_request.comment.edited";
|
|
36
|
+
const branch = isCommentEvent ? undefined : event.branch;
|
|
35
37
|
const branchInfo = branch ? `Branch: ${branch}` : null;
|
|
36
38
|
let prInfo = "";
|
|
37
|
-
if (
|
|
39
|
+
if (!isCommentEvent && event.pullRequest) {
|
|
38
40
|
const pr = event.pullRequest;
|
|
39
41
|
const author = pr.author ?? pr.user;
|
|
40
42
|
const prLines = [
|
|
@@ -51,7 +53,7 @@ export function formatGithubTrigger(event) {
|
|
|
51
53
|
prInfo = prLines.join("\n");
|
|
52
54
|
}
|
|
53
55
|
let commentInfo = "";
|
|
54
|
-
if (
|
|
56
|
+
if (isCommentEvent) {
|
|
55
57
|
const c = event.comment;
|
|
56
58
|
const target = event.issue;
|
|
57
59
|
const kind = target.isPullRequest ? "Pull Request" : "Issue";
|
|
@@ -69,7 +71,7 @@ export function formatGithubTrigger(event) {
|
|
|
69
71
|
commentInfo = commentLines.join("\n");
|
|
70
72
|
}
|
|
71
73
|
let commitsInfo = "";
|
|
72
|
-
const commits =
|
|
74
|
+
const commits = isCommentEvent ? [] : event.commits;
|
|
73
75
|
if (commits.length > 0) {
|
|
74
76
|
const commitLines = [];
|
|
75
77
|
commitLines.push(`Commits (${commits.length}):`);
|
|
@@ -86,7 +88,7 @@ export function formatGithubTrigger(event) {
|
|
|
86
88
|
});
|
|
87
89
|
commitsInfo = commitLines.join("\n");
|
|
88
90
|
}
|
|
89
|
-
const targetSectionLabel =
|
|
91
|
+
const targetSectionLabel = isCommentEvent ? (event.issue.isPullRequest ? "Pull Request Information" : "Issue Information") : "Pull Request Information";
|
|
90
92
|
return [
|
|
91
93
|
`Incoming GitHub Event: ${eventDescription}`,
|
|
92
94
|
`\nRepository Information:\n${indentMultiline(repoInfo)}`,
|
|
@@ -101,7 +103,7 @@ export function debugGithubTrigger(event) {
|
|
|
101
103
|
return `GitHub Event: ${event.eventType} - ${event.repository.owner}/${event.repository.name} - ${event.sender.login}`;
|
|
102
104
|
}
|
|
103
105
|
export function formatGithubDisplay(event) {
|
|
104
|
-
if (event.eventType === "issue_comment.created") {
|
|
106
|
+
if (event.eventType === "issue_comment.created" || event.eventType === "pull_request.comment.edited") {
|
|
105
107
|
const kind = event.issue.isPullRequest ? "PR" : "Issue";
|
|
106
108
|
return {
|
|
107
109
|
title: `Comment on #${event.issue.number} ${truncateForDisplay(event.issue.title, 80)}`,
|
package/dist/Triggers.d.ts
CHANGED
|
@@ -566,6 +566,139 @@ export declare const GithubPRCommentCreatedTriggerSchema: z.ZodObject<{
|
|
|
566
566
|
}, z.core.$strip>;
|
|
567
567
|
}, z.core.$strip>;
|
|
568
568
|
export type GithubPRCommentCreatedTrigger = z.infer<typeof GithubPRCommentCreatedTriggerSchema>;
|
|
569
|
+
export declare const GithubPRCommentEditedTriggerSchema: z.ZodObject<{
|
|
570
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
571
|
+
username: z.ZodString;
|
|
572
|
+
installationId: z.ZodNumber;
|
|
573
|
+
repositoryName: z.ZodString;
|
|
574
|
+
repository: z.ZodObject<{
|
|
575
|
+
id: z.ZodNumber;
|
|
576
|
+
name: z.ZodString;
|
|
577
|
+
owner: z.ZodString;
|
|
578
|
+
defaultBranch: z.ZodString;
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
sender: z.ZodObject<{
|
|
581
|
+
login: z.ZodString;
|
|
582
|
+
email: z.ZodOptional<z.ZodString>;
|
|
583
|
+
}, z.core.$strip>;
|
|
584
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
585
|
+
issue: z.ZodObject<{
|
|
586
|
+
id: z.ZodNumber;
|
|
587
|
+
number: z.ZodNumber;
|
|
588
|
+
title: z.ZodString;
|
|
589
|
+
body: z.ZodOptional<z.ZodString>;
|
|
590
|
+
state: z.ZodEnum<{
|
|
591
|
+
open: "open";
|
|
592
|
+
closed: "closed";
|
|
593
|
+
}>;
|
|
594
|
+
url: z.ZodString;
|
|
595
|
+
author: z.ZodObject<{
|
|
596
|
+
login: z.ZodString;
|
|
597
|
+
email: z.ZodOptional<z.ZodString>;
|
|
598
|
+
}, z.core.$strip>;
|
|
599
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
600
|
+
}, z.core.$strip>;
|
|
601
|
+
comment: z.ZodObject<{
|
|
602
|
+
id: z.ZodNumber;
|
|
603
|
+
body: z.ZodString;
|
|
604
|
+
author: z.ZodObject<{
|
|
605
|
+
login: z.ZodString;
|
|
606
|
+
email: z.ZodOptional<z.ZodString>;
|
|
607
|
+
}, z.core.$strip>;
|
|
608
|
+
url: z.ZodString;
|
|
609
|
+
createdAt: z.ZodString;
|
|
610
|
+
updatedAt: z.ZodString;
|
|
611
|
+
}, z.core.$strip>;
|
|
612
|
+
}, z.core.$strip>;
|
|
613
|
+
export type GithubPRCommentEditedTrigger = z.infer<typeof GithubPRCommentEditedTriggerSchema>;
|
|
614
|
+
export declare const GithubPRCommentTriggerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
615
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
616
|
+
username: z.ZodString;
|
|
617
|
+
installationId: z.ZodNumber;
|
|
618
|
+
repositoryName: z.ZodString;
|
|
619
|
+
repository: z.ZodObject<{
|
|
620
|
+
id: z.ZodNumber;
|
|
621
|
+
name: z.ZodString;
|
|
622
|
+
owner: z.ZodString;
|
|
623
|
+
defaultBranch: z.ZodString;
|
|
624
|
+
}, z.core.$strip>;
|
|
625
|
+
sender: z.ZodObject<{
|
|
626
|
+
login: z.ZodString;
|
|
627
|
+
email: z.ZodOptional<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
eventType: z.ZodLiteral<"issue_comment.created">;
|
|
630
|
+
issue: z.ZodObject<{
|
|
631
|
+
id: z.ZodNumber;
|
|
632
|
+
number: z.ZodNumber;
|
|
633
|
+
title: z.ZodString;
|
|
634
|
+
body: z.ZodOptional<z.ZodString>;
|
|
635
|
+
state: z.ZodEnum<{
|
|
636
|
+
open: "open";
|
|
637
|
+
closed: "closed";
|
|
638
|
+
}>;
|
|
639
|
+
url: z.ZodString;
|
|
640
|
+
author: z.ZodObject<{
|
|
641
|
+
login: z.ZodString;
|
|
642
|
+
email: z.ZodOptional<z.ZodString>;
|
|
643
|
+
}, z.core.$strip>;
|
|
644
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
645
|
+
}, z.core.$strip>;
|
|
646
|
+
comment: z.ZodObject<{
|
|
647
|
+
id: z.ZodNumber;
|
|
648
|
+
body: z.ZodString;
|
|
649
|
+
author: z.ZodObject<{
|
|
650
|
+
login: z.ZodString;
|
|
651
|
+
email: z.ZodOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$strip>;
|
|
653
|
+
url: z.ZodString;
|
|
654
|
+
createdAt: z.ZodString;
|
|
655
|
+
updatedAt: z.ZodString;
|
|
656
|
+
}, z.core.$strip>;
|
|
657
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
658
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
659
|
+
username: z.ZodString;
|
|
660
|
+
installationId: z.ZodNumber;
|
|
661
|
+
repositoryName: z.ZodString;
|
|
662
|
+
repository: z.ZodObject<{
|
|
663
|
+
id: z.ZodNumber;
|
|
664
|
+
name: z.ZodString;
|
|
665
|
+
owner: z.ZodString;
|
|
666
|
+
defaultBranch: z.ZodString;
|
|
667
|
+
}, z.core.$strip>;
|
|
668
|
+
sender: z.ZodObject<{
|
|
669
|
+
login: z.ZodString;
|
|
670
|
+
email: z.ZodOptional<z.ZodString>;
|
|
671
|
+
}, z.core.$strip>;
|
|
672
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
673
|
+
issue: z.ZodObject<{
|
|
674
|
+
id: z.ZodNumber;
|
|
675
|
+
number: z.ZodNumber;
|
|
676
|
+
title: z.ZodString;
|
|
677
|
+
body: z.ZodOptional<z.ZodString>;
|
|
678
|
+
state: z.ZodEnum<{
|
|
679
|
+
open: "open";
|
|
680
|
+
closed: "closed";
|
|
681
|
+
}>;
|
|
682
|
+
url: z.ZodString;
|
|
683
|
+
author: z.ZodObject<{
|
|
684
|
+
login: z.ZodString;
|
|
685
|
+
email: z.ZodOptional<z.ZodString>;
|
|
686
|
+
}, z.core.$strip>;
|
|
687
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
688
|
+
}, z.core.$strip>;
|
|
689
|
+
comment: z.ZodObject<{
|
|
690
|
+
id: z.ZodNumber;
|
|
691
|
+
body: z.ZodString;
|
|
692
|
+
author: z.ZodObject<{
|
|
693
|
+
login: z.ZodString;
|
|
694
|
+
email: z.ZodOptional<z.ZodString>;
|
|
695
|
+
}, z.core.$strip>;
|
|
696
|
+
url: z.ZodString;
|
|
697
|
+
createdAt: z.ZodString;
|
|
698
|
+
updatedAt: z.ZodString;
|
|
699
|
+
}, z.core.$strip>;
|
|
700
|
+
}, z.core.$strip>]>;
|
|
701
|
+
export type GithubPRCommentTrigger = z.infer<typeof GithubPRCommentTriggerSchema>;
|
|
569
702
|
export declare const GithubPRTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
570
703
|
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
571
704
|
username: z.ZodString;
|
|
@@ -1070,6 +1203,49 @@ export declare const GithubTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1070
1203
|
createdAt: z.ZodString;
|
|
1071
1204
|
updatedAt: z.ZodString;
|
|
1072
1205
|
}, z.core.$strip>;
|
|
1206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1207
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
1208
|
+
username: z.ZodString;
|
|
1209
|
+
installationId: z.ZodNumber;
|
|
1210
|
+
repositoryName: z.ZodString;
|
|
1211
|
+
repository: z.ZodObject<{
|
|
1212
|
+
id: z.ZodNumber;
|
|
1213
|
+
name: z.ZodString;
|
|
1214
|
+
owner: z.ZodString;
|
|
1215
|
+
defaultBranch: z.ZodString;
|
|
1216
|
+
}, z.core.$strip>;
|
|
1217
|
+
sender: z.ZodObject<{
|
|
1218
|
+
login: z.ZodString;
|
|
1219
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1220
|
+
}, z.core.$strip>;
|
|
1221
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
1222
|
+
issue: z.ZodObject<{
|
|
1223
|
+
id: z.ZodNumber;
|
|
1224
|
+
number: z.ZodNumber;
|
|
1225
|
+
title: z.ZodString;
|
|
1226
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1227
|
+
state: z.ZodEnum<{
|
|
1228
|
+
open: "open";
|
|
1229
|
+
closed: "closed";
|
|
1230
|
+
}>;
|
|
1231
|
+
url: z.ZodString;
|
|
1232
|
+
author: z.ZodObject<{
|
|
1233
|
+
login: z.ZodString;
|
|
1234
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1235
|
+
}, z.core.$strip>;
|
|
1236
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
1237
|
+
}, z.core.$strip>;
|
|
1238
|
+
comment: z.ZodObject<{
|
|
1239
|
+
id: z.ZodNumber;
|
|
1240
|
+
body: z.ZodString;
|
|
1241
|
+
author: z.ZodObject<{
|
|
1242
|
+
login: z.ZodString;
|
|
1243
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1244
|
+
}, z.core.$strip>;
|
|
1245
|
+
url: z.ZodString;
|
|
1246
|
+
createdAt: z.ZodString;
|
|
1247
|
+
updatedAt: z.ZodString;
|
|
1248
|
+
}, z.core.$strip>;
|
|
1073
1249
|
}, z.core.$strip>], "eventType">;
|
|
1074
1250
|
export type GithubTrigger = z.infer<typeof GithubTriggerSchema>;
|
|
1075
1251
|
export declare const GmailParsedAttachmentSchema: z.ZodObject<{
|
|
@@ -1266,6 +1442,7 @@ export declare const TriggerTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
1266
1442
|
readonly PR_CLOSED: "pull_request.closed";
|
|
1267
1443
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
1268
1444
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
1445
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
1269
1446
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
1270
1447
|
}>, z.ZodEnum<{
|
|
1271
1448
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -1340,6 +1517,7 @@ export declare const baseTriggerSchema: z.ZodObject<{
|
|
|
1340
1517
|
readonly PR_CLOSED: "pull_request.closed";
|
|
1341
1518
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
1342
1519
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
1520
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
1343
1521
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
1344
1522
|
}>, z.ZodEnum<{
|
|
1345
1523
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -5664,6 +5842,49 @@ export declare const TriggerSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion
|
|
|
5664
5842
|
createdAt: z.ZodString;
|
|
5665
5843
|
updatedAt: z.ZodString;
|
|
5666
5844
|
}, z.core.$strip>;
|
|
5845
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5846
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
5847
|
+
username: z.ZodString;
|
|
5848
|
+
installationId: z.ZodNumber;
|
|
5849
|
+
repositoryName: z.ZodString;
|
|
5850
|
+
repository: z.ZodObject<{
|
|
5851
|
+
id: z.ZodNumber;
|
|
5852
|
+
name: z.ZodString;
|
|
5853
|
+
owner: z.ZodString;
|
|
5854
|
+
defaultBranch: z.ZodString;
|
|
5855
|
+
}, z.core.$strip>;
|
|
5856
|
+
sender: z.ZodObject<{
|
|
5857
|
+
login: z.ZodString;
|
|
5858
|
+
email: z.ZodOptional<z.ZodString>;
|
|
5859
|
+
}, z.core.$strip>;
|
|
5860
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
5861
|
+
issue: z.ZodObject<{
|
|
5862
|
+
id: z.ZodNumber;
|
|
5863
|
+
number: z.ZodNumber;
|
|
5864
|
+
title: z.ZodString;
|
|
5865
|
+
body: z.ZodOptional<z.ZodString>;
|
|
5866
|
+
state: z.ZodEnum<{
|
|
5867
|
+
open: "open";
|
|
5868
|
+
closed: "closed";
|
|
5869
|
+
}>;
|
|
5870
|
+
url: z.ZodString;
|
|
5871
|
+
author: z.ZodObject<{
|
|
5872
|
+
login: z.ZodString;
|
|
5873
|
+
email: z.ZodOptional<z.ZodString>;
|
|
5874
|
+
}, z.core.$strip>;
|
|
5875
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
5876
|
+
}, z.core.$strip>;
|
|
5877
|
+
comment: z.ZodObject<{
|
|
5878
|
+
id: z.ZodNumber;
|
|
5879
|
+
body: z.ZodString;
|
|
5880
|
+
author: z.ZodObject<{
|
|
5881
|
+
login: z.ZodString;
|
|
5882
|
+
email: z.ZodOptional<z.ZodString>;
|
|
5883
|
+
}, z.core.$strip>;
|
|
5884
|
+
url: z.ZodString;
|
|
5885
|
+
createdAt: z.ZodString;
|
|
5886
|
+
updatedAt: z.ZodString;
|
|
5887
|
+
}, z.core.$strip>;
|
|
5667
5888
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
5668
5889
|
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
5669
5890
|
eventType: z.ZodEnum<{
|
|
@@ -7670,6 +7891,49 @@ export declare const TriggerArraySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodDi
|
|
|
7670
7891
|
createdAt: z.ZodString;
|
|
7671
7892
|
updatedAt: z.ZodString;
|
|
7672
7893
|
}, z.core.$strip>;
|
|
7894
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7895
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
7896
|
+
username: z.ZodString;
|
|
7897
|
+
installationId: z.ZodNumber;
|
|
7898
|
+
repositoryName: z.ZodString;
|
|
7899
|
+
repository: z.ZodObject<{
|
|
7900
|
+
id: z.ZodNumber;
|
|
7901
|
+
name: z.ZodString;
|
|
7902
|
+
owner: z.ZodString;
|
|
7903
|
+
defaultBranch: z.ZodString;
|
|
7904
|
+
}, z.core.$strip>;
|
|
7905
|
+
sender: z.ZodObject<{
|
|
7906
|
+
login: z.ZodString;
|
|
7907
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7908
|
+
}, z.core.$strip>;
|
|
7909
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
7910
|
+
issue: z.ZodObject<{
|
|
7911
|
+
id: z.ZodNumber;
|
|
7912
|
+
number: z.ZodNumber;
|
|
7913
|
+
title: z.ZodString;
|
|
7914
|
+
body: z.ZodOptional<z.ZodString>;
|
|
7915
|
+
state: z.ZodEnum<{
|
|
7916
|
+
open: "open";
|
|
7917
|
+
closed: "closed";
|
|
7918
|
+
}>;
|
|
7919
|
+
url: z.ZodString;
|
|
7920
|
+
author: z.ZodObject<{
|
|
7921
|
+
login: z.ZodString;
|
|
7922
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7923
|
+
}, z.core.$strip>;
|
|
7924
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
7925
|
+
}, z.core.$strip>;
|
|
7926
|
+
comment: z.ZodObject<{
|
|
7927
|
+
id: z.ZodNumber;
|
|
7928
|
+
body: z.ZodString;
|
|
7929
|
+
author: z.ZodObject<{
|
|
7930
|
+
login: z.ZodString;
|
|
7931
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7932
|
+
}, z.core.$strip>;
|
|
7933
|
+
url: z.ZodString;
|
|
7934
|
+
createdAt: z.ZodString;
|
|
7935
|
+
updatedAt: z.ZodString;
|
|
7936
|
+
}, z.core.$strip>;
|
|
7673
7937
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
7674
7938
|
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
7675
7939
|
eventType: z.ZodEnum<{
|
|
@@ -9345,6 +9609,7 @@ export declare const serializedEventSchema: z.ZodObject<{
|
|
|
9345
9609
|
readonly PR_CLOSED: "pull_request.closed";
|
|
9346
9610
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
9347
9611
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
9612
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
9348
9613
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
9349
9614
|
}>, z.ZodEnum<{
|
|
9350
9615
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -9754,6 +10019,49 @@ export declare const serializedEventSchema: z.ZodObject<{
|
|
|
9754
10019
|
createdAt: z.ZodString;
|
|
9755
10020
|
updatedAt: z.ZodString;
|
|
9756
10021
|
}, z.core.$strip>;
|
|
10022
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10023
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
10024
|
+
username: z.ZodString;
|
|
10025
|
+
installationId: z.ZodNumber;
|
|
10026
|
+
repositoryName: z.ZodString;
|
|
10027
|
+
repository: z.ZodObject<{
|
|
10028
|
+
id: z.ZodNumber;
|
|
10029
|
+
name: z.ZodString;
|
|
10030
|
+
owner: z.ZodString;
|
|
10031
|
+
defaultBranch: z.ZodString;
|
|
10032
|
+
}, z.core.$strip>;
|
|
10033
|
+
sender: z.ZodObject<{
|
|
10034
|
+
login: z.ZodString;
|
|
10035
|
+
email: z.ZodOptional<z.ZodString>;
|
|
10036
|
+
}, z.core.$strip>;
|
|
10037
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
10038
|
+
issue: z.ZodObject<{
|
|
10039
|
+
id: z.ZodNumber;
|
|
10040
|
+
number: z.ZodNumber;
|
|
10041
|
+
title: z.ZodString;
|
|
10042
|
+
body: z.ZodOptional<z.ZodString>;
|
|
10043
|
+
state: z.ZodEnum<{
|
|
10044
|
+
open: "open";
|
|
10045
|
+
closed: "closed";
|
|
10046
|
+
}>;
|
|
10047
|
+
url: z.ZodString;
|
|
10048
|
+
author: z.ZodObject<{
|
|
10049
|
+
login: z.ZodString;
|
|
10050
|
+
email: z.ZodOptional<z.ZodString>;
|
|
10051
|
+
}, z.core.$strip>;
|
|
10052
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
10053
|
+
}, z.core.$strip>;
|
|
10054
|
+
comment: z.ZodObject<{
|
|
10055
|
+
id: z.ZodNumber;
|
|
10056
|
+
body: z.ZodString;
|
|
10057
|
+
author: z.ZodObject<{
|
|
10058
|
+
login: z.ZodString;
|
|
10059
|
+
email: z.ZodOptional<z.ZodString>;
|
|
10060
|
+
}, z.core.$strip>;
|
|
10061
|
+
url: z.ZodString;
|
|
10062
|
+
createdAt: z.ZodString;
|
|
10063
|
+
updatedAt: z.ZodString;
|
|
10064
|
+
}, z.core.$strip>;
|
|
9757
10065
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
9758
10066
|
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
9759
10067
|
eventType: z.ZodEnum<{
|
|
@@ -11760,6 +12068,49 @@ export declare const eventFixtureSchema: z.ZodIntersection<z.ZodUnion<readonly [
|
|
|
11760
12068
|
createdAt: z.ZodString;
|
|
11761
12069
|
updatedAt: z.ZodString;
|
|
11762
12070
|
}, z.core.$strip>;
|
|
12071
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12072
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
12073
|
+
username: z.ZodString;
|
|
12074
|
+
installationId: z.ZodNumber;
|
|
12075
|
+
repositoryName: z.ZodString;
|
|
12076
|
+
repository: z.ZodObject<{
|
|
12077
|
+
id: z.ZodNumber;
|
|
12078
|
+
name: z.ZodString;
|
|
12079
|
+
owner: z.ZodString;
|
|
12080
|
+
defaultBranch: z.ZodString;
|
|
12081
|
+
}, z.core.$strip>;
|
|
12082
|
+
sender: z.ZodObject<{
|
|
12083
|
+
login: z.ZodString;
|
|
12084
|
+
email: z.ZodOptional<z.ZodString>;
|
|
12085
|
+
}, z.core.$strip>;
|
|
12086
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
12087
|
+
issue: z.ZodObject<{
|
|
12088
|
+
id: z.ZodNumber;
|
|
12089
|
+
number: z.ZodNumber;
|
|
12090
|
+
title: z.ZodString;
|
|
12091
|
+
body: z.ZodOptional<z.ZodString>;
|
|
12092
|
+
state: z.ZodEnum<{
|
|
12093
|
+
open: "open";
|
|
12094
|
+
closed: "closed";
|
|
12095
|
+
}>;
|
|
12096
|
+
url: z.ZodString;
|
|
12097
|
+
author: z.ZodObject<{
|
|
12098
|
+
login: z.ZodString;
|
|
12099
|
+
email: z.ZodOptional<z.ZodString>;
|
|
12100
|
+
}, z.core.$strip>;
|
|
12101
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
12102
|
+
}, z.core.$strip>;
|
|
12103
|
+
comment: z.ZodObject<{
|
|
12104
|
+
id: z.ZodNumber;
|
|
12105
|
+
body: z.ZodString;
|
|
12106
|
+
author: z.ZodObject<{
|
|
12107
|
+
login: z.ZodString;
|
|
12108
|
+
email: z.ZodOptional<z.ZodString>;
|
|
12109
|
+
}, z.core.$strip>;
|
|
12110
|
+
url: z.ZodString;
|
|
12111
|
+
createdAt: z.ZodString;
|
|
12112
|
+
updatedAt: z.ZodString;
|
|
12113
|
+
}, z.core.$strip>;
|
|
11763
12114
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
11764
12115
|
integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
|
|
11765
12116
|
eventType: z.ZodEnum<{
|
|
@@ -13821,6 +14172,51 @@ export declare const TriggerDefinitions: {
|
|
|
13821
14172
|
updatedAt: z.ZodString;
|
|
13822
14173
|
}, z.core.$strip>;
|
|
13823
14174
|
}, z.core.$strip>>;
|
|
14175
|
+
GithubPRCommentEditedTrigger: ConcreteTriggerDefinition<z.ZodObject<{
|
|
14176
|
+
integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
|
|
14177
|
+
username: z.ZodString;
|
|
14178
|
+
installationId: z.ZodNumber;
|
|
14179
|
+
repositoryName: z.ZodString;
|
|
14180
|
+
repository: z.ZodObject<{
|
|
14181
|
+
id: z.ZodNumber;
|
|
14182
|
+
name: z.ZodString;
|
|
14183
|
+
owner: z.ZodString;
|
|
14184
|
+
defaultBranch: z.ZodString;
|
|
14185
|
+
}, z.core.$strip>;
|
|
14186
|
+
sender: z.ZodObject<{
|
|
14187
|
+
login: z.ZodString;
|
|
14188
|
+
email: z.ZodOptional<z.ZodString>;
|
|
14189
|
+
}, z.core.$strip>;
|
|
14190
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
14191
|
+
issue: z.ZodObject<{
|
|
14192
|
+
id: z.ZodNumber;
|
|
14193
|
+
number: z.ZodNumber;
|
|
14194
|
+
title: z.ZodString;
|
|
14195
|
+
body: z.ZodOptional<z.ZodString>;
|
|
14196
|
+
state: z.ZodEnum<{
|
|
14197
|
+
open: "open";
|
|
14198
|
+
closed: "closed";
|
|
14199
|
+
}>;
|
|
14200
|
+
url: z.ZodString;
|
|
14201
|
+
author: z.ZodObject<{
|
|
14202
|
+
login: z.ZodString;
|
|
14203
|
+
email: z.ZodOptional<z.ZodString>;
|
|
14204
|
+
}, z.core.$strip>;
|
|
14205
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
14206
|
+
}, z.core.$strip>;
|
|
14207
|
+
comment: z.ZodObject<{
|
|
14208
|
+
id: z.ZodNumber;
|
|
14209
|
+
body: z.ZodString;
|
|
14210
|
+
author: z.ZodObject<{
|
|
14211
|
+
login: z.ZodString;
|
|
14212
|
+
email: z.ZodOptional<z.ZodString>;
|
|
14213
|
+
}, z.core.$strip>;
|
|
14214
|
+
url: z.ZodString;
|
|
14215
|
+
createdAt: z.ZodString;
|
|
14216
|
+
updatedAt: z.ZodString;
|
|
14217
|
+
}, z.core.$strip>;
|
|
14218
|
+
}, z.core.$strip>>;
|
|
14219
|
+
GithubPRCommentTrigger: import("./TriggerDefinition.js").UnionTriggerDefinition;
|
|
13824
14220
|
GithubPRTrigger: import("./TriggerDefinition.js").UnionTriggerDefinition;
|
|
13825
14221
|
GithubTrigger: import("./TriggerDefinition.js").UnionTriggerDefinition;
|
|
13826
14222
|
GmailTrigger: ConcreteTriggerDefinition<z.ZodObject<{
|
package/dist/Triggers.js
CHANGED
|
@@ -155,8 +155,14 @@ export const GithubPRCommentCreatedTriggerSchema = GithubTriggerBaseSchema.exten
|
|
|
155
155
|
issue: pullRequestCommentTargetSchema,
|
|
156
156
|
comment: issueCommentSchema
|
|
157
157
|
});
|
|
158
|
+
export const GithubPRCommentEditedTriggerSchema = GithubTriggerBaseSchema.extend({
|
|
159
|
+
eventType: z.literal(GitHubEventType.PR_COMMENT_EDITED),
|
|
160
|
+
issue: pullRequestCommentTargetSchema,
|
|
161
|
+
comment: issueCommentSchema
|
|
162
|
+
});
|
|
163
|
+
export const GithubPRCommentTriggerSchema = z.union([GithubPRCommentCreatedTriggerSchema, GithubPRCommentEditedTriggerSchema]);
|
|
158
164
|
export const GithubPRTriggerSchema = z.discriminatedUnion("eventType", [GithubPROpenedTriggerSchema, GithubPRSynchronizedTriggerSchema, GithubPRClosedTriggerSchema, GithubPRMergedTriggerSchema]);
|
|
159
|
-
export const GithubTriggerSchema = z.discriminatedUnion("eventType", [GithubPushTriggerSchema, GithubPRTriggerSchema, GithubIssueCommentCreatedTriggerSchema]);
|
|
165
|
+
export const GithubTriggerSchema = z.discriminatedUnion("eventType", [GithubPushTriggerSchema, GithubPRTriggerSchema, GithubIssueCommentCreatedTriggerSchema, GithubPRCommentEditedTriggerSchema]);
|
|
160
166
|
export const GmailParsedAttachmentSchema = z.object({
|
|
161
167
|
attachmentId: z.string(),
|
|
162
168
|
filename: z.string(),
|
|
@@ -908,13 +914,23 @@ export const TriggerDefinitions = {
|
|
|
908
914
|
eventTypes: [GitHubEventType.PR_COMMENT_CREATED],
|
|
909
915
|
presenter: githubPresenter
|
|
910
916
|
}),
|
|
917
|
+
GithubPRCommentEditedTrigger: defineTrigger({
|
|
918
|
+
integration: IntegrationType.GITHUB,
|
|
919
|
+
schema: GithubPRCommentEditedTriggerSchema,
|
|
920
|
+
eventTypes: [GitHubEventType.PR_COMMENT_EDITED],
|
|
921
|
+
presenter: githubPresenter
|
|
922
|
+
}),
|
|
923
|
+
GithubPRCommentTrigger: defineTriggerUnion({
|
|
924
|
+
integration: IntegrationType.GITHUB,
|
|
925
|
+
members: ["GithubPRCommentCreatedTrigger", "GithubPRCommentEditedTrigger"]
|
|
926
|
+
}),
|
|
911
927
|
GithubPRTrigger: defineTriggerUnion({
|
|
912
928
|
integration: IntegrationType.GITHUB,
|
|
913
929
|
members: ["GithubPROpenedTrigger", "GithubPRSynchronizedTrigger", "GithubPRClosedTrigger", "GithubPRMergedTrigger"]
|
|
914
930
|
}),
|
|
915
931
|
GithubTrigger: defineTriggerUnion({
|
|
916
932
|
integration: IntegrationType.GITHUB,
|
|
917
|
-
members: ["GithubPushTrigger", "GithubPRTrigger", "GithubIssueCommentCreatedTrigger"],
|
|
933
|
+
members: ["GithubPushTrigger", "GithubPRTrigger", "GithubIssueCommentCreatedTrigger", "GithubPRCommentEditedTrigger"],
|
|
918
934
|
presenter: githubPresenter
|
|
919
935
|
}),
|
|
920
936
|
GmailTrigger: defineTrigger({
|
package/dist/types.d.ts
CHANGED
|
@@ -420,6 +420,7 @@ export declare const agentTriggerSchema: z.ZodObject<{
|
|
|
420
420
|
readonly PR_CLOSED: "pull_request.closed";
|
|
421
421
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
422
422
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
423
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
423
424
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
424
425
|
}>>>;
|
|
425
426
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1115,6 +1116,7 @@ export declare const agentOutputSchema: z.ZodObject<{
|
|
|
1115
1116
|
readonly PR_CLOSED: "pull_request.closed";
|
|
1116
1117
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
1117
1118
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
1119
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
1118
1120
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
1119
1121
|
}>>>;
|
|
1120
1122
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1811,6 +1813,7 @@ export declare const transientAgentTriggerSchema: z.ZodObject<{
|
|
|
1811
1813
|
readonly PR_CLOSED: "pull_request.closed";
|
|
1812
1814
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
1813
1815
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
1816
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
1814
1817
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
1815
1818
|
}>>>;
|
|
1816
1819
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2504,6 +2507,7 @@ export declare const transientAgentOutputSchema: z.ZodObject<{
|
|
|
2504
2507
|
readonly PR_CLOSED: "pull_request.closed";
|
|
2505
2508
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
2506
2509
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
2510
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
2507
2511
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
2508
2512
|
}>>>;
|
|
2509
2513
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3427,6 +3431,7 @@ export declare const agentSchema: z.ZodObject<{
|
|
|
3427
3431
|
readonly PR_CLOSED: "pull_request.closed";
|
|
3428
3432
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
3429
3433
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
3434
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
3430
3435
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
3431
3436
|
}>>>;
|
|
3432
3437
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4121,6 +4126,7 @@ export declare const agentSchema: z.ZodObject<{
|
|
|
4121
4126
|
readonly PR_CLOSED: "pull_request.closed";
|
|
4122
4127
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
4123
4128
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
4129
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
4124
4130
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
4125
4131
|
}>>>;
|
|
4126
4132
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4836,6 +4842,7 @@ export declare const agentUpdateSchema: z.ZodObject<{
|
|
|
4836
4842
|
readonly PR_CLOSED: "pull_request.closed";
|
|
4837
4843
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
4838
4844
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
4845
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
4839
4846
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
4840
4847
|
}>>>;
|
|
4841
4848
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -5530,6 +5537,7 @@ export declare const agentUpdateSchema: z.ZodObject<{
|
|
|
5530
5537
|
readonly PR_CLOSED: "pull_request.closed";
|
|
5531
5538
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
5532
5539
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
5540
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
5533
5541
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
5534
5542
|
}>>>;
|
|
5535
5543
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -6255,6 +6263,7 @@ export declare const agentsResponseSchema: z.ZodObject<{
|
|
|
6255
6263
|
readonly PR_CLOSED: "pull_request.closed";
|
|
6256
6264
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
6257
6265
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
6266
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
6258
6267
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
6259
6268
|
}>>>;
|
|
6260
6269
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -6949,6 +6958,7 @@ export declare const agentsResponseSchema: z.ZodObject<{
|
|
|
6949
6958
|
readonly PR_CLOSED: "pull_request.closed";
|
|
6950
6959
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
6951
6960
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
6961
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
6952
6962
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
6953
6963
|
}>>>;
|
|
6954
6964
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -7677,6 +7687,7 @@ export declare const recentAgentSchema: z.ZodObject<{
|
|
|
7677
7687
|
readonly PR_CLOSED: "pull_request.closed";
|
|
7678
7688
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
7679
7689
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
7690
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
7680
7691
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
7681
7692
|
}>>>;
|
|
7682
7693
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -8371,6 +8382,7 @@ export declare const recentAgentSchema: z.ZodObject<{
|
|
|
8371
8382
|
readonly PR_CLOSED: "pull_request.closed";
|
|
8372
8383
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
8373
8384
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
8385
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
8374
8386
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
8375
8387
|
}>>>;
|
|
8376
8388
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -9855,6 +9867,49 @@ export declare const sdkAgentRunNormalizedRequestSchema: z.ZodObject<{
|
|
|
9855
9867
|
createdAt: z.ZodString;
|
|
9856
9868
|
updatedAt: z.ZodString;
|
|
9857
9869
|
}, z.core.$strip>;
|
|
9870
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9871
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
9872
|
+
username: z.ZodString;
|
|
9873
|
+
installationId: z.ZodNumber;
|
|
9874
|
+
repositoryName: z.ZodString;
|
|
9875
|
+
repository: z.ZodObject<{
|
|
9876
|
+
id: z.ZodNumber;
|
|
9877
|
+
name: z.ZodString;
|
|
9878
|
+
owner: z.ZodString;
|
|
9879
|
+
defaultBranch: z.ZodString;
|
|
9880
|
+
}, z.core.$strip>;
|
|
9881
|
+
sender: z.ZodObject<{
|
|
9882
|
+
login: z.ZodString;
|
|
9883
|
+
email: z.ZodOptional<z.ZodString>;
|
|
9884
|
+
}, z.core.$strip>;
|
|
9885
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
9886
|
+
issue: z.ZodObject<{
|
|
9887
|
+
id: z.ZodNumber;
|
|
9888
|
+
number: z.ZodNumber;
|
|
9889
|
+
title: z.ZodString;
|
|
9890
|
+
body: z.ZodOptional<z.ZodString>;
|
|
9891
|
+
state: z.ZodEnum<{
|
|
9892
|
+
open: "open";
|
|
9893
|
+
closed: "closed";
|
|
9894
|
+
}>;
|
|
9895
|
+
url: z.ZodString;
|
|
9896
|
+
author: z.ZodObject<{
|
|
9897
|
+
login: z.ZodString;
|
|
9898
|
+
email: z.ZodOptional<z.ZodString>;
|
|
9899
|
+
}, z.core.$strip>;
|
|
9900
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
9901
|
+
}, z.core.$strip>;
|
|
9902
|
+
comment: z.ZodObject<{
|
|
9903
|
+
id: z.ZodNumber;
|
|
9904
|
+
body: z.ZodString;
|
|
9905
|
+
author: z.ZodObject<{
|
|
9906
|
+
login: z.ZodString;
|
|
9907
|
+
email: z.ZodOptional<z.ZodString>;
|
|
9908
|
+
}, z.core.$strip>;
|
|
9909
|
+
url: z.ZodString;
|
|
9910
|
+
createdAt: z.ZodString;
|
|
9911
|
+
updatedAt: z.ZodString;
|
|
9912
|
+
}, z.core.$strip>;
|
|
9858
9913
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
9859
9914
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
9860
9915
|
eventType: z.ZodEnum<{
|
|
@@ -11970,6 +12025,49 @@ export declare const sdkAgentRunResponseBodySchema: z.ZodObject<{
|
|
|
11970
12025
|
createdAt: z.ZodString;
|
|
11971
12026
|
updatedAt: z.ZodString;
|
|
11972
12027
|
}, z.core.$strip>;
|
|
12028
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12029
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
12030
|
+
username: z.ZodString;
|
|
12031
|
+
installationId: z.ZodNumber;
|
|
12032
|
+
repositoryName: z.ZodString;
|
|
12033
|
+
repository: z.ZodObject<{
|
|
12034
|
+
id: z.ZodNumber;
|
|
12035
|
+
name: z.ZodString;
|
|
12036
|
+
owner: z.ZodString;
|
|
12037
|
+
defaultBranch: z.ZodString;
|
|
12038
|
+
}, z.core.$strip>;
|
|
12039
|
+
sender: z.ZodObject<{
|
|
12040
|
+
login: z.ZodString;
|
|
12041
|
+
email: z.ZodOptional<z.ZodString>;
|
|
12042
|
+
}, z.core.$strip>;
|
|
12043
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
12044
|
+
issue: z.ZodObject<{
|
|
12045
|
+
id: z.ZodNumber;
|
|
12046
|
+
number: z.ZodNumber;
|
|
12047
|
+
title: z.ZodString;
|
|
12048
|
+
body: z.ZodOptional<z.ZodString>;
|
|
12049
|
+
state: z.ZodEnum<{
|
|
12050
|
+
open: "open";
|
|
12051
|
+
closed: "closed";
|
|
12052
|
+
}>;
|
|
12053
|
+
url: z.ZodString;
|
|
12054
|
+
author: z.ZodObject<{
|
|
12055
|
+
login: z.ZodString;
|
|
12056
|
+
email: z.ZodOptional<z.ZodString>;
|
|
12057
|
+
}, z.core.$strip>;
|
|
12058
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
12059
|
+
}, z.core.$strip>;
|
|
12060
|
+
comment: z.ZodObject<{
|
|
12061
|
+
id: z.ZodNumber;
|
|
12062
|
+
body: z.ZodString;
|
|
12063
|
+
author: z.ZodObject<{
|
|
12064
|
+
login: z.ZodString;
|
|
12065
|
+
email: z.ZodOptional<z.ZodString>;
|
|
12066
|
+
}, z.core.$strip>;
|
|
12067
|
+
url: z.ZodString;
|
|
12068
|
+
createdAt: z.ZodString;
|
|
12069
|
+
updatedAt: z.ZodString;
|
|
12070
|
+
}, z.core.$strip>;
|
|
11973
12071
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
11974
12072
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
11975
12073
|
eventType: z.ZodEnum<{
|
|
@@ -14116,6 +14214,7 @@ export declare const sdkDeployJobSchema: z.ZodObject<{
|
|
|
14116
14214
|
readonly PR_CLOSED: "pull_request.closed";
|
|
14117
14215
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
14118
14216
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
14217
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
14119
14218
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
14120
14219
|
}>>>;
|
|
14121
14220
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -14708,6 +14807,7 @@ export declare const sdkDeployRequestBodySchema: z.ZodObject<{
|
|
|
14708
14807
|
readonly PR_CLOSED: "pull_request.closed";
|
|
14709
14808
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
14710
14809
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
14810
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
14711
14811
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
14712
14812
|
}>>>;
|
|
14713
14813
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -15434,6 +15534,7 @@ export declare const sdkTestRunStartRequestSchema: z.ZodObject<{
|
|
|
15434
15534
|
readonly PR_CLOSED: "pull_request.closed";
|
|
15435
15535
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
15436
15536
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
15537
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
15437
15538
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
15438
15539
|
}>, z.ZodEnum<{
|
|
15439
15540
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -15843,6 +15944,49 @@ export declare const sdkTestRunStartRequestSchema: z.ZodObject<{
|
|
|
15843
15944
|
createdAt: z.ZodString;
|
|
15844
15945
|
updatedAt: z.ZodString;
|
|
15845
15946
|
}, z.core.$strip>;
|
|
15947
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15948
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
15949
|
+
username: z.ZodString;
|
|
15950
|
+
installationId: z.ZodNumber;
|
|
15951
|
+
repositoryName: z.ZodString;
|
|
15952
|
+
repository: z.ZodObject<{
|
|
15953
|
+
id: z.ZodNumber;
|
|
15954
|
+
name: z.ZodString;
|
|
15955
|
+
owner: z.ZodString;
|
|
15956
|
+
defaultBranch: z.ZodString;
|
|
15957
|
+
}, z.core.$strip>;
|
|
15958
|
+
sender: z.ZodObject<{
|
|
15959
|
+
login: z.ZodString;
|
|
15960
|
+
email: z.ZodOptional<z.ZodString>;
|
|
15961
|
+
}, z.core.$strip>;
|
|
15962
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
15963
|
+
issue: z.ZodObject<{
|
|
15964
|
+
id: z.ZodNumber;
|
|
15965
|
+
number: z.ZodNumber;
|
|
15966
|
+
title: z.ZodString;
|
|
15967
|
+
body: z.ZodOptional<z.ZodString>;
|
|
15968
|
+
state: z.ZodEnum<{
|
|
15969
|
+
open: "open";
|
|
15970
|
+
closed: "closed";
|
|
15971
|
+
}>;
|
|
15972
|
+
url: z.ZodString;
|
|
15973
|
+
author: z.ZodObject<{
|
|
15974
|
+
login: z.ZodString;
|
|
15975
|
+
email: z.ZodOptional<z.ZodString>;
|
|
15976
|
+
}, z.core.$strip>;
|
|
15977
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
15978
|
+
}, z.core.$strip>;
|
|
15979
|
+
comment: z.ZodObject<{
|
|
15980
|
+
id: z.ZodNumber;
|
|
15981
|
+
body: z.ZodString;
|
|
15982
|
+
author: z.ZodObject<{
|
|
15983
|
+
login: z.ZodString;
|
|
15984
|
+
email: z.ZodOptional<z.ZodString>;
|
|
15985
|
+
}, z.core.$strip>;
|
|
15986
|
+
url: z.ZodString;
|
|
15987
|
+
createdAt: z.ZodString;
|
|
15988
|
+
updatedAt: z.ZodString;
|
|
15989
|
+
}, z.core.$strip>;
|
|
15846
15990
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
15847
15991
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
15848
15992
|
eventType: z.ZodEnum<{
|
|
@@ -17534,6 +17678,7 @@ export declare const sdkRunTriggerEventResponseSchema: z.ZodObject<{
|
|
|
17534
17678
|
readonly PR_CLOSED: "pull_request.closed";
|
|
17535
17679
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
17536
17680
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
17681
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
17537
17682
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
17538
17683
|
}>, z.ZodEnum<{
|
|
17539
17684
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -17943,6 +18088,49 @@ export declare const sdkRunTriggerEventResponseSchema: z.ZodObject<{
|
|
|
17943
18088
|
createdAt: z.ZodString;
|
|
17944
18089
|
updatedAt: z.ZodString;
|
|
17945
18090
|
}, z.core.$strip>;
|
|
18091
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18092
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
18093
|
+
username: z.ZodString;
|
|
18094
|
+
installationId: z.ZodNumber;
|
|
18095
|
+
repositoryName: z.ZodString;
|
|
18096
|
+
repository: z.ZodObject<{
|
|
18097
|
+
id: z.ZodNumber;
|
|
18098
|
+
name: z.ZodString;
|
|
18099
|
+
owner: z.ZodString;
|
|
18100
|
+
defaultBranch: z.ZodString;
|
|
18101
|
+
}, z.core.$strip>;
|
|
18102
|
+
sender: z.ZodObject<{
|
|
18103
|
+
login: z.ZodString;
|
|
18104
|
+
email: z.ZodOptional<z.ZodString>;
|
|
18105
|
+
}, z.core.$strip>;
|
|
18106
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
18107
|
+
issue: z.ZodObject<{
|
|
18108
|
+
id: z.ZodNumber;
|
|
18109
|
+
number: z.ZodNumber;
|
|
18110
|
+
title: z.ZodString;
|
|
18111
|
+
body: z.ZodOptional<z.ZodString>;
|
|
18112
|
+
state: z.ZodEnum<{
|
|
18113
|
+
open: "open";
|
|
18114
|
+
closed: "closed";
|
|
18115
|
+
}>;
|
|
18116
|
+
url: z.ZodString;
|
|
18117
|
+
author: z.ZodObject<{
|
|
18118
|
+
login: z.ZodString;
|
|
18119
|
+
email: z.ZodOptional<z.ZodString>;
|
|
18120
|
+
}, z.core.$strip>;
|
|
18121
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
18122
|
+
}, z.core.$strip>;
|
|
18123
|
+
comment: z.ZodObject<{
|
|
18124
|
+
id: z.ZodNumber;
|
|
18125
|
+
body: z.ZodString;
|
|
18126
|
+
author: z.ZodObject<{
|
|
18127
|
+
login: z.ZodString;
|
|
18128
|
+
email: z.ZodOptional<z.ZodString>;
|
|
18129
|
+
}, z.core.$strip>;
|
|
18130
|
+
url: z.ZodString;
|
|
18131
|
+
createdAt: z.ZodString;
|
|
18132
|
+
updatedAt: z.ZodString;
|
|
18133
|
+
}, z.core.$strip>;
|
|
17946
18134
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
17947
18135
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
17948
18136
|
eventType: z.ZodEnum<{
|
|
@@ -19700,6 +19888,7 @@ export declare const sdkSampleEventsRequestSchema: z.ZodObject<{
|
|
|
19700
19888
|
readonly PR_CLOSED: "pull_request.closed";
|
|
19701
19889
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
19702
19890
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
19891
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
19703
19892
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
19704
19893
|
}>>>;
|
|
19705
19894
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -20366,6 +20555,7 @@ export declare const sdkSampleEventRefSchema: z.ZodObject<{
|
|
|
20366
20555
|
readonly PR_CLOSED: "pull_request.closed";
|
|
20367
20556
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
20368
20557
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
20558
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
20369
20559
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
20370
20560
|
}>, z.ZodEnum<{
|
|
20371
20561
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -20775,6 +20965,49 @@ export declare const sdkSampleEventRefSchema: z.ZodObject<{
|
|
|
20775
20965
|
createdAt: z.ZodString;
|
|
20776
20966
|
updatedAt: z.ZodString;
|
|
20777
20967
|
}, z.core.$strip>;
|
|
20968
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20969
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
20970
|
+
username: z.ZodString;
|
|
20971
|
+
installationId: z.ZodNumber;
|
|
20972
|
+
repositoryName: z.ZodString;
|
|
20973
|
+
repository: z.ZodObject<{
|
|
20974
|
+
id: z.ZodNumber;
|
|
20975
|
+
name: z.ZodString;
|
|
20976
|
+
owner: z.ZodString;
|
|
20977
|
+
defaultBranch: z.ZodString;
|
|
20978
|
+
}, z.core.$strip>;
|
|
20979
|
+
sender: z.ZodObject<{
|
|
20980
|
+
login: z.ZodString;
|
|
20981
|
+
email: z.ZodOptional<z.ZodString>;
|
|
20982
|
+
}, z.core.$strip>;
|
|
20983
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
20984
|
+
issue: z.ZodObject<{
|
|
20985
|
+
id: z.ZodNumber;
|
|
20986
|
+
number: z.ZodNumber;
|
|
20987
|
+
title: z.ZodString;
|
|
20988
|
+
body: z.ZodOptional<z.ZodString>;
|
|
20989
|
+
state: z.ZodEnum<{
|
|
20990
|
+
open: "open";
|
|
20991
|
+
closed: "closed";
|
|
20992
|
+
}>;
|
|
20993
|
+
url: z.ZodString;
|
|
20994
|
+
author: z.ZodObject<{
|
|
20995
|
+
login: z.ZodString;
|
|
20996
|
+
email: z.ZodOptional<z.ZodString>;
|
|
20997
|
+
}, z.core.$strip>;
|
|
20998
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
20999
|
+
}, z.core.$strip>;
|
|
21000
|
+
comment: z.ZodObject<{
|
|
21001
|
+
id: z.ZodNumber;
|
|
21002
|
+
body: z.ZodString;
|
|
21003
|
+
author: z.ZodObject<{
|
|
21004
|
+
login: z.ZodString;
|
|
21005
|
+
email: z.ZodOptional<z.ZodString>;
|
|
21006
|
+
}, z.core.$strip>;
|
|
21007
|
+
url: z.ZodString;
|
|
21008
|
+
createdAt: z.ZodString;
|
|
21009
|
+
updatedAt: z.ZodString;
|
|
21010
|
+
}, z.core.$strip>;
|
|
20778
21011
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
20779
21012
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
20780
21013
|
eventType: z.ZodEnum<{
|
|
@@ -22463,6 +22696,7 @@ export declare const sdkSampleEventsResponseSchema: z.ZodObject<{
|
|
|
22463
22696
|
readonly PR_CLOSED: "pull_request.closed";
|
|
22464
22697
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
22465
22698
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
22699
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
22466
22700
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
22467
22701
|
}>, z.ZodEnum<{
|
|
22468
22702
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -22872,6 +23106,49 @@ export declare const sdkSampleEventsResponseSchema: z.ZodObject<{
|
|
|
22872
23106
|
createdAt: z.ZodString;
|
|
22873
23107
|
updatedAt: z.ZodString;
|
|
22874
23108
|
}, z.core.$strip>;
|
|
23109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23110
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
23111
|
+
username: z.ZodString;
|
|
23112
|
+
installationId: z.ZodNumber;
|
|
23113
|
+
repositoryName: z.ZodString;
|
|
23114
|
+
repository: z.ZodObject<{
|
|
23115
|
+
id: z.ZodNumber;
|
|
23116
|
+
name: z.ZodString;
|
|
23117
|
+
owner: z.ZodString;
|
|
23118
|
+
defaultBranch: z.ZodString;
|
|
23119
|
+
}, z.core.$strip>;
|
|
23120
|
+
sender: z.ZodObject<{
|
|
23121
|
+
login: z.ZodString;
|
|
23122
|
+
email: z.ZodOptional<z.ZodString>;
|
|
23123
|
+
}, z.core.$strip>;
|
|
23124
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
23125
|
+
issue: z.ZodObject<{
|
|
23126
|
+
id: z.ZodNumber;
|
|
23127
|
+
number: z.ZodNumber;
|
|
23128
|
+
title: z.ZodString;
|
|
23129
|
+
body: z.ZodOptional<z.ZodString>;
|
|
23130
|
+
state: z.ZodEnum<{
|
|
23131
|
+
open: "open";
|
|
23132
|
+
closed: "closed";
|
|
23133
|
+
}>;
|
|
23134
|
+
url: z.ZodString;
|
|
23135
|
+
author: z.ZodObject<{
|
|
23136
|
+
login: z.ZodString;
|
|
23137
|
+
email: z.ZodOptional<z.ZodString>;
|
|
23138
|
+
}, z.core.$strip>;
|
|
23139
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
23140
|
+
}, z.core.$strip>;
|
|
23141
|
+
comment: z.ZodObject<{
|
|
23142
|
+
id: z.ZodNumber;
|
|
23143
|
+
body: z.ZodString;
|
|
23144
|
+
author: z.ZodObject<{
|
|
23145
|
+
login: z.ZodString;
|
|
23146
|
+
email: z.ZodOptional<z.ZodString>;
|
|
23147
|
+
}, z.core.$strip>;
|
|
23148
|
+
url: z.ZodString;
|
|
23149
|
+
createdAt: z.ZodString;
|
|
23150
|
+
updatedAt: z.ZodString;
|
|
23151
|
+
}, z.core.$strip>;
|
|
22875
23152
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
22876
23153
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
22877
23154
|
eventType: z.ZodEnum<{
|
|
@@ -24564,6 +24841,7 @@ export declare const sdkHydrateSampleEventResponseSchema: z.ZodObject<{
|
|
|
24564
24841
|
readonly PR_CLOSED: "pull_request.closed";
|
|
24565
24842
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
24566
24843
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
24844
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
24567
24845
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
24568
24846
|
}>, z.ZodEnum<{
|
|
24569
24847
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -24973,6 +25251,49 @@ export declare const sdkHydrateSampleEventResponseSchema: z.ZodObject<{
|
|
|
24973
25251
|
createdAt: z.ZodString;
|
|
24974
25252
|
updatedAt: z.ZodString;
|
|
24975
25253
|
}, z.core.$strip>;
|
|
25254
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25255
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
25256
|
+
username: z.ZodString;
|
|
25257
|
+
installationId: z.ZodNumber;
|
|
25258
|
+
repositoryName: z.ZodString;
|
|
25259
|
+
repository: z.ZodObject<{
|
|
25260
|
+
id: z.ZodNumber;
|
|
25261
|
+
name: z.ZodString;
|
|
25262
|
+
owner: z.ZodString;
|
|
25263
|
+
defaultBranch: z.ZodString;
|
|
25264
|
+
}, z.core.$strip>;
|
|
25265
|
+
sender: z.ZodObject<{
|
|
25266
|
+
login: z.ZodString;
|
|
25267
|
+
email: z.ZodOptional<z.ZodString>;
|
|
25268
|
+
}, z.core.$strip>;
|
|
25269
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
25270
|
+
issue: z.ZodObject<{
|
|
25271
|
+
id: z.ZodNumber;
|
|
25272
|
+
number: z.ZodNumber;
|
|
25273
|
+
title: z.ZodString;
|
|
25274
|
+
body: z.ZodOptional<z.ZodString>;
|
|
25275
|
+
state: z.ZodEnum<{
|
|
25276
|
+
open: "open";
|
|
25277
|
+
closed: "closed";
|
|
25278
|
+
}>;
|
|
25279
|
+
url: z.ZodString;
|
|
25280
|
+
author: z.ZodObject<{
|
|
25281
|
+
login: z.ZodString;
|
|
25282
|
+
email: z.ZodOptional<z.ZodString>;
|
|
25283
|
+
}, z.core.$strip>;
|
|
25284
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
25285
|
+
}, z.core.$strip>;
|
|
25286
|
+
comment: z.ZodObject<{
|
|
25287
|
+
id: z.ZodNumber;
|
|
25288
|
+
body: z.ZodString;
|
|
25289
|
+
author: z.ZodObject<{
|
|
25290
|
+
login: z.ZodString;
|
|
25291
|
+
email: z.ZodOptional<z.ZodString>;
|
|
25292
|
+
}, z.core.$strip>;
|
|
25293
|
+
url: z.ZodString;
|
|
25294
|
+
createdAt: z.ZodString;
|
|
25295
|
+
updatedAt: z.ZodString;
|
|
25296
|
+
}, z.core.$strip>;
|
|
24976
25297
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
24977
25298
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
24978
25299
|
eventType: z.ZodEnum<{
|
|
@@ -26976,6 +27297,49 @@ export declare const triggerWithEventRequestSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
26976
27297
|
createdAt: z.ZodString;
|
|
26977
27298
|
updatedAt: z.ZodString;
|
|
26978
27299
|
}, z.core.$strip>;
|
|
27300
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27301
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
27302
|
+
username: z.ZodString;
|
|
27303
|
+
installationId: z.ZodNumber;
|
|
27304
|
+
repositoryName: z.ZodString;
|
|
27305
|
+
repository: z.ZodObject<{
|
|
27306
|
+
id: z.ZodNumber;
|
|
27307
|
+
name: z.ZodString;
|
|
27308
|
+
owner: z.ZodString;
|
|
27309
|
+
defaultBranch: z.ZodString;
|
|
27310
|
+
}, z.core.$strip>;
|
|
27311
|
+
sender: z.ZodObject<{
|
|
27312
|
+
login: z.ZodString;
|
|
27313
|
+
email: z.ZodOptional<z.ZodString>;
|
|
27314
|
+
}, z.core.$strip>;
|
|
27315
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
27316
|
+
issue: z.ZodObject<{
|
|
27317
|
+
id: z.ZodNumber;
|
|
27318
|
+
number: z.ZodNumber;
|
|
27319
|
+
title: z.ZodString;
|
|
27320
|
+
body: z.ZodOptional<z.ZodString>;
|
|
27321
|
+
state: z.ZodEnum<{
|
|
27322
|
+
open: "open";
|
|
27323
|
+
closed: "closed";
|
|
27324
|
+
}>;
|
|
27325
|
+
url: z.ZodString;
|
|
27326
|
+
author: z.ZodObject<{
|
|
27327
|
+
login: z.ZodString;
|
|
27328
|
+
email: z.ZodOptional<z.ZodString>;
|
|
27329
|
+
}, z.core.$strip>;
|
|
27330
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
27331
|
+
}, z.core.$strip>;
|
|
27332
|
+
comment: z.ZodObject<{
|
|
27333
|
+
id: z.ZodNumber;
|
|
27334
|
+
body: z.ZodString;
|
|
27335
|
+
author: z.ZodObject<{
|
|
27336
|
+
login: z.ZodString;
|
|
27337
|
+
email: z.ZodOptional<z.ZodString>;
|
|
27338
|
+
}, z.core.$strip>;
|
|
27339
|
+
url: z.ZodString;
|
|
27340
|
+
createdAt: z.ZodString;
|
|
27341
|
+
updatedAt: z.ZodString;
|
|
27342
|
+
}, z.core.$strip>;
|
|
26979
27343
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
26980
27344
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
26981
27345
|
eventType: z.ZodEnum<{
|
|
@@ -28671,6 +29035,7 @@ export declare const webhookJobTriggerRequestSchema: z.ZodObject<{
|
|
|
28671
29035
|
readonly PR_CLOSED: "pull_request.closed";
|
|
28672
29036
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
28673
29037
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
29038
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
28674
29039
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
28675
29040
|
}>, z.ZodEnum<{
|
|
28676
29041
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -29080,6 +29445,49 @@ export declare const webhookJobTriggerRequestSchema: z.ZodObject<{
|
|
|
29080
29445
|
createdAt: z.ZodString;
|
|
29081
29446
|
updatedAt: z.ZodString;
|
|
29082
29447
|
}, z.core.$strip>;
|
|
29448
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29449
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
29450
|
+
username: z.ZodString;
|
|
29451
|
+
installationId: z.ZodNumber;
|
|
29452
|
+
repositoryName: z.ZodString;
|
|
29453
|
+
repository: z.ZodObject<{
|
|
29454
|
+
id: z.ZodNumber;
|
|
29455
|
+
name: z.ZodString;
|
|
29456
|
+
owner: z.ZodString;
|
|
29457
|
+
defaultBranch: z.ZodString;
|
|
29458
|
+
}, z.core.$strip>;
|
|
29459
|
+
sender: z.ZodObject<{
|
|
29460
|
+
login: z.ZodString;
|
|
29461
|
+
email: z.ZodOptional<z.ZodString>;
|
|
29462
|
+
}, z.core.$strip>;
|
|
29463
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
29464
|
+
issue: z.ZodObject<{
|
|
29465
|
+
id: z.ZodNumber;
|
|
29466
|
+
number: z.ZodNumber;
|
|
29467
|
+
title: z.ZodString;
|
|
29468
|
+
body: z.ZodOptional<z.ZodString>;
|
|
29469
|
+
state: z.ZodEnum<{
|
|
29470
|
+
open: "open";
|
|
29471
|
+
closed: "closed";
|
|
29472
|
+
}>;
|
|
29473
|
+
url: z.ZodString;
|
|
29474
|
+
author: z.ZodObject<{
|
|
29475
|
+
login: z.ZodString;
|
|
29476
|
+
email: z.ZodOptional<z.ZodString>;
|
|
29477
|
+
}, z.core.$strip>;
|
|
29478
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
29479
|
+
}, z.core.$strip>;
|
|
29480
|
+
comment: z.ZodObject<{
|
|
29481
|
+
id: z.ZodNumber;
|
|
29482
|
+
body: z.ZodString;
|
|
29483
|
+
author: z.ZodObject<{
|
|
29484
|
+
login: z.ZodString;
|
|
29485
|
+
email: z.ZodOptional<z.ZodString>;
|
|
29486
|
+
}, z.core.$strip>;
|
|
29487
|
+
url: z.ZodString;
|
|
29488
|
+
createdAt: z.ZodString;
|
|
29489
|
+
updatedAt: z.ZodString;
|
|
29490
|
+
}, z.core.$strip>;
|
|
29083
29491
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
29084
29492
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
29085
29493
|
eventType: z.ZodEnum<{
|
|
@@ -30845,6 +31253,7 @@ export declare const sdkListenForwardedEventSchema: z.ZodObject<{
|
|
|
30845
31253
|
readonly PR_CLOSED: "pull_request.closed";
|
|
30846
31254
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
30847
31255
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
31256
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
30848
31257
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
30849
31258
|
}>, z.ZodEnum<{
|
|
30850
31259
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -31254,6 +31663,49 @@ export declare const sdkListenForwardedEventSchema: z.ZodObject<{
|
|
|
31254
31663
|
createdAt: z.ZodString;
|
|
31255
31664
|
updatedAt: z.ZodString;
|
|
31256
31665
|
}, z.core.$strip>;
|
|
31666
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31667
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
31668
|
+
username: z.ZodString;
|
|
31669
|
+
installationId: z.ZodNumber;
|
|
31670
|
+
repositoryName: z.ZodString;
|
|
31671
|
+
repository: z.ZodObject<{
|
|
31672
|
+
id: z.ZodNumber;
|
|
31673
|
+
name: z.ZodString;
|
|
31674
|
+
owner: z.ZodString;
|
|
31675
|
+
defaultBranch: z.ZodString;
|
|
31676
|
+
}, z.core.$strip>;
|
|
31677
|
+
sender: z.ZodObject<{
|
|
31678
|
+
login: z.ZodString;
|
|
31679
|
+
email: z.ZodOptional<z.ZodString>;
|
|
31680
|
+
}, z.core.$strip>;
|
|
31681
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
31682
|
+
issue: z.ZodObject<{
|
|
31683
|
+
id: z.ZodNumber;
|
|
31684
|
+
number: z.ZodNumber;
|
|
31685
|
+
title: z.ZodString;
|
|
31686
|
+
body: z.ZodOptional<z.ZodString>;
|
|
31687
|
+
state: z.ZodEnum<{
|
|
31688
|
+
open: "open";
|
|
31689
|
+
closed: "closed";
|
|
31690
|
+
}>;
|
|
31691
|
+
url: z.ZodString;
|
|
31692
|
+
author: z.ZodObject<{
|
|
31693
|
+
login: z.ZodString;
|
|
31694
|
+
email: z.ZodOptional<z.ZodString>;
|
|
31695
|
+
}, z.core.$strip>;
|
|
31696
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
31697
|
+
}, z.core.$strip>;
|
|
31698
|
+
comment: z.ZodObject<{
|
|
31699
|
+
id: z.ZodNumber;
|
|
31700
|
+
body: z.ZodString;
|
|
31701
|
+
author: z.ZodObject<{
|
|
31702
|
+
login: z.ZodString;
|
|
31703
|
+
email: z.ZodOptional<z.ZodString>;
|
|
31704
|
+
}, z.core.$strip>;
|
|
31705
|
+
url: z.ZodString;
|
|
31706
|
+
createdAt: z.ZodString;
|
|
31707
|
+
updatedAt: z.ZodString;
|
|
31708
|
+
}, z.core.$strip>;
|
|
31257
31709
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
31258
31710
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
31259
31711
|
eventType: z.ZodEnum<{
|
|
@@ -32937,6 +33389,7 @@ export declare const sdkListenStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
32937
33389
|
readonly PR_CLOSED: "pull_request.closed";
|
|
32938
33390
|
readonly PR_SYNCHRONIZE: "pull_request.synchronize";
|
|
32939
33391
|
readonly PR_COMMENT_CREATED: "pull_request.comment.created";
|
|
33392
|
+
readonly PR_COMMENT_EDITED: "pull_request.comment.edited";
|
|
32940
33393
|
readonly ISSUE_COMMENT_CREATED: "issue_comment.created";
|
|
32941
33394
|
}>, z.ZodEnum<{
|
|
32942
33395
|
readonly ISSUE_CREATED: "issue.created";
|
|
@@ -33346,6 +33799,49 @@ export declare const sdkListenStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
33346
33799
|
createdAt: z.ZodString;
|
|
33347
33800
|
updatedAt: z.ZodString;
|
|
33348
33801
|
}, z.core.$strip>;
|
|
33802
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33803
|
+
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
|
|
33804
|
+
username: z.ZodString;
|
|
33805
|
+
installationId: z.ZodNumber;
|
|
33806
|
+
repositoryName: z.ZodString;
|
|
33807
|
+
repository: z.ZodObject<{
|
|
33808
|
+
id: z.ZodNumber;
|
|
33809
|
+
name: z.ZodString;
|
|
33810
|
+
owner: z.ZodString;
|
|
33811
|
+
defaultBranch: z.ZodString;
|
|
33812
|
+
}, z.core.$strip>;
|
|
33813
|
+
sender: z.ZodObject<{
|
|
33814
|
+
login: z.ZodString;
|
|
33815
|
+
email: z.ZodOptional<z.ZodString>;
|
|
33816
|
+
}, z.core.$strip>;
|
|
33817
|
+
eventType: z.ZodLiteral<"pull_request.comment.edited">;
|
|
33818
|
+
issue: z.ZodObject<{
|
|
33819
|
+
id: z.ZodNumber;
|
|
33820
|
+
number: z.ZodNumber;
|
|
33821
|
+
title: z.ZodString;
|
|
33822
|
+
body: z.ZodOptional<z.ZodString>;
|
|
33823
|
+
state: z.ZodEnum<{
|
|
33824
|
+
open: "open";
|
|
33825
|
+
closed: "closed";
|
|
33826
|
+
}>;
|
|
33827
|
+
url: z.ZodString;
|
|
33828
|
+
author: z.ZodObject<{
|
|
33829
|
+
login: z.ZodString;
|
|
33830
|
+
email: z.ZodOptional<z.ZodString>;
|
|
33831
|
+
}, z.core.$strip>;
|
|
33832
|
+
isPullRequest: z.ZodLiteral<true>;
|
|
33833
|
+
}, z.core.$strip>;
|
|
33834
|
+
comment: z.ZodObject<{
|
|
33835
|
+
id: z.ZodNumber;
|
|
33836
|
+
body: z.ZodString;
|
|
33837
|
+
author: z.ZodObject<{
|
|
33838
|
+
login: z.ZodString;
|
|
33839
|
+
email: z.ZodOptional<z.ZodString>;
|
|
33840
|
+
}, z.core.$strip>;
|
|
33841
|
+
url: z.ZodString;
|
|
33842
|
+
createdAt: z.ZodString;
|
|
33843
|
+
updatedAt: z.ZodString;
|
|
33844
|
+
}, z.core.$strip>;
|
|
33349
33845
|
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
33350
33846
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
|
|
33351
33847
|
eventType: z.ZodEnum<{
|