terse-types 0.0.5 → 0.0.7

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.
@@ -130,6 +130,7 @@ export declare const ApiRoutes: {
130
130
  VERIFY_JOB_SERVER: string;
131
131
  TOOL_EXECUTE: string;
132
132
  TOOL_DEFINITIONS: string;
133
+ RUN_TRIGGER_EVENT: string;
133
134
  AGENT_RUN: string;
134
135
  APPROVAL_DECISION: string;
135
136
  SESSION_EVENTS: string;
@@ -160,6 +161,7 @@ export declare const ApiRoutes: {
160
161
  };
161
162
  REFRESH_TOKENS: string;
162
163
  REVIEW_AGENTS: string;
164
+ CLEANUP_SDK_IMAGES: string;
163
165
  USERS: {
164
166
  CREATE: string;
165
167
  BY_ID: string;
@@ -130,6 +130,7 @@
130
130
  "VERIFY_JOB_SERVER": "/sdk/agents/:agentId/verify-job-server",
131
131
  "TOOL_EXECUTE": "/sdk/tool-execute",
132
132
  "TOOL_DEFINITIONS": "/sdk/tool-definitions",
133
+ "RUN_TRIGGER_EVENT": "/sdk/runs/:runId/trigger-event",
133
134
  "AGENT_RUN": "/sdk/agent-run",
134
135
  "APPROVAL_DECISION": "/sdk/approval-decision",
135
136
  "SESSION_EVENTS": "/sdk/session-events",
@@ -160,6 +161,7 @@
160
161
  },
161
162
  "REFRESH_TOKENS": "/refresh-tokens",
162
163
  "REVIEW_AGENTS": "/review-agents",
164
+ "CLEANUP_SDK_IMAGES": "/cleanup-sdk-images",
163
165
  "USERS": {
164
166
  "CREATE": "/users",
165
167
  "BY_ID": "/users/:id"
@@ -19,13 +19,27 @@ export declare const changedItemSchema: z.ZodObject<{
19
19
  export type ChangedItem = z.infer<typeof changedItemSchema>;
20
20
  export declare const runErrorSchema: z.ZodObject<{
21
21
  type: z.ZodLiteral<"RunError">;
22
+ id: z.ZodOptional<z.ZodString>;
22
23
  error: z.ZodString;
23
24
  code: z.ZodOptional<z.ZodString>;
24
25
  timestamp: z.ZodNumber;
25
26
  }, z.core.$strip>;
26
27
  export type RunError = z.infer<typeof runErrorSchema>;
28
+ export declare const processOutputSchema: z.ZodObject<{
29
+ type: z.ZodLiteral<"ProcessOutput">;
30
+ id: z.ZodOptional<z.ZodString>;
31
+ stream: z.ZodEnum<{
32
+ stdout: "stdout";
33
+ stderr: "stderr";
34
+ }>;
35
+ content: z.ZodString;
36
+ label: z.ZodString;
37
+ timestamp: z.ZodNumber;
38
+ }, z.core.$strip>;
39
+ export type ProcessOutput = z.infer<typeof processOutputSchema>;
27
40
  export declare const cancelledSchema: z.ZodObject<{
28
41
  type: z.ZodLiteral<"Cancelled">;
42
+ id: z.ZodOptional<z.ZodString>;
29
43
  reason: z.ZodOptional<z.ZodString>;
30
44
  timestamp: z.ZodNumber;
31
45
  }, z.core.$strip>;
@@ -39,11 +53,13 @@ export type FunctionCall = z.infer<typeof functionCallSchema>;
39
53
  export declare const naturalStopSchema: z.ZodObject<{
40
54
  step_id: z.ZodString;
41
55
  type: z.ZodLiteral<"NaturalStop">;
56
+ id: z.ZodOptional<z.ZodString>;
42
57
  timestamp: z.ZodNumber;
43
58
  }, z.core.$strip>;
44
59
  export type NaturalStop = z.infer<typeof naturalStopSchema>;
45
60
  export declare const sendModelRequestSchema: z.ZodObject<{
46
61
  type: z.ZodLiteral<"SendModelRequest">;
62
+ id: z.ZodOptional<z.ZodString>;
47
63
  user_message: z.ZodString;
48
64
  timezone: z.ZodString;
49
65
  ui_state: z.ZodOptional<z.ZodString>;
@@ -54,6 +70,7 @@ export type SendModelRequest = z.infer<typeof sendModelRequestSchema>;
54
70
  export declare const toolApprovalResponseSchema: z.ZodObject<{
55
71
  step_id: z.ZodString;
56
72
  type: z.ZodLiteral<"ToolApprovalResponse">;
73
+ id: z.ZodOptional<z.ZodString>;
57
74
  approved: z.ZodBoolean;
58
75
  rejection_reason: z.ZodOptional<z.ZodString>;
59
76
  timestamp: z.ZodNumber;
@@ -62,6 +79,7 @@ export type ToolApprovalResponse = z.infer<typeof toolApprovalResponseSchema>;
62
79
  export declare const toolApprovalRequestSchema: z.ZodObject<{
63
80
  step_id: z.ZodString;
64
81
  type: z.ZodLiteral<"ToolApprovalRequest">;
82
+ id: z.ZodOptional<z.ZodString>;
65
83
  name: z.ZodString;
66
84
  arguments: z.ZodString;
67
85
  timestamp: z.ZodNumber;
@@ -71,6 +89,7 @@ export declare const textDeltaSchema: z.ZodObject<{
71
89
  delta: z.ZodString;
72
90
  step_id: z.ZodString;
73
91
  type: z.ZodLiteral<"TextDelta">;
92
+ id: z.ZodOptional<z.ZodString>;
74
93
  timestamp: z.ZodNumber;
75
94
  }, z.core.$strip>;
76
95
  export type TextDelta = z.infer<typeof textDeltaSchema>;
@@ -78,6 +97,7 @@ export declare const toolCallGeneratingSchema: z.ZodObject<{
78
97
  tool_name: z.ZodString;
79
98
  step_id: z.ZodString;
80
99
  type: z.ZodLiteral<"ToolCallGenerating">;
100
+ id: z.ZodOptional<z.ZodString>;
81
101
  timestamp: z.ZodNumber;
82
102
  }, z.core.$strip>;
83
103
  export type ToolCallGenerating = z.infer<typeof toolCallGeneratingSchema>;
@@ -85,6 +105,7 @@ export declare const toolCallSchema: z.ZodObject<{
85
105
  summary: z.ZodString;
86
106
  step_id: z.ZodString;
87
107
  type: z.ZodLiteral<"ToolCall">;
108
+ id: z.ZodOptional<z.ZodString>;
88
109
  parameters: z.ZodString;
89
110
  integration: z.ZodString;
90
111
  timestamp: z.ZodNumber;
@@ -93,6 +114,7 @@ export type ToolCall = z.infer<typeof toolCallSchema>;
93
114
  export declare const thinkingSchema: z.ZodObject<{
94
115
  step_id: z.ZodString;
95
116
  type: z.ZodLiteral<"Thinking">;
117
+ id: z.ZodOptional<z.ZodString>;
96
118
  timestamp: z.ZodNumber;
97
119
  }, z.core.$strip>;
98
120
  export type Thinking = z.infer<typeof thinkingSchema>;
@@ -109,6 +131,7 @@ export declare const toolCallCompleteSchema: z.ZodObject<{
109
131
  status: z.ZodEnum<typeof ToolCallExecutionStatus>;
110
132
  step_id: z.ZodString;
111
133
  type: z.ZodLiteral<"ToolCallComplete">;
134
+ id: z.ZodOptional<z.ZodString>;
112
135
  changed_items: z.ZodArray<z.ZodObject<{
113
136
  type_name: z.ZodEnum<typeof EntityType>;
114
137
  id: z.ZodString;
@@ -128,6 +151,7 @@ export declare const filterResultSchema: z.ZodObject<{
128
151
  confidence: z.ZodNumber;
129
152
  step_id: z.ZodString;
130
153
  type: z.ZodLiteral<"FilterResult">;
154
+ id: z.ZodOptional<z.ZodString>;
131
155
  timestamp: z.ZodNumber;
132
156
  }, z.core.$strip>;
133
157
  export type FilterResult = z.infer<typeof filterResultSchema>;
@@ -142,6 +166,7 @@ export declare const sandboxStageSchema: z.ZodEnum<typeof SandboxStage>;
142
166
  export declare const SANDBOX_STAGE_LABELS: Record<SandboxStage, string>;
143
167
  export declare const userMessageSchema: z.ZodObject<{
144
168
  type: z.ZodLiteral<"UserMessage">;
169
+ id: z.ZodOptional<z.ZodString>;
145
170
  message: z.ZodString;
146
171
  step_id: z.ZodString;
147
172
  client_turn_id: z.ZodString;
@@ -250,6 +275,7 @@ export declare const chatSnippetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
250
275
  export type ChatSnippet = z.infer<typeof chatSnippetSchema>;
251
276
  export declare const modelEventChatSnippetSchema: z.ZodObject<{
252
277
  type: z.ZodLiteral<"Snippet">;
278
+ id: z.ZodOptional<z.ZodString>;
253
279
  timestamp: z.ZodNumber;
254
280
  snippet: z.ZodDiscriminatedUnion<[z.ZodObject<{
255
281
  type: z.ZodLiteral<"button">;
@@ -295,12 +321,14 @@ export declare const modelEventChatSnippetSchema: z.ZodObject<{
295
321
  export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
296
322
  step_id: z.ZodString;
297
323
  type: z.ZodLiteral<"ToolApprovalResponse">;
324
+ id: z.ZodOptional<z.ZodString>;
298
325
  approved: z.ZodBoolean;
299
326
  rejection_reason: z.ZodOptional<z.ZodString>;
300
327
  timestamp: z.ZodNumber;
301
328
  }, z.core.$strip>, z.ZodObject<{
302
329
  step_id: z.ZodString;
303
330
  type: z.ZodLiteral<"ToolApprovalRequest">;
331
+ id: z.ZodOptional<z.ZodString>;
304
332
  name: z.ZodString;
305
333
  arguments: z.ZodString;
306
334
  timestamp: z.ZodNumber;
@@ -308,11 +336,13 @@ export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
336
  tool_name: z.ZodString;
309
337
  step_id: z.ZodString;
310
338
  type: z.ZodLiteral<"ToolCallGenerating">;
339
+ id: z.ZodOptional<z.ZodString>;
311
340
  timestamp: z.ZodNumber;
312
341
  }, z.core.$strip>, z.ZodObject<{
313
342
  summary: z.ZodString;
314
343
  step_id: z.ZodString;
315
344
  type: z.ZodLiteral<"ToolCall">;
345
+ id: z.ZodOptional<z.ZodString>;
316
346
  parameters: z.ZodString;
317
347
  integration: z.ZodString;
318
348
  timestamp: z.ZodNumber;
@@ -322,6 +352,7 @@ export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
322
352
  status: z.ZodEnum<typeof ToolCallExecutionStatus>;
323
353
  step_id: z.ZodString;
324
354
  type: z.ZodLiteral<"ToolCallComplete">;
355
+ id: z.ZodOptional<z.ZodString>;
325
356
  changed_items: z.ZodArray<z.ZodObject<{
326
357
  type_name: z.ZodEnum<typeof EntityType>;
327
358
  id: z.ZodString;
@@ -337,19 +368,23 @@ export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
337
368
  delta: z.ZodString;
338
369
  step_id: z.ZodString;
339
370
  type: z.ZodLiteral<"TextDelta">;
371
+ id: z.ZodOptional<z.ZodString>;
340
372
  timestamp: z.ZodNumber;
341
373
  }, z.core.$strip>, z.ZodObject<{
342
374
  type: z.ZodLiteral<"RunError">;
375
+ id: z.ZodOptional<z.ZodString>;
343
376
  error: z.ZodString;
344
377
  code: z.ZodOptional<z.ZodString>;
345
378
  timestamp: z.ZodNumber;
346
379
  }, z.core.$strip>, z.ZodObject<{
347
380
  type: z.ZodLiteral<"Cancelled">;
381
+ id: z.ZodOptional<z.ZodString>;
348
382
  reason: z.ZodOptional<z.ZodString>;
349
383
  timestamp: z.ZodNumber;
350
384
  }, z.core.$strip>, z.ZodObject<{
351
385
  step_id: z.ZodString;
352
386
  type: z.ZodLiteral<"NaturalStop">;
387
+ id: z.ZodOptional<z.ZodString>;
353
388
  timestamp: z.ZodNumber;
354
389
  }, z.core.$strip>, z.ZodObject<{
355
390
  isRelevant: z.ZodBoolean;
@@ -357,9 +392,11 @@ export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
357
392
  confidence: z.ZodNumber;
358
393
  step_id: z.ZodString;
359
394
  type: z.ZodLiteral<"FilterResult">;
395
+ id: z.ZodOptional<z.ZodString>;
360
396
  timestamp: z.ZodNumber;
361
397
  }, z.core.$strip>, z.ZodObject<{
362
398
  type: z.ZodLiteral<"UserMessage">;
399
+ id: z.ZodOptional<z.ZodString>;
363
400
  message: z.ZodString;
364
401
  step_id: z.ZodString;
365
402
  client_turn_id: z.ZodString;
@@ -367,9 +404,11 @@ export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
367
404
  }, z.core.$strip>, z.ZodObject<{
368
405
  step_id: z.ZodString;
369
406
  type: z.ZodLiteral<"Thinking">;
407
+ id: z.ZodOptional<z.ZodString>;
370
408
  timestamp: z.ZodNumber;
371
409
  }, z.core.$strip>, z.ZodObject<{
372
410
  type: z.ZodLiteral<"Snippet">;
411
+ id: z.ZodOptional<z.ZodString>;
373
412
  timestamp: z.ZodNumber;
374
413
  snippet: z.ZodDiscriminatedUnion<[z.ZodObject<{
375
414
  type: z.ZodLiteral<"button">;
@@ -411,10 +450,21 @@ export declare const modelEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
411
450
  step_id: z.ZodOptional<z.ZodString>;
412
451
  selectedValue: z.ZodOptional<z.ZodString>;
413
452
  }, z.core.$strip>], "type">;
453
+ }, z.core.$strip>, z.ZodObject<{
454
+ type: z.ZodLiteral<"ProcessOutput">;
455
+ id: z.ZodOptional<z.ZodString>;
456
+ stream: z.ZodEnum<{
457
+ stdout: "stdout";
458
+ stderr: "stderr";
459
+ }>;
460
+ content: z.ZodString;
461
+ label: z.ZodString;
462
+ timestamp: z.ZodNumber;
414
463
  }, z.core.$strip>], "type">;
415
464
  export type ModelEvent = z.infer<typeof modelEventSchema>;
416
465
  export declare const modelRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
417
466
  type: z.ZodLiteral<"SendModelRequest">;
467
+ id: z.ZodOptional<z.ZodString>;
418
468
  user_message: z.ZodString;
419
469
  timezone: z.ZodString;
420
470
  ui_state: z.ZodOptional<z.ZodString>;
@@ -423,6 +473,7 @@ export declare const modelRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
473
  }, z.core.$strip>, z.ZodObject<{
424
474
  step_id: z.ZodString;
425
475
  type: z.ZodLiteral<"ToolApprovalResponse">;
476
+ id: z.ZodOptional<z.ZodString>;
426
477
  approved: z.ZodBoolean;
427
478
  rejection_reason: z.ZodOptional<z.ZodString>;
428
479
  timestamp: z.ZodNumber;
@@ -18,12 +18,22 @@ export const changedItemSchema = z.object({
18
18
  });
19
19
  export const runErrorSchema = z.object({
20
20
  type: z.literal("RunError"),
21
+ id: z.string().optional(),
21
22
  error: z.string(),
22
23
  code: z.string().optional(),
23
24
  timestamp: z.number()
24
25
  });
26
+ export const processOutputSchema = z.object({
27
+ type: z.literal("ProcessOutput"),
28
+ id: z.string().optional(),
29
+ stream: z.enum(["stdout", "stderr"]),
30
+ content: z.string(),
31
+ label: z.string(),
32
+ timestamp: z.number()
33
+ });
25
34
  export const cancelledSchema = z.object({
26
35
  type: z.literal("Cancelled"),
36
+ id: z.string().optional(),
27
37
  reason: z.string().optional(),
28
38
  timestamp: z.number()
29
39
  });
@@ -35,10 +45,12 @@ export const functionCallSchema = z.object({
35
45
  export const naturalStopSchema = z.object({
36
46
  step_id: z.string(),
37
47
  type: z.literal("NaturalStop"),
48
+ id: z.string().optional(),
38
49
  timestamp: z.number()
39
50
  });
40
51
  export const sendModelRequestSchema = z.object({
41
52
  type: z.literal("SendModelRequest"),
53
+ id: z.string().optional(),
42
54
  user_message: z.string(),
43
55
  timezone: z.string(),
44
56
  ui_state: z.string().optional(),
@@ -48,6 +60,7 @@ export const sendModelRequestSchema = z.object({
48
60
  export const toolApprovalResponseSchema = z.object({
49
61
  step_id: z.string(),
50
62
  type: z.literal("ToolApprovalResponse"),
63
+ id: z.string().optional(),
51
64
  approved: z.boolean(),
52
65
  rejection_reason: z.string().optional(),
53
66
  timestamp: z.number()
@@ -55,6 +68,7 @@ export const toolApprovalResponseSchema = z.object({
55
68
  export const toolApprovalRequestSchema = z.object({
56
69
  step_id: z.string(),
57
70
  type: z.literal("ToolApprovalRequest"),
71
+ id: z.string().optional(),
58
72
  name: z.string(),
59
73
  arguments: z.string(),
60
74
  timestamp: z.number()
@@ -63,18 +77,21 @@ export const textDeltaSchema = z.object({
63
77
  delta: z.string(),
64
78
  step_id: z.string(),
65
79
  type: z.literal("TextDelta"),
80
+ id: z.string().optional(),
66
81
  timestamp: z.number()
67
82
  });
68
83
  export const toolCallGeneratingSchema = z.object({
69
84
  tool_name: z.string(),
70
85
  step_id: z.string(),
71
86
  type: z.literal("ToolCallGenerating"),
87
+ id: z.string().optional(),
72
88
  timestamp: z.number()
73
89
  });
74
90
  export const toolCallSchema = z.object({
75
91
  summary: z.string(),
76
92
  step_id: z.string(),
77
93
  type: z.literal("ToolCall"),
94
+ id: z.string().optional(),
78
95
  parameters: z.string(),
79
96
  integration: z.string(),
80
97
  timestamp: z.number()
@@ -82,6 +99,7 @@ export const toolCallSchema = z.object({
82
99
  export const thinkingSchema = z.object({
83
100
  step_id: z.string(),
84
101
  type: z.literal("Thinking"),
102
+ id: z.string().optional(),
85
103
  timestamp: z.number()
86
104
  });
87
105
  export var ToolCallExecutionStatus;
@@ -98,6 +116,7 @@ export const toolCallCompleteSchema = z.object({
98
116
  status: toolCallExecutionStatusSchema,
99
117
  step_id: z.string(),
100
118
  type: z.literal("ToolCallComplete"),
119
+ id: z.string().optional(),
101
120
  changed_items: z.array(changedItemSchema),
102
121
  integration: z.string(),
103
122
  url: z.string().optional(),
@@ -110,6 +129,7 @@ export const filterResultSchema = z.object({
110
129
  confidence: z.number(),
111
130
  step_id: z.string(),
112
131
  type: z.literal("FilterResult"),
132
+ id: z.string().optional(),
113
133
  timestamp: z.number()
114
134
  });
115
135
  export var SandboxStage;
@@ -130,6 +150,7 @@ export const SANDBOX_STAGE_LABELS = {
130
150
  };
131
151
  export const userMessageSchema = z.object({
132
152
  type: z.literal("UserMessage"),
153
+ id: z.string().optional(),
133
154
  message: z.string(),
134
155
  step_id: z.string(),
135
156
  client_turn_id: z.string(),
@@ -180,6 +201,7 @@ export const chatSnippetSchema = z.discriminatedUnion("type", [
180
201
  ]);
181
202
  export const modelEventChatSnippetSchema = z.object({
182
203
  type: z.literal("Snippet"),
204
+ id: z.string().optional(),
183
205
  timestamp: z.number(),
184
206
  snippet: chatSnippetSchema
185
207
  });
@@ -196,6 +218,7 @@ export const modelEventSchema = z.discriminatedUnion("type", [
196
218
  filterResultSchema,
197
219
  userMessageSchema,
198
220
  thinkingSchema,
199
- modelEventChatSnippetSchema
221
+ modelEventChatSnippetSchema,
222
+ processOutputSchema
200
223
  ]);
201
224
  export const modelRequestSchema = z.discriminatedUnion("type", [sendModelRequestSchema, toolApprovalResponseSchema]);
@@ -991,26 +991,6 @@ const TOOL_DISPLAY_CONFIG = {
991
991
  // ===================
992
992
  // Sandbox Lifecycle
993
993
  // ===================
994
- "Downloading source code": {
995
- preparing: "Downloading source code",
996
- executing: () => "Downloading source code",
997
- complete: (_params, result) => `Downloaded source code${result ? ` (${result})` : ""}`
998
- },
999
- "Booting sandbox": {
1000
- preparing: "Booting sandbox",
1001
- executing: () => "Booting sandbox",
1002
- complete: (_params, result) => `Sandbox booted${result ? ` (${result})` : ""}`
1003
- },
1004
- "Installing dependencies": {
1005
- preparing: "Installing dependencies",
1006
- executing: () => "Installing dependencies",
1007
- complete: (_params, result) => `Dependencies installed${result ? ` (${result})` : ""}`
1008
- },
1009
- "Installing CLI": {
1010
- preparing: "Installing CLI",
1011
- executing: () => "Installing CLI",
1012
- complete: (_params, result) => `CLI installed${result ? ` (${result})` : ""}`
1013
- },
1014
994
  "Running agent": {
1015
995
  preparing: "Running agent",
1016
996
  executing: () => "Running agent",
@@ -2047,11 +2047,13 @@ export type WorkOSTrigger = z.infer<typeof workOSTriggerSchema>;
2047
2047
  export declare const webhookTriggerSchema: z.ZodObject<{
2048
2048
  integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
2049
2049
  eventType: z.ZodLiteral<"webhook">;
2050
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2050
+ body: z.ZodUnknown;
2051
2051
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
2052
2052
  method: z.ZodString;
2053
2053
  }, z.core.$strip>;
2054
- export type WebhookTrigger = z.infer<typeof webhookTriggerSchema>;
2054
+ export type WebhookTrigger<TBody = unknown> = Omit<z.infer<typeof webhookTriggerSchema>, "body"> & {
2055
+ body: TBody;
2056
+ };
2055
2057
  export declare const cronTriggerSchema: z.ZodObject<{
2056
2058
  integrationType: z.ZodLiteral<IntegrationType.CRON_JOB>;
2057
2059
  eventType: z.ZodLiteral<"cron">;
@@ -2704,7 +2706,7 @@ export declare const TriggerSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion
2704
2706
  }, z.core.$strip>], "eventType">, z.ZodObject<{
2705
2707
  integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
2706
2708
  eventType: z.ZodLiteral<"webhook">;
2707
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2709
+ body: z.ZodUnknown;
2708
2710
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
2709
2711
  method: z.ZodString;
2710
2712
  }, z.core.$strip>, z.ZodObject<{
@@ -3362,7 +3364,7 @@ export declare const TriggerArraySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodDi
3362
3364
  }, z.core.$strip>], "eventType">, z.ZodObject<{
3363
3365
  integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
3364
3366
  eventType: z.ZodLiteral<"webhook">;
3365
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3367
+ body: z.ZodUnknown;
3366
3368
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
3367
3369
  method: z.ZodString;
3368
3370
  }, z.core.$strip>, z.ZodObject<{
@@ -4047,7 +4049,7 @@ export declare const serializedEventSchema: z.ZodObject<{
4047
4049
  }, z.core.$strip>], "eventType">, z.ZodObject<{
4048
4050
  integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
4049
4051
  eventType: z.ZodLiteral<"webhook">;
4050
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4052
+ body: z.ZodUnknown;
4051
4053
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
4052
4054
  method: z.ZodString;
4053
4055
  }, z.core.$strip>, z.ZodObject<{
package/dist/Triggers.js CHANGED
@@ -390,7 +390,7 @@ export const workOSTriggerSchema = z.discriminatedUnion("eventType", [
390
390
  export const webhookTriggerSchema = baseTriggerSchema.extend({
391
391
  integrationType: z.literal(IntegrationType.WEBHOOK),
392
392
  eventType: webhookTriggerTypeSchema,
393
- body: z.record(z.string(), z.unknown()),
393
+ body: z.unknown(),
394
394
  headers: z.record(z.string(), z.string()),
395
395
  method: z.string()
396
396
  });