@otto-code/protocol 0.8.18 → 0.8.19
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/generated/validation/ws-outbound.aot.js +27698 -25697
- package/dist/git-hosting.d.ts +56 -0
- package/dist/git-hosting.js +50 -0
- package/dist/kanban.d.ts +4 -0
- package/dist/kanban.js +4 -0
- package/dist/messages.d.ts +1310 -371
- package/dist/messages.js +47 -15
- package/dist/project-knowledge.d.ts +172 -0
- package/dist/project-knowledge.js +77 -0
- package/dist/schedule/rpc-schemas.d.ts +132 -0
- package/dist/schedule/types.d.ts +66 -0
- package/dist/schedule/types.js +5 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +273 -40
- package/package.json +1 -1
- package/dist/project-links.d.ts +0 -102
- package/dist/project-links.js +0 -62
package/dist/git-hosting.d.ts
CHANGED
|
@@ -11,12 +11,66 @@ export declare const GitHostingCapabilitiesSchema: z.ZodObject<{
|
|
|
11
11
|
checkDetails: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
12
|
draftPrs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
13
|
reviewDecisions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
+
reviewThreads: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15
|
+
commentReactions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
16
|
issues: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15
17
|
listRepositories: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
16
18
|
createRepository: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
17
19
|
}, z.core.$strip>;
|
|
18
20
|
export type GitHostingProviderId = z.infer<typeof GitHostingProviderIdSchema>;
|
|
19
21
|
export type GitHostingCapabilities = z.infer<typeof GitHostingCapabilitiesSchema>;
|
|
22
|
+
export declare const PullRequestCommentReactionContentSchema: z.ZodEnum<{
|
|
23
|
+
THUMBS_UP: "THUMBS_UP";
|
|
24
|
+
THUMBS_DOWN: "THUMBS_DOWN";
|
|
25
|
+
LAUGH: "LAUGH";
|
|
26
|
+
HOORAY: "HOORAY";
|
|
27
|
+
CONFUSED: "CONFUSED";
|
|
28
|
+
HEART: "HEART";
|
|
29
|
+
ROCKET: "ROCKET";
|
|
30
|
+
EYES: "EYES";
|
|
31
|
+
}>;
|
|
32
|
+
export declare const HostingPullRequestThreadSetResolvedRequestSchema: z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"hosting.pull_request_thread.set_resolved.request">;
|
|
34
|
+
cwd: z.ZodString;
|
|
35
|
+
prNumber: z.ZodNumber;
|
|
36
|
+
threadId: z.ZodString;
|
|
37
|
+
resolved: z.ZodBoolean;
|
|
38
|
+
requestId: z.ZodString;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export declare const HostingPullRequestThreadSetResolvedResponseSchema: z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<"hosting.pull_request_thread.set_resolved.response">;
|
|
42
|
+
payload: z.ZodObject<{
|
|
43
|
+
success: z.ZodBoolean;
|
|
44
|
+
error: z.ZodNullable<z.ZodString>;
|
|
45
|
+
requestId: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const HostingPullRequestCommentSetReactionRequestSchema: z.ZodObject<{
|
|
49
|
+
type: z.ZodLiteral<"hosting.pull_request_comment.set_reaction.request">;
|
|
50
|
+
cwd: z.ZodString;
|
|
51
|
+
prNumber: z.ZodNumber;
|
|
52
|
+
commentId: z.ZodString;
|
|
53
|
+
content: z.ZodEnum<{
|
|
54
|
+
THUMBS_UP: "THUMBS_UP";
|
|
55
|
+
THUMBS_DOWN: "THUMBS_DOWN";
|
|
56
|
+
LAUGH: "LAUGH";
|
|
57
|
+
HOORAY: "HOORAY";
|
|
58
|
+
CONFUSED: "CONFUSED";
|
|
59
|
+
HEART: "HEART";
|
|
60
|
+
ROCKET: "ROCKET";
|
|
61
|
+
EYES: "EYES";
|
|
62
|
+
}>;
|
|
63
|
+
reacted: z.ZodBoolean;
|
|
64
|
+
requestId: z.ZodString;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export declare const HostingPullRequestCommentSetReactionResponseSchema: z.ZodObject<{
|
|
67
|
+
type: z.ZodLiteral<"hosting.pull_request_comment.set_reaction.response">;
|
|
68
|
+
payload: z.ZodObject<{
|
|
69
|
+
success: z.ZodBoolean;
|
|
70
|
+
error: z.ZodNullable<z.ZodString>;
|
|
71
|
+
requestId: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
}, z.core.$strip>;
|
|
20
74
|
export declare const GIT_HOSTING_PROVIDER_IDS: ("github" | "bitbucket-cloud")[];
|
|
21
75
|
export declare function isGitHostingProviderId(value: unknown): value is GitHostingProviderId;
|
|
22
76
|
export declare function normalizeGitHostingProviderId(value: string | null | undefined): GitHostingProviderId | null;
|
|
@@ -137,4 +191,6 @@ export type HostingPrAttachment = z.infer<typeof HostingPrAttachmentSchema>;
|
|
|
137
191
|
export type HostingIssueAttachment = z.infer<typeof HostingIssueAttachmentSchema>;
|
|
138
192
|
export type HostingListRepositoriesRequest = z.infer<typeof HostingListRepositoriesRequestSchema>;
|
|
139
193
|
export type HostingListOwnersRequest = z.infer<typeof HostingListOwnersRequestSchema>;
|
|
194
|
+
export type HostingPullRequestThreadSetResolvedRequest = z.infer<typeof HostingPullRequestThreadSetResolvedRequestSchema>;
|
|
195
|
+
export type HostingPullRequestCommentSetReactionRequest = z.infer<typeof HostingPullRequestCommentSetReactionRequestSchema>;
|
|
140
196
|
//# sourceMappingURL=git-hosting.d.ts.map
|
package/dist/git-hosting.js
CHANGED
|
@@ -21,6 +21,10 @@ export const GitHostingCapabilitiesSchema = z.object({
|
|
|
21
21
|
checkDetails: z.boolean().optional().default(false),
|
|
22
22
|
draftPrs: z.boolean().optional().default(false),
|
|
23
23
|
reviewDecisions: z.boolean().optional().default(false),
|
|
24
|
+
// Pull-request discussion capabilities. A provider advertises only what its
|
|
25
|
+
// own API supports; clients must not emulate a missing forge operation.
|
|
26
|
+
reviewThreads: z.boolean().optional().default(false),
|
|
27
|
+
commentReactions: z.boolean().optional().default(false),
|
|
24
28
|
issues: z.boolean().optional().default(false),
|
|
25
29
|
// COMPAT(projectScaffold): added in v0.6.9. Repository-level operations used
|
|
26
30
|
// by the New project page - enumerate the repos/owners you can reach, and
|
|
@@ -29,6 +33,52 @@ export const GitHostingCapabilitiesSchema = z.object({
|
|
|
29
33
|
listRepositories: z.boolean().optional().default(false),
|
|
30
34
|
createRepository: z.boolean().optional().default(false),
|
|
31
35
|
});
|
|
36
|
+
export const PullRequestCommentReactionContentSchema = z.enum([
|
|
37
|
+
"THUMBS_UP",
|
|
38
|
+
"THUMBS_DOWN",
|
|
39
|
+
"LAUGH",
|
|
40
|
+
"HOORAY",
|
|
41
|
+
"CONFUSED",
|
|
42
|
+
"HEART",
|
|
43
|
+
"ROCKET",
|
|
44
|
+
"EYES",
|
|
45
|
+
]);
|
|
46
|
+
// Provider-neutral mutations for a change-request discussion. `threadId` and
|
|
47
|
+
// `commentId` are opaque provider identifiers returned by the timeline; the
|
|
48
|
+
// selected adapter owns their interpretation.
|
|
49
|
+
export const HostingPullRequestThreadSetResolvedRequestSchema = z.object({
|
|
50
|
+
type: z.literal("hosting.pull_request_thread.set_resolved.request"),
|
|
51
|
+
cwd: z.string(),
|
|
52
|
+
prNumber: z.number().int().positive(),
|
|
53
|
+
threadId: z.string().min(1),
|
|
54
|
+
resolved: z.boolean(),
|
|
55
|
+
requestId: z.string(),
|
|
56
|
+
});
|
|
57
|
+
export const HostingPullRequestThreadSetResolvedResponseSchema = z.object({
|
|
58
|
+
type: z.literal("hosting.pull_request_thread.set_resolved.response"),
|
|
59
|
+
payload: z.object({
|
|
60
|
+
success: z.boolean(),
|
|
61
|
+
error: z.string().nullable(),
|
|
62
|
+
requestId: z.string(),
|
|
63
|
+
}),
|
|
64
|
+
});
|
|
65
|
+
export const HostingPullRequestCommentSetReactionRequestSchema = z.object({
|
|
66
|
+
type: z.literal("hosting.pull_request_comment.set_reaction.request"),
|
|
67
|
+
cwd: z.string(),
|
|
68
|
+
prNumber: z.number().int().positive(),
|
|
69
|
+
commentId: z.string().min(1),
|
|
70
|
+
content: PullRequestCommentReactionContentSchema,
|
|
71
|
+
reacted: z.boolean(),
|
|
72
|
+
requestId: z.string(),
|
|
73
|
+
});
|
|
74
|
+
export const HostingPullRequestCommentSetReactionResponseSchema = z.object({
|
|
75
|
+
type: z.literal("hosting.pull_request_comment.set_reaction.response"),
|
|
76
|
+
payload: z.object({
|
|
77
|
+
success: z.boolean(),
|
|
78
|
+
error: z.string().nullable(),
|
|
79
|
+
requestId: z.string(),
|
|
80
|
+
}),
|
|
81
|
+
});
|
|
32
82
|
export const GIT_HOSTING_PROVIDER_IDS = GitHostingProviderIdSchema.options;
|
|
33
83
|
export function isGitHostingProviderId(value) {
|
|
34
84
|
return GitHostingProviderIdSchema.safeParse(value).success;
|
package/dist/kanban.d.ts
CHANGED
|
@@ -293,6 +293,7 @@ export declare const ProjectKanbanTargetSchema: z.ZodObject<{
|
|
|
293
293
|
jira: "jira";
|
|
294
294
|
}>;
|
|
295
295
|
boardId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
+
boardOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
297
|
}, z.core.$loose>;
|
|
297
298
|
export type ProjectKanbanTarget = z.infer<typeof ProjectKanbanTargetSchema>;
|
|
298
299
|
export declare const KanbanProjectTargetSetRequestSchema: z.ZodObject<{
|
|
@@ -304,6 +305,7 @@ export declare const KanbanProjectTargetSetRequestSchema: z.ZodObject<{
|
|
|
304
305
|
jira: "jira";
|
|
305
306
|
}>;
|
|
306
307
|
boardId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
308
|
+
boardOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
307
309
|
}, z.core.$loose>>;
|
|
308
310
|
requestId: z.ZodString;
|
|
309
311
|
}, z.core.$strip>;
|
|
@@ -317,6 +319,7 @@ export declare const KanbanProjectTargetSetResponsePayloadSchema: z.ZodObject<{
|
|
|
317
319
|
jira: "jira";
|
|
318
320
|
}>;
|
|
319
321
|
boardId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
boardOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
323
|
}, z.core.$loose>>;
|
|
321
324
|
error: z.ZodNullable<z.ZodString>;
|
|
322
325
|
}, z.core.$strip>;
|
|
@@ -332,6 +335,7 @@ export declare const KanbanProjectTargetSetResponseSchema: z.ZodObject<{
|
|
|
332
335
|
jira: "jira";
|
|
333
336
|
}>;
|
|
334
337
|
boardId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
boardOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
339
|
}, z.core.$loose>>;
|
|
336
340
|
error: z.ZodNullable<z.ZodString>;
|
|
337
341
|
}, z.core.$strip>;
|
package/dist/kanban.js
CHANGED
|
@@ -248,6 +248,10 @@ export const ProjectKanbanTargetSchema = z
|
|
|
248
248
|
.object({
|
|
249
249
|
adapter: z.enum(["github", "jira"]),
|
|
250
250
|
boardId: z.string().nullable().optional(),
|
|
251
|
+
// A GitHub board number is unique only within a user or organization. The
|
|
252
|
+
// daemon derives this from a pasted GitHub Projects URL; it stays optional
|
|
253
|
+
// so existing project records (and older peers) keep parsing.
|
|
254
|
+
boardOwner: z.string().nullable().optional(),
|
|
251
255
|
})
|
|
252
256
|
.passthrough();
|
|
253
257
|
export const KanbanProjectTargetSetRequestSchema = z.object({
|