@kingsoftcloud/ksadk-web 0.3.11 → 0.3.12

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 (84) hide show
  1. package/RELEASE_PROVENANCE.json +2 -2
  2. package/dist-lib/{AttachmentPreview-tjd7Ufsh.js → AttachmentPreview-HLpbjOnQ.js} +1 -1
  3. package/dist-lib/{ConnectedComposer-BaRxxvhk.js → ConnectedComposer-CeWPgOn2.js} +1 -1
  4. package/dist-lib/{ConnectedMessageList-XLBootgU.js → ConnectedMessageList-D3HWHCh2.js} +1 -1
  5. package/dist-lib/{InteractionSchemaForm-BNoW5wzt.js → InteractionSchemaForm-Du9NT4E8.js} +1 -1
  6. package/dist-lib/chat-composer.js +2 -2
  7. package/dist-lib/chat-timeline.js +2 -2
  8. package/dist-lib/cloudMaterials-BlIAT-PA.js +2491 -0
  9. package/dist-lib/components/teams/CloudEffectsPanel.d.ts +15 -0
  10. package/dist-lib/components/teams/CloudEffectsPanel.d.ts.map +1 -0
  11. package/dist-lib/components/teams/CloudTeamWorkspace.d.ts +38 -0
  12. package/dist-lib/components/teams/CloudTeamWorkspace.d.ts.map +1 -0
  13. package/dist-lib/components/teams/CreateGroupDialog.d.ts +3 -1
  14. package/dist-lib/components/teams/CreateGroupDialog.d.ts.map +1 -1
  15. package/dist-lib/components.js +3 -3
  16. package/dist-lib/core/teams/cloudCanonical.d.ts +11 -0
  17. package/dist-lib/core/teams/cloudCanonical.d.ts.map +1 -0
  18. package/dist-lib/core/teams/cloudClient.d.ts +30 -0
  19. package/dist-lib/core/teams/cloudClient.d.ts.map +1 -0
  20. package/dist-lib/core/teams/cloudContracts.d.ts +1499 -0
  21. package/dist-lib/core/teams/cloudContracts.d.ts.map +1 -0
  22. package/dist-lib/core/teams/cloudEffects.d.ts +167 -0
  23. package/dist-lib/core/teams/cloudEffects.d.ts.map +1 -0
  24. package/dist-lib/core/teams/cloudExtendedContracts.d.ts +1014 -0
  25. package/dist-lib/core/teams/cloudExtendedContracts.d.ts.map +1 -0
  26. package/dist-lib/core/teams/cloudMaterials.d.ts +83 -0
  27. package/dist-lib/core/teams/cloudMaterials.d.ts.map +1 -0
  28. package/dist-lib/core/teams/cloudOperations.d.ts +30 -0
  29. package/dist-lib/core/teams/cloudOperations.d.ts.map +1 -0
  30. package/dist-lib/core/teams/cloudProductClient.d.ts +177 -0
  31. package/dist-lib/core/teams/cloudProductClient.d.ts.map +1 -0
  32. package/dist-lib/core/teams/cloudScope.d.ts +6 -0
  33. package/dist-lib/core/teams/cloudScope.d.ts.map +1 -0
  34. package/dist-lib/core/teams/operationOutbox.d.ts +138 -0
  35. package/dist-lib/core/teams/operationOutbox.d.ts.map +1 -0
  36. package/dist-lib/core/teams/workspaceContracts.d.ts +1696 -0
  37. package/dist-lib/core/teams/workspaceContracts.d.ts.map +1 -0
  38. package/dist-lib/core/teams/workspaceObserver.d.ts +49 -0
  39. package/dist-lib/core/teams/workspaceObserver.d.ts.map +1 -0
  40. package/dist-lib/core/teams/workspaceReducer.d.ts +37 -0
  41. package/dist-lib/core/teams/workspaceReducer.d.ts.map +1 -0
  42. package/dist-lib/public/team-components.d.ts +1 -0
  43. package/dist-lib/public/team-components.d.ts.map +1 -1
  44. package/dist-lib/public/teams.d.ts +11 -0
  45. package/dist-lib/public/teams.d.ts.map +1 -1
  46. package/dist-lib/runtime.js +2 -2
  47. package/dist-lib/team-components.js +1875 -750
  48. package/dist-lib/teams.css +54 -0
  49. package/dist-lib/teams.js +685 -31
  50. package/package.json +2 -1
  51. package/schemas/teams-cloud/v1/binding-probe-permit.schema.json +1 -0
  52. package/schemas/teams-cloud/v1/build-artifact-lookup-input.schema.json +1 -0
  53. package/schemas/teams-cloud/v1/build-artifact-lookup-result.schema.json +1 -0
  54. package/schemas/teams-cloud/v1/build-artifact-receipt.schema.json +1 -0
  55. package/schemas/teams-cloud/v1/build-manifest.schema.json +1 -0
  56. package/schemas/teams-cloud/v1/callback-permit.schema.json +1 -0
  57. package/schemas/teams-cloud/v1/canonical-event-batch.schema.json +1 -0
  58. package/schemas/teams-cloud/v1/deployment-artifact-receipt.schema.json +1 -0
  59. package/schemas/teams-cloud/v1/effect-outcome.schema.json +1 -0
  60. package/schemas/teams-cloud/v1/effect-prepared-receipt.schema.json +1 -0
  61. package/schemas/teams-cloud/v1/effect-projection-page.schema.json +1 -0
  62. package/schemas/teams-cloud/v1/effect-projection.schema.json +1 -0
  63. package/schemas/teams-cloud/v1/effect-reconcile-input.schema.json +1 -0
  64. package/schemas/teams-cloud/v1/effect-record.schema.json +1 -0
  65. package/schemas/teams-cloud/v1/effect-report-receipt.schema.json +1 -0
  66. package/schemas/teams-cloud/v1/effect-request.schema.json +1 -0
  67. package/schemas/teams-cloud/v1/execution-effects-page.schema.json +1 -0
  68. package/schemas/teams-cloud/v1/execution-effects-request.schema.json +1 -0
  69. package/schemas/teams-cloud/v1/execution-permit.schema.json +1 -0
  70. package/schemas/teams-cloud/v1/execution-reference.schema.json +1 -0
  71. package/schemas/teams-cloud/v1/execution-result.schema.json +1 -0
  72. package/schemas/teams-cloud/v1/host-operation-result.schema.json +1 -0
  73. package/schemas/teams-cloud/v1/host-receipt.schema.json +1 -0
  74. package/schemas/teams-cloud/v1/loaded-build-evidence.schema.json +1 -0
  75. package/schemas/teams-cloud/v1/manifest.json +43 -0
  76. package/schemas/teams-cloud/v1/material-create.schema.json +1 -0
  77. package/schemas/teams-cloud/v1/material-manifest.schema.json +1 -0
  78. package/schemas/teams-cloud/v1/node-command.schema.json +1 -0
  79. package/schemas/teams-cloud/v1/node-probe-command.schema.json +1 -0
  80. package/schemas/teams-cloud/v1/node-probe-report.schema.json +1 -0
  81. package/schemas/teams-cloud/v1/node-report.schema.json +1 -0
  82. package/schemas/teams-cloud/v1/release-verification-receipt.schema.json +1 -0
  83. package/schemas/teams-cloud/v1/release-verify-input.schema.json +1 -0
  84. package/dist-lib/reducer-gQmR9Qb9.js +0 -424
@@ -0,0 +1,1696 @@
1
+ import { z } from 'zod';
2
+ export declare const TEAMS_WORKSPACE_VERSION: "workspace/v1";
3
+ export declare const WORKSPACE_COLLECTIONS: readonly ["runSummaries", "taskSummaries", "pendingInteractions", "recentMessages", "artifactSummaries"];
4
+ export type WorkspaceCollection = typeof WORKSPACE_COLLECTIONS[number];
5
+ export declare const workspaceScopeSchema: z.ZodObject<{
6
+ authorityId: z.ZodString;
7
+ ownerScopeRef: z.ZodString;
8
+ groupId: z.ZodString;
9
+ }, z.core.$strict>;
10
+ export type WorkspaceScope = z.infer<typeof workspaceScopeSchema>;
11
+ export type WorkspaceClientScope = WorkspaceScope & {
12
+ origin: string;
13
+ };
14
+ export declare const workspaceClientScopeSchema: z.ZodObject<{
15
+ authorityId: z.ZodString;
16
+ ownerScopeRef: z.ZodString;
17
+ groupId: z.ZodString;
18
+ origin: z.ZodString;
19
+ }, z.core.$strict>;
20
+ export declare const workspaceGroupSchema: z.ZodObject<{
21
+ groupId: z.ZodString;
22
+ name: z.ZodString;
23
+ authorityRef: z.ZodString;
24
+ tenantId: z.ZodString;
25
+ ownerSubject: z.ZodString;
26
+ leaderMemberId: z.ZodString;
27
+ revision: z.ZodNumber;
28
+ status: z.ZodEnum<{
29
+ active: "active";
30
+ archived: "archived";
31
+ }>;
32
+ createdAt: z.ZodISODateTime;
33
+ updatedAt: z.ZodISODateTime;
34
+ policy: z.ZodObject<{
35
+ taskAcceptance: z.ZodEnum<{
36
+ leader: "leader";
37
+ human: "human";
38
+ result: "result";
39
+ }>;
40
+ peerWake: z.ZodBoolean;
41
+ }, z.core.$strict>;
42
+ }, z.core.$strict>;
43
+ export declare const workspaceBindingSchema: z.ZodObject<{
44
+ bindingRef: z.ZodString;
45
+ providerRef: z.ZodString;
46
+ kind: z.ZodEnum<{
47
+ local_build: "local_build";
48
+ a2a: "a2a";
49
+ cloud: "cloud";
50
+ }>;
51
+ agentId: z.ZodString;
52
+ capabilities: z.ZodObject<{
53
+ enqueue: z.ZodBoolean;
54
+ cancel: z.ZodBoolean;
55
+ steer: z.ZodBoolean;
56
+ restore: z.ZodBoolean;
57
+ interaction: z.ZodBoolean;
58
+ leader: z.ZodBoolean;
59
+ }, z.core.$strict>;
60
+ availability: z.ZodObject<{
61
+ state: z.ZodEnum<{
62
+ unavailable: "unavailable";
63
+ ready: "ready";
64
+ unchecked: "unchecked";
65
+ }>;
66
+ code: z.ZodNullable<z.ZodString>;
67
+ reason: z.ZodNullable<z.ZodString>;
68
+ action: z.ZodNullable<z.ZodString>;
69
+ }, z.core.$strict>;
70
+ }, z.core.$strict>;
71
+ export declare const workspaceMemberSchema: z.ZodObject<{
72
+ memberId: z.ZodString;
73
+ groupId: z.ZodString;
74
+ name: z.ZodString;
75
+ role: z.ZodEnum<{
76
+ leader: "leader";
77
+ member: "member";
78
+ }>;
79
+ responsibility: z.ZodString;
80
+ bindingRef: z.ZodString;
81
+ binding: z.ZodObject<{
82
+ bindingRef: z.ZodString;
83
+ providerRef: z.ZodString;
84
+ kind: z.ZodEnum<{
85
+ local_build: "local_build";
86
+ a2a: "a2a";
87
+ cloud: "cloud";
88
+ }>;
89
+ agentId: z.ZodString;
90
+ capabilities: z.ZodObject<{
91
+ enqueue: z.ZodBoolean;
92
+ cancel: z.ZodBoolean;
93
+ steer: z.ZodBoolean;
94
+ restore: z.ZodBoolean;
95
+ interaction: z.ZodBoolean;
96
+ leader: z.ZodBoolean;
97
+ }, z.core.$strict>;
98
+ availability: z.ZodObject<{
99
+ state: z.ZodEnum<{
100
+ unavailable: "unavailable";
101
+ ready: "ready";
102
+ unchecked: "unchecked";
103
+ }>;
104
+ code: z.ZodNullable<z.ZodString>;
105
+ reason: z.ZodNullable<z.ZodString>;
106
+ action: z.ZodNullable<z.ZodString>;
107
+ }, z.core.$strict>;
108
+ }, z.core.$strict>;
109
+ sessionId: z.ZodString;
110
+ revision: z.ZodNumber;
111
+ status: z.ZodEnum<{
112
+ unavailable: "unavailable";
113
+ active: "active";
114
+ removed: "removed";
115
+ }>;
116
+ executionStatus: z.ZodEnum<{
117
+ unavailable: "unavailable";
118
+ running: "running";
119
+ waiting: "waiting";
120
+ idle: "idle";
121
+ needs_attention: "needs_attention";
122
+ queued: "queued";
123
+ }>;
124
+ activeRunId: z.ZodNullable<z.ZodString>;
125
+ reason: z.ZodNullable<z.ZodString>;
126
+ }, z.core.$strict>;
127
+ export declare const workspaceRunMemberSchema: z.ZodObject<{
128
+ memberId: z.ZodString;
129
+ groupId: z.ZodString;
130
+ name: z.ZodString;
131
+ role: z.ZodEnum<{
132
+ leader: "leader";
133
+ member: "member";
134
+ }>;
135
+ responsibility: z.ZodString;
136
+ bindingRef: z.ZodString;
137
+ binding: z.ZodObject<{
138
+ bindingRef: z.ZodString;
139
+ providerRef: z.ZodString;
140
+ kind: z.ZodEnum<{
141
+ local_build: "local_build";
142
+ a2a: "a2a";
143
+ cloud: "cloud";
144
+ }>;
145
+ agentId: z.ZodString;
146
+ capabilities: z.ZodObject<{
147
+ enqueue: z.ZodBoolean;
148
+ cancel: z.ZodBoolean;
149
+ steer: z.ZodBoolean;
150
+ restore: z.ZodBoolean;
151
+ interaction: z.ZodBoolean;
152
+ leader: z.ZodBoolean;
153
+ }, z.core.$strict>;
154
+ availability: z.ZodObject<{
155
+ state: z.ZodEnum<{
156
+ unavailable: "unavailable";
157
+ ready: "ready";
158
+ unchecked: "unchecked";
159
+ }>;
160
+ code: z.ZodNullable<z.ZodString>;
161
+ reason: z.ZodNullable<z.ZodString>;
162
+ action: z.ZodNullable<z.ZodString>;
163
+ }, z.core.$strict>;
164
+ }, z.core.$strict>;
165
+ sessionId: z.ZodString;
166
+ revision: z.ZodNumber;
167
+ status: z.ZodEnum<{
168
+ unavailable: "unavailable";
169
+ active: "active";
170
+ removed: "removed";
171
+ }>;
172
+ executionStatus: z.ZodEnum<{
173
+ unavailable: "unavailable";
174
+ running: "running";
175
+ waiting: "waiting";
176
+ idle: "idle";
177
+ needs_attention: "needs_attention";
178
+ queued: "queued";
179
+ }>;
180
+ activeRunId: z.ZodNullable<z.ZodString>;
181
+ reason: z.ZodNullable<z.ZodString>;
182
+ runMemberId: z.ZodString;
183
+ teamRunId: z.ZodString;
184
+ groupRevision: z.ZodNumber;
185
+ }, z.core.$strict>;
186
+ export declare const workspaceLeaderStandbySchema: z.ZodObject<{
187
+ state: z.ZodEnum<{
188
+ blocked: "blocked";
189
+ active: "active";
190
+ armed: "armed";
191
+ fencing_old: "fencing_old";
192
+ waiting_old_grant: "waiting_old_grant";
193
+ activating: "activating";
194
+ }>;
195
+ standbyBindingRef: z.ZodString;
196
+ releaseRef: z.ZodString;
197
+ takeoverId: z.ZodNullable<z.ZodString>;
198
+ reason: z.ZodNullable<z.ZodString>;
199
+ newLeaderEpoch: z.ZodNullable<z.ZodNumber>;
200
+ }, z.core.$strict>;
201
+ export type WorkspaceLeaderStandby = z.infer<typeof workspaceLeaderStandbySchema>;
202
+ export declare const workspaceRunSummarySchema: z.ZodObject<{
203
+ teamRunId: z.ZodString;
204
+ groupId: z.ZodString;
205
+ revision: z.ZodNumber;
206
+ groupRevision: z.ZodNumber;
207
+ goalMessageId: z.ZodString;
208
+ goal: z.ZodString;
209
+ leaderMemberId: z.ZodString;
210
+ status: z.ZodEnum<{
211
+ running: "running";
212
+ waiting: "waiting";
213
+ failed: "failed";
214
+ cancelled: "cancelled";
215
+ planning: "planning";
216
+ needs_attention: "needs_attention";
217
+ awaiting_acceptance: "awaiting_acceptance";
218
+ succeeded: "succeeded";
219
+ cancel_requested: "cancel_requested";
220
+ }>;
221
+ dispatchSuspended: z.ZodBoolean;
222
+ dispatchEpoch: z.ZodNumber;
223
+ taskCount: z.ZodNumber;
224
+ pendingCount: z.ZodNumber;
225
+ createdAt: z.ZodISODateTime;
226
+ updatedAt: z.ZodISODateTime;
227
+ reason: z.ZodNullable<z.ZodString>;
228
+ leaderStandby: z.ZodOptional<z.ZodObject<{
229
+ state: z.ZodEnum<{
230
+ blocked: "blocked";
231
+ active: "active";
232
+ armed: "armed";
233
+ fencing_old: "fencing_old";
234
+ waiting_old_grant: "waiting_old_grant";
235
+ activating: "activating";
236
+ }>;
237
+ standbyBindingRef: z.ZodString;
238
+ releaseRef: z.ZodString;
239
+ takeoverId: z.ZodNullable<z.ZodString>;
240
+ reason: z.ZodNullable<z.ZodString>;
241
+ newLeaderEpoch: z.ZodNullable<z.ZodNumber>;
242
+ }, z.core.$strict>>;
243
+ }, z.core.$strict>;
244
+ export declare const workspaceTaskSummarySchema: z.ZodObject<{
245
+ taskId: z.ZodString;
246
+ groupId: z.ZodString;
247
+ teamRunId: z.ZodString;
248
+ revision: z.ZodNumber;
249
+ title: z.ZodString;
250
+ ownerMemberId: z.ZodNullable<z.ZodString>;
251
+ dependencies: z.ZodArray<z.ZodString>;
252
+ status: z.ZodEnum<{
253
+ running: "running";
254
+ failed: "failed";
255
+ ready: "ready";
256
+ cancelled: "cancelled";
257
+ awaiting_acceptance: "awaiting_acceptance";
258
+ succeeded: "succeeded";
259
+ cancel_requested: "cancel_requested";
260
+ draft: "draft";
261
+ blocked: "blocked";
262
+ }>;
263
+ attemptCount: z.ZodNumber;
264
+ reason: z.ZodNullable<z.ZodString>;
265
+ }, z.core.$strict>;
266
+ export declare const workspaceInteractionSchema: z.ZodObject<{
267
+ ref: z.ZodObject<{
268
+ authorityRef: z.ZodString;
269
+ groupId: z.ZodString;
270
+ memberId: z.ZodString;
271
+ bindingRef: z.ZodString;
272
+ providerRef: z.ZodString;
273
+ sessionId: z.ZodString;
274
+ runId: z.ZodString;
275
+ itemId: z.ZodOptional<z.ZodString>;
276
+ interactionId: z.ZodString;
277
+ }, z.core.$strict>;
278
+ groupId: z.ZodString;
279
+ teamRunId: z.ZodString;
280
+ revision: z.ZodNumber;
281
+ title: z.ZodString;
282
+ kind: z.ZodEnum<{
283
+ input: "input";
284
+ approval: "approval";
285
+ }>;
286
+ status: z.ZodEnum<{
287
+ pending: "pending";
288
+ resolving: "resolving";
289
+ resolved: "resolved";
290
+ cancelled: "cancelled";
291
+ expired: "expired";
292
+ }>;
293
+ createdAt: z.ZodISODateTime;
294
+ }, z.core.$strict>;
295
+ export declare const workspaceMessageSchema: z.ZodObject<{
296
+ messageId: z.ZodString;
297
+ groupId: z.ZodString;
298
+ teamRunId: z.ZodNullable<z.ZodString>;
299
+ revision: z.ZodNumber;
300
+ createdSeq: z.ZodNumber;
301
+ createdAt: z.ZodISODateTime;
302
+ senderPrincipal: z.ZodString;
303
+ senderName: z.ZodString;
304
+ groupRole: z.ZodEnum<{
305
+ system: "system";
306
+ owner: "owner";
307
+ leader: "leader";
308
+ member: "member";
309
+ }>;
310
+ memberId: z.ZodNullable<z.ZodString>;
311
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
312
+ kind: z.ZodLiteral<"text">;
313
+ text: z.ZodString;
314
+ }, z.core.$strict>, z.ZodObject<{
315
+ kind: z.ZodLiteral<"attachment">;
316
+ attachmentRef: z.ZodString;
317
+ mediaType: z.ZodString;
318
+ name: z.ZodOptional<z.ZodString>;
319
+ }, z.core.$strict>], "kind">>;
320
+ mentions: z.ZodArray<z.ZodString>;
321
+ intent: z.ZodEnum<{
322
+ progress: "progress";
323
+ note: "note";
324
+ result: "result";
325
+ start_goal: "start_goal";
326
+ followup: "followup";
327
+ directed: "directed";
328
+ }>;
329
+ replyTo: z.ZodNullable<z.ZodString>;
330
+ sourceRefs: z.ZodArray<z.ZodObject<{
331
+ authorityRef: z.ZodString;
332
+ groupId: z.ZodString;
333
+ memberId: z.ZodString;
334
+ bindingRef: z.ZodString;
335
+ providerRef: z.ZodString;
336
+ sessionId: z.ZodString;
337
+ runId: z.ZodString;
338
+ itemId: z.ZodOptional<z.ZodString>;
339
+ }, z.core.$strict>>;
340
+ visibility: z.ZodEnum<{
341
+ public: "public";
342
+ internal: "internal";
343
+ }>;
344
+ }, z.core.$strict>;
345
+ export declare const workspaceArtifactSchema: z.ZodObject<{
346
+ artifactId: z.ZodString;
347
+ groupId: z.ZodString;
348
+ teamRunId: z.ZodString;
349
+ revision: z.ZodNumber;
350
+ name: z.ZodString;
351
+ mediaType: z.ZodString;
352
+ source: z.ZodObject<{
353
+ authorityRef: z.ZodString;
354
+ groupId: z.ZodString;
355
+ memberId: z.ZodString;
356
+ bindingRef: z.ZodString;
357
+ providerRef: z.ZodString;
358
+ sessionId: z.ZodString;
359
+ runId: z.ZodString;
360
+ itemId: z.ZodOptional<z.ZodString>;
361
+ }, z.core.$strict>;
362
+ digest: z.ZodString;
363
+ sizeBytes: z.ZodNumber;
364
+ state: z.ZodEnum<{
365
+ failed: "failed";
366
+ ready: "ready";
367
+ pending: "pending";
368
+ }>;
369
+ }, z.core.$strict>;
370
+ export type WorkspaceGroup = z.infer<typeof workspaceGroupSchema>;
371
+ export type WorkspaceMember = z.infer<typeof workspaceMemberSchema>;
372
+ export type WorkspaceRunMember = z.infer<typeof workspaceRunMemberSchema>;
373
+ export type WorkspaceRunSummary = z.infer<typeof workspaceRunSummarySchema>;
374
+ export type WorkspaceTaskSummary = z.infer<typeof workspaceTaskSummarySchema>;
375
+ export type WorkspaceInteraction = z.infer<typeof workspaceInteractionSchema>;
376
+ export type WorkspaceMessage = z.infer<typeof workspaceMessageSchema>;
377
+ export type WorkspaceArtifact = z.infer<typeof workspaceArtifactSchema>;
378
+ export type WorkspaceRow = WorkspaceRunSummary | WorkspaceTaskSummary | WorkspaceInteraction | WorkspaceMessage | WorkspaceArtifact;
379
+ export declare function workspaceScopeKey(scope: WorkspaceScope): string;
380
+ export declare function workspaceClientScopeKey(scope: WorkspaceClientScope): string;
381
+ export declare function workspaceInteractionKey(value: WorkspaceInteraction): string;
382
+ export declare function workspaceRowKey(collection: WorkspaceCollection, value: WorkspaceRow): string;
383
+ export declare const teamWorkspaceSnapshotSchema: z.ZodObject<{
384
+ apiVersion: z.ZodLiteral<"teams.ksadk.io/v1">;
385
+ viewVersion: z.ZodLiteral<"workspace/v1">;
386
+ scope: z.ZodObject<{
387
+ authorityId: z.ZodString;
388
+ ownerScopeRef: z.ZodString;
389
+ groupId: z.ZodString;
390
+ }, z.core.$strict>;
391
+ snapshotId: z.ZodString;
392
+ watermark: z.ZodNumber;
393
+ group: z.ZodObject<{
394
+ groupId: z.ZodString;
395
+ name: z.ZodString;
396
+ authorityRef: z.ZodString;
397
+ tenantId: z.ZodString;
398
+ ownerSubject: z.ZodString;
399
+ leaderMemberId: z.ZodString;
400
+ revision: z.ZodNumber;
401
+ status: z.ZodEnum<{
402
+ active: "active";
403
+ archived: "archived";
404
+ }>;
405
+ createdAt: z.ZodISODateTime;
406
+ updatedAt: z.ZodISODateTime;
407
+ policy: z.ZodObject<{
408
+ taskAcceptance: z.ZodEnum<{
409
+ leader: "leader";
410
+ human: "human";
411
+ result: "result";
412
+ }>;
413
+ peerWake: z.ZodBoolean;
414
+ }, z.core.$strict>;
415
+ }, z.core.$strict>;
416
+ members: z.ZodArray<z.ZodObject<{
417
+ memberId: z.ZodString;
418
+ groupId: z.ZodString;
419
+ name: z.ZodString;
420
+ role: z.ZodEnum<{
421
+ leader: "leader";
422
+ member: "member";
423
+ }>;
424
+ responsibility: z.ZodString;
425
+ bindingRef: z.ZodString;
426
+ binding: z.ZodObject<{
427
+ bindingRef: z.ZodString;
428
+ providerRef: z.ZodString;
429
+ kind: z.ZodEnum<{
430
+ local_build: "local_build";
431
+ a2a: "a2a";
432
+ cloud: "cloud";
433
+ }>;
434
+ agentId: z.ZodString;
435
+ capabilities: z.ZodObject<{
436
+ enqueue: z.ZodBoolean;
437
+ cancel: z.ZodBoolean;
438
+ steer: z.ZodBoolean;
439
+ restore: z.ZodBoolean;
440
+ interaction: z.ZodBoolean;
441
+ leader: z.ZodBoolean;
442
+ }, z.core.$strict>;
443
+ availability: z.ZodObject<{
444
+ state: z.ZodEnum<{
445
+ unavailable: "unavailable";
446
+ ready: "ready";
447
+ unchecked: "unchecked";
448
+ }>;
449
+ code: z.ZodNullable<z.ZodString>;
450
+ reason: z.ZodNullable<z.ZodString>;
451
+ action: z.ZodNullable<z.ZodString>;
452
+ }, z.core.$strict>;
453
+ }, z.core.$strict>;
454
+ sessionId: z.ZodString;
455
+ revision: z.ZodNumber;
456
+ status: z.ZodEnum<{
457
+ unavailable: "unavailable";
458
+ active: "active";
459
+ removed: "removed";
460
+ }>;
461
+ executionStatus: z.ZodEnum<{
462
+ unavailable: "unavailable";
463
+ running: "running";
464
+ waiting: "waiting";
465
+ idle: "idle";
466
+ needs_attention: "needs_attention";
467
+ queued: "queued";
468
+ }>;
469
+ activeRunId: z.ZodNullable<z.ZodString>;
470
+ reason: z.ZodNullable<z.ZodString>;
471
+ }, z.core.$strict>>;
472
+ runSummaries: z.ZodArray<z.ZodObject<{
473
+ teamRunId: z.ZodString;
474
+ groupId: z.ZodString;
475
+ revision: z.ZodNumber;
476
+ groupRevision: z.ZodNumber;
477
+ goalMessageId: z.ZodString;
478
+ goal: z.ZodString;
479
+ leaderMemberId: z.ZodString;
480
+ status: z.ZodEnum<{
481
+ running: "running";
482
+ waiting: "waiting";
483
+ failed: "failed";
484
+ cancelled: "cancelled";
485
+ planning: "planning";
486
+ needs_attention: "needs_attention";
487
+ awaiting_acceptance: "awaiting_acceptance";
488
+ succeeded: "succeeded";
489
+ cancel_requested: "cancel_requested";
490
+ }>;
491
+ dispatchSuspended: z.ZodBoolean;
492
+ dispatchEpoch: z.ZodNumber;
493
+ taskCount: z.ZodNumber;
494
+ pendingCount: z.ZodNumber;
495
+ createdAt: z.ZodISODateTime;
496
+ updatedAt: z.ZodISODateTime;
497
+ reason: z.ZodNullable<z.ZodString>;
498
+ leaderStandby: z.ZodOptional<z.ZodObject<{
499
+ state: z.ZodEnum<{
500
+ blocked: "blocked";
501
+ active: "active";
502
+ armed: "armed";
503
+ fencing_old: "fencing_old";
504
+ waiting_old_grant: "waiting_old_grant";
505
+ activating: "activating";
506
+ }>;
507
+ standbyBindingRef: z.ZodString;
508
+ releaseRef: z.ZodString;
509
+ takeoverId: z.ZodNullable<z.ZodString>;
510
+ reason: z.ZodNullable<z.ZodString>;
511
+ newLeaderEpoch: z.ZodNullable<z.ZodNumber>;
512
+ }, z.core.$strict>>;
513
+ }, z.core.$strict>>;
514
+ selectedRun: z.ZodNullable<z.ZodObject<{
515
+ teamRunId: z.ZodString;
516
+ groupId: z.ZodString;
517
+ revision: z.ZodNumber;
518
+ groupRevision: z.ZodNumber;
519
+ goalMessageId: z.ZodString;
520
+ goal: z.ZodString;
521
+ leaderMemberId: z.ZodString;
522
+ status: z.ZodEnum<{
523
+ running: "running";
524
+ waiting: "waiting";
525
+ failed: "failed";
526
+ cancelled: "cancelled";
527
+ planning: "planning";
528
+ needs_attention: "needs_attention";
529
+ awaiting_acceptance: "awaiting_acceptance";
530
+ succeeded: "succeeded";
531
+ cancel_requested: "cancel_requested";
532
+ }>;
533
+ dispatchSuspended: z.ZodBoolean;
534
+ dispatchEpoch: z.ZodNumber;
535
+ taskCount: z.ZodNumber;
536
+ pendingCount: z.ZodNumber;
537
+ createdAt: z.ZodISODateTime;
538
+ updatedAt: z.ZodISODateTime;
539
+ reason: z.ZodNullable<z.ZodString>;
540
+ leaderStandby: z.ZodOptional<z.ZodObject<{
541
+ state: z.ZodEnum<{
542
+ blocked: "blocked";
543
+ active: "active";
544
+ armed: "armed";
545
+ fencing_old: "fencing_old";
546
+ waiting_old_grant: "waiting_old_grant";
547
+ activating: "activating";
548
+ }>;
549
+ standbyBindingRef: z.ZodString;
550
+ releaseRef: z.ZodString;
551
+ takeoverId: z.ZodNullable<z.ZodString>;
552
+ reason: z.ZodNullable<z.ZodString>;
553
+ newLeaderEpoch: z.ZodNullable<z.ZodNumber>;
554
+ }, z.core.$strict>>;
555
+ }, z.core.$strict>>;
556
+ selectedRunMembers: z.ZodArray<z.ZodObject<{
557
+ memberId: z.ZodString;
558
+ groupId: z.ZodString;
559
+ name: z.ZodString;
560
+ role: z.ZodEnum<{
561
+ leader: "leader";
562
+ member: "member";
563
+ }>;
564
+ responsibility: z.ZodString;
565
+ bindingRef: z.ZodString;
566
+ binding: z.ZodObject<{
567
+ bindingRef: z.ZodString;
568
+ providerRef: z.ZodString;
569
+ kind: z.ZodEnum<{
570
+ local_build: "local_build";
571
+ a2a: "a2a";
572
+ cloud: "cloud";
573
+ }>;
574
+ agentId: z.ZodString;
575
+ capabilities: z.ZodObject<{
576
+ enqueue: z.ZodBoolean;
577
+ cancel: z.ZodBoolean;
578
+ steer: z.ZodBoolean;
579
+ restore: z.ZodBoolean;
580
+ interaction: z.ZodBoolean;
581
+ leader: z.ZodBoolean;
582
+ }, z.core.$strict>;
583
+ availability: z.ZodObject<{
584
+ state: z.ZodEnum<{
585
+ unavailable: "unavailable";
586
+ ready: "ready";
587
+ unchecked: "unchecked";
588
+ }>;
589
+ code: z.ZodNullable<z.ZodString>;
590
+ reason: z.ZodNullable<z.ZodString>;
591
+ action: z.ZodNullable<z.ZodString>;
592
+ }, z.core.$strict>;
593
+ }, z.core.$strict>;
594
+ sessionId: z.ZodString;
595
+ revision: z.ZodNumber;
596
+ status: z.ZodEnum<{
597
+ unavailable: "unavailable";
598
+ active: "active";
599
+ removed: "removed";
600
+ }>;
601
+ executionStatus: z.ZodEnum<{
602
+ unavailable: "unavailable";
603
+ running: "running";
604
+ waiting: "waiting";
605
+ idle: "idle";
606
+ needs_attention: "needs_attention";
607
+ queued: "queued";
608
+ }>;
609
+ activeRunId: z.ZodNullable<z.ZodString>;
610
+ reason: z.ZodNullable<z.ZodString>;
611
+ runMemberId: z.ZodString;
612
+ teamRunId: z.ZodString;
613
+ groupRevision: z.ZodNumber;
614
+ }, z.core.$strict>>;
615
+ taskSummaries: z.ZodArray<z.ZodObject<{
616
+ taskId: z.ZodString;
617
+ groupId: z.ZodString;
618
+ teamRunId: z.ZodString;
619
+ revision: z.ZodNumber;
620
+ title: z.ZodString;
621
+ ownerMemberId: z.ZodNullable<z.ZodString>;
622
+ dependencies: z.ZodArray<z.ZodString>;
623
+ status: z.ZodEnum<{
624
+ running: "running";
625
+ failed: "failed";
626
+ ready: "ready";
627
+ cancelled: "cancelled";
628
+ awaiting_acceptance: "awaiting_acceptance";
629
+ succeeded: "succeeded";
630
+ cancel_requested: "cancel_requested";
631
+ draft: "draft";
632
+ blocked: "blocked";
633
+ }>;
634
+ attemptCount: z.ZodNumber;
635
+ reason: z.ZodNullable<z.ZodString>;
636
+ }, z.core.$strict>>;
637
+ pendingInteractions: z.ZodArray<z.ZodObject<{
638
+ ref: z.ZodObject<{
639
+ authorityRef: z.ZodString;
640
+ groupId: z.ZodString;
641
+ memberId: z.ZodString;
642
+ bindingRef: z.ZodString;
643
+ providerRef: z.ZodString;
644
+ sessionId: z.ZodString;
645
+ runId: z.ZodString;
646
+ itemId: z.ZodOptional<z.ZodString>;
647
+ interactionId: z.ZodString;
648
+ }, z.core.$strict>;
649
+ groupId: z.ZodString;
650
+ teamRunId: z.ZodString;
651
+ revision: z.ZodNumber;
652
+ title: z.ZodString;
653
+ kind: z.ZodEnum<{
654
+ input: "input";
655
+ approval: "approval";
656
+ }>;
657
+ status: z.ZodEnum<{
658
+ pending: "pending";
659
+ resolving: "resolving";
660
+ resolved: "resolved";
661
+ cancelled: "cancelled";
662
+ expired: "expired";
663
+ }>;
664
+ createdAt: z.ZodISODateTime;
665
+ }, z.core.$strict>>;
666
+ recentMessages: z.ZodArray<z.ZodObject<{
667
+ messageId: z.ZodString;
668
+ groupId: z.ZodString;
669
+ teamRunId: z.ZodNullable<z.ZodString>;
670
+ revision: z.ZodNumber;
671
+ createdSeq: z.ZodNumber;
672
+ createdAt: z.ZodISODateTime;
673
+ senderPrincipal: z.ZodString;
674
+ senderName: z.ZodString;
675
+ groupRole: z.ZodEnum<{
676
+ system: "system";
677
+ owner: "owner";
678
+ leader: "leader";
679
+ member: "member";
680
+ }>;
681
+ memberId: z.ZodNullable<z.ZodString>;
682
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
683
+ kind: z.ZodLiteral<"text">;
684
+ text: z.ZodString;
685
+ }, z.core.$strict>, z.ZodObject<{
686
+ kind: z.ZodLiteral<"attachment">;
687
+ attachmentRef: z.ZodString;
688
+ mediaType: z.ZodString;
689
+ name: z.ZodOptional<z.ZodString>;
690
+ }, z.core.$strict>], "kind">>;
691
+ mentions: z.ZodArray<z.ZodString>;
692
+ intent: z.ZodEnum<{
693
+ progress: "progress";
694
+ note: "note";
695
+ result: "result";
696
+ start_goal: "start_goal";
697
+ followup: "followup";
698
+ directed: "directed";
699
+ }>;
700
+ replyTo: z.ZodNullable<z.ZodString>;
701
+ sourceRefs: z.ZodArray<z.ZodObject<{
702
+ authorityRef: z.ZodString;
703
+ groupId: z.ZodString;
704
+ memberId: z.ZodString;
705
+ bindingRef: z.ZodString;
706
+ providerRef: z.ZodString;
707
+ sessionId: z.ZodString;
708
+ runId: z.ZodString;
709
+ itemId: z.ZodOptional<z.ZodString>;
710
+ }, z.core.$strict>>;
711
+ visibility: z.ZodEnum<{
712
+ public: "public";
713
+ internal: "internal";
714
+ }>;
715
+ }, z.core.$strict>>;
716
+ artifactSummaries: z.ZodArray<z.ZodObject<{
717
+ artifactId: z.ZodString;
718
+ groupId: z.ZodString;
719
+ teamRunId: z.ZodString;
720
+ revision: z.ZodNumber;
721
+ name: z.ZodString;
722
+ mediaType: z.ZodString;
723
+ source: z.ZodObject<{
724
+ authorityRef: z.ZodString;
725
+ groupId: z.ZodString;
726
+ memberId: z.ZodString;
727
+ bindingRef: z.ZodString;
728
+ providerRef: z.ZodString;
729
+ sessionId: z.ZodString;
730
+ runId: z.ZodString;
731
+ itemId: z.ZodOptional<z.ZodString>;
732
+ }, z.core.$strict>;
733
+ digest: z.ZodString;
734
+ sizeBytes: z.ZodNumber;
735
+ state: z.ZodEnum<{
736
+ failed: "failed";
737
+ ready: "ready";
738
+ pending: "pending";
739
+ }>;
740
+ }, z.core.$strict>>;
741
+ cursors: z.ZodObject<{
742
+ runSummaries: z.ZodNullable<z.ZodString>;
743
+ taskSummaries: z.ZodNullable<z.ZodString>;
744
+ pendingInteractions: z.ZodNullable<z.ZodString>;
745
+ recentMessages: z.ZodNullable<z.ZodString>;
746
+ artifactSummaries: z.ZodNullable<z.ZodString>;
747
+ }, z.core.$strict>;
748
+ }, z.core.$strict>;
749
+ export type TeamWorkspaceSnapshot = z.infer<typeof teamWorkspaceSnapshotSchema>;
750
+ export declare const workspacePageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
751
+ collection: z.ZodLiteral<"runSummaries">;
752
+ items: z.ZodArray<z.ZodObject<{
753
+ teamRunId: z.ZodString;
754
+ groupId: z.ZodString;
755
+ revision: z.ZodNumber;
756
+ groupRevision: z.ZodNumber;
757
+ goalMessageId: z.ZodString;
758
+ goal: z.ZodString;
759
+ leaderMemberId: z.ZodString;
760
+ status: z.ZodEnum<{
761
+ running: "running";
762
+ waiting: "waiting";
763
+ failed: "failed";
764
+ cancelled: "cancelled";
765
+ planning: "planning";
766
+ needs_attention: "needs_attention";
767
+ awaiting_acceptance: "awaiting_acceptance";
768
+ succeeded: "succeeded";
769
+ cancel_requested: "cancel_requested";
770
+ }>;
771
+ dispatchSuspended: z.ZodBoolean;
772
+ dispatchEpoch: z.ZodNumber;
773
+ taskCount: z.ZodNumber;
774
+ pendingCount: z.ZodNumber;
775
+ createdAt: z.ZodISODateTime;
776
+ updatedAt: z.ZodISODateTime;
777
+ reason: z.ZodNullable<z.ZodString>;
778
+ leaderStandby: z.ZodOptional<z.ZodObject<{
779
+ state: z.ZodEnum<{
780
+ blocked: "blocked";
781
+ active: "active";
782
+ armed: "armed";
783
+ fencing_old: "fencing_old";
784
+ waiting_old_grant: "waiting_old_grant";
785
+ activating: "activating";
786
+ }>;
787
+ standbyBindingRef: z.ZodString;
788
+ releaseRef: z.ZodString;
789
+ takeoverId: z.ZodNullable<z.ZodString>;
790
+ reason: z.ZodNullable<z.ZodString>;
791
+ newLeaderEpoch: z.ZodNullable<z.ZodNumber>;
792
+ }, z.core.$strict>>;
793
+ }, z.core.$strict>>;
794
+ apiVersion: z.ZodLiteral<"teams.ksadk.io/v1">;
795
+ viewVersion: z.ZodLiteral<"workspace/v1">;
796
+ scope: z.ZodObject<{
797
+ authorityId: z.ZodString;
798
+ ownerScopeRef: z.ZodString;
799
+ groupId: z.ZodString;
800
+ }, z.core.$strict>;
801
+ snapshotId: z.ZodString;
802
+ watermark: z.ZodNumber;
803
+ teamRunId: z.ZodNullable<z.ZodString>;
804
+ cursor: z.ZodString;
805
+ nextCursor: z.ZodNullable<z.ZodString>;
806
+ }, z.core.$strict>, z.ZodObject<{
807
+ collection: z.ZodLiteral<"taskSummaries">;
808
+ items: z.ZodArray<z.ZodObject<{
809
+ taskId: z.ZodString;
810
+ groupId: z.ZodString;
811
+ teamRunId: z.ZodString;
812
+ revision: z.ZodNumber;
813
+ title: z.ZodString;
814
+ ownerMemberId: z.ZodNullable<z.ZodString>;
815
+ dependencies: z.ZodArray<z.ZodString>;
816
+ status: z.ZodEnum<{
817
+ running: "running";
818
+ failed: "failed";
819
+ ready: "ready";
820
+ cancelled: "cancelled";
821
+ awaiting_acceptance: "awaiting_acceptance";
822
+ succeeded: "succeeded";
823
+ cancel_requested: "cancel_requested";
824
+ draft: "draft";
825
+ blocked: "blocked";
826
+ }>;
827
+ attemptCount: z.ZodNumber;
828
+ reason: z.ZodNullable<z.ZodString>;
829
+ }, z.core.$strict>>;
830
+ apiVersion: z.ZodLiteral<"teams.ksadk.io/v1">;
831
+ viewVersion: z.ZodLiteral<"workspace/v1">;
832
+ scope: z.ZodObject<{
833
+ authorityId: z.ZodString;
834
+ ownerScopeRef: z.ZodString;
835
+ groupId: z.ZodString;
836
+ }, z.core.$strict>;
837
+ snapshotId: z.ZodString;
838
+ watermark: z.ZodNumber;
839
+ teamRunId: z.ZodNullable<z.ZodString>;
840
+ cursor: z.ZodString;
841
+ nextCursor: z.ZodNullable<z.ZodString>;
842
+ }, z.core.$strict>, z.ZodObject<{
843
+ collection: z.ZodLiteral<"pendingInteractions">;
844
+ items: z.ZodArray<z.ZodObject<{
845
+ ref: z.ZodObject<{
846
+ authorityRef: z.ZodString;
847
+ groupId: z.ZodString;
848
+ memberId: z.ZodString;
849
+ bindingRef: z.ZodString;
850
+ providerRef: z.ZodString;
851
+ sessionId: z.ZodString;
852
+ runId: z.ZodString;
853
+ itemId: z.ZodOptional<z.ZodString>;
854
+ interactionId: z.ZodString;
855
+ }, z.core.$strict>;
856
+ groupId: z.ZodString;
857
+ teamRunId: z.ZodString;
858
+ revision: z.ZodNumber;
859
+ title: z.ZodString;
860
+ kind: z.ZodEnum<{
861
+ input: "input";
862
+ approval: "approval";
863
+ }>;
864
+ status: z.ZodEnum<{
865
+ pending: "pending";
866
+ resolving: "resolving";
867
+ resolved: "resolved";
868
+ cancelled: "cancelled";
869
+ expired: "expired";
870
+ }>;
871
+ createdAt: z.ZodISODateTime;
872
+ }, z.core.$strict>>;
873
+ apiVersion: z.ZodLiteral<"teams.ksadk.io/v1">;
874
+ viewVersion: z.ZodLiteral<"workspace/v1">;
875
+ scope: z.ZodObject<{
876
+ authorityId: z.ZodString;
877
+ ownerScopeRef: z.ZodString;
878
+ groupId: z.ZodString;
879
+ }, z.core.$strict>;
880
+ snapshotId: z.ZodString;
881
+ watermark: z.ZodNumber;
882
+ teamRunId: z.ZodNullable<z.ZodString>;
883
+ cursor: z.ZodString;
884
+ nextCursor: z.ZodNullable<z.ZodString>;
885
+ }, z.core.$strict>, z.ZodObject<{
886
+ collection: z.ZodLiteral<"recentMessages">;
887
+ items: z.ZodArray<z.ZodObject<{
888
+ messageId: z.ZodString;
889
+ groupId: z.ZodString;
890
+ teamRunId: z.ZodNullable<z.ZodString>;
891
+ revision: z.ZodNumber;
892
+ createdSeq: z.ZodNumber;
893
+ createdAt: z.ZodISODateTime;
894
+ senderPrincipal: z.ZodString;
895
+ senderName: z.ZodString;
896
+ groupRole: z.ZodEnum<{
897
+ system: "system";
898
+ owner: "owner";
899
+ leader: "leader";
900
+ member: "member";
901
+ }>;
902
+ memberId: z.ZodNullable<z.ZodString>;
903
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
904
+ kind: z.ZodLiteral<"text">;
905
+ text: z.ZodString;
906
+ }, z.core.$strict>, z.ZodObject<{
907
+ kind: z.ZodLiteral<"attachment">;
908
+ attachmentRef: z.ZodString;
909
+ mediaType: z.ZodString;
910
+ name: z.ZodOptional<z.ZodString>;
911
+ }, z.core.$strict>], "kind">>;
912
+ mentions: z.ZodArray<z.ZodString>;
913
+ intent: z.ZodEnum<{
914
+ progress: "progress";
915
+ note: "note";
916
+ result: "result";
917
+ start_goal: "start_goal";
918
+ followup: "followup";
919
+ directed: "directed";
920
+ }>;
921
+ replyTo: z.ZodNullable<z.ZodString>;
922
+ sourceRefs: z.ZodArray<z.ZodObject<{
923
+ authorityRef: z.ZodString;
924
+ groupId: z.ZodString;
925
+ memberId: z.ZodString;
926
+ bindingRef: z.ZodString;
927
+ providerRef: z.ZodString;
928
+ sessionId: z.ZodString;
929
+ runId: z.ZodString;
930
+ itemId: z.ZodOptional<z.ZodString>;
931
+ }, z.core.$strict>>;
932
+ visibility: z.ZodEnum<{
933
+ public: "public";
934
+ internal: "internal";
935
+ }>;
936
+ }, z.core.$strict>>;
937
+ apiVersion: z.ZodLiteral<"teams.ksadk.io/v1">;
938
+ viewVersion: z.ZodLiteral<"workspace/v1">;
939
+ scope: z.ZodObject<{
940
+ authorityId: z.ZodString;
941
+ ownerScopeRef: z.ZodString;
942
+ groupId: z.ZodString;
943
+ }, z.core.$strict>;
944
+ snapshotId: z.ZodString;
945
+ watermark: z.ZodNumber;
946
+ teamRunId: z.ZodNullable<z.ZodString>;
947
+ cursor: z.ZodString;
948
+ nextCursor: z.ZodNullable<z.ZodString>;
949
+ }, z.core.$strict>, z.ZodObject<{
950
+ collection: z.ZodLiteral<"artifactSummaries">;
951
+ items: z.ZodArray<z.ZodObject<{
952
+ artifactId: z.ZodString;
953
+ groupId: z.ZodString;
954
+ teamRunId: z.ZodString;
955
+ revision: z.ZodNumber;
956
+ name: z.ZodString;
957
+ mediaType: z.ZodString;
958
+ source: z.ZodObject<{
959
+ authorityRef: z.ZodString;
960
+ groupId: z.ZodString;
961
+ memberId: z.ZodString;
962
+ bindingRef: z.ZodString;
963
+ providerRef: z.ZodString;
964
+ sessionId: z.ZodString;
965
+ runId: z.ZodString;
966
+ itemId: z.ZodOptional<z.ZodString>;
967
+ }, z.core.$strict>;
968
+ digest: z.ZodString;
969
+ sizeBytes: z.ZodNumber;
970
+ state: z.ZodEnum<{
971
+ failed: "failed";
972
+ ready: "ready";
973
+ pending: "pending";
974
+ }>;
975
+ }, z.core.$strict>>;
976
+ apiVersion: z.ZodLiteral<"teams.ksadk.io/v1">;
977
+ viewVersion: z.ZodLiteral<"workspace/v1">;
978
+ scope: z.ZodObject<{
979
+ authorityId: z.ZodString;
980
+ ownerScopeRef: z.ZodString;
981
+ groupId: z.ZodString;
982
+ }, z.core.$strict>;
983
+ snapshotId: z.ZodString;
984
+ watermark: z.ZodNumber;
985
+ teamRunId: z.ZodNullable<z.ZodString>;
986
+ cursor: z.ZodString;
987
+ nextCursor: z.ZodNullable<z.ZodString>;
988
+ }, z.core.$strict>], "collection">;
989
+ export type WorkspacePage = z.infer<typeof workspacePageSchema>;
990
+ export type WorkspacePageRequest = {
991
+ collection: WorkspaceCollection;
992
+ snapshotId: string;
993
+ watermark: number;
994
+ teamRunId: string | null;
995
+ cursor: string;
996
+ limit?: number;
997
+ };
998
+ export declare const workspacePageRequestSchema: z.ZodObject<{
999
+ collection: z.ZodEnum<{
1000
+ runSummaries: "runSummaries";
1001
+ taskSummaries: "taskSummaries";
1002
+ pendingInteractions: "pendingInteractions";
1003
+ recentMessages: "recentMessages";
1004
+ artifactSummaries: "artifactSummaries";
1005
+ }>;
1006
+ snapshotId: z.ZodString;
1007
+ watermark: z.ZodNumber;
1008
+ teamRunId: z.ZodNullable<z.ZodString>;
1009
+ cursor: z.ZodString;
1010
+ limit: z.ZodOptional<z.ZodNumber>;
1011
+ }, z.core.$strict>;
1012
+ export declare const workspaceChangeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1013
+ kind: z.ZodLiteral<"group">;
1014
+ group: z.ZodObject<{
1015
+ groupId: z.ZodString;
1016
+ name: z.ZodString;
1017
+ authorityRef: z.ZodString;
1018
+ tenantId: z.ZodString;
1019
+ ownerSubject: z.ZodString;
1020
+ leaderMemberId: z.ZodString;
1021
+ revision: z.ZodNumber;
1022
+ status: z.ZodEnum<{
1023
+ active: "active";
1024
+ archived: "archived";
1025
+ }>;
1026
+ createdAt: z.ZodISODateTime;
1027
+ updatedAt: z.ZodISODateTime;
1028
+ policy: z.ZodObject<{
1029
+ taskAcceptance: z.ZodEnum<{
1030
+ leader: "leader";
1031
+ human: "human";
1032
+ result: "result";
1033
+ }>;
1034
+ peerWake: z.ZodBoolean;
1035
+ }, z.core.$strict>;
1036
+ }, z.core.$strict>;
1037
+ }, z.core.$strict>, z.ZodObject<{
1038
+ kind: z.ZodLiteral<"member">;
1039
+ member: z.ZodObject<{
1040
+ memberId: z.ZodString;
1041
+ groupId: z.ZodString;
1042
+ name: z.ZodString;
1043
+ role: z.ZodEnum<{
1044
+ leader: "leader";
1045
+ member: "member";
1046
+ }>;
1047
+ responsibility: z.ZodString;
1048
+ bindingRef: z.ZodString;
1049
+ binding: z.ZodObject<{
1050
+ bindingRef: z.ZodString;
1051
+ providerRef: z.ZodString;
1052
+ kind: z.ZodEnum<{
1053
+ local_build: "local_build";
1054
+ a2a: "a2a";
1055
+ cloud: "cloud";
1056
+ }>;
1057
+ agentId: z.ZodString;
1058
+ capabilities: z.ZodObject<{
1059
+ enqueue: z.ZodBoolean;
1060
+ cancel: z.ZodBoolean;
1061
+ steer: z.ZodBoolean;
1062
+ restore: z.ZodBoolean;
1063
+ interaction: z.ZodBoolean;
1064
+ leader: z.ZodBoolean;
1065
+ }, z.core.$strict>;
1066
+ availability: z.ZodObject<{
1067
+ state: z.ZodEnum<{
1068
+ unavailable: "unavailable";
1069
+ ready: "ready";
1070
+ unchecked: "unchecked";
1071
+ }>;
1072
+ code: z.ZodNullable<z.ZodString>;
1073
+ reason: z.ZodNullable<z.ZodString>;
1074
+ action: z.ZodNullable<z.ZodString>;
1075
+ }, z.core.$strict>;
1076
+ }, z.core.$strict>;
1077
+ sessionId: z.ZodString;
1078
+ revision: z.ZodNumber;
1079
+ status: z.ZodEnum<{
1080
+ unavailable: "unavailable";
1081
+ active: "active";
1082
+ removed: "removed";
1083
+ }>;
1084
+ executionStatus: z.ZodEnum<{
1085
+ unavailable: "unavailable";
1086
+ running: "running";
1087
+ waiting: "waiting";
1088
+ idle: "idle";
1089
+ needs_attention: "needs_attention";
1090
+ queued: "queued";
1091
+ }>;
1092
+ activeRunId: z.ZodNullable<z.ZodString>;
1093
+ reason: z.ZodNullable<z.ZodString>;
1094
+ }, z.core.$strict>;
1095
+ }, z.core.$strict>, z.ZodObject<{
1096
+ kind: z.ZodLiteral<"run_member">;
1097
+ runMember: z.ZodObject<{
1098
+ memberId: z.ZodString;
1099
+ groupId: z.ZodString;
1100
+ name: z.ZodString;
1101
+ role: z.ZodEnum<{
1102
+ leader: "leader";
1103
+ member: "member";
1104
+ }>;
1105
+ responsibility: z.ZodString;
1106
+ bindingRef: z.ZodString;
1107
+ binding: z.ZodObject<{
1108
+ bindingRef: z.ZodString;
1109
+ providerRef: z.ZodString;
1110
+ kind: z.ZodEnum<{
1111
+ local_build: "local_build";
1112
+ a2a: "a2a";
1113
+ cloud: "cloud";
1114
+ }>;
1115
+ agentId: z.ZodString;
1116
+ capabilities: z.ZodObject<{
1117
+ enqueue: z.ZodBoolean;
1118
+ cancel: z.ZodBoolean;
1119
+ steer: z.ZodBoolean;
1120
+ restore: z.ZodBoolean;
1121
+ interaction: z.ZodBoolean;
1122
+ leader: z.ZodBoolean;
1123
+ }, z.core.$strict>;
1124
+ availability: z.ZodObject<{
1125
+ state: z.ZodEnum<{
1126
+ unavailable: "unavailable";
1127
+ ready: "ready";
1128
+ unchecked: "unchecked";
1129
+ }>;
1130
+ code: z.ZodNullable<z.ZodString>;
1131
+ reason: z.ZodNullable<z.ZodString>;
1132
+ action: z.ZodNullable<z.ZodString>;
1133
+ }, z.core.$strict>;
1134
+ }, z.core.$strict>;
1135
+ sessionId: z.ZodString;
1136
+ revision: z.ZodNumber;
1137
+ status: z.ZodEnum<{
1138
+ unavailable: "unavailable";
1139
+ active: "active";
1140
+ removed: "removed";
1141
+ }>;
1142
+ executionStatus: z.ZodEnum<{
1143
+ unavailable: "unavailable";
1144
+ running: "running";
1145
+ waiting: "waiting";
1146
+ idle: "idle";
1147
+ needs_attention: "needs_attention";
1148
+ queued: "queued";
1149
+ }>;
1150
+ activeRunId: z.ZodNullable<z.ZodString>;
1151
+ reason: z.ZodNullable<z.ZodString>;
1152
+ runMemberId: z.ZodString;
1153
+ teamRunId: z.ZodString;
1154
+ groupRevision: z.ZodNumber;
1155
+ }, z.core.$strict>;
1156
+ }, z.core.$strict>, z.ZodObject<{
1157
+ kind: z.ZodLiteral<"run">;
1158
+ run: z.ZodObject<{
1159
+ teamRunId: z.ZodString;
1160
+ groupId: z.ZodString;
1161
+ revision: z.ZodNumber;
1162
+ groupRevision: z.ZodNumber;
1163
+ goalMessageId: z.ZodString;
1164
+ goal: z.ZodString;
1165
+ leaderMemberId: z.ZodString;
1166
+ status: z.ZodEnum<{
1167
+ running: "running";
1168
+ waiting: "waiting";
1169
+ failed: "failed";
1170
+ cancelled: "cancelled";
1171
+ planning: "planning";
1172
+ needs_attention: "needs_attention";
1173
+ awaiting_acceptance: "awaiting_acceptance";
1174
+ succeeded: "succeeded";
1175
+ cancel_requested: "cancel_requested";
1176
+ }>;
1177
+ dispatchSuspended: z.ZodBoolean;
1178
+ dispatchEpoch: z.ZodNumber;
1179
+ taskCount: z.ZodNumber;
1180
+ pendingCount: z.ZodNumber;
1181
+ createdAt: z.ZodISODateTime;
1182
+ updatedAt: z.ZodISODateTime;
1183
+ reason: z.ZodNullable<z.ZodString>;
1184
+ leaderStandby: z.ZodOptional<z.ZodObject<{
1185
+ state: z.ZodEnum<{
1186
+ blocked: "blocked";
1187
+ active: "active";
1188
+ armed: "armed";
1189
+ fencing_old: "fencing_old";
1190
+ waiting_old_grant: "waiting_old_grant";
1191
+ activating: "activating";
1192
+ }>;
1193
+ standbyBindingRef: z.ZodString;
1194
+ releaseRef: z.ZodString;
1195
+ takeoverId: z.ZodNullable<z.ZodString>;
1196
+ reason: z.ZodNullable<z.ZodString>;
1197
+ newLeaderEpoch: z.ZodNullable<z.ZodNumber>;
1198
+ }, z.core.$strict>>;
1199
+ }, z.core.$strict>;
1200
+ }, z.core.$strict>, z.ZodObject<{
1201
+ kind: z.ZodLiteral<"task">;
1202
+ task: z.ZodObject<{
1203
+ taskId: z.ZodString;
1204
+ groupId: z.ZodString;
1205
+ teamRunId: z.ZodString;
1206
+ revision: z.ZodNumber;
1207
+ title: z.ZodString;
1208
+ ownerMemberId: z.ZodNullable<z.ZodString>;
1209
+ dependencies: z.ZodArray<z.ZodString>;
1210
+ status: z.ZodEnum<{
1211
+ running: "running";
1212
+ failed: "failed";
1213
+ ready: "ready";
1214
+ cancelled: "cancelled";
1215
+ awaiting_acceptance: "awaiting_acceptance";
1216
+ succeeded: "succeeded";
1217
+ cancel_requested: "cancel_requested";
1218
+ draft: "draft";
1219
+ blocked: "blocked";
1220
+ }>;
1221
+ attemptCount: z.ZodNumber;
1222
+ reason: z.ZodNullable<z.ZodString>;
1223
+ }, z.core.$strict>;
1224
+ }, z.core.$strict>, z.ZodObject<{
1225
+ kind: z.ZodLiteral<"interaction">;
1226
+ interaction: z.ZodObject<{
1227
+ ref: z.ZodObject<{
1228
+ authorityRef: z.ZodString;
1229
+ groupId: z.ZodString;
1230
+ memberId: z.ZodString;
1231
+ bindingRef: z.ZodString;
1232
+ providerRef: z.ZodString;
1233
+ sessionId: z.ZodString;
1234
+ runId: z.ZodString;
1235
+ itemId: z.ZodOptional<z.ZodString>;
1236
+ interactionId: z.ZodString;
1237
+ }, z.core.$strict>;
1238
+ groupId: z.ZodString;
1239
+ teamRunId: z.ZodString;
1240
+ revision: z.ZodNumber;
1241
+ title: z.ZodString;
1242
+ kind: z.ZodEnum<{
1243
+ input: "input";
1244
+ approval: "approval";
1245
+ }>;
1246
+ status: z.ZodEnum<{
1247
+ pending: "pending";
1248
+ resolving: "resolving";
1249
+ resolved: "resolved";
1250
+ cancelled: "cancelled";
1251
+ expired: "expired";
1252
+ }>;
1253
+ createdAt: z.ZodISODateTime;
1254
+ }, z.core.$strict>;
1255
+ }, z.core.$strict>, z.ZodObject<{
1256
+ kind: z.ZodLiteral<"message">;
1257
+ message: z.ZodObject<{
1258
+ messageId: z.ZodString;
1259
+ groupId: z.ZodString;
1260
+ teamRunId: z.ZodNullable<z.ZodString>;
1261
+ revision: z.ZodNumber;
1262
+ createdSeq: z.ZodNumber;
1263
+ createdAt: z.ZodISODateTime;
1264
+ senderPrincipal: z.ZodString;
1265
+ senderName: z.ZodString;
1266
+ groupRole: z.ZodEnum<{
1267
+ system: "system";
1268
+ owner: "owner";
1269
+ leader: "leader";
1270
+ member: "member";
1271
+ }>;
1272
+ memberId: z.ZodNullable<z.ZodString>;
1273
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1274
+ kind: z.ZodLiteral<"text">;
1275
+ text: z.ZodString;
1276
+ }, z.core.$strict>, z.ZodObject<{
1277
+ kind: z.ZodLiteral<"attachment">;
1278
+ attachmentRef: z.ZodString;
1279
+ mediaType: z.ZodString;
1280
+ name: z.ZodOptional<z.ZodString>;
1281
+ }, z.core.$strict>], "kind">>;
1282
+ mentions: z.ZodArray<z.ZodString>;
1283
+ intent: z.ZodEnum<{
1284
+ progress: "progress";
1285
+ note: "note";
1286
+ result: "result";
1287
+ start_goal: "start_goal";
1288
+ followup: "followup";
1289
+ directed: "directed";
1290
+ }>;
1291
+ replyTo: z.ZodNullable<z.ZodString>;
1292
+ sourceRefs: z.ZodArray<z.ZodObject<{
1293
+ authorityRef: z.ZodString;
1294
+ groupId: z.ZodString;
1295
+ memberId: z.ZodString;
1296
+ bindingRef: z.ZodString;
1297
+ providerRef: z.ZodString;
1298
+ sessionId: z.ZodString;
1299
+ runId: z.ZodString;
1300
+ itemId: z.ZodOptional<z.ZodString>;
1301
+ }, z.core.$strict>>;
1302
+ visibility: z.ZodEnum<{
1303
+ public: "public";
1304
+ internal: "internal";
1305
+ }>;
1306
+ }, z.core.$strict>;
1307
+ }, z.core.$strict>, z.ZodObject<{
1308
+ kind: z.ZodLiteral<"artifact">;
1309
+ artifact: z.ZodObject<{
1310
+ artifactId: z.ZodString;
1311
+ groupId: z.ZodString;
1312
+ teamRunId: z.ZodString;
1313
+ revision: z.ZodNumber;
1314
+ name: z.ZodString;
1315
+ mediaType: z.ZodString;
1316
+ source: z.ZodObject<{
1317
+ authorityRef: z.ZodString;
1318
+ groupId: z.ZodString;
1319
+ memberId: z.ZodString;
1320
+ bindingRef: z.ZodString;
1321
+ providerRef: z.ZodString;
1322
+ sessionId: z.ZodString;
1323
+ runId: z.ZodString;
1324
+ itemId: z.ZodOptional<z.ZodString>;
1325
+ }, z.core.$strict>;
1326
+ digest: z.ZodString;
1327
+ sizeBytes: z.ZodNumber;
1328
+ state: z.ZodEnum<{
1329
+ failed: "failed";
1330
+ ready: "ready";
1331
+ pending: "pending";
1332
+ }>;
1333
+ }, z.core.$strict>;
1334
+ }, z.core.$strict>, z.ZodObject<{
1335
+ kind: z.ZodLiteral<"invalidate">;
1336
+ teamRunId: z.ZodNullable<z.ZodString>;
1337
+ collections: z.ZodArray<z.ZodEnum<{
1338
+ runSummaries: "runSummaries";
1339
+ taskSummaries: "taskSummaries";
1340
+ pendingInteractions: "pendingInteractions";
1341
+ recentMessages: "recentMessages";
1342
+ artifactSummaries: "artifactSummaries";
1343
+ }>>;
1344
+ }, z.core.$strict>], "kind">;
1345
+ export type WorkspaceChange = z.infer<typeof workspaceChangeSchema>;
1346
+ export declare const workspaceEventSchema: z.ZodObject<{
1347
+ apiVersion: z.ZodLiteral<"teams.ksadk.io/v1">;
1348
+ viewVersion: z.ZodLiteral<"workspace/v1">;
1349
+ scope: z.ZodObject<{
1350
+ authorityId: z.ZodString;
1351
+ ownerScopeRef: z.ZodString;
1352
+ groupId: z.ZodString;
1353
+ }, z.core.$strict>;
1354
+ eventId: z.ZodString;
1355
+ groupSeq: z.ZodNumber;
1356
+ type: z.ZodLiteral<"workspace.delta">;
1357
+ createdAt: z.ZodISODateTime;
1358
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1359
+ kind: z.ZodLiteral<"group">;
1360
+ group: z.ZodObject<{
1361
+ groupId: z.ZodString;
1362
+ name: z.ZodString;
1363
+ authorityRef: z.ZodString;
1364
+ tenantId: z.ZodString;
1365
+ ownerSubject: z.ZodString;
1366
+ leaderMemberId: z.ZodString;
1367
+ revision: z.ZodNumber;
1368
+ status: z.ZodEnum<{
1369
+ active: "active";
1370
+ archived: "archived";
1371
+ }>;
1372
+ createdAt: z.ZodISODateTime;
1373
+ updatedAt: z.ZodISODateTime;
1374
+ policy: z.ZodObject<{
1375
+ taskAcceptance: z.ZodEnum<{
1376
+ leader: "leader";
1377
+ human: "human";
1378
+ result: "result";
1379
+ }>;
1380
+ peerWake: z.ZodBoolean;
1381
+ }, z.core.$strict>;
1382
+ }, z.core.$strict>;
1383
+ }, z.core.$strict>, z.ZodObject<{
1384
+ kind: z.ZodLiteral<"member">;
1385
+ member: z.ZodObject<{
1386
+ memberId: z.ZodString;
1387
+ groupId: z.ZodString;
1388
+ name: z.ZodString;
1389
+ role: z.ZodEnum<{
1390
+ leader: "leader";
1391
+ member: "member";
1392
+ }>;
1393
+ responsibility: z.ZodString;
1394
+ bindingRef: z.ZodString;
1395
+ binding: z.ZodObject<{
1396
+ bindingRef: z.ZodString;
1397
+ providerRef: z.ZodString;
1398
+ kind: z.ZodEnum<{
1399
+ local_build: "local_build";
1400
+ a2a: "a2a";
1401
+ cloud: "cloud";
1402
+ }>;
1403
+ agentId: z.ZodString;
1404
+ capabilities: z.ZodObject<{
1405
+ enqueue: z.ZodBoolean;
1406
+ cancel: z.ZodBoolean;
1407
+ steer: z.ZodBoolean;
1408
+ restore: z.ZodBoolean;
1409
+ interaction: z.ZodBoolean;
1410
+ leader: z.ZodBoolean;
1411
+ }, z.core.$strict>;
1412
+ availability: z.ZodObject<{
1413
+ state: z.ZodEnum<{
1414
+ unavailable: "unavailable";
1415
+ ready: "ready";
1416
+ unchecked: "unchecked";
1417
+ }>;
1418
+ code: z.ZodNullable<z.ZodString>;
1419
+ reason: z.ZodNullable<z.ZodString>;
1420
+ action: z.ZodNullable<z.ZodString>;
1421
+ }, z.core.$strict>;
1422
+ }, z.core.$strict>;
1423
+ sessionId: z.ZodString;
1424
+ revision: z.ZodNumber;
1425
+ status: z.ZodEnum<{
1426
+ unavailable: "unavailable";
1427
+ active: "active";
1428
+ removed: "removed";
1429
+ }>;
1430
+ executionStatus: z.ZodEnum<{
1431
+ unavailable: "unavailable";
1432
+ running: "running";
1433
+ waiting: "waiting";
1434
+ idle: "idle";
1435
+ needs_attention: "needs_attention";
1436
+ queued: "queued";
1437
+ }>;
1438
+ activeRunId: z.ZodNullable<z.ZodString>;
1439
+ reason: z.ZodNullable<z.ZodString>;
1440
+ }, z.core.$strict>;
1441
+ }, z.core.$strict>, z.ZodObject<{
1442
+ kind: z.ZodLiteral<"run_member">;
1443
+ runMember: z.ZodObject<{
1444
+ memberId: z.ZodString;
1445
+ groupId: z.ZodString;
1446
+ name: z.ZodString;
1447
+ role: z.ZodEnum<{
1448
+ leader: "leader";
1449
+ member: "member";
1450
+ }>;
1451
+ responsibility: z.ZodString;
1452
+ bindingRef: z.ZodString;
1453
+ binding: z.ZodObject<{
1454
+ bindingRef: z.ZodString;
1455
+ providerRef: z.ZodString;
1456
+ kind: z.ZodEnum<{
1457
+ local_build: "local_build";
1458
+ a2a: "a2a";
1459
+ cloud: "cloud";
1460
+ }>;
1461
+ agentId: z.ZodString;
1462
+ capabilities: z.ZodObject<{
1463
+ enqueue: z.ZodBoolean;
1464
+ cancel: z.ZodBoolean;
1465
+ steer: z.ZodBoolean;
1466
+ restore: z.ZodBoolean;
1467
+ interaction: z.ZodBoolean;
1468
+ leader: z.ZodBoolean;
1469
+ }, z.core.$strict>;
1470
+ availability: z.ZodObject<{
1471
+ state: z.ZodEnum<{
1472
+ unavailable: "unavailable";
1473
+ ready: "ready";
1474
+ unchecked: "unchecked";
1475
+ }>;
1476
+ code: z.ZodNullable<z.ZodString>;
1477
+ reason: z.ZodNullable<z.ZodString>;
1478
+ action: z.ZodNullable<z.ZodString>;
1479
+ }, z.core.$strict>;
1480
+ }, z.core.$strict>;
1481
+ sessionId: z.ZodString;
1482
+ revision: z.ZodNumber;
1483
+ status: z.ZodEnum<{
1484
+ unavailable: "unavailable";
1485
+ active: "active";
1486
+ removed: "removed";
1487
+ }>;
1488
+ executionStatus: z.ZodEnum<{
1489
+ unavailable: "unavailable";
1490
+ running: "running";
1491
+ waiting: "waiting";
1492
+ idle: "idle";
1493
+ needs_attention: "needs_attention";
1494
+ queued: "queued";
1495
+ }>;
1496
+ activeRunId: z.ZodNullable<z.ZodString>;
1497
+ reason: z.ZodNullable<z.ZodString>;
1498
+ runMemberId: z.ZodString;
1499
+ teamRunId: z.ZodString;
1500
+ groupRevision: z.ZodNumber;
1501
+ }, z.core.$strict>;
1502
+ }, z.core.$strict>, z.ZodObject<{
1503
+ kind: z.ZodLiteral<"run">;
1504
+ run: z.ZodObject<{
1505
+ teamRunId: z.ZodString;
1506
+ groupId: z.ZodString;
1507
+ revision: z.ZodNumber;
1508
+ groupRevision: z.ZodNumber;
1509
+ goalMessageId: z.ZodString;
1510
+ goal: z.ZodString;
1511
+ leaderMemberId: z.ZodString;
1512
+ status: z.ZodEnum<{
1513
+ running: "running";
1514
+ waiting: "waiting";
1515
+ failed: "failed";
1516
+ cancelled: "cancelled";
1517
+ planning: "planning";
1518
+ needs_attention: "needs_attention";
1519
+ awaiting_acceptance: "awaiting_acceptance";
1520
+ succeeded: "succeeded";
1521
+ cancel_requested: "cancel_requested";
1522
+ }>;
1523
+ dispatchSuspended: z.ZodBoolean;
1524
+ dispatchEpoch: z.ZodNumber;
1525
+ taskCount: z.ZodNumber;
1526
+ pendingCount: z.ZodNumber;
1527
+ createdAt: z.ZodISODateTime;
1528
+ updatedAt: z.ZodISODateTime;
1529
+ reason: z.ZodNullable<z.ZodString>;
1530
+ leaderStandby: z.ZodOptional<z.ZodObject<{
1531
+ state: z.ZodEnum<{
1532
+ blocked: "blocked";
1533
+ active: "active";
1534
+ armed: "armed";
1535
+ fencing_old: "fencing_old";
1536
+ waiting_old_grant: "waiting_old_grant";
1537
+ activating: "activating";
1538
+ }>;
1539
+ standbyBindingRef: z.ZodString;
1540
+ releaseRef: z.ZodString;
1541
+ takeoverId: z.ZodNullable<z.ZodString>;
1542
+ reason: z.ZodNullable<z.ZodString>;
1543
+ newLeaderEpoch: z.ZodNullable<z.ZodNumber>;
1544
+ }, z.core.$strict>>;
1545
+ }, z.core.$strict>;
1546
+ }, z.core.$strict>, z.ZodObject<{
1547
+ kind: z.ZodLiteral<"task">;
1548
+ task: z.ZodObject<{
1549
+ taskId: z.ZodString;
1550
+ groupId: z.ZodString;
1551
+ teamRunId: z.ZodString;
1552
+ revision: z.ZodNumber;
1553
+ title: z.ZodString;
1554
+ ownerMemberId: z.ZodNullable<z.ZodString>;
1555
+ dependencies: z.ZodArray<z.ZodString>;
1556
+ status: z.ZodEnum<{
1557
+ running: "running";
1558
+ failed: "failed";
1559
+ ready: "ready";
1560
+ cancelled: "cancelled";
1561
+ awaiting_acceptance: "awaiting_acceptance";
1562
+ succeeded: "succeeded";
1563
+ cancel_requested: "cancel_requested";
1564
+ draft: "draft";
1565
+ blocked: "blocked";
1566
+ }>;
1567
+ attemptCount: z.ZodNumber;
1568
+ reason: z.ZodNullable<z.ZodString>;
1569
+ }, z.core.$strict>;
1570
+ }, z.core.$strict>, z.ZodObject<{
1571
+ kind: z.ZodLiteral<"interaction">;
1572
+ interaction: z.ZodObject<{
1573
+ ref: z.ZodObject<{
1574
+ authorityRef: z.ZodString;
1575
+ groupId: z.ZodString;
1576
+ memberId: z.ZodString;
1577
+ bindingRef: z.ZodString;
1578
+ providerRef: z.ZodString;
1579
+ sessionId: z.ZodString;
1580
+ runId: z.ZodString;
1581
+ itemId: z.ZodOptional<z.ZodString>;
1582
+ interactionId: z.ZodString;
1583
+ }, z.core.$strict>;
1584
+ groupId: z.ZodString;
1585
+ teamRunId: z.ZodString;
1586
+ revision: z.ZodNumber;
1587
+ title: z.ZodString;
1588
+ kind: z.ZodEnum<{
1589
+ input: "input";
1590
+ approval: "approval";
1591
+ }>;
1592
+ status: z.ZodEnum<{
1593
+ pending: "pending";
1594
+ resolving: "resolving";
1595
+ resolved: "resolved";
1596
+ cancelled: "cancelled";
1597
+ expired: "expired";
1598
+ }>;
1599
+ createdAt: z.ZodISODateTime;
1600
+ }, z.core.$strict>;
1601
+ }, z.core.$strict>, z.ZodObject<{
1602
+ kind: z.ZodLiteral<"message">;
1603
+ message: z.ZodObject<{
1604
+ messageId: z.ZodString;
1605
+ groupId: z.ZodString;
1606
+ teamRunId: z.ZodNullable<z.ZodString>;
1607
+ revision: z.ZodNumber;
1608
+ createdSeq: z.ZodNumber;
1609
+ createdAt: z.ZodISODateTime;
1610
+ senderPrincipal: z.ZodString;
1611
+ senderName: z.ZodString;
1612
+ groupRole: z.ZodEnum<{
1613
+ system: "system";
1614
+ owner: "owner";
1615
+ leader: "leader";
1616
+ member: "member";
1617
+ }>;
1618
+ memberId: z.ZodNullable<z.ZodString>;
1619
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1620
+ kind: z.ZodLiteral<"text">;
1621
+ text: z.ZodString;
1622
+ }, z.core.$strict>, z.ZodObject<{
1623
+ kind: z.ZodLiteral<"attachment">;
1624
+ attachmentRef: z.ZodString;
1625
+ mediaType: z.ZodString;
1626
+ name: z.ZodOptional<z.ZodString>;
1627
+ }, z.core.$strict>], "kind">>;
1628
+ mentions: z.ZodArray<z.ZodString>;
1629
+ intent: z.ZodEnum<{
1630
+ progress: "progress";
1631
+ note: "note";
1632
+ result: "result";
1633
+ start_goal: "start_goal";
1634
+ followup: "followup";
1635
+ directed: "directed";
1636
+ }>;
1637
+ replyTo: z.ZodNullable<z.ZodString>;
1638
+ sourceRefs: z.ZodArray<z.ZodObject<{
1639
+ authorityRef: z.ZodString;
1640
+ groupId: z.ZodString;
1641
+ memberId: z.ZodString;
1642
+ bindingRef: z.ZodString;
1643
+ providerRef: z.ZodString;
1644
+ sessionId: z.ZodString;
1645
+ runId: z.ZodString;
1646
+ itemId: z.ZodOptional<z.ZodString>;
1647
+ }, z.core.$strict>>;
1648
+ visibility: z.ZodEnum<{
1649
+ public: "public";
1650
+ internal: "internal";
1651
+ }>;
1652
+ }, z.core.$strict>;
1653
+ }, z.core.$strict>, z.ZodObject<{
1654
+ kind: z.ZodLiteral<"artifact">;
1655
+ artifact: z.ZodObject<{
1656
+ artifactId: z.ZodString;
1657
+ groupId: z.ZodString;
1658
+ teamRunId: z.ZodString;
1659
+ revision: z.ZodNumber;
1660
+ name: z.ZodString;
1661
+ mediaType: z.ZodString;
1662
+ source: z.ZodObject<{
1663
+ authorityRef: z.ZodString;
1664
+ groupId: z.ZodString;
1665
+ memberId: z.ZodString;
1666
+ bindingRef: z.ZodString;
1667
+ providerRef: z.ZodString;
1668
+ sessionId: z.ZodString;
1669
+ runId: z.ZodString;
1670
+ itemId: z.ZodOptional<z.ZodString>;
1671
+ }, z.core.$strict>;
1672
+ digest: z.ZodString;
1673
+ sizeBytes: z.ZodNumber;
1674
+ state: z.ZodEnum<{
1675
+ failed: "failed";
1676
+ ready: "ready";
1677
+ pending: "pending";
1678
+ }>;
1679
+ }, z.core.$strict>;
1680
+ }, z.core.$strict>, z.ZodObject<{
1681
+ kind: z.ZodLiteral<"invalidate">;
1682
+ teamRunId: z.ZodNullable<z.ZodString>;
1683
+ collections: z.ZodArray<z.ZodEnum<{
1684
+ runSummaries: "runSummaries";
1685
+ taskSummaries: "taskSummaries";
1686
+ pendingInteractions: "pendingInteractions";
1687
+ recentMessages: "recentMessages";
1688
+ artifactSummaries: "artifactSummaries";
1689
+ }>>;
1690
+ }, z.core.$strict>], "kind">>;
1691
+ }, z.core.$strict>;
1692
+ export type WorkspaceEvent = z.infer<typeof workspaceEventSchema>;
1693
+ export declare function decodeTeamWorkspaceSnapshot(raw: unknown): TeamWorkspaceSnapshot;
1694
+ export declare function decodeWorkspacePage(raw: unknown): WorkspacePage;
1695
+ export declare function decodeWorkspaceEvent(raw: unknown): WorkspaceEvent;
1696
+ //# sourceMappingURL=workspaceContracts.d.ts.map