@treeseed/sdk 0.13.0-rc.121 → 0.13.0-rc.123

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 (157) hide show
  1. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +2365 -1275
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +94 -28
  3. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +38 -38
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
  6. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +2 -59
  7. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +126 -1
  8. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
  9. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +2 -4
  10. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +22 -16
  11. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +3 -42
  12. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +8 -8
  13. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +244 -85
  14. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +54 -19
  15. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +216 -70
  16. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
  17. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
  18. package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
  19. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +55 -55
  20. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -23
  21. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
  22. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
  23. package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
  24. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +496 -292
  25. package/dist/agent-capacity/contracts/support/execution-graph.js +21 -19
  26. package/dist/agent-capacity/contracts/support/financial-records.d.ts +3 -6
  27. package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
  28. package/dist/agent-capacity/grant.d.ts +34 -0
  29. package/dist/agent-capacity/grant.js +4 -0
  30. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1178 -1152
  31. package/dist/agent-capacity/validation/agent-definition-schema.js +21 -28
  32. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +10 -10
  33. package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
  34. package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
  35. package/dist/agent-capacity/validation/assignment-records.js +49 -35
  36. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  37. package/dist/agent-capacity/validation/configuration.js +2 -6
  38. package/dist/agent-capacity/validation/grant.d.ts +11 -0
  39. package/dist/agent-capacity/validation/grant.js +31 -0
  40. package/dist/capacity/agents/agent-capacity.d.ts +3 -4
  41. package/dist/capacity/agents/agent-capacity.js +2 -3
  42. package/dist/capacity-provider/capability-ontology.d.ts +150 -150
  43. package/dist/capacity-provider/client.d.ts +15 -9
  44. package/dist/capacity-provider/client.js +1 -10
  45. package/dist/capacity-provider/contracts/capacity-facts.d.ts +0 -1
  46. package/dist/capacity-provider/contracts/environment-profiles.d.ts +44 -44
  47. package/dist/capacity-provider/contracts/governance.d.ts +2 -17
  48. package/dist/capacity-provider/contracts/index.d.ts +2 -0
  49. package/dist/capacity-provider/contracts/index.js +2 -0
  50. package/dist/capacity-provider/core-capability-catalog.d.ts +7 -7
  51. package/dist/capacity-provider/environment-catalog.d.ts +188 -188
  52. package/dist/capacity-provider/environment-catalog.js +1 -1
  53. package/dist/capacity-provider/install-configuration.d.ts +2 -2
  54. package/dist/capacity-provider/sandbox-contracts.d.ts +92 -92
  55. package/dist/capacity-provider/source-workspace.d.ts +166 -68
  56. package/dist/capacity-provider/source-workspace.js +5 -1
  57. package/dist/capacity-provider/validation.d.ts +10 -2
  58. package/dist/capacity-provider/validation.js +52 -22
  59. package/dist/content/validation/agent-operational-content-schemas.d.ts +144 -142
  60. package/dist/content/validation/agent-operational-content-schemas.js +2 -0
  61. package/dist/content/validation/auxiliary-content-schemas.d.ts +158 -158
  62. package/dist/content/validation/content-model-schemas.d.ts +9105 -5295
  63. package/dist/content/validation/content-model-schemas.js +192 -115
  64. package/dist/content/validation/portable-content-data.d.ts +411 -238
  65. package/dist/content/validation/portable-content-data.js +6 -1
  66. package/dist/content/validation/schema-constraints.d.ts +78 -0
  67. package/dist/content/validation/schema-constraints.js +149 -0
  68. package/dist/deployment/ai/storage.d.ts +24 -24
  69. package/dist/deployment/ai-hosting.d.ts +18 -18
  70. package/dist/deployment/ai-instance.d.ts +16 -16
  71. package/dist/deployment/ai-mode.d.ts +92 -92
  72. package/dist/deployment/hosted-topology-template.d.ts +44 -44
  73. package/dist/deployment/hosted-topology.d.ts +335 -335
  74. package/dist/deployment/postgres/contracts.d.ts +52 -52
  75. package/dist/deployment/postgres/transfer.d.ts +6 -6
  76. package/dist/deployment/schemas.d.ts +1114 -1114
  77. package/dist/development/schemas.d.ts +633 -633
  78. package/dist/graph/context-query-contracts.js +1 -1
  79. package/dist/guarantees/index.d.ts +26 -2
  80. package/dist/identity/contracts.js +6 -1
  81. package/dist/knowledge/contracts.d.ts +9 -2
  82. package/dist/knowledge/contracts.js +2 -2
  83. package/dist/model-registry/discussion-models.js +0 -1
  84. package/dist/operator-contracts/canonical-command-tree.js +25 -9
  85. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +29 -29
  86. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +30 -30
  87. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +15 -13
  88. package/dist/operator-contracts/catalog/communication-operations.d.ts +176 -158
  89. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +67 -67
  90. package/dist/operator-contracts/catalog/inbox-operations.d.ts +65 -65
  91. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +6 -6
  92. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +2 -1
  93. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
  94. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +3 -3
  95. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +16 -8
  96. package/dist/operator-contracts/catalog/services/secret-operations.js +2 -1
  97. package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +11 -11
  98. package/dist/operator-contracts/catalog/workdays/selection-commands.js +3 -0
  99. package/dist/operator-contracts/communication/contracts.d.ts +537 -395
  100. package/dist/operator-contracts/communication/contracts.js +6 -1
  101. package/dist/operator-contracts/control-plane-operation.d.ts +7 -0
  102. package/dist/operator-contracts/control-plane-operation.js +6 -0
  103. package/dist/operator-contracts/control-plane-operations.d.ts +631 -610
  104. package/dist/operator-contracts/control-plane-operations.js +26 -12
  105. package/dist/operator-contracts/inbox/contracts.d.ts +229 -229
  106. package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
  107. package/dist/operator-contracts/mcp.js +4 -3
  108. package/dist/operator-contracts/workday-lifecycle.d.ts +192 -0
  109. package/dist/operator-contracts/workday-lifecycle.js +109 -45
  110. package/dist/platform/agent-schema-verification.d.ts +3 -0
  111. package/dist/platform/agent-schema-verification.js +377 -0
  112. package/dist/platform/contracts.d.ts +72 -72
  113. package/dist/platform/schemas.d.ts +144 -36
  114. package/dist/platform/schemas.js +26 -0
  115. package/dist/platform/verification.js +10 -0
  116. package/dist/sdk-types/support/planning-policy.d.ts +1 -1
  117. package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
  118. package/dist/secrets-capability/secret-contracts.d.ts +2 -2
  119. package/dist/secrets-capability/shared-access.d.ts +3 -3
  120. package/dist/secrets-capability/shared-resources.d.ts +50 -50
  121. package/dist/secrets-capability/vault-contracts.d.ts +2 -2
  122. package/dist/security/encrypted-envelope.d.ts +14 -14
  123. package/dist/treedx/client.d.ts +4 -4
  124. package/dist/treedx/index.d.ts +1 -1
  125. package/dist/treedx/index.js +1 -0
  126. package/dist/treedx/types.d.ts +286 -0
  127. package/dist/treedx/types.js +44 -0
  128. package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
  129. package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
  130. package/guarantees/agent/golden/product.guarantee.yaml +12 -0
  131. package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +837 -0
  132. package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
  133. package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
  134. package/guarantees/verifiers/golden.verifiers.yaml +1429 -0
  135. package/package.json +9 -3
  136. package/tests/acceptance/golden-product.test.ts +205 -0
  137. package/tests/acceptance/golden-product.ts +404 -0
  138. package/tests/acceptance/product/base-red.ts +73 -0
  139. package/tests/acceptance/product/documentation-examples.ts +68 -0
  140. package/tests/acceptance/product/intent-runtime.ts +145 -0
  141. package/tests/acceptance/product/release-output.ts +160 -0
  142. package/tests/acceptance/product/research-artifact.ts +87 -0
  143. package/tests/acceptance/product/research-revision.ts +82 -0
  144. package/tests/acceptance/product/research-source.ts +91 -0
  145. package/tests/acceptance/product/test-chain.ts +192 -0
  146. package/treeseed.package.yaml +147 -0
  147. package/dist/.treeseed-build-complete.json +0 -1
  148. package/dist/agent-capacity/allocation.d.ts +0 -183
  149. package/dist/agent-capacity/allocation.js +0 -5
  150. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
  151. package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
  152. package/dist/agent-capacity/artifacts.d.ts +0 -123
  153. package/dist/agent-capacity/artifacts.js +0 -39
  154. package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
  155. package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
  156. package/dist/agent-capacity/validation/allocation.d.ts +0 -12
  157. package/dist/agent-capacity/validation/allocation.js +0 -115
@@ -3,11 +3,11 @@ export declare const communicationRecipientSchema: z.ZodObject<{
3
3
  projectId: z.ZodString;
4
4
  agentSlug: z.ZodString;
5
5
  }, "strict", z.ZodTypeAny, {
6
- projectId: string;
7
6
  agentSlug: string;
8
- }, {
9
7
  projectId: string;
8
+ }, {
10
9
  agentSlug: string;
10
+ projectId: string;
11
11
  }>;
12
12
  export declare const communicationSendRequestSchema: z.ZodObject<{
13
13
  message: z.ZodString;
@@ -17,16 +17,16 @@ export declare const communicationSendRequestSchema: z.ZodObject<{
17
17
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
18
18
  }, "strict", z.ZodTypeAny, {
19
19
  message: string;
20
+ parentWorkdayId?: string | undefined;
20
21
  timeoutSeconds?: number | undefined;
21
22
  recipients?: string[] | undefined;
22
23
  proposalId?: string | undefined;
23
- parentWorkdayId?: string | undefined;
24
24
  }, {
25
25
  message: string;
26
+ parentWorkdayId?: string | undefined;
26
27
  timeoutSeconds?: number | undefined;
27
28
  recipients?: string[] | undefined;
28
29
  proposalId?: string | undefined;
29
- parentWorkdayId?: string | undefined;
30
30
  }>;
31
31
  export declare const communicationTopicEventTypeSchema: z.ZodEnum<["message.posted", "mention.acknowledged", "response_lease.accepted", "agent.progress", "agent.response", "agent.abstained", "agent.failed"]>;
32
32
  export declare const communicationTopicEventSchema: z.ZodObject<{
@@ -45,11 +45,11 @@ export declare const communicationTopicEventSchema: z.ZodObject<{
45
45
  id: z.ZodString;
46
46
  handle: z.ZodNullable<z.ZodString>;
47
47
  }, "strict", z.ZodTypeAny, {
48
- kind: "provider" | "agent" | "control-plane" | "user";
48
+ kind: "provider" | "agent" | "user" | "control-plane";
49
49
  id: string;
50
50
  handle: string | null;
51
51
  }, {
52
- kind: "provider" | "agent" | "control-plane" | "user";
52
+ kind: "provider" | "agent" | "user" | "control-plane";
53
53
  id: string;
54
54
  handle: string | null;
55
55
  }>;
@@ -58,37 +58,37 @@ export declare const communicationTopicEventSchema: z.ZodObject<{
58
58
  }, "strict", z.ZodTypeAny, {
59
59
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
60
60
  actor: {
61
- kind: "provider" | "agent" | "control-plane" | "user";
61
+ kind: "provider" | "agent" | "user" | "control-plane";
62
62
  id: string;
63
63
  handle: string | null;
64
64
  };
65
65
  id: string;
66
- teamId: string;
66
+ summary: string;
67
67
  assignmentId: string | null;
68
+ teamId: string;
69
+ sequence: number;
68
70
  topicId: string;
69
71
  sendId: string | null;
70
72
  invocationId: string | null;
71
- sequence: number;
72
73
  payload: Record<string, unknown>;
73
- summary: string;
74
74
  channel: string;
75
75
  occurredAt: string;
76
76
  }, {
77
77
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
78
78
  actor: {
79
- kind: "provider" | "agent" | "control-plane" | "user";
79
+ kind: "provider" | "agent" | "user" | "control-plane";
80
80
  id: string;
81
81
  handle: string | null;
82
82
  };
83
83
  id: string;
84
- teamId: string;
84
+ summary: string;
85
85
  assignmentId: string | null;
86
+ teamId: string;
87
+ sequence: number;
86
88
  topicId: string;
87
89
  sendId: string | null;
88
90
  invocationId: string | null;
89
- sequence: number;
90
91
  payload: Record<string, unknown>;
91
- summary: string;
92
92
  channel: string;
93
93
  occurredAt: string;
94
94
  }>;
@@ -134,6 +134,7 @@ export declare const communicationDiagnosticSchema: z.ZodObject<{
134
134
  executionProviderId: string | null;
135
135
  runtimeVersion: string | null;
136
136
  };
137
+ usage: Record<string, unknown>[];
137
138
  resources: Record<string, unknown>;
138
139
  selection: {
139
140
  capabilities: string[];
@@ -141,8 +142,7 @@ export declare const communicationDiagnosticSchema: z.ZodObject<{
141
142
  parameters: Record<string, unknown>;
142
143
  };
143
144
  reason: string | null;
144
- usage: Record<string, unknown>[];
145
- availability: "available" | "unavailable" | "partial";
145
+ availability: "partial" | "unavailable" | "available";
146
146
  identityManifest: Record<string, unknown>;
147
147
  contextManifest: Record<string, unknown>[];
148
148
  timing: Record<string, unknown>;
@@ -154,6 +154,7 @@ export declare const communicationDiagnosticSchema: z.ZodObject<{
154
154
  executionProviderId: string | null;
155
155
  runtimeVersion: string | null;
156
156
  };
157
+ usage: Record<string, unknown>[];
157
158
  resources: Record<string, unknown>;
158
159
  selection: {
159
160
  capabilities: string[];
@@ -161,8 +162,7 @@ export declare const communicationDiagnosticSchema: z.ZodObject<{
161
162
  parameters: Record<string, unknown>;
162
163
  };
163
164
  reason: string | null;
164
- usage: Record<string, unknown>[];
165
- availability: "available" | "unavailable" | "partial";
165
+ availability: "partial" | "unavailable" | "available";
166
166
  identityManifest: Record<string, unknown>;
167
167
  contextManifest: Record<string, unknown>[];
168
168
  timing: Record<string, unknown>;
@@ -223,26 +223,26 @@ export declare const communicationTargetSchema: z.ZodObject<{
223
223
  failedAt: z.ZodNullable<z.ZodString>;
224
224
  }, "strict", z.ZodTypeAny, {
225
225
  status: string | null;
226
- providerId: string | null;
226
+ claimedAt: string | null;
227
227
  assignmentId: string | null;
228
- completedAt: string | null;
228
+ providerId: string | null;
229
229
  executionProviderId: string | null;
230
+ completedAt: string | null;
230
231
  laneId: string | null;
231
232
  lanePurpose: string | null;
232
233
  assignedAt: string | null;
233
- claimedAt: string | null;
234
234
  returnedAt: string | null;
235
235
  failedAt: string | null;
236
236
  }, {
237
237
  status: string | null;
238
- providerId: string | null;
238
+ claimedAt: string | null;
239
239
  assignmentId: string | null;
240
- completedAt: string | null;
240
+ providerId: string | null;
241
241
  executionProviderId: string | null;
242
+ completedAt: string | null;
242
243
  laneId: string | null;
243
244
  lanePurpose: string | null;
244
245
  assignedAt: string | null;
245
- claimedAt: string | null;
246
246
  returnedAt: string | null;
247
247
  failedAt: string | null;
248
248
  }>;
@@ -290,6 +290,7 @@ export declare const communicationTargetSchema: z.ZodObject<{
290
290
  executionProviderId: string | null;
291
291
  runtimeVersion: string | null;
292
292
  };
293
+ usage: Record<string, unknown>[];
293
294
  resources: Record<string, unknown>;
294
295
  selection: {
295
296
  capabilities: string[];
@@ -297,8 +298,7 @@ export declare const communicationTargetSchema: z.ZodObject<{
297
298
  parameters: Record<string, unknown>;
298
299
  };
299
300
  reason: string | null;
300
- usage: Record<string, unknown>[];
301
- availability: "available" | "unavailable" | "partial";
301
+ availability: "partial" | "unavailable" | "available";
302
302
  identityManifest: Record<string, unknown>;
303
303
  contextManifest: Record<string, unknown>[];
304
304
  timing: Record<string, unknown>;
@@ -310,6 +310,7 @@ export declare const communicationTargetSchema: z.ZodObject<{
310
310
  executionProviderId: string | null;
311
311
  runtimeVersion: string | null;
312
312
  };
313
+ usage: Record<string, unknown>[];
313
314
  resources: Record<string, unknown>;
314
315
  selection: {
315
316
  capabilities: string[];
@@ -317,8 +318,7 @@ export declare const communicationTargetSchema: z.ZodObject<{
317
318
  parameters: Record<string, unknown>;
318
319
  };
319
320
  reason: string | null;
320
- usage: Record<string, unknown>[];
321
- availability: "available" | "unavailable" | "partial";
321
+ availability: "partial" | "unavailable" | "available";
322
322
  identityManifest: Record<string, unknown>;
323
323
  contextManifest: Record<string, unknown>[];
324
324
  timing: Record<string, unknown>;
@@ -327,30 +327,18 @@ export declare const communicationTargetSchema: z.ZodObject<{
327
327
  }>;
328
328
  }, "strict", z.ZodTypeAny, {
329
329
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
330
+ updatedAt: string;
331
+ agentSlug: string;
330
332
  projectId: string;
331
- invocationId: string | null;
332
- completedAt: string | null;
333
333
  requirement: "required" | "optional";
334
- agentSlug: string;
335
- capacity: {
336
- status: string | null;
337
- providerId: string | null;
338
- assignmentId: string | null;
339
- completedAt: string | null;
340
- executionProviderId: string | null;
341
- laneId: string | null;
342
- lanePurpose: string | null;
343
- assignedAt: string | null;
344
- claimedAt: string | null;
345
- returnedAt: string | null;
346
- failedAt: string | null;
347
- };
334
+ depth: number;
348
335
  diagnostics: {
349
336
  provider: {
350
337
  providerId: string | null;
351
338
  executionProviderId: string | null;
352
339
  runtimeVersion: string | null;
353
340
  };
341
+ usage: Record<string, unknown>[];
354
342
  resources: Record<string, unknown>;
355
343
  selection: {
356
344
  capabilities: string[];
@@ -358,14 +346,28 @@ export declare const communicationTargetSchema: z.ZodObject<{
358
346
  parameters: Record<string, unknown>;
359
347
  };
360
348
  reason: string | null;
361
- usage: Record<string, unknown>[];
362
- availability: "available" | "unavailable" | "partial";
349
+ availability: "partial" | "unavailable" | "available";
363
350
  identityManifest: Record<string, unknown>;
364
351
  contextManifest: Record<string, unknown>[];
365
352
  timing: Record<string, unknown>;
366
353
  traceEvents: Record<string, unknown>[];
367
354
  fullPayload?: Record<string, unknown> | undefined;
368
355
  };
356
+ completedAt: string | null;
357
+ invocationId: string | null;
358
+ capacity: {
359
+ status: string | null;
360
+ claimedAt: string | null;
361
+ assignmentId: string | null;
362
+ providerId: string | null;
363
+ executionProviderId: string | null;
364
+ completedAt: string | null;
365
+ laneId: string | null;
366
+ lanePurpose: string | null;
367
+ assignedAt: string | null;
368
+ returnedAt: string | null;
369
+ failedAt: string | null;
370
+ };
369
371
  projectSlug: string;
370
372
  definitionRevision: string;
371
373
  revisions: {
@@ -375,9 +377,7 @@ export declare const communicationTargetSchema: z.ZodObject<{
375
377
  chatProfile: string;
376
378
  };
377
379
  parentInvocationId: string | null;
378
- depth: number;
379
380
  requestedAt: string;
380
- updatedAt: string;
381
381
  failure: {
382
382
  code: string;
383
383
  message: string | null;
@@ -386,30 +386,18 @@ export declare const communicationTargetSchema: z.ZodObject<{
386
386
  leaseAcceptedAt: string | null;
387
387
  }, {
388
388
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
389
+ updatedAt: string;
390
+ agentSlug: string;
389
391
  projectId: string;
390
- invocationId: string | null;
391
- completedAt: string | null;
392
392
  requirement: "required" | "optional";
393
- agentSlug: string;
394
- capacity: {
395
- status: string | null;
396
- providerId: string | null;
397
- assignmentId: string | null;
398
- completedAt: string | null;
399
- executionProviderId: string | null;
400
- laneId: string | null;
401
- lanePurpose: string | null;
402
- assignedAt: string | null;
403
- claimedAt: string | null;
404
- returnedAt: string | null;
405
- failedAt: string | null;
406
- };
393
+ depth: number;
407
394
  diagnostics: {
408
395
  provider: {
409
396
  providerId: string | null;
410
397
  executionProviderId: string | null;
411
398
  runtimeVersion: string | null;
412
399
  };
400
+ usage: Record<string, unknown>[];
413
401
  resources: Record<string, unknown>;
414
402
  selection: {
415
403
  capabilities: string[];
@@ -417,14 +405,28 @@ export declare const communicationTargetSchema: z.ZodObject<{
417
405
  parameters: Record<string, unknown>;
418
406
  };
419
407
  reason: string | null;
420
- usage: Record<string, unknown>[];
421
- availability: "available" | "unavailable" | "partial";
408
+ availability: "partial" | "unavailable" | "available";
422
409
  identityManifest: Record<string, unknown>;
423
410
  contextManifest: Record<string, unknown>[];
424
411
  timing: Record<string, unknown>;
425
412
  traceEvents: Record<string, unknown>[];
426
413
  fullPayload?: Record<string, unknown> | undefined;
427
414
  };
415
+ completedAt: string | null;
416
+ invocationId: string | null;
417
+ capacity: {
418
+ status: string | null;
419
+ claimedAt: string | null;
420
+ assignmentId: string | null;
421
+ providerId: string | null;
422
+ executionProviderId: string | null;
423
+ completedAt: string | null;
424
+ laneId: string | null;
425
+ lanePurpose: string | null;
426
+ assignedAt: string | null;
427
+ returnedAt: string | null;
428
+ failedAt: string | null;
429
+ };
428
430
  projectSlug: string;
429
431
  definitionRevision: string;
430
432
  revisions: {
@@ -434,9 +436,7 @@ export declare const communicationTargetSchema: z.ZodObject<{
434
436
  chatProfile: string;
435
437
  };
436
438
  parentInvocationId: string | null;
437
- depth: number;
438
439
  requestedAt: string;
439
- updatedAt: string;
440
440
  failure: {
441
441
  code: string;
442
442
  message: string | null;
@@ -458,23 +458,23 @@ export declare const communicationResponseSchema: z.ZodObject<{
458
458
  createdAt: z.ZodString;
459
459
  }, "strict", z.ZodTypeAny, {
460
460
  status: "failed" | "cancelled" | "responded" | "abstained";
461
- projectId: string;
462
461
  createdAt: string;
462
+ agentSlug: string;
463
463
  assignmentId: string | null;
464
- invocationId: string;
464
+ projectId: string;
465
465
  requirement: "required" | "optional";
466
- agentSlug: string;
466
+ invocationId: string;
467
467
  projectSlug: string;
468
468
  messageRef: string;
469
469
  markdown: string;
470
470
  }, {
471
471
  status: "failed" | "cancelled" | "responded" | "abstained";
472
- projectId: string;
473
472
  createdAt: string;
473
+ agentSlug: string;
474
474
  assignmentId: string | null;
475
- invocationId: string;
475
+ projectId: string;
476
476
  requirement: "required" | "optional";
477
- agentSlug: string;
477
+ invocationId: string;
478
478
  projectSlug: string;
479
479
  messageRef: string;
480
480
  markdown: string;
@@ -503,15 +503,15 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
503
503
  }, "strict", z.ZodTypeAny, {
504
504
  id: string;
505
505
  projectId: string;
506
+ discussionId: string;
506
507
  projectSlug: string;
507
508
  messageRef: string;
508
- discussionId: string;
509
509
  }, {
510
510
  id: string;
511
511
  projectId: string;
512
+ discussionId: string;
512
513
  projectSlug: string;
513
514
  messageRef: string;
514
- discussionId: string;
515
515
  }>, "many">;
516
516
  status: z.ZodEnum<["queued", "running", "complete", "partial", "failed"]>;
517
517
  targets: z.ZodArray<z.ZodObject<{
@@ -568,26 +568,26 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
568
568
  failedAt: z.ZodNullable<z.ZodString>;
569
569
  }, "strict", z.ZodTypeAny, {
570
570
  status: string | null;
571
- providerId: string | null;
571
+ claimedAt: string | null;
572
572
  assignmentId: string | null;
573
- completedAt: string | null;
573
+ providerId: string | null;
574
574
  executionProviderId: string | null;
575
+ completedAt: string | null;
575
576
  laneId: string | null;
576
577
  lanePurpose: string | null;
577
578
  assignedAt: string | null;
578
- claimedAt: string | null;
579
579
  returnedAt: string | null;
580
580
  failedAt: string | null;
581
581
  }, {
582
582
  status: string | null;
583
- providerId: string | null;
583
+ claimedAt: string | null;
584
584
  assignmentId: string | null;
585
- completedAt: string | null;
585
+ providerId: string | null;
586
586
  executionProviderId: string | null;
587
+ completedAt: string | null;
587
588
  laneId: string | null;
588
589
  lanePurpose: string | null;
589
590
  assignedAt: string | null;
590
- claimedAt: string | null;
591
591
  returnedAt: string | null;
592
592
  failedAt: string | null;
593
593
  }>;
@@ -635,6 +635,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
635
635
  executionProviderId: string | null;
636
636
  runtimeVersion: string | null;
637
637
  };
638
+ usage: Record<string, unknown>[];
638
639
  resources: Record<string, unknown>;
639
640
  selection: {
640
641
  capabilities: string[];
@@ -642,8 +643,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
642
643
  parameters: Record<string, unknown>;
643
644
  };
644
645
  reason: string | null;
645
- usage: Record<string, unknown>[];
646
- availability: "available" | "unavailable" | "partial";
646
+ availability: "partial" | "unavailable" | "available";
647
647
  identityManifest: Record<string, unknown>;
648
648
  contextManifest: Record<string, unknown>[];
649
649
  timing: Record<string, unknown>;
@@ -655,6 +655,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
655
655
  executionProviderId: string | null;
656
656
  runtimeVersion: string | null;
657
657
  };
658
+ usage: Record<string, unknown>[];
658
659
  resources: Record<string, unknown>;
659
660
  selection: {
660
661
  capabilities: string[];
@@ -662,8 +663,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
662
663
  parameters: Record<string, unknown>;
663
664
  };
664
665
  reason: string | null;
665
- usage: Record<string, unknown>[];
666
- availability: "available" | "unavailable" | "partial";
666
+ availability: "partial" | "unavailable" | "available";
667
667
  identityManifest: Record<string, unknown>;
668
668
  contextManifest: Record<string, unknown>[];
669
669
  timing: Record<string, unknown>;
@@ -672,30 +672,18 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
672
672
  }>;
673
673
  }, "strict", z.ZodTypeAny, {
674
674
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
675
+ updatedAt: string;
676
+ agentSlug: string;
675
677
  projectId: string;
676
- invocationId: string | null;
677
- completedAt: string | null;
678
678
  requirement: "required" | "optional";
679
- agentSlug: string;
680
- capacity: {
681
- status: string | null;
682
- providerId: string | null;
683
- assignmentId: string | null;
684
- completedAt: string | null;
685
- executionProviderId: string | null;
686
- laneId: string | null;
687
- lanePurpose: string | null;
688
- assignedAt: string | null;
689
- claimedAt: string | null;
690
- returnedAt: string | null;
691
- failedAt: string | null;
692
- };
679
+ depth: number;
693
680
  diagnostics: {
694
681
  provider: {
695
682
  providerId: string | null;
696
683
  executionProviderId: string | null;
697
684
  runtimeVersion: string | null;
698
685
  };
686
+ usage: Record<string, unknown>[];
699
687
  resources: Record<string, unknown>;
700
688
  selection: {
701
689
  capabilities: string[];
@@ -703,14 +691,28 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
703
691
  parameters: Record<string, unknown>;
704
692
  };
705
693
  reason: string | null;
706
- usage: Record<string, unknown>[];
707
- availability: "available" | "unavailable" | "partial";
694
+ availability: "partial" | "unavailable" | "available";
708
695
  identityManifest: Record<string, unknown>;
709
696
  contextManifest: Record<string, unknown>[];
710
697
  timing: Record<string, unknown>;
711
698
  traceEvents: Record<string, unknown>[];
712
699
  fullPayload?: Record<string, unknown> | undefined;
713
700
  };
701
+ completedAt: string | null;
702
+ invocationId: string | null;
703
+ capacity: {
704
+ status: string | null;
705
+ claimedAt: string | null;
706
+ assignmentId: string | null;
707
+ providerId: string | null;
708
+ executionProviderId: string | null;
709
+ completedAt: string | null;
710
+ laneId: string | null;
711
+ lanePurpose: string | null;
712
+ assignedAt: string | null;
713
+ returnedAt: string | null;
714
+ failedAt: string | null;
715
+ };
714
716
  projectSlug: string;
715
717
  definitionRevision: string;
716
718
  revisions: {
@@ -720,9 +722,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
720
722
  chatProfile: string;
721
723
  };
722
724
  parentInvocationId: string | null;
723
- depth: number;
724
725
  requestedAt: string;
725
- updatedAt: string;
726
726
  failure: {
727
727
  code: string;
728
728
  message: string | null;
@@ -731,30 +731,18 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
731
731
  leaseAcceptedAt: string | null;
732
732
  }, {
733
733
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
734
+ updatedAt: string;
735
+ agentSlug: string;
734
736
  projectId: string;
735
- invocationId: string | null;
736
- completedAt: string | null;
737
737
  requirement: "required" | "optional";
738
- agentSlug: string;
739
- capacity: {
740
- status: string | null;
741
- providerId: string | null;
742
- assignmentId: string | null;
743
- completedAt: string | null;
744
- executionProviderId: string | null;
745
- laneId: string | null;
746
- lanePurpose: string | null;
747
- assignedAt: string | null;
748
- claimedAt: string | null;
749
- returnedAt: string | null;
750
- failedAt: string | null;
751
- };
738
+ depth: number;
752
739
  diagnostics: {
753
740
  provider: {
754
741
  providerId: string | null;
755
742
  executionProviderId: string | null;
756
743
  runtimeVersion: string | null;
757
744
  };
745
+ usage: Record<string, unknown>[];
758
746
  resources: Record<string, unknown>;
759
747
  selection: {
760
748
  capabilities: string[];
@@ -762,14 +750,28 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
762
750
  parameters: Record<string, unknown>;
763
751
  };
764
752
  reason: string | null;
765
- usage: Record<string, unknown>[];
766
- availability: "available" | "unavailable" | "partial";
753
+ availability: "partial" | "unavailable" | "available";
767
754
  identityManifest: Record<string, unknown>;
768
755
  contextManifest: Record<string, unknown>[];
769
756
  timing: Record<string, unknown>;
770
757
  traceEvents: Record<string, unknown>[];
771
758
  fullPayload?: Record<string, unknown> | undefined;
772
759
  };
760
+ completedAt: string | null;
761
+ invocationId: string | null;
762
+ capacity: {
763
+ status: string | null;
764
+ claimedAt: string | null;
765
+ assignmentId: string | null;
766
+ providerId: string | null;
767
+ executionProviderId: string | null;
768
+ completedAt: string | null;
769
+ laneId: string | null;
770
+ lanePurpose: string | null;
771
+ assignedAt: string | null;
772
+ returnedAt: string | null;
773
+ failedAt: string | null;
774
+ };
773
775
  projectSlug: string;
774
776
  definitionRevision: string;
775
777
  revisions: {
@@ -779,9 +781,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
779
781
  chatProfile: string;
780
782
  };
781
783
  parentInvocationId: string | null;
782
- depth: number;
783
784
  requestedAt: string;
784
- updatedAt: string;
785
785
  failure: {
786
786
  code: string;
787
787
  message: string | null;
@@ -803,23 +803,23 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
803
803
  createdAt: z.ZodString;
804
804
  }, "strict", z.ZodTypeAny, {
805
805
  status: "failed" | "cancelled" | "responded" | "abstained";
806
- projectId: string;
807
806
  createdAt: string;
807
+ agentSlug: string;
808
808
  assignmentId: string | null;
809
- invocationId: string;
809
+ projectId: string;
810
810
  requirement: "required" | "optional";
811
- agentSlug: string;
811
+ invocationId: string;
812
812
  projectSlug: string;
813
813
  messageRef: string;
814
814
  markdown: string;
815
815
  }, {
816
816
  status: "failed" | "cancelled" | "responded" | "abstained";
817
- projectId: string;
818
817
  createdAt: string;
818
+ agentSlug: string;
819
819
  assignmentId: string | null;
820
- invocationId: string;
820
+ projectId: string;
821
821
  requirement: "required" | "optional";
822
- agentSlug: string;
822
+ invocationId: string;
823
823
  projectSlug: string;
824
824
  messageRef: string;
825
825
  markdown: string;
@@ -840,11 +840,11 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
840
840
  id: z.ZodString;
841
841
  handle: z.ZodNullable<z.ZodString>;
842
842
  }, "strict", z.ZodTypeAny, {
843
- kind: "provider" | "agent" | "control-plane" | "user";
843
+ kind: "provider" | "agent" | "user" | "control-plane";
844
844
  id: string;
845
845
  handle: string | null;
846
846
  }, {
847
- kind: "provider" | "agent" | "control-plane" | "user";
847
+ kind: "provider" | "agent" | "user" | "control-plane";
848
848
  id: string;
849
849
  handle: string | null;
850
850
  }>;
@@ -853,37 +853,37 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
853
853
  }, "strict", z.ZodTypeAny, {
854
854
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
855
855
  actor: {
856
- kind: "provider" | "agent" | "control-plane" | "user";
856
+ kind: "provider" | "agent" | "user" | "control-plane";
857
857
  id: string;
858
858
  handle: string | null;
859
859
  };
860
860
  id: string;
861
- teamId: string;
861
+ summary: string;
862
862
  assignmentId: string | null;
863
+ teamId: string;
864
+ sequence: number;
863
865
  topicId: string;
864
866
  sendId: string | null;
865
867
  invocationId: string | null;
866
- sequence: number;
867
868
  payload: Record<string, unknown>;
868
- summary: string;
869
869
  channel: string;
870
870
  occurredAt: string;
871
871
  }, {
872
872
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
873
873
  actor: {
874
- kind: "provider" | "agent" | "control-plane" | "user";
874
+ kind: "provider" | "agent" | "user" | "control-plane";
875
875
  id: string;
876
876
  handle: string | null;
877
877
  };
878
878
  id: string;
879
- teamId: string;
879
+ summary: string;
880
880
  assignmentId: string | null;
881
+ teamId: string;
882
+ sequence: number;
881
883
  topicId: string;
882
884
  sendId: string | null;
883
885
  invocationId: string | null;
884
- sequence: number;
885
886
  payload: Record<string, unknown>;
886
- summary: string;
887
887
  channel: string;
888
888
  occurredAt: string;
889
889
  }>, "many">;
@@ -891,34 +891,56 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
891
891
  updatedAt: z.ZodString;
892
892
  replayed: z.ZodBoolean;
893
893
  }, "strict", z.ZodTypeAny, {
894
- status: "failed" | "running" | "partial" | "complete" | "queued";
894
+ status: "failed" | "running" | "partial" | "queued" | "complete";
895
895
  schemaVersion: "treeseed.communication-send-receipt/v4";
896
- targets: {
897
- status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
898
- projectId: string;
899
- invocationId: string | null;
900
- completedAt: string | null;
901
- requirement: "required" | "optional";
902
- agentSlug: string;
903
- capacity: {
904
- status: string | null;
905
- providerId: string | null;
906
- assignmentId: string | null;
907
- completedAt: string | null;
908
- executionProviderId: string | null;
909
- laneId: string | null;
910
- lanePurpose: string | null;
911
- assignedAt: string | null;
912
- claimedAt: string | null;
913
- returnedAt: string | null;
914
- failedAt: string | null;
896
+ createdAt: string;
897
+ updatedAt: string;
898
+ teamId: string;
899
+ responses: {
900
+ status: "failed" | "cancelled" | "responded" | "abstained";
901
+ createdAt: string;
902
+ agentSlug: string;
903
+ assignmentId: string | null;
904
+ projectId: string;
905
+ requirement: "required" | "optional";
906
+ invocationId: string;
907
+ projectSlug: string;
908
+ messageRef: string;
909
+ markdown: string;
910
+ }[];
911
+ events: {
912
+ type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
913
+ actor: {
914
+ kind: "provider" | "agent" | "user" | "control-plane";
915
+ id: string;
916
+ handle: string | null;
915
917
  };
918
+ id: string;
919
+ summary: string;
920
+ assignmentId: string | null;
921
+ teamId: string;
922
+ sequence: number;
923
+ topicId: string;
924
+ sendId: string | null;
925
+ invocationId: string | null;
926
+ payload: Record<string, unknown>;
927
+ channel: string;
928
+ occurredAt: string;
929
+ }[];
930
+ targets: {
931
+ status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
932
+ updatedAt: string;
933
+ agentSlug: string;
934
+ projectId: string;
935
+ requirement: "required" | "optional";
936
+ depth: number;
916
937
  diagnostics: {
917
938
  provider: {
918
939
  providerId: string | null;
919
940
  executionProviderId: string | null;
920
941
  runtimeVersion: string | null;
921
942
  };
943
+ usage: Record<string, unknown>[];
922
944
  resources: Record<string, unknown>;
923
945
  selection: {
924
946
  capabilities: string[];
@@ -926,14 +948,28 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
926
948
  parameters: Record<string, unknown>;
927
949
  };
928
950
  reason: string | null;
929
- usage: Record<string, unknown>[];
930
- availability: "available" | "unavailable" | "partial";
951
+ availability: "partial" | "unavailable" | "available";
931
952
  identityManifest: Record<string, unknown>;
932
953
  contextManifest: Record<string, unknown>[];
933
954
  timing: Record<string, unknown>;
934
955
  traceEvents: Record<string, unknown>[];
935
956
  fullPayload?: Record<string, unknown> | undefined;
936
957
  };
958
+ completedAt: string | null;
959
+ invocationId: string | null;
960
+ capacity: {
961
+ status: string | null;
962
+ claimedAt: string | null;
963
+ assignmentId: string | null;
964
+ providerId: string | null;
965
+ executionProviderId: string | null;
966
+ completedAt: string | null;
967
+ laneId: string | null;
968
+ lanePurpose: string | null;
969
+ assignedAt: string | null;
970
+ returnedAt: string | null;
971
+ failedAt: string | null;
972
+ };
937
973
  projectSlug: string;
938
974
  definitionRevision: string;
939
975
  revisions: {
@@ -943,9 +979,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
943
979
  chatProfile: string;
944
980
  };
945
981
  parentInvocationId: string | null;
946
- depth: number;
947
982
  requestedAt: string;
948
- updatedAt: string;
949
983
  failure: {
950
984
  code: string;
951
985
  message: string | null;
@@ -953,83 +987,71 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
953
987
  acknowledgedAt: string | null;
954
988
  leaseAcceptedAt: string | null;
955
989
  }[];
956
- teamId: string;
957
- createdAt: string;
990
+ topic: {
991
+ id: string;
992
+ slug: string;
993
+ };
958
994
  sendId: string;
995
+ channel: string;
996
+ projectStreams: {
997
+ id: string;
998
+ projectId: string;
999
+ discussionId: string;
1000
+ projectSlug: string;
1001
+ messageRef: string;
1002
+ }[];
1003
+ replayed: boolean;
1004
+ }, {
1005
+ status: "failed" | "running" | "partial" | "queued" | "complete";
1006
+ schemaVersion: "treeseed.communication-send-receipt/v4";
1007
+ createdAt: string;
1008
+ updatedAt: string;
1009
+ teamId: string;
959
1010
  responses: {
960
1011
  status: "failed" | "cancelled" | "responded" | "abstained";
961
- projectId: string;
962
1012
  createdAt: string;
1013
+ agentSlug: string;
963
1014
  assignmentId: string | null;
964
- invocationId: string;
1015
+ projectId: string;
965
1016
  requirement: "required" | "optional";
966
- agentSlug: string;
1017
+ invocationId: string;
967
1018
  projectSlug: string;
968
1019
  messageRef: string;
969
1020
  markdown: string;
970
1021
  }[];
971
- channel: string;
972
- topic: {
973
- id: string;
974
- slug: string;
975
- };
976
1022
  events: {
977
1023
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
978
1024
  actor: {
979
- kind: "provider" | "agent" | "control-plane" | "user";
1025
+ kind: "provider" | "agent" | "user" | "control-plane";
980
1026
  id: string;
981
1027
  handle: string | null;
982
1028
  };
983
1029
  id: string;
984
- teamId: string;
1030
+ summary: string;
985
1031
  assignmentId: string | null;
1032
+ teamId: string;
1033
+ sequence: number;
986
1034
  topicId: string;
987
1035
  sendId: string | null;
988
1036
  invocationId: string | null;
989
- sequence: number;
990
1037
  payload: Record<string, unknown>;
991
- summary: string;
992
1038
  channel: string;
993
1039
  occurredAt: string;
994
1040
  }[];
995
- updatedAt: string;
996
- projectStreams: {
997
- id: string;
998
- projectId: string;
999
- projectSlug: string;
1000
- messageRef: string;
1001
- discussionId: string;
1002
- }[];
1003
- replayed: boolean;
1004
- }, {
1005
- status: "failed" | "running" | "partial" | "complete" | "queued";
1006
- schemaVersion: "treeseed.communication-send-receipt/v4";
1007
1041
  targets: {
1008
1042
  status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
1043
+ updatedAt: string;
1044
+ agentSlug: string;
1009
1045
  projectId: string;
1010
- invocationId: string | null;
1011
- completedAt: string | null;
1012
1046
  requirement: "required" | "optional";
1013
- agentSlug: string;
1014
- capacity: {
1015
- status: string | null;
1016
- providerId: string | null;
1017
- assignmentId: string | null;
1018
- completedAt: string | null;
1019
- executionProviderId: string | null;
1020
- laneId: string | null;
1021
- lanePurpose: string | null;
1022
- assignedAt: string | null;
1023
- claimedAt: string | null;
1024
- returnedAt: string | null;
1025
- failedAt: string | null;
1026
- };
1047
+ depth: number;
1027
1048
  diagnostics: {
1028
1049
  provider: {
1029
1050
  providerId: string | null;
1030
1051
  executionProviderId: string | null;
1031
1052
  runtimeVersion: string | null;
1032
1053
  };
1054
+ usage: Record<string, unknown>[];
1033
1055
  resources: Record<string, unknown>;
1034
1056
  selection: {
1035
1057
  capabilities: string[];
@@ -1037,14 +1059,28 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
1037
1059
  parameters: Record<string, unknown>;
1038
1060
  };
1039
1061
  reason: string | null;
1040
- usage: Record<string, unknown>[];
1041
- availability: "available" | "unavailable" | "partial";
1062
+ availability: "partial" | "unavailable" | "available";
1042
1063
  identityManifest: Record<string, unknown>;
1043
1064
  contextManifest: Record<string, unknown>[];
1044
1065
  timing: Record<string, unknown>;
1045
1066
  traceEvents: Record<string, unknown>[];
1046
1067
  fullPayload?: Record<string, unknown> | undefined;
1047
1068
  };
1069
+ completedAt: string | null;
1070
+ invocationId: string | null;
1071
+ capacity: {
1072
+ status: string | null;
1073
+ claimedAt: string | null;
1074
+ assignmentId: string | null;
1075
+ providerId: string | null;
1076
+ executionProviderId: string | null;
1077
+ completedAt: string | null;
1078
+ laneId: string | null;
1079
+ lanePurpose: string | null;
1080
+ assignedAt: string | null;
1081
+ returnedAt: string | null;
1082
+ failedAt: string | null;
1083
+ };
1048
1084
  projectSlug: string;
1049
1085
  definitionRevision: string;
1050
1086
  revisions: {
@@ -1054,9 +1090,7 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
1054
1090
  chatProfile: string;
1055
1091
  };
1056
1092
  parentInvocationId: string | null;
1057
- depth: number;
1058
1093
  requestedAt: string;
1059
- updatedAt: string;
1060
1094
  failure: {
1061
1095
  code: string;
1062
1096
  message: string | null;
@@ -1064,52 +1098,18 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
1064
1098
  acknowledgedAt: string | null;
1065
1099
  leaseAcceptedAt: string | null;
1066
1100
  }[];
1067
- teamId: string;
1068
- createdAt: string;
1069
- sendId: string;
1070
- responses: {
1071
- status: "failed" | "cancelled" | "responded" | "abstained";
1072
- projectId: string;
1073
- createdAt: string;
1074
- assignmentId: string | null;
1075
- invocationId: string;
1076
- requirement: "required" | "optional";
1077
- agentSlug: string;
1078
- projectSlug: string;
1079
- messageRef: string;
1080
- markdown: string;
1081
- }[];
1082
- channel: string;
1083
1101
  topic: {
1084
1102
  id: string;
1085
1103
  slug: string;
1086
1104
  };
1087
- events: {
1088
- type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
1089
- actor: {
1090
- kind: "provider" | "agent" | "control-plane" | "user";
1091
- id: string;
1092
- handle: string | null;
1093
- };
1094
- id: string;
1095
- teamId: string;
1096
- assignmentId: string | null;
1097
- topicId: string;
1098
- sendId: string | null;
1099
- invocationId: string | null;
1100
- sequence: number;
1101
- payload: Record<string, unknown>;
1102
- summary: string;
1103
- channel: string;
1104
- occurredAt: string;
1105
- }[];
1106
- updatedAt: string;
1105
+ sendId: string;
1106
+ channel: string;
1107
1107
  projectStreams: {
1108
1108
  id: string;
1109
1109
  projectId: string;
1110
+ discussionId: string;
1110
1111
  projectSlug: string;
1111
1112
  messageRef: string;
1112
- discussionId: string;
1113
1113
  }[];
1114
1114
  replayed: boolean;
1115
1115
  }>;
@@ -1125,20 +1125,20 @@ export declare const communicationTopicListenerSchema: z.ZodObject<{
1125
1125
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1126
1126
  }, "strict", z.ZodTypeAny, {
1127
1127
  status: "active" | "removed";
1128
- projectId: string;
1129
- source: "seed" | "operator" | "mention";
1128
+ updatedAt: string;
1130
1129
  agentSlug: string;
1130
+ source: "seed" | "operator" | "mention";
1131
+ projectId: string;
1131
1132
  projectSlug: string;
1132
- updatedAt: string;
1133
1133
  agentHandle: string;
1134
1134
  subscribedAt: string;
1135
1135
  }, {
1136
1136
  status: "active" | "removed";
1137
- projectId: string;
1138
- source: "seed" | "operator" | "mention";
1137
+ updatedAt: string;
1139
1138
  agentSlug: string;
1139
+ source: "seed" | "operator" | "mention";
1140
+ projectId: string;
1140
1141
  projectSlug: string;
1141
- updatedAt: string;
1142
1142
  agentHandle: string;
1143
1143
  subscribedAt: string;
1144
1144
  }>;
@@ -1157,13 +1157,13 @@ export declare const communicationTopicSchema: z.ZodObject<{
1157
1157
  }, "strict", z.ZodTypeAny, {
1158
1158
  id: string;
1159
1159
  projectId: string;
1160
- projectSlug: string;
1161
1160
  discussionId: string;
1161
+ projectSlug: string;
1162
1162
  }, {
1163
1163
  id: string;
1164
1164
  projectId: string;
1165
- projectSlug: string;
1166
1165
  discussionId: string;
1166
+ projectSlug: string;
1167
1167
  }>, "many">;
1168
1168
  listeners: z.ZodArray<z.ZodObject<{
1169
1169
  projectId: z.ZodString;
@@ -1177,66 +1177,66 @@ export declare const communicationTopicSchema: z.ZodObject<{
1177
1177
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1178
1178
  }, "strict", z.ZodTypeAny, {
1179
1179
  status: "active" | "removed";
1180
- projectId: string;
1181
- source: "seed" | "operator" | "mention";
1180
+ updatedAt: string;
1182
1181
  agentSlug: string;
1182
+ source: "seed" | "operator" | "mention";
1183
+ projectId: string;
1183
1184
  projectSlug: string;
1184
- updatedAt: string;
1185
1185
  agentHandle: string;
1186
1186
  subscribedAt: string;
1187
1187
  }, {
1188
1188
  status: "active" | "removed";
1189
- projectId: string;
1190
- source: "seed" | "operator" | "mention";
1189
+ updatedAt: string;
1191
1190
  agentSlug: string;
1191
+ source: "seed" | "operator" | "mention";
1192
+ projectId: string;
1192
1193
  projectSlug: string;
1193
- updatedAt: string;
1194
1194
  agentHandle: string;
1195
1195
  subscribedAt: string;
1196
1196
  }>, "many">;
1197
1197
  }, "strict", z.ZodTypeAny, {
1198
1198
  status: "active" | "archived";
1199
1199
  id: string;
1200
- slug: string;
1201
- teamId: string;
1202
1200
  createdAt: string;
1203
1201
  updatedAt: string;
1202
+ slug: string;
1203
+ teamId: string;
1204
1204
  streams: {
1205
1205
  id: string;
1206
1206
  projectId: string;
1207
- projectSlug: string;
1208
1207
  discussionId: string;
1208
+ projectSlug: string;
1209
1209
  }[];
1210
1210
  listeners: {
1211
1211
  status: "active" | "removed";
1212
- projectId: string;
1213
- source: "seed" | "operator" | "mention";
1212
+ updatedAt: string;
1214
1213
  agentSlug: string;
1214
+ source: "seed" | "operator" | "mention";
1215
+ projectId: string;
1215
1216
  projectSlug: string;
1216
- updatedAt: string;
1217
1217
  agentHandle: string;
1218
1218
  subscribedAt: string;
1219
1219
  }[];
1220
1220
  }, {
1221
1221
  status: "active" | "archived";
1222
1222
  id: string;
1223
- slug: string;
1224
- teamId: string;
1225
1223
  createdAt: string;
1226
1224
  updatedAt: string;
1225
+ slug: string;
1226
+ teamId: string;
1227
1227
  streams: {
1228
1228
  id: string;
1229
1229
  projectId: string;
1230
- projectSlug: string;
1231
1230
  discussionId: string;
1231
+ projectSlug: string;
1232
1232
  }[];
1233
1233
  listeners: {
1234
1234
  status: "active" | "removed";
1235
- projectId: string;
1236
- source: "seed" | "operator" | "mention";
1235
+ updatedAt: string;
1237
1236
  agentSlug: string;
1237
+ source: "seed" | "operator" | "mention";
1238
+ projectId: string;
1238
1239
  projectSlug: string;
1239
- updatedAt: string;
1240
1240
  agentHandle: string;
1241
1241
  subscribedAt: string;
1242
1242
  }[];
@@ -1257,13 +1257,13 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1257
1257
  }, "strict", z.ZodTypeAny, {
1258
1258
  id: string;
1259
1259
  projectId: string;
1260
- projectSlug: string;
1261
1260
  discussionId: string;
1261
+ projectSlug: string;
1262
1262
  }, {
1263
1263
  id: string;
1264
1264
  projectId: string;
1265
- projectSlug: string;
1266
1265
  discussionId: string;
1266
+ projectSlug: string;
1267
1267
  }>, "many">;
1268
1268
  listeners: z.ZodArray<z.ZodObject<{
1269
1269
  projectId: z.ZodString;
@@ -1277,66 +1277,66 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1277
1277
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1278
1278
  }, "strict", z.ZodTypeAny, {
1279
1279
  status: "active" | "removed";
1280
- projectId: string;
1281
- source: "seed" | "operator" | "mention";
1280
+ updatedAt: string;
1282
1281
  agentSlug: string;
1282
+ source: "seed" | "operator" | "mention";
1283
+ projectId: string;
1283
1284
  projectSlug: string;
1284
- updatedAt: string;
1285
1285
  agentHandle: string;
1286
1286
  subscribedAt: string;
1287
1287
  }, {
1288
1288
  status: "active" | "removed";
1289
- projectId: string;
1290
- source: "seed" | "operator" | "mention";
1289
+ updatedAt: string;
1291
1290
  agentSlug: string;
1291
+ source: "seed" | "operator" | "mention";
1292
+ projectId: string;
1292
1293
  projectSlug: string;
1293
- updatedAt: string;
1294
1294
  agentHandle: string;
1295
1295
  subscribedAt: string;
1296
1296
  }>, "many">;
1297
1297
  }, "strict", z.ZodTypeAny, {
1298
1298
  status: "active" | "archived";
1299
1299
  id: string;
1300
- slug: string;
1301
- teamId: string;
1302
1300
  createdAt: string;
1303
1301
  updatedAt: string;
1302
+ slug: string;
1303
+ teamId: string;
1304
1304
  streams: {
1305
1305
  id: string;
1306
1306
  projectId: string;
1307
- projectSlug: string;
1308
1307
  discussionId: string;
1308
+ projectSlug: string;
1309
1309
  }[];
1310
1310
  listeners: {
1311
1311
  status: "active" | "removed";
1312
- projectId: string;
1313
- source: "seed" | "operator" | "mention";
1312
+ updatedAt: string;
1314
1313
  agentSlug: string;
1314
+ source: "seed" | "operator" | "mention";
1315
+ projectId: string;
1315
1316
  projectSlug: string;
1316
- updatedAt: string;
1317
1317
  agentHandle: string;
1318
1318
  subscribedAt: string;
1319
1319
  }[];
1320
1320
  }, {
1321
1321
  status: "active" | "archived";
1322
1322
  id: string;
1323
- slug: string;
1324
- teamId: string;
1325
1323
  createdAt: string;
1326
1324
  updatedAt: string;
1325
+ slug: string;
1326
+ teamId: string;
1327
1327
  streams: {
1328
1328
  id: string;
1329
1329
  projectId: string;
1330
- projectSlug: string;
1331
1330
  discussionId: string;
1331
+ projectSlug: string;
1332
1332
  }[];
1333
1333
  listeners: {
1334
1334
  status: "active" | "removed";
1335
- projectId: string;
1336
- source: "seed" | "operator" | "mention";
1335
+ updatedAt: string;
1337
1336
  agentSlug: string;
1337
+ source: "seed" | "operator" | "mention";
1338
+ projectId: string;
1338
1339
  projectSlug: string;
1339
- updatedAt: string;
1340
1340
  agentHandle: string;
1341
1341
  subscribedAt: string;
1342
1342
  }[];
@@ -1346,23 +1346,23 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1346
1346
  items: {
1347
1347
  status: "active" | "archived";
1348
1348
  id: string;
1349
- slug: string;
1350
- teamId: string;
1351
1349
  createdAt: string;
1352
1350
  updatedAt: string;
1351
+ slug: string;
1352
+ teamId: string;
1353
1353
  streams: {
1354
1354
  id: string;
1355
1355
  projectId: string;
1356
- projectSlug: string;
1357
1356
  discussionId: string;
1357
+ projectSlug: string;
1358
1358
  }[];
1359
1359
  listeners: {
1360
1360
  status: "active" | "removed";
1361
- projectId: string;
1362
- source: "seed" | "operator" | "mention";
1361
+ updatedAt: string;
1363
1362
  agentSlug: string;
1363
+ source: "seed" | "operator" | "mention";
1364
+ projectId: string;
1364
1365
  projectSlug: string;
1365
- updatedAt: string;
1366
1366
  agentHandle: string;
1367
1367
  subscribedAt: string;
1368
1368
  }[];
@@ -1372,23 +1372,23 @@ export declare const communicationTopicPageSchema: z.ZodObject<{
1372
1372
  items: {
1373
1373
  status: "active" | "archived";
1374
1374
  id: string;
1375
- slug: string;
1376
- teamId: string;
1377
1375
  createdAt: string;
1378
1376
  updatedAt: string;
1377
+ slug: string;
1378
+ teamId: string;
1379
1379
  streams: {
1380
1380
  id: string;
1381
1381
  projectId: string;
1382
- projectSlug: string;
1383
1382
  discussionId: string;
1383
+ projectSlug: string;
1384
1384
  }[];
1385
1385
  listeners: {
1386
1386
  status: "active" | "removed";
1387
- projectId: string;
1388
- source: "seed" | "operator" | "mention";
1387
+ updatedAt: string;
1389
1388
  agentSlug: string;
1389
+ source: "seed" | "operator" | "mention";
1390
+ projectId: string;
1390
1391
  projectSlug: string;
1391
- updatedAt: string;
1392
1392
  agentHandle: string;
1393
1393
  subscribedAt: string;
1394
1394
  }[];
@@ -1411,13 +1411,13 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1411
1411
  }, "strict", z.ZodTypeAny, {
1412
1412
  id: string;
1413
1413
  projectId: string;
1414
- projectSlug: string;
1415
1414
  discussionId: string;
1415
+ projectSlug: string;
1416
1416
  }, {
1417
1417
  id: string;
1418
1418
  projectId: string;
1419
- projectSlug: string;
1420
1419
  discussionId: string;
1420
+ projectSlug: string;
1421
1421
  }>, "many">;
1422
1422
  listeners: z.ZodArray<z.ZodObject<{
1423
1423
  projectId: z.ZodString;
@@ -1431,66 +1431,66 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1431
1431
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1432
1432
  }, "strict", z.ZodTypeAny, {
1433
1433
  status: "active" | "removed";
1434
- projectId: string;
1435
- source: "seed" | "operator" | "mention";
1434
+ updatedAt: string;
1436
1435
  agentSlug: string;
1436
+ source: "seed" | "operator" | "mention";
1437
+ projectId: string;
1437
1438
  projectSlug: string;
1438
- updatedAt: string;
1439
1439
  agentHandle: string;
1440
1440
  subscribedAt: string;
1441
1441
  }, {
1442
1442
  status: "active" | "removed";
1443
- projectId: string;
1444
- source: "seed" | "operator" | "mention";
1443
+ updatedAt: string;
1445
1444
  agentSlug: string;
1445
+ source: "seed" | "operator" | "mention";
1446
+ projectId: string;
1446
1447
  projectSlug: string;
1447
- updatedAt: string;
1448
1448
  agentHandle: string;
1449
1449
  subscribedAt: string;
1450
1450
  }>, "many">;
1451
1451
  }, "strict", z.ZodTypeAny, {
1452
1452
  status: "active" | "archived";
1453
1453
  id: string;
1454
- slug: string;
1455
- teamId: string;
1456
1454
  createdAt: string;
1457
1455
  updatedAt: string;
1456
+ slug: string;
1457
+ teamId: string;
1458
1458
  streams: {
1459
1459
  id: string;
1460
1460
  projectId: string;
1461
- projectSlug: string;
1462
1461
  discussionId: string;
1462
+ projectSlug: string;
1463
1463
  }[];
1464
1464
  listeners: {
1465
1465
  status: "active" | "removed";
1466
- projectId: string;
1467
- source: "seed" | "operator" | "mention";
1466
+ updatedAt: string;
1468
1467
  agentSlug: string;
1468
+ source: "seed" | "operator" | "mention";
1469
+ projectId: string;
1469
1470
  projectSlug: string;
1470
- updatedAt: string;
1471
1471
  agentHandle: string;
1472
1472
  subscribedAt: string;
1473
1473
  }[];
1474
1474
  }, {
1475
1475
  status: "active" | "archived";
1476
1476
  id: string;
1477
- slug: string;
1478
- teamId: string;
1479
1477
  createdAt: string;
1480
1478
  updatedAt: string;
1479
+ slug: string;
1480
+ teamId: string;
1481
1481
  streams: {
1482
1482
  id: string;
1483
1483
  projectId: string;
1484
- projectSlug: string;
1485
1484
  discussionId: string;
1485
+ projectSlug: string;
1486
1486
  }[];
1487
1487
  listeners: {
1488
1488
  status: "active" | "removed";
1489
- projectId: string;
1490
- source: "seed" | "operator" | "mention";
1489
+ updatedAt: string;
1491
1490
  agentSlug: string;
1491
+ source: "seed" | "operator" | "mention";
1492
+ projectId: string;
1492
1493
  projectSlug: string;
1493
- updatedAt: string;
1494
1494
  agentHandle: string;
1495
1495
  subscribedAt: string;
1496
1496
  }[];
@@ -1511,11 +1511,11 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1511
1511
  id: z.ZodString;
1512
1512
  handle: z.ZodNullable<z.ZodString>;
1513
1513
  }, "strict", z.ZodTypeAny, {
1514
- kind: "provider" | "agent" | "control-plane" | "user";
1514
+ kind: "provider" | "agent" | "user" | "control-plane";
1515
1515
  id: string;
1516
1516
  handle: string | null;
1517
1517
  }, {
1518
- kind: "provider" | "agent" | "control-plane" | "user";
1518
+ kind: "provider" | "agent" | "user" | "control-plane";
1519
1519
  id: string;
1520
1520
  handle: string | null;
1521
1521
  }>;
@@ -1524,131 +1524,131 @@ export declare const communicationTopicTimelineSchema: z.ZodObject<{
1524
1524
  }, "strict", z.ZodTypeAny, {
1525
1525
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
1526
1526
  actor: {
1527
- kind: "provider" | "agent" | "control-plane" | "user";
1527
+ kind: "provider" | "agent" | "user" | "control-plane";
1528
1528
  id: string;
1529
1529
  handle: string | null;
1530
1530
  };
1531
1531
  id: string;
1532
- teamId: string;
1532
+ summary: string;
1533
1533
  assignmentId: string | null;
1534
+ teamId: string;
1535
+ sequence: number;
1534
1536
  topicId: string;
1535
1537
  sendId: string | null;
1536
1538
  invocationId: string | null;
1537
- sequence: number;
1538
1539
  payload: Record<string, unknown>;
1539
- summary: string;
1540
1540
  channel: string;
1541
1541
  occurredAt: string;
1542
1542
  }, {
1543
1543
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
1544
1544
  actor: {
1545
- kind: "provider" | "agent" | "control-plane" | "user";
1545
+ kind: "provider" | "agent" | "user" | "control-plane";
1546
1546
  id: string;
1547
1547
  handle: string | null;
1548
1548
  };
1549
1549
  id: string;
1550
- teamId: string;
1550
+ summary: string;
1551
1551
  assignmentId: string | null;
1552
+ teamId: string;
1553
+ sequence: number;
1552
1554
  topicId: string;
1553
1555
  sendId: string | null;
1554
1556
  invocationId: string | null;
1555
- sequence: number;
1556
1557
  payload: Record<string, unknown>;
1557
- summary: string;
1558
1558
  channel: string;
1559
1559
  occurredAt: string;
1560
1560
  }>, "many">;
1561
1561
  cursor: z.ZodNullable<z.ZodString>;
1562
1562
  }, "strict", z.ZodTypeAny, {
1563
- cursor: string | null;
1563
+ events: {
1564
+ type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
1565
+ actor: {
1566
+ kind: "provider" | "agent" | "user" | "control-plane";
1567
+ id: string;
1568
+ handle: string | null;
1569
+ };
1570
+ id: string;
1571
+ summary: string;
1572
+ assignmentId: string | null;
1573
+ teamId: string;
1574
+ sequence: number;
1575
+ topicId: string;
1576
+ sendId: string | null;
1577
+ invocationId: string | null;
1578
+ payload: Record<string, unknown>;
1579
+ channel: string;
1580
+ occurredAt: string;
1581
+ }[];
1564
1582
  topic: {
1565
1583
  status: "active" | "archived";
1566
1584
  id: string;
1567
- slug: string;
1568
- teamId: string;
1569
1585
  createdAt: string;
1570
1586
  updatedAt: string;
1587
+ slug: string;
1588
+ teamId: string;
1571
1589
  streams: {
1572
1590
  id: string;
1573
1591
  projectId: string;
1574
- projectSlug: string;
1575
1592
  discussionId: string;
1593
+ projectSlug: string;
1576
1594
  }[];
1577
1595
  listeners: {
1578
1596
  status: "active" | "removed";
1579
- projectId: string;
1580
- source: "seed" | "operator" | "mention";
1597
+ updatedAt: string;
1581
1598
  agentSlug: string;
1599
+ source: "seed" | "operator" | "mention";
1600
+ projectId: string;
1582
1601
  projectSlug: string;
1583
- updatedAt: string;
1584
1602
  agentHandle: string;
1585
1603
  subscribedAt: string;
1586
1604
  }[];
1587
1605
  };
1606
+ cursor: string | null;
1607
+ }, {
1588
1608
  events: {
1589
1609
  type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
1590
1610
  actor: {
1591
- kind: "provider" | "agent" | "control-plane" | "user";
1611
+ kind: "provider" | "agent" | "user" | "control-plane";
1592
1612
  id: string;
1593
1613
  handle: string | null;
1594
1614
  };
1595
1615
  id: string;
1596
- teamId: string;
1616
+ summary: string;
1597
1617
  assignmentId: string | null;
1618
+ teamId: string;
1619
+ sequence: number;
1598
1620
  topicId: string;
1599
1621
  sendId: string | null;
1600
1622
  invocationId: string | null;
1601
- sequence: number;
1602
1623
  payload: Record<string, unknown>;
1603
- summary: string;
1604
1624
  channel: string;
1605
1625
  occurredAt: string;
1606
1626
  }[];
1607
- }, {
1608
- cursor: string | null;
1609
1627
  topic: {
1610
1628
  status: "active" | "archived";
1611
1629
  id: string;
1612
- slug: string;
1613
- teamId: string;
1614
1630
  createdAt: string;
1615
1631
  updatedAt: string;
1632
+ slug: string;
1633
+ teamId: string;
1616
1634
  streams: {
1617
1635
  id: string;
1618
1636
  projectId: string;
1619
- projectSlug: string;
1620
1637
  discussionId: string;
1638
+ projectSlug: string;
1621
1639
  }[];
1622
1640
  listeners: {
1623
1641
  status: "active" | "removed";
1624
- projectId: string;
1625
- source: "seed" | "operator" | "mention";
1642
+ updatedAt: string;
1626
1643
  agentSlug: string;
1644
+ source: "seed" | "operator" | "mention";
1645
+ projectId: string;
1627
1646
  projectSlug: string;
1628
- updatedAt: string;
1629
1647
  agentHandle: string;
1630
1648
  subscribedAt: string;
1631
1649
  }[];
1632
1650
  };
1633
- events: {
1634
- type: "message.posted" | "mention.acknowledged" | "response_lease.accepted" | "agent.progress" | "agent.response" | "agent.abstained" | "agent.failed";
1635
- actor: {
1636
- kind: "provider" | "agent" | "control-plane" | "user";
1637
- id: string;
1638
- handle: string | null;
1639
- };
1640
- id: string;
1641
- teamId: string;
1642
- assignmentId: string | null;
1643
- topicId: string;
1644
- sendId: string | null;
1645
- invocationId: string | null;
1646
- sequence: number;
1647
- payload: Record<string, unknown>;
1648
- summary: string;
1649
- channel: string;
1650
- occurredAt: string;
1651
- }[];
1651
+ cursor: string | null;
1652
1652
  }>;
1653
1653
  export declare const communicationTopicSubscriptionRequestSchema: z.ZodObject<{
1654
1654
  agent: z.ZodString;
@@ -1671,20 +1671,20 @@ export declare const communicationTopicSubscriptionReceiptSchema: z.ZodObject<{
1671
1671
  source: z.ZodEnum<["mention", "operator", "seed"]>;
1672
1672
  }, "strict", z.ZodTypeAny, {
1673
1673
  status: "active" | "removed";
1674
- projectId: string;
1675
- source: "seed" | "operator" | "mention";
1674
+ updatedAt: string;
1676
1675
  agentSlug: string;
1676
+ source: "seed" | "operator" | "mention";
1677
+ projectId: string;
1677
1678
  projectSlug: string;
1678
- updatedAt: string;
1679
1679
  agentHandle: string;
1680
1680
  subscribedAt: string;
1681
1681
  }, {
1682
1682
  status: "active" | "removed";
1683
- projectId: string;
1684
- source: "seed" | "operator" | "mention";
1683
+ updatedAt: string;
1685
1684
  agentSlug: string;
1685
+ source: "seed" | "operator" | "mention";
1686
+ projectId: string;
1686
1687
  projectSlug: string;
1687
- updatedAt: string;
1688
1688
  agentHandle: string;
1689
1689
  subscribedAt: string;
1690
1690
  }>;
@@ -1694,11 +1694,11 @@ export declare const communicationTopicSubscriptionReceiptSchema: z.ZodObject<{
1694
1694
  replayed: boolean;
1695
1695
  listener: {
1696
1696
  status: "active" | "removed";
1697
- projectId: string;
1698
- source: "seed" | "operator" | "mention";
1697
+ updatedAt: string;
1699
1698
  agentSlug: string;
1699
+ source: "seed" | "operator" | "mention";
1700
+ projectId: string;
1700
1701
  projectSlug: string;
1701
- updatedAt: string;
1702
1702
  agentHandle: string;
1703
1703
  subscribedAt: string;
1704
1704
  };
@@ -1707,11 +1707,11 @@ export declare const communicationTopicSubscriptionReceiptSchema: z.ZodObject<{
1707
1707
  replayed: boolean;
1708
1708
  listener: {
1709
1709
  status: "active" | "removed";
1710
- projectId: string;
1711
- source: "seed" | "operator" | "mention";
1710
+ updatedAt: string;
1712
1711
  agentSlug: string;
1712
+ source: "seed" | "operator" | "mention";
1713
+ projectId: string;
1713
1714
  projectSlug: string;
1714
- updatedAt: string;
1715
1715
  agentHandle: string;
1716
1716
  subscribedAt: string;
1717
1717
  };
@@ -1740,18 +1740,18 @@ export declare const providerCommunicationTraceEventRequestSchema: z.ZodObject<{
1740
1740
  protectedPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1741
1741
  }, "strict", z.ZodTypeAny, {
1742
1742
  type: string;
1743
+ summary: string;
1743
1744
  sequence: number;
1744
1745
  payload: Record<string, unknown>;
1745
- summary: string;
1746
1746
  occurredAt: string;
1747
1747
  runnerId: string;
1748
1748
  leaseToken: string;
1749
1749
  protectedPayload?: Record<string, unknown> | undefined;
1750
1750
  }, {
1751
1751
  type: string;
1752
+ summary: string;
1752
1753
  sequence: number;
1753
1754
  payload: Record<string, unknown>;
1754
- summary: string;
1755
1755
  occurredAt: string;
1756
1756
  runnerId: string;
1757
1757
  leaseToken: string;
@@ -1765,9 +1765,9 @@ export declare const providerDiscussionResponseRequestSchema: z.ZodEffects<z.Zod
1765
1765
  summary: z.ZodOptional<z.ZodString>;
1766
1766
  usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1767
1767
  }, "strict", z.ZodTypeAny, {
1768
+ outcome: "responded" | "abstained";
1768
1769
  runnerId: string;
1769
1770
  leaseToken: string;
1770
- outcome: "responded" | "abstained";
1771
1771
  summary?: string | undefined;
1772
1772
  usage?: Record<string, unknown> | undefined;
1773
1773
  markdown?: string | undefined;
@@ -1776,12 +1776,12 @@ export declare const providerDiscussionResponseRequestSchema: z.ZodEffects<z.Zod
1776
1776
  leaseToken: string;
1777
1777
  summary?: string | undefined;
1778
1778
  usage?: Record<string, unknown> | undefined;
1779
- markdown?: string | undefined;
1780
1779
  outcome?: "responded" | "abstained" | undefined;
1780
+ markdown?: string | undefined;
1781
1781
  }>, {
1782
+ outcome: "responded" | "abstained";
1782
1783
  runnerId: string;
1783
1784
  leaseToken: string;
1784
- outcome: "responded" | "abstained";
1785
1785
  summary?: string | undefined;
1786
1786
  usage?: Record<string, unknown> | undefined;
1787
1787
  markdown?: string | undefined;
@@ -1790,30 +1790,172 @@ export declare const providerDiscussionResponseRequestSchema: z.ZodEffects<z.Zod
1790
1790
  leaseToken: string;
1791
1791
  summary?: string | undefined;
1792
1792
  usage?: Record<string, unknown> | undefined;
1793
- markdown?: string | undefined;
1794
1793
  outcome?: "responded" | "abstained" | undefined;
1794
+ markdown?: string | undefined;
1795
1795
  }>;
1796
- export declare const providerDiscussionResponseReceiptSchema: z.ZodObject<{
1796
+ export declare const providerDiscussionResponseReceiptSchema: z.ZodEffects<z.ZodObject<{
1797
1797
  schemaVersion: z.ZodLiteral<"treeseed.provider-discussion-response-receipt/v1">;
1798
1798
  assignmentId: z.ZodString;
1799
1799
  invocationId: z.ZodString;
1800
1800
  messageRef: z.ZodString;
1801
+ reference: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1802
+ kind: z.ZodLiteral<"git">;
1803
+ repository: z.ZodString;
1804
+ commit: z.ZodString;
1805
+ branch: z.ZodOptional<z.ZodString>;
1806
+ path: z.ZodOptional<z.ZodString>;
1807
+ }, "strict", z.ZodTypeAny, {
1808
+ kind: "git";
1809
+ commit: string;
1810
+ repository: string;
1811
+ path?: string | undefined;
1812
+ branch?: string | undefined;
1813
+ }, {
1814
+ kind: "git";
1815
+ commit: string;
1816
+ repository: string;
1817
+ path?: string | undefined;
1818
+ branch?: string | undefined;
1819
+ }>, z.ZodObject<{
1820
+ kind: z.ZodLiteral<"treedx">;
1821
+ projectId: z.ZodString;
1822
+ repository: z.ZodString;
1823
+ commit: z.ZodString;
1824
+ path: z.ZodString;
1825
+ workspaceId: z.ZodOptional<z.ZodString>;
1826
+ }, "strict", z.ZodTypeAny, {
1827
+ path: string;
1828
+ kind: "treedx";
1829
+ commit: string;
1830
+ repository: string;
1831
+ projectId: string;
1832
+ workspaceId?: string | undefined;
1833
+ }, {
1834
+ path: string;
1835
+ kind: "treedx";
1836
+ commit: string;
1837
+ repository: string;
1838
+ projectId: string;
1839
+ workspaceId?: string | undefined;
1840
+ }>, z.ZodObject<{
1841
+ kind: z.ZodLiteral<"url">;
1842
+ url: z.ZodString;
1843
+ digest: z.ZodOptional<z.ZodString>;
1844
+ }, "strict", z.ZodTypeAny, {
1845
+ kind: "url";
1846
+ url: string;
1847
+ digest?: string | undefined;
1848
+ }, {
1849
+ kind: "url";
1850
+ url: string;
1851
+ digest?: string | undefined;
1852
+ }>]>, {
1853
+ path: string;
1854
+ kind: "treedx";
1855
+ commit: string;
1856
+ repository: string;
1857
+ projectId: string;
1858
+ workspaceId?: string | undefined;
1859
+ }, {
1860
+ kind: "git";
1861
+ commit: string;
1862
+ repository: string;
1863
+ path?: string | undefined;
1864
+ branch?: string | undefined;
1865
+ } | {
1866
+ path: string;
1867
+ kind: "treedx";
1868
+ commit: string;
1869
+ repository: string;
1870
+ projectId: string;
1871
+ workspaceId?: string | undefined;
1872
+ } | {
1873
+ kind: "url";
1874
+ url: string;
1875
+ digest?: string | undefined;
1876
+ }>;
1801
1877
  status: z.ZodEnum<["responded", "abstained"]>;
1802
1878
  settledAt: z.ZodString;
1803
1879
  }, "strict", z.ZodTypeAny, {
1804
1880
  status: "responded" | "abstained";
1805
1881
  schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1806
1882
  assignmentId: string;
1883
+ settledAt: string;
1807
1884
  invocationId: string;
1885
+ reference: {
1886
+ path: string;
1887
+ kind: "treedx";
1888
+ commit: string;
1889
+ repository: string;
1890
+ projectId: string;
1891
+ workspaceId?: string | undefined;
1892
+ };
1808
1893
  messageRef: string;
1809
- settledAt: string;
1810
1894
  }, {
1811
1895
  status: "responded" | "abstained";
1812
1896
  schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1813
1897
  assignmentId: string;
1898
+ settledAt: string;
1814
1899
  invocationId: string;
1900
+ reference: {
1901
+ kind: "git";
1902
+ commit: string;
1903
+ repository: string;
1904
+ path?: string | undefined;
1905
+ branch?: string | undefined;
1906
+ } | {
1907
+ path: string;
1908
+ kind: "treedx";
1909
+ commit: string;
1910
+ repository: string;
1911
+ projectId: string;
1912
+ workspaceId?: string | undefined;
1913
+ } | {
1914
+ kind: "url";
1915
+ url: string;
1916
+ digest?: string | undefined;
1917
+ };
1815
1918
  messageRef: string;
1919
+ }>, {
1920
+ status: "responded" | "abstained";
1921
+ schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1922
+ assignmentId: string;
1816
1923
  settledAt: string;
1924
+ invocationId: string;
1925
+ reference: {
1926
+ path: string;
1927
+ kind: "treedx";
1928
+ commit: string;
1929
+ repository: string;
1930
+ projectId: string;
1931
+ workspaceId?: string | undefined;
1932
+ };
1933
+ messageRef: string;
1934
+ }, {
1935
+ status: "responded" | "abstained";
1936
+ schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
1937
+ assignmentId: string;
1938
+ settledAt: string;
1939
+ invocationId: string;
1940
+ reference: {
1941
+ kind: "git";
1942
+ commit: string;
1943
+ repository: string;
1944
+ path?: string | undefined;
1945
+ branch?: string | undefined;
1946
+ } | {
1947
+ path: string;
1948
+ kind: "treedx";
1949
+ commit: string;
1950
+ repository: string;
1951
+ projectId: string;
1952
+ workspaceId?: string | undefined;
1953
+ } | {
1954
+ kind: "url";
1955
+ url: string;
1956
+ digest?: string | undefined;
1957
+ };
1958
+ messageRef: string;
1817
1959
  }>;
1818
1960
  export type CommunicationSendRequest = z.infer<typeof communicationSendRequestSchema>;
1819
1961
  export type CommunicationSendReceipt = z.infer<typeof communicationSendReceiptSchema>;