@omnara/sdk 0.1.29 → 0.1.30

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.
package/dist/browser.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ApiError
3
- } from "./chunk-3DNQND7T.js";
3
+ } from "./chunk-4P7GOKD7.js";
4
4
  import "./chunk-NZCMY3BC.js";
5
- import "./chunk-XL7EYMHM.js";
5
+ import "./chunk-NKZVA6EJ.js";
6
6
 
7
7
  // src/browser.ts
8
8
  import * as z from "zod";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-NZCMY3BC.js";
4
4
  import {
5
5
  zError
6
- } from "./chunk-XL7EYMHM.js";
6
+ } from "./chunk-NKZVA6EJ.js";
7
7
 
8
8
  // src/json-body.ts
9
9
  import * as z from "zod";
@@ -56,4 +56,4 @@ export {
56
56
  zErrorResponse,
57
57
  ApiError
58
58
  };
59
- //# sourceMappingURL=chunk-3DNQND7T.js.map
59
+ //# sourceMappingURL=chunk-4P7GOKD7.js.map
@@ -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(1).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(1).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",
@@ -1492,15 +1678,22 @@ var zCreateSlackSetupRequest = z.object({
1492
1678
  return_to: z.string().optional()
1493
1679
  });
1494
1680
  var zResolveAgentConfigToolsRequest = z.object({
1495
- source: z.string().min(1),
1681
+ source: z.union([
1682
+ z.string().min(1),
1683
+ zAgentConfigToolsDefinition
1684
+ ]),
1496
1685
  source_format: z.enum(["yaml", "json"])
1497
1686
  });
1687
+ var zAgentConfigSourceInput = z.union([
1688
+ z.string().min(1),
1689
+ zAgentConfigDefinition
1690
+ ]);
1498
1691
  var zCreateAgentConfigRequest = z.object({
1499
- source: z.string().min(1),
1692
+ source: zAgentConfigSourceInput,
1500
1693
  source_format: z.enum(["yaml", "json"])
1501
1694
  });
1502
1695
  var zUpdateAgentConfigRequest = z.object({
1503
- source: z.string().min(1),
1696
+ source: zAgentConfigSourceInput,
1504
1697
  source_format: z.enum(["yaml", "json"]),
1505
1698
  expected_current_config_id: zAgentConfigId.optional()
1506
1699
  });
@@ -1766,6 +1959,9 @@ var zAgentConfigSummary = z.object({
1766
1959
  instruction_hash: z.string().optional(),
1767
1960
  created_at: zTimestamp
1768
1961
  });
1962
+ var zAgentConfigGeneratedSource = z.object({
1963
+ source: z.string()
1964
+ });
1769
1965
  var zCreateAgentProfileRequest = z.object({
1770
1966
  name: zResourceName,
1771
1967
  config: zAgentConfigId
@@ -2618,6 +2814,17 @@ var zArtifact = z.object({
2618
2814
  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
2815
  created_at: zTimestamp
2620
2816
  });
2817
+ var zCheckMachinePoolConnectionRequest = z.object({
2818
+ provider: z.string().min(1),
2819
+ provider_auth_secret_id: zSecretId,
2820
+ provider_config: z.record(z.string(), z.unknown()).optional(),
2821
+ default_machine_provider_options: z.record(z.string(), z.unknown()).optional()
2822
+ });
2823
+ var zMachinePoolConnectionCheckError = z.object({
2824
+ error: z.string(),
2825
+ code: z.enum(["unprocessable", "upstream_unavailable"]),
2826
+ details: z.string().optional()
2827
+ });
2621
2828
  var zCreateMachinePoolRequestBase = z.object({
2622
2829
  name: zResourceName,
2623
2830
  description: z.string().optional(),
@@ -2644,11 +2851,11 @@ var zCreateMachinePoolRequestBase = z.object({
2644
2851
  var zCreateMachinePoolRequest = zCreateMachinePoolRequestBase.and(z.union([
2645
2852
  z.object({
2646
2853
  provider: z.enum([
2647
- "unikraft",
2648
- "modal",
2854
+ "arker",
2649
2855
  "freestyle",
2856
+ "modal",
2650
2857
  "tenki",
2651
- "arker"
2858
+ "unikraft"
2652
2859
  ]),
2653
2860
  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
2861
  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 +2866,9 @@ var zCreateMachinePoolRequest = zCreateMachinePoolRequestBase.and(z.union([
2659
2866
  }),
2660
2867
  z.object({
2661
2868
  provider: z.enum([
2662
- "daytona",
2663
2869
  "boxd",
2664
- "createos"
2870
+ "createos",
2871
+ "daytona"
2665
2872
  ]),
2666
2873
  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
2874
  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 +3567,6 @@ var zIntegrationRuntimeFailure = z.object({
3360
3567
  message: z.string(),
3361
3568
  retry_at: zTimestamp
3362
3569
  });
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
3570
  var zIntegrationName = z.string().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,31}$/);
3382
3571
  var zCompiledGitCredentials = z.object({
3383
3572
  integration: zIntegrationName,
@@ -3530,16 +3719,27 @@ var zIntegrationSubscriptionAttachment = z.object({
3530
3719
  integration_id: zIntegrationId,
3531
3720
  conversation: zIntegrationConversation
3532
3721
  });
3533
- var zCreateAgentRequest = z.object({
3722
+ var zCreateAgentRequest = z.intersection(z.union([
3723
+ z.object({
3724
+ profile: zAgentProfileId
3725
+ }),
3726
+ z.object({
3727
+ config: zAgentConfigId
3728
+ }),
3729
+ z.object({
3730
+ config_source: zCreateAgentConfigRequest
3731
+ })
3732
+ ]), z.object({
3534
3733
  profile: zAgentProfileId.optional(),
3535
- config: zAgentConfigId,
3734
+ config: zAgentConfigId.optional(),
3735
+ config_source: zCreateAgentConfigRequest.optional(),
3536
3736
  name: zAgentName.optional(),
3537
3737
  message: z.string().optional(),
3538
- tools: z.record(z.string(), zConfigToolSource).optional(),
3738
+ tools: z.record(z.string(), zAgentConfigDefinitionTool).optional(),
3539
3739
  subscriptions: z.array(zIntegrationSubscriptionAttachment).max(100).optional(),
3540
- interaction_handlers: z.record(z.string(), zConfigIntegrationCapabilitySource).optional(),
3740
+ interaction_handlers: z.record(z.string(), zAgentConfigDefinitionInteractionHandler).optional(),
3541
3741
  initial_input: zAgentLaunchInitialInput.optional()
3542
- });
3742
+ }));
3543
3743
  var zCreateIntegrationSubscriptionRequest = z.object({
3544
3744
  agent_id: zAgentId,
3545
3745
  conversation: zIntegrationConversation
@@ -4140,6 +4340,15 @@ var zGetAgentConfigPath = z.object({
4140
4340
  agentConfigID: z.string().regex(/^acfg_[a-z2-7]{26}$/)
4141
4341
  });
4142
4342
  var zGetAgentConfigResponse = zAgentConfig;
4343
+ var zGetAgentConfigGeneratedSourcePath = z.object({
4344
+ orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
4345
+ projectID: z.string().regex(/^proj_[a-z2-7]{26}$/),
4346
+ agentConfigID: z.string().regex(/^acfg_[a-z2-7]{26}$/)
4347
+ });
4348
+ var zGetAgentConfigGeneratedSourceQuery = z.object({
4349
+ source_format: z.enum(["yaml", "json"]).optional().default("yaml")
4350
+ });
4351
+ var zGetAgentConfigGeneratedSourceResponse = zAgentConfigGeneratedSource;
4143
4352
  var zListAgentProfilesPath = z.object({
4144
4353
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
4145
4354
  projectID: z.string().regex(/^proj_[a-z2-7]{26}$/)
@@ -4728,6 +4937,11 @@ var zCreateMachinePoolPath = z.object({
4728
4937
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/)
4729
4938
  });
4730
4939
  var zCreateMachinePoolResponse = zMachinePool;
4940
+ var zCheckMachinePoolConnectionBody = zCheckMachinePoolConnectionRequest;
4941
+ var zCheckMachinePoolConnectionPath = z.object({
4942
+ orgID: z.string().regex(/^org_[a-z2-7]{26}$/)
4943
+ });
4944
+ var zCheckMachinePoolConnectionResponse = z.void();
4731
4945
  var zDeleteMachinePoolPath = z.object({
4732
4946
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
4733
4947
  poolID: z.string().regex(/^mpo_[a-z2-7]{26}$/)
@@ -4934,10 +5148,36 @@ var zListIntegrationDefinitionsResponse2 = zListIntegrationDefinitionsResponse;
4934
5148
 
4935
5149
  export {
4936
5150
  __export,
5151
+ zAgentConfigDefinitionEventWebhook,
5152
+ zAgentConfigDefinitionGitCredentials,
5153
+ zAgentConfigDefinitionInteractionHandler,
5154
+ zAgentConfigDefinitionInteractionHandlers,
5155
+ zAgentConfigDefinitionMcpAuth,
5156
+ zAgentConfigDefinitionSkills,
5157
+ zAgentConfigDefinitionSubagentInstruction,
5158
+ zAgentConfigDefinitionToolInputSchema,
5159
+ zAgentConfigDefinitionToolPermission,
5160
+ zAgentConfigDefinitionMcpTool,
5161
+ zAgentConfigDefinitionMcpServer,
5162
+ zAgentConfigDefinitionMcpServers,
5163
+ zAgentConfigDefinitionTool,
5164
+ zAgentConfigDefinitionTools,
5165
+ zEnvironmentVariableName,
5166
+ zResourceNameReference,
5167
+ zAgentConfigDefinitionMachineSource,
5168
+ zAgentConfigDefinitionMachineSources,
5169
+ zAgentConfigDefinitionModel,
5170
+ zAgentConfigDefinitionSubagentModel,
5171
+ zAgentConfigDefinitionSubagent,
5172
+ zAgentConfigDefinitionSubagents,
4937
5173
  zResourceName,
4938
5174
  zAgentName,
4939
5175
  zSkillName,
4940
5176
  zMemoryStoreName,
5177
+ zAgentConfigDefinitionMemoryStore,
5178
+ zAgentConfigDefinitionMemoryStores,
5179
+ zAgentConfigDefinition,
5180
+ zAgentConfigToolsDefinition,
4941
5181
  zResourceListSort,
4942
5182
  zCreatedResourceListSort,
4943
5183
  zAgentConfigErrorIssue,
@@ -5059,6 +5299,7 @@ export {
5059
5299
  zSlackSetupIcon,
5060
5300
  zCreateSlackSetupRequest,
5061
5301
  zResolveAgentConfigToolsRequest,
5302
+ zAgentConfigSourceInput,
5062
5303
  zCreateAgentConfigRequest,
5063
5304
  zUpdateAgentConfigRequest,
5064
5305
  zToolPermissionSelection,
@@ -5103,6 +5344,7 @@ export {
5103
5344
  zCompiledProfileSubagent,
5104
5345
  zCompiledSubagent,
5105
5346
  zAgentConfigSummary,
5347
+ zAgentConfigGeneratedSource,
5106
5348
  zCreateAgentProfileRequest,
5107
5349
  zUpdateAgentProfileRequest,
5108
5350
  zRenameAgentProfileRequest,
@@ -5256,6 +5498,8 @@ export {
5256
5498
  zUpdateOrgApiKeyRequest,
5257
5499
  zListOrgApiKeysResponse,
5258
5500
  zArtifact,
5501
+ zCheckMachinePoolConnectionRequest,
5502
+ zMachinePoolConnectionCheckError,
5259
5503
  zCreateMachinePoolRequestBase,
5260
5504
  zCreateMachinePoolRequest,
5261
5505
  zUpdateMachinePoolRequest,
@@ -5356,10 +5600,6 @@ export {
5356
5600
  zIntegrationSettings,
5357
5601
  zUpdateIntegrationRequest,
5358
5602
  zIntegrationRuntimeFailure,
5359
- zConfigAgentToolInputSchema,
5360
- zConfigIntegrationCapabilitySource,
5361
- zConfigToolPermissionSelection,
5362
- zConfigToolSource,
5363
5603
  zIntegrationName,
5364
5604
  zCompiledGitCredentials,
5365
5605
  zCompiledAgentConfig,
@@ -5601,6 +5841,9 @@ export {
5601
5841
  zListMcpServerToolsResponse,
5602
5842
  zGetAgentConfigPath,
5603
5843
  zGetAgentConfigResponse,
5844
+ zGetAgentConfigGeneratedSourcePath,
5845
+ zGetAgentConfigGeneratedSourceQuery,
5846
+ zGetAgentConfigGeneratedSourceResponse,
5604
5847
  zListAgentProfilesPath,
5605
5848
  zListAgentProfilesQuery,
5606
5849
  zListAgentProfilesResponse2,
@@ -5800,6 +6043,9 @@ export {
5800
6043
  zCreateMachinePoolBody,
5801
6044
  zCreateMachinePoolPath,
5802
6045
  zCreateMachinePoolResponse,
6046
+ zCheckMachinePoolConnectionBody,
6047
+ zCheckMachinePoolConnectionPath,
6048
+ zCheckMachinePoolConnectionResponse,
5803
6049
  zDeleteMachinePoolPath,
5804
6050
  zDeleteMachinePoolResponse,
5805
6051
  zGetMachinePoolPath,
@@ -5880,4 +6126,4 @@ export {
5880
6126
  zListIntegrationDefinitionsResponse2,
5881
6127
  zod_gen_exports
5882
6128
  };
5883
- //# sourceMappingURL=chunk-XL7EYMHM.js.map
6129
+ //# sourceMappingURL=chunk-NKZVA6EJ.js.map