@rudderhq/shared 0.7.1 → 0.7.2

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 (61) hide show
  1. package/dist/config-schema.d.ts +7 -7
  2. package/dist/constants.d.ts +44 -3
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/constants.js +65 -1
  5. package/dist/constants.js.map +1 -1
  6. package/dist/index.d.ts +8 -6
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +6 -4
  9. package/dist/index.js.map +1 -1
  10. package/dist/types/chat.d.ts +5 -1
  11. package/dist/types/chat.d.ts.map +1 -1
  12. package/dist/types/goal.d.ts +267 -1
  13. package/dist/types/goal.d.ts.map +1 -1
  14. package/dist/types/index.d.ts +2 -2
  15. package/dist/types/index.d.ts.map +1 -1
  16. package/dist/types/instance.d.ts +1 -0
  17. package/dist/types/instance.d.ts.map +1 -1
  18. package/dist/types/mcp.d.ts +7 -2
  19. package/dist/types/mcp.d.ts.map +1 -1
  20. package/dist/validators/access.d.ts +3 -3
  21. package/dist/validators/agent-issue-creation.d.ts +29 -0
  22. package/dist/validators/agent-issue-creation.d.ts.map +1 -0
  23. package/dist/validators/agent-issue-creation.js +13 -0
  24. package/dist/validators/agent-issue-creation.js.map +1 -0
  25. package/dist/validators/agent-issue-creation.test.d.ts +2 -0
  26. package/dist/validators/agent-issue-creation.test.d.ts.map +1 -0
  27. package/dist/validators/agent-issue-creation.test.js +64 -0
  28. package/dist/validators/agent-issue-creation.test.js.map +1 -0
  29. package/dist/validators/agent.d.ts +11 -11
  30. package/dist/validators/app-builder.d.ts +4 -4
  31. package/dist/validators/approval.d.ts +3 -3
  32. package/dist/validators/budget.d.ts +1 -1
  33. package/dist/validators/calendar.d.ts +8 -8
  34. package/dist/validators/cost.d.ts +4 -4
  35. package/dist/validators/finance.d.ts +9 -9
  36. package/dist/validators/goal.d.ts +1015 -20
  37. package/dist/validators/goal.d.ts.map +1 -1
  38. package/dist/validators/goal.js +182 -5
  39. package/dist/validators/goal.js.map +1 -1
  40. package/dist/validators/index.d.ts +2 -1
  41. package/dist/validators/index.d.ts.map +1 -1
  42. package/dist/validators/index.js +2 -1
  43. package/dist/validators/index.js.map +1 -1
  44. package/dist/validators/instance.d.ts +6 -0
  45. package/dist/validators/instance.d.ts.map +1 -1
  46. package/dist/validators/instance.js +1 -0
  47. package/dist/validators/instance.js.map +1 -1
  48. package/dist/validators/instance.test.js +1 -0
  49. package/dist/validators/instance.test.js.map +1 -1
  50. package/dist/validators/mcp.d.ts +243 -55
  51. package/dist/validators/mcp.d.ts.map +1 -1
  52. package/dist/validators/mcp.js +57 -4
  53. package/dist/validators/mcp.js.map +1 -1
  54. package/dist/validators/mcp.test.js +78 -58
  55. package/dist/validators/mcp.test.js.map +1 -1
  56. package/dist/validators/organization-intelligence-profile.d.ts +3 -3
  57. package/dist/validators/organization-skill.d.ts +26 -26
  58. package/dist/validators/project.d.ts +20 -20
  59. package/dist/validators/resource.d.ts +8 -8
  60. package/dist/validators/work-product.d.ts +8 -8
  61. package/package.json +1 -1
@@ -2,47 +2,1042 @@ import { z } from "zod";
2
2
  export declare const createGoalSchema: z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
- level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["organization", "team", "agent", "task"]>>>;
6
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["planned", "active", "achieved", "cancelled"]>>>;
5
+ alignmentQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6
+ /** Accepted for legacy clients but intentionally ignored by the canonical create command. */
7
+ level: z.ZodOptional<z.ZodString>;
8
+ status: z.ZodOptional<z.ZodString>;
7
9
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8
10
  ownerAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
11
  }, "strip", z.ZodTypeAny, {
10
- status: "active" | "cancelled" | "planned" | "achieved";
11
12
  title: string;
12
- level: "organization" | "agent" | "team" | "task";
13
+ status?: string | undefined;
13
14
  ownerAgentId?: string | null | undefined;
14
15
  description?: string | null | undefined;
15
16
  parentId?: string | null | undefined;
17
+ alignmentQuestion?: string | null | undefined;
18
+ level?: string | undefined;
16
19
  }, {
17
20
  title: string;
18
- status?: "active" | "cancelled" | "planned" | "achieved" | undefined;
21
+ status?: string | undefined;
19
22
  ownerAgentId?: string | null | undefined;
20
23
  description?: string | null | undefined;
21
24
  parentId?: string | null | undefined;
22
- level?: "organization" | "agent" | "team" | "task" | undefined;
25
+ alignmentQuestion?: string | null | undefined;
26
+ level?: string | undefined;
23
27
  }>;
24
28
  export type CreateGoal = z.infer<typeof createGoalSchema>;
25
29
  export declare const updateGoalSchema: z.ZodObject<{
26
30
  title: z.ZodOptional<z.ZodString>;
27
- description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
28
- level: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["organization", "team", "agent", "task"]>>>>;
29
- status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["planned", "active", "achieved", "cancelled"]>>>>;
30
- parentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
31
- ownerAgentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
32
- }, "strip", z.ZodTypeAny, {
33
- status?: "active" | "cancelled" | "planned" | "achieved" | undefined;
31
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
+ alignmentQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ }, "strict", z.ZodTypeAny, {
34
34
  title?: string | undefined;
35
- ownerAgentId?: string | null | undefined;
36
35
  description?: string | null | undefined;
37
- parentId?: string | null | undefined;
38
- level?: "organization" | "agent" | "team" | "task" | undefined;
36
+ alignmentQuestion?: string | null | undefined;
39
37
  }, {
40
- status?: "active" | "cancelled" | "planned" | "achieved" | undefined;
41
38
  title?: string | undefined;
42
- ownerAgentId?: string | null | undefined;
43
39
  description?: string | null | undefined;
44
- parentId?: string | null | undefined;
45
- level?: "organization" | "agent" | "team" | "task" | undefined;
40
+ alignmentQuestion?: string | null | undefined;
46
41
  }>;
47
42
  export type UpdateGoal = z.infer<typeof updateGoalSchema>;
43
+ export declare const activateGoalSchema: z.ZodEffects<z.ZodObject<{
44
+ confirmed: z.ZodLiteral<true>;
45
+ ownerAgentId: z.ZodString;
46
+ outcomeStatement: z.ZodString;
47
+ objectiveMode: z.ZodEnum<["target", "maximize", "maintain", "decide"]>;
48
+ criteria: z.ZodArray<z.ZodObject<{
49
+ id: z.ZodString;
50
+ label: z.ZodString;
51
+ evaluator: z.ZodEnum<["artifact", "metric", "policy", "human"]>;
52
+ evidenceRequirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ id: string;
55
+ label: string;
56
+ evaluator: "artifact" | "metric" | "policy" | "human";
57
+ evidenceRequirements?: string[] | undefined;
58
+ }, {
59
+ id: string;
60
+ label: string;
61
+ evaluator: "artifact" | "metric" | "policy" | "human";
62
+ evidenceRequirements?: string[] | undefined;
63
+ }>, "many">;
64
+ autonomyEnvelope: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
65
+ humanAuthorities: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
66
+ evaluationPolicy: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
67
+ actionDeadline: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
68
+ evaluationDeadline: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
69
+ initialContinuation: z.ZodObject<{
70
+ kind: z.ZodEnum<["commitment", "wait", "decision", "verification"]>;
71
+ summary: z.ZodString;
72
+ wakeCondition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ summary: string;
75
+ kind: "commitment" | "wait" | "decision" | "verification";
76
+ wakeCondition?: string | null | undefined;
77
+ }, {
78
+ summary: string;
79
+ kind: "commitment" | "wait" | "decision" | "verification";
80
+ wakeCondition?: string | null | undefined;
81
+ }>;
82
+ initialPlan: z.ZodObject<{
83
+ summary: z.ZodString;
84
+ hypotheses: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
85
+ selectedPaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
86
+ rejectedPaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
87
+ sequencing: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
88
+ budgetAllocations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
89
+ invalidationConditions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ summary: string;
92
+ hypotheses: unknown[];
93
+ selectedPaths: unknown[];
94
+ rejectedPaths: unknown[];
95
+ sequencing: unknown[];
96
+ budgetAllocations: Record<string, unknown>;
97
+ invalidationConditions: unknown[];
98
+ }, {
99
+ summary: string;
100
+ hypotheses?: unknown[] | undefined;
101
+ selectedPaths?: unknown[] | undefined;
102
+ rejectedPaths?: unknown[] | undefined;
103
+ sequencing?: unknown[] | undefined;
104
+ budgetAllocations?: Record<string, unknown> | undefined;
105
+ invalidationConditions?: unknown[] | undefined;
106
+ }>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ ownerAgentId: string;
109
+ confirmed: true;
110
+ outcomeStatement: string;
111
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
112
+ criteria: {
113
+ id: string;
114
+ label: string;
115
+ evaluator: "artifact" | "metric" | "policy" | "human";
116
+ evidenceRequirements?: string[] | undefined;
117
+ }[];
118
+ autonomyEnvelope: Record<string, unknown>;
119
+ humanAuthorities: Record<string, unknown>;
120
+ evaluationPolicy: Record<string, unknown>;
121
+ initialContinuation: {
122
+ summary: string;
123
+ kind: "commitment" | "wait" | "decision" | "verification";
124
+ wakeCondition?: string | null | undefined;
125
+ };
126
+ initialPlan: {
127
+ summary: string;
128
+ hypotheses: unknown[];
129
+ selectedPaths: unknown[];
130
+ rejectedPaths: unknown[];
131
+ sequencing: unknown[];
132
+ budgetAllocations: Record<string, unknown>;
133
+ invalidationConditions: unknown[];
134
+ };
135
+ actionDeadline?: Date | null | undefined;
136
+ evaluationDeadline?: Date | null | undefined;
137
+ }, {
138
+ ownerAgentId: string;
139
+ confirmed: true;
140
+ outcomeStatement: string;
141
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
142
+ criteria: {
143
+ id: string;
144
+ label: string;
145
+ evaluator: "artifact" | "metric" | "policy" | "human";
146
+ evidenceRequirements?: string[] | undefined;
147
+ }[];
148
+ initialContinuation: {
149
+ summary: string;
150
+ kind: "commitment" | "wait" | "decision" | "verification";
151
+ wakeCondition?: string | null | undefined;
152
+ };
153
+ initialPlan: {
154
+ summary: string;
155
+ hypotheses?: unknown[] | undefined;
156
+ selectedPaths?: unknown[] | undefined;
157
+ rejectedPaths?: unknown[] | undefined;
158
+ sequencing?: unknown[] | undefined;
159
+ budgetAllocations?: Record<string, unknown> | undefined;
160
+ invalidationConditions?: unknown[] | undefined;
161
+ };
162
+ autonomyEnvelope?: Record<string, unknown> | undefined;
163
+ humanAuthorities?: Record<string, unknown> | undefined;
164
+ evaluationPolicy?: Record<string, unknown> | undefined;
165
+ actionDeadline?: Date | null | undefined;
166
+ evaluationDeadline?: Date | null | undefined;
167
+ }>, {
168
+ ownerAgentId: string;
169
+ confirmed: true;
170
+ outcomeStatement: string;
171
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
172
+ criteria: {
173
+ id: string;
174
+ label: string;
175
+ evaluator: "artifact" | "metric" | "policy" | "human";
176
+ evidenceRequirements?: string[] | undefined;
177
+ }[];
178
+ autonomyEnvelope: Record<string, unknown>;
179
+ humanAuthorities: Record<string, unknown>;
180
+ evaluationPolicy: Record<string, unknown>;
181
+ initialContinuation: {
182
+ summary: string;
183
+ kind: "commitment" | "wait" | "decision" | "verification";
184
+ wakeCondition?: string | null | undefined;
185
+ };
186
+ initialPlan: {
187
+ summary: string;
188
+ hypotheses: unknown[];
189
+ selectedPaths: unknown[];
190
+ rejectedPaths: unknown[];
191
+ sequencing: unknown[];
192
+ budgetAllocations: Record<string, unknown>;
193
+ invalidationConditions: unknown[];
194
+ };
195
+ actionDeadline?: Date | null | undefined;
196
+ evaluationDeadline?: Date | null | undefined;
197
+ }, {
198
+ ownerAgentId: string;
199
+ confirmed: true;
200
+ outcomeStatement: string;
201
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
202
+ criteria: {
203
+ id: string;
204
+ label: string;
205
+ evaluator: "artifact" | "metric" | "policy" | "human";
206
+ evidenceRequirements?: string[] | undefined;
207
+ }[];
208
+ initialContinuation: {
209
+ summary: string;
210
+ kind: "commitment" | "wait" | "decision" | "verification";
211
+ wakeCondition?: string | null | undefined;
212
+ };
213
+ initialPlan: {
214
+ summary: string;
215
+ hypotheses?: unknown[] | undefined;
216
+ selectedPaths?: unknown[] | undefined;
217
+ rejectedPaths?: unknown[] | undefined;
218
+ sequencing?: unknown[] | undefined;
219
+ budgetAllocations?: Record<string, unknown> | undefined;
220
+ invalidationConditions?: unknown[] | undefined;
221
+ };
222
+ autonomyEnvelope?: Record<string, unknown> | undefined;
223
+ humanAuthorities?: Record<string, unknown> | undefined;
224
+ evaluationPolicy?: Record<string, unknown> | undefined;
225
+ actionDeadline?: Date | null | undefined;
226
+ evaluationDeadline?: Date | null | undefined;
227
+ }>;
228
+ export type ActivateGoal = z.infer<typeof activateGoalSchema>;
229
+ export type ActivateGoalInput = z.input<typeof activateGoalSchema>;
230
+ export declare const previewGoalStartSchema: z.ZodObject<{
231
+ title: z.ZodString;
232
+ context: z.ZodNullable<z.ZodString>;
233
+ ownerAgentId: z.ZodNullable<z.ZodString>;
234
+ targetTime: z.ZodNullable<z.ZodDate>;
235
+ }, "strict", z.ZodTypeAny, {
236
+ title: string;
237
+ ownerAgentId: string | null;
238
+ context: string | null;
239
+ targetTime: Date | null;
240
+ }, {
241
+ title: string;
242
+ ownerAgentId: string | null;
243
+ context: string | null;
244
+ targetTime: Date | null;
245
+ }>;
246
+ export type PreviewGoalStart = z.infer<typeof previewGoalStartSchema>;
247
+ export declare const startGoalSchema: z.ZodObject<{
248
+ requestKey: z.ZodString;
249
+ packetHash: z.ZodString;
250
+ packet: z.ZodEffects<z.ZodObject<{
251
+ version: z.ZodLiteral<1>;
252
+ title: z.ZodString;
253
+ description: z.ZodNullable<z.ZodString>;
254
+ ownerAgentId: z.ZodString;
255
+ activation: z.ZodEffects<z.ZodObject<{
256
+ confirmed: z.ZodLiteral<true>;
257
+ ownerAgentId: z.ZodString;
258
+ outcomeStatement: z.ZodString;
259
+ objectiveMode: z.ZodEnum<["target", "maximize", "maintain", "decide"]>;
260
+ criteria: z.ZodArray<z.ZodObject<{
261
+ id: z.ZodString;
262
+ label: z.ZodString;
263
+ evaluator: z.ZodEnum<["artifact", "metric", "policy", "human"]>;
264
+ evidenceRequirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ id: string;
267
+ label: string;
268
+ evaluator: "artifact" | "metric" | "policy" | "human";
269
+ evidenceRequirements?: string[] | undefined;
270
+ }, {
271
+ id: string;
272
+ label: string;
273
+ evaluator: "artifact" | "metric" | "policy" | "human";
274
+ evidenceRequirements?: string[] | undefined;
275
+ }>, "many">;
276
+ autonomyEnvelope: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
277
+ humanAuthorities: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
278
+ evaluationPolicy: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
279
+ actionDeadline: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
280
+ evaluationDeadline: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
281
+ initialContinuation: z.ZodObject<{
282
+ kind: z.ZodEnum<["commitment", "wait", "decision", "verification"]>;
283
+ summary: z.ZodString;
284
+ wakeCondition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ summary: string;
287
+ kind: "commitment" | "wait" | "decision" | "verification";
288
+ wakeCondition?: string | null | undefined;
289
+ }, {
290
+ summary: string;
291
+ kind: "commitment" | "wait" | "decision" | "verification";
292
+ wakeCondition?: string | null | undefined;
293
+ }>;
294
+ initialPlan: z.ZodObject<{
295
+ summary: z.ZodString;
296
+ hypotheses: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
297
+ selectedPaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
298
+ rejectedPaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
299
+ sequencing: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
300
+ budgetAllocations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
301
+ invalidationConditions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ summary: string;
304
+ hypotheses: unknown[];
305
+ selectedPaths: unknown[];
306
+ rejectedPaths: unknown[];
307
+ sequencing: unknown[];
308
+ budgetAllocations: Record<string, unknown>;
309
+ invalidationConditions: unknown[];
310
+ }, {
311
+ summary: string;
312
+ hypotheses?: unknown[] | undefined;
313
+ selectedPaths?: unknown[] | undefined;
314
+ rejectedPaths?: unknown[] | undefined;
315
+ sequencing?: unknown[] | undefined;
316
+ budgetAllocations?: Record<string, unknown> | undefined;
317
+ invalidationConditions?: unknown[] | undefined;
318
+ }>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ ownerAgentId: string;
321
+ confirmed: true;
322
+ outcomeStatement: string;
323
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
324
+ criteria: {
325
+ id: string;
326
+ label: string;
327
+ evaluator: "artifact" | "metric" | "policy" | "human";
328
+ evidenceRequirements?: string[] | undefined;
329
+ }[];
330
+ autonomyEnvelope: Record<string, unknown>;
331
+ humanAuthorities: Record<string, unknown>;
332
+ evaluationPolicy: Record<string, unknown>;
333
+ initialContinuation: {
334
+ summary: string;
335
+ kind: "commitment" | "wait" | "decision" | "verification";
336
+ wakeCondition?: string | null | undefined;
337
+ };
338
+ initialPlan: {
339
+ summary: string;
340
+ hypotheses: unknown[];
341
+ selectedPaths: unknown[];
342
+ rejectedPaths: unknown[];
343
+ sequencing: unknown[];
344
+ budgetAllocations: Record<string, unknown>;
345
+ invalidationConditions: unknown[];
346
+ };
347
+ actionDeadline?: Date | null | undefined;
348
+ evaluationDeadline?: Date | null | undefined;
349
+ }, {
350
+ ownerAgentId: string;
351
+ confirmed: true;
352
+ outcomeStatement: string;
353
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
354
+ criteria: {
355
+ id: string;
356
+ label: string;
357
+ evaluator: "artifact" | "metric" | "policy" | "human";
358
+ evidenceRequirements?: string[] | undefined;
359
+ }[];
360
+ initialContinuation: {
361
+ summary: string;
362
+ kind: "commitment" | "wait" | "decision" | "verification";
363
+ wakeCondition?: string | null | undefined;
364
+ };
365
+ initialPlan: {
366
+ summary: string;
367
+ hypotheses?: unknown[] | undefined;
368
+ selectedPaths?: unknown[] | undefined;
369
+ rejectedPaths?: unknown[] | undefined;
370
+ sequencing?: unknown[] | undefined;
371
+ budgetAllocations?: Record<string, unknown> | undefined;
372
+ invalidationConditions?: unknown[] | undefined;
373
+ };
374
+ autonomyEnvelope?: Record<string, unknown> | undefined;
375
+ humanAuthorities?: Record<string, unknown> | undefined;
376
+ evaluationPolicy?: Record<string, unknown> | undefined;
377
+ actionDeadline?: Date | null | undefined;
378
+ evaluationDeadline?: Date | null | undefined;
379
+ }>, {
380
+ ownerAgentId: string;
381
+ confirmed: true;
382
+ outcomeStatement: string;
383
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
384
+ criteria: {
385
+ id: string;
386
+ label: string;
387
+ evaluator: "artifact" | "metric" | "policy" | "human";
388
+ evidenceRequirements?: string[] | undefined;
389
+ }[];
390
+ autonomyEnvelope: Record<string, unknown>;
391
+ humanAuthorities: Record<string, unknown>;
392
+ evaluationPolicy: Record<string, unknown>;
393
+ initialContinuation: {
394
+ summary: string;
395
+ kind: "commitment" | "wait" | "decision" | "verification";
396
+ wakeCondition?: string | null | undefined;
397
+ };
398
+ initialPlan: {
399
+ summary: string;
400
+ hypotheses: unknown[];
401
+ selectedPaths: unknown[];
402
+ rejectedPaths: unknown[];
403
+ sequencing: unknown[];
404
+ budgetAllocations: Record<string, unknown>;
405
+ invalidationConditions: unknown[];
406
+ };
407
+ actionDeadline?: Date | null | undefined;
408
+ evaluationDeadline?: Date | null | undefined;
409
+ }, {
410
+ ownerAgentId: string;
411
+ confirmed: true;
412
+ outcomeStatement: string;
413
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
414
+ criteria: {
415
+ id: string;
416
+ label: string;
417
+ evaluator: "artifact" | "metric" | "policy" | "human";
418
+ evidenceRequirements?: string[] | undefined;
419
+ }[];
420
+ initialContinuation: {
421
+ summary: string;
422
+ kind: "commitment" | "wait" | "decision" | "verification";
423
+ wakeCondition?: string | null | undefined;
424
+ };
425
+ initialPlan: {
426
+ summary: string;
427
+ hypotheses?: unknown[] | undefined;
428
+ selectedPaths?: unknown[] | undefined;
429
+ rejectedPaths?: unknown[] | undefined;
430
+ sequencing?: unknown[] | undefined;
431
+ budgetAllocations?: Record<string, unknown> | undefined;
432
+ invalidationConditions?: unknown[] | undefined;
433
+ };
434
+ autonomyEnvelope?: Record<string, unknown> | undefined;
435
+ humanAuthorities?: Record<string, unknown> | undefined;
436
+ evaluationPolicy?: Record<string, unknown> | undefined;
437
+ actionDeadline?: Date | null | undefined;
438
+ evaluationDeadline?: Date | null | undefined;
439
+ }>;
440
+ }, "strict", z.ZodTypeAny, {
441
+ version: 1;
442
+ title: string;
443
+ ownerAgentId: string;
444
+ description: string | null;
445
+ activation: {
446
+ ownerAgentId: string;
447
+ confirmed: true;
448
+ outcomeStatement: string;
449
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
450
+ criteria: {
451
+ id: string;
452
+ label: string;
453
+ evaluator: "artifact" | "metric" | "policy" | "human";
454
+ evidenceRequirements?: string[] | undefined;
455
+ }[];
456
+ autonomyEnvelope: Record<string, unknown>;
457
+ humanAuthorities: Record<string, unknown>;
458
+ evaluationPolicy: Record<string, unknown>;
459
+ initialContinuation: {
460
+ summary: string;
461
+ kind: "commitment" | "wait" | "decision" | "verification";
462
+ wakeCondition?: string | null | undefined;
463
+ };
464
+ initialPlan: {
465
+ summary: string;
466
+ hypotheses: unknown[];
467
+ selectedPaths: unknown[];
468
+ rejectedPaths: unknown[];
469
+ sequencing: unknown[];
470
+ budgetAllocations: Record<string, unknown>;
471
+ invalidationConditions: unknown[];
472
+ };
473
+ actionDeadline?: Date | null | undefined;
474
+ evaluationDeadline?: Date | null | undefined;
475
+ };
476
+ }, {
477
+ version: 1;
478
+ title: string;
479
+ ownerAgentId: string;
480
+ description: string | null;
481
+ activation: {
482
+ ownerAgentId: string;
483
+ confirmed: true;
484
+ outcomeStatement: string;
485
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
486
+ criteria: {
487
+ id: string;
488
+ label: string;
489
+ evaluator: "artifact" | "metric" | "policy" | "human";
490
+ evidenceRequirements?: string[] | undefined;
491
+ }[];
492
+ initialContinuation: {
493
+ summary: string;
494
+ kind: "commitment" | "wait" | "decision" | "verification";
495
+ wakeCondition?: string | null | undefined;
496
+ };
497
+ initialPlan: {
498
+ summary: string;
499
+ hypotheses?: unknown[] | undefined;
500
+ selectedPaths?: unknown[] | undefined;
501
+ rejectedPaths?: unknown[] | undefined;
502
+ sequencing?: unknown[] | undefined;
503
+ budgetAllocations?: Record<string, unknown> | undefined;
504
+ invalidationConditions?: unknown[] | undefined;
505
+ };
506
+ autonomyEnvelope?: Record<string, unknown> | undefined;
507
+ humanAuthorities?: Record<string, unknown> | undefined;
508
+ evaluationPolicy?: Record<string, unknown> | undefined;
509
+ actionDeadline?: Date | null | undefined;
510
+ evaluationDeadline?: Date | null | undefined;
511
+ };
512
+ }>, {
513
+ version: 1;
514
+ title: string;
515
+ ownerAgentId: string;
516
+ description: string | null;
517
+ activation: {
518
+ ownerAgentId: string;
519
+ confirmed: true;
520
+ outcomeStatement: string;
521
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
522
+ criteria: {
523
+ id: string;
524
+ label: string;
525
+ evaluator: "artifact" | "metric" | "policy" | "human";
526
+ evidenceRequirements?: string[] | undefined;
527
+ }[];
528
+ autonomyEnvelope: Record<string, unknown>;
529
+ humanAuthorities: Record<string, unknown>;
530
+ evaluationPolicy: Record<string, unknown>;
531
+ initialContinuation: {
532
+ summary: string;
533
+ kind: "commitment" | "wait" | "decision" | "verification";
534
+ wakeCondition?: string | null | undefined;
535
+ };
536
+ initialPlan: {
537
+ summary: string;
538
+ hypotheses: unknown[];
539
+ selectedPaths: unknown[];
540
+ rejectedPaths: unknown[];
541
+ sequencing: unknown[];
542
+ budgetAllocations: Record<string, unknown>;
543
+ invalidationConditions: unknown[];
544
+ };
545
+ actionDeadline?: Date | null | undefined;
546
+ evaluationDeadline?: Date | null | undefined;
547
+ };
548
+ }, {
549
+ version: 1;
550
+ title: string;
551
+ ownerAgentId: string;
552
+ description: string | null;
553
+ activation: {
554
+ ownerAgentId: string;
555
+ confirmed: true;
556
+ outcomeStatement: string;
557
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
558
+ criteria: {
559
+ id: string;
560
+ label: string;
561
+ evaluator: "artifact" | "metric" | "policy" | "human";
562
+ evidenceRequirements?: string[] | undefined;
563
+ }[];
564
+ initialContinuation: {
565
+ summary: string;
566
+ kind: "commitment" | "wait" | "decision" | "verification";
567
+ wakeCondition?: string | null | undefined;
568
+ };
569
+ initialPlan: {
570
+ summary: string;
571
+ hypotheses?: unknown[] | undefined;
572
+ selectedPaths?: unknown[] | undefined;
573
+ rejectedPaths?: unknown[] | undefined;
574
+ sequencing?: unknown[] | undefined;
575
+ budgetAllocations?: Record<string, unknown> | undefined;
576
+ invalidationConditions?: unknown[] | undefined;
577
+ };
578
+ autonomyEnvelope?: Record<string, unknown> | undefined;
579
+ humanAuthorities?: Record<string, unknown> | undefined;
580
+ evaluationPolicy?: Record<string, unknown> | undefined;
581
+ actionDeadline?: Date | null | undefined;
582
+ evaluationDeadline?: Date | null | undefined;
583
+ };
584
+ }>;
585
+ draftGoalId: z.ZodOptional<z.ZodString>;
586
+ }, "strict", z.ZodTypeAny, {
587
+ requestKey: string;
588
+ packetHash: string;
589
+ packet: {
590
+ version: 1;
591
+ title: string;
592
+ ownerAgentId: string;
593
+ description: string | null;
594
+ activation: {
595
+ ownerAgentId: string;
596
+ confirmed: true;
597
+ outcomeStatement: string;
598
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
599
+ criteria: {
600
+ id: string;
601
+ label: string;
602
+ evaluator: "artifact" | "metric" | "policy" | "human";
603
+ evidenceRequirements?: string[] | undefined;
604
+ }[];
605
+ autonomyEnvelope: Record<string, unknown>;
606
+ humanAuthorities: Record<string, unknown>;
607
+ evaluationPolicy: Record<string, unknown>;
608
+ initialContinuation: {
609
+ summary: string;
610
+ kind: "commitment" | "wait" | "decision" | "verification";
611
+ wakeCondition?: string | null | undefined;
612
+ };
613
+ initialPlan: {
614
+ summary: string;
615
+ hypotheses: unknown[];
616
+ selectedPaths: unknown[];
617
+ rejectedPaths: unknown[];
618
+ sequencing: unknown[];
619
+ budgetAllocations: Record<string, unknown>;
620
+ invalidationConditions: unknown[];
621
+ };
622
+ actionDeadline?: Date | null | undefined;
623
+ evaluationDeadline?: Date | null | undefined;
624
+ };
625
+ };
626
+ draftGoalId?: string | undefined;
627
+ }, {
628
+ requestKey: string;
629
+ packetHash: string;
630
+ packet: {
631
+ version: 1;
632
+ title: string;
633
+ ownerAgentId: string;
634
+ description: string | null;
635
+ activation: {
636
+ ownerAgentId: string;
637
+ confirmed: true;
638
+ outcomeStatement: string;
639
+ objectiveMode: "target" | "maximize" | "maintain" | "decide";
640
+ criteria: {
641
+ id: string;
642
+ label: string;
643
+ evaluator: "artifact" | "metric" | "policy" | "human";
644
+ evidenceRequirements?: string[] | undefined;
645
+ }[];
646
+ initialContinuation: {
647
+ summary: string;
648
+ kind: "commitment" | "wait" | "decision" | "verification";
649
+ wakeCondition?: string | null | undefined;
650
+ };
651
+ initialPlan: {
652
+ summary: string;
653
+ hypotheses?: unknown[] | undefined;
654
+ selectedPaths?: unknown[] | undefined;
655
+ rejectedPaths?: unknown[] | undefined;
656
+ sequencing?: unknown[] | undefined;
657
+ budgetAllocations?: Record<string, unknown> | undefined;
658
+ invalidationConditions?: unknown[] | undefined;
659
+ };
660
+ autonomyEnvelope?: Record<string, unknown> | undefined;
661
+ humanAuthorities?: Record<string, unknown> | undefined;
662
+ evaluationPolicy?: Record<string, unknown> | undefined;
663
+ actionDeadline?: Date | null | undefined;
664
+ evaluationDeadline?: Date | null | undefined;
665
+ };
666
+ };
667
+ draftGoalId?: string | undefined;
668
+ }>;
669
+ export type StartGoal = z.infer<typeof startGoalSchema>;
670
+ export declare const updateGoalPlanSchema: z.ZodObject<{
671
+ summary: z.ZodString;
672
+ hypotheses: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
673
+ selectedPaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
674
+ rejectedPaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
675
+ sequencing: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
676
+ budgetAllocations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
677
+ invalidationConditions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
678
+ }, "strip", z.ZodTypeAny, {
679
+ summary: string;
680
+ hypotheses: unknown[];
681
+ selectedPaths: unknown[];
682
+ rejectedPaths: unknown[];
683
+ sequencing: unknown[];
684
+ budgetAllocations: Record<string, unknown>;
685
+ invalidationConditions: unknown[];
686
+ }, {
687
+ summary: string;
688
+ hypotheses?: unknown[] | undefined;
689
+ selectedPaths?: unknown[] | undefined;
690
+ rejectedPaths?: unknown[] | undefined;
691
+ sequencing?: unknown[] | undefined;
692
+ budgetAllocations?: Record<string, unknown> | undefined;
693
+ invalidationConditions?: unknown[] | undefined;
694
+ }>;
695
+ export type UpdateGoalPlan = z.infer<typeof updateGoalPlanSchema>;
696
+ export declare const createGoalActivitySchema: z.ZodEffects<z.ZodObject<{
697
+ summary: z.ZodString;
698
+ activityKind: z.ZodNullable<z.ZodOptional<z.ZodEnum<["progress", "closeout", "evidence", "decision_requested", "bottleneck", "checkpoint"]>>>;
699
+ commitmentRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
700
+ runRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
701
+ evidenceRefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
702
+ idempotencyKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
703
+ occurredAt: z.ZodOptional<z.ZodDate>;
704
+ }, "strict", z.ZodTypeAny, {
705
+ summary: string;
706
+ evidenceRefs: string[];
707
+ activityKind?: "progress" | "closeout" | "evidence" | "decision_requested" | "bottleneck" | "checkpoint" | null | undefined;
708
+ commitmentRef?: string | null | undefined;
709
+ runRef?: string | null | undefined;
710
+ idempotencyKey?: string | null | undefined;
711
+ occurredAt?: Date | undefined;
712
+ }, {
713
+ summary: string;
714
+ activityKind?: "progress" | "closeout" | "evidence" | "decision_requested" | "bottleneck" | "checkpoint" | null | undefined;
715
+ commitmentRef?: string | null | undefined;
716
+ runRef?: string | null | undefined;
717
+ evidenceRefs?: string[] | undefined;
718
+ idempotencyKey?: string | null | undefined;
719
+ occurredAt?: Date | undefined;
720
+ }>, {
721
+ summary: string;
722
+ evidenceRefs: string[];
723
+ activityKind?: "progress" | "closeout" | "evidence" | "decision_requested" | "bottleneck" | "checkpoint" | null | undefined;
724
+ commitmentRef?: string | null | undefined;
725
+ runRef?: string | null | undefined;
726
+ idempotencyKey?: string | null | undefined;
727
+ occurredAt?: Date | undefined;
728
+ }, {
729
+ summary: string;
730
+ activityKind?: "progress" | "closeout" | "evidence" | "decision_requested" | "bottleneck" | "checkpoint" | null | undefined;
731
+ commitmentRef?: string | null | undefined;
732
+ runRef?: string | null | undefined;
733
+ evidenceRefs?: string[] | undefined;
734
+ idempotencyKey?: string | null | undefined;
735
+ occurredAt?: Date | undefined;
736
+ }>;
737
+ export type CreateGoalActivity = z.infer<typeof createGoalActivitySchema>;
738
+ export declare const assignGoalOwnerSchema: z.ZodObject<{
739
+ agentId: z.ZodString;
740
+ authorityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
741
+ }, "strict", z.ZodTypeAny, {
742
+ agentId: string;
743
+ authorityRef?: string | null | undefined;
744
+ }, {
745
+ agentId: string;
746
+ authorityRef?: string | null | undefined;
747
+ }>;
748
+ export type AssignGoalOwner = z.infer<typeof assignGoalOwnerSchema>;
749
+ export declare const createGoalFeedbackSchema: z.ZodObject<{
750
+ body: z.ZodString;
751
+ attachments: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
752
+ name: z.ZodString;
753
+ uri: z.ZodString;
754
+ mimeType: z.ZodOptional<z.ZodString>;
755
+ size: z.ZodOptional<z.ZodNumber>;
756
+ }, "strict", z.ZodTypeAny, {
757
+ name: string;
758
+ uri: string;
759
+ mimeType?: string | undefined;
760
+ size?: number | undefined;
761
+ }, {
762
+ name: string;
763
+ uri: string;
764
+ mimeType?: string | undefined;
765
+ size?: number | undefined;
766
+ }>, "many">>>;
767
+ feedbackKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ordinary", "consequential"]>>>;
768
+ idempotencyKey: z.ZodString;
769
+ }, "strict", z.ZodTypeAny, {
770
+ body: string;
771
+ idempotencyKey: string;
772
+ attachments: {
773
+ name: string;
774
+ uri: string;
775
+ mimeType?: string | undefined;
776
+ size?: number | undefined;
777
+ }[];
778
+ feedbackKind: "ordinary" | "consequential";
779
+ }, {
780
+ body: string;
781
+ idempotencyKey: string;
782
+ attachments?: {
783
+ name: string;
784
+ uri: string;
785
+ mimeType?: string | undefined;
786
+ size?: number | undefined;
787
+ }[] | undefined;
788
+ feedbackKind?: "ordinary" | "consequential" | undefined;
789
+ }>;
790
+ export type CreateGoalFeedback = z.infer<typeof createGoalFeedbackSchema>;
791
+ export declare const createGoalChangeProposalSchema: z.ZodObject<{
792
+ expectedContractRevision: z.ZodNumber;
793
+ afterContract: z.ZodEffects<z.ZodObject<{
794
+ outcomeStatement: z.ZodOptional<z.ZodString>;
795
+ objectiveMode: z.ZodOptional<z.ZodEnum<["target", "maximize", "maintain", "decide"]>>;
796
+ criteria: z.ZodOptional<z.ZodArray<z.ZodObject<{
797
+ id: z.ZodString;
798
+ label: z.ZodString;
799
+ evaluator: z.ZodEnum<["artifact", "metric", "policy", "human"]>;
800
+ evidenceRequirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
801
+ }, "strip", z.ZodTypeAny, {
802
+ id: string;
803
+ label: string;
804
+ evaluator: "artifact" | "metric" | "policy" | "human";
805
+ evidenceRequirements?: string[] | undefined;
806
+ }, {
807
+ id: string;
808
+ label: string;
809
+ evaluator: "artifact" | "metric" | "policy" | "human";
810
+ evidenceRequirements?: string[] | undefined;
811
+ }>, "many">>;
812
+ autonomyEnvelope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
813
+ humanAuthorities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
814
+ evaluationPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
815
+ actionDeadline: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
816
+ evaluationDeadline: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
817
+ }, "strict", z.ZodTypeAny, {
818
+ outcomeStatement?: string | undefined;
819
+ objectiveMode?: "target" | "maximize" | "maintain" | "decide" | undefined;
820
+ criteria?: {
821
+ id: string;
822
+ label: string;
823
+ evaluator: "artifact" | "metric" | "policy" | "human";
824
+ evidenceRequirements?: string[] | undefined;
825
+ }[] | undefined;
826
+ autonomyEnvelope?: Record<string, unknown> | undefined;
827
+ humanAuthorities?: Record<string, unknown> | undefined;
828
+ evaluationPolicy?: Record<string, unknown> | undefined;
829
+ actionDeadline?: Date | null | undefined;
830
+ evaluationDeadline?: Date | null | undefined;
831
+ }, {
832
+ outcomeStatement?: string | undefined;
833
+ objectiveMode?: "target" | "maximize" | "maintain" | "decide" | undefined;
834
+ criteria?: {
835
+ id: string;
836
+ label: string;
837
+ evaluator: "artifact" | "metric" | "policy" | "human";
838
+ evidenceRequirements?: string[] | undefined;
839
+ }[] | undefined;
840
+ autonomyEnvelope?: Record<string, unknown> | undefined;
841
+ humanAuthorities?: Record<string, unknown> | undefined;
842
+ evaluationPolicy?: Record<string, unknown> | undefined;
843
+ actionDeadline?: Date | null | undefined;
844
+ evaluationDeadline?: Date | null | undefined;
845
+ }>, {
846
+ outcomeStatement?: string | undefined;
847
+ objectiveMode?: "target" | "maximize" | "maintain" | "decide" | undefined;
848
+ criteria?: {
849
+ id: string;
850
+ label: string;
851
+ evaluator: "artifact" | "metric" | "policy" | "human";
852
+ evidenceRequirements?: string[] | undefined;
853
+ }[] | undefined;
854
+ autonomyEnvelope?: Record<string, unknown> | undefined;
855
+ humanAuthorities?: Record<string, unknown> | undefined;
856
+ evaluationPolicy?: Record<string, unknown> | undefined;
857
+ actionDeadline?: Date | null | undefined;
858
+ evaluationDeadline?: Date | null | undefined;
859
+ }, {
860
+ outcomeStatement?: string | undefined;
861
+ objectiveMode?: "target" | "maximize" | "maintain" | "decide" | undefined;
862
+ criteria?: {
863
+ id: string;
864
+ label: string;
865
+ evaluator: "artifact" | "metric" | "policy" | "human";
866
+ evidenceRequirements?: string[] | undefined;
867
+ }[] | undefined;
868
+ autonomyEnvelope?: Record<string, unknown> | undefined;
869
+ humanAuthorities?: Record<string, unknown> | undefined;
870
+ evaluationPolicy?: Record<string, unknown> | undefined;
871
+ actionDeadline?: Date | null | undefined;
872
+ evaluationDeadline?: Date | null | undefined;
873
+ }>;
874
+ rationale: z.ZodString;
875
+ evidenceRefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
876
+ approvalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
877
+ idempotencyKey: z.ZodString;
878
+ }, "strict", z.ZodTypeAny, {
879
+ evidenceRefs: string[];
880
+ idempotencyKey: string;
881
+ expectedContractRevision: number;
882
+ afterContract: {
883
+ outcomeStatement?: string | undefined;
884
+ objectiveMode?: "target" | "maximize" | "maintain" | "decide" | undefined;
885
+ criteria?: {
886
+ id: string;
887
+ label: string;
888
+ evaluator: "artifact" | "metric" | "policy" | "human";
889
+ evidenceRequirements?: string[] | undefined;
890
+ }[] | undefined;
891
+ autonomyEnvelope?: Record<string, unknown> | undefined;
892
+ humanAuthorities?: Record<string, unknown> | undefined;
893
+ evaluationPolicy?: Record<string, unknown> | undefined;
894
+ actionDeadline?: Date | null | undefined;
895
+ evaluationDeadline?: Date | null | undefined;
896
+ };
897
+ rationale: string;
898
+ approvalId?: string | null | undefined;
899
+ }, {
900
+ idempotencyKey: string;
901
+ expectedContractRevision: number;
902
+ afterContract: {
903
+ outcomeStatement?: string | undefined;
904
+ objectiveMode?: "target" | "maximize" | "maintain" | "decide" | undefined;
905
+ criteria?: {
906
+ id: string;
907
+ label: string;
908
+ evaluator: "artifact" | "metric" | "policy" | "human";
909
+ evidenceRequirements?: string[] | undefined;
910
+ }[] | undefined;
911
+ autonomyEnvelope?: Record<string, unknown> | undefined;
912
+ humanAuthorities?: Record<string, unknown> | undefined;
913
+ evaluationPolicy?: Record<string, unknown> | undefined;
914
+ actionDeadline?: Date | null | undefined;
915
+ evaluationDeadline?: Date | null | undefined;
916
+ };
917
+ rationale: string;
918
+ evidenceRefs?: string[] | undefined;
919
+ approvalId?: string | null | undefined;
920
+ }>;
921
+ export type CreateGoalChangeProposal = z.infer<typeof createGoalChangeProposalSchema>;
922
+ export declare const decideGoalChangeProposalSchema: z.ZodObject<{
923
+ decision: z.ZodEnum<["approve", "reject"]>;
924
+ note: z.ZodNullable<z.ZodOptional<z.ZodString>>;
925
+ }, "strict", z.ZodTypeAny, {
926
+ decision: "approve" | "reject";
927
+ note?: string | null | undefined;
928
+ }, {
929
+ decision: "approve" | "reject";
930
+ note?: string | null | undefined;
931
+ }>;
932
+ export type DecideGoalChangeProposal = z.infer<typeof decideGoalChangeProposalSchema>;
933
+ export declare const createGoalResultProposalSchema: z.ZodObject<{
934
+ contractRevision: z.ZodNumber;
935
+ riskSummary: z.ZodString;
936
+ idempotencyKey: z.ZodString;
937
+ criteria: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
938
+ id: z.ZodString;
939
+ status: z.ZodEnum<["met", "unmet", "breached", "unknown"]>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ status: "unknown" | "met" | "unmet" | "breached";
942
+ id: string;
943
+ }, {
944
+ status: "unknown" | "met" | "unmet" | "breached";
945
+ id: string;
946
+ }>, "many">>>;
947
+ resultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
948
+ decision: z.ZodOptional<z.ZodString>;
949
+ resultPayload: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
950
+ evidenceRefs: z.ZodArray<z.ZodString, "many">;
951
+ }, "strict", z.ZodTypeAny, {
952
+ criteria: {
953
+ status: "unknown" | "met" | "unmet" | "breached";
954
+ id: string;
955
+ }[];
956
+ evidenceRefs: string[];
957
+ idempotencyKey: string;
958
+ resultPayload: Record<string, unknown>;
959
+ contractRevision: number;
960
+ riskSummary: string;
961
+ decision?: string | undefined;
962
+ resultValue?: string | number | boolean | undefined;
963
+ }, {
964
+ evidenceRefs: string[];
965
+ idempotencyKey: string;
966
+ contractRevision: number;
967
+ riskSummary: string;
968
+ decision?: string | undefined;
969
+ criteria?: {
970
+ status: "unknown" | "met" | "unmet" | "breached";
971
+ id: string;
972
+ }[] | undefined;
973
+ resultValue?: string | number | boolean | undefined;
974
+ resultPayload?: Record<string, unknown> | undefined;
975
+ }>;
976
+ export type CreateGoalResultProposal = z.infer<typeof createGoalResultProposalSchema>;
977
+ export declare const acceptGoalResultProposalSchema: z.ZodObject<{
978
+ idempotencyKey: z.ZodString;
979
+ }, "strict", z.ZodTypeAny, {
980
+ idempotencyKey: string;
981
+ }, {
982
+ idempotencyKey: string;
983
+ }>;
984
+ export type AcceptGoalResultProposal = z.infer<typeof acceptGoalResultProposalSchema>;
985
+ export declare const rejectGoalResultProposalSchema: z.ZodObject<{
986
+ idempotencyKey: z.ZodString;
987
+ feedback: z.ZodString;
988
+ }, "strict", z.ZodTypeAny, {
989
+ idempotencyKey: string;
990
+ feedback: string;
991
+ }, {
992
+ idempotencyKey: string;
993
+ feedback: string;
994
+ }>;
995
+ export type RejectGoalResultProposal = z.infer<typeof rejectGoalResultProposalSchema>;
996
+ export declare const evaluateGoalSchema: z.ZodObject<{
997
+ criteria: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
998
+ id: z.ZodString;
999
+ status: z.ZodEnum<["met", "unmet", "breached", "unknown"]>;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ status: "unknown" | "met" | "unmet" | "breached";
1002
+ id: string;
1003
+ }, {
1004
+ status: "unknown" | "met" | "unmet" | "breached";
1005
+ id: string;
1006
+ }>, "many">>>;
1007
+ resultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1008
+ decision: z.ZodOptional<z.ZodString>;
1009
+ resultPayload: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1010
+ evidenceRefs: z.ZodArray<z.ZodString, "many">;
1011
+ } & {
1012
+ resultProposalId: z.ZodOptional<z.ZodString>;
1013
+ }, "strict", z.ZodTypeAny, {
1014
+ criteria: {
1015
+ status: "unknown" | "met" | "unmet" | "breached";
1016
+ id: string;
1017
+ }[];
1018
+ evidenceRefs: string[];
1019
+ resultPayload: Record<string, unknown>;
1020
+ decision?: string | undefined;
1021
+ resultValue?: string | number | boolean | undefined;
1022
+ resultProposalId?: string | undefined;
1023
+ }, {
1024
+ evidenceRefs: string[];
1025
+ decision?: string | undefined;
1026
+ criteria?: {
1027
+ status: "unknown" | "met" | "unmet" | "breached";
1028
+ id: string;
1029
+ }[] | undefined;
1030
+ resultValue?: string | number | boolean | undefined;
1031
+ resultPayload?: Record<string, unknown> | undefined;
1032
+ resultProposalId?: string | undefined;
1033
+ }>;
1034
+ export type EvaluateGoal = z.infer<typeof evaluateGoalSchema>;
1035
+ export declare const setGoalFocusSchema: z.ZodObject<{
1036
+ focus: z.ZodBoolean;
1037
+ }, "strict", z.ZodTypeAny, {
1038
+ focus: boolean;
1039
+ }, {
1040
+ focus: boolean;
1041
+ }>;
1042
+ export type SetGoalFocus = z.infer<typeof setGoalFocusSchema>;
48
1043
  //# sourceMappingURL=goal.d.ts.map