@omnara/sdk 0.1.29 → 0.1.31

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.
@@ -15,10 +15,36 @@ __export(zod_gen_exports, {
15
15
  zAgent: () => zAgent,
16
16
  zAgentActivity: () => zAgentActivity,
17
17
  zAgentConfig: () => zAgentConfig,
18
+ zAgentConfigDefinition: () => zAgentConfigDefinition,
19
+ zAgentConfigDefinitionEventWebhook: () => zAgentConfigDefinitionEventWebhook,
20
+ zAgentConfigDefinitionGitCredentials: () => zAgentConfigDefinitionGitCredentials,
21
+ zAgentConfigDefinitionInteractionHandler: () => zAgentConfigDefinitionInteractionHandler,
22
+ zAgentConfigDefinitionInteractionHandlers: () => zAgentConfigDefinitionInteractionHandlers,
23
+ zAgentConfigDefinitionMachineSource: () => zAgentConfigDefinitionMachineSource,
24
+ zAgentConfigDefinitionMachineSources: () => zAgentConfigDefinitionMachineSources,
25
+ zAgentConfigDefinitionMcpAuth: () => zAgentConfigDefinitionMcpAuth,
26
+ zAgentConfigDefinitionMcpServer: () => zAgentConfigDefinitionMcpServer,
27
+ zAgentConfigDefinitionMcpServers: () => zAgentConfigDefinitionMcpServers,
28
+ zAgentConfigDefinitionMcpTool: () => zAgentConfigDefinitionMcpTool,
29
+ zAgentConfigDefinitionMemoryStore: () => zAgentConfigDefinitionMemoryStore,
30
+ zAgentConfigDefinitionMemoryStores: () => zAgentConfigDefinitionMemoryStores,
31
+ zAgentConfigDefinitionModel: () => zAgentConfigDefinitionModel,
32
+ zAgentConfigDefinitionSkills: () => zAgentConfigDefinitionSkills,
33
+ zAgentConfigDefinitionSubagent: () => zAgentConfigDefinitionSubagent,
34
+ zAgentConfigDefinitionSubagentInstruction: () => zAgentConfigDefinitionSubagentInstruction,
35
+ zAgentConfigDefinitionSubagentModel: () => zAgentConfigDefinitionSubagentModel,
36
+ zAgentConfigDefinitionSubagents: () => zAgentConfigDefinitionSubagents,
37
+ zAgentConfigDefinitionTool: () => zAgentConfigDefinitionTool,
38
+ zAgentConfigDefinitionToolInputSchema: () => zAgentConfigDefinitionToolInputSchema,
39
+ zAgentConfigDefinitionToolPermission: () => zAgentConfigDefinitionToolPermission,
40
+ zAgentConfigDefinitionTools: () => zAgentConfigDefinitionTools,
18
41
  zAgentConfigErrorIssue: () => zAgentConfigErrorIssue,
42
+ zAgentConfigGeneratedSource: () => zAgentConfigGeneratedSource,
19
43
  zAgentConfigId: () => zAgentConfigId,
20
44
  zAgentConfigModel: () => zAgentConfigModel,
45
+ zAgentConfigSourceInput: () => zAgentConfigSourceInput,
21
46
  zAgentConfigSummary: () => zAgentConfigSummary,
47
+ zAgentConfigToolsDefinition: () => zAgentConfigToolsDefinition,
22
48
  zAgentControlType: () => zAgentControlType,
23
49
  zAgentCount: () => zAgentCount,
24
50
  zAgentCronTriggerTarget: () => zAgentCronTriggerTarget,
@@ -73,6 +99,10 @@ __export(zod_gen_exports, {
73
99
  zCancelAgentResponse2: () => zCancelAgentResponse2,
74
100
  zCancelQueuedBacklogInputPath: () => zCancelQueuedBacklogInputPath,
75
101
  zCancelQueuedBacklogInputResponse: () => zCancelQueuedBacklogInputResponse,
102
+ zCheckMachinePoolConnectionBody: () => zCheckMachinePoolConnectionBody,
103
+ zCheckMachinePoolConnectionPath: () => zCheckMachinePoolConnectionPath,
104
+ zCheckMachinePoolConnectionRequest: () => zCheckMachinePoolConnectionRequest,
105
+ zCheckMachinePoolConnectionResponse: () => zCheckMachinePoolConnectionResponse,
76
106
  zClientErrorCode: () => zClientErrorCode,
77
107
  zCompiledAgentConfig: () => zCompiledAgentConfig,
78
108
  zCompiledAgentModel: () => zCompiledAgentModel,
@@ -94,10 +124,6 @@ __export(zod_gen_exports, {
94
124
  zCompiledSubagent: () => zCompiledSubagent,
95
125
  zCompiledSubagentModel: () => zCompiledSubagentModel,
96
126
  zCompiledTool: () => zCompiledTool,
97
- zConfigAgentToolInputSchema: () => zConfigAgentToolInputSchema,
98
- zConfigIntegrationCapabilitySource: () => zConfigIntegrationCapabilitySource,
99
- zConfigToolPermissionSelection: () => zConfigToolPermissionSelection,
100
- zConfigToolSource: () => zConfigToolSource,
101
127
  zConfigureIntegrationBody: () => zConfigureIntegrationBody,
102
128
  zConfigureIntegrationPath: () => zConfigureIntegrationPath,
103
129
  zConfigureIntegrationRequest: () => zConfigureIntegrationRequest,
@@ -322,6 +348,7 @@ __export(zod_gen_exports, {
322
348
  zDownloadMemoryFileResponse: () => zDownloadMemoryFileResponse,
323
349
  zEndMachineDaemonRuntimePath: () => zEndMachineDaemonRuntimePath,
324
350
  zEndMachineDaemonRuntimeResponse: () => zEndMachineDaemonRuntimeResponse,
351
+ zEnvironmentVariableName: () => zEnvironmentVariableName,
325
352
  zError: () => zError,
326
353
  zErrorCode: () => zErrorCode,
327
354
  zErrorContentBlock: () => zErrorContentBlock,
@@ -335,6 +362,9 @@ __export(zod_gen_exports, {
335
362
  zGenericSecretMaterial: () => zGenericSecretMaterial,
336
363
  zGetActorPath: () => zGetActorPath,
337
364
  zGetActorResponse: () => zGetActorResponse,
365
+ zGetAgentConfigGeneratedSourcePath: () => zGetAgentConfigGeneratedSourcePath,
366
+ zGetAgentConfigGeneratedSourceQuery: () => zGetAgentConfigGeneratedSourceQuery,
367
+ zGetAgentConfigGeneratedSourceResponse: () => zGetAgentConfigGeneratedSourceResponse,
338
368
  zGetAgentConfigPath: () => zGetAgentConfigPath,
339
369
  zGetAgentConfigResponse: () => zGetAgentConfigResponse,
340
370
  zGetAgentPath: () => zGetAgentPath,
@@ -610,6 +640,7 @@ __export(zod_gen_exports, {
610
640
  zMachineLifecycleState: () => zMachineLifecycleState,
611
641
  zMachineMetadata: () => zMachineMetadata,
612
642
  zMachinePool: () => zMachinePool,
643
+ zMachinePoolConnectionCheckError: () => zMachinePoolConnectionCheckError,
613
644
  zMachinePoolId: () => zMachinePoolId,
614
645
  zMachinePoolSummary: () => zMachinePoolSummary,
615
646
  zMachinePoolUsage: () => zMachinePoolUsage,
@@ -775,6 +806,7 @@ __export(zod_gen_exports, {
775
806
  zResourceListSort: () => zResourceListSort,
776
807
  zResourceName: () => zResourceName,
777
808
  zResourceNameFilter: () => zResourceNameFilter,
809
+ zResourceNameReference: () => zResourceNameReference,
778
810
  zRevokeMachineDaemonTokenPath: () => zRevokeMachineDaemonTokenPath,
779
811
  zRevokeMachineDaemonTokenResponse: () => zRevokeMachineDaemonTokenResponse,
780
812
  zRevokeOrgApiKeyPath: () => zRevokeOrgApiKeyPath,
@@ -953,10 +985,164 @@ __export(zod_gen_exports, {
953
985
  zWriteMemoryFileResponse: () => zWriteMemoryFileResponse
954
986
  });
955
987
  import * as z from "zod";
988
+ var zAgentConfigDefinitionEventWebhook = z.object({
989
+ events: z.array(z.enum([
990
+ "agent_input",
991
+ "model_output",
992
+ "tool_result",
993
+ "context_checkpoint",
994
+ "tool_call_update"
995
+ ])).min(1),
996
+ signing_secret_id: z.string().min(1).optional(),
997
+ url: z.string().min(1)
998
+ });
999
+ var zAgentConfigDefinitionGitCredentials = z.object({
1000
+ integration: z.string().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,31}$/)
1001
+ });
1002
+ var zAgentConfigDefinitionInteractionHandler = z.record(z.string(), z.never());
1003
+ var zAgentConfigDefinitionInteractionHandlers = z.record(z.string(), zAgentConfigDefinitionInteractionHandler).nullable();
1004
+ var zAgentConfigDefinitionMcpAuth = z.object({
1005
+ region: z.string().min(1).optional(),
1006
+ secret_id: z.string().min(1).regex(/^sec_[a-z2-7]{26}$/),
1007
+ service: z.string().min(1).optional(),
1008
+ type: z.enum([
1009
+ "bearer",
1010
+ "oauth",
1011
+ "sigv4"
1012
+ ])
1013
+ });
1014
+ var zAgentConfigDefinitionSkills = z.array(z.string().regex(/^skl_[a-z2-7]{26}$/)).nullable();
1015
+ var zAgentConfigDefinitionSubagentInstruction = z.object({
1016
+ append: z.string().optional()
1017
+ });
1018
+ var zAgentConfigDefinitionToolInputSchema = z.looseObject({
1019
+ properties: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
1020
+ required: z.array(z.string().min(1)).optional(),
1021
+ type: z.literal("object")
1022
+ });
1023
+ var zAgentConfigDefinitionToolPermission = z.object({
1024
+ mode: z.string().min(1).regex(/\S/),
1025
+ parameters: z.record(z.string(), z.unknown()).optional()
1026
+ });
1027
+ var zAgentConfigDefinitionMcpTool = z.object({
1028
+ deferred: z.boolean().nullish(),
1029
+ enabled: z.boolean().nullish(),
1030
+ permission: zAgentConfigDefinitionToolPermission.optional()
1031
+ });
1032
+ var zAgentConfigDefinitionMcpServer = z.object({
1033
+ auth: zAgentConfigDefinitionMcpAuth.optional(),
1034
+ default_enabled: z.boolean().nullish(),
1035
+ deferred: z.boolean().optional(),
1036
+ permission: zAgentConfigDefinitionToolPermission.optional(),
1037
+ tools: z.record(z.string(), zAgentConfigDefinitionMcpTool).optional(),
1038
+ url: z.string().min(1)
1039
+ });
1040
+ var zAgentConfigDefinitionMcpServers = z.record(z.string(), zAgentConfigDefinitionMcpServer).nullable();
1041
+ var zAgentConfigDefinitionTool = z.object({
1042
+ deferred: z.boolean().optional(),
1043
+ description: z.string().min(1).optional(),
1044
+ enabled: z.boolean().nullish(),
1045
+ input_schema: zAgentConfigDefinitionToolInputSchema.optional(),
1046
+ permission: zAgentConfigDefinitionToolPermission.optional(),
1047
+ type: z.enum(["built_in", "custom"]).optional()
1048
+ });
1049
+ var zAgentConfigDefinitionTools = z.record(z.string(), zAgentConfigDefinitionTool).nullable();
1050
+ var zEnvironmentVariableName = z.string().min(1).regex(/^[^=\x00]+$/);
1051
+ var zResourceNameReference = z.string().min(1).max(64).regex(/^\S(?:.*\S)?$/);
1052
+ var zAgentConfigDefinitionMachineSource = z.intersection(z.union([
1053
+ z.record(z.string(), z.unknown()),
1054
+ z.record(z.string(), z.unknown())
1055
+ ]), z.object({
1056
+ cwd: z.string().max(4096).optional(),
1057
+ delete_after_idle_minutes: z.union([
1058
+ z.literal(0),
1059
+ z.int().gte(5).lte(2147483647)
1060
+ ]).optional(),
1061
+ description: z.string().max(4096).optional(),
1062
+ env_overlay: z.record(z.string(), z.string().nullable()).nullish(),
1063
+ initial_num_machines: z.int().gte(0).optional(),
1064
+ machine_cpu: z.int().gte(1).lte(2147483647).optional(),
1065
+ machine_memory_mb: z.int().gte(1).lte(2147483647).optional(),
1066
+ machine_name: zResourceNameReference.optional(),
1067
+ machine_pool_name: zResourceNameReference.optional(),
1068
+ machine_provider_options_overlay: z.record(z.string(), z.unknown()).nullish(),
1069
+ max_machines: z.int().gte(0).optional(),
1070
+ secret_env_overlay: z.record(z.string(), z.string().regex(/^sec_[a-z2-7]{26}$/).nullable()).nullish()
1071
+ }));
1072
+ var zAgentConfigDefinitionMachineSources = z.array(zAgentConfigDefinitionMachineSource).nullable();
1073
+ var zAgentConfigDefinitionModel = z.object({
1074
+ cache_retention: z.enum([
1075
+ "none",
1076
+ "short",
1077
+ "long"
1078
+ ]).optional(),
1079
+ context_window_tokens: z.int().gte(2).lte(2147483647).optional(),
1080
+ default_max_output_tokens: z.int().gte(1).optional(),
1081
+ name: zResourceNameReference,
1082
+ provider_config: zResourceNameReference,
1083
+ reasoning: z.object({
1084
+ effort: z.string().min(1).regex(/\S/)
1085
+ }).optional()
1086
+ });
1087
+ var zAgentConfigDefinitionSubagentModel = z.object({
1088
+ cache_retention: z.enum([
1089
+ "none",
1090
+ "short",
1091
+ "long"
1092
+ ]).optional(),
1093
+ context_window_tokens: z.int().gte(2).lte(2147483647).optional(),
1094
+ default_max_output_tokens: z.int().gte(1).optional(),
1095
+ name: zResourceNameReference.optional(),
1096
+ provider_config: zResourceNameReference.optional(),
1097
+ reasoning: z.object({
1098
+ effort: z.string().min(1).regex(/\S/)
1099
+ }).optional()
1100
+ });
1101
+ var zAgentConfigDefinitionSubagent = z.object({
1102
+ archive_after_idle_minutes: z.int().gte(1).lte(2147483647).optional(),
1103
+ description: z.string().optional(),
1104
+ instruction: zAgentConfigDefinitionSubagentInstruction.optional(),
1105
+ max_instances: z.int().gte(1).lte(2147483647).optional(),
1106
+ model: zAgentConfigDefinitionSubagentModel.optional(),
1107
+ profile: zResourceNameReference.optional(),
1108
+ type: z.enum(["profile", "self"])
1109
+ });
1110
+ var zAgentConfigDefinitionSubagents = z.record(z.string(), zAgentConfigDefinitionSubagent).nullable();
956
1111
  var zResourceName = z.string().min(1).refine((value) => Array.from(value).length <= 64, { message: "Resource name cannot exceed 64 Unicode characters" }).transform((value) => value.normalize("NFC")).refine((value) => Array.from(value).length <= 64, { message: "Resource name cannot exceed 64 Unicode characters" }).refine((value) => !/^\p{White_Space}|\p{White_Space}$/u.test(value), { message: "Resource name must not start or end with whitespace" }).refine((value) => !/[\p{Cc}\p{Cf}\p{Cs}\p{Default_Ignorable_Code_Point}⠀]/u.test(value), { message: "Resource name contains an unsupported invisible, control, or format character" }).refine((value) => !value.includes("\uFFFD"), { message: "Resource name contains the Unicode replacement character" }).refine((value) => !Array.from(value).some((character) => character !== " " && /\p{White_Space}/u.test(character)), { message: "Resource name may only use ordinary spaces" });
957
1112
  var zAgentName = z.string().refine((value) => Array.from(value).length <= 64, { message: "Resource name cannot exceed 64 Unicode characters" }).transform((value) => value.normalize("NFC")).refine((value) => Array.from(value).length <= 64, { message: "Resource name cannot exceed 64 Unicode characters" }).refine((value) => !/^\p{White_Space}|\p{White_Space}$/u.test(value), { message: "Resource name must not start or end with whitespace" }).refine((value) => !/[\p{Cc}\p{Cf}\p{Cs}\p{Default_Ignorable_Code_Point}⠀]/u.test(value), { message: "Resource name contains an unsupported invisible, control, or format character" }).refine((value) => !value.includes("\uFFFD"), { message: "Resource name contains the Unicode replacement character" }).refine((value) => !Array.from(value).some((character) => character !== " " && /\p{White_Space}/u.test(character)), { message: "Resource name may only use ordinary spaces" });
958
1113
  var zSkillName = z.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
959
1114
  var zMemoryStoreName = z.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
1115
+ var zAgentConfigDefinitionMemoryStore = z.object({
1116
+ name: zMemoryStoreName,
1117
+ access: z.enum(["read", "read_write"])
1118
+ });
1119
+ var zAgentConfigDefinitionMemoryStores = z.array(zAgentConfigDefinitionMemoryStore).nullable();
1120
+ var zAgentConfigDefinition = z.object({
1121
+ event_webhook: zAgentConfigDefinitionEventWebhook.optional(),
1122
+ git_credentials: zAgentConfigDefinitionGitCredentials.optional(),
1123
+ instruction: z.string().min(1).regex(/\S/),
1124
+ interaction_handlers: zAgentConfigDefinitionInteractionHandlers.optional(),
1125
+ machine_sources: zAgentConfigDefinitionMachineSources.optional(),
1126
+ max_depth: z.int().gte(1).lte(8).optional(),
1127
+ max_subagents: z.int().gte(1).lte(2147483647).optional(),
1128
+ mcp: zAgentConfigDefinitionMcpServers.optional(),
1129
+ memory_stores: zAgentConfigDefinitionMemoryStores.optional(),
1130
+ model: zAgentConfigDefinitionModel,
1131
+ skills: zAgentConfigDefinitionSkills.optional(),
1132
+ subagents: zAgentConfigDefinitionSubagents.optional(),
1133
+ tools: zAgentConfigDefinitionTools.optional(),
1134
+ version: z.enum(["v1"]).optional()
1135
+ });
1136
+ var zAgentConfigToolsDefinition = z.looseObject({
1137
+ git_credentials: zAgentConfigDefinitionGitCredentials.optional(),
1138
+ interaction_handlers: zAgentConfigDefinitionInteractionHandlers.optional(),
1139
+ machine_sources: zAgentConfigDefinitionMachineSources.optional(),
1140
+ mcp: zAgentConfigDefinitionMcpServers.optional(),
1141
+ memory_stores: zAgentConfigDefinitionMemoryStores.optional(),
1142
+ skills: zAgentConfigDefinitionSkills.optional(),
1143
+ subagents: zAgentConfigDefinitionSubagents.optional(),
1144
+ tools: zAgentConfigDefinitionTools.optional()
1145
+ });
960
1146
  var zResourceListSort = z.enum([
961
1147
  "name",
962
1148
  "-name",
@@ -1002,6 +1188,7 @@ var zErrorCode = z.enum([
1002
1188
  "internal_error",
1003
1189
  "service_unavailable",
1004
1190
  "idempotency_key_conflict",
1191
+ "agent_backlog_full",
1005
1192
  "state_transition_conflict",
1006
1193
  "managed_work_admission_denied",
1007
1194
  "pending_work",
@@ -1127,7 +1314,7 @@ var zCreateProjectModelGrantRequest = z.object({
1127
1314
  output_modalities: z.array(z.string()).optional()
1128
1315
  });
1129
1316
  var zUpdateProjectModelGrantRequest = z.object({
1130
- context_window_tokens: z.int().gte(1).nullish(),
1317
+ context_window_tokens: z.int().gte(2).lte(2147483647).nullish(),
1131
1318
  max_output_tokens: z.int().gte(1).nullish(),
1132
1319
  default_max_output_tokens: z.int().gte(1).nullish(),
1133
1320
  default_cache_retention: zModelCacheRetention.nullish(),
@@ -1492,15 +1679,22 @@ var zCreateSlackSetupRequest = z.object({
1492
1679
  return_to: z.string().optional()
1493
1680
  });
1494
1681
  var zResolveAgentConfigToolsRequest = z.object({
1495
- source: z.string().min(1),
1682
+ source: z.union([
1683
+ z.string().min(1),
1684
+ zAgentConfigToolsDefinition
1685
+ ]),
1496
1686
  source_format: z.enum(["yaml", "json"])
1497
1687
  });
1688
+ var zAgentConfigSourceInput = z.union([
1689
+ z.string().min(1),
1690
+ zAgentConfigDefinition
1691
+ ]);
1498
1692
  var zCreateAgentConfigRequest = z.object({
1499
- source: z.string().min(1),
1693
+ source: zAgentConfigSourceInput,
1500
1694
  source_format: z.enum(["yaml", "json"])
1501
1695
  });
1502
1696
  var zUpdateAgentConfigRequest = z.object({
1503
- source: z.string().min(1),
1697
+ source: zAgentConfigSourceInput,
1504
1698
  source_format: z.enum(["yaml", "json"]),
1505
1699
  expected_current_config_id: zAgentConfigId.optional()
1506
1700
  });
@@ -1766,6 +1960,9 @@ var zAgentConfigSummary = z.object({
1766
1960
  instruction_hash: z.string().optional(),
1767
1961
  created_at: zTimestamp
1768
1962
  });
1963
+ var zAgentConfigGeneratedSource = z.object({
1964
+ source: z.string()
1965
+ });
1769
1966
  var zCreateAgentProfileRequest = z.object({
1770
1967
  name: zResourceName,
1771
1968
  config: zAgentConfigId
@@ -2618,6 +2815,17 @@ var zArtifact = z.object({
2618
2815
  size_bytes: z.coerce.bigint().min(BigInt("-9223372036854775808"), { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).optional(),
2619
2816
  created_at: zTimestamp
2620
2817
  });
2818
+ var zCheckMachinePoolConnectionRequest = z.object({
2819
+ provider: z.string().min(1),
2820
+ provider_auth_secret_id: zSecretId,
2821
+ provider_config: z.record(z.string(), z.unknown()).optional(),
2822
+ default_machine_provider_options: z.record(z.string(), z.unknown()).optional()
2823
+ });
2824
+ var zMachinePoolConnectionCheckError = z.object({
2825
+ error: z.string(),
2826
+ code: z.enum(["unprocessable", "upstream_unavailable"]),
2827
+ details: z.string().optional()
2828
+ });
2621
2829
  var zCreateMachinePoolRequestBase = z.object({
2622
2830
  name: zResourceName,
2623
2831
  description: z.string().optional(),
@@ -2644,11 +2852,11 @@ var zCreateMachinePoolRequestBase = z.object({
2644
2852
  var zCreateMachinePoolRequest = zCreateMachinePoolRequestBase.and(z.union([
2645
2853
  z.object({
2646
2854
  provider: z.enum([
2647
- "unikraft",
2648
- "modal",
2855
+ "arker",
2649
2856
  "freestyle",
2857
+ "modal",
2650
2858
  "tenki",
2651
- "arker"
2859
+ "unikraft"
2652
2860
  ]),
2653
2861
  default_machine_cpu: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2654
2862
  default_machine_memory_mb: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -2659,9 +2867,9 @@ var zCreateMachinePoolRequest = zCreateMachinePoolRequestBase.and(z.union([
2659
2867
  }),
2660
2868
  z.object({
2661
2869
  provider: z.enum([
2662
- "daytona",
2663
2870
  "boxd",
2664
- "createos"
2871
+ "createos",
2872
+ "daytona"
2665
2873
  ]),
2666
2874
  max_total_cpu: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2667
2875
  max_total_memory_mb: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -3360,24 +3568,6 @@ var zIntegrationRuntimeFailure = z.object({
3360
3568
  message: z.string(),
3361
3569
  retry_at: zTimestamp
3362
3570
  });
3363
- var zConfigAgentToolInputSchema = z.object({
3364
- properties: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
3365
- required: z.array(z.string().min(1)).optional(),
3366
- type: z.literal("object")
3367
- });
3368
- var zConfigIntegrationCapabilitySource = z.record(z.string(), z.never());
3369
- var zConfigToolPermissionSelection = z.object({
3370
- mode: z.string().min(1).regex(/\S/),
3371
- parameters: z.record(z.string(), z.unknown()).optional()
3372
- });
3373
- var zConfigToolSource = z.object({
3374
- deferred: z.boolean().optional(),
3375
- description: z.string().min(1).optional(),
3376
- enabled: z.boolean().nullish(),
3377
- input_schema: zConfigAgentToolInputSchema.optional(),
3378
- permission: zConfigToolPermissionSelection.optional(),
3379
- type: z.enum(["built_in", "custom"]).optional()
3380
- });
3381
3571
  var zIntegrationName = z.string().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,31}$/);
3382
3572
  var zCompiledGitCredentials = z.object({
3383
3573
  integration: zIntegrationName,
@@ -3530,16 +3720,27 @@ var zIntegrationSubscriptionAttachment = z.object({
3530
3720
  integration_id: zIntegrationId,
3531
3721
  conversation: zIntegrationConversation
3532
3722
  });
3533
- var zCreateAgentRequest = z.object({
3723
+ var zCreateAgentRequest = z.intersection(z.union([
3724
+ z.object({
3725
+ profile: zAgentProfileId
3726
+ }),
3727
+ z.object({
3728
+ config: zAgentConfigId
3729
+ }),
3730
+ z.object({
3731
+ config_source: zCreateAgentConfigRequest
3732
+ })
3733
+ ]), z.object({
3534
3734
  profile: zAgentProfileId.optional(),
3535
- config: zAgentConfigId,
3735
+ config: zAgentConfigId.optional(),
3736
+ config_source: zCreateAgentConfigRequest.optional(),
3536
3737
  name: zAgentName.optional(),
3537
3738
  message: z.string().optional(),
3538
- tools: z.record(z.string(), zConfigToolSource).optional(),
3739
+ tools: z.record(z.string(), zAgentConfigDefinitionTool).optional(),
3539
3740
  subscriptions: z.array(zIntegrationSubscriptionAttachment).max(100).optional(),
3540
- interaction_handlers: z.record(z.string(), zConfigIntegrationCapabilitySource).optional(),
3741
+ interaction_handlers: z.record(z.string(), zAgentConfigDefinitionInteractionHandler).optional(),
3541
3742
  initial_input: zAgentLaunchInitialInput.optional()
3542
- });
3743
+ }));
3543
3744
  var zCreateIntegrationSubscriptionRequest = z.object({
3544
3745
  agent_id: zAgentId,
3545
3746
  conversation: zIntegrationConversation
@@ -4140,6 +4341,15 @@ var zGetAgentConfigPath = z.object({
4140
4341
  agentConfigID: z.string().regex(/^acfg_[a-z2-7]{26}$/)
4141
4342
  });
4142
4343
  var zGetAgentConfigResponse = zAgentConfig;
4344
+ var zGetAgentConfigGeneratedSourcePath = z.object({
4345
+ orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
4346
+ projectID: z.string().regex(/^proj_[a-z2-7]{26}$/),
4347
+ agentConfigID: z.string().regex(/^acfg_[a-z2-7]{26}$/)
4348
+ });
4349
+ var zGetAgentConfigGeneratedSourceQuery = z.object({
4350
+ source_format: z.enum(["yaml", "json"]).optional().default("yaml")
4351
+ });
4352
+ var zGetAgentConfigGeneratedSourceResponse = zAgentConfigGeneratedSource;
4143
4353
  var zListAgentProfilesPath = z.object({
4144
4354
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
4145
4355
  projectID: z.string().regex(/^proj_[a-z2-7]{26}$/)
@@ -4728,6 +4938,11 @@ var zCreateMachinePoolPath = z.object({
4728
4938
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/)
4729
4939
  });
4730
4940
  var zCreateMachinePoolResponse = zMachinePool;
4941
+ var zCheckMachinePoolConnectionBody = zCheckMachinePoolConnectionRequest;
4942
+ var zCheckMachinePoolConnectionPath = z.object({
4943
+ orgID: z.string().regex(/^org_[a-z2-7]{26}$/)
4944
+ });
4945
+ var zCheckMachinePoolConnectionResponse = z.void();
4731
4946
  var zDeleteMachinePoolPath = z.object({
4732
4947
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
4733
4948
  poolID: z.string().regex(/^mpo_[a-z2-7]{26}$/)
@@ -4934,10 +5149,36 @@ var zListIntegrationDefinitionsResponse2 = zListIntegrationDefinitionsResponse;
4934
5149
 
4935
5150
  export {
4936
5151
  __export,
5152
+ zAgentConfigDefinitionEventWebhook,
5153
+ zAgentConfigDefinitionGitCredentials,
5154
+ zAgentConfigDefinitionInteractionHandler,
5155
+ zAgentConfigDefinitionInteractionHandlers,
5156
+ zAgentConfigDefinitionMcpAuth,
5157
+ zAgentConfigDefinitionSkills,
5158
+ zAgentConfigDefinitionSubagentInstruction,
5159
+ zAgentConfigDefinitionToolInputSchema,
5160
+ zAgentConfigDefinitionToolPermission,
5161
+ zAgentConfigDefinitionMcpTool,
5162
+ zAgentConfigDefinitionMcpServer,
5163
+ zAgentConfigDefinitionMcpServers,
5164
+ zAgentConfigDefinitionTool,
5165
+ zAgentConfigDefinitionTools,
5166
+ zEnvironmentVariableName,
5167
+ zResourceNameReference,
5168
+ zAgentConfigDefinitionMachineSource,
5169
+ zAgentConfigDefinitionMachineSources,
5170
+ zAgentConfigDefinitionModel,
5171
+ zAgentConfigDefinitionSubagentModel,
5172
+ zAgentConfigDefinitionSubagent,
5173
+ zAgentConfigDefinitionSubagents,
4937
5174
  zResourceName,
4938
5175
  zAgentName,
4939
5176
  zSkillName,
4940
5177
  zMemoryStoreName,
5178
+ zAgentConfigDefinitionMemoryStore,
5179
+ zAgentConfigDefinitionMemoryStores,
5180
+ zAgentConfigDefinition,
5181
+ zAgentConfigToolsDefinition,
4941
5182
  zResourceListSort,
4942
5183
  zCreatedResourceListSort,
4943
5184
  zAgentConfigErrorIssue,
@@ -5059,6 +5300,7 @@ export {
5059
5300
  zSlackSetupIcon,
5060
5301
  zCreateSlackSetupRequest,
5061
5302
  zResolveAgentConfigToolsRequest,
5303
+ zAgentConfigSourceInput,
5062
5304
  zCreateAgentConfigRequest,
5063
5305
  zUpdateAgentConfigRequest,
5064
5306
  zToolPermissionSelection,
@@ -5103,6 +5345,7 @@ export {
5103
5345
  zCompiledProfileSubagent,
5104
5346
  zCompiledSubagent,
5105
5347
  zAgentConfigSummary,
5348
+ zAgentConfigGeneratedSource,
5106
5349
  zCreateAgentProfileRequest,
5107
5350
  zUpdateAgentProfileRequest,
5108
5351
  zRenameAgentProfileRequest,
@@ -5256,6 +5499,8 @@ export {
5256
5499
  zUpdateOrgApiKeyRequest,
5257
5500
  zListOrgApiKeysResponse,
5258
5501
  zArtifact,
5502
+ zCheckMachinePoolConnectionRequest,
5503
+ zMachinePoolConnectionCheckError,
5259
5504
  zCreateMachinePoolRequestBase,
5260
5505
  zCreateMachinePoolRequest,
5261
5506
  zUpdateMachinePoolRequest,
@@ -5356,10 +5601,6 @@ export {
5356
5601
  zIntegrationSettings,
5357
5602
  zUpdateIntegrationRequest,
5358
5603
  zIntegrationRuntimeFailure,
5359
- zConfigAgentToolInputSchema,
5360
- zConfigIntegrationCapabilitySource,
5361
- zConfigToolPermissionSelection,
5362
- zConfigToolSource,
5363
5604
  zIntegrationName,
5364
5605
  zCompiledGitCredentials,
5365
5606
  zCompiledAgentConfig,
@@ -5601,6 +5842,9 @@ export {
5601
5842
  zListMcpServerToolsResponse,
5602
5843
  zGetAgentConfigPath,
5603
5844
  zGetAgentConfigResponse,
5845
+ zGetAgentConfigGeneratedSourcePath,
5846
+ zGetAgentConfigGeneratedSourceQuery,
5847
+ zGetAgentConfigGeneratedSourceResponse,
5604
5848
  zListAgentProfilesPath,
5605
5849
  zListAgentProfilesQuery,
5606
5850
  zListAgentProfilesResponse2,
@@ -5800,6 +6044,9 @@ export {
5800
6044
  zCreateMachinePoolBody,
5801
6045
  zCreateMachinePoolPath,
5802
6046
  zCreateMachinePoolResponse,
6047
+ zCheckMachinePoolConnectionBody,
6048
+ zCheckMachinePoolConnectionPath,
6049
+ zCheckMachinePoolConnectionResponse,
5803
6050
  zDeleteMachinePoolPath,
5804
6051
  zDeleteMachinePoolResponse,
5805
6052
  zGetMachinePoolPath,
@@ -5880,4 +6127,4 @@ export {
5880
6127
  zListIntegrationDefinitionsResponse2,
5881
6128
  zod_gen_exports
5882
6129
  };
5883
- //# sourceMappingURL=chunk-XL7EYMHM.js.map
6130
+ //# sourceMappingURL=chunk-TVH7NBS2.js.map