@omnara/sdk 0.1.14 → 0.1.16

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-ZZWDHGYQ.js";
3
+ } from "./chunk-2GNLWO2D.js";
4
4
  import "./chunk-6ZFYUHM3.js";
5
- import "./chunk-AENLF3VZ.js";
5
+ import "./chunk-FLJ4TFP7.js";
6
6
 
7
7
  // src/browser.ts
8
8
  import * as z from "zod";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-6ZFYUHM3.js";
4
4
  import {
5
5
  zError
6
- } from "./chunk-AENLF3VZ.js";
6
+ } from "./chunk-FLJ4TFP7.js";
7
7
 
8
8
  // src/json-body.ts
9
9
  import * as z from "zod";
@@ -57,4 +57,4 @@ export {
57
57
  zErrorResponse,
58
58
  ApiError
59
59
  };
60
- //# sourceMappingURL=chunk-ZZWDHGYQ.js.map
60
+ //# sourceMappingURL=chunk-2GNLWO2D.js.map
@@ -618,10 +618,16 @@ __export(zod_gen_exports, {
618
618
  zRenameAgentProfilePath: () => zRenameAgentProfilePath,
619
619
  zRenameAgentProfileRequest: () => zRenameAgentProfileRequest,
620
620
  zRenameAgentProfileResponse: () => zRenameAgentProfileResponse,
621
+ zResolveAgentConfigToolsBody: () => zResolveAgentConfigToolsBody,
622
+ zResolveAgentConfigToolsPath: () => zResolveAgentConfigToolsPath,
623
+ zResolveAgentConfigToolsRequest: () => zResolveAgentConfigToolsRequest,
624
+ zResolveAgentConfigToolsResponse: () => zResolveAgentConfigToolsResponse,
621
625
  zResolveAgentInteractionBody: () => zResolveAgentInteractionBody,
622
626
  zResolveAgentInteractionPath: () => zResolveAgentInteractionPath,
623
627
  zResolveAgentInteractionRequest: () => zResolveAgentInteractionRequest,
624
628
  zResolveAgentInteractionResponse: () => zResolveAgentInteractionResponse,
629
+ zResolvedAgentConfigTool: () => zResolvedAgentConfigTool,
630
+ zResolvedAgentConfigTools: () => zResolvedAgentConfigTools,
625
631
  zResourceListSort: () => zResourceListSort,
626
632
  zResourceName: () => zResourceName,
627
633
  zResourceNameFilter: () => zResourceNameFilter,
@@ -783,8 +789,7 @@ __export(zod_gen_exports, {
783
789
  zUserSkillOwner: () => zUserSkillOwner,
784
790
  zUserSkillOwnerInput: () => zUserSkillOwnerInput,
785
791
  zVisibleMachine: () => zVisibleMachine,
786
- zVisibleProject: () => zVisibleProject,
787
- zWarning: () => zWarning
792
+ zVisibleProject: () => zVisibleProject
788
793
  });
789
794
  import * as z from "zod";
790
795
  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" });
@@ -838,10 +843,6 @@ var zError = z.object({
838
843
  "authentication_unavailable"
839
844
  ])
840
845
  });
841
- var zWarning = z.object({
842
- message: z.string(),
843
- code: z.enum(["missing_recommended_machine_tools"])
844
- });
845
846
  var zClientErrorCode = z.enum([
846
847
  "invalid_request",
847
848
  "validation_failed",
@@ -1294,6 +1295,10 @@ var zSlackSetup = z.object({
1294
1295
  actions_url: z.url(),
1295
1296
  expires_at: zTimestamp
1296
1297
  });
1298
+ var zResolveAgentConfigToolsRequest = z.object({
1299
+ source: z.string().min(1),
1300
+ source_format: z.enum(["yaml", "json"])
1301
+ });
1297
1302
  var zCreateAgentConfigRequest = z.object({
1298
1303
  source: z.string().min(1),
1299
1304
  source_format: z.enum(["yaml", "json"])
@@ -1307,6 +1312,14 @@ var zToolPermissionSelection = z.object({
1307
1312
  mode: z.string(),
1308
1313
  parameters: z.record(z.string(), z.unknown())
1309
1314
  });
1315
+ var zResolvedAgentConfigTool = z.object({
1316
+ name: z.string(),
1317
+ enabled: z.boolean(),
1318
+ permission: zToolPermissionSelection
1319
+ });
1320
+ var zResolvedAgentConfigTools = z.object({
1321
+ tools: z.array(zResolvedAgentConfigTool)
1322
+ });
1310
1323
  var zToolPermissionMode = z.object({
1311
1324
  name: z.string(),
1312
1325
  label: z.string(),
@@ -1320,6 +1333,7 @@ var zToolPermissionProfile = z.object({
1320
1333
  var zToolCatalogEntry = z.object({
1321
1334
  name: z.string(),
1322
1335
  description: z.string(),
1336
+ implicit: z.boolean().optional(),
1323
1337
  default_permission: zToolPermissionSelection,
1324
1338
  permission_modes: z.array(zToolPermissionMode)
1325
1339
  });
@@ -1453,7 +1467,6 @@ var zAgentConfig = z.object({
1453
1467
  effective_definition_hash: z.string(),
1454
1468
  model: zAgentConfigModel,
1455
1469
  instruction_hash: z.string().optional(),
1456
- warnings: z.array(zWarning).min(1).optional(),
1457
1470
  created_at: zTimestamp
1458
1471
  });
1459
1472
  var zCreateAgentProfileRequest = z.object({
@@ -1664,6 +1677,7 @@ var zMachineFailureReport = z.object({
1664
1677
  "startup_script",
1665
1678
  "daemon_install",
1666
1679
  "daemon_update",
1680
+ "daemon_runtime",
1667
1681
  "daemon_uninstall",
1668
1682
  "daemon_uninstalled"
1669
1683
  ]),
@@ -2997,6 +3011,7 @@ var zRecordMachineFailureQuery = z.object({
2997
3011
  "startup_script",
2998
3012
  "daemon_install",
2999
3013
  "daemon_update",
3014
+ "daemon_runtime",
3000
3015
  "daemon_uninstall",
3001
3016
  "daemon_uninstalled"
3002
3017
  ]),
@@ -3349,6 +3364,12 @@ var zDeleteIntegrationInstallPath = z.object({
3349
3364
  integrationInstallID: z.string().regex(/^iin_[a-z2-7]{26}$/)
3350
3365
  });
3351
3366
  var zDeleteIntegrationInstallResponse = z.void();
3367
+ var zResolveAgentConfigToolsBody = zResolveAgentConfigToolsRequest;
3368
+ var zResolveAgentConfigToolsPath = z.object({
3369
+ orgID: zOrganizationId,
3370
+ projectID: zProjectId
3371
+ });
3372
+ var zResolveAgentConfigToolsResponse = zResolvedAgentConfigTools;
3352
3373
  var zCreateAgentConfigBody = zCreateAgentConfigRequest;
3353
3374
  var zCreateAgentConfigPath = z.object({
3354
3375
  orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
@@ -4064,7 +4085,6 @@ export {
4064
4085
  zCreatedResourceListSort,
4065
4086
  zAgentConfigErrorIssue,
4066
4087
  zError,
4067
- zWarning,
4068
4088
  zClientErrorCode,
4069
4089
  zServerErrorCode,
4070
4090
  zManagementKind,
@@ -4165,9 +4185,12 @@ export {
4165
4185
  zSlackSetupIcon,
4166
4186
  zCreateSlackSetupRequest,
4167
4187
  zSlackSetup,
4188
+ zResolveAgentConfigToolsRequest,
4168
4189
  zCreateAgentConfigRequest,
4169
4190
  zUpdateAgentConfigRequest,
4170
4191
  zToolPermissionSelection,
4192
+ zResolvedAgentConfigTool,
4193
+ zResolvedAgentConfigTools,
4171
4194
  zToolPermissionMode,
4172
4195
  zToolPermissionProfile,
4173
4196
  zToolCatalogEntry,
@@ -4586,6 +4609,9 @@ export {
4586
4609
  zListIntegrationInstallsResponse2,
4587
4610
  zDeleteIntegrationInstallPath,
4588
4611
  zDeleteIntegrationInstallResponse,
4612
+ zResolveAgentConfigToolsBody,
4613
+ zResolveAgentConfigToolsPath,
4614
+ zResolveAgentConfigToolsResponse,
4589
4615
  zCreateAgentConfigBody,
4590
4616
  zCreateAgentConfigPath,
4591
4617
  zCreateAgentConfigResponse,
@@ -4837,4 +4863,4 @@ export {
4837
4863
  zDownloadDaemonArtifactResponse,
4838
4864
  zod_gen_exports
4839
4865
  };
4840
- //# sourceMappingURL=chunk-AENLF3VZ.js.map
4866
+ //# sourceMappingURL=chunk-FLJ4TFP7.js.map