robotrock 0.8.5 → 1.0.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.
@@ -0,0 +1,108 @@
1
+ import { Span } from '@opentelemetry/api';
2
+ import { ApprovalResult, DiscriminatedApprovalResult } from './schemas/index.js';
3
+
4
+ /**
5
+ * JSON body posted when a RobotRock action handler runs (webhook or Trigger wait token).
6
+ */
7
+ interface RobotRockHandlerWebhookPayload {
8
+ taskId: string;
9
+ action: {
10
+ id: string;
11
+ title: string;
12
+ data: unknown;
13
+ };
14
+ handledBy?: string;
15
+ handledAt: string;
16
+ handlerType: string;
17
+ }
18
+
19
+ /** Minimal span surface used by handle-time OTel recording. */
20
+ type OtelSpanLike = Pick<Span, "spanContext" | "setAttribute" | "addEvent" | "setStatus" | "end">;
21
+ type RobotRockOtelHandle = {
22
+ traceId: string;
23
+ spanId: string;
24
+ taskId: string;
25
+ taskCreatedAt: number;
26
+ threadId?: string;
27
+ };
28
+ type RobotRockOtelRecordOptions = {
29
+ handle?: RobotRockOtelHandle;
30
+ span?: OtelSpanLike | Span | null;
31
+ includeActionData?: boolean;
32
+ tracerName?: string;
33
+ };
34
+ type RobotRockHandledOtelInput = {
35
+ taskId: string;
36
+ threadId?: string;
37
+ action: {
38
+ id: string;
39
+ title?: string;
40
+ data: unknown;
41
+ };
42
+ handledBy?: string;
43
+ handledAt: string | number | Date;
44
+ };
45
+ type RobotRockHandledRecordInput = RobotRockHandlerWebhookPayload | ApprovalResult | DiscriminatedApprovalResult<readonly {
46
+ id: string;
47
+ schema?: unknown;
48
+ }[]>;
49
+ /** Normalize handled payloads from Trigger, Workflow, or polling. */
50
+ declare function toRobotRockHandledOtelInput(handled: RobotRockHandledRecordInput): RobotRockHandledOtelInput;
51
+ /**
52
+ * Capture trace + task metadata after RobotRock task create (before human wait).
53
+ * Used by Trigger.dev and Vercel Workflow durable integrations.
54
+ */
55
+ declare function captureRobotRockOtelHandle(task: {
56
+ taskId: string;
57
+ threadId?: string;
58
+ submittedAt?: string;
59
+ }, options?: {
60
+ span?: OtelSpanLike | Span | null;
61
+ }): RobotRockOtelHandle;
62
+ /**
63
+ * Start a child span for the human-wait phase on the active trace.
64
+ */
65
+ declare function startRobotRockHumanWaitSpan(handle: RobotRockOtelHandle, options?: {
66
+ tracerName?: string;
67
+ span?: OtelSpanLike | Span | null;
68
+ }): Span | undefined;
69
+ /**
70
+ * Record human action attributes and a span event on the active or wait span.
71
+ */
72
+ declare function recordRobotRockHandledToOtel(handled: RobotRockHandledRecordInput, options?: RobotRockOtelRecordOptions): void;
73
+ type EndRobotRockHumanWaitSpanOptions = {
74
+ handle?: RobotRockOtelHandle;
75
+ outcome?: "handled" | "timeout" | "error";
76
+ includeActionData?: boolean;
77
+ };
78
+ /**
79
+ * End the human-wait child span, recording handled data or a timeout/error outcome.
80
+ */
81
+ declare function endRobotRockHumanWaitSpan(span: Span | undefined, handled: RobotRockHandledRecordInput | null, options?: EndRobotRockHumanWaitSpanOptions): void;
82
+
83
+ type RobotRockPlatformOtelFields = {
84
+ /**
85
+ * Record human handle result on the active OTel span (Trigger / Workflow).
86
+ * Defaults to `ROBOTROCK_OTEL_RECORD_HANDLED` env (`true` / `1`).
87
+ */
88
+ recordOtel?: boolean;
89
+ /** Include truncated action feedback data on OTel spans (off by default). */
90
+ otelIncludeActionData?: boolean;
91
+ };
92
+ declare function shouldRecordRobotRockOtel(recordOtel?: boolean): boolean;
93
+ declare function stripPlatformOtelFields<T extends RobotRockPlatformOtelFields & Record<string, unknown>>(payload: T): Omit<T, "recordOtel" | "otelIncludeActionData">;
94
+ type RobotRockCreatedTask = {
95
+ taskId: string;
96
+ threadId?: string;
97
+ submittedAt?: string;
98
+ };
99
+ type RobotRockHumanWaitOtelSession = {
100
+ recordOtel: boolean;
101
+ handle?: RobotRockOtelHandle;
102
+ waitSpan?: Span;
103
+ includeActionData?: boolean;
104
+ };
105
+ declare function beginRobotRockHumanWaitOtel(task: RobotRockCreatedTask, options?: Pick<RobotRockPlatformOtelFields, "recordOtel" | "otelIncludeActionData">): RobotRockHumanWaitOtelSession;
106
+ declare function finishRobotRockHumanWaitOtel(session: RobotRockHumanWaitOtelSession, handled: Parameters<typeof endRobotRockHumanWaitSpan>[1], outcome: "handled" | "timeout" | "error"): void;
107
+
108
+ export { type EndRobotRockHumanWaitSpanOptions as E, type RobotRockPlatformOtelFields as R, type RobotRockHandlerWebhookPayload as a, type RobotRockCreatedTask as b, type RobotRockHandledOtelInput as c, type RobotRockHumanWaitOtelSession as d, type RobotRockOtelHandle as e, type RobotRockOtelRecordOptions as f, beginRobotRockHumanWaitOtel as g, captureRobotRockOtelHandle as h, endRobotRockHumanWaitSpan as i, finishRobotRockHumanWaitOtel as j, startRobotRockHumanWaitSpan as k, stripPlatformOtelFields as l, recordRobotRockHandledToOtel as r, shouldRecordRobotRockOtel as s, toRobotRockHandledOtelInput as t };
@@ -79,6 +79,15 @@ declare const handlerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
79
79
  type: z.ZodLiteral<"trigger">;
80
80
  tokenId: z.ZodString;
81
81
  }, z.core.$strip>], "type">;
82
+ /** Action config without handlers — used for chat widgets and agent tool input. */
83
+ declare const taskActionInputSchema: z.ZodObject<{
84
+ id: z.ZodString;
85
+ title: z.ZodString;
86
+ description: z.ZodOptional<z.ZodString>;
87
+ schema: z.ZodOptional<z.ZodCustom<ExtendedJSONSchema7, ExtendedJSONSchema7>>;
88
+ ui: z.ZodOptional<z.ZodCustom<UiSchema, UiSchema>>;
89
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
90
+ }, z.core.$strip>;
82
91
  declare const taskActionSchema: z.ZodObject<{
83
92
  id: z.ZodString;
84
93
  title: z.ZodString;
@@ -97,7 +106,10 @@ declare const taskActionSchema: z.ZodObject<{
97
106
  tokenId: z.ZodString;
98
107
  }, z.core.$strip>], "type">>>;
99
108
  }, z.core.$strip>;
100
- declare const taskContextSchema: z.ZodObject<{
109
+ /** Task context wire format version (always `2` today). */
110
+ declare const TASK_CONTEXT_FORMAT_VERSION: 2;
111
+ type TaskContextFormatVersion = typeof TASK_CONTEXT_FORMAT_VERSION;
112
+ declare const taskContextSchema: z.ZodPipe<z.ZodObject<{
101
113
  app: z.ZodOptional<z.ZodString>;
102
114
  type: z.ZodString;
103
115
  name: z.ZodString;
@@ -107,6 +119,7 @@ declare const taskContextSchema: z.ZodObject<{
107
119
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
108
120
  ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>>;
109
121
  }, z.core.$strip>>;
122
+ contextVersion: z.ZodOptional<z.ZodLiteral<2>>;
110
123
  version: z.ZodOptional<z.ZodLiteral<2>>;
111
124
  actions: z.ZodArray<z.ZodObject<{
112
125
  id: z.ZodString;
@@ -126,7 +139,69 @@ declare const taskContextSchema: z.ZodObject<{
126
139
  tokenId: z.ZodString;
127
140
  }, z.core.$strip>], "type">>>;
128
141
  }, z.core.$strip>>;
129
- }, z.core.$strip>;
142
+ }, z.core.$strip>, z.ZodTransform<Omit<{
143
+ type: string;
144
+ name: string;
145
+ actions: {
146
+ id: string;
147
+ title: string;
148
+ description?: string | undefined;
149
+ schema?: ExtendedJSONSchema7 | undefined;
150
+ ui?: UiSchema | undefined;
151
+ data?: Record<string, unknown> | undefined;
152
+ handlers?: ({
153
+ type: "webhook";
154
+ url: string;
155
+ headers: Record<string, string>;
156
+ } | {
157
+ url: string;
158
+ headers: Record<string, string>;
159
+ type: "trigger";
160
+ tokenId: string;
161
+ })[] | undefined;
162
+ }[];
163
+ app?: string | undefined;
164
+ description?: string | undefined;
165
+ validUntil?: string | undefined;
166
+ context?: {
167
+ data: Record<string, unknown>;
168
+ ui?: Record<string, Record<string, unknown>> | undefined;
169
+ } | undefined;
170
+ contextVersion?: 2 | undefined;
171
+ version?: 2 | undefined;
172
+ }, "contextVersion" | "version"> & {
173
+ contextVersion: 2;
174
+ }, {
175
+ type: string;
176
+ name: string;
177
+ actions: {
178
+ id: string;
179
+ title: string;
180
+ description?: string | undefined;
181
+ schema?: ExtendedJSONSchema7 | undefined;
182
+ ui?: UiSchema | undefined;
183
+ data?: Record<string, unknown> | undefined;
184
+ handlers?: ({
185
+ type: "webhook";
186
+ url: string;
187
+ headers: Record<string, string>;
188
+ } | {
189
+ url: string;
190
+ headers: Record<string, string>;
191
+ type: "trigger";
192
+ tokenId: string;
193
+ })[] | undefined;
194
+ }[];
195
+ app?: string | undefined;
196
+ description?: string | undefined;
197
+ validUntil?: string | undefined;
198
+ context?: {
199
+ data: Record<string, unknown>;
200
+ ui?: Record<string, Record<string, unknown>> | undefined;
201
+ } | undefined;
202
+ contextVersion?: 2 | undefined;
203
+ version?: 2 | undefined;
204
+ }>>;
130
205
  /**
131
206
  * Assignment targets at task create (not stored in task context JSON).
132
207
  * Unknown user emails are auto-provisioned as assignee memberships (count toward seat limits).
@@ -178,76 +253,10 @@ type TaskPriority = (typeof taskPriorities)[number];
178
253
  declare const DEFAULT_TASK_PRIORITY: TaskPriority;
179
254
  declare const LOWEST_TASK_PRIORITY: TaskPriority;
180
255
  declare const TASK_PRIORITY_RANK: Record<TaskPriority, number>;
181
- declare const agentCostTokensSchema: z.ZodObject<{
182
- input: z.ZodOptional<z.ZodNumber>;
183
- output: z.ZodOptional<z.ZodNumber>;
184
- total: z.ZodOptional<z.ZodNumber>;
185
- }, z.core.$strip>;
186
- declare const agentCostSchema: z.ZodObject<{
187
- tokens: z.ZodOptional<z.ZodObject<{
188
- input: z.ZodOptional<z.ZodNumber>;
189
- output: z.ZodOptional<z.ZodNumber>;
190
- total: z.ZodOptional<z.ZodNumber>;
191
- }, z.core.$strip>>;
192
- eur: z.ZodOptional<z.ZodNumber>;
193
- usd: z.ZodOptional<z.ZodNumber>;
194
- }, z.core.$strip>;
195
- declare const AGENT_OTEL_SPANS_MAX = 32;
196
- declare const agentToolCallsSchema: z.ZodRecord<z.ZodString, z.ZodNumber>;
197
- declare const agentOtelSpanStatusSchema: z.ZodEnum<{
198
- error: "error";
199
- ok: "ok";
200
- }>;
201
- declare const agentOtelSpanSummarySchema: z.ZodObject<{
202
- name: z.ZodString;
203
- durationMs: z.ZodNumber;
204
- status: z.ZodEnum<{
205
- error: "error";
206
- ok: "ok";
207
- }>;
208
- }, z.core.$strip>;
209
- declare const agentOtelSchema: z.ZodObject<{
210
- traceId: z.ZodString;
211
- spanId: z.ZodOptional<z.ZodString>;
212
- rootDurationMs: z.ZodOptional<z.ZodNumber>;
213
- spans: z.ZodOptional<z.ZodArray<z.ZodObject<{
214
- name: z.ZodString;
215
- durationMs: z.ZodNumber;
216
- status: z.ZodEnum<{
217
- error: "error";
218
- ok: "ok";
219
- }>;
220
- }, z.core.$strip>>>;
221
- }, z.core.$strip>;
222
256
  declare const agentTelemetrySchema: z.ZodObject<{
223
- version: z.ZodOptional<z.ZodString>;
224
- toolCallCount: z.ZodOptional<z.ZodNumber>;
225
- toolCalls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
226
- cost: z.ZodOptional<z.ZodObject<{
227
- tokens: z.ZodOptional<z.ZodObject<{
228
- input: z.ZodOptional<z.ZodNumber>;
229
- output: z.ZodOptional<z.ZodNumber>;
230
- total: z.ZodOptional<z.ZodNumber>;
231
- }, z.core.$strip>>;
232
- eur: z.ZodOptional<z.ZodNumber>;
233
- usd: z.ZodOptional<z.ZodNumber>;
234
- }, z.core.$strip>>;
235
- info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
236
- otel: z.ZodOptional<z.ZodObject<{
237
- traceId: z.ZodString;
238
- spanId: z.ZodOptional<z.ZodString>;
239
- rootDurationMs: z.ZodOptional<z.ZodNumber>;
240
- spans: z.ZodOptional<z.ZodArray<z.ZodObject<{
241
- name: z.ZodString;
242
- durationMs: z.ZodNumber;
243
- status: z.ZodEnum<{
244
- error: "error";
245
- ok: "ok";
246
- }>;
247
- }, z.core.$strip>>>;
248
- }, z.core.$strip>>;
257
+ version: z.ZodString;
249
258
  }, z.core.$strip>;
250
- declare const createTaskBodySchema: z.ZodObject<{
259
+ declare const createTaskBodySchema: z.ZodPipe<z.ZodObject<{
251
260
  app: z.ZodOptional<z.ZodString>;
252
261
  type: z.ZodString;
253
262
  name: z.ZodString;
@@ -257,6 +266,7 @@ declare const createTaskBodySchema: z.ZodObject<{
257
266
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
258
267
  ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>>;
259
268
  }, z.core.$strip>>;
269
+ contextVersion: z.ZodOptional<z.ZodLiteral<2>>;
260
270
  version: z.ZodOptional<z.ZodLiteral<2>>;
261
271
  actions: z.ZodArray<z.ZodObject<{
262
272
  id: z.ZodString;
@@ -300,34 +310,97 @@ declare const createTaskBodySchema: z.ZodObject<{
300
310
  }>>;
301
311
  }, z.core.$strip>>;
302
312
  agent: z.ZodOptional<z.ZodObject<{
303
- version: z.ZodOptional<z.ZodString>;
304
- toolCallCount: z.ZodOptional<z.ZodNumber>;
305
- toolCalls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
306
- cost: z.ZodOptional<z.ZodObject<{
307
- tokens: z.ZodOptional<z.ZodObject<{
308
- input: z.ZodOptional<z.ZodNumber>;
309
- output: z.ZodOptional<z.ZodNumber>;
310
- total: z.ZodOptional<z.ZodNumber>;
311
- }, z.core.$strip>>;
312
- eur: z.ZodOptional<z.ZodNumber>;
313
- usd: z.ZodOptional<z.ZodNumber>;
314
- }, z.core.$strip>>;
315
- info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
316
- otel: z.ZodOptional<z.ZodObject<{
317
- traceId: z.ZodString;
318
- spanId: z.ZodOptional<z.ZodString>;
319
- rootDurationMs: z.ZodOptional<z.ZodNumber>;
320
- spans: z.ZodOptional<z.ZodArray<z.ZodObject<{
321
- name: z.ZodString;
322
- durationMs: z.ZodNumber;
323
- status: z.ZodEnum<{
324
- error: "error";
325
- ok: "ok";
326
- }>;
327
- }, z.core.$strip>>>;
328
- }, z.core.$strip>>;
313
+ version: z.ZodString;
329
314
  }, z.core.$strip>>;
330
- }, z.core.$strip>;
315
+ }, z.core.$strip>, z.ZodTransform<Omit<{
316
+ type: string;
317
+ name: string;
318
+ actions: {
319
+ id: string;
320
+ title: string;
321
+ description?: string | undefined;
322
+ schema?: ExtendedJSONSchema7 | undefined;
323
+ ui?: UiSchema | undefined;
324
+ data?: Record<string, unknown> | undefined;
325
+ handlers?: ({
326
+ type: "webhook";
327
+ url: string;
328
+ headers: Record<string, string>;
329
+ } | {
330
+ url: string;
331
+ headers: Record<string, string>;
332
+ type: "trigger";
333
+ tokenId: string;
334
+ })[] | undefined;
335
+ }[];
336
+ app?: string | undefined;
337
+ description?: string | undefined;
338
+ validUntil?: string | undefined;
339
+ context?: {
340
+ data: Record<string, unknown>;
341
+ ui?: Record<string, Record<string, unknown>> | undefined;
342
+ } | undefined;
343
+ contextVersion?: 2 | undefined;
344
+ version?: 2 | undefined;
345
+ assignTo?: {
346
+ users?: string[] | undefined;
347
+ groups?: string[] | undefined;
348
+ } | undefined;
349
+ threadId?: string | undefined;
350
+ priority?: "low" | "normal" | "high" | "urgent" | undefined;
351
+ update?: {
352
+ message: string;
353
+ status?: "info" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | undefined;
354
+ } | undefined;
355
+ agent?: {
356
+ version: string;
357
+ } | undefined;
358
+ }, "contextVersion" | "version"> & {
359
+ contextVersion: 2;
360
+ }, {
361
+ type: string;
362
+ name: string;
363
+ actions: {
364
+ id: string;
365
+ title: string;
366
+ description?: string | undefined;
367
+ schema?: ExtendedJSONSchema7 | undefined;
368
+ ui?: UiSchema | undefined;
369
+ data?: Record<string, unknown> | undefined;
370
+ handlers?: ({
371
+ type: "webhook";
372
+ url: string;
373
+ headers: Record<string, string>;
374
+ } | {
375
+ url: string;
376
+ headers: Record<string, string>;
377
+ type: "trigger";
378
+ tokenId: string;
379
+ })[] | undefined;
380
+ }[];
381
+ app?: string | undefined;
382
+ description?: string | undefined;
383
+ validUntil?: string | undefined;
384
+ context?: {
385
+ data: Record<string, unknown>;
386
+ ui?: Record<string, Record<string, unknown>> | undefined;
387
+ } | undefined;
388
+ contextVersion?: 2 | undefined;
389
+ version?: 2 | undefined;
390
+ assignTo?: {
391
+ users?: string[] | undefined;
392
+ groups?: string[] | undefined;
393
+ } | undefined;
394
+ threadId?: string | undefined;
395
+ priority?: "low" | "normal" | "high" | "urgent" | undefined;
396
+ update?: {
397
+ message: string;
398
+ status?: "info" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | undefined;
399
+ } | undefined;
400
+ agent?: {
401
+ version: string;
402
+ } | undefined;
403
+ }>>;
331
404
  /** POST /v1/threads/:threadId/updates body: a standalone thread update. */
332
405
  declare const threadUpdateBodySchema: z.ZodObject<{
333
406
  message: z.ZodString;
@@ -363,16 +436,11 @@ type ThreadUpdateInput = z.input<typeof threadUpdateInputSchema>;
363
436
  type TaskContextInput = z.input<typeof taskContextSchema>;
364
437
  type TaskContextOutput = z.output<typeof taskContextSchema>;
365
438
  type TaskContext = TaskContextOutput;
439
+ type TaskActionInput = z.infer<typeof taskActionInputSchema>;
366
440
  type TaskAction = z.infer<typeof taskActionSchema>;
367
441
  type WebhookHandler = z.infer<typeof webhookHandlerSchema>;
368
442
  type TriggerHandler = z.infer<typeof triggerHandlerSchema>;
369
443
  type Handler = z.infer<typeof handlerSchema>;
370
- type AgentCostTokens = z.infer<typeof agentCostTokensSchema>;
371
- type AgentCost = z.infer<typeof agentCostSchema>;
372
- type AgentToolCalls = z.infer<typeof agentToolCallsSchema>;
373
- type AgentOtelSpanStatus = z.infer<typeof agentOtelSpanStatusSchema>;
374
- type AgentOtelSpanSummary = z.infer<typeof agentOtelSpanSummarySchema>;
375
- type AgentOtel = z.infer<typeof agentOtelSchema>;
376
444
  type AgentTelemetry = z.infer<typeof agentTelemetrySchema>;
377
445
  type AgentTelemetryInput = z.input<typeof agentTelemetrySchema>;
378
446
  type InferObjectProperties<Props, Req extends PropertyKey> = Props extends Record<string, unknown> ? ({
@@ -476,4 +544,4 @@ type DiscriminatedApprovalResult<TActions extends readonly {
476
544
  } : never;
477
545
  }[TupleElementIndices<TActions>];
478
546
 
479
- export { AGENT_OTEL_SPANS_MAX, type AgentCost, type AgentCostTokens, type AgentOtel, type AgentOtelSpanStatus, type AgentOtelSpanSummary, type AgentTelemetry, type AgentTelemetryInput, type AgentToolCalls, type ApprovalResult, type AssignToInput, type CreateTaskBody, type CreateTaskBodyInput, DEFAULT_TASK_PRIORITY, DEFAULT_THREAD_UPDATE_STATUS, type DiscriminatedApprovalResult, type ExtendedJSONSchema7, type Handler, type InferActionData, type InferJsonSchema7, type JSONSchema7, type JSONSchema7TypeName, LOWEST_TASK_PRIORITY, TASK_PRIORITY_RANK, type Task, type TaskAction, type TaskContext, type TaskContextInput, type TaskContextOutput, type TaskPriority, type TaskResponse, type TaskResult, type TaskStatus, type ThreadUpdate, type ThreadUpdateBody, type ThreadUpdateBodyInput, type ThreadUpdateInput, type ThreadUpdateResponse, type ThreadUpdateSource, type ThreadUpdateStatus, type TriggerHandler, type TupleElementIndices, type UiSchema, type WebhookHandler, agentCostSchema, agentCostTokensSchema, agentOtelSchema, agentOtelSpanStatusSchema, agentOtelSpanSummarySchema, agentTelemetrySchema, agentToolCallsSchema, assignToSchema, createTaskBodySchema, taskContextSchema, taskPriorities, taskPrioritySchema, threadUpdateBodySchema, threadUpdateInputSchema, threadUpdateMessageSchema, threadUpdateStatusSchema, threadUpdateStatuses };
547
+ export { type AgentTelemetry, type AgentTelemetryInput, type ApprovalResult, type AssignToInput, type CreateTaskBody, type CreateTaskBodyInput, DEFAULT_TASK_PRIORITY, DEFAULT_THREAD_UPDATE_STATUS, type DiscriminatedApprovalResult, type ExtendedJSONSchema7, type Handler, type InferActionData, type InferJsonSchema7, type JSONSchema7, type JSONSchema7TypeName, LOWEST_TASK_PRIORITY, TASK_CONTEXT_FORMAT_VERSION, TASK_PRIORITY_RANK, type Task, type TaskAction, type TaskActionInput, type TaskContext, type TaskContextFormatVersion, type TaskContextInput, type TaskContextOutput, type TaskPriority, type TaskResponse, type TaskResult, type TaskStatus, type ThreadUpdate, type ThreadUpdateBody, type ThreadUpdateBodyInput, type ThreadUpdateInput, type ThreadUpdateResponse, type ThreadUpdateSource, type ThreadUpdateStatus, type TriggerHandler, type TupleElementIndices, type UiSchema, type WebhookHandler, agentTelemetrySchema, assignToSchema, createTaskBodySchema, taskActionInputSchema, taskContextSchema, taskPriorities, taskPrioritySchema, threadUpdateBodySchema, threadUpdateInputSchema, threadUpdateMessageSchema, threadUpdateStatusSchema, threadUpdateStatuses };