@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
@@ -60,7 +60,7 @@ export declare const createAgentSchema: z.ZodObject<{
60
60
  icon: 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, z.ZodString]>>, string | null, unknown>>;
61
61
  capabilities: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
62
  desiredSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63
- agentRuntimeType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>;
63
+ agentRuntimeType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_gateway", "hermes_local"]>>>;
64
64
  agentRuntimeConfig: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>;
65
65
  runtimeConfig: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
66
66
  budgetMonthlyCents: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -78,7 +78,7 @@ export declare const createAgentSchema: z.ZodObject<{
78
78
  seedOrganizationIntelligenceDefaults: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
79
79
  }, "strip", z.ZodTypeAny, {
80
80
  role: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general";
81
- agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local";
81
+ agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local";
82
82
  agentRuntimeConfig: Record<string, unknown>;
83
83
  runtimeConfig: Record<string, unknown>;
84
84
  budgetMonthlyCents: number;
@@ -100,7 +100,7 @@ export declare const createAgentSchema: z.ZodObject<{
100
100
  metadata?: Record<string, unknown> | null | undefined;
101
101
  role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
102
102
  capabilities?: string | null | undefined;
103
- agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
103
+ agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | undefined;
104
104
  agentRuntimeConfig?: Record<string, unknown> | undefined;
105
105
  runtimeConfig?: Record<string, unknown> | undefined;
106
106
  budgetMonthlyCents?: number | undefined;
@@ -119,7 +119,7 @@ export declare const createAgentHireSchema: z.ZodObject<Omit<{
119
119
  icon: 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, z.ZodString]>>, string | null, unknown>>;
120
120
  capabilities: z.ZodNullable<z.ZodOptional<z.ZodString>>;
121
121
  desiredSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
122
- agentRuntimeType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>;
122
+ agentRuntimeType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_gateway", "hermes_local"]>>>;
123
123
  agentRuntimeConfig: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>;
124
124
  runtimeConfig: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
125
125
  budgetMonthlyCents: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -140,7 +140,7 @@ export declare const createAgentHireSchema: z.ZodObject<Omit<{
140
140
  sourceIssueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
141
141
  }, "strip", z.ZodTypeAny, {
142
142
  role: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general";
143
- agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local";
143
+ agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local";
144
144
  agentRuntimeConfig: Record<string, unknown>;
145
145
  runtimeConfig: Record<string, unknown>;
146
146
  budgetMonthlyCents: number;
@@ -163,7 +163,7 @@ export declare const createAgentHireSchema: z.ZodObject<Omit<{
163
163
  metadata?: Record<string, unknown> | null | undefined;
164
164
  role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
165
165
  capabilities?: string | null | undefined;
166
- agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
166
+ agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | undefined;
167
167
  agentRuntimeConfig?: Record<string, unknown> | undefined;
168
168
  runtimeConfig?: Record<string, unknown> | undefined;
169
169
  budgetMonthlyCents?: number | undefined;
@@ -183,7 +183,7 @@ export declare const updateAgentSchema: z.ZodObject<{
183
183
  metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
184
184
  role: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["ceo", "cto", "cmo", "cfo", "engineer", "designer", "pm", "qa", "devops", "researcher", "general"]>>>>;
185
185
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
186
- 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"]>>>>;
186
+ 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_gateway", "hermes_local"]>>>>;
187
187
  agentRuntimeConfig: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>>;
188
188
  runtimeConfig: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
189
189
  budgetMonthlyCents: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
@@ -201,7 +201,7 @@ export declare const updateAgentSchema: z.ZodObject<{
201
201
  metadata?: Record<string, unknown> | null | undefined;
202
202
  role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
203
203
  capabilities?: string | null | undefined;
204
- agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
204
+ agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | undefined;
205
205
  agentRuntimeConfig?: Record<string, unknown> | undefined;
206
206
  runtimeConfig?: Record<string, unknown> | undefined;
207
207
  budgetMonthlyCents?: number | undefined;
@@ -217,7 +217,7 @@ export declare const updateAgentSchema: z.ZodObject<{
217
217
  metadata?: Record<string, unknown> | null | undefined;
218
218
  role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
219
219
  capabilities?: string | null | undefined;
220
- agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
220
+ agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | undefined;
221
221
  agentRuntimeConfig?: Record<string, unknown> | undefined;
222
222
  runtimeConfig?: Record<string, unknown> | undefined;
223
223
  budgetMonthlyCents?: number | undefined;
@@ -258,15 +258,15 @@ export declare const wakeAgentSchema: z.ZodObject<{
258
258
  forceFreshSession: boolean;
259
259
  reason?: string | null | undefined;
260
260
  payload?: Record<string, unknown> | null | undefined;
261
- triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
262
261
  idempotencyKey?: string | null | undefined;
262
+ triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
263
263
  }, {
264
264
  reason?: string | null | undefined;
265
265
  source?: "automation" | "review" | "timer" | "assignment" | "on_demand" | undefined;
266
266
  forceFreshSession?: unknown;
267
267
  payload?: Record<string, unknown> | null | undefined;
268
- triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
269
268
  idempotencyKey?: string | null | undefined;
269
+ triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
270
270
  }>;
271
271
  export type WakeAgent = z.infer<typeof wakeAgentSchema>;
272
272
  export declare const resetAgentSessionSchema: z.ZodObject<{
@@ -29,24 +29,24 @@ export declare const updateAppBuilderBuildSchema: z.ZodEffects<z.ZodObject<{
29
29
  runKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["build", "verification"]>>>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  status: "ready" | "failed" | "preparing" | "building" | "verifying";
32
- runKind: "build" | "verification";
32
+ runKind: "verification" | "build";
33
33
  runId?: string | null | undefined;
34
34
  expectedStatus?: "ready" | "failed" | "preparing" | "building" | "verifying" | undefined;
35
35
  }, {
36
36
  status: "ready" | "failed" | "preparing" | "building" | "verifying";
37
37
  runId?: string | null | undefined;
38
38
  expectedStatus?: "ready" | "failed" | "preparing" | "building" | "verifying" | undefined;
39
- runKind?: "build" | "verification" | undefined;
39
+ runKind?: "verification" | "build" | undefined;
40
40
  }>, {
41
41
  status: "ready" | "failed" | "preparing" | "building" | "verifying";
42
- runKind: "build" | "verification";
42
+ runKind: "verification" | "build";
43
43
  runId?: string | null | undefined;
44
44
  expectedStatus?: "ready" | "failed" | "preparing" | "building" | "verifying" | undefined;
45
45
  }, {
46
46
  status: "ready" | "failed" | "preparing" | "building" | "verifying";
47
47
  runId?: string | null | undefined;
48
48
  expectedStatus?: "ready" | "failed" | "preparing" | "building" | "verifying" | undefined;
49
- runKind?: "build" | "verification" | undefined;
49
+ runKind?: "verification" | "build" | undefined;
50
50
  }>;
51
51
  export declare const attachAppBuilderConversationSchema: z.ZodObject<{
52
52
  conversationId: z.ZodString;
@@ -1,16 +1,16 @@
1
1
  import { z } from "zod";
2
2
  export declare const createApprovalSchema: z.ZodObject<{
3
- type: z.ZodEnum<["hire_agent", "approve_ceo_strategy", "budget_override_required", "chat_issue_creation", "chat_operation"]>;
3
+ type: z.ZodEnum<["hire_agent", "approve_ceo_strategy", "budget_override_required", "chat_issue_creation", "chat_operation", "agent_runtime", "goal_change"]>;
4
4
  requestedByAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
5
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
6
  issueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- type: "hire_agent" | "approve_ceo_strategy" | "budget_override_required" | "chat_issue_creation" | "chat_operation";
8
+ type: "hire_agent" | "approve_ceo_strategy" | "budget_override_required" | "chat_issue_creation" | "chat_operation" | "agent_runtime" | "goal_change";
9
9
  payload: Record<string, unknown>;
10
10
  requestedByAgentId?: string | null | undefined;
11
11
  issueIds?: string[] | undefined;
12
12
  }, {
13
- type: "hire_agent" | "approve_ceo_strategy" | "budget_override_required" | "chat_issue_creation" | "chat_operation";
13
+ type: "hire_agent" | "approve_ceo_strategy" | "budget_override_required" | "chat_issue_creation" | "chat_operation" | "agent_runtime" | "goal_change";
14
14
  payload: Record<string, unknown>;
15
15
  requestedByAgentId?: string | null | undefined;
16
16
  issueIds?: string[] | undefined;
@@ -10,9 +10,9 @@ export declare const upsertBudgetPolicySchema: z.ZodObject<{
10
10
  notifyEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11
11
  isActive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
12
  }, "strip", z.ZodTypeAny, {
13
+ metric: "billed_cents";
13
14
  scopeType: "organization" | "agent";
14
15
  scopeId: string;
15
- metric: "billed_cents";
16
16
  windowKind: "calendar_month_utc" | "lifetime";
17
17
  amount: number;
18
18
  warnPercent: number;
@@ -115,10 +115,10 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
115
115
  ownerAgentId?: string | null | undefined;
116
116
  description?: string | null | undefined;
117
117
  goalId?: string | null | undefined;
118
+ approvalId?: string | null | undefined;
118
119
  externalProvider?: string | null | undefined;
119
120
  ownerUserId?: string | null | undefined;
120
121
  externalCalendarId?: string | null | undefined;
121
- approvalId?: string | null | undefined;
122
122
  sourceId?: string | null | undefined;
123
123
  heartbeatRunId?: string | null | undefined;
124
124
  activityId?: string | null | undefined;
@@ -137,11 +137,11 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
137
137
  description?: string | null | undefined;
138
138
  goalId?: string | null | undefined;
139
139
  timezone?: string | undefined;
140
+ approvalId?: string | null | undefined;
140
141
  externalProvider?: string | null | undefined;
141
142
  ownerUserId?: string | null | undefined;
142
143
  externalCalendarId?: string | null | undefined;
143
144
  visibility?: "private" | "full" | "busy_only" | undefined;
144
- approvalId?: string | null | undefined;
145
145
  sourceId?: string | null | undefined;
146
146
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
147
147
  allDay?: boolean | undefined;
@@ -167,10 +167,10 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
167
167
  ownerAgentId?: string | null | undefined;
168
168
  description?: string | null | undefined;
169
169
  goalId?: string | null | undefined;
170
+ approvalId?: string | null | undefined;
170
171
  externalProvider?: string | null | undefined;
171
172
  ownerUserId?: string | null | undefined;
172
173
  externalCalendarId?: string | null | undefined;
173
- approvalId?: string | null | undefined;
174
174
  sourceId?: string | null | undefined;
175
175
  heartbeatRunId?: string | null | undefined;
176
176
  activityId?: string | null | undefined;
@@ -189,11 +189,11 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
189
189
  description?: string | null | undefined;
190
190
  goalId?: string | null | undefined;
191
191
  timezone?: string | undefined;
192
+ approvalId?: string | null | undefined;
192
193
  externalProvider?: string | null | undefined;
193
194
  ownerUserId?: string | null | undefined;
194
195
  externalCalendarId?: string | null | undefined;
195
196
  visibility?: "private" | "full" | "busy_only" | undefined;
196
- approvalId?: string | null | undefined;
197
197
  sourceId?: string | null | undefined;
198
198
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
199
199
  allDay?: boolean | undefined;
@@ -240,12 +240,12 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
240
240
  eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
241
241
  goalId?: string | null | undefined;
242
242
  timezone?: string | undefined;
243
+ approvalId?: string | null | undefined;
243
244
  externalProvider?: string | null | undefined;
244
245
  ownerType?: "agent" | "system" | "user" | undefined;
245
246
  ownerUserId?: string | null | undefined;
246
247
  externalCalendarId?: string | null | undefined;
247
248
  visibility?: "private" | "full" | "busy_only" | undefined;
248
- approvalId?: string | null | undefined;
249
249
  sourceId?: string | null | undefined;
250
250
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
251
251
  startAt?: Date | undefined;
@@ -266,12 +266,12 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
266
266
  eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
267
267
  goalId?: string | null | undefined;
268
268
  timezone?: string | undefined;
269
+ approvalId?: string | null | undefined;
269
270
  externalProvider?: string | null | undefined;
270
271
  ownerType?: "agent" | "system" | "user" | undefined;
271
272
  ownerUserId?: string | null | undefined;
272
273
  externalCalendarId?: string | null | undefined;
273
274
  visibility?: "private" | "full" | "busy_only" | undefined;
274
- approvalId?: string | null | undefined;
275
275
  sourceId?: string | null | undefined;
276
276
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
277
277
  startAt?: Date | undefined;
@@ -292,12 +292,12 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
292
292
  eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
293
293
  goalId?: string | null | undefined;
294
294
  timezone?: string | undefined;
295
+ approvalId?: string | null | undefined;
295
296
  externalProvider?: string | null | undefined;
296
297
  ownerType?: "agent" | "system" | "user" | undefined;
297
298
  ownerUserId?: string | null | undefined;
298
299
  externalCalendarId?: string | null | undefined;
299
300
  visibility?: "private" | "full" | "busy_only" | undefined;
300
- approvalId?: string | null | undefined;
301
301
  sourceId?: string | null | undefined;
302
302
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
303
303
  startAt?: Date | undefined;
@@ -318,12 +318,12 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
318
318
  eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
319
319
  goalId?: string | null | undefined;
320
320
  timezone?: string | undefined;
321
+ approvalId?: string | null | undefined;
321
322
  externalProvider?: string | null | undefined;
322
323
  ownerType?: "agent" | "system" | "user" | undefined;
323
324
  ownerUserId?: string | null | undefined;
324
325
  externalCalendarId?: string | null | undefined;
325
326
  visibility?: "private" | "full" | "busy_only" | undefined;
326
- approvalId?: string | null | undefined;
327
327
  sourceId?: string | null | undefined;
328
328
  eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
329
329
  startAt?: Date | undefined;
@@ -19,12 +19,12 @@ export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
19
19
  agentId: string;
20
20
  model: string;
21
21
  provider: string;
22
+ occurredAt: string;
22
23
  billingType: "unknown" | "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed";
23
24
  inputTokens: number;
24
25
  cachedInputTokens: number;
25
26
  outputTokens: number;
26
27
  costCents: number;
27
- occurredAt: string;
28
28
  projectId?: string | null | undefined;
29
29
  issueId?: string | null | undefined;
30
30
  goalId?: string | null | undefined;
@@ -35,8 +35,8 @@ export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
35
35
  agentId: string;
36
36
  model: string;
37
37
  provider: string;
38
- costCents: number;
39
38
  occurredAt: string;
39
+ costCents: number;
40
40
  projectId?: string | null | undefined;
41
41
  issueId?: string | null | undefined;
42
42
  goalId?: string | null | undefined;
@@ -52,12 +52,12 @@ export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
52
52
  agentId: string;
53
53
  model: string;
54
54
  provider: string;
55
+ occurredAt: string;
55
56
  billingType: "unknown" | "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed";
56
57
  inputTokens: number;
57
58
  cachedInputTokens: number;
58
59
  outputTokens: number;
59
60
  costCents: number;
60
- occurredAt: string;
61
61
  projectId?: string | null | undefined;
62
62
  issueId?: string | null | undefined;
63
63
  goalId?: string | null | undefined;
@@ -67,8 +67,8 @@ export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
67
67
  agentId: string;
68
68
  model: string;
69
69
  provider: string;
70
- costCents: number;
71
70
  occurredAt: string;
71
+ costCents: number;
72
72
  projectId?: string | null | undefined;
73
73
  issueId?: string | null | undefined;
74
74
  goalId?: string | null | undefined;
@@ -12,7 +12,7 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
12
12
  direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["debit", "credit"]>>>;
13
13
  biller: z.ZodString;
14
14
  provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15
- executionAgentRuntimeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>;
15
+ executionAgentRuntimeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_gateway", "hermes_local"]>>>;
16
16
  pricingTier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17
17
  region: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
18
  model: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -26,8 +26,8 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
26
26
  occurredAt: z.ZodString;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
29
- biller: string;
30
29
  occurredAt: string;
30
+ biller: string;
31
31
  direction: "debit" | "credit";
32
32
  amountCents: number;
33
33
  currency: string;
@@ -42,7 +42,7 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
42
42
  billingCode?: string | null | undefined;
43
43
  heartbeatRunId?: string | null | undefined;
44
44
  costEventId?: string | null | undefined;
45
- executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
45
+ executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | null | undefined;
46
46
  pricingTier?: string | null | undefined;
47
47
  region?: string | null | undefined;
48
48
  quantity?: number | null | undefined;
@@ -51,8 +51,8 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
51
51
  metadataJson?: Record<string, unknown> | null | undefined;
52
52
  }, {
53
53
  eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
54
- biller: string;
55
54
  occurredAt: string;
55
+ biller: string;
56
56
  amountCents: number;
57
57
  projectId?: string | null | undefined;
58
58
  agentId?: string | null | undefined;
@@ -65,7 +65,7 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
65
65
  heartbeatRunId?: string | null | undefined;
66
66
  costEventId?: string | null | undefined;
67
67
  direction?: "debit" | "credit" | undefined;
68
- executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
68
+ executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | null | undefined;
69
69
  pricingTier?: string | null | undefined;
70
70
  region?: string | null | undefined;
71
71
  quantity?: number | null | undefined;
@@ -77,8 +77,8 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
77
77
  }>, {
78
78
  currency: string;
79
79
  eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
80
- biller: string;
81
80
  occurredAt: string;
81
+ biller: string;
82
82
  direction: "debit" | "credit";
83
83
  amountCents: number;
84
84
  estimated: boolean;
@@ -92,7 +92,7 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
92
92
  billingCode?: string | null | undefined;
93
93
  heartbeatRunId?: string | null | undefined;
94
94
  costEventId?: string | null | undefined;
95
- executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
95
+ executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | null | undefined;
96
96
  pricingTier?: string | null | undefined;
97
97
  region?: string | null | undefined;
98
98
  quantity?: number | null | undefined;
@@ -101,8 +101,8 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
101
101
  metadataJson?: Record<string, unknown> | null | undefined;
102
102
  }, {
103
103
  eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
104
- biller: string;
105
104
  occurredAt: string;
105
+ biller: string;
106
106
  amountCents: number;
107
107
  projectId?: string | null | undefined;
108
108
  agentId?: string | null | undefined;
@@ -115,7 +115,7 @@ export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
115
115
  heartbeatRunId?: string | null | undefined;
116
116
  costEventId?: string | null | undefined;
117
117
  direction?: "debit" | "credit" | undefined;
118
- executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
118
+ executionAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | null | undefined;
119
119
  pricingTier?: string | null | undefined;
120
120
  region?: string | null | undefined;
121
121
  quantity?: number | null | undefined;