@rudderhq/shared 0.4.6-canary.9 → 0.5.0

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 (85) hide show
  1. package/dist/agent-run.d.ts +3 -0
  2. package/dist/agent-run.d.ts.map +1 -1
  3. package/dist/agent-run.js +60 -8
  4. package/dist/agent-run.js.map +1 -1
  5. package/dist/agent-run.test.js +74 -1
  6. package/dist/agent-run.test.js.map +1 -1
  7. package/dist/browser-shortcuts.d.ts +16 -0
  8. package/dist/browser-shortcuts.d.ts.map +1 -0
  9. package/dist/browser-shortcuts.js +49 -0
  10. package/dist/browser-shortcuts.js.map +1 -0
  11. package/dist/browser-shortcuts.test.d.ts +2 -0
  12. package/dist/browser-shortcuts.test.d.ts.map +1 -0
  13. package/dist/browser-shortcuts.test.js +37 -0
  14. package/dist/browser-shortcuts.test.js.map +1 -0
  15. package/dist/chat-inline-visuals.d.ts +35 -0
  16. package/dist/chat-inline-visuals.d.ts.map +1 -0
  17. package/dist/chat-inline-visuals.js +167 -0
  18. package/dist/chat-inline-visuals.js.map +1 -0
  19. package/dist/chat-inline-visuals.test.d.ts +2 -0
  20. package/dist/chat-inline-visuals.test.d.ts.map +1 -0
  21. package/dist/chat-inline-visuals.test.js +112 -0
  22. package/dist/chat-inline-visuals.test.js.map +1 -0
  23. package/dist/chat-work-manifest.d.ts +1 -1
  24. package/dist/chat-work-manifest.d.ts.map +1 -1
  25. package/dist/chat-work-manifest.js +110 -2
  26. package/dist/chat-work-manifest.js.map +1 -1
  27. package/dist/chat-work-manifest.test.js +54 -0
  28. package/dist/chat-work-manifest.test.js.map +1 -1
  29. package/dist/constants.d.ts +4 -0
  30. package/dist/constants.d.ts.map +1 -1
  31. package/dist/constants.js +2 -0
  32. package/dist/constants.js.map +1 -1
  33. package/dist/index.d.ts +8 -5
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +7 -4
  36. package/dist/index.js.map +1 -1
  37. package/dist/organization-skill-reference.d.ts +4 -1
  38. package/dist/organization-skill-reference.d.ts.map +1 -1
  39. package/dist/organization-skill-reference.js +29 -7
  40. package/dist/organization-skill-reference.js.map +1 -1
  41. package/dist/organization-skill-reference.test.js +17 -2
  42. package/dist/organization-skill-reference.test.js.map +1 -1
  43. package/dist/types/chat.d.ts +158 -5
  44. package/dist/types/chat.d.ts.map +1 -1
  45. package/dist/types/cost.d.ts +2 -0
  46. package/dist/types/cost.d.ts.map +1 -1
  47. package/dist/types/heartbeat.d.ts +10 -0
  48. package/dist/types/heartbeat.d.ts.map +1 -1
  49. package/dist/types/index.d.ts +4 -4
  50. package/dist/types/index.d.ts.map +1 -1
  51. package/dist/types/organization.d.ts +12 -1
  52. package/dist/types/organization.d.ts.map +1 -1
  53. package/dist/types/run-intelligence.d.ts +28 -0
  54. package/dist/types/run-intelligence.d.ts.map +1 -1
  55. package/dist/validators/adapter-skills.d.ts +6 -6
  56. package/dist/validators/agent.d.ts +12 -12
  57. package/dist/validators/approval.d.ts +2 -2
  58. package/dist/validators/automation.d.ts +60 -60
  59. package/dist/validators/budget.d.ts +4 -4
  60. package/dist/validators/calendar.d.ts +16 -16
  61. package/dist/validators/chat.d.ts +213 -72
  62. package/dist/validators/chat.d.ts.map +1 -1
  63. package/dist/validators/chat.js +170 -0
  64. package/dist/validators/chat.js.map +1 -1
  65. package/dist/validators/chat.test.js +71 -1
  66. package/dist/validators/chat.test.js.map +1 -1
  67. package/dist/validators/cost.d.ts +4 -4
  68. package/dist/validators/finance.d.ts +8 -8
  69. package/dist/validators/goal.d.ts +3 -3
  70. package/dist/validators/index.d.ts +2 -2
  71. package/dist/validators/index.d.ts.map +1 -1
  72. package/dist/validators/index.js +2 -2
  73. package/dist/validators/index.js.map +1 -1
  74. package/dist/validators/issue.d.ts +20 -20
  75. package/dist/validators/organization-portability.d.ts +96 -96
  76. package/dist/validators/organization-skill.d.ts +48 -48
  77. package/dist/validators/organization.d.ts +15 -0
  78. package/dist/validators/organization.d.ts.map +1 -1
  79. package/dist/validators/organization.js +6 -0
  80. package/dist/validators/organization.js.map +1 -1
  81. package/dist/validators/plugin.d.ts +2 -2
  82. package/dist/validators/project.d.ts +19 -19
  83. package/dist/validators/resource.d.ts +12 -12
  84. package/dist/validators/work-product.d.ts +12 -12
  85. package/package.json +1 -1
@@ -86,8 +86,8 @@ export declare const createAgentSchema: z.ZodObject<{
86
86
  icon?: string | null | undefined;
87
87
  title?: string | null | undefined;
88
88
  name?: string | undefined;
89
- desiredSkills?: string[] | undefined;
90
89
  metadata?: Record<string, unknown> | null | undefined;
90
+ desiredSkills?: string[] | undefined;
91
91
  capabilities?: string | null | undefined;
92
92
  permissions?: {
93
93
  canCreateAgents: boolean;
@@ -98,9 +98,9 @@ export declare const createAgentSchema: z.ZodObject<{
98
98
  icon?: unknown;
99
99
  title?: string | null | undefined;
100
100
  name?: unknown;
101
+ metadata?: Record<string, unknown> | null | undefined;
101
102
  agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
102
103
  desiredSkills?: string[] | undefined;
103
- metadata?: Record<string, unknown> | null | undefined;
104
104
  agentRuntimeConfig?: Record<string, unknown> | undefined;
105
105
  budgetMonthlyCents?: number | undefined;
106
106
  role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
@@ -150,8 +150,8 @@ export declare const createAgentHireSchema: z.ZodObject<Omit<{
150
150
  icon?: string | null | undefined;
151
151
  title?: string | null | undefined;
152
152
  name?: string | undefined;
153
- desiredSkills?: string[] | undefined;
154
153
  metadata?: Record<string, unknown> | null | undefined;
154
+ desiredSkills?: string[] | undefined;
155
155
  capabilities?: string | null | undefined;
156
156
  permissions?: {
157
157
  canCreateAgents: boolean;
@@ -164,9 +164,9 @@ export declare const createAgentHireSchema: z.ZodObject<Omit<{
164
164
  icon?: unknown;
165
165
  title?: string | null | undefined;
166
166
  name?: unknown;
167
+ metadata?: Record<string, unknown> | null | undefined;
167
168
  agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
168
169
  desiredSkills?: string[] | undefined;
169
- metadata?: Record<string, unknown> | null | undefined;
170
170
  agentRuntimeConfig?: Record<string, unknown> | undefined;
171
171
  budgetMonthlyCents?: number | undefined;
172
172
  role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
@@ -185,9 +185,9 @@ export declare const updateAgentSchema: z.ZodObject<{
185
185
  icon: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["bot", "cpu", "brain", "zap", "rocket", "code", "terminal", "shield", "eye", "search", "wrench", "hammer", "lightbulb", "sparkles", "star", "heart", "flame", "bug", "cog", "database", "globe", "lock", "mail", "message-square", "file-code", "git-branch", "package", "puzzle", "target", "wand", "atom", "circuit-board", "radar", "swords", "telescope", "microscope", "crown", "gem", "hexagon", "pentagon", "fingerprint"]>, z.ZodString, z.ZodString]>>, string | null, unknown>>>;
186
186
  title: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
187
187
  name: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>>;
188
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
188
189
  agentRuntimeType: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>>;
189
190
  desiredSkills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
190
- metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
191
191
  agentRuntimeConfig: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>>;
192
192
  budgetMonthlyCents: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
193
193
  role: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["ceo", "cto", "cmo", "cfo", "engineer", "designer", "pm", "qa", "devops", "researcher", "general"]>>>>;
@@ -200,13 +200,13 @@ export declare const updateAgentSchema: z.ZodObject<{
200
200
  status: z.ZodOptional<z.ZodEnum<["active", "paused", "idle", "running", "error", "pending_approval", "terminated"]>>;
201
201
  spentMonthlyCents: z.ZodOptional<z.ZodNumber>;
202
202
  }, "strip", z.ZodTypeAny, {
203
+ status?: "active" | "paused" | "idle" | "running" | "error" | "pending_approval" | "terminated" | undefined;
203
204
  icon?: string | null | undefined;
204
205
  title?: string | null | undefined;
205
- status?: "active" | "paused" | "idle" | "running" | "error" | "pending_approval" | "terminated" | undefined;
206
206
  name?: string | undefined;
207
+ metadata?: Record<string, unknown> | null | undefined;
207
208
  agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
208
209
  desiredSkills?: string[] | undefined;
209
- metadata?: Record<string, unknown> | null | undefined;
210
210
  agentRuntimeConfig?: Record<string, unknown> | undefined;
211
211
  budgetMonthlyCents?: number | undefined;
212
212
  spentMonthlyCents?: number | undefined;
@@ -217,13 +217,13 @@ export declare const updateAgentSchema: z.ZodObject<{
217
217
  reportsTo?: string | null | undefined;
218
218
  replaceAgentRuntimeConfig?: boolean | undefined;
219
219
  }, {
220
+ status?: "active" | "paused" | "idle" | "running" | "error" | "pending_approval" | "terminated" | undefined;
220
221
  icon?: unknown;
221
222
  title?: string | null | undefined;
222
- status?: "active" | "paused" | "idle" | "running" | "error" | "pending_approval" | "terminated" | undefined;
223
223
  name?: unknown;
224
+ metadata?: Record<string, unknown> | null | undefined;
224
225
  agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
225
226
  desiredSkills?: string[] | undefined;
226
- metadata?: Record<string, unknown> | null | undefined;
227
227
  agentRuntimeConfig?: Record<string, unknown> | undefined;
228
228
  budgetMonthlyCents?: number | undefined;
229
229
  spentMonthlyCents?: number | undefined;
@@ -264,17 +264,17 @@ export declare const wakeAgentSchema: z.ZodObject<{
264
264
  }, "strip", z.ZodTypeAny, {
265
265
  source: "automation" | "review" | "timer" | "assignment" | "on_demand";
266
266
  forceFreshSession: boolean;
267
- payload?: Record<string, unknown> | null | undefined;
268
267
  reason?: string | null | undefined;
268
+ payload?: Record<string, unknown> | null | undefined;
269
269
  triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
270
270
  idempotencyKey?: string | null | undefined;
271
271
  }, {
272
+ reason?: string | null | undefined;
272
273
  source?: "automation" | "review" | "timer" | "assignment" | "on_demand" | undefined;
274
+ forceFreshSession?: unknown;
273
275
  payload?: Record<string, unknown> | null | undefined;
274
- reason?: string | null | undefined;
275
276
  triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
276
277
  idempotencyKey?: string | null | undefined;
277
- forceFreshSession?: unknown;
278
278
  }>;
279
279
  export type WakeAgent = z.infer<typeof wakeAgentSchema>;
280
280
  export declare const resetAgentSessionSchema: z.ZodObject<{
@@ -22,11 +22,11 @@ export declare const resolveApprovalSchema: z.ZodObject<{
22
22
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  decidedByUserId: string;
25
- decisionNote?: string | null | undefined;
26
25
  payload?: Record<string, unknown> | undefined;
27
- }, {
28
26
  decisionNote?: string | null | undefined;
27
+ }, {
29
28
  payload?: Record<string, unknown> | undefined;
29
+ decisionNote?: string | null | undefined;
30
30
  decidedByUserId?: string | undefined;
31
31
  }>;
32
32
  export type ResolveApproval = z.infer<typeof resolveApprovalSchema>;
@@ -23,124 +23,124 @@ export declare const createAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
23
23
  chatConversationId: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
24
24
  notifyOnIssueCreated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
25
25
  }, "strip", z.ZodTypeAny, {
26
+ status: "active" | "paused";
26
27
  projectId: string | null;
27
28
  title: string;
28
- status: "active" | "paused";
29
29
  priority: "critical" | "high" | "medium" | "low";
30
- assigneeAgentId: string;
31
30
  concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
32
31
  catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
33
32
  outputMode: "track_issue" | "chat_output";
33
+ assigneeAgentId: string;
34
34
  chatConversationId: string | null;
35
35
  notifyOnIssueCreated: boolean;
36
36
  description?: string | null | undefined;
37
- goalId?: string | null | undefined;
38
37
  instructions?: string | null | undefined;
38
+ goalId?: string | null | undefined;
39
39
  parentIssueId?: string | null | undefined;
40
40
  }, {
41
41
  title: string;
42
42
  assigneeAgentId: string;
43
- projectId?: string | null | undefined;
44
43
  status?: "active" | "paused" | undefined;
44
+ projectId?: string | null | undefined;
45
45
  description?: string | null | undefined;
46
- priority?: "critical" | "high" | "medium" | "low" | undefined;
47
- goalId?: string | null | undefined;
48
46
  instructions?: string | null | undefined;
47
+ goalId?: string | null | undefined;
49
48
  parentIssueId?: string | null | undefined;
49
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
50
50
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
51
51
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
52
52
  outputMode?: "track_issue" | "chat_output" | undefined;
53
53
  chatConversationId?: string | null | undefined;
54
54
  notifyOnIssueCreated?: boolean | undefined;
55
55
  }>, {
56
+ status: "active" | "paused";
56
57
  projectId: string | null;
57
58
  title: string;
58
- status: "active" | "paused";
59
59
  priority: "critical" | "high" | "medium" | "low";
60
- assigneeAgentId: string;
61
60
  concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
62
61
  catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
63
62
  outputMode: "track_issue" | "chat_output";
63
+ assigneeAgentId: string;
64
64
  chatConversationId: string | null;
65
65
  notifyOnIssueCreated: boolean;
66
66
  description?: string | null | undefined;
67
- goalId?: string | null | undefined;
68
67
  instructions?: string | null | undefined;
68
+ goalId?: string | null | undefined;
69
69
  parentIssueId?: string | null | undefined;
70
70
  }, {
71
71
  title: string;
72
72
  assigneeAgentId: string;
73
- projectId?: string | null | undefined;
74
73
  status?: "active" | "paused" | undefined;
74
+ projectId?: string | null | undefined;
75
75
  description?: string | null | undefined;
76
- priority?: "critical" | "high" | "medium" | "low" | undefined;
77
- goalId?: string | null | undefined;
78
76
  instructions?: string | null | undefined;
77
+ goalId?: string | null | undefined;
79
78
  parentIssueId?: string | null | undefined;
79
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
80
80
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
81
81
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
82
82
  outputMode?: "track_issue" | "chat_output" | undefined;
83
83
  chatConversationId?: string | null | undefined;
84
84
  notifyOnIssueCreated?: boolean | undefined;
85
85
  }>, Omit<{
86
+ status: "active" | "paused";
86
87
  projectId: string | null;
87
88
  title: string;
88
- status: "active" | "paused";
89
89
  priority: "critical" | "high" | "medium" | "low";
90
- assigneeAgentId: string;
91
90
  concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
92
91
  catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
93
92
  outputMode: "track_issue" | "chat_output";
93
+ assigneeAgentId: string;
94
94
  chatConversationId: string | null;
95
95
  notifyOnIssueCreated: boolean;
96
96
  description?: string | null | undefined;
97
- goalId?: string | null | undefined;
98
97
  instructions?: string | null | undefined;
98
+ goalId?: string | null | undefined;
99
99
  parentIssueId?: string | null | undefined;
100
100
  }, "instructions"> & {
101
101
  description: string | null | undefined;
102
102
  }, {
103
103
  title: string;
104
104
  assigneeAgentId: string;
105
- projectId?: string | null | undefined;
106
105
  status?: "active" | "paused" | undefined;
106
+ projectId?: string | null | undefined;
107
107
  description?: string | null | undefined;
108
- priority?: "critical" | "high" | "medium" | "low" | undefined;
109
- goalId?: string | null | undefined;
110
108
  instructions?: string | null | undefined;
109
+ goalId?: string | null | undefined;
111
110
  parentIssueId?: string | null | undefined;
111
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
112
112
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
113
113
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
114
114
  outputMode?: "track_issue" | "chat_output" | undefined;
115
115
  chatConversationId?: string | null | undefined;
116
116
  notifyOnIssueCreated?: boolean | undefined;
117
117
  }>, Omit<{
118
+ status: "active" | "paused";
118
119
  projectId: string | null;
119
120
  title: string;
120
- status: "active" | "paused";
121
121
  priority: "critical" | "high" | "medium" | "low";
122
- assigneeAgentId: string;
123
122
  concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
124
123
  catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
125
124
  outputMode: "track_issue" | "chat_output";
125
+ assigneeAgentId: string;
126
126
  chatConversationId: string | null;
127
127
  notifyOnIssueCreated: boolean;
128
128
  description?: string | null | undefined;
129
- goalId?: string | null | undefined;
130
129
  instructions?: string | null | undefined;
130
+ goalId?: string | null | undefined;
131
131
  parentIssueId?: string | null | undefined;
132
132
  }, "instructions"> & {
133
133
  description: string | null | undefined;
134
134
  }, {
135
135
  title: string;
136
136
  assigneeAgentId: string;
137
- projectId?: string | null | undefined;
138
137
  status?: "active" | "paused" | undefined;
138
+ projectId?: string | null | undefined;
139
139
  description?: string | null | undefined;
140
- priority?: "critical" | "high" | "medium" | "low" | undefined;
141
- goalId?: string | null | undefined;
142
140
  instructions?: string | null | undefined;
141
+ goalId?: string | null | undefined;
143
142
  parentIssueId?: string | null | undefined;
143
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
144
144
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
145
145
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
146
146
  outputMode?: "track_issue" | "chat_output" | undefined;
@@ -164,127 +164,127 @@ export declare const updateAutomationSchema: z.ZodEffects<z.ZodEffects<z.ZodEffe
164
164
  chatConversationId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>>;
165
165
  notifyOnIssueCreated: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
166
166
  }, "strip", z.ZodTypeAny, {
167
+ status?: "active" | "paused" | undefined;
167
168
  projectId?: string | null | undefined;
168
169
  title?: string | undefined;
169
- status?: "active" | "paused" | undefined;
170
170
  description?: string | null | undefined;
171
- priority?: "critical" | "high" | "medium" | "low" | undefined;
172
- assigneeAgentId?: string | undefined;
173
- goalId?: string | null | undefined;
174
171
  instructions?: string | null | undefined;
172
+ goalId?: string | null | undefined;
175
173
  parentIssueId?: string | null | undefined;
174
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
176
175
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
177
176
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
178
177
  outputMode?: "track_issue" | "chat_output" | undefined;
178
+ assigneeAgentId?: string | undefined;
179
179
  chatConversationId?: string | null | undefined;
180
180
  notifyOnIssueCreated?: boolean | undefined;
181
181
  }, {
182
+ status?: "active" | "paused" | undefined;
182
183
  projectId?: string | null | undefined;
183
184
  title?: string | undefined;
184
- status?: "active" | "paused" | undefined;
185
185
  description?: string | null | undefined;
186
- priority?: "critical" | "high" | "medium" | "low" | undefined;
187
- assigneeAgentId?: string | undefined;
188
- goalId?: string | null | undefined;
189
186
  instructions?: string | null | undefined;
187
+ goalId?: string | null | undefined;
190
188
  parentIssueId?: string | null | undefined;
189
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
191
190
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
192
191
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
193
192
  outputMode?: "track_issue" | "chat_output" | undefined;
193
+ assigneeAgentId?: string | undefined;
194
194
  chatConversationId?: string | null | undefined;
195
195
  notifyOnIssueCreated?: boolean | undefined;
196
196
  }>, {
197
+ status?: "active" | "paused" | undefined;
197
198
  projectId?: string | null | undefined;
198
199
  title?: string | undefined;
199
- status?: "active" | "paused" | undefined;
200
200
  description?: string | null | undefined;
201
- priority?: "critical" | "high" | "medium" | "low" | undefined;
202
- assigneeAgentId?: string | undefined;
203
- goalId?: string | null | undefined;
204
201
  instructions?: string | null | undefined;
202
+ goalId?: string | null | undefined;
205
203
  parentIssueId?: string | null | undefined;
204
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
206
205
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
207
206
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
208
207
  outputMode?: "track_issue" | "chat_output" | undefined;
208
+ assigneeAgentId?: string | undefined;
209
209
  chatConversationId?: string | null | undefined;
210
210
  notifyOnIssueCreated?: boolean | undefined;
211
211
  }, {
212
+ status?: "active" | "paused" | undefined;
212
213
  projectId?: string | null | undefined;
213
214
  title?: string | undefined;
214
- status?: "active" | "paused" | undefined;
215
215
  description?: string | null | undefined;
216
- priority?: "critical" | "high" | "medium" | "low" | undefined;
217
- assigneeAgentId?: string | undefined;
218
- goalId?: string | null | undefined;
219
216
  instructions?: string | null | undefined;
217
+ goalId?: string | null | undefined;
220
218
  parentIssueId?: string | null | undefined;
219
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
221
220
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
222
221
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
223
222
  outputMode?: "track_issue" | "chat_output" | undefined;
223
+ assigneeAgentId?: string | undefined;
224
224
  chatConversationId?: string | null | undefined;
225
225
  notifyOnIssueCreated?: boolean | undefined;
226
226
  }>, Omit<{
227
+ status?: "active" | "paused" | undefined;
227
228
  projectId?: string | null | undefined;
228
229
  title?: string | undefined;
229
- status?: "active" | "paused" | undefined;
230
230
  description?: string | null | undefined;
231
- priority?: "critical" | "high" | "medium" | "low" | undefined;
232
- assigneeAgentId?: string | undefined;
233
- goalId?: string | null | undefined;
234
231
  instructions?: string | null | undefined;
232
+ goalId?: string | null | undefined;
235
233
  parentIssueId?: string | null | undefined;
234
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
236
235
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
237
236
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
238
237
  outputMode?: "track_issue" | "chat_output" | undefined;
238
+ assigneeAgentId?: string | undefined;
239
239
  chatConversationId?: string | null | undefined;
240
240
  notifyOnIssueCreated?: boolean | undefined;
241
241
  }, "instructions"> & {
242
242
  description: string | null | undefined;
243
243
  }, {
244
+ status?: "active" | "paused" | undefined;
244
245
  projectId?: string | null | undefined;
245
246
  title?: string | undefined;
246
- status?: "active" | "paused" | undefined;
247
247
  description?: string | null | undefined;
248
- priority?: "critical" | "high" | "medium" | "low" | undefined;
249
- assigneeAgentId?: string | undefined;
250
- goalId?: string | null | undefined;
251
248
  instructions?: string | null | undefined;
249
+ goalId?: string | null | undefined;
252
250
  parentIssueId?: string | null | undefined;
251
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
253
252
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
254
253
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
255
254
  outputMode?: "track_issue" | "chat_output" | undefined;
255
+ assigneeAgentId?: string | undefined;
256
256
  chatConversationId?: string | null | undefined;
257
257
  notifyOnIssueCreated?: boolean | undefined;
258
258
  }>, Omit<{
259
+ status?: "active" | "paused" | undefined;
259
260
  projectId?: string | null | undefined;
260
261
  title?: string | undefined;
261
- status?: "active" | "paused" | undefined;
262
262
  description?: string | null | undefined;
263
- priority?: "critical" | "high" | "medium" | "low" | undefined;
264
- assigneeAgentId?: string | undefined;
265
- goalId?: string | null | undefined;
266
263
  instructions?: string | null | undefined;
264
+ goalId?: string | null | undefined;
267
265
  parentIssueId?: string | null | undefined;
266
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
268
267
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
269
268
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
270
269
  outputMode?: "track_issue" | "chat_output" | undefined;
270
+ assigneeAgentId?: string | undefined;
271
271
  chatConversationId?: string | null | undefined;
272
272
  notifyOnIssueCreated?: boolean | undefined;
273
273
  }, "instructions"> & {
274
274
  description: string | null | undefined;
275
275
  }, {
276
+ status?: "active" | "paused" | undefined;
276
277
  projectId?: string | null | undefined;
277
278
  title?: string | undefined;
278
- status?: "active" | "paused" | undefined;
279
279
  description?: string | null | undefined;
280
- priority?: "critical" | "high" | "medium" | "low" | undefined;
281
- assigneeAgentId?: string | undefined;
282
- goalId?: string | null | undefined;
283
280
  instructions?: string | null | undefined;
281
+ goalId?: string | null | undefined;
284
282
  parentIssueId?: string | null | undefined;
283
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
285
284
  concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
286
285
  catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
287
286
  outputMode?: "track_issue" | "chat_output" | undefined;
287
+ assigneeAgentId?: string | undefined;
288
288
  chatConversationId?: string | null | undefined;
289
289
  notifyOnIssueCreated?: boolean | undefined;
290
290
  }>;
@@ -298,16 +298,16 @@ export declare const createAutomationTriggerSchema: z.ZodDiscriminatedUnion<"kin
298
298
  timezone: z.ZodDefault<z.ZodString>;
299
299
  }, "strip", z.ZodTypeAny, {
300
300
  kind: "schedule";
301
- enabled: boolean;
302
301
  cronExpression: string;
303
302
  timezone: string;
303
+ enabled: boolean;
304
304
  label?: string | null | undefined;
305
305
  }, {
306
306
  kind: "schedule";
307
307
  cronExpression: string;
308
308
  label?: string | null | undefined;
309
- enabled?: boolean | undefined;
310
309
  timezone?: string | undefined;
310
+ enabled?: boolean | undefined;
311
311
  }>, z.ZodObject<{
312
312
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
313
313
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -351,16 +351,16 @@ export declare const updateAutomationTriggerSchema: z.ZodObject<{
351
351
  replayWindowSec: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
352
352
  }, "strip", z.ZodTypeAny, {
353
353
  label?: string | null | undefined;
354
- enabled?: boolean | undefined;
355
354
  cronExpression?: string | null | undefined;
356
355
  timezone?: string | null | undefined;
356
+ enabled?: boolean | undefined;
357
357
  signingMode?: "bearer" | "hmac_sha256" | null | undefined;
358
358
  replayWindowSec?: number | null | undefined;
359
359
  }, {
360
360
  label?: string | null | undefined;
361
- enabled?: boolean | undefined;
362
361
  cronExpression?: string | null | undefined;
363
362
  timezone?: string | null | undefined;
363
+ enabled?: boolean | undefined;
364
364
  signingMode?: "bearer" | "hmac_sha256" | null | undefined;
365
365
  replayWindowSec?: number | null | undefined;
366
366
  }>;
@@ -37,20 +37,20 @@ export declare const resolveBudgetIncidentSchema: z.ZodEffects<z.ZodObject<{
37
37
  decisionNote: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  action: "keep_paused" | "raise_budget_and_resume";
40
- amount?: number | undefined;
41
40
  decisionNote?: string | null | undefined;
41
+ amount?: number | undefined;
42
42
  }, {
43
43
  action: "keep_paused" | "raise_budget_and_resume";
44
- amount?: number | undefined;
45
44
  decisionNote?: string | null | undefined;
45
+ amount?: number | undefined;
46
46
  }>, {
47
47
  action: "keep_paused" | "raise_budget_and_resume";
48
- amount?: number | undefined;
49
48
  decisionNote?: string | null | undefined;
49
+ amount?: number | undefined;
50
50
  }, {
51
51
  action: "keep_paused" | "raise_budget_and_resume";
52
- amount?: number | undefined;
53
52
  decisionNote?: string | null | undefined;
53
+ amount?: number | undefined;
54
54
  }>;
55
55
  export type ResolveBudgetIncident = z.infer<typeof resolveBudgetIncidentSchema>;
56
56
  //# sourceMappingURL=budget.d.ts.map
@@ -101,10 +101,10 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
101
101
  externalUpdatedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  title: string;
104
+ eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
104
105
  timezone: string;
105
106
  ownerType: "agent" | "system" | "user";
106
107
  visibility: "private" | "full" | "busy_only";
107
- eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
108
108
  eventStatus: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected";
109
109
  startAt: Date;
110
110
  endAt: Date;
@@ -114,10 +114,10 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
114
114
  issueId?: string | null | undefined;
115
115
  ownerAgentId?: string | null | undefined;
116
116
  description?: string | null | undefined;
117
+ goalId?: string | null | undefined;
117
118
  externalProvider?: string | null | undefined;
118
119
  ownerUserId?: string | null | undefined;
119
120
  externalCalendarId?: string | null | undefined;
120
- goalId?: string | null | undefined;
121
121
  approvalId?: string | null | undefined;
122
122
  sourceId?: string | null | undefined;
123
123
  heartbeatRunId?: string | null | undefined;
@@ -127,19 +127,19 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
127
127
  externalUpdatedAt?: Date | null | undefined;
128
128
  }, {
129
129
  title: string;
130
- ownerType: "agent" | "system" | "user";
131
130
  eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
131
+ ownerType: "agent" | "system" | "user";
132
132
  startAt: Date;
133
133
  endAt: Date;
134
134
  projectId?: string | null | undefined;
135
135
  issueId?: string | null | undefined;
136
136
  ownerAgentId?: string | null | undefined;
137
137
  description?: string | null | undefined;
138
+ goalId?: string | null | undefined;
138
139
  timezone?: string | undefined;
139
140
  externalProvider?: string | null | undefined;
140
141
  ownerUserId?: string | null | undefined;
141
142
  externalCalendarId?: string | null | undefined;
142
- goalId?: string | null | undefined;
143
143
  visibility?: "private" | "full" | "busy_only" | undefined;
144
144
  approvalId?: string | null | undefined;
145
145
  sourceId?: string | null | undefined;
@@ -153,10 +153,10 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
153
153
  externalUpdatedAt?: Date | null | undefined;
154
154
  }>, {
155
155
  title: string;
156
+ eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
156
157
  timezone: string;
157
158
  ownerType: "agent" | "system" | "user";
158
159
  visibility: "private" | "full" | "busy_only";
159
- eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
160
160
  eventStatus: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected";
161
161
  startAt: Date;
162
162
  endAt: Date;
@@ -166,10 +166,10 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
166
166
  issueId?: string | null | undefined;
167
167
  ownerAgentId?: string | null | undefined;
168
168
  description?: string | null | undefined;
169
+ goalId?: string | null | undefined;
169
170
  externalProvider?: string | null | undefined;
170
171
  ownerUserId?: string | null | undefined;
171
172
  externalCalendarId?: string | null | undefined;
172
- goalId?: string | null | undefined;
173
173
  approvalId?: string | null | undefined;
174
174
  sourceId?: string | null | undefined;
175
175
  heartbeatRunId?: string | null | undefined;
@@ -179,19 +179,19 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
179
179
  externalUpdatedAt?: Date | null | undefined;
180
180
  }, {
181
181
  title: string;
182
- ownerType: "agent" | "system" | "user";
183
182
  eventKind: "human_event" | "agent_work_block" | "external_event" | "system_event";
183
+ ownerType: "agent" | "system" | "user";
184
184
  startAt: Date;
185
185
  endAt: Date;
186
186
  projectId?: string | null | undefined;
187
187
  issueId?: string | null | undefined;
188
188
  ownerAgentId?: string | null | undefined;
189
189
  description?: string | null | undefined;
190
+ goalId?: string | null | undefined;
190
191
  timezone?: string | undefined;
191
192
  externalProvider?: string | null | undefined;
192
193
  ownerUserId?: string | null | undefined;
193
194
  externalCalendarId?: string | null | undefined;
194
- goalId?: string | null | undefined;
195
195
  visibility?: "private" | "full" | "busy_only" | undefined;
196
196
  approvalId?: string | null | undefined;
197
197
  sourceId?: string | null | undefined;
@@ -237,16 +237,16 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
237
237
  issueId?: string | null | undefined;
238
238
  ownerAgentId?: string | null | undefined;
239
239
  description?: string | null | undefined;
240
+ eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
241
+ goalId?: string | null | undefined;
240
242
  timezone?: string | undefined;
241
243
  externalProvider?: string | null | undefined;
242
244
  ownerType?: "agent" | "system" | "user" | undefined;
243
245
  ownerUserId?: string | null | undefined;
244
246
  externalCalendarId?: string | null | undefined;
245
- goalId?: string | null | undefined;
246
247
  visibility?: "private" | "full" | "busy_only" | undefined;
247
248
  approvalId?: string | null | undefined;
248
249
  sourceId?: string | null | undefined;
249
- eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
250
250
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
251
251
  startAt?: Date | undefined;
252
252
  endAt?: Date | undefined;
@@ -263,16 +263,16 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
263
263
  issueId?: string | null | undefined;
264
264
  ownerAgentId?: string | null | undefined;
265
265
  description?: string | null | undefined;
266
+ eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
267
+ goalId?: string | null | undefined;
266
268
  timezone?: string | undefined;
267
269
  externalProvider?: string | null | undefined;
268
270
  ownerType?: "agent" | "system" | "user" | undefined;
269
271
  ownerUserId?: string | null | undefined;
270
272
  externalCalendarId?: string | null | undefined;
271
- goalId?: string | null | undefined;
272
273
  visibility?: "private" | "full" | "busy_only" | undefined;
273
274
  approvalId?: string | null | undefined;
274
275
  sourceId?: string | null | undefined;
275
- eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
276
276
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
277
277
  startAt?: Date | undefined;
278
278
  endAt?: Date | undefined;
@@ -289,16 +289,16 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
289
289
  issueId?: string | null | undefined;
290
290
  ownerAgentId?: string | null | undefined;
291
291
  description?: string | null | undefined;
292
+ eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
293
+ goalId?: string | null | undefined;
292
294
  timezone?: string | undefined;
293
295
  externalProvider?: string | null | undefined;
294
296
  ownerType?: "agent" | "system" | "user" | undefined;
295
297
  ownerUserId?: string | null | undefined;
296
298
  externalCalendarId?: string | null | undefined;
297
- goalId?: string | null | undefined;
298
299
  visibility?: "private" | "full" | "busy_only" | undefined;
299
300
  approvalId?: string | null | undefined;
300
301
  sourceId?: string | null | undefined;
301
- eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
302
302
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
303
303
  startAt?: Date | undefined;
304
304
  endAt?: Date | undefined;
@@ -315,16 +315,16 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
315
315
  issueId?: string | null | undefined;
316
316
  ownerAgentId?: string | null | undefined;
317
317
  description?: string | null | undefined;
318
+ eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
319
+ goalId?: string | null | undefined;
318
320
  timezone?: string | undefined;
319
321
  externalProvider?: string | null | undefined;
320
322
  ownerType?: "agent" | "system" | "user" | undefined;
321
323
  ownerUserId?: string | null | undefined;
322
324
  externalCalendarId?: string | null | undefined;
323
- goalId?: string | null | undefined;
324
325
  visibility?: "private" | "full" | "busy_only" | undefined;
325
326
  approvalId?: string | null | undefined;
326
327
  sourceId?: string | null | undefined;
327
- eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
328
328
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
329
329
  startAt?: Date | undefined;
330
330
  endAt?: Date | undefined;