@jinion/core 0.5.0 → 0.5.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 (217) hide show
  1. package/dist/agent/agent.d.ts +3 -0
  2. package/dist/agent/agent.d.ts.map +1 -1
  3. package/dist/agent/agent.js.map +1 -1
  4. package/dist/agent/claude/backend.d.ts +1 -1
  5. package/dist/agent/claude/backend.d.ts.map +1 -1
  6. package/dist/agent/claude/backend.js +2 -1
  7. package/dist/agent/claude/backend.js.map +1 -1
  8. package/dist/agent/claude/jinion-tools.d.ts +3 -1
  9. package/dist/agent/claude/jinion-tools.d.ts.map +1 -1
  10. package/dist/agent/claude/jinion-tools.js +10 -1
  11. package/dist/agent/claude/jinion-tools.js.map +1 -1
  12. package/dist/agent/claude/options.d.ts +4 -1
  13. package/dist/agent/claude/options.d.ts.map +1 -1
  14. package/dist/agent/claude/options.js +4 -4
  15. package/dist/agent/claude/options.js.map +1 -1
  16. package/dist/agent/claude/prompt.d.ts +2 -1
  17. package/dist/agent/claude/prompt.d.ts.map +1 -1
  18. package/dist/agent/claude/prompt.js +3 -1
  19. package/dist/agent/claude/prompt.js.map +1 -1
  20. package/dist/agent/claude/session.d.ts +9 -1
  21. package/dist/agent/claude/session.d.ts.map +1 -1
  22. package/dist/agent/claude/session.js +13 -3
  23. package/dist/agent/claude/session.js.map +1 -1
  24. package/dist/agent/claude/tool-calls.d.ts.map +1 -1
  25. package/dist/agent/claude/tool-calls.js +11 -2
  26. package/dist/agent/claude/tool-calls.js.map +1 -1
  27. package/dist/agent/codex/backend.d.ts +1 -1
  28. package/dist/agent/codex/backend.d.ts.map +1 -1
  29. package/dist/agent/codex/backend.js +2 -1
  30. package/dist/agent/codex/backend.js.map +1 -1
  31. package/dist/agent/codex/events.d.ts.map +1 -1
  32. package/dist/agent/codex/events.js +7 -4
  33. package/dist/agent/codex/events.js.map +1 -1
  34. package/dist/agent/codex/jinion-tools.d.ts +27 -4
  35. package/dist/agent/codex/jinion-tools.d.ts.map +1 -1
  36. package/dist/agent/codex/jinion-tools.js +18 -4
  37. package/dist/agent/codex/jinion-tools.js.map +1 -1
  38. package/dist/agent/codex/session.d.ts +3 -0
  39. package/dist/agent/codex/session.d.ts.map +1 -1
  40. package/dist/agent/codex/session.js +5 -2
  41. package/dist/agent/codex/session.js.map +1 -1
  42. package/dist/agent/demo/scenarios/pricing-card.d.ts +3 -0
  43. package/dist/agent/demo/scenarios/pricing-card.d.ts.map +1 -0
  44. package/dist/agent/demo/scenarios/pricing-card.js +43 -0
  45. package/dist/agent/demo/scenarios/pricing-card.js.map +1 -0
  46. package/dist/agent/demo/sessions.d.ts.map +1 -1
  47. package/dist/agent/demo/sessions.js +26 -1
  48. package/dist/agent/demo/sessions.js.map +1 -1
  49. package/dist/agent/review.d.ts +8 -2
  50. package/dist/agent/review.d.ts.map +1 -1
  51. package/dist/agent/review.js +27 -7
  52. package/dist/agent/review.js.map +1 -1
  53. package/dist/api/client.d.ts +212 -0
  54. package/dist/api/client.d.ts.map +1 -1
  55. package/dist/api/connection.d.ts +52 -0
  56. package/dist/api/connection.d.ts.map +1 -1
  57. package/dist/api/connection.js +2 -0
  58. package/dist/api/connection.js.map +1 -1
  59. package/dist/api/fields.d.ts +229 -1
  60. package/dist/api/fields.d.ts.map +1 -1
  61. package/dist/api/fields.js +3 -1
  62. package/dist/api/fields.js.map +1 -1
  63. package/dist/api/json-schema.d.ts +819 -181
  64. package/dist/api/json-schema.d.ts.map +1 -1
  65. package/dist/api/methods/git.js +1 -1
  66. package/dist/api/methods/git.js.map +1 -1
  67. package/dist/api/methods/sessions.d.ts.map +1 -1
  68. package/dist/api/methods/sessions.js +3 -2
  69. package/dist/api/methods/sessions.js.map +1 -1
  70. package/dist/api/methods/team.d.ts +4 -0
  71. package/dist/api/methods/team.d.ts.map +1 -0
  72. package/dist/api/methods/team.js +30 -0
  73. package/dist/api/methods/team.js.map +1 -0
  74. package/dist/api/protocol.d.ts +779 -2
  75. package/dist/api/protocol.d.ts.map +1 -1
  76. package/dist/api/protocol.js +36 -5
  77. package/dist/api/protocol.js.map +1 -1
  78. package/dist/api/schemas.d.ts +496 -0
  79. package/dist/api/schemas.d.ts.map +1 -1
  80. package/dist/api/schemas.js +6 -0
  81. package/dist/api/schemas.js.map +1 -1
  82. package/dist/commands/builtin.d.ts.map +1 -1
  83. package/dist/commands/builtin.js +3 -0
  84. package/dist/commands/builtin.js.map +1 -1
  85. package/dist/commands/team.d.ts +4 -0
  86. package/dist/commands/team.d.ts.map +1 -0
  87. package/dist/commands/team.js +11 -0
  88. package/dist/commands/team.js.map +1 -0
  89. package/dist/controllers/context.d.ts +4 -0
  90. package/dist/controllers/context.d.ts.map +1 -1
  91. package/dist/controllers/context.js +4 -0
  92. package/dist/controllers/context.js.map +1 -1
  93. package/dist/controllers/conversation.d.ts +16 -0
  94. package/dist/controllers/conversation.d.ts.map +1 -1
  95. package/dist/controllers/decision-view.d.ts +20 -0
  96. package/dist/controllers/decision-view.d.ts.map +1 -0
  97. package/dist/controllers/decision-view.js +59 -0
  98. package/dist/controllers/decision-view.js.map +1 -0
  99. package/dist/controllers/decisions.d.ts +29 -0
  100. package/dist/controllers/decisions.d.ts.map +1 -0
  101. package/dist/controllers/decisions.js +199 -0
  102. package/dist/controllers/decisions.js.map +1 -0
  103. package/dist/controllers/jinion.d.ts +17 -1
  104. package/dist/controllers/jinion.d.ts.map +1 -1
  105. package/dist/controllers/jinion.js +89 -5
  106. package/dist/controllers/jinion.js.map +1 -1
  107. package/dist/controllers/session.d.ts +21 -1
  108. package/dist/controllers/session.d.ts.map +1 -1
  109. package/dist/controllers/session.js +63 -1
  110. package/dist/controllers/session.js.map +1 -1
  111. package/dist/controllers/team.d.ts +216 -0
  112. package/dist/controllers/team.d.ts.map +1 -0
  113. package/dist/controllers/team.js +208 -0
  114. package/dist/controllers/team.js.map +1 -0
  115. package/dist/controllers/turns.d.ts +6 -0
  116. package/dist/controllers/turns.d.ts.map +1 -1
  117. package/dist/controllers/turns.js +17 -7
  118. package/dist/controllers/turns.js.map +1 -1
  119. package/dist/conversation/entries.d.ts +36 -0
  120. package/dist/conversation/entries.d.ts.map +1 -1
  121. package/dist/conversation/entries.js +26 -0
  122. package/dist/conversation/entries.js.map +1 -1
  123. package/dist/conversation/reducer.d.ts +132 -0
  124. package/dist/conversation/reducer.d.ts.map +1 -1
  125. package/dist/conversation/reducer.js +30 -1
  126. package/dist/conversation/reducer.js.map +1 -1
  127. package/dist/conversation/session.d.ts +24 -0
  128. package/dist/conversation/session.d.ts.map +1 -1
  129. package/dist/conversation/store.d.ts +13 -0
  130. package/dist/conversation/store.d.ts.map +1 -1
  131. package/dist/conversation/store.js +31 -7
  132. package/dist/conversation/store.js.map +1 -1
  133. package/dist/feedback/shared.d.ts +16 -0
  134. package/dist/feedback/shared.d.ts.map +1 -1
  135. package/dist/git/repos.d.ts.map +1 -1
  136. package/dist/git/repos.js +3 -1
  137. package/dist/git/repos.js.map +1 -1
  138. package/dist/git/staging.d.ts +2 -2
  139. package/dist/git/staging.d.ts.map +1 -1
  140. package/dist/git/staging.js +3 -3
  141. package/dist/git/staging.js.map +1 -1
  142. package/dist/git/types.d.ts +2 -0
  143. package/dist/git/types.d.ts.map +1 -1
  144. package/dist/git/types.js +2 -0
  145. package/dist/git/types.js.map +1 -1
  146. package/dist/jinion-account/account.d.ts +178 -0
  147. package/dist/jinion-account/account.d.ts.map +1 -1
  148. package/dist/jinion-account/account.js +30 -0
  149. package/dist/jinion-account/account.js.map +1 -1
  150. package/dist/jinion-account/api.d.ts +169 -0
  151. package/dist/jinion-account/api.d.ts.map +1 -1
  152. package/dist/jinion-account/api.js +39 -1
  153. package/dist/jinion-account/api.js.map +1 -1
  154. package/dist/jinion-account/user.d.ts +22 -0
  155. package/dist/jinion-account/user.d.ts.map +1 -1
  156. package/dist/jinion-account/user.js +9 -0
  157. package/dist/jinion-account/user.js.map +1 -1
  158. package/dist/map/review.d.ts +6 -4
  159. package/dist/map/review.d.ts.map +1 -1
  160. package/dist/map/review.js +21 -7
  161. package/dist/map/review.js.map +1 -1
  162. package/dist/state/jinion-account.d.ts +6 -0
  163. package/dist/state/jinion-account.d.ts.map +1 -1
  164. package/dist/state/session.d.ts +150 -0
  165. package/dist/state/session.d.ts.map +1 -1
  166. package/dist/state/session.js +2 -0
  167. package/dist/state/session.js.map +1 -1
  168. package/dist/state/team.d.ts +151 -0
  169. package/dist/state/team.d.ts.map +1 -0
  170. package/dist/state/team.js +4 -0
  171. package/dist/state/team.js.map +1 -0
  172. package/dist/team/anchoring.d.ts +9 -0
  173. package/dist/team/anchoring.d.ts.map +1 -0
  174. package/dist/team/anchoring.js +26 -0
  175. package/dist/team/anchoring.js.map +1 -0
  176. package/dist/team/config.d.ts +16 -0
  177. package/dist/team/config.d.ts.map +1 -0
  178. package/dist/team/config.js +37 -0
  179. package/dist/team/config.js.map +1 -0
  180. package/dist/team/decision.d.ts +255 -0
  181. package/dist/team/decision.d.ts.map +1 -0
  182. package/dist/team/decision.js +82 -0
  183. package/dist/team/decision.js.map +1 -0
  184. package/dist/team/decisions.d.ts +98 -0
  185. package/dist/team/decisions.d.ts.map +1 -0
  186. package/dist/team/decisions.js +166 -0
  187. package/dist/team/decisions.js.map +1 -0
  188. package/dist/team/history.d.ts +27 -0
  189. package/dist/team/history.d.ts.map +1 -0
  190. package/dist/team/history.js +49 -0
  191. package/dist/team/history.js.map +1 -0
  192. package/dist/team/prompt.d.ts +20 -0
  193. package/dist/team/prompt.d.ts.map +1 -0
  194. package/dist/team/prompt.js +44 -0
  195. package/dist/team/prompt.js.map +1 -0
  196. package/dist/team/repository.d.ts +12 -0
  197. package/dist/team/repository.d.ts.map +1 -0
  198. package/dist/team/repository.js +32 -0
  199. package/dist/team/repository.js.map +1 -0
  200. package/dist/team/secrets.d.ts +3 -0
  201. package/dist/team/secrets.d.ts.map +1 -0
  202. package/dist/team/secrets.js +18 -0
  203. package/dist/team/secrets.js.map +1 -0
  204. package/dist/team/tools.d.ts +82 -0
  205. package/dist/team/tools.d.ts.map +1 -0
  206. package/dist/team/tools.js +46 -0
  207. package/dist/team/tools.js.map +1 -0
  208. package/dist/team/types.d.ts +178 -0
  209. package/dist/team/types.d.ts.map +1 -0
  210. package/dist/team/types.js +60 -0
  211. package/dist/team/types.js.map +1 -0
  212. package/dist/team/visibility.d.ts +9 -0
  213. package/dist/team/visibility.d.ts.map +1 -0
  214. package/dist/team/visibility.js +36 -0
  215. package/dist/team/visibility.js.map +1 -0
  216. package/package.json +1 -1
  217. package/schema/api.json +3371 -503
@@ -145,6 +145,16 @@ export declare const requests: {
145
145
  user: "user";
146
146
  }>>;
147
147
  activated: z.ZodOptional<z.ZodBoolean>;
148
+ workspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
149
+ id: z.ZodString;
150
+ name: z.ZodString;
151
+ slug: z.ZodString;
152
+ role: z.ZodEnum<{
153
+ admin: "admin";
154
+ member: "member";
155
+ owner: "owner";
156
+ }>;
157
+ }, z.core.$strip>>>;
148
158
  }, z.core.$strip>>>;
149
159
  signals: z.ZodOptional<z.ZodBoolean>;
150
160
  notifications: z.ZodOptional<z.ZodBoolean>;
@@ -157,6 +167,88 @@ export declare const requests: {
157
167
  label: z.ZodString;
158
168
  }, z.core.$strip>>;
159
169
  }, z.core.$strip>>>;
170
+ team: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
171
+ state: z.ZodLiteral<"unlinked">;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ state: z.ZodLiteral<"invalid">;
174
+ problem: z.ZodString;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ state: z.ZodLiteral<"signed-out">;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ state: z.ZodLiteral<"member">;
179
+ role: z.ZodEnum<{
180
+ admin: "admin";
181
+ member: "member";
182
+ owner: "owner";
183
+ }>;
184
+ workspace: z.ZodObject<{
185
+ id: z.ZodString;
186
+ name: z.ZodString;
187
+ slug: z.ZodString;
188
+ }, z.core.$strip>;
189
+ project: z.ZodObject<{
190
+ id: z.ZodString;
191
+ name: z.ZodString;
192
+ remoteUrl: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ state: z.ZodLiteral<"requested">;
196
+ workspace: z.ZodObject<{
197
+ name: z.ZodString;
198
+ }, z.core.$strip>;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ state: z.ZodLiteral<"no-access">;
201
+ workspace: z.ZodObject<{
202
+ name: z.ZodString;
203
+ }, z.core.$strip>;
204
+ canRequest: z.ZodBoolean;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ state: z.ZodLiteral<"not-found">;
207
+ }, z.core.$strip>, z.ZodObject<{
208
+ state: z.ZodLiteral<"mismatch">;
209
+ }, z.core.$strip>, z.ZodObject<{
210
+ state: z.ZodLiteral<"offline">;
211
+ known: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
212
+ state: z.ZodLiteral<"unlinked">;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ state: z.ZodLiteral<"invalid">;
215
+ problem: z.ZodString;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ state: z.ZodLiteral<"signed-out">;
218
+ }, z.core.$strip>, z.ZodObject<{
219
+ state: z.ZodLiteral<"member">;
220
+ role: z.ZodEnum<{
221
+ admin: "admin";
222
+ member: "member";
223
+ owner: "owner";
224
+ }>;
225
+ workspace: z.ZodObject<{
226
+ id: z.ZodString;
227
+ name: z.ZodString;
228
+ slug: z.ZodString;
229
+ }, z.core.$strip>;
230
+ project: z.ZodObject<{
231
+ id: z.ZodString;
232
+ name: z.ZodString;
233
+ remoteUrl: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strip>;
235
+ }, z.core.$strip>, z.ZodObject<{
236
+ state: z.ZodLiteral<"requested">;
237
+ workspace: z.ZodObject<{
238
+ name: z.ZodString;
239
+ }, z.core.$strip>;
240
+ }, z.core.$strip>, z.ZodObject<{
241
+ state: z.ZodLiteral<"no-access">;
242
+ workspace: z.ZodObject<{
243
+ name: z.ZodString;
244
+ }, z.core.$strip>;
245
+ canRequest: z.ZodBoolean;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ state: z.ZodLiteral<"not-found">;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ state: z.ZodLiteral<"mismatch">;
250
+ }, z.core.$strip>], "state">>;
251
+ }, z.core.$strip>], "state">>;
160
252
  }, z.core.$strip>;
161
253
  }, z.core.$strip>;
162
254
  };
@@ -166,13 +258,15 @@ export declare const requests: {
166
258
  };
167
259
  /**
168
260
  * A new conversation, or the saved one `resume` names, beside those open; one already open comes back instead.
169
- * `activate` makes it the one the user looks at, as a new tab is.
261
+ * `activate` makes it the one the user looks at, as a new tab is. With `takeOver`, one open in another Jinion is
262
+ * taken from it: that one stops its turn and lets go of it; it fails with `ApiCode.openElsewhere` when it doesn't.
170
263
  */
171
264
  'sessions/open': {
172
265
  params: z.ZodObject<{
173
266
  resume: z.ZodOptional<z.ZodString>;
174
267
  worktree: z.ZodOptional<z.ZodBoolean>;
175
268
  activate: z.ZodOptional<z.ZodBoolean>;
269
+ takeOver: z.ZodOptional<z.ZodBoolean>;
176
270
  }, z.core.$strip>;
177
271
  result: z.ZodObject<{
178
272
  session: z.ZodString;
@@ -297,6 +391,30 @@ export declare const requests: {
297
391
  added: z.ZodNumber;
298
392
  removed: z.ZodNumber;
299
393
  }, z.core.$strip>>;
394
+ }, z.core.$strip>, z.ZodObject<{
395
+ id: z.ZodString;
396
+ kind: z.ZodLiteral<"decision">;
397
+ decision: z.ZodString;
398
+ title: z.ZodString;
399
+ origin: z.ZodEnum<{
400
+ agent: "agent";
401
+ asked: "asked";
402
+ requested: "requested";
403
+ }>;
404
+ deleted: z.ZodOptional<z.ZodBoolean>;
405
+ kept: z.ZodOptional<z.ZodBoolean>;
406
+ by: z.ZodOptional<z.ZodString>;
407
+ madeAt: z.ZodOptional<z.ZodString>;
408
+ elsewhere: z.ZodOptional<z.ZodObject<{
409
+ branch: z.ZodNullable<z.ZodString>;
410
+ pullRequest: z.ZodNullable<z.ZodNumber>;
411
+ pullRequestState: z.ZodNullable<z.ZodEnum<{
412
+ closed: "closed";
413
+ merged: "merged";
414
+ open: "open";
415
+ }>>;
416
+ paths: z.ZodArray<z.ZodString>;
417
+ }, z.core.$strip>>;
300
418
  }, z.core.$strip>, z.ZodObject<{
301
419
  id: z.ZodString;
302
420
  kind: z.ZodLiteral<"tool">;
@@ -479,6 +597,70 @@ export declare const requests: {
479
597
  disliked: "disliked";
480
598
  liked: "liked";
481
599
  }>>>;
600
+ decisions: z.ZodOptional<z.ZodObject<{
601
+ decisions: z.ZodArray<z.ZodObject<{
602
+ id: z.ZodString;
603
+ title: z.ZodString;
604
+ decision: z.ZodString;
605
+ reason: z.ZodString;
606
+ turnedDown: z.ZodNullable<z.ZodString>;
607
+ origin: z.ZodEnum<{
608
+ agent: "agent";
609
+ asked: "asked";
610
+ requested: "requested";
611
+ }>;
612
+ status: z.ZodEnum<{
613
+ active: "active";
614
+ archived: "archived";
615
+ draft: "draft";
616
+ superseded: "superseded";
617
+ }>;
618
+ author: z.ZodNullable<z.ZodObject<{
619
+ id: z.ZodNumber;
620
+ name: z.ZodNullable<z.ZodString>;
621
+ email: z.ZodString;
622
+ }, z.core.$strip>>;
623
+ backend: z.ZodString;
624
+ model: z.ZodString;
625
+ branch: z.ZodNullable<z.ZodString>;
626
+ baseCommit: z.ZodNullable<z.ZodString>;
627
+ paths: z.ZodArray<z.ZodString>;
628
+ symbols: z.ZodArray<z.ZodString>;
629
+ supersedes: z.ZodNullable<z.ZodString>;
630
+ supersededBy: z.ZodNullable<z.ZodString>;
631
+ anchors: z.ZodArray<z.ZodObject<{
632
+ sha: z.ZodString;
633
+ kind: z.ZodEnum<{
634
+ commit: "commit";
635
+ merge: "merge";
636
+ }>;
637
+ pullRequest: z.ZodNullable<z.ZodNumber>;
638
+ pullRequestState: z.ZodNullable<z.ZodEnum<{
639
+ closed: "closed";
640
+ merged: "merged";
641
+ open: "open";
642
+ }>>;
643
+ baseBranch: z.ZodNullable<z.ZodString>;
644
+ }, z.core.$strip>>;
645
+ createdAt: z.ZodString;
646
+ updatedAt: z.ZodString;
647
+ version: z.ZodString;
648
+ state: z.ZodEnum<{
649
+ binding: "binding";
650
+ draft: "draft";
651
+ dropped: "dropped";
652
+ "not-pulled": "not-pulled";
653
+ "other-branch": "other-branch";
654
+ }>;
655
+ }, z.core.$strip>>;
656
+ counts: z.ZodRecord<z.ZodEnum<{
657
+ binding: "binding";
658
+ draft: "draft";
659
+ dropped: "dropped";
660
+ "not-pulled": "not-pulled";
661
+ "other-branch": "other-branch";
662
+ }>, z.ZodNumber>;
663
+ }, z.core.$strip>>;
482
664
  }, z.core.$strip>;
483
665
  seq: z.ZodNumber;
484
666
  }, z.core.$strip>;
@@ -751,6 +933,7 @@ export declare const requests: {
751
933
  changed: z.ZodNumber;
752
934
  ahead: z.ZodNumber;
753
935
  behind: z.ZodNumber;
936
+ upstream: z.ZodOptional<z.ZodBoolean>;
754
937
  repo: z.ZodObject<{
755
938
  root: z.ZodString;
756
939
  path: z.ZodString;
@@ -827,12 +1010,13 @@ export declare const requests: {
827
1010
  }, z.core.$strip>>;
828
1011
  }, z.core.$strip>;
829
1012
  };
830
- /** What is staged in the repository whose root is `repo`; the new commit, short. */
1013
+ /** What is staged in the repository whose root is `repo`; the new commit, short. With `amend`, into the last commit, its message replaced. */
831
1014
  'git/commit': {
832
1015
  params: z.ZodObject<{
833
1016
  session: z.ZodString;
834
1017
  repo: z.ZodString;
835
1018
  message: z.ZodString;
1019
+ amend: z.ZodOptional<z.ZodBoolean>;
836
1020
  }, z.core.$strip>;
837
1021
  result: z.ZodObject<{
838
1022
  commit: z.ZodString;
@@ -1891,6 +2075,16 @@ export declare const requests: {
1891
2075
  user: "user";
1892
2076
  }>>;
1893
2077
  activated: z.ZodOptional<z.ZodBoolean>;
2078
+ workspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2079
+ id: z.ZodString;
2080
+ name: z.ZodString;
2081
+ slug: z.ZodString;
2082
+ role: z.ZodEnum<{
2083
+ admin: "admin";
2084
+ member: "member";
2085
+ owner: "owner";
2086
+ }>;
2087
+ }, z.core.$strip>>>;
1894
2088
  }, z.core.$strip>;
1895
2089
  };
1896
2090
  /** Opens the browser and is answered once signing in ends; meanwhile its link comes as `jinion/sign-in-link`. */
@@ -1907,6 +2101,16 @@ export declare const requests: {
1907
2101
  user: "user";
1908
2102
  }>>;
1909
2103
  activated: z.ZodOptional<z.ZodBoolean>;
2104
+ workspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2105
+ id: z.ZodString;
2106
+ name: z.ZodString;
2107
+ slug: z.ZodString;
2108
+ role: z.ZodEnum<{
2109
+ admin: "admin";
2110
+ member: "member";
2111
+ owner: "owner";
2112
+ }>;
2113
+ }, z.core.$strip>>>;
1910
2114
  }, z.core.$strip>;
1911
2115
  };
1912
2116
  'jinion/sign-in-cancel': {
@@ -1957,6 +2161,16 @@ export declare const requests: {
1957
2161
  user: "user";
1958
2162
  }>>;
1959
2163
  activated: z.ZodOptional<z.ZodBoolean>;
2164
+ workspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2165
+ id: z.ZodString;
2166
+ name: z.ZodString;
2167
+ slug: z.ZodString;
2168
+ role: z.ZodEnum<{
2169
+ admin: "admin";
2170
+ member: "member";
2171
+ owner: "owner";
2172
+ }>;
2173
+ }, z.core.$strip>>>;
1960
2174
  }, z.core.$strip>;
1961
2175
  };
1962
2176
  /** The codes the user hands on to others, three, each for one person. */
@@ -1973,6 +2187,289 @@ export declare const requests: {
1973
2187
  usedBy: z.ZodOptional<z.ZodString>;
1974
2188
  }, z.core.$strip>>;
1975
2189
  };
2190
+ /** Checks again now, and answers with what the `team` field then says. */
2191
+ 'team/state': {
2192
+ params: z.ZodObject<{}, z.core.$strip>;
2193
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
2194
+ state: z.ZodLiteral<"unlinked">;
2195
+ }, z.core.$strip>, z.ZodObject<{
2196
+ state: z.ZodLiteral<"invalid">;
2197
+ problem: z.ZodString;
2198
+ }, z.core.$strip>, z.ZodObject<{
2199
+ state: z.ZodLiteral<"signed-out">;
2200
+ }, z.core.$strip>, z.ZodObject<{
2201
+ state: z.ZodLiteral<"member">;
2202
+ role: z.ZodEnum<{
2203
+ admin: "admin";
2204
+ member: "member";
2205
+ owner: "owner";
2206
+ }>;
2207
+ workspace: z.ZodObject<{
2208
+ id: z.ZodString;
2209
+ name: z.ZodString;
2210
+ slug: z.ZodString;
2211
+ }, z.core.$strip>;
2212
+ project: z.ZodObject<{
2213
+ id: z.ZodString;
2214
+ name: z.ZodString;
2215
+ remoteUrl: z.ZodOptional<z.ZodString>;
2216
+ }, z.core.$strip>;
2217
+ }, z.core.$strip>, z.ZodObject<{
2218
+ state: z.ZodLiteral<"requested">;
2219
+ workspace: z.ZodObject<{
2220
+ name: z.ZodString;
2221
+ }, z.core.$strip>;
2222
+ }, z.core.$strip>, z.ZodObject<{
2223
+ state: z.ZodLiteral<"no-access">;
2224
+ workspace: z.ZodObject<{
2225
+ name: z.ZodString;
2226
+ }, z.core.$strip>;
2227
+ canRequest: z.ZodBoolean;
2228
+ }, z.core.$strip>, z.ZodObject<{
2229
+ state: z.ZodLiteral<"not-found">;
2230
+ }, z.core.$strip>, z.ZodObject<{
2231
+ state: z.ZodLiteral<"mismatch">;
2232
+ }, z.core.$strip>, z.ZodObject<{
2233
+ state: z.ZodLiteral<"offline">;
2234
+ known: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2235
+ state: z.ZodLiteral<"unlinked">;
2236
+ }, z.core.$strip>, z.ZodObject<{
2237
+ state: z.ZodLiteral<"invalid">;
2238
+ problem: z.ZodString;
2239
+ }, z.core.$strip>, z.ZodObject<{
2240
+ state: z.ZodLiteral<"signed-out">;
2241
+ }, z.core.$strip>, z.ZodObject<{
2242
+ state: z.ZodLiteral<"member">;
2243
+ role: z.ZodEnum<{
2244
+ admin: "admin";
2245
+ member: "member";
2246
+ owner: "owner";
2247
+ }>;
2248
+ workspace: z.ZodObject<{
2249
+ id: z.ZodString;
2250
+ name: z.ZodString;
2251
+ slug: z.ZodString;
2252
+ }, z.core.$strip>;
2253
+ project: z.ZodObject<{
2254
+ id: z.ZodString;
2255
+ name: z.ZodString;
2256
+ remoteUrl: z.ZodOptional<z.ZodString>;
2257
+ }, z.core.$strip>;
2258
+ }, z.core.$strip>, z.ZodObject<{
2259
+ state: z.ZodLiteral<"requested">;
2260
+ workspace: z.ZodObject<{
2261
+ name: z.ZodString;
2262
+ }, z.core.$strip>;
2263
+ }, z.core.$strip>, z.ZodObject<{
2264
+ state: z.ZodLiteral<"no-access">;
2265
+ workspace: z.ZodObject<{
2266
+ name: z.ZodString;
2267
+ }, z.core.$strip>;
2268
+ canRequest: z.ZodBoolean;
2269
+ }, z.core.$strip>, z.ZodObject<{
2270
+ state: z.ZodLiteral<"not-found">;
2271
+ }, z.core.$strip>, z.ZodObject<{
2272
+ state: z.ZodLiteral<"mismatch">;
2273
+ }, z.core.$strip>], "state">>;
2274
+ }, z.core.$strip>], "state">;
2275
+ };
2276
+ /** The workspaces the user is in, with what they agree to by linking a project, to show before they link one. */
2277
+ 'team/workspaces': {
2278
+ params: z.ZodObject<{}, z.core.$strip>;
2279
+ result: z.ZodObject<{
2280
+ workspaces: z.ZodArray<z.ZodObject<{
2281
+ id: z.ZodString;
2282
+ name: z.ZodString;
2283
+ slug: z.ZodString;
2284
+ role: z.ZodEnum<{
2285
+ admin: "admin";
2286
+ member: "member";
2287
+ owner: "owner";
2288
+ }>;
2289
+ }, z.core.$strip>>;
2290
+ consent: z.ZodString;
2291
+ }, z.core.$strip>;
2292
+ };
2293
+ 'team/projects': {
2294
+ params: z.ZodObject<{
2295
+ workspace: z.ZodString;
2296
+ }, z.core.$strip>;
2297
+ result: z.ZodArray<z.ZodObject<{
2298
+ id: z.ZodString;
2299
+ name: z.ZodString;
2300
+ remoteUrl: z.ZodString;
2301
+ }, z.core.$strip>>;
2302
+ };
2303
+ /**
2304
+ * Writes jinion.config.json at the repository's root, for `project` or for a new project made for the repository,
2305
+ * which the user then commits. A config naming another project is refused with `fileExists` unless `overwrite`.
2306
+ */
2307
+ 'team/link': {
2308
+ params: z.ZodObject<{
2309
+ workspace: z.ZodString;
2310
+ project: z.ZodOptional<z.ZodString>;
2311
+ name: z.ZodOptional<z.ZodString>;
2312
+ overwrite: z.ZodOptional<z.ZodBoolean>;
2313
+ }, z.core.$strip>;
2314
+ result: z.ZodObject<{
2315
+ path: z.ZodString;
2316
+ project: z.ZodObject<{
2317
+ id: z.ZodString;
2318
+ name: z.ZodString;
2319
+ remoteUrl: z.ZodString;
2320
+ }, z.core.$strip>;
2321
+ }, z.core.$strip>;
2322
+ };
2323
+ /** Asks the admins of the project the config names to let the user in; answers with the state after. */
2324
+ 'team/request-access': {
2325
+ params: z.ZodObject<{
2326
+ message: z.ZodOptional<z.ZodString>;
2327
+ }, z.core.$strip>;
2328
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
2329
+ state: z.ZodLiteral<"unlinked">;
2330
+ }, z.core.$strip>, z.ZodObject<{
2331
+ state: z.ZodLiteral<"invalid">;
2332
+ problem: z.ZodString;
2333
+ }, z.core.$strip>, z.ZodObject<{
2334
+ state: z.ZodLiteral<"signed-out">;
2335
+ }, z.core.$strip>, z.ZodObject<{
2336
+ state: z.ZodLiteral<"member">;
2337
+ role: z.ZodEnum<{
2338
+ admin: "admin";
2339
+ member: "member";
2340
+ owner: "owner";
2341
+ }>;
2342
+ workspace: z.ZodObject<{
2343
+ id: z.ZodString;
2344
+ name: z.ZodString;
2345
+ slug: z.ZodString;
2346
+ }, z.core.$strip>;
2347
+ project: z.ZodObject<{
2348
+ id: z.ZodString;
2349
+ name: z.ZodString;
2350
+ remoteUrl: z.ZodOptional<z.ZodString>;
2351
+ }, z.core.$strip>;
2352
+ }, z.core.$strip>, z.ZodObject<{
2353
+ state: z.ZodLiteral<"requested">;
2354
+ workspace: z.ZodObject<{
2355
+ name: z.ZodString;
2356
+ }, z.core.$strip>;
2357
+ }, z.core.$strip>, z.ZodObject<{
2358
+ state: z.ZodLiteral<"no-access">;
2359
+ workspace: z.ZodObject<{
2360
+ name: z.ZodString;
2361
+ }, z.core.$strip>;
2362
+ canRequest: z.ZodBoolean;
2363
+ }, z.core.$strip>, z.ZodObject<{
2364
+ state: z.ZodLiteral<"not-found">;
2365
+ }, z.core.$strip>, z.ZodObject<{
2366
+ state: z.ZodLiteral<"mismatch">;
2367
+ }, z.core.$strip>, z.ZodObject<{
2368
+ state: z.ZodLiteral<"offline">;
2369
+ known: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2370
+ state: z.ZodLiteral<"unlinked">;
2371
+ }, z.core.$strip>, z.ZodObject<{
2372
+ state: z.ZodLiteral<"invalid">;
2373
+ problem: z.ZodString;
2374
+ }, z.core.$strip>, z.ZodObject<{
2375
+ state: z.ZodLiteral<"signed-out">;
2376
+ }, z.core.$strip>, z.ZodObject<{
2377
+ state: z.ZodLiteral<"member">;
2378
+ role: z.ZodEnum<{
2379
+ admin: "admin";
2380
+ member: "member";
2381
+ owner: "owner";
2382
+ }>;
2383
+ workspace: z.ZodObject<{
2384
+ id: z.ZodString;
2385
+ name: z.ZodString;
2386
+ slug: z.ZodString;
2387
+ }, z.core.$strip>;
2388
+ project: z.ZodObject<{
2389
+ id: z.ZodString;
2390
+ name: z.ZodString;
2391
+ remoteUrl: z.ZodOptional<z.ZodString>;
2392
+ }, z.core.$strip>;
2393
+ }, z.core.$strip>, z.ZodObject<{
2394
+ state: z.ZodLiteral<"requested">;
2395
+ workspace: z.ZodObject<{
2396
+ name: z.ZodString;
2397
+ }, z.core.$strip>;
2398
+ }, z.core.$strip>, z.ZodObject<{
2399
+ state: z.ZodLiteral<"no-access">;
2400
+ workspace: z.ZodObject<{
2401
+ name: z.ZodString;
2402
+ }, z.core.$strip>;
2403
+ canRequest: z.ZodBoolean;
2404
+ }, z.core.$strip>, z.ZodObject<{
2405
+ state: z.ZodLiteral<"not-found">;
2406
+ }, z.core.$strip>, z.ZodObject<{
2407
+ state: z.ZodLiteral<"mismatch">;
2408
+ }, z.core.$strip>], "state">>;
2409
+ }, z.core.$strip>], "state">;
2410
+ };
2411
+ /** A decision of the project's team as this machine's copy has it, such as one a `decision` entry names; null when it has none by that id. */
2412
+ 'team/decision': {
2413
+ params: z.ZodObject<{
2414
+ id: z.ZodString;
2415
+ }, z.core.$strip>;
2416
+ result: z.ZodNullable<z.ZodObject<{
2417
+ id: z.ZodString;
2418
+ title: z.ZodString;
2419
+ decision: z.ZodString;
2420
+ reason: z.ZodString;
2421
+ turnedDown: z.ZodNullable<z.ZodString>;
2422
+ origin: z.ZodEnum<{
2423
+ agent: "agent";
2424
+ asked: "asked";
2425
+ requested: "requested";
2426
+ }>;
2427
+ status: z.ZodEnum<{
2428
+ active: "active";
2429
+ archived: "archived";
2430
+ draft: "draft";
2431
+ superseded: "superseded";
2432
+ }>;
2433
+ author: z.ZodNullable<z.ZodObject<{
2434
+ id: z.ZodNumber;
2435
+ name: z.ZodNullable<z.ZodString>;
2436
+ email: z.ZodString;
2437
+ }, z.core.$strip>>;
2438
+ backend: z.ZodString;
2439
+ model: z.ZodString;
2440
+ branch: z.ZodNullable<z.ZodString>;
2441
+ baseCommit: z.ZodNullable<z.ZodString>;
2442
+ paths: z.ZodArray<z.ZodString>;
2443
+ symbols: z.ZodArray<z.ZodString>;
2444
+ supersedes: z.ZodNullable<z.ZodString>;
2445
+ supersededBy: z.ZodNullable<z.ZodString>;
2446
+ anchors: z.ZodArray<z.ZodObject<{
2447
+ sha: z.ZodString;
2448
+ kind: z.ZodEnum<{
2449
+ commit: "commit";
2450
+ merge: "merge";
2451
+ }>;
2452
+ pullRequest: z.ZodNullable<z.ZodNumber>;
2453
+ pullRequestState: z.ZodNullable<z.ZodEnum<{
2454
+ closed: "closed";
2455
+ merged: "merged";
2456
+ open: "open";
2457
+ }>>;
2458
+ baseBranch: z.ZodNullable<z.ZodString>;
2459
+ }, z.core.$strip>>;
2460
+ createdAt: z.ZodString;
2461
+ updatedAt: z.ZodString;
2462
+ version: z.ZodString;
2463
+ }, z.core.$strip>>;
2464
+ };
2465
+ /** Its author's, or any as an admin; the `decision` entry of `session` that recorded it then says it was deleted. */
2466
+ 'team/delete-decision': {
2467
+ params: z.ZodObject<{
2468
+ id: z.ZodString;
2469
+ session: z.ZodOptional<z.ZodString>;
2470
+ }, z.core.$strip>;
2471
+ result: z.ZodNull;
2472
+ };
1976
2473
  /** A skill whose `path` the skill list gives, with its instructions and the other files of its folder. */
1977
2474
  'skills/read': {
1978
2475
  params: z.ZodObject<{
@@ -2521,6 +3018,50 @@ export declare const notificationsToClient: {
2521
3018
  }, z.core.$strip>, z.ZodObject<{
2522
3019
  type: z.ZodLiteral<"switch-agent">;
2523
3020
  agent: z.ZodString;
3021
+ }, z.core.$strip>, z.ZodObject<{
3022
+ type: z.ZodLiteral<"decision">;
3023
+ decision: z.ZodString;
3024
+ title: z.ZodString;
3025
+ origin: z.ZodEnum<{
3026
+ agent: "agent";
3027
+ asked: "asked";
3028
+ requested: "requested";
3029
+ }>;
3030
+ }, z.core.$strip>, z.ZodObject<{
3031
+ type: z.ZodLiteral<"decision-deleted">;
3032
+ decision: z.ZodString;
3033
+ }, z.core.$strip>, z.ZodObject<{
3034
+ type: z.ZodLiteral<"decision-kept">;
3035
+ decision: z.ZodString;
3036
+ title: z.ZodString;
3037
+ origin: z.ZodEnum<{
3038
+ agent: "agent";
3039
+ asked: "asked";
3040
+ requested: "requested";
3041
+ }>;
3042
+ by: z.ZodString;
3043
+ madeAt: z.ZodOptional<z.ZodString>;
3044
+ }, z.core.$strip>, z.ZodObject<{
3045
+ type: z.ZodLiteral<"decision-elsewhere">;
3046
+ decision: z.ZodString;
3047
+ title: z.ZodString;
3048
+ origin: z.ZodEnum<{
3049
+ agent: "agent";
3050
+ asked: "asked";
3051
+ requested: "requested";
3052
+ }>;
3053
+ by: z.ZodString;
3054
+ madeAt: z.ZodString;
3055
+ elsewhere: z.ZodObject<{
3056
+ branch: z.ZodNullable<z.ZodString>;
3057
+ pullRequest: z.ZodNullable<z.ZodNumber>;
3058
+ pullRequestState: z.ZodNullable<z.ZodEnum<{
3059
+ closed: "closed";
3060
+ merged: "merged";
3061
+ open: "open";
3062
+ }>>;
3063
+ paths: z.ZodArray<z.ZodString>;
3064
+ }, z.core.$strip>;
2524
3065
  }, z.core.$strip>], "type">;
2525
3066
  at: z.ZodNumber;
2526
3067
  seq: z.ZodNumber;
@@ -2604,6 +3145,42 @@ export declare const notificationsToClient: {
2604
3145
  wantsWorktree: boolean;
2605
3146
  working: boolean;
2606
3147
  ratings?: Record<string, "disliked" | "liked"> | undefined;
3148
+ decisions?: {
3149
+ decisions: {
3150
+ id: string;
3151
+ title: string;
3152
+ decision: string;
3153
+ reason: string;
3154
+ turnedDown: string | null;
3155
+ origin: "agent" | "asked" | "requested";
3156
+ status: "active" | "archived" | "draft" | "superseded";
3157
+ author: {
3158
+ id: number;
3159
+ name: string | null;
3160
+ email: string;
3161
+ } | null;
3162
+ backend: string;
3163
+ model: string;
3164
+ branch: string | null;
3165
+ baseCommit: string | null;
3166
+ paths: string[];
3167
+ symbols: string[];
3168
+ supersedes: string | null;
3169
+ supersededBy: string | null;
3170
+ anchors: {
3171
+ sha: string;
3172
+ kind: "commit" | "merge";
3173
+ pullRequest: number | null;
3174
+ pullRequestState: "closed" | "merged" | "open" | null;
3175
+ baseBranch: string | null;
3176
+ }[];
3177
+ createdAt: string;
3178
+ updatedAt: string;
3179
+ version: string;
3180
+ state: "binding" | "draft" | "dropped" | "not-pulled" | "other-branch";
3181
+ }[];
3182
+ counts: Record<"binding" | "draft" | "dropped" | "not-pulled" | "other-branch", number>;
3183
+ } | undefined;
2607
3184
  }> & {
2608
3185
  session: string;
2609
3186
  }, unknown, z.core.$ZodTypeInternals<import("./schemas.js").FieldChange<{
@@ -2684,6 +3261,42 @@ export declare const notificationsToClient: {
2684
3261
  wantsWorktree: boolean;
2685
3262
  working: boolean;
2686
3263
  ratings?: Record<string, "disliked" | "liked"> | undefined;
3264
+ decisions?: {
3265
+ decisions: {
3266
+ id: string;
3267
+ title: string;
3268
+ decision: string;
3269
+ reason: string;
3270
+ turnedDown: string | null;
3271
+ origin: "agent" | "asked" | "requested";
3272
+ status: "active" | "archived" | "draft" | "superseded";
3273
+ author: {
3274
+ id: number;
3275
+ name: string | null;
3276
+ email: string;
3277
+ } | null;
3278
+ backend: string;
3279
+ model: string;
3280
+ branch: string | null;
3281
+ baseCommit: string | null;
3282
+ paths: string[];
3283
+ symbols: string[];
3284
+ supersedes: string | null;
3285
+ supersededBy: string | null;
3286
+ anchors: {
3287
+ sha: string;
3288
+ kind: "commit" | "merge";
3289
+ pullRequest: number | null;
3290
+ pullRequestState: "closed" | "merged" | "open" | null;
3291
+ baseBranch: string | null;
3292
+ }[];
3293
+ createdAt: string;
3294
+ updatedAt: string;
3295
+ version: string;
3296
+ state: "binding" | "draft" | "dropped" | "not-pulled" | "other-branch";
3297
+ }[];
3298
+ counts: Record<"binding" | "draft" | "dropped" | "not-pulled" | "other-branch", number>;
3299
+ } | undefined;
2687
3300
  }> & {
2688
3301
  session: string;
2689
3302
  }, unknown>>;
@@ -2741,6 +3354,12 @@ export declare const notificationsToClient: {
2741
3354
  avatarUrl: string | null;
2742
3355
  role?: "admin" | "superadmin" | "user" | undefined;
2743
3356
  activated?: boolean | undefined;
3357
+ workspaces?: {
3358
+ id: string;
3359
+ name: string;
3360
+ slug: string;
3361
+ role: "admin" | "member" | "owner";
3362
+ }[] | undefined;
2744
3363
  } | null | undefined;
2745
3364
  signals?: boolean | undefined;
2746
3365
  notifications?: boolean | undefined;
@@ -2753,6 +3372,80 @@ export declare const notificationsToClient: {
2753
3372
  label: string;
2754
3373
  } | undefined;
2755
3374
  }[] | undefined;
3375
+ team?: {
3376
+ state: "unlinked";
3377
+ } | {
3378
+ state: "invalid";
3379
+ problem: string;
3380
+ } | {
3381
+ state: "signed-out";
3382
+ } | {
3383
+ state: "member";
3384
+ role: "admin" | "member" | "owner";
3385
+ workspace: {
3386
+ id: string;
3387
+ name: string;
3388
+ slug: string;
3389
+ };
3390
+ project: {
3391
+ id: string;
3392
+ name: string;
3393
+ remoteUrl?: string | undefined;
3394
+ };
3395
+ } | {
3396
+ state: "requested";
3397
+ workspace: {
3398
+ name: string;
3399
+ };
3400
+ } | {
3401
+ state: "no-access";
3402
+ workspace: {
3403
+ name: string;
3404
+ };
3405
+ canRequest: boolean;
3406
+ } | {
3407
+ state: "not-found";
3408
+ } | {
3409
+ state: "mismatch";
3410
+ } | {
3411
+ state: "offline";
3412
+ known?: {
3413
+ state: "unlinked";
3414
+ } | {
3415
+ state: "invalid";
3416
+ problem: string;
3417
+ } | {
3418
+ state: "signed-out";
3419
+ } | {
3420
+ state: "member";
3421
+ role: "admin" | "member" | "owner";
3422
+ workspace: {
3423
+ id: string;
3424
+ name: string;
3425
+ slug: string;
3426
+ };
3427
+ project: {
3428
+ id: string;
3429
+ name: string;
3430
+ remoteUrl?: string | undefined;
3431
+ };
3432
+ } | {
3433
+ state: "requested";
3434
+ workspace: {
3435
+ name: string;
3436
+ };
3437
+ } | {
3438
+ state: "no-access";
3439
+ workspace: {
3440
+ name: string;
3441
+ };
3442
+ canRequest: boolean;
3443
+ } | {
3444
+ state: "not-found";
3445
+ } | {
3446
+ state: "mismatch";
3447
+ } | undefined;
3448
+ } | undefined;
2756
3449
  }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").FieldChange<{
2757
3450
  agents: {
2758
3451
  name: string;
@@ -2807,6 +3500,12 @@ export declare const notificationsToClient: {
2807
3500
  avatarUrl: string | null;
2808
3501
  role?: "admin" | "superadmin" | "user" | undefined;
2809
3502
  activated?: boolean | undefined;
3503
+ workspaces?: {
3504
+ id: string;
3505
+ name: string;
3506
+ slug: string;
3507
+ role: "admin" | "member" | "owner";
3508
+ }[] | undefined;
2810
3509
  } | null | undefined;
2811
3510
  signals?: boolean | undefined;
2812
3511
  notifications?: boolean | undefined;
@@ -2819,6 +3518,80 @@ export declare const notificationsToClient: {
2819
3518
  label: string;
2820
3519
  } | undefined;
2821
3520
  }[] | undefined;
3521
+ team?: {
3522
+ state: "unlinked";
3523
+ } | {
3524
+ state: "invalid";
3525
+ problem: string;
3526
+ } | {
3527
+ state: "signed-out";
3528
+ } | {
3529
+ state: "member";
3530
+ role: "admin" | "member" | "owner";
3531
+ workspace: {
3532
+ id: string;
3533
+ name: string;
3534
+ slug: string;
3535
+ };
3536
+ project: {
3537
+ id: string;
3538
+ name: string;
3539
+ remoteUrl?: string | undefined;
3540
+ };
3541
+ } | {
3542
+ state: "requested";
3543
+ workspace: {
3544
+ name: string;
3545
+ };
3546
+ } | {
3547
+ state: "no-access";
3548
+ workspace: {
3549
+ name: string;
3550
+ };
3551
+ canRequest: boolean;
3552
+ } | {
3553
+ state: "not-found";
3554
+ } | {
3555
+ state: "mismatch";
3556
+ } | {
3557
+ state: "offline";
3558
+ known?: {
3559
+ state: "unlinked";
3560
+ } | {
3561
+ state: "invalid";
3562
+ problem: string;
3563
+ } | {
3564
+ state: "signed-out";
3565
+ } | {
3566
+ state: "member";
3567
+ role: "admin" | "member" | "owner";
3568
+ workspace: {
3569
+ id: string;
3570
+ name: string;
3571
+ slug: string;
3572
+ };
3573
+ project: {
3574
+ id: string;
3575
+ name: string;
3576
+ remoteUrl?: string | undefined;
3577
+ };
3578
+ } | {
3579
+ state: "requested";
3580
+ workspace: {
3581
+ name: string;
3582
+ };
3583
+ } | {
3584
+ state: "no-access";
3585
+ workspace: {
3586
+ name: string;
3587
+ };
3588
+ canRequest: boolean;
3589
+ } | {
3590
+ state: "not-found";
3591
+ } | {
3592
+ state: "mismatch";
3593
+ } | undefined;
3594
+ } | undefined;
2822
3595
  }>, unknown>>;
2823
3596
  /** A command asked to show something, such as a picker. */
2824
3597
  'screen/view': z.ZodObject<{
@@ -2873,6 +3646,10 @@ export declare const notificationsToClient: {
2873
3646
  id: z.ZodLiteral<"map">;
2874
3647
  }, z.core.$strip>, z.ZodObject<{
2875
3648
  id: z.ZodLiteral<"release-notes">;
3649
+ }, z.core.$strip>, z.ZodObject<{
3650
+ id: z.ZodLiteral<"decisions">;
3651
+ }, z.core.$strip>, z.ZodObject<{
3652
+ id: z.ZodLiteral<"link">;
2876
3653
  }, z.core.$strip>], "id">;
2877
3654
  }, z.core.$strip>;
2878
3655
  /** Text for the prompt of `session`, e.g. the message a rewind went back to. */