@swirls/shuttle 0.0.0-stage → 0.1.1

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.
Files changed (298) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/LICENSE +190 -0
  3. package/NOTICE +5 -0
  4. package/README.md +42 -2
  5. package/dist/api/auth.d.ts +18 -0
  6. package/dist/api/auth.js +15 -0
  7. package/dist/api/common.d.ts +8 -0
  8. package/dist/api/common.js +4 -0
  9. package/dist/api/connections.d.ts +292 -0
  10. package/dist/api/connections.js +114 -0
  11. package/dist/api/github.d.ts +20 -0
  12. package/dist/api/github.js +13 -0
  13. package/dist/api/harness.d.ts +97 -0
  14. package/dist/api/harness.js +47 -0
  15. package/dist/api/index.d.ts +2059 -0
  16. package/dist/api/index.js +37 -0
  17. package/dist/api/runners.d.ts +93 -0
  18. package/dist/api/runners.js +45 -0
  19. package/dist/api/sandbox.d.ts +550 -0
  20. package/dist/api/sandbox.js +210 -0
  21. package/dist/api/sessions.d.ts +318 -0
  22. package/dist/api/sessions.js +154 -0
  23. package/dist/api/tenant.d.ts +54 -0
  24. package/dist/api/tenant.js +19 -0
  25. package/dist/api/timings.d.ts +36 -0
  26. package/dist/api/timings.js +48 -0
  27. package/dist/api/workspace.d.ts +738 -0
  28. package/dist/api/workspace.js +246 -0
  29. package/dist/core/pulls.d.ts +1001 -0
  30. package/dist/core/pulls.js +170 -0
  31. package/dist/core/workspace.d.ts +985 -0
  32. package/dist/core/workspace.js +174 -0
  33. package/dist/react/components/command-palette.d.ts +22 -0
  34. package/dist/react/components/command-palette.js +66 -0
  35. package/dist/react/components/follow-list.d.ts +20 -0
  36. package/dist/react/components/follow-list.js +98 -0
  37. package/dist/react/components/json-tree.d.ts +11 -0
  38. package/dist/react/components/json-tree.js +120 -0
  39. package/dist/react/components/markdown.d.ts +5 -0
  40. package/dist/react/components/markdown.js +29 -0
  41. package/dist/react/components/shuttle-mark.d.ts +7 -0
  42. package/dist/react/components/shuttle-mark.js +9 -0
  43. package/dist/react/components/status-dot.d.ts +9 -0
  44. package/dist/react/components/status-dot.js +27 -0
  45. package/dist/react/components/status.d.ts +6 -0
  46. package/dist/react/components/status.js +66 -0
  47. package/dist/react/components/ui/badge.d.ts +7 -0
  48. package/dist/react/components/ui/badge.js +19 -0
  49. package/dist/react/components/ui/button.d.ts +10 -0
  50. package/dist/react/components/ui/button.js +40 -0
  51. package/dist/react/components/ui/dialog.d.ts +19 -0
  52. package/dist/react/components/ui/dialog.js +34 -0
  53. package/dist/react/components/ui/dropdown-menu.d.ts +14 -0
  54. package/dist/react/components/ui/dropdown-menu.js +33 -0
  55. package/dist/react/components/ui/input.d.ts +3 -0
  56. package/dist/react/components/ui/input.js +6 -0
  57. package/dist/react/components/ui/panel.d.ts +18 -0
  58. package/dist/react/components/ui/panel.js +22 -0
  59. package/dist/react/components/ui/popover.d.ts +7 -0
  60. package/dist/react/components/ui/popover.js +16 -0
  61. package/dist/react/components/ui/resizable.d.ts +7 -0
  62. package/dist/react/components/ui/resizable.js +14 -0
  63. package/dist/react/components/ui/scroll-area.d.ts +14 -0
  64. package/dist/react/components/ui/scroll-area.js +12 -0
  65. package/dist/react/components/ui/select.d.ts +10 -0
  66. package/dist/react/components/ui/select.js +20 -0
  67. package/dist/react/components/ui/sheet.d.ts +8 -0
  68. package/dist/react/components/ui/sheet.js +20 -0
  69. package/dist/react/components/ui/tabs.d.ts +7 -0
  70. package/dist/react/components/ui/tabs.js +16 -0
  71. package/dist/react/components/ui/textarea.d.ts +3 -0
  72. package/dist/react/components/ui/textarea.js +6 -0
  73. package/dist/react/components/ui/tooltip.d.ts +8 -0
  74. package/dist/react/components/ui/tooltip.js +17 -0
  75. package/dist/react/features/artifacts/artifact-links.d.ts +9 -0
  76. package/dist/react/features/artifacts/artifact-links.js +38 -0
  77. package/dist/react/features/artifacts/artifact-pane.d.ts +19 -0
  78. package/dist/react/features/artifacts/artifact-pane.js +75 -0
  79. package/dist/react/features/artifacts/artifact-types.d.ts +59 -0
  80. package/dist/react/features/artifacts/artifact-types.js +69 -0
  81. package/dist/react/features/artifacts/browser-viewer.d.ts +5 -0
  82. package/dist/react/features/artifacts/browser-viewer.js +60 -0
  83. package/dist/react/features/artifacts/diff-style.d.ts +10 -0
  84. package/dist/react/features/artifacts/diff-style.js +21 -0
  85. package/dist/react/features/artifacts/file-pane.d.ts +13 -0
  86. package/dist/react/features/artifacts/file-pane.js +305 -0
  87. package/dist/react/features/artifacts/file-quick-open.d.ts +15 -0
  88. package/dist/react/features/artifacts/file-quick-open.js +74 -0
  89. package/dist/react/features/artifacts/file-search.d.ts +12 -0
  90. package/dist/react/features/artifacts/file-search.js +90 -0
  91. package/dist/react/features/artifacts/media-viewer.d.ts +8 -0
  92. package/dist/react/features/artifacts/media-viewer.js +41 -0
  93. package/dist/react/features/artifacts/review-diff.d.ts +19 -0
  94. package/dist/react/features/artifacts/review-diff.js +59 -0
  95. package/dist/react/features/artifacts/review-viewer.d.ts +4 -0
  96. package/dist/react/features/artifacts/review-viewer.js +337 -0
  97. package/dist/react/features/artifacts/sandbox.d.ts +43 -0
  98. package/dist/react/features/artifacts/sandbox.js +109 -0
  99. package/dist/react/features/artifacts/tab-strip.d.ts +11 -0
  100. package/dist/react/features/artifacts/tab-strip.js +55 -0
  101. package/dist/react/features/artifacts/terminal-theme.d.ts +34 -0
  102. package/dist/react/features/artifacts/terminal-theme.js +62 -0
  103. package/dist/react/features/artifacts/terminal-viewer.d.ts +5 -0
  104. package/dist/react/features/artifacts/terminal-viewer.js +209 -0
  105. package/dist/react/features/artifacts/unified-diff.d.ts +16 -0
  106. package/dist/react/features/artifacts/unified-diff.js +55 -0
  107. package/dist/react/features/artifacts/workspace-viewer.d.ts +16 -0
  108. package/dist/react/features/artifacts/workspace-viewer.js +275 -0
  109. package/dist/react/features/connections/agent-sign-in.d.ts +71 -0
  110. package/dist/react/features/connections/agent-sign-in.js +251 -0
  111. package/dist/react/features/connections/connections-panel.d.ts +8 -0
  112. package/dist/react/features/connections/connections-panel.js +42 -0
  113. package/dist/react/features/connections/login.d.ts +24 -0
  114. package/dist/react/features/connections/login.js +35 -0
  115. package/dist/react/features/connections/places.d.ts +20 -0
  116. package/dist/react/features/connections/places.js +27 -0
  117. package/dist/react/features/connections/queries.d.ts +28 -0
  118. package/dist/react/features/connections/queries.js +8 -0
  119. package/dist/react/features/events/event-cache.d.ts +4 -0
  120. package/dist/react/features/events/event-cache.js +29 -0
  121. package/dist/react/features/events/event-catalog.d.ts +17 -0
  122. package/dist/react/features/events/event-catalog.js +261 -0
  123. package/dist/react/features/events/event-inspector.d.ts +7 -0
  124. package/dist/react/features/events/event-inspector.js +29 -0
  125. package/dist/react/features/events/event-row.d.ts +21 -0
  126. package/dist/react/features/events/event-row.js +34 -0
  127. package/dist/react/features/events/event-stream.d.ts +18 -0
  128. package/dist/react/features/events/event-stream.js +58 -0
  129. package/dist/react/features/events/global-events.d.ts +122 -0
  130. package/dist/react/features/events/global-events.js +329 -0
  131. package/dist/react/features/events/shuttle-events.d.ts +7 -0
  132. package/dist/react/features/events/shuttle-events.js +1 -0
  133. package/dist/react/features/playbook/playbook-page.d.ts +2 -0
  134. package/dist/react/features/playbook/playbook-page.js +36 -0
  135. package/dist/react/features/playbook/playbook-query.d.ts +111 -0
  136. package/dist/react/features/playbook/playbook-query.js +17 -0
  137. package/dist/react/features/pulls/linked-session.d.ts +12 -0
  138. package/dist/react/features/pulls/linked-session.js +22 -0
  139. package/dist/react/features/pulls/pull-detail-sheet.d.ts +10 -0
  140. package/dist/react/features/pulls/pull-detail-sheet.js +41 -0
  141. package/dist/react/features/pulls/pull-fixtures.d.ts +8 -0
  142. package/dist/react/features/pulls/pull-fixtures.js +258 -0
  143. package/dist/react/features/pulls/pull-glyphs.d.ts +24 -0
  144. package/dist/react/features/pulls/pull-glyphs.js +89 -0
  145. package/dist/react/features/pulls/pull-inbox-list.d.ts +13 -0
  146. package/dist/react/features/pulls/pull-inbox-list.js +230 -0
  147. package/dist/react/features/pulls/pull-inbox-pref.d.ts +2 -0
  148. package/dist/react/features/pulls/pull-inbox-pref.js +19 -0
  149. package/dist/react/features/pulls/pull-inbox.d.ts +30 -0
  150. package/dist/react/features/pulls/pull-inbox.js +110 -0
  151. package/dist/react/features/pulls/pull-threads.d.ts +39 -0
  152. package/dist/react/features/pulls/pull-threads.js +145 -0
  153. package/dist/react/features/pulls/pulls.d.ts +120 -0
  154. package/dist/react/features/pulls/pulls.js +414 -0
  155. package/dist/react/features/pulls/session-pull-groups.d.ts +14 -0
  156. package/dist/react/features/pulls/session-pull-groups.js +29 -0
  157. package/dist/react/features/pulls/stack-ladder.d.ts +9 -0
  158. package/dist/react/features/pulls/stack-ladder.js +32 -0
  159. package/dist/react/features/sessions/agent-tree.d.ts +16 -0
  160. package/dist/react/features/sessions/agent-tree.js +100 -0
  161. package/dist/react/features/sessions/agents.d.ts +34 -0
  162. package/dist/react/features/sessions/agents.js +146 -0
  163. package/dist/react/features/sessions/attention.d.ts +32 -0
  164. package/dist/react/features/sessions/attention.js +42 -0
  165. package/dist/react/features/sessions/composer-attachments.d.ts +33 -0
  166. package/dist/react/features/sessions/composer-attachments.js +126 -0
  167. package/dist/react/features/sessions/composer.d.ts +15 -0
  168. package/dist/react/features/sessions/composer.js +327 -0
  169. package/dist/react/features/sessions/context-usage-meter.d.ts +5 -0
  170. package/dist/react/features/sessions/context-usage-meter.js +122 -0
  171. package/dist/react/features/sessions/context-usage.d.ts +54 -0
  172. package/dist/react/features/sessions/context-usage.js +206 -0
  173. package/dist/react/features/sessions/conversation.d.ts +21 -0
  174. package/dist/react/features/sessions/conversation.js +549 -0
  175. package/dist/react/features/sessions/harness-switcher.d.ts +26 -0
  176. package/dist/react/features/sessions/harness-switcher.js +118 -0
  177. package/dist/react/features/sessions/intake-heuristic.d.ts +5 -0
  178. package/dist/react/features/sessions/intake-heuristic.js +28 -0
  179. package/dist/react/features/sessions/interjection-routes.d.ts +13 -0
  180. package/dist/react/features/sessions/interjection-routes.js +72 -0
  181. package/dist/react/features/sessions/llm-models.d.ts +128 -0
  182. package/dist/react/features/sessions/llm-models.js +174 -0
  183. package/dist/react/features/sessions/media-strip.d.ts +25 -0
  184. package/dist/react/features/sessions/media-strip.js +56 -0
  185. package/dist/react/features/sessions/media.d.ts +43 -0
  186. package/dist/react/features/sessions/media.js +115 -0
  187. package/dist/react/features/sessions/model-search.d.ts +6 -0
  188. package/dist/react/features/sessions/model-search.js +16 -0
  189. package/dist/react/features/sessions/model-switcher.d.ts +16 -0
  190. package/dist/react/features/sessions/model-switcher.js +262 -0
  191. package/dist/react/features/sessions/open-pull-request.d.ts +20 -0
  192. package/dist/react/features/sessions/open-pull-request.js +92 -0
  193. package/dist/react/features/sessions/pull-publish-card.d.ts +14 -0
  194. package/dist/react/features/sessions/pull-publish-card.js +88 -0
  195. package/dist/react/features/sessions/recent-sessions.d.ts +11 -0
  196. package/dist/react/features/sessions/recent-sessions.js +29 -0
  197. package/dist/react/features/sessions/seen-sessions.d.ts +16 -0
  198. package/dist/react/features/sessions/seen-sessions.js +108 -0
  199. package/dist/react/features/sessions/session-activity.d.ts +95 -0
  200. package/dist/react/features/sessions/session-activity.js +785 -0
  201. package/dist/react/features/sessions/session-context.d.ts +8 -0
  202. package/dist/react/features/sessions/session-context.js +98 -0
  203. package/dist/react/features/sessions/session-feed.d.ts +243 -0
  204. package/dist/react/features/sessions/session-feed.js +883 -0
  205. package/dist/react/features/sessions/session-header.d.ts +24 -0
  206. package/dist/react/features/sessions/session-header.js +97 -0
  207. package/dist/react/features/sessions/session-layout.d.ts +7 -0
  208. package/dist/react/features/sessions/session-layout.js +87 -0
  209. package/dist/react/features/sessions/session-panes.d.ts +49 -0
  210. package/dist/react/features/sessions/session-panes.js +142 -0
  211. package/dist/react/features/sessions/session-parts.d.ts +35 -0
  212. package/dist/react/features/sessions/session-parts.js +74 -0
  213. package/dist/react/features/sessions/session-place.d.ts +9 -0
  214. package/dist/react/features/sessions/session-place.js +109 -0
  215. package/dist/react/features/sessions/session-pr-pills.d.ts +7 -0
  216. package/dist/react/features/sessions/session-pr-pills.js +28 -0
  217. package/dist/react/features/sessions/session-queries.d.ts +172 -0
  218. package/dist/react/features/sessions/session-queries.js +90 -0
  219. package/dist/react/features/sessions/session-repos.d.ts +8 -0
  220. package/dist/react/features/sessions/session-repos.js +15 -0
  221. package/dist/react/features/sessions/session-share.d.ts +8 -0
  222. package/dist/react/features/sessions/session-share.js +112 -0
  223. package/dist/react/features/sessions/session-tabs.d.ts +38 -0
  224. package/dist/react/features/sessions/session-tabs.js +191 -0
  225. package/dist/react/features/sessions/session.d.ts +103 -0
  226. package/dist/react/features/sessions/session.js +216 -0
  227. package/dist/react/features/sessions/signals.d.ts +13 -0
  228. package/dist/react/features/sessions/signals.js +34 -0
  229. package/dist/react/features/sessions/tab-set.d.ts +20 -0
  230. package/dist/react/features/sessions/tab-set.js +58 -0
  231. package/dist/react/features/sessions/team.d.ts +16 -0
  232. package/dist/react/features/sessions/team.js +35 -0
  233. package/dist/react/features/sessions/timeline.d.ts +53 -0
  234. package/dist/react/features/sessions/timeline.js +153 -0
  235. package/dist/react/features/sessions/use-session-tabs.d.ts +18 -0
  236. package/dist/react/features/sessions/use-session-tabs.js +119 -0
  237. package/dist/react/features/sessions/vendor-models.d.ts +23 -0
  238. package/dist/react/features/sessions/vendor-models.js +61 -0
  239. package/dist/react/features/workspace/activity-dot.d.ts +15 -0
  240. package/dist/react/features/workspace/activity-dot.js +36 -0
  241. package/dist/react/features/workspace/app-sidebar.d.ts +16 -0
  242. package/dist/react/features/workspace/app-sidebar.js +227 -0
  243. package/dist/react/features/workspace/fixture-toggle.d.ts +2 -0
  244. package/dist/react/features/workspace/fixture-toggle.js +72 -0
  245. package/dist/react/features/workspace/folder-group.d.ts +18 -0
  246. package/dist/react/features/workspace/folder-group.js +83 -0
  247. package/dist/react/features/workspace/inline-name-input.d.ts +10 -0
  248. package/dist/react/features/workspace/inline-name-input.js +33 -0
  249. package/dist/react/features/workspace/link-repo-dialog.d.ts +9 -0
  250. package/dist/react/features/workspace/link-repo-dialog.js +76 -0
  251. package/dist/react/features/workspace/repo-chip.d.ts +13 -0
  252. package/dist/react/features/workspace/repo-chip.js +15 -0
  253. package/dist/react/features/workspace/session-row.d.ts +20 -0
  254. package/dist/react/features/workspace/session-row.js +23 -0
  255. package/dist/react/features/workspace/use-debounced.d.ts +2 -0
  256. package/dist/react/features/workspace/use-debounced.js +10 -0
  257. package/dist/react/features/workspace/workspace-context.d.ts +45 -0
  258. package/dist/react/features/workspace/workspace-context.js +245 -0
  259. package/dist/react/features/workspace/workspace-fixtures.d.ts +16 -0
  260. package/dist/react/features/workspace/workspace-fixtures.js +175 -0
  261. package/dist/react/features/workspace/workspace-tree.d.ts +30 -0
  262. package/dist/react/features/workspace/workspace-tree.js +69 -0
  263. package/dist/react/features/workspace/workspace.d.ts +107 -0
  264. package/dist/react/features/workspace/workspace.js +458 -0
  265. package/dist/react/index.d.ts +33 -0
  266. package/dist/react/index.js +35 -0
  267. package/dist/react/lib/cn.d.ts +6 -0
  268. package/dist/react/lib/cn.js +20 -0
  269. package/dist/react/lib/initials.d.ts +6 -0
  270. package/dist/react/lib/initials.js +32 -0
  271. package/dist/react/lib/json.d.ts +33 -0
  272. package/dist/react/lib/json.js +101 -0
  273. package/dist/react/lib/time.d.ts +8 -0
  274. package/dist/react/lib/time.js +57 -0
  275. package/dist/react/lib/use-media-query.d.ts +1 -0
  276. package/dist/react/lib/use-media-query.js +9 -0
  277. package/dist/react/lib/use-now.d.ts +2 -0
  278. package/dist/react/lib/use-now.js +10 -0
  279. package/dist/react/lib/use-width-bucket.d.ts +6 -0
  280. package/dist/react/lib/use-width-bucket.js +28 -0
  281. package/dist/react/parts/index.d.ts +43 -0
  282. package/dist/react/parts/index.js +43 -0
  283. package/dist/react/shuttle/device.d.ts +42 -0
  284. package/dist/react/shuttle/device.js +10 -0
  285. package/dist/react/shuttle/host.d.ts +1126 -0
  286. package/dist/react/shuttle/host.js +93 -0
  287. package/dist/react/shuttle/identity.d.ts +31 -0
  288. package/dist/react/shuttle/identity.js +20 -0
  289. package/dist/react/shuttle/index.d.ts +14 -0
  290. package/dist/react/shuttle/index.js +13 -0
  291. package/dist/react/shuttle/provider.d.ts +41 -0
  292. package/dist/react/shuttle/provider.js +59 -0
  293. package/dist/react/shuttle/router.d.ts +43 -0
  294. package/dist/react/shuttle/router.js +1 -0
  295. package/dist/react/theme.css +456 -0
  296. package/dist/react/ui.d.ts +19 -0
  297. package/dist/react/ui.js +19 -0
  298. package/package.json +100 -4
@@ -0,0 +1,738 @@
1
+ import { z } from 'zod';
2
+ /** A GitHub repository a folder works on, reached through one installation of the App. */
3
+ export declare const LinkedRepo: z.ZodObject<{
4
+ installationId: z.ZodNumber;
5
+ owner: z.ZodString;
6
+ name: z.ZodString;
7
+ fullName: z.ZodString;
8
+ defaultBranch: z.ZodString;
9
+ private: z.ZodBoolean;
10
+ }, z.core.$strip>;
11
+ export type LinkedRepo = z.infer<typeof LinkedRepo>;
12
+ /** Which pull requests in a folder's repositories Shuttle reviews without being asked. */
13
+ export declare const AutoReviewMode: z.ZodEnum<{
14
+ all: "all";
15
+ off: "off";
16
+ others: "others";
17
+ }>;
18
+ export type AutoReviewMode = z.infer<typeof AutoReviewMode>;
19
+ export declare const WorkspaceFolder: z.ZodObject<{
20
+ folderId: z.ZodString;
21
+ name: z.ZodString;
22
+ createdAt: z.ZodNumber;
23
+ archived: z.ZodBoolean;
24
+ repos: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
25
+ installationId: z.ZodNumber;
26
+ owner: z.ZodString;
27
+ name: z.ZodString;
28
+ fullName: z.ZodString;
29
+ defaultBranch: z.ZodString;
30
+ private: z.ZodBoolean;
31
+ }, z.core.$strip>>>>;
32
+ autoReview: z.ZodOptional<z.ZodEnum<{
33
+ all: "all";
34
+ off: "off";
35
+ others: "others";
36
+ }>>;
37
+ }, z.core.$strip>;
38
+ export type WorkspaceFolder = z.infer<typeof WorkspaceFolder>;
39
+ /** What a session is doing, as its listing in a workspace shows it. */
40
+ export declare const SessionActivity: z.ZodEnum<{
41
+ error: "error";
42
+ idle: "idle";
43
+ needs_input: "needs_input";
44
+ working: "working";
45
+ }>;
46
+ export type SessionActivity = z.infer<typeof SessionActivity>;
47
+ /** A session as a workspace lists it. */
48
+ export declare const WorkspaceSession: z.ZodObject<{
49
+ runId: z.ZodString;
50
+ folderId: z.ZodString;
51
+ title: z.ZodString;
52
+ goal: z.ZodString;
53
+ status: z.ZodString;
54
+ activity: z.ZodString;
55
+ activitySeq: z.ZodOptional<z.ZodNumber>;
56
+ activityAt: z.ZodOptional<z.ZodNumber>;
57
+ lastCompletedAt: z.ZodOptional<z.ZodNumber>;
58
+ createdAt: z.ZodNumber;
59
+ updatedAt: z.ZodNumber;
60
+ archived: z.ZodBoolean;
61
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ memberIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
63
+ }, z.core.$strip>;
64
+ export type WorkspaceSession = z.infer<typeof WorkspaceSession>;
65
+ export declare const GithubInstallation: z.ZodObject<{
66
+ installationId: z.ZodNumber;
67
+ account: z.ZodObject<{
68
+ login: z.ZodString;
69
+ type: z.ZodString;
70
+ avatarUrl: z.ZodString;
71
+ }, z.core.$strip>;
72
+ }, z.core.$strip>;
73
+ export type GithubInstallation = z.infer<typeof GithubInstallation>;
74
+ /** A workspace's folders, the sessions listed in it, and the GitHub installations it can use. */
75
+ export declare const WorkspaceTree: z.ZodObject<{
76
+ folderOrder: z.ZodReadonly<z.ZodArray<z.ZodString>>;
77
+ folders: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
78
+ folderId: z.ZodString;
79
+ name: z.ZodString;
80
+ createdAt: z.ZodNumber;
81
+ archived: z.ZodBoolean;
82
+ repos: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
83
+ installationId: z.ZodNumber;
84
+ owner: z.ZodString;
85
+ name: z.ZodString;
86
+ fullName: z.ZodString;
87
+ defaultBranch: z.ZodString;
88
+ private: z.ZodBoolean;
89
+ }, z.core.$strip>>>>;
90
+ autoReview: z.ZodOptional<z.ZodEnum<{
91
+ all: "all";
92
+ off: "off";
93
+ others: "others";
94
+ }>>;
95
+ }, z.core.$strip>>>;
96
+ sessions: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
97
+ runId: z.ZodString;
98
+ folderId: z.ZodString;
99
+ title: z.ZodString;
100
+ goal: z.ZodString;
101
+ status: z.ZodString;
102
+ activity: z.ZodString;
103
+ activitySeq: z.ZodOptional<z.ZodNumber>;
104
+ activityAt: z.ZodOptional<z.ZodNumber>;
105
+ lastCompletedAt: z.ZodOptional<z.ZodNumber>;
106
+ createdAt: z.ZodNumber;
107
+ updatedAt: z.ZodNumber;
108
+ archived: z.ZodBoolean;
109
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ memberIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
111
+ }, z.core.$strip>>>;
112
+ installations: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
113
+ installationId: z.ZodNumber;
114
+ account: z.ZodObject<{
115
+ login: z.ZodString;
116
+ type: z.ZodString;
117
+ avatarUrl: z.ZodString;
118
+ }, z.core.$strip>;
119
+ }, z.core.$strip>>>;
120
+ }, z.core.$strip>;
121
+ export type WorkspaceTree = z.infer<typeof WorkspaceTree>;
122
+ /** The kinds of tab Shuttle itself draws. */
123
+ export declare const ARTIFACT_TAB_KINDS: readonly ['events', 'files', 'file', 'changes', 'terminal', 'browser', 'review', 'media'];
124
+ export declare const BuiltinArtifactTabKind: z.ZodEnum<{
125
+ browser: "browser";
126
+ changes: "changes";
127
+ events: "events";
128
+ file: "file";
129
+ files: "files";
130
+ media: "media";
131
+ review: "review";
132
+ terminal: "terminal";
133
+ }>;
134
+ export type BuiltinArtifactTabKind = z.infer<typeof BuiltinArtifactTabKind>;
135
+ /**
136
+ * A kind of tab that whoever put Shuttle's components together draws themself, named
137
+ * `<namespace>:<name>` in lower case, as in `acme:designs`. The namespace keeps it apart from
138
+ * Shuttle's own kinds, present and future. The backend keeps such a tab without knowing what
139
+ * it shows; its `target` is the type's to give meaning to.
140
+ */
141
+ export declare const CustomArtifactTabKind: z.ZodTemplateLiteral<`${string}:${string}`>;
142
+ export type CustomArtifactTabKind = z.infer<typeof CustomArtifactTabKind>;
143
+ export declare const ArtifactTabKind: z.ZodUnion<readonly [z.ZodEnum<{
144
+ browser: "browser";
145
+ changes: "changes";
146
+ events: "events";
147
+ file: "file";
148
+ files: "files";
149
+ media: "media";
150
+ review: "review";
151
+ terminal: "terminal";
152
+ }>, z.ZodTemplateLiteral<`${string}:${string}`>]>;
153
+ export type ArtifactTabKind = z.infer<typeof ArtifactTabKind>;
154
+ export declare function isCustomArtifactTabKind(kind: string): kind is CustomArtifactTabKind;
155
+ /** One tab open beside a session. */
156
+ export declare const ArtifactTab: z.ZodObject<{
157
+ tabId: z.ZodString;
158
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
159
+ browser: "browser";
160
+ changes: "changes";
161
+ events: "events";
162
+ file: "file";
163
+ files: "files";
164
+ media: "media";
165
+ review: "review";
166
+ terminal: "terminal";
167
+ }>, z.ZodTemplateLiteral<`${string}:${string}`>]>;
168
+ title: z.ZodString;
169
+ target: z.ZodString;
170
+ openedAt: z.ZodNumber;
171
+ }, z.core.$strip>;
172
+ export type ArtifactTab = z.infer<typeof ArtifactTab>;
173
+ export declare const SessionTabSet: z.ZodObject<{
174
+ order: z.ZodReadonly<z.ZodArray<z.ZodString>>;
175
+ tabs: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
176
+ tabId: z.ZodString;
177
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
178
+ browser: "browser";
179
+ changes: "changes";
180
+ events: "events";
181
+ file: "file";
182
+ files: "files";
183
+ media: "media";
184
+ review: "review";
185
+ terminal: "terminal";
186
+ }>, z.ZodTemplateLiteral<`${string}:${string}`>]>;
187
+ title: z.ZodString;
188
+ target: z.ZodString;
189
+ openedAt: z.ZodNumber;
190
+ }, z.core.$strip>>>;
191
+ }, z.core.$strip>;
192
+ export type SessionTabSet = z.infer<typeof SessionTabSet>;
193
+ /** The tabs open beside each session, by the session's run id. */
194
+ export declare const SessionTabsState: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
195
+ order: z.ZodReadonly<z.ZodArray<z.ZodString>>;
196
+ tabs: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
197
+ tabId: z.ZodString;
198
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
199
+ browser: "browser";
200
+ changes: "changes";
201
+ events: "events";
202
+ file: "file";
203
+ files: "files";
204
+ media: "media";
205
+ review: "review";
206
+ terminal: "terminal";
207
+ }>, z.ZodTemplateLiteral<`${string}:${string}`>]>;
208
+ title: z.ZodString;
209
+ target: z.ZodString;
210
+ openedAt: z.ZodNumber;
211
+ }, z.core.$strip>>>;
212
+ }, z.core.$strip>>>;
213
+ export type SessionTabsState = z.infer<typeof SessionTabsState>;
214
+ /**
215
+ * One workspace as it stands: its tree and tabs, and the log position (`tail`) they were read at,
216
+ * so a client can follow the workspace's events from there. `tree` and `tabs` are null when the
217
+ * workspace could not be read.
218
+ */
219
+ export declare const WorkspaceSnapshot: z.ZodObject<{
220
+ runId: z.ZodString;
221
+ tail: z.ZodNumber;
222
+ tree: z.ZodNullable<z.ZodObject<{
223
+ folderOrder: z.ZodReadonly<z.ZodArray<z.ZodString>>;
224
+ folders: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
225
+ folderId: z.ZodString;
226
+ name: z.ZodString;
227
+ createdAt: z.ZodNumber;
228
+ archived: z.ZodBoolean;
229
+ repos: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
230
+ installationId: z.ZodNumber;
231
+ owner: z.ZodString;
232
+ name: z.ZodString;
233
+ fullName: z.ZodString;
234
+ defaultBranch: z.ZodString;
235
+ private: z.ZodBoolean;
236
+ }, z.core.$strip>>>>;
237
+ autoReview: z.ZodOptional<z.ZodEnum<{
238
+ all: "all";
239
+ off: "off";
240
+ others: "others";
241
+ }>>;
242
+ }, z.core.$strip>>>;
243
+ sessions: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
244
+ runId: z.ZodString;
245
+ folderId: z.ZodString;
246
+ title: z.ZodString;
247
+ goal: z.ZodString;
248
+ status: z.ZodString;
249
+ activity: z.ZodString;
250
+ activitySeq: z.ZodOptional<z.ZodNumber>;
251
+ activityAt: z.ZodOptional<z.ZodNumber>;
252
+ lastCompletedAt: z.ZodOptional<z.ZodNumber>;
253
+ createdAt: z.ZodNumber;
254
+ updatedAt: z.ZodNumber;
255
+ archived: z.ZodBoolean;
256
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ memberIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
258
+ }, z.core.$strip>>>;
259
+ installations: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
260
+ installationId: z.ZodNumber;
261
+ account: z.ZodObject<{
262
+ login: z.ZodString;
263
+ type: z.ZodString;
264
+ avatarUrl: z.ZodString;
265
+ }, z.core.$strip>;
266
+ }, z.core.$strip>>>;
267
+ }, z.core.$strip>>;
268
+ tabs: z.ZodNullable<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
269
+ order: z.ZodReadonly<z.ZodArray<z.ZodString>>;
270
+ tabs: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
271
+ tabId: z.ZodString;
272
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
273
+ browser: "browser";
274
+ changes: "changes";
275
+ events: "events";
276
+ file: "file";
277
+ files: "files";
278
+ media: "media";
279
+ review: "review";
280
+ terminal: "terminal";
281
+ }>, z.ZodTemplateLiteral<`${string}:${string}`>]>;
282
+ title: z.ZodString;
283
+ target: z.ZodString;
284
+ openedAt: z.ZodNumber;
285
+ }, z.core.$strip>>>;
286
+ }, z.core.$strip>>>>;
287
+ }, z.core.$strip>;
288
+ export type WorkspaceSnapshot = z.infer<typeof WorkspaceSnapshot>;
289
+ /** The organization's workspace, and inside it the caller's own. */
290
+ export declare const WorkspaceSnapshotResponse: z.ZodObject<{
291
+ runId: z.ZodString;
292
+ tail: z.ZodNumber;
293
+ tree: z.ZodNullable<z.ZodObject<{
294
+ folderOrder: z.ZodReadonly<z.ZodArray<z.ZodString>>;
295
+ folders: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
296
+ folderId: z.ZodString;
297
+ name: z.ZodString;
298
+ createdAt: z.ZodNumber;
299
+ archived: z.ZodBoolean;
300
+ repos: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
301
+ installationId: z.ZodNumber;
302
+ owner: z.ZodString;
303
+ name: z.ZodString;
304
+ fullName: z.ZodString;
305
+ defaultBranch: z.ZodString;
306
+ private: z.ZodBoolean;
307
+ }, z.core.$strip>>>>;
308
+ autoReview: z.ZodOptional<z.ZodEnum<{
309
+ all: "all";
310
+ off: "off";
311
+ others: "others";
312
+ }>>;
313
+ }, z.core.$strip>>>;
314
+ sessions: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
315
+ runId: z.ZodString;
316
+ folderId: z.ZodString;
317
+ title: z.ZodString;
318
+ goal: z.ZodString;
319
+ status: z.ZodString;
320
+ activity: z.ZodString;
321
+ activitySeq: z.ZodOptional<z.ZodNumber>;
322
+ activityAt: z.ZodOptional<z.ZodNumber>;
323
+ lastCompletedAt: z.ZodOptional<z.ZodNumber>;
324
+ createdAt: z.ZodNumber;
325
+ updatedAt: z.ZodNumber;
326
+ archived: z.ZodBoolean;
327
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
+ memberIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
329
+ }, z.core.$strip>>>;
330
+ installations: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
331
+ installationId: z.ZodNumber;
332
+ account: z.ZodObject<{
333
+ login: z.ZodString;
334
+ type: z.ZodString;
335
+ avatarUrl: z.ZodString;
336
+ }, z.core.$strip>;
337
+ }, z.core.$strip>>>;
338
+ }, z.core.$strip>>;
339
+ tabs: z.ZodNullable<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
340
+ order: z.ZodReadonly<z.ZodArray<z.ZodString>>;
341
+ tabs: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
342
+ tabId: z.ZodString;
343
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
344
+ browser: "browser";
345
+ changes: "changes";
346
+ events: "events";
347
+ file: "file";
348
+ files: "files";
349
+ media: "media";
350
+ review: "review";
351
+ terminal: "terminal";
352
+ }>, z.ZodTemplateLiteral<`${string}:${string}`>]>;
353
+ title: z.ZodString;
354
+ target: z.ZodString;
355
+ openedAt: z.ZodNumber;
356
+ }, z.core.$strip>>>;
357
+ }, z.core.$strip>>>>;
358
+ personal: z.ZodObject<{
359
+ runId: z.ZodString;
360
+ tail: z.ZodNumber;
361
+ tree: z.ZodNullable<z.ZodObject<{
362
+ folderOrder: z.ZodReadonly<z.ZodArray<z.ZodString>>;
363
+ folders: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
364
+ folderId: z.ZodString;
365
+ name: z.ZodString;
366
+ createdAt: z.ZodNumber;
367
+ archived: z.ZodBoolean;
368
+ repos: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
369
+ installationId: z.ZodNumber;
370
+ owner: z.ZodString;
371
+ name: z.ZodString;
372
+ fullName: z.ZodString;
373
+ defaultBranch: z.ZodString;
374
+ private: z.ZodBoolean;
375
+ }, z.core.$strip>>>>;
376
+ autoReview: z.ZodOptional<z.ZodEnum<{
377
+ all: "all";
378
+ off: "off";
379
+ others: "others";
380
+ }>>;
381
+ }, z.core.$strip>>>;
382
+ sessions: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
383
+ runId: z.ZodString;
384
+ folderId: z.ZodString;
385
+ title: z.ZodString;
386
+ goal: z.ZodString;
387
+ status: z.ZodString;
388
+ activity: z.ZodString;
389
+ activitySeq: z.ZodOptional<z.ZodNumber>;
390
+ activityAt: z.ZodOptional<z.ZodNumber>;
391
+ lastCompletedAt: z.ZodOptional<z.ZodNumber>;
392
+ createdAt: z.ZodNumber;
393
+ updatedAt: z.ZodNumber;
394
+ archived: z.ZodBoolean;
395
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
396
+ memberIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
397
+ }, z.core.$strip>>>;
398
+ installations: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
399
+ installationId: z.ZodNumber;
400
+ account: z.ZodObject<{
401
+ login: z.ZodString;
402
+ type: z.ZodString;
403
+ avatarUrl: z.ZodString;
404
+ }, z.core.$strip>;
405
+ }, z.core.$strip>>>;
406
+ }, z.core.$strip>>;
407
+ tabs: z.ZodNullable<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
408
+ order: z.ZodReadonly<z.ZodArray<z.ZodString>>;
409
+ tabs: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
410
+ tabId: z.ZodString;
411
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
412
+ browser: "browser";
413
+ changes: "changes";
414
+ events: "events";
415
+ file: "file";
416
+ files: "files";
417
+ media: "media";
418
+ review: "review";
419
+ terminal: "terminal";
420
+ }>, z.ZodTemplateLiteral<`${string}:${string}`>]>;
421
+ title: z.ZodString;
422
+ target: z.ZodString;
423
+ openedAt: z.ZodNumber;
424
+ }, z.core.$strip>>>;
425
+ }, z.core.$strip>>>>;
426
+ }, z.core.$strip>;
427
+ }, z.core.$strip>;
428
+ export type WorkspaceSnapshotResponse = z.infer<typeof WorkspaceSnapshotResponse>;
429
+ export declare const RepoSyncStatus: z.ZodEnum<{
430
+ failed: "failed";
431
+ forbidden: "forbidden";
432
+ ok: "ok";
433
+ }>;
434
+ export type RepoSyncStatus = z.infer<typeof RepoSyncStatus>;
435
+ export declare const RepoSyncReport: z.ZodObject<{
436
+ fullName: z.ZodString;
437
+ status: z.ZodEnum<{
438
+ failed: "failed";
439
+ forbidden: "forbidden";
440
+ ok: "ok";
441
+ }>;
442
+ open: z.ZodNumber;
443
+ synced: z.ZodNumber;
444
+ checksHidden: z.ZodBoolean;
445
+ message: z.ZodNullable<z.ZodString>;
446
+ }, z.core.$strip>;
447
+ export type RepoSyncReport = z.infer<typeof RepoSyncReport>;
448
+ export declare const InstallationAccessReport: z.ZodObject<{
449
+ installationId: z.ZodNumber;
450
+ account: z.ZodString;
451
+ missingPermissions: z.ZodReadonly<z.ZodArray<z.ZodString>>;
452
+ settingsUrl: z.ZodString;
453
+ }, z.core.$strip>;
454
+ export type InstallationAccessReport = z.infer<typeof InstallationAccessReport>;
455
+ export declare const FolderSyncReport: z.ZodObject<{
456
+ folderId: z.ZodString;
457
+ upserted: z.ZodNumber;
458
+ repos: z.ZodReadonly<z.ZodArray<z.ZodObject<{
459
+ fullName: z.ZodString;
460
+ status: z.ZodEnum<{
461
+ failed: "failed";
462
+ forbidden: "forbidden";
463
+ ok: "ok";
464
+ }>;
465
+ open: z.ZodNumber;
466
+ synced: z.ZodNumber;
467
+ checksHidden: z.ZodBoolean;
468
+ message: z.ZodNullable<z.ZodString>;
469
+ }, z.core.$strip>>>;
470
+ installations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
471
+ installationId: z.ZodNumber;
472
+ account: z.ZodString;
473
+ missingPermissions: z.ZodReadonly<z.ZodArray<z.ZodString>>;
474
+ settingsUrl: z.ZodString;
475
+ }, z.core.$strip>>>;
476
+ }, z.core.$strip>;
477
+ export type FolderSyncReport = z.infer<typeof FolderSyncReport>;
478
+ export declare const workspaceContract: {
479
+ /**
480
+ * The two workspaces a person sees: the organization's, with its folders and public sessions,
481
+ * and their own, with the sessions that are private to them or shared with them.
482
+ */
483
+ get: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
484
+ runId: z.ZodString;
485
+ tail: z.ZodNumber;
486
+ tree: z.ZodNullable<z.ZodObject<{
487
+ folderOrder: z.ZodReadonly<z.ZodArray<z.ZodString>>;
488
+ folders: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
489
+ folderId: z.ZodString;
490
+ name: z.ZodString;
491
+ createdAt: z.ZodNumber;
492
+ archived: z.ZodBoolean;
493
+ repos: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
494
+ installationId: z.ZodNumber;
495
+ owner: z.ZodString;
496
+ name: z.ZodString;
497
+ fullName: z.ZodString;
498
+ defaultBranch: z.ZodString;
499
+ private: z.ZodBoolean;
500
+ }, z.core.$strip>>>>;
501
+ autoReview: z.ZodOptional<z.ZodEnum<{
502
+ all: "all";
503
+ off: "off";
504
+ others: "others";
505
+ }>>;
506
+ }, z.core.$strip>>>;
507
+ sessions: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
508
+ runId: z.ZodString;
509
+ folderId: z.ZodString;
510
+ title: z.ZodString;
511
+ goal: z.ZodString;
512
+ status: z.ZodString;
513
+ activity: z.ZodString;
514
+ activitySeq: z.ZodOptional<z.ZodNumber>;
515
+ activityAt: z.ZodOptional<z.ZodNumber>;
516
+ lastCompletedAt: z.ZodOptional<z.ZodNumber>;
517
+ createdAt: z.ZodNumber;
518
+ updatedAt: z.ZodNumber;
519
+ archived: z.ZodBoolean;
520
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
+ memberIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
522
+ }, z.core.$strip>>>;
523
+ installations: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
524
+ installationId: z.ZodNumber;
525
+ account: z.ZodObject<{
526
+ login: z.ZodString;
527
+ type: z.ZodString;
528
+ avatarUrl: z.ZodString;
529
+ }, z.core.$strip>;
530
+ }, z.core.$strip>>>;
531
+ }, z.core.$strip>>;
532
+ tabs: z.ZodNullable<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
533
+ order: z.ZodReadonly<z.ZodArray<z.ZodString>>;
534
+ tabs: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
535
+ tabId: z.ZodString;
536
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
537
+ browser: "browser";
538
+ changes: "changes";
539
+ events: "events";
540
+ file: "file";
541
+ files: "files";
542
+ media: "media";
543
+ review: "review";
544
+ terminal: "terminal";
545
+ }>, z.ZodTemplateLiteral<`${string}:${string}`>]>;
546
+ title: z.ZodString;
547
+ target: z.ZodString;
548
+ openedAt: z.ZodNumber;
549
+ }, z.core.$strip>>>;
550
+ }, z.core.$strip>>>>;
551
+ personal: z.ZodObject<{
552
+ runId: z.ZodString;
553
+ tail: z.ZodNumber;
554
+ tree: z.ZodNullable<z.ZodObject<{
555
+ folderOrder: z.ZodReadonly<z.ZodArray<z.ZodString>>;
556
+ folders: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
557
+ folderId: z.ZodString;
558
+ name: z.ZodString;
559
+ createdAt: z.ZodNumber;
560
+ archived: z.ZodBoolean;
561
+ repos: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
562
+ installationId: z.ZodNumber;
563
+ owner: z.ZodString;
564
+ name: z.ZodString;
565
+ fullName: z.ZodString;
566
+ defaultBranch: z.ZodString;
567
+ private: z.ZodBoolean;
568
+ }, z.core.$strip>>>>;
569
+ autoReview: z.ZodOptional<z.ZodEnum<{
570
+ all: "all";
571
+ off: "off";
572
+ others: "others";
573
+ }>>;
574
+ }, z.core.$strip>>>;
575
+ sessions: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
576
+ runId: z.ZodString;
577
+ folderId: z.ZodString;
578
+ title: z.ZodString;
579
+ goal: z.ZodString;
580
+ status: z.ZodString;
581
+ activity: z.ZodString;
582
+ activitySeq: z.ZodOptional<z.ZodNumber>;
583
+ activityAt: z.ZodOptional<z.ZodNumber>;
584
+ lastCompletedAt: z.ZodOptional<z.ZodNumber>;
585
+ createdAt: z.ZodNumber;
586
+ updatedAt: z.ZodNumber;
587
+ archived: z.ZodBoolean;
588
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
+ memberIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
590
+ }, z.core.$strip>>>;
591
+ installations: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
592
+ installationId: z.ZodNumber;
593
+ account: z.ZodObject<{
594
+ login: z.ZodString;
595
+ type: z.ZodString;
596
+ avatarUrl: z.ZodString;
597
+ }, z.core.$strip>;
598
+ }, z.core.$strip>>>;
599
+ }, z.core.$strip>>;
600
+ tabs: z.ZodNullable<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
601
+ order: z.ZodReadonly<z.ZodArray<z.ZodString>>;
602
+ tabs: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodObject<{
603
+ tabId: z.ZodString;
604
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
605
+ browser: "browser";
606
+ changes: "changes";
607
+ events: "events";
608
+ file: "file";
609
+ files: "files";
610
+ media: "media";
611
+ review: "review";
612
+ terminal: "terminal";
613
+ }>, z.ZodTemplateLiteral<`${string}:${string}`>]>;
614
+ title: z.ZodString;
615
+ target: z.ZodString;
616
+ openedAt: z.ZodNumber;
617
+ }, z.core.$strip>>>;
618
+ }, z.core.$strip>>>>;
619
+ }, z.core.$strip>;
620
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
621
+ /** Starts a session in a folder. It is private to the caller until they share it. */
622
+ createSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
623
+ folderId: z.ZodString;
624
+ goal: z.ZodString;
625
+ deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
626
+ }, z.core.$strip>, z.ZodObject<{
627
+ runId: z.ZodString;
628
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
629
+ repos: {
630
+ /** Links a repository to a folder. Only an installation the organization connected may be used. */
631
+ link: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
632
+ folderId: z.ZodString;
633
+ installationId: z.ZodCoercedNumber<string | number>;
634
+ owner: z.ZodString;
635
+ name: z.ZodString;
636
+ }, z.core.$strip>, z.ZodObject<{
637
+ folderId: z.ZodString;
638
+ repo: z.ZodObject<{
639
+ installationId: z.ZodNumber;
640
+ owner: z.ZodString;
641
+ name: z.ZodString;
642
+ fullName: z.ZodString;
643
+ defaultBranch: z.ZodString;
644
+ private: z.ZodBoolean;
645
+ }, z.core.$strip>;
646
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
647
+ unlink: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
648
+ folderId: z.ZodString;
649
+ fullName: z.ZodString;
650
+ }, z.core.$strip>, z.ZodObject<{
651
+ folderId: z.ZodString;
652
+ fullName: z.ZodString;
653
+ unlinked: z.ZodLiteral<true>;
654
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
655
+ };
656
+ pulls: {
657
+ /** Fetches every open pull request on the folder's repositories into the inbox. */
658
+ sync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
659
+ folderId: z.ZodString;
660
+ }, z.core.$strip>, z.ZodObject<{
661
+ folderId: z.ZodString;
662
+ upserted: z.ZodNumber;
663
+ repos: z.ZodReadonly<z.ZodArray<z.ZodObject<{
664
+ fullName: z.ZodString;
665
+ status: z.ZodEnum<{
666
+ failed: "failed";
667
+ forbidden: "forbidden";
668
+ ok: "ok";
669
+ }>;
670
+ open: z.ZodNumber;
671
+ synced: z.ZodNumber;
672
+ checksHidden: z.ZodBoolean;
673
+ message: z.ZodNullable<z.ZodString>;
674
+ }, z.core.$strip>>>;
675
+ installations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
676
+ installationId: z.ZodNumber;
677
+ account: z.ZodString;
678
+ missingPermissions: z.ZodReadonly<z.ZodArray<z.ZodString>>;
679
+ settingsUrl: z.ZodString;
680
+ }, z.core.$strip>>>;
681
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
682
+ /** Fetches a pull request's review threads from GitHub into the mirror people read. */
683
+ syncThreads: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
684
+ folderId: z.ZodString;
685
+ fullName: z.ZodString;
686
+ number: z.ZodCoercedNumber<string | number>;
687
+ }, z.core.$strip>, z.ZodObject<{
688
+ threads: z.ZodNumber;
689
+ changed: z.ZodBoolean;
690
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
691
+ /**
692
+ * Posts a comment on a pull request as the signed-in person: a reply when `rootId` names a
693
+ * thread, otherwise a new thread on `path` and `line`.
694
+ */
695
+ comment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
696
+ folderId: z.ZodString;
697
+ fullName: z.ZodString;
698
+ number: z.ZodCoercedNumber<string | number>;
699
+ body: z.ZodDefault<z.ZodString>;
700
+ rootId: z.ZodOptional<z.ZodNumber>;
701
+ path: z.ZodOptional<z.ZodString>;
702
+ line: z.ZodOptional<z.ZodNumber>;
703
+ side: z.ZodOptional<z.ZodEnum<{
704
+ LEFT: "LEFT";
705
+ RIGHT: "RIGHT";
706
+ }>>;
707
+ startLine: z.ZodOptional<z.ZodNumber>;
708
+ startSide: z.ZodOptional<z.ZodEnum<{
709
+ LEFT: "LEFT";
710
+ RIGHT: "RIGHT";
711
+ }>>;
712
+ }, z.core.$strip>, z.ZodObject<{
713
+ ok: z.ZodLiteral<true>;
714
+ commentId: z.ZodNumber;
715
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
716
+ /** Resolves or reopens a thread on a pull request as the signed-in person. */
717
+ resolveThread: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
718
+ folderId: z.ZodString;
719
+ fullName: z.ZodString;
720
+ number: z.ZodCoercedNumber<string | number>;
721
+ rootId: z.ZodCoercedNumber<string | number>;
722
+ resolved: z.ZodDefault<z.ZodBoolean>;
723
+ }, z.core.$strip>, z.ZodObject<{
724
+ ok: z.ZodLiteral<true>;
725
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
726
+ /** Starts a private session that reviews a pull request at the commit given. */
727
+ review: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
728
+ folderId: z.ZodString;
729
+ fullName: z.ZodString;
730
+ number: z.ZodCoercedNumber<string | number>;
731
+ headSha: z.ZodString;
732
+ baseSha: z.ZodOptional<z.ZodString>;
733
+ title: z.ZodOptional<z.ZodString>;
734
+ }, z.core.$strip>, z.ZodObject<{
735
+ runId: z.ZodString;
736
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
737
+ };
738
+ };