@omnara/sdk 0.1.28 → 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 +2 -2
- package/dist/{chunk-EPMF2Z2A.js → chunk-4P7GOKD7.js} +2 -2
- package/dist/{chunk-3TXQXV3F.js → chunk-NKZVA6EJ.js} +304 -40
- package/dist/chunk-NKZVA6EJ.js.map +1 -0
- package/dist/{chunk-M4ZH2TZ7.js → chunk-QWRP7XQP.js} +61 -2
- package/dist/chunk-QWRP7XQP.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{sdk.gen-CFfx7Yfs.d.ts → sdk.gen-zUUMiaYG.d.ts} +472 -38
- package/dist/tanstack.d.ts +94 -2
- package/dist/tanstack.js +76 -2
- package/dist/tanstack.js.map +1 -1
- package/dist/zod.d.ts +1 -1
- package/dist/{zod.gen-Cj4Pa--f.d.ts → zod.gen-BtDfAN59.d.ts} +2303 -254
- package/dist/zod.js +79 -9
- package/package.json +1 -1
- package/dist/chunk-3TXQXV3F.js.map +0 -1
- package/dist/chunk-M4ZH2TZ7.js.map +0 -1
- /package/dist/{chunk-EPMF2Z2A.js.map → chunk-4P7GOKD7.js.map} +0 -0
package/dist/browser.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-NZCMY3BC.js";
|
|
4
4
|
import {
|
|
5
5
|
zError
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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,
|
|
@@ -515,6 +545,9 @@ __export(zod_gen_exports, {
|
|
|
515
545
|
zListOrgApiKeysQuery: () => zListOrgApiKeysQuery,
|
|
516
546
|
zListOrgApiKeysResponse: () => zListOrgApiKeysResponse,
|
|
517
547
|
zListOrgApiKeysResponse2: () => zListOrgApiKeysResponse2,
|
|
548
|
+
zListOrgIntegrationsPath: () => zListOrgIntegrationsPath,
|
|
549
|
+
zListOrgIntegrationsQuery: () => zListOrgIntegrationsQuery,
|
|
550
|
+
zListOrgIntegrationsResponse: () => zListOrgIntegrationsResponse,
|
|
518
551
|
zListOrgInvitationsPath: () => zListOrgInvitationsPath,
|
|
519
552
|
zListOrgInvitationsQuery: () => zListOrgInvitationsQuery,
|
|
520
553
|
zListOrgInvitationsResponse: () => zListOrgInvitationsResponse,
|
|
@@ -607,6 +640,7 @@ __export(zod_gen_exports, {
|
|
|
607
640
|
zMachineLifecycleState: () => zMachineLifecycleState,
|
|
608
641
|
zMachineMetadata: () => zMachineMetadata,
|
|
609
642
|
zMachinePool: () => zMachinePool,
|
|
643
|
+
zMachinePoolConnectionCheckError: () => zMachinePoolConnectionCheckError,
|
|
610
644
|
zMachinePoolId: () => zMachinePoolId,
|
|
611
645
|
zMachinePoolSummary: () => zMachinePoolSummary,
|
|
612
646
|
zMachinePoolUsage: () => zMachinePoolUsage,
|
|
@@ -772,6 +806,7 @@ __export(zod_gen_exports, {
|
|
|
772
806
|
zResourceListSort: () => zResourceListSort,
|
|
773
807
|
zResourceName: () => zResourceName,
|
|
774
808
|
zResourceNameFilter: () => zResourceNameFilter,
|
|
809
|
+
zResourceNameReference: () => zResourceNameReference,
|
|
775
810
|
zRevokeMachineDaemonTokenPath: () => zRevokeMachineDaemonTokenPath,
|
|
776
811
|
zRevokeMachineDaemonTokenResponse: () => zRevokeMachineDaemonTokenResponse,
|
|
777
812
|
zRevokeOrgApiKeyPath: () => zRevokeOrgApiKeyPath,
|
|
@@ -950,10 +985,164 @@ __export(zod_gen_exports, {
|
|
|
950
985
|
zWriteMemoryFileResponse: () => zWriteMemoryFileResponse
|
|
951
986
|
});
|
|
952
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();
|
|
953
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" });
|
|
954
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" });
|
|
955
1113
|
var zSkillName = z.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
956
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
|
+
});
|
|
957
1146
|
var zResourceListSort = z.enum([
|
|
958
1147
|
"name",
|
|
959
1148
|
"-name",
|
|
@@ -1489,15 +1678,22 @@ var zCreateSlackSetupRequest = z.object({
|
|
|
1489
1678
|
return_to: z.string().optional()
|
|
1490
1679
|
});
|
|
1491
1680
|
var zResolveAgentConfigToolsRequest = z.object({
|
|
1492
|
-
source: z.
|
|
1681
|
+
source: z.union([
|
|
1682
|
+
z.string().min(1),
|
|
1683
|
+
zAgentConfigToolsDefinition
|
|
1684
|
+
]),
|
|
1493
1685
|
source_format: z.enum(["yaml", "json"])
|
|
1494
1686
|
});
|
|
1687
|
+
var zAgentConfigSourceInput = z.union([
|
|
1688
|
+
z.string().min(1),
|
|
1689
|
+
zAgentConfigDefinition
|
|
1690
|
+
]);
|
|
1495
1691
|
var zCreateAgentConfigRequest = z.object({
|
|
1496
|
-
source:
|
|
1692
|
+
source: zAgentConfigSourceInput,
|
|
1497
1693
|
source_format: z.enum(["yaml", "json"])
|
|
1498
1694
|
});
|
|
1499
1695
|
var zUpdateAgentConfigRequest = z.object({
|
|
1500
|
-
source:
|
|
1696
|
+
source: zAgentConfigSourceInput,
|
|
1501
1697
|
source_format: z.enum(["yaml", "json"]),
|
|
1502
1698
|
expected_current_config_id: zAgentConfigId.optional()
|
|
1503
1699
|
});
|
|
@@ -1763,6 +1959,9 @@ var zAgentConfigSummary = z.object({
|
|
|
1763
1959
|
instruction_hash: z.string().optional(),
|
|
1764
1960
|
created_at: zTimestamp
|
|
1765
1961
|
});
|
|
1962
|
+
var zAgentConfigGeneratedSource = z.object({
|
|
1963
|
+
source: z.string()
|
|
1964
|
+
});
|
|
1766
1965
|
var zCreateAgentProfileRequest = z.object({
|
|
1767
1966
|
name: zResourceName,
|
|
1768
1967
|
config: zAgentConfigId
|
|
@@ -2615,6 +2814,17 @@ var zArtifact = z.object({
|
|
|
2615
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(),
|
|
2616
2815
|
created_at: zTimestamp
|
|
2617
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
|
+
});
|
|
2618
2828
|
var zCreateMachinePoolRequestBase = z.object({
|
|
2619
2829
|
name: zResourceName,
|
|
2620
2830
|
description: z.string().optional(),
|
|
@@ -2641,11 +2851,11 @@ var zCreateMachinePoolRequestBase = z.object({
|
|
|
2641
2851
|
var zCreateMachinePoolRequest = zCreateMachinePoolRequestBase.and(z.union([
|
|
2642
2852
|
z.object({
|
|
2643
2853
|
provider: z.enum([
|
|
2644
|
-
"
|
|
2645
|
-
"modal",
|
|
2854
|
+
"arker",
|
|
2646
2855
|
"freestyle",
|
|
2856
|
+
"modal",
|
|
2647
2857
|
"tenki",
|
|
2648
|
-
"
|
|
2858
|
+
"unikraft"
|
|
2649
2859
|
]),
|
|
2650
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" }),
|
|
2651
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" }),
|
|
@@ -2656,9 +2866,9 @@ var zCreateMachinePoolRequest = zCreateMachinePoolRequestBase.and(z.union([
|
|
|
2656
2866
|
}),
|
|
2657
2867
|
z.object({
|
|
2658
2868
|
provider: z.enum([
|
|
2659
|
-
"daytona",
|
|
2660
2869
|
"boxd",
|
|
2661
|
-
"createos"
|
|
2870
|
+
"createos",
|
|
2871
|
+
"daytona"
|
|
2662
2872
|
]),
|
|
2663
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" }),
|
|
2664
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" }),
|
|
@@ -3357,24 +3567,6 @@ var zIntegrationRuntimeFailure = z.object({
|
|
|
3357
3567
|
message: z.string(),
|
|
3358
3568
|
retry_at: zTimestamp
|
|
3359
3569
|
});
|
|
3360
|
-
var zConfigAgentToolInputSchema = z.object({
|
|
3361
|
-
properties: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
|
|
3362
|
-
required: z.array(z.string().min(1)).optional(),
|
|
3363
|
-
type: z.literal("object")
|
|
3364
|
-
});
|
|
3365
|
-
var zConfigIntegrationCapabilitySource = z.record(z.string(), z.never());
|
|
3366
|
-
var zConfigToolPermissionSelection = z.object({
|
|
3367
|
-
mode: z.string().min(1).regex(/\S/),
|
|
3368
|
-
parameters: z.record(z.string(), z.unknown()).optional()
|
|
3369
|
-
});
|
|
3370
|
-
var zConfigToolSource = z.object({
|
|
3371
|
-
deferred: z.boolean().optional(),
|
|
3372
|
-
description: z.string().min(1).optional(),
|
|
3373
|
-
enabled: z.boolean().nullish(),
|
|
3374
|
-
input_schema: zConfigAgentToolInputSchema.optional(),
|
|
3375
|
-
permission: zConfigToolPermissionSelection.optional(),
|
|
3376
|
-
type: z.enum(["built_in", "custom"]).optional()
|
|
3377
|
-
});
|
|
3378
3570
|
var zIntegrationName = z.string().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,31}$/);
|
|
3379
3571
|
var zCompiledGitCredentials = z.object({
|
|
3380
3572
|
integration: zIntegrationName,
|
|
@@ -3527,16 +3719,27 @@ var zIntegrationSubscriptionAttachment = z.object({
|
|
|
3527
3719
|
integration_id: zIntegrationId,
|
|
3528
3720
|
conversation: zIntegrationConversation
|
|
3529
3721
|
});
|
|
3530
|
-
var zCreateAgentRequest = z.
|
|
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({
|
|
3531
3733
|
profile: zAgentProfileId.optional(),
|
|
3532
|
-
config: zAgentConfigId,
|
|
3734
|
+
config: zAgentConfigId.optional(),
|
|
3735
|
+
config_source: zCreateAgentConfigRequest.optional(),
|
|
3533
3736
|
name: zAgentName.optional(),
|
|
3534
3737
|
message: z.string().optional(),
|
|
3535
|
-
tools: z.record(z.string(),
|
|
3738
|
+
tools: z.record(z.string(), zAgentConfigDefinitionTool).optional(),
|
|
3536
3739
|
subscriptions: z.array(zIntegrationSubscriptionAttachment).max(100).optional(),
|
|
3537
|
-
interaction_handlers: z.record(z.string(),
|
|
3740
|
+
interaction_handlers: z.record(z.string(), zAgentConfigDefinitionInteractionHandler).optional(),
|
|
3538
3741
|
initial_input: zAgentLaunchInitialInput.optional()
|
|
3539
|
-
});
|
|
3742
|
+
}));
|
|
3540
3743
|
var zCreateIntegrationSubscriptionRequest = z.object({
|
|
3541
3744
|
agent_id: zAgentId,
|
|
3542
3745
|
conversation: zIntegrationConversation
|
|
@@ -4137,6 +4340,15 @@ var zGetAgentConfigPath = z.object({
|
|
|
4137
4340
|
agentConfigID: z.string().regex(/^acfg_[a-z2-7]{26}$/)
|
|
4138
4341
|
});
|
|
4139
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;
|
|
4140
4352
|
var zListAgentProfilesPath = z.object({
|
|
4141
4353
|
orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
|
|
4142
4354
|
projectID: z.string().regex(/^proj_[a-z2-7]{26}$/)
|
|
@@ -4494,6 +4706,7 @@ var zListVisibleProjectMachinesPath = z.object({
|
|
|
4494
4706
|
var zListVisibleProjectMachinesQuery = z.object({
|
|
4495
4707
|
name: z.string().min(1).max(200).optional(),
|
|
4496
4708
|
source_kind: zMachineSourceKind.optional(),
|
|
4709
|
+
machine_pool_id: zMachinePoolId.optional(),
|
|
4497
4710
|
sort: zResourceListSort.optional(),
|
|
4498
4711
|
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
4499
4712
|
cursor: z.string().max(1024).optional()
|
|
@@ -4580,6 +4793,7 @@ var zListVisibleMachinesPath = z.object({
|
|
|
4580
4793
|
var zListVisibleMachinesQuery = z.object({
|
|
4581
4794
|
name: z.string().min(1).max(200).optional(),
|
|
4582
4795
|
source_kind: zMachineSourceKind.optional(),
|
|
4796
|
+
machine_pool_id: zMachinePoolId.optional(),
|
|
4583
4797
|
sort: zResourceListSort.optional(),
|
|
4584
4798
|
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
4585
4799
|
cursor: z.string().max(1024).optional()
|
|
@@ -4723,6 +4937,11 @@ var zCreateMachinePoolPath = z.object({
|
|
|
4723
4937
|
orgID: z.string().regex(/^org_[a-z2-7]{26}$/)
|
|
4724
4938
|
});
|
|
4725
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();
|
|
4726
4945
|
var zDeleteMachinePoolPath = z.object({
|
|
4727
4946
|
orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
|
|
4728
4947
|
poolID: z.string().regex(/^mpo_[a-z2-7]{26}$/)
|
|
@@ -4745,6 +4964,7 @@ var zListProjectMachinePoolGrantsPath = z.object({
|
|
|
4745
4964
|
});
|
|
4746
4965
|
var zListProjectMachinePoolGrantsQuery = z.object({
|
|
4747
4966
|
name: z.string().min(1).max(200).optional(),
|
|
4967
|
+
machine_pool_id: zMachinePoolId.optional(),
|
|
4748
4968
|
sort: zResourceListSort.optional(),
|
|
4749
4969
|
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
4750
4970
|
cursor: z.string().max(1024).optional()
|
|
@@ -4840,6 +5060,15 @@ var zUploadDaemonFileQuery = z.object({
|
|
|
4840
5060
|
filename: z.string().optional()
|
|
4841
5061
|
});
|
|
4842
5062
|
var zUploadDaemonFileResponse = zUploadFileResponse;
|
|
5063
|
+
var zListOrgIntegrationsPath = z.object({
|
|
5064
|
+
orgID: zOrganizationId
|
|
5065
|
+
});
|
|
5066
|
+
var zListOrgIntegrationsQuery = z.object({
|
|
5067
|
+
name: z.string().min(1).max(200).optional(),
|
|
5068
|
+
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
5069
|
+
cursor: z.string().max(1024).optional()
|
|
5070
|
+
});
|
|
5071
|
+
var zListOrgIntegrationsResponse = zListIntegrationsResponse;
|
|
4843
5072
|
var zListIntegrationsPath = z.object({
|
|
4844
5073
|
orgID: zOrganizationId,
|
|
4845
5074
|
projectID: zProjectId
|
|
@@ -4919,10 +5148,36 @@ var zListIntegrationDefinitionsResponse2 = zListIntegrationDefinitionsResponse;
|
|
|
4919
5148
|
|
|
4920
5149
|
export {
|
|
4921
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,
|
|
4922
5173
|
zResourceName,
|
|
4923
5174
|
zAgentName,
|
|
4924
5175
|
zSkillName,
|
|
4925
5176
|
zMemoryStoreName,
|
|
5177
|
+
zAgentConfigDefinitionMemoryStore,
|
|
5178
|
+
zAgentConfigDefinitionMemoryStores,
|
|
5179
|
+
zAgentConfigDefinition,
|
|
5180
|
+
zAgentConfigToolsDefinition,
|
|
4926
5181
|
zResourceListSort,
|
|
4927
5182
|
zCreatedResourceListSort,
|
|
4928
5183
|
zAgentConfigErrorIssue,
|
|
@@ -5044,6 +5299,7 @@ export {
|
|
|
5044
5299
|
zSlackSetupIcon,
|
|
5045
5300
|
zCreateSlackSetupRequest,
|
|
5046
5301
|
zResolveAgentConfigToolsRequest,
|
|
5302
|
+
zAgentConfigSourceInput,
|
|
5047
5303
|
zCreateAgentConfigRequest,
|
|
5048
5304
|
zUpdateAgentConfigRequest,
|
|
5049
5305
|
zToolPermissionSelection,
|
|
@@ -5088,6 +5344,7 @@ export {
|
|
|
5088
5344
|
zCompiledProfileSubagent,
|
|
5089
5345
|
zCompiledSubagent,
|
|
5090
5346
|
zAgentConfigSummary,
|
|
5347
|
+
zAgentConfigGeneratedSource,
|
|
5091
5348
|
zCreateAgentProfileRequest,
|
|
5092
5349
|
zUpdateAgentProfileRequest,
|
|
5093
5350
|
zRenameAgentProfileRequest,
|
|
@@ -5241,6 +5498,8 @@ export {
|
|
|
5241
5498
|
zUpdateOrgApiKeyRequest,
|
|
5242
5499
|
zListOrgApiKeysResponse,
|
|
5243
5500
|
zArtifact,
|
|
5501
|
+
zCheckMachinePoolConnectionRequest,
|
|
5502
|
+
zMachinePoolConnectionCheckError,
|
|
5244
5503
|
zCreateMachinePoolRequestBase,
|
|
5245
5504
|
zCreateMachinePoolRequest,
|
|
5246
5505
|
zUpdateMachinePoolRequest,
|
|
@@ -5341,10 +5600,6 @@ export {
|
|
|
5341
5600
|
zIntegrationSettings,
|
|
5342
5601
|
zUpdateIntegrationRequest,
|
|
5343
5602
|
zIntegrationRuntimeFailure,
|
|
5344
|
-
zConfigAgentToolInputSchema,
|
|
5345
|
-
zConfigIntegrationCapabilitySource,
|
|
5346
|
-
zConfigToolPermissionSelection,
|
|
5347
|
-
zConfigToolSource,
|
|
5348
5603
|
zIntegrationName,
|
|
5349
5604
|
zCompiledGitCredentials,
|
|
5350
5605
|
zCompiledAgentConfig,
|
|
@@ -5586,6 +5841,9 @@ export {
|
|
|
5586
5841
|
zListMcpServerToolsResponse,
|
|
5587
5842
|
zGetAgentConfigPath,
|
|
5588
5843
|
zGetAgentConfigResponse,
|
|
5844
|
+
zGetAgentConfigGeneratedSourcePath,
|
|
5845
|
+
zGetAgentConfigGeneratedSourceQuery,
|
|
5846
|
+
zGetAgentConfigGeneratedSourceResponse,
|
|
5589
5847
|
zListAgentProfilesPath,
|
|
5590
5848
|
zListAgentProfilesQuery,
|
|
5591
5849
|
zListAgentProfilesResponse2,
|
|
@@ -5785,6 +6043,9 @@ export {
|
|
|
5785
6043
|
zCreateMachinePoolBody,
|
|
5786
6044
|
zCreateMachinePoolPath,
|
|
5787
6045
|
zCreateMachinePoolResponse,
|
|
6046
|
+
zCheckMachinePoolConnectionBody,
|
|
6047
|
+
zCheckMachinePoolConnectionPath,
|
|
6048
|
+
zCheckMachinePoolConnectionResponse,
|
|
5788
6049
|
zDeleteMachinePoolPath,
|
|
5789
6050
|
zDeleteMachinePoolResponse,
|
|
5790
6051
|
zGetMachinePoolPath,
|
|
@@ -5832,6 +6093,9 @@ export {
|
|
|
5832
6093
|
zUploadDaemonFilePath,
|
|
5833
6094
|
zUploadDaemonFileQuery,
|
|
5834
6095
|
zUploadDaemonFileResponse,
|
|
6096
|
+
zListOrgIntegrationsPath,
|
|
6097
|
+
zListOrgIntegrationsQuery,
|
|
6098
|
+
zListOrgIntegrationsResponse,
|
|
5835
6099
|
zListIntegrationsPath,
|
|
5836
6100
|
zListIntegrationsQuery,
|
|
5837
6101
|
zListIntegrationsResponse2,
|
|
@@ -5862,4 +6126,4 @@ export {
|
|
|
5862
6126
|
zListIntegrationDefinitionsResponse2,
|
|
5863
6127
|
zod_gen_exports
|
|
5864
6128
|
};
|
|
5865
|
-
//# sourceMappingURL=chunk-
|
|
6129
|
+
//# sourceMappingURL=chunk-NKZVA6EJ.js.map
|