@kana-ai/edgar-ext-github 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +141 -74
- package/dist/src/api/app.d.ts +30 -6
- package/dist/src/api/app.js +75 -10
- package/dist/src/api/client.d.ts +11 -4
- package/dist/src/api/client.js +71 -20
- package/dist/src/api/commits.d.ts +4 -0
- package/dist/src/api/commits.js +69 -0
- package/dist/src/api/failures.d.ts +4 -0
- package/dist/src/api/failures.js +14 -1
- package/dist/src/feed/alerts.d.ts +9 -3
- package/dist/src/feed/alerts.js +66 -6
- package/dist/src/feed/service.d.ts +10 -1
- package/dist/src/feed/service.js +79 -16
- package/dist/src/index.d.ts +97 -1
- package/dist/src/index.js +19 -5
- package/dist/src/schemas/config.d.ts +1 -0
- package/dist/src/schemas/config.js +73 -29
- package/dist/src/schemas/github.d.ts +121 -1
- package/dist/src/schemas/github.js +37 -2
- package/dist/src/schemas/tools.d.ts +159 -2
- package/dist/src/schemas/tools.js +129 -6
- package/dist/src/tools/alerts.js +1 -0
- package/dist/src/tools/branch.d.ts +12 -0
- package/dist/src/tools/branch.js +69 -1
- package/dist/src/tools/pull-request.d.ts +55 -7
- package/dist/src/tools/pull-request.js +131 -42
- package/dist/src/tools/revert.d.ts +27 -0
- package/dist/src/tools/revert.js +98 -0
- package/dist/src/tools/screenshot.d.ts +1 -1
- package/dist/src/tools/screenshot.js +25 -11
- package/dist/src/tracker/cards.d.ts +1 -1
- package/dist/src/tracker/cards.js +84 -8
- package/dist/src/tracker/comments.d.ts +14 -2
- package/dist/src/tracker/comments.js +100 -4
- package/dist/src/tracker/port.d.ts +1 -1
- package/dist/src/tracker/port.js +4 -6
- package/dist/src/tracker/read-link.d.ts +2 -0
- package/dist/src/tracker/read-link.js +23 -0
- package/dist/src/tracker/states.d.ts +14 -3
- package/dist/src/tracker/states.js +37 -6
- package/dist/src/tracker/tools.d.ts +27 -0
- package/dist/src/tracker/tools.js +63 -7
- package/dist/src/tracker/transitions.d.ts +14 -3
- package/dist/src/tracker/transitions.js +57 -10
- package/edgar-extension.json +124 -6
- package/package.json +3 -3
- package/schemas/attach_screenshot.in.json +19 -0
- package/schemas/config.json +49 -23
- package/schemas/create_card.in.json +4 -0
- package/schemas/delete_closed_branches.in.json +26 -0
- package/schemas/delete_closed_branches.out.json +22 -0
- package/schemas/find_revert_pull_request.in.json +21 -0
- package/schemas/find_revert_pull_request.out.json +14 -0
- package/schemas/list_pull_requests.out.json +5 -1
- package/schemas/mark_seen.in.json +11 -0
- package/schemas/mark_seen.out.json +10 -0
- package/schemas/merged_pull_request.in.json +17 -0
- package/schemas/merged_pull_request.out.json +18 -0
- package/schemas/open_pull_request.in.json +73 -1
- package/schemas/park.in.json +15 -0
- package/schemas/park.out.json +10 -0
- package/schemas/pull_request_state.out.json +10 -1
- package/schemas/release_follow_ups.in.json +5 -0
- package/schemas/retitle.in.json +16 -0
- package/schemas/retitle.out.json +13 -0
- package/schemas/revert_pull_request.in.json +11 -0
- package/schemas/revert_pull_request.out.json +14 -0
- package/schemas/set_priority.in.json +16 -0
- package/schemas/set_priority.out.json +10 -0
- package/schemas/update_pull_request.in.json +28 -1
- package/schemas/wait_for_review.out.json +10 -1
|
@@ -18,6 +18,45 @@ export declare const pull: z.ZodObject<{
|
|
|
18
18
|
}, z.core.$strip>>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
|
+
/** A pull request with its GraphQL node id, which `revertPullRequest` takes. */
|
|
22
|
+
export declare const nodePull: z.ZodObject<{
|
|
23
|
+
html_url: z.ZodString;
|
|
24
|
+
number: z.ZodNumber;
|
|
25
|
+
state: z.ZodEnum<{
|
|
26
|
+
closed: "closed";
|
|
27
|
+
open: "open";
|
|
28
|
+
}>;
|
|
29
|
+
merged_at: z.ZodNullable<z.ZodString>;
|
|
30
|
+
merge_commit_sha: z.ZodNullable<z.ZodString>;
|
|
31
|
+
updated_at: z.ZodString;
|
|
32
|
+
head: z.ZodObject<{
|
|
33
|
+
ref: z.ZodString;
|
|
34
|
+
sha: z.ZodString;
|
|
35
|
+
repo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
36
|
+
full_name: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
node_id: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
/** One error of a GraphQL answer; `type` is GitHub's code, such as `FORBIDDEN`, and some errors have none. */
|
|
42
|
+
export declare const graphqlError: z.ZodObject<{
|
|
43
|
+
type: z.ZodOptional<z.ZodString>;
|
|
44
|
+
message: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
/** The answer of the `revertPullRequest` mutation: GraphQL answers an error with status 200 and `errors`. */
|
|
47
|
+
export declare const revertAnswer: z.ZodObject<{
|
|
48
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
|
+
revertPullRequest: z.ZodNullable<z.ZodObject<{
|
|
50
|
+
revertPullRequest: z.ZodNullable<z.ZodObject<{
|
|
51
|
+
url: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
55
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
type: z.ZodOptional<z.ZodString>;
|
|
57
|
+
message: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
21
60
|
/** A pull request with its body, which `update_pull_request` and `attach_screenshot` keep a part of. */
|
|
22
61
|
export declare const pullBody: z.ZodObject<{
|
|
23
62
|
html_url: z.ZodString;
|
|
@@ -38,6 +77,52 @@ export declare const pullBody: z.ZodObject<{
|
|
|
38
77
|
}, z.core.$strip>;
|
|
39
78
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
79
|
}, z.core.$strip>;
|
|
80
|
+
/** A pull request with its body and its base branch, which `update_pull_request` compares the change with. */
|
|
81
|
+
export declare const basedPullBody: z.ZodObject<{
|
|
82
|
+
html_url: z.ZodString;
|
|
83
|
+
number: z.ZodNumber;
|
|
84
|
+
state: z.ZodEnum<{
|
|
85
|
+
closed: "closed";
|
|
86
|
+
open: "open";
|
|
87
|
+
}>;
|
|
88
|
+
merged_at: z.ZodNullable<z.ZodString>;
|
|
89
|
+
merge_commit_sha: z.ZodNullable<z.ZodString>;
|
|
90
|
+
updated_at: z.ZodString;
|
|
91
|
+
head: z.ZodObject<{
|
|
92
|
+
ref: z.ZodString;
|
|
93
|
+
sha: z.ZodString;
|
|
94
|
+
repo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
95
|
+
full_name: z.ZodString;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
base: z.ZodObject<{
|
|
100
|
+
ref: z.ZodString;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
/** A pull request as `GET /repos/{owner}/{repo}/pulls?state=closed` lists it, with when it closed and its base branch. */
|
|
104
|
+
export declare const closedPull: z.ZodObject<{
|
|
105
|
+
html_url: z.ZodString;
|
|
106
|
+
number: z.ZodNumber;
|
|
107
|
+
state: z.ZodEnum<{
|
|
108
|
+
closed: "closed";
|
|
109
|
+
open: "open";
|
|
110
|
+
}>;
|
|
111
|
+
merged_at: z.ZodNullable<z.ZodString>;
|
|
112
|
+
merge_commit_sha: z.ZodNullable<z.ZodString>;
|
|
113
|
+
updated_at: z.ZodString;
|
|
114
|
+
head: z.ZodObject<{
|
|
115
|
+
ref: z.ZodString;
|
|
116
|
+
sha: z.ZodString;
|
|
117
|
+
repo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
118
|
+
full_name: z.ZodString;
|
|
119
|
+
}, z.core.$strip>>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
closed_at: z.ZodNullable<z.ZodString>;
|
|
122
|
+
base: z.ZodObject<{
|
|
123
|
+
ref: z.ZodString;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
}, z.core.$strip>;
|
|
41
126
|
/** A blob, a tree or a commit as the Git database API answers its creation, or a commit of a list. */
|
|
42
127
|
export declare const gitObject: z.ZodObject<{
|
|
43
128
|
sha: z.ZodString;
|
|
@@ -75,6 +160,29 @@ export declare const onePull: z.ZodObject<{
|
|
|
75
160
|
}, z.core.$strip>;
|
|
76
161
|
changed_files: z.ZodNumber;
|
|
77
162
|
}, z.core.$strip>;
|
|
163
|
+
/** One pull request as `GET /repos/{owner}/{repo}/pulls/{n}` answers it, with its base branch and whether it merges into it: `mergeable` is `false` on a conflict, and `null` while GitHub computes it. */
|
|
164
|
+
export declare const mergeablePull: z.ZodObject<{
|
|
165
|
+
html_url: z.ZodString;
|
|
166
|
+
number: z.ZodNumber;
|
|
167
|
+
state: z.ZodEnum<{
|
|
168
|
+
closed: "closed";
|
|
169
|
+
open: "open";
|
|
170
|
+
}>;
|
|
171
|
+
merged_at: z.ZodNullable<z.ZodString>;
|
|
172
|
+
merge_commit_sha: z.ZodNullable<z.ZodString>;
|
|
173
|
+
updated_at: z.ZodString;
|
|
174
|
+
head: z.ZodObject<{
|
|
175
|
+
ref: z.ZodString;
|
|
176
|
+
sha: z.ZodString;
|
|
177
|
+
repo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
178
|
+
full_name: z.ZodString;
|
|
179
|
+
}, z.core.$strip>>>;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
mergeable: z.ZodNullable<z.ZodBoolean>;
|
|
182
|
+
base: z.ZodObject<{
|
|
183
|
+
ref: z.ZodString;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
}, z.core.$strip>;
|
|
78
186
|
/** A pull request with the words a person reads, for a role that checks whether it fixes a card. */
|
|
79
187
|
export declare const linkedPull: z.ZodObject<{
|
|
80
188
|
html_url: z.ZodString;
|
|
@@ -312,9 +420,13 @@ export declare const classicProtection: z.ZodObject<{
|
|
|
312
420
|
contexts: z.ZodArray<z.ZodString>;
|
|
313
421
|
}, z.core.$strip>>>;
|
|
314
422
|
}, z.core.$strip>;
|
|
315
|
-
/** An issue as `GET /repos/{owner}/{repo}/issues` lists it and `GET .../issues/{n}` answers it, with the fields a card reads; a pull request has `pull_request`. */
|
|
423
|
+
/** An issue as `GET /repos/{owner}/{repo}/issues` lists it and `GET .../issues/{n}` answers it, with the fields a card reads; a pull request has `pull_request`. `author_association` says how its writer relates to the repository, such as `MEMBER` or `NONE`. */
|
|
316
424
|
export declare const issue: z.ZodObject<{
|
|
317
425
|
number: z.ZodNumber;
|
|
426
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
427
|
+
login: z.ZodString;
|
|
428
|
+
}, z.core.$strip>>>;
|
|
429
|
+
author_association: z.ZodOptional<z.ZodString>;
|
|
318
430
|
title: z.ZodString;
|
|
319
431
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
432
|
state: z.ZodEnum<{
|
|
@@ -337,8 +449,10 @@ export declare const cardComment: z.ZodObject<{
|
|
|
337
449
|
user: z.ZodNullable<z.ZodObject<{
|
|
338
450
|
login: z.ZodString;
|
|
339
451
|
}, z.core.$strip>>;
|
|
452
|
+
author_association: z.ZodOptional<z.ZodString>;
|
|
340
453
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
454
|
created_at: z.ZodString;
|
|
455
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
342
456
|
}, z.core.$strip>;
|
|
343
457
|
/** A label as `GET /repos/{owner}/{repo}/labels/{name}` and its `POST` answer it. */
|
|
344
458
|
export declare const namedLabel: z.ZodObject<{
|
|
@@ -354,6 +468,10 @@ export declare const user: z.ZodObject<{
|
|
|
354
468
|
export declare const foundIssues: z.ZodObject<{
|
|
355
469
|
items: z.ZodArray<z.ZodObject<{
|
|
356
470
|
number: z.ZodNumber;
|
|
471
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
472
|
+
login: z.ZodString;
|
|
473
|
+
}, z.core.$strip>>>;
|
|
474
|
+
author_association: z.ZodOptional<z.ZodString>;
|
|
357
475
|
title: z.ZodString;
|
|
358
476
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
359
477
|
state: z.ZodEnum<{
|
|
@@ -371,6 +489,7 @@ export declare const foundIssues: z.ZodObject<{
|
|
|
371
489
|
pull_request: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
372
490
|
repository_url: z.ZodString;
|
|
373
491
|
created_at: z.ZodString;
|
|
492
|
+
closed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
374
493
|
}, z.core.$strip>>;
|
|
375
494
|
}, z.core.$strip>;
|
|
376
495
|
/** A user as an issue or an event names them; `type` is `Bot` for an App. */
|
|
@@ -381,6 +500,7 @@ export declare const actor: z.ZodObject<{
|
|
|
381
500
|
/** An issue with its writer and the time it was made, which `hand_back` and `find_cards` read. */
|
|
382
501
|
export declare const issueBy: z.ZodObject<{
|
|
383
502
|
number: z.ZodNumber;
|
|
503
|
+
author_association: z.ZodOptional<z.ZodString>;
|
|
384
504
|
title: z.ZodString;
|
|
385
505
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
506
|
state: z.ZodEnum<{
|
|
@@ -13,8 +13,30 @@ export const pull = z.object({
|
|
|
13
13
|
repo: z.object({ full_name: z.string() }).nullish(),
|
|
14
14
|
}),
|
|
15
15
|
});
|
|
16
|
+
/** A pull request with its GraphQL node id, which `revertPullRequest` takes. */
|
|
17
|
+
export const nodePull = pull.extend({ node_id: z.string().min(1) });
|
|
18
|
+
/** One error of a GraphQL answer; `type` is GitHub's code, such as `FORBIDDEN`, and some errors have none. */
|
|
19
|
+
export const graphqlError = z.object({ type: z.string().optional(), message: z.string() });
|
|
20
|
+
/** The answer of the `revertPullRequest` mutation: GraphQL answers an error with status 200 and `errors`. */
|
|
21
|
+
export const revertAnswer = z.object({
|
|
22
|
+
data: z
|
|
23
|
+
.object({
|
|
24
|
+
revertPullRequest: z
|
|
25
|
+
.object({ revertPullRequest: z.object({ url: z.string() }).nullable() })
|
|
26
|
+
.nullable(),
|
|
27
|
+
})
|
|
28
|
+
.nullish(),
|
|
29
|
+
errors: z.array(graphqlError).optional(),
|
|
30
|
+
});
|
|
16
31
|
/** A pull request with its body, which `update_pull_request` and `attach_screenshot` keep a part of. */
|
|
17
32
|
export const pullBody = pull.extend({ body: z.string().nullish() });
|
|
33
|
+
/** A pull request with its body and its base branch, which `update_pull_request` compares the change with. */
|
|
34
|
+
export const basedPullBody = pullBody.extend({ base: z.object({ ref: z.string() }) });
|
|
35
|
+
/** A pull request as `GET /repos/{owner}/{repo}/pulls?state=closed` lists it, with when it closed and its base branch. */
|
|
36
|
+
export const closedPull = pull.extend({
|
|
37
|
+
closed_at: z.string().nullable(),
|
|
38
|
+
base: z.object({ ref: z.string() }),
|
|
39
|
+
});
|
|
18
40
|
/** A blob, a tree or a commit as the Git database API answers its creation, or a commit of a list. */
|
|
19
41
|
export const gitObject = z.object({ sha: z.string() });
|
|
20
42
|
/** A ref as `GET` and `POST /repos/{owner}/{repo}/git/refs` answer it. */
|
|
@@ -23,6 +45,11 @@ export const gitRef = z.object({ ref: z.string(), object: gitObject });
|
|
|
23
45
|
export const storedFile = z.object({ commit: gitObject });
|
|
24
46
|
/** One pull request as `GET /repos/{owner}/{repo}/pulls/{n}` answers it, which a list does not: with the number of files it changes. */
|
|
25
47
|
export const onePull = pull.extend({ changed_files: z.number().int() });
|
|
48
|
+
/** One pull request as `GET /repos/{owner}/{repo}/pulls/{n}` answers it, with its base branch and whether it merges into it: `mergeable` is `false` on a conflict, and `null` while GitHub computes it. */
|
|
49
|
+
export const mergeablePull = pull.extend({
|
|
50
|
+
mergeable: z.boolean().nullable(),
|
|
51
|
+
base: z.object({ ref: z.string() }),
|
|
52
|
+
});
|
|
26
53
|
/** A pull request with the words a person reads, for a role that checks whether it fixes a card. */
|
|
27
54
|
export const linkedPull = pull.extend({ title: z.string(), body: z.string().nullable() });
|
|
28
55
|
/** One file of `GET /repos/{owner}/{repo}/pulls/{n}/files`; a binary or very large file has no `patch`. */
|
|
@@ -172,9 +199,11 @@ export const classicProtection = z.object({
|
|
|
172
199
|
.optional(),
|
|
173
200
|
required_status_checks: z.object({ contexts: z.array(z.string()) }).nullish(),
|
|
174
201
|
});
|
|
175
|
-
/** An issue as `GET /repos/{owner}/{repo}/issues` lists it and `GET .../issues/{n}` answers it, with the fields a card reads; a pull request has `pull_request`. */
|
|
202
|
+
/** An issue as `GET /repos/{owner}/{repo}/issues` lists it and `GET .../issues/{n}` answers it, with the fields a card reads; a pull request has `pull_request`. `author_association` says how its writer relates to the repository, such as `MEMBER` or `NONE`. */
|
|
176
203
|
export const issue = z.object({
|
|
177
204
|
number: z.number().int(),
|
|
205
|
+
user: login.optional(),
|
|
206
|
+
author_association: z.string().optional(),
|
|
178
207
|
title: z.string(),
|
|
179
208
|
body: z.string().nullish(),
|
|
180
209
|
state: z.enum(["open", "closed"]),
|
|
@@ -188,8 +217,10 @@ export const issue = z.object({
|
|
|
188
217
|
export const cardComment = z.object({
|
|
189
218
|
id: z.number().int(),
|
|
190
219
|
user: login,
|
|
220
|
+
author_association: z.string().optional(),
|
|
191
221
|
body: z.string().nullish(),
|
|
192
222
|
created_at: z.string(),
|
|
223
|
+
updated_at: z.string().optional(),
|
|
193
224
|
});
|
|
194
225
|
/** A label as `GET /repos/{owner}/{repo}/labels/{name}` and its `POST` answer it. */
|
|
195
226
|
export const namedLabel = z.object({ name: z.string() });
|
|
@@ -201,7 +232,11 @@ export const user = z.object({
|
|
|
201
232
|
});
|
|
202
233
|
/** The issues of `GET /search/issues` that match, each with the repository it is in. */
|
|
203
234
|
export const foundIssues = z.object({
|
|
204
|
-
items: z.array(issue.extend({
|
|
235
|
+
items: z.array(issue.extend({
|
|
236
|
+
repository_url: z.string(),
|
|
237
|
+
created_at: z.string(),
|
|
238
|
+
closed_at: z.string().nullish(),
|
|
239
|
+
})),
|
|
205
240
|
});
|
|
206
241
|
/** A user as an issue or an event names them; `type` is `Bot` for an App. */
|
|
207
242
|
export const actor = z.object({ login: z.string(), type: z.string().optional() });
|
|
@@ -28,10 +28,16 @@ export declare const openPullRequest: {
|
|
|
28
28
|
input: z.ZodObject<{
|
|
29
29
|
repo: z.ZodString;
|
|
30
30
|
branch: z.ZodString;
|
|
31
|
+
base: z.ZodOptional<z.ZodString>;
|
|
31
32
|
title: z.ZodString;
|
|
32
33
|
body: z.ZodString;
|
|
33
34
|
review: z.ZodString;
|
|
34
35
|
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
title: z.ZodString;
|
|
39
|
+
url: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
35
41
|
large_diff_lines: z.ZodOptional<z.ZodNumber>;
|
|
36
42
|
path_notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
43
|
prefix: z.ZodString;
|
|
@@ -41,9 +47,28 @@ export declare const openPullRequest: {
|
|
|
41
47
|
results: z.ZodArray<z.ZodObject<{
|
|
42
48
|
check: z.ZodString;
|
|
43
49
|
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
50
|
+
pre_existing: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
runs: z.ZodOptional<z.ZodNumber>;
|
|
44
52
|
}, z.core.$strip>>;
|
|
45
53
|
}, z.core.$strip>>;
|
|
46
54
|
not_verified: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
55
|
+
proof: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
outcome: z.ZodEnum<{
|
|
57
|
+
failed: "failed";
|
|
58
|
+
not_run: "not_run";
|
|
59
|
+
passed: "passed";
|
|
60
|
+
}>;
|
|
61
|
+
command: z.ZodString;
|
|
62
|
+
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
63
|
+
output_tail: z.ZodOptional<z.ZodString>;
|
|
64
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
65
|
+
on_base: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
failed: "failed";
|
|
67
|
+
passed: "passed";
|
|
68
|
+
unknown: "unknown";
|
|
69
|
+
}>>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
proof_passes: z.ZodOptional<z.ZodString>;
|
|
47
72
|
related: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodArray<z.ZodURL>]>>;
|
|
48
73
|
}, z.core.$strip>;
|
|
49
74
|
output: z.ZodObject<{
|
|
@@ -78,7 +103,7 @@ export declare const notePullRequest: {
|
|
|
78
103
|
url: z.ZodString;
|
|
79
104
|
}, z.core.$strip>;
|
|
80
105
|
};
|
|
81
|
-
/** The input and output of `attach_screenshot`: `shot` is the output of a stage that took a picture, a PNG of the sandbox with what it shows, or why there is none. */
|
|
106
|
+
/** The input and output of `attach_screenshot`: `shot` is the output of a stage that took a picture, a PNG of the sandbox with what it shows, the `url` EDGAR serves it at when it is in the project's storage and the `video` of a recorded flow, or why there is none. */
|
|
82
107
|
export declare const attachScreenshot: {
|
|
83
108
|
input: z.ZodObject<{
|
|
84
109
|
url: z.ZodString;
|
|
@@ -86,6 +111,11 @@ export declare const attachScreenshot: {
|
|
|
86
111
|
path: z.ZodString;
|
|
87
112
|
bytes: z.ZodInt;
|
|
88
113
|
caption: z.ZodString;
|
|
114
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
115
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
path: z.ZodString;
|
|
117
|
+
bytes: z.ZodInt;
|
|
118
|
+
}, z.core.$strip>>;
|
|
89
119
|
}, z.core.$strip>, z.ZodObject<{
|
|
90
120
|
missing: z.ZodString;
|
|
91
121
|
}, z.core.$strip>]>;
|
|
@@ -104,6 +134,11 @@ export declare const updatePullRequest: {
|
|
|
104
134
|
url: z.ZodString;
|
|
105
135
|
title: z.ZodString;
|
|
106
136
|
body: z.ZodString;
|
|
137
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
id: z.ZodString;
|
|
139
|
+
title: z.ZodString;
|
|
140
|
+
url: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$loose>>;
|
|
107
142
|
large_diff_lines: z.ZodOptional<z.ZodNumber>;
|
|
108
143
|
path_notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
144
|
prefix: z.ZodString;
|
|
@@ -113,6 +148,8 @@ export declare const updatePullRequest: {
|
|
|
113
148
|
results: z.ZodArray<z.ZodObject<{
|
|
114
149
|
check: z.ZodString;
|
|
115
150
|
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
151
|
+
pre_existing: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
runs: z.ZodOptional<z.ZodNumber>;
|
|
116
153
|
}, z.core.$strip>>;
|
|
117
154
|
}, z.core.$strip>>;
|
|
118
155
|
not_verified: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -183,6 +220,22 @@ export declare const listPullRequests: {
|
|
|
183
220
|
}>;
|
|
184
221
|
}, z.core.$strip>>;
|
|
185
222
|
}, z.core.$strip>>;
|
|
223
|
+
complete: z.ZodBoolean;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
};
|
|
226
|
+
/** The input and output of `delete_closed_branches`: each edgar/ branch of a closed pull request that it deleted. */
|
|
227
|
+
export declare const deleteClosedBranches: {
|
|
228
|
+
input: z.ZodObject<{
|
|
229
|
+
services: z.ZodArray<z.ZodObject<{
|
|
230
|
+
repo: z.ZodString;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
closed_within_hours: z.ZodNumber;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
output: z.ZodObject<{
|
|
235
|
+
deleted: z.ZodArray<z.ZodObject<{
|
|
236
|
+
pull_request: z.ZodString;
|
|
237
|
+
branch: z.ZodString;
|
|
238
|
+
}, z.core.$strip>>;
|
|
186
239
|
}, z.core.$strip>;
|
|
187
240
|
};
|
|
188
241
|
/** The input and output of `wait_for_merge`. */
|
|
@@ -219,6 +272,8 @@ export declare const pullRequestState: {
|
|
|
219
272
|
commit: z.ZodString;
|
|
220
273
|
branch: z.ZodString;
|
|
221
274
|
head_repo: z.ZodNullable<z.ZodString>;
|
|
275
|
+
mergeable: z.ZodNullable<z.ZodBoolean>;
|
|
276
|
+
base_commit: z.ZodOptional<z.ZodString>;
|
|
222
277
|
}, z.core.$strip>;
|
|
223
278
|
};
|
|
224
279
|
/** The input and output of `merge_pull_request`. */
|
|
@@ -511,6 +566,10 @@ export declare const createCardTool: {
|
|
|
511
566
|
channel: z.ZodString;
|
|
512
567
|
thread: z.ZodString;
|
|
513
568
|
}, z.core.$strict>>;
|
|
569
|
+
trust: z.ZodExactOptional<z.ZodEnum<{
|
|
570
|
+
outside: "outside";
|
|
571
|
+
team: "team";
|
|
572
|
+
}>>;
|
|
514
573
|
}, z.core.$strict>;
|
|
515
574
|
}, z.core.$strict>;
|
|
516
575
|
parent: z.ZodExactOptional<z.ZodString>;
|
|
@@ -520,11 +579,31 @@ export declare const createCardTool: {
|
|
|
520
579
|
url: z.ZodString;
|
|
521
580
|
}, z.core.$strip>;
|
|
522
581
|
};
|
|
523
|
-
/** The input and output of `
|
|
582
|
+
/** The input and output of `park`. */
|
|
583
|
+
export declare const parkTool: {
|
|
584
|
+
input: z.ZodObject<{
|
|
585
|
+
card: z.ZodString;
|
|
586
|
+
waits_for: z.ZodString;
|
|
587
|
+
}, z.core.$strip>;
|
|
588
|
+
output: z.ZodObject<{
|
|
589
|
+
id: z.ZodString;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
};
|
|
592
|
+
/** Where `release_follow_ups` moves the cards that wait for a card. */
|
|
593
|
+
export declare const followUpColumn: z.ZodEnum<{
|
|
594
|
+
ready: "ready";
|
|
595
|
+
waiting_on_person: "waiting_on_person";
|
|
596
|
+
}>;
|
|
597
|
+
export type FollowUpColumn = z.infer<typeof followUpColumn>;
|
|
598
|
+
/** The input and output of `release_follow_ups`. A close with no merge holds the waiting cards for a person, as a merge releases them. */
|
|
524
599
|
export declare const releaseFollowUpsTool: {
|
|
525
600
|
input: z.ZodObject<{
|
|
526
601
|
card: z.ZodString;
|
|
527
602
|
pull_request: z.ZodString;
|
|
603
|
+
column: z.ZodExactOptional<z.ZodEnum<{
|
|
604
|
+
ready: "ready";
|
|
605
|
+
waiting_on_person: "waiting_on_person";
|
|
606
|
+
}>>;
|
|
528
607
|
}, z.core.$strip>;
|
|
529
608
|
output: z.ZodObject<{
|
|
530
609
|
released: z.ZodArray<z.ZodString>;
|
|
@@ -563,6 +642,21 @@ export declare const batchCardsTool: {
|
|
|
563
642
|
skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
564
643
|
}, z.core.$strip>;
|
|
565
644
|
};
|
|
645
|
+
/** The input and output of `set_priority`. */
|
|
646
|
+
export declare const setPriorityTool: {
|
|
647
|
+
input: z.ZodObject<{
|
|
648
|
+
card: z.ZodString;
|
|
649
|
+
priority: z.ZodEnum<{
|
|
650
|
+
high: "high";
|
|
651
|
+
low: "low";
|
|
652
|
+
medium: "medium";
|
|
653
|
+
urgent: "urgent";
|
|
654
|
+
}>;
|
|
655
|
+
}, z.core.$strip>;
|
|
656
|
+
output: z.ZodObject<{
|
|
657
|
+
id: z.ZodString;
|
|
658
|
+
}, z.core.$strip>;
|
|
659
|
+
};
|
|
566
660
|
/** The input and output of `count_sighting`. */
|
|
567
661
|
export declare const countSightingTool: {
|
|
568
662
|
input: z.ZodObject<{
|
|
@@ -618,3 +712,66 @@ export declare const handBackTool: {
|
|
|
618
712
|
previous: z.ZodString;
|
|
619
713
|
}, z.core.$strip>;
|
|
620
714
|
};
|
|
715
|
+
/** The input and output of `retitle`. */
|
|
716
|
+
export declare const retitleTool: {
|
|
717
|
+
input: z.ZodObject<{
|
|
718
|
+
card: z.ZodString;
|
|
719
|
+
text: z.ZodString;
|
|
720
|
+
}, z.core.$strip>;
|
|
721
|
+
output: z.ZodObject<{
|
|
722
|
+
id: z.ZodString;
|
|
723
|
+
title: z.ZodString;
|
|
724
|
+
}, z.core.$strip>;
|
|
725
|
+
};
|
|
726
|
+
/** The input and output of `merged_pull_request`: the newest merged pull request of a card's edgar/ branch. */
|
|
727
|
+
export declare const mergedPullRequest: {
|
|
728
|
+
input: z.ZodObject<{
|
|
729
|
+
repo: z.ZodString;
|
|
730
|
+
card: z.ZodString;
|
|
731
|
+
}, z.core.$strip>;
|
|
732
|
+
output: z.ZodObject<{
|
|
733
|
+
url: z.ZodString;
|
|
734
|
+
merged_at: z.ZodString;
|
|
735
|
+
commit: z.ZodString;
|
|
736
|
+
}, z.core.$strip>;
|
|
737
|
+
};
|
|
738
|
+
/** The input and output of `revert_pull_request`: the pull request that reverts a merged one. */
|
|
739
|
+
export declare const revertPullRequest: {
|
|
740
|
+
input: z.ZodObject<{
|
|
741
|
+
url: z.ZodString;
|
|
742
|
+
}, z.core.$strip>;
|
|
743
|
+
output: z.ZodObject<{
|
|
744
|
+
url: z.ZodString;
|
|
745
|
+
state: z.ZodEnum<{
|
|
746
|
+
closed: "closed";
|
|
747
|
+
merged: "merged";
|
|
748
|
+
open: "open";
|
|
749
|
+
}>;
|
|
750
|
+
}, z.core.$strip>;
|
|
751
|
+
};
|
|
752
|
+
/** The input and output of `find_revert_pull_request`, the lookup of `revert_pull_request`. */
|
|
753
|
+
export declare const findRevertPullRequest: {
|
|
754
|
+
input: z.ZodObject<{
|
|
755
|
+
operation_id: z.ZodString;
|
|
756
|
+
input: z.ZodObject<{
|
|
757
|
+
url: z.ZodString;
|
|
758
|
+
}, z.core.$strip>;
|
|
759
|
+
}, z.core.$strip>;
|
|
760
|
+
output: z.ZodObject<{
|
|
761
|
+
url: z.ZodString;
|
|
762
|
+
state: z.ZodEnum<{
|
|
763
|
+
closed: "closed";
|
|
764
|
+
merged: "merged";
|
|
765
|
+
open: "open";
|
|
766
|
+
}>;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
};
|
|
769
|
+
/** The input and output of `mark_seen`. */
|
|
770
|
+
export declare const markSeenTool: {
|
|
771
|
+
input: z.ZodObject<{
|
|
772
|
+
card: z.ZodString;
|
|
773
|
+
}, z.core.$strip>;
|
|
774
|
+
output: z.ZodObject<{
|
|
775
|
+
id: z.ZodString;
|
|
776
|
+
}, z.core.$strip>;
|
|
777
|
+
};
|