@omnara/sdk 0.1.8 → 0.1.10

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,52 @@
1
+ // src/validate-response.ts
2
+ import * as z from "zod";
3
+ var zStringInput = z.string();
4
+ function isStringInput(issue) {
5
+ return zStringInput.safeParse(issue.input).success;
6
+ }
7
+ function hasStringDiscriminator(issue) {
8
+ if (issue.discriminator === void 0) return isStringInput(issue);
9
+ return z.object({ [issue.discriminator]: zStringInput }).safeParse(issue.input).success;
10
+ }
11
+ function samePath(a, b) {
12
+ return a.length === b.length && a.every((segment, index) => segment === b[index]);
13
+ }
14
+ function isUnknownEnumIssue(issue) {
15
+ if (issue.code === "invalid_value") {
16
+ return issue.values.length > 1 && isStringInput(issue);
17
+ }
18
+ if (issue.code !== "invalid_union") return false;
19
+ if (issue.errors.length === 0) return hasStringDiscriminator(issue);
20
+ if (issue.errors.some((arm) => arm.every(isUnknownEnumIssue))) {
21
+ return true;
22
+ }
23
+ const [first, ...rest] = issue.errors;
24
+ return (first ?? []).some(
25
+ (candidate) => candidate.code === "invalid_value" && isStringInput(candidate) && rest.every(
26
+ (arm) => arm.some((other) => other.code === "invalid_value" && samePath(other.path, candidate.path))
27
+ )
28
+ );
29
+ }
30
+ function isUnknownEnumError(error) {
31
+ return error.issues.every(isUnknownEnumIssue);
32
+ }
33
+ function relaxedSchema(schema) {
34
+ return z.custom().superRefine((value, ctx) => {
35
+ const result = schema.safeParse(value, { reportInput: true });
36
+ if (result.success || isUnknownEnumError(result.error)) return;
37
+ for (const issue of result.error.issues) ctx.addIssue({ ...issue });
38
+ });
39
+ }
40
+ function relaxedResponseValidator(schema) {
41
+ return async (data) => {
42
+ const result = await schema.safeParseAsync(data, { reportInput: true });
43
+ if (result.success || isUnknownEnumError(result.error)) return;
44
+ throw result.error;
45
+ };
46
+ }
47
+
48
+ export {
49
+ relaxedSchema,
50
+ relaxedResponseValidator
51
+ };
52
+ //# sourceMappingURL=chunk-6ZFYUHM3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/validate-response.ts"],"sourcesContent":["import * as z from 'zod'\n\nimport type { Config } from './generated/client'\n\ntype Issue = z.core.$ZodIssue\n\ntype ResponseValidator = NonNullable<Config['responseValidator']>\n\nconst zStringInput = z.string()\n\nfunction isStringInput(issue: Issue): boolean {\n return zStringInput.safeParse(issue.input).success\n}\n\nfunction hasStringDiscriminator(issue: z.core.$ZodIssueInvalidUnion): boolean {\n if (issue.discriminator === undefined) return isStringInput(issue)\n return z.object({ [issue.discriminator]: zStringInput }).safeParse(issue.input).success\n}\n\nfunction samePath(a: readonly PropertyKey[], b: readonly PropertyKey[]): boolean {\n return a.length === b.length && a.every((segment, index) => segment === b[index])\n}\n\nfunction isUnknownEnumIssue(issue: Issue): boolean {\n if (issue.code === 'invalid_value') {\n return issue.values.length > 1 && isStringInput(issue)\n }\n if (issue.code !== 'invalid_union') return false\n if (issue.errors.length === 0) return hasStringDiscriminator(issue)\n if (issue.errors.some((arm) => arm.every(isUnknownEnumIssue))) {\n return true\n }\n const [first, ...rest] = issue.errors\n return (first ?? []).some(\n (candidate) =>\n candidate.code === 'invalid_value' &&\n isStringInput(candidate) &&\n rest.every((arm) =>\n arm.some((other) => other.code === 'invalid_value' && samePath(other.path, candidate.path)),\n ),\n )\n}\n\nexport function isUnknownEnumError(error: z.ZodError): boolean {\n return error.issues.every(isUnknownEnumIssue)\n}\n\nexport function relaxedSchema<S extends z.ZodType>(schema: S): z.ZodType<z.output<S>> {\n return z.custom<z.output<S>>().superRefine((value, ctx) => {\n const result = schema.safeParse(value, { reportInput: true })\n if (result.success || isUnknownEnumError(result.error)) return\n for (const issue of result.error.issues) ctx.addIssue({ ...issue })\n })\n}\n\nexport function relaxedResponseValidator(schema: z.ZodType): ResponseValidator {\n return async (data) => {\n const result = await schema.safeParseAsync(data, { reportInput: true })\n if (result.success || isUnknownEnumError(result.error)) return\n throw result.error\n }\n}\n"],"mappings":";AAAA,YAAY,OAAO;AAQnB,IAAM,eAAiB,SAAO;AAE9B,SAAS,cAAc,OAAuB;AAC5C,SAAO,aAAa,UAAU,MAAM,KAAK,EAAE;AAC7C;AAEA,SAAS,uBAAuB,OAA8C;AAC5E,MAAI,MAAM,kBAAkB,OAAW,QAAO,cAAc,KAAK;AACjE,SAAS,SAAO,EAAE,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,EAAE,UAAU,MAAM,KAAK,EAAE;AAClF;AAEA,SAAS,SAAS,GAA2B,GAAoC;AAC/E,SAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,CAAC,SAAS,UAAU,YAAY,EAAE,KAAK,CAAC;AAClF;AAEA,SAAS,mBAAmB,OAAuB;AACjD,MAAI,MAAM,SAAS,iBAAiB;AAClC,WAAO,MAAM,OAAO,SAAS,KAAK,cAAc,KAAK;AAAA,EACvD;AACA,MAAI,MAAM,SAAS,gBAAiB,QAAO;AAC3C,MAAI,MAAM,OAAO,WAAW,EAAG,QAAO,uBAAuB,KAAK;AAClE,MAAI,MAAM,OAAO,KAAK,CAAC,QAAQ,IAAI,MAAM,kBAAkB,CAAC,GAAG;AAC7D,WAAO;AAAA,EACT;AACA,QAAM,CAAC,OAAO,GAAG,IAAI,IAAI,MAAM;AAC/B,UAAQ,SAAS,CAAC,GAAG;AAAA,IACnB,CAAC,cACC,UAAU,SAAS,mBACnB,cAAc,SAAS,KACvB,KAAK;AAAA,MAAM,CAAC,QACV,IAAI,KAAK,CAAC,UAAU,MAAM,SAAS,mBAAmB,SAAS,MAAM,MAAM,UAAU,IAAI,CAAC;AAAA,IAC5F;AAAA,EACJ;AACF;AAEO,SAAS,mBAAmB,OAA4B;AAC7D,SAAO,MAAM,OAAO,MAAM,kBAAkB;AAC9C;AAEO,SAAS,cAAmC,QAAmC;AACpF,SAAS,SAAoB,EAAE,YAAY,CAAC,OAAO,QAAQ;AACzD,UAAM,SAAS,OAAO,UAAU,OAAO,EAAE,aAAa,KAAK,CAAC;AAC5D,QAAI,OAAO,WAAW,mBAAmB,OAAO,KAAK,EAAG;AACxD,eAAW,SAAS,OAAO,MAAM,OAAQ,KAAI,SAAS,EAAE,GAAG,MAAM,CAAC;AAAA,EACpE,CAAC;AACH;AAEO,SAAS,yBAAyB,QAAsC;AAC7E,SAAO,OAAO,SAAS;AACrB,UAAM,SAAS,MAAM,OAAO,eAAe,MAAM,EAAE,aAAa,KAAK,CAAC;AACtE,QAAI,OAAO,WAAW,mBAAmB,OAAO,KAAK,EAAG;AACxD,UAAM,OAAO;AAAA,EACf;AACF;","names":[]}
@@ -0,0 +1,60 @@
1
+ import {
2
+ relaxedSchema
3
+ } from "./chunk-6ZFYUHM3.js";
4
+ import {
5
+ zError
6
+ } from "./chunk-Q6U3G6AQ.js";
7
+
8
+ // src/json-body.ts
9
+ import * as z from "zod";
10
+ var zJsonBody = z.json();
11
+ var zJsonText = z.string().transform((text, ctx) => {
12
+ try {
13
+ const value = JSON.parse(text);
14
+ return value;
15
+ } catch (error) {
16
+ ctx.addIssue({ code: "custom", message: String(error), input: text, params: { cause: error } });
17
+ return z.NEVER;
18
+ }
19
+ });
20
+
21
+ // src/errors.ts
22
+ import * as z2 from "zod";
23
+ var zErrorBody = zJsonText.pipe(zJsonBody);
24
+ var zErrorResponse = relaxedSchema(
25
+ zError.partial({ code: true }).extend({ error_description: z2.string().optional() })
26
+ );
27
+ function issuesFromBody(body) {
28
+ const parsed = zErrorResponse.safeParse(body);
29
+ return parsed.success ? parsed.data.issues ?? [] : [];
30
+ }
31
+ var ApiError = class _ApiError extends Error {
32
+ status;
33
+ code;
34
+ body;
35
+ issues;
36
+ constructor(status, message, code, body) {
37
+ super(message);
38
+ this.name = "ApiError";
39
+ this.status = status;
40
+ this.code = code;
41
+ this.body = body;
42
+ this.issues = issuesFromBody(body);
43
+ }
44
+ static async fromResponse(response) {
45
+ const body = zErrorBody.safeParse(await response.clone().text());
46
+ return _ApiError.fromBody(response.status, body.success ? body.data : void 0);
47
+ }
48
+ static fromBody(status, body) {
49
+ const parsed = zErrorResponse.safeParse(body);
50
+ const message = parsed.data?.error_description ?? parsed.data?.error ?? `request failed with status ${status}`;
51
+ return new _ApiError(status, message, parsed.data?.code, body);
52
+ }
53
+ };
54
+
55
+ export {
56
+ zJsonText,
57
+ zErrorResponse,
58
+ ApiError
59
+ };
60
+ //# sourceMappingURL=chunk-H3HEAMJ5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/json-body.ts","../src/errors.ts"],"sourcesContent":["import * as z from 'zod'\n\nexport const zJsonBody = z.json()\n\nexport type JsonBody = z.infer<typeof zJsonBody>\n\nexport const zJsonText = z.string().transform((text, ctx) => {\n try {\n const value: unknown = JSON.parse(text)\n return value\n } catch (error) {\n ctx.addIssue({ code: 'custom', message: String(error), input: text, params: { cause: error } })\n return z.NEVER\n }\n})\n","import * as z from 'zod'\n\nimport type { AgentConfigErrorIssue, Error as ApiErrorBody } from './generated/types.gen'\nimport { zError } from './generated/zod.gen'\nimport { type JsonBody, zJsonBody, zJsonText } from './json-body'\nimport { relaxedSchema } from './validate-response'\n\nexport type ApiErrorCode = ApiErrorBody['code']\n\nconst zErrorBody = zJsonText.pipe(zJsonBody)\n\nexport const zErrorResponse = relaxedSchema(\n zError.partial({ code: true }).extend({ error_description: z.string().optional() }),\n)\n\nfunction issuesFromBody(body: JsonBody | undefined): AgentConfigErrorIssue[] {\n const parsed = zErrorResponse.safeParse(body)\n return parsed.success ? (parsed.data.issues ?? []) : []\n}\n\nexport class ApiError extends Error {\n readonly status: number\n readonly code: ApiErrorCode | undefined\n readonly body: JsonBody | undefined\n readonly issues: AgentConfigErrorIssue[]\n\n constructor(status: number, message: string, code?: ApiErrorCode, body?: JsonBody) {\n super(message)\n this.name = 'ApiError'\n this.status = status\n this.code = code\n this.body = body\n this.issues = issuesFromBody(body)\n }\n\n static async fromResponse(response: Response): Promise<ApiError> {\n const body = zErrorBody.safeParse(await response.clone().text())\n return ApiError.fromBody(response.status, body.success ? body.data : undefined)\n }\n\n static fromBody(status: number, body: JsonBody | undefined): ApiError {\n const parsed = zErrorResponse.safeParse(body)\n const message =\n parsed.data?.error_description ?? parsed.data?.error ?? `request failed with status ${status}`\n return new ApiError(status, message, parsed.data?.code, body)\n }\n}\n"],"mappings":";;;;;;;;AAAA,YAAY,OAAO;AAEZ,IAAM,YAAc,OAAK;AAIzB,IAAM,YAAc,SAAO,EAAE,UAAU,CAAC,MAAM,QAAQ;AAC3D,MAAI;AACF,UAAM,QAAiB,KAAK,MAAM,IAAI;AACtC,WAAO;AAAA,EACT,SAAS,OAAO;AACd,QAAI,SAAS,EAAE,MAAM,UAAU,SAAS,OAAO,KAAK,GAAG,OAAO,MAAM,QAAQ,EAAE,OAAO,MAAM,EAAE,CAAC;AAC9F,WAAS;AAAA,EACX;AACF,CAAC;;;ACdD,YAAYA,QAAO;AASnB,IAAM,aAAa,UAAU,KAAK,SAAS;AAEpC,IAAM,iBAAiB;AAAA,EAC5B,OAAO,QAAQ,EAAE,MAAM,KAAK,CAAC,EAAE,OAAO,EAAE,mBAAqB,UAAO,EAAE,SAAS,EAAE,CAAC;AACpF;AAEA,SAAS,eAAe,MAAqD;AAC3E,QAAM,SAAS,eAAe,UAAU,IAAI;AAC5C,SAAO,OAAO,UAAW,OAAO,KAAK,UAAU,CAAC,IAAK,CAAC;AACxD;AAEO,IAAM,WAAN,MAAM,kBAAiB,MAAM;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,QAAgB,SAAiB,MAAqB,MAAiB;AACjF,UAAM,OAAO;AACb,SAAK,OAAO;AACZ,SAAK,SAAS;AACd,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,SAAS,eAAe,IAAI;AAAA,EACnC;AAAA,EAEA,aAAa,aAAa,UAAuC;AAC/D,UAAM,OAAO,WAAW,UAAU,MAAM,SAAS,MAAM,EAAE,KAAK,CAAC;AAC/D,WAAO,UAAS,SAAS,SAAS,QAAQ,KAAK,UAAU,KAAK,OAAO,MAAS;AAAA,EAChF;AAAA,EAEA,OAAO,SAAS,QAAgB,MAAsC;AACpE,UAAM,SAAS,eAAe,UAAU,IAAI;AAC5C,UAAM,UACJ,OAAO,MAAM,qBAAqB,OAAO,MAAM,SAAS,8BAA8B,MAAM;AAC9F,WAAO,IAAI,UAAS,QAAQ,SAAS,OAAO,MAAM,MAAM,IAAI;AAAA,EAC9D;AACF;","names":["z"]}
@@ -195,6 +195,7 @@ __export(zod_gen_exports, {
195
195
  zCronMessageTemplate: () => zCronMessageTemplate,
196
196
  zCronTimezone: () => zCronTimezone,
197
197
  zCronTrigger: () => zCronTrigger,
198
+ zCronTriggerDeliveryMode: () => zCronTriggerDeliveryMode,
198
199
  zCronTriggerFailureReport: () => zCronTriggerFailureReport,
199
200
  zCronTriggerId: () => zCronTriggerId,
200
201
  zCronTriggerTarget: () => zCronTriggerTarget,
@@ -914,7 +915,7 @@ var zUpdateConfiguredModelRequest = z.object({
914
915
  name: zResourceName.optional(),
915
916
  provider_model_slug: z.string().min(1).optional(),
916
917
  context_window_tokens: z.int().gte(2).lte(2147483647).optional(),
917
- max_output_tokens: z.int().gte(1).lte(2147483647).optional(),
918
+ max_output_tokens: z.int().gte(1).lte(2147483647).nullish(),
918
919
  default_max_output_tokens: z.int().gte(1).lte(2147483647).nullish(),
919
920
  default_cache_retention: zModelCacheRetention.optional(),
920
921
  supports_tools: z.boolean().optional(),
@@ -971,6 +972,7 @@ var zCreateModelProviderConfigRequest = z.object({
971
972
  base_url: z.string().min(1).optional(),
972
973
  endpoint_path: z.string().min(1).regex(/^\//).optional(),
973
974
  request_timeout_ms: z.int().gte(1).lte(2147483647).optional(),
975
+ idle_timeout_ms: z.int().gte(1).lte(2147483647).optional(),
974
976
  auth_kind: zModelProviderAuthKind.optional(),
975
977
  auth_options: z.object({
976
978
  header_name: z.string().min(1).optional()
@@ -981,6 +983,7 @@ var zUpdateModelProviderConfigRequest = z.object({
981
983
  base_url: z.string().min(1).optional(),
982
984
  endpoint_path: z.string().min(1).regex(/^\//).optional(),
983
985
  request_timeout_ms: z.int().gte(1).lte(2147483647).optional(),
986
+ idle_timeout_ms: z.int().gte(1).lte(2147483647).optional(),
984
987
  auth_kind: zModelProviderAuthKind.optional(),
985
988
  auth_options: z.object({
986
989
  header_name: z.string().min(1).optional()
@@ -1004,6 +1007,7 @@ var zModelProviderConfig = z.object({
1004
1007
  base_url: z.string(),
1005
1008
  endpoint_path: z.string(),
1006
1009
  request_timeout_ms: z.int(),
1010
+ idle_timeout_ms: z.int(),
1007
1011
  auth_kind: zModelProviderAuthKind,
1008
1012
  auth_options: z.object({
1009
1013
  header_name: z.string().min(1).optional()
@@ -1029,7 +1033,7 @@ var zConfiguredModel = z.object({
1029
1033
  current_revision_id: zConfiguredModelRevisionId,
1030
1034
  provider_model_slug: z.string(),
1031
1035
  context_window_tokens: z.int(),
1032
- max_output_tokens: z.int(),
1036
+ max_output_tokens: z.int().nullable(),
1033
1037
  default_max_output_tokens: z.int().nullish(),
1034
1038
  default_cache_retention: zModelCacheRetention.optional(),
1035
1039
  supports_tools: z.boolean(),
@@ -1383,7 +1387,7 @@ var zAgentConfigModel = z.object({
1383
1387
  api_format: zModelApiFormat,
1384
1388
  api_variant: zModelProviderApiVariantResponse,
1385
1389
  context_window_tokens: z.int(),
1386
- max_output_tokens: z.int(),
1390
+ max_output_tokens: z.int().nullable(),
1387
1391
  default_max_output_tokens: z.int().nullish(),
1388
1392
  default_cache_retention: zModelCacheRetention,
1389
1393
  supports_tools: z.boolean(),
@@ -1432,21 +1436,23 @@ var zListAgentProfilesResponse = z.object({
1432
1436
  data: z.array(zAgentProfile),
1433
1437
  next_cursor: z.string().nullable()
1434
1438
  });
1435
- var zAgentCronTriggerTarget = z.object({
1436
- type: z.enum(["agent"]),
1437
- agent_id: zAgentId
1438
- });
1439
1439
  var zAgentProfileCronTriggerTarget = z.object({
1440
1440
  type: z.enum(["profile"]),
1441
1441
  agent_profile_id: zAgentProfileId
1442
1442
  });
1443
+ var zCronExpression = z.string().min(9).max(256);
1444
+ var zCronTimezone = z.string().max(64).default("UTC");
1445
+ var zCronMessageTemplate = z.string().max(65536);
1446
+ var zCronTriggerDeliveryMode = z.enum(["queued", "steering"]);
1447
+ var zAgentCronTriggerTarget = z.object({
1448
+ type: z.enum(["agent"]),
1449
+ agent_id: zAgentId,
1450
+ delivery_mode: zCronTriggerDeliveryMode.optional()
1451
+ });
1443
1452
  var zCronTriggerTarget = z.discriminatedUnion("type", [
1444
1453
  zAgentCronTriggerTarget.extend({ type: z.literal("agent") }),
1445
1454
  zAgentProfileCronTriggerTarget.extend({ type: z.literal("profile") })
1446
1455
  ]);
1447
- var zCronExpression = z.string().min(9).max(256);
1448
- var zCronTimezone = z.string().max(64).default("UTC");
1449
- var zCronMessageTemplate = z.string().max(65536);
1450
1456
  var zCronTriggerFailureReport = z.object({
1451
1457
  message: z.string(),
1452
1458
  will_retry: z.boolean(),
@@ -1461,6 +1467,7 @@ var zCreateCronTriggerRequest = z.object({
1461
1467
  enabled: z.boolean().optional().default(true)
1462
1468
  });
1463
1469
  var zUpdateCronTriggerRequest = z.object({
1470
+ target: zCronTriggerTarget.optional(),
1464
1471
  name: zResourceName.optional(),
1465
1472
  cron: zCronExpression.optional(),
1466
1473
  timezone: zCronTimezone.optional(),
@@ -1803,21 +1810,6 @@ var zAgentInputEvent = z.object({
1803
1810
  content_blocks: z.array(zAgentInputContentBlock),
1804
1811
  created_at: zTimestamp
1805
1812
  });
1806
- var zModelOutputEvent = z.object({
1807
- id: zAgentEventId,
1808
- org_id: zOrganizationId,
1809
- project_id: zProjectId,
1810
- agent_id: zAgentId,
1811
- turn_id: zAgentTurnId,
1812
- turn_sequence: zAgentSequence,
1813
- is_opening_event: z.literal(false),
1814
- sequence: zAgentSequence,
1815
- event_kind: z.enum(["model_output"]),
1816
- model_call_context_id: zModelCallContextId,
1817
- stop_reason: zModelOutputStopReason,
1818
- content_blocks: z.array(zModelOutputContentBlock),
1819
- created_at: zTimestamp
1820
- });
1821
1813
  var zToolResultEvent = z.object({
1822
1814
  id: zAgentEventId,
1823
1815
  org_id: zOrganizationId,
@@ -1848,12 +1840,6 @@ var zContextCheckpointEvent = z.object({
1848
1840
  summary: z.string(),
1849
1841
  created_at: zTimestamp
1850
1842
  });
1851
- var zAgentEvent = z.discriminatedUnion("event_kind", [
1852
- zAgentInputEvent.extend({ event_kind: z.literal("agent_input") }),
1853
- zModelOutputEvent.extend({ event_kind: z.literal("model_output") }),
1854
- zToolResultEvent.extend({ event_kind: z.literal("tool_result") }),
1855
- zContextCheckpointEvent.extend({ event_kind: z.literal("context_checkpoint") })
1856
- ]);
1857
1843
  var zModelOutputTextStreamBlock = z.object({
1858
1844
  kind: z.enum(["text"])
1859
1845
  });
@@ -1902,6 +1888,29 @@ var zModelUsage = z.object({
1902
1888
  cache_read_input_tokens: z.int().gte(0).optional(),
1903
1889
  cache_write_input_tokens: z.int().gte(0).optional()
1904
1890
  });
1891
+ var zModelOutputEvent = z.object({
1892
+ id: zAgentEventId,
1893
+ org_id: zOrganizationId,
1894
+ project_id: zProjectId,
1895
+ agent_id: zAgentId,
1896
+ turn_id: zAgentTurnId,
1897
+ turn_sequence: zAgentSequence,
1898
+ is_opening_event: z.literal(false),
1899
+ sequence: zAgentSequence,
1900
+ event_kind: z.enum(["model_output"]),
1901
+ model_call_context_id: zModelCallContextId,
1902
+ stop_reason: zModelOutputStopReason,
1903
+ content_blocks: z.array(zModelOutputContentBlock),
1904
+ usage: zModelUsage.optional(),
1905
+ provider_metadata: z.record(z.string(), z.unknown()).optional(),
1906
+ created_at: zTimestamp
1907
+ });
1908
+ var zAgentEvent = z.discriminatedUnion("event_kind", [
1909
+ zAgentInputEvent.extend({ event_kind: z.literal("agent_input") }),
1910
+ zModelOutputEvent.extend({ event_kind: z.literal("model_output") }),
1911
+ zToolResultEvent.extend({ event_kind: z.literal("tool_result") }),
1912
+ zContextCheckpointEvent.extend({ event_kind: z.literal("context_checkpoint") })
1913
+ ]);
1905
1914
  var zModelOutputMessageStopDelta = z.object({
1906
1915
  kind: z.enum(["message_stop"]),
1907
1916
  stop: z.object({
@@ -2025,6 +2034,8 @@ var zAgentInteraction = z.object({
2025
2034
  org_id: zOrganizationId,
2026
2035
  project_id: zProjectId,
2027
2036
  agent_id: zAgentId,
2037
+ tool_call_id: zToolCallId,
2038
+ tool_name: z.string().optional(),
2028
2039
  interaction_kind: zAgentInteractionKind,
2029
2040
  state: zAgentInteractionState,
2030
2041
  request: zInteractionForm,
@@ -4034,12 +4045,13 @@ export {
4034
4045
  zRenameAgentProfileRequest,
4035
4046
  zAgentProfile,
4036
4047
  zListAgentProfilesResponse,
4037
- zAgentCronTriggerTarget,
4038
4048
  zAgentProfileCronTriggerTarget,
4039
- zCronTriggerTarget,
4040
4049
  zCronExpression,
4041
4050
  zCronTimezone,
4042
4051
  zCronMessageTemplate,
4052
+ zCronTriggerDeliveryMode,
4053
+ zAgentCronTriggerTarget,
4054
+ zCronTriggerTarget,
4043
4055
  zCronTriggerFailureReport,
4044
4056
  zCreateCronTriggerRequest,
4045
4057
  zUpdateCronTriggerRequest,
@@ -4097,10 +4109,8 @@ export {
4097
4109
  zToolResult,
4098
4110
  zSubmitToolCallResultResponse,
4099
4111
  zAgentInputEvent,
4100
- zModelOutputEvent,
4101
4112
  zToolResultEvent,
4102
4113
  zContextCheckpointEvent,
4103
- zAgentEvent,
4104
4114
  zModelOutputTextStreamBlock,
4105
4115
  zModelOutputThinkingStreamBlock,
4106
4116
  zModelOutputToolUseStreamBlock,
@@ -4111,6 +4121,8 @@ export {
4111
4121
  zModelOutputToolArgumentsDelta,
4112
4122
  zModelOutputBlockStopDelta,
4113
4123
  zModelUsage,
4124
+ zModelOutputEvent,
4125
+ zAgentEvent,
4114
4126
  zModelOutputMessageStopDelta,
4115
4127
  zModelOutputErrorDelta,
4116
4128
  zModelOutputStreamDelta,
@@ -4649,4 +4661,4 @@ export {
4649
4661
  zDownloadDaemonArtifactResponse,
4650
4662
  zod_gen_exports
4651
4663
  };
4652
- //# sourceMappingURL=chunk-P33FH4PQ.js.map
4664
+ //# sourceMappingURL=chunk-Q6U3G6AQ.js.map