omnara 1.0.15 → 1.0.17

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.
Files changed (2) hide show
  1. package/dist/bin.js +233 -12
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -243,7 +243,9 @@ var zCreateModelProviderConfigRequest = z.object({
243
243
  service: z.string().min(1).max(64).optional(),
244
244
  region: z.string().min(1).max(64).optional()
245
245
  }).optional(),
246
- credential_secret_id: zSecretId
246
+ credential_secret_id: zSecretId,
247
+ headers: z.record(z.string(), z.string()).optional(),
248
+ secret_headers: z.record(z.string(), zSecretId).optional()
247
249
  });
248
250
  var zUpdateModelProviderConfigRequest = z.object({
249
251
  base_url: z.string().min(1).optional(),
@@ -256,7 +258,9 @@ var zUpdateModelProviderConfigRequest = z.object({
256
258
  service: z.string().min(1).max(64).optional(),
257
259
  region: z.string().min(1).max(64).optional()
258
260
  }).optional(),
259
- credential_secret_id: zSecretId.optional()
261
+ credential_secret_id: zSecretId.optional(),
262
+ headers: z.record(z.string(), z.string()).optional(),
263
+ secret_headers: z.record(z.string(), zSecretId).optional()
260
264
  });
261
265
  var zSecretGrantId = z.string().regex(/^sgr_[a-z2-7]{26}$/);
262
266
  var zDaemonRuntimeId = z.string().regex(/^drt_[a-z2-7]{26}$/);
@@ -283,6 +287,8 @@ var zModelProviderConfig = z.object({
283
287
  region: z.string().min(1).max(64).optional()
284
288
  }),
285
289
  credential_secret_id: zSecretId,
290
+ headers: z.record(z.string(), z.string()),
291
+ secret_headers: z.record(z.string(), zSecretId),
286
292
  created_at: zTimestamp,
287
293
  updated_at: zTimestamp
288
294
  });
@@ -681,18 +687,148 @@ var zAgentConfigModel = z.object({
681
687
  input_modalities: z.array(z.string()),
682
688
  output_modalities: z.array(z.string())
683
689
  });
684
- var zAgentConfig = z.object({
690
+ var zCompiledEventWebhook = z.object({
691
+ url: z.string(),
692
+ events: z.array(z.enum([
693
+ "agent_input",
694
+ "model_output",
695
+ "tool_result",
696
+ "context_checkpoint",
697
+ "tool_call_update"
698
+ ])).min(1),
699
+ signing_secret_id: zSecretId.optional()
700
+ });
701
+ var zCompiledModelReasoning = z.object({
702
+ effort: z.string()
703
+ });
704
+ var zCompiledAgentModel = z.object({
705
+ configured_model_id: zConfiguredModelId,
706
+ context_window_tokens: z.int().optional(),
707
+ default_max_output_tokens: z.int().optional(),
708
+ cache_retention: zModelCacheRetention.optional(),
709
+ reasoning: zCompiledModelReasoning.optional()
710
+ });
711
+ var zCompiledMachineSource = z.object({
712
+ machine_id: zMachineId.optional(),
713
+ machine_pool_id: zMachinePoolId.optional(),
714
+ max_machines: z.int().optional(),
715
+ initial_num_machines: z.int().optional(),
716
+ delete_after_idle_minutes: z.int().optional(),
717
+ cwd: z.string().optional(),
718
+ machine_cpu: z.int().optional(),
719
+ machine_memory_mb: z.int().optional(),
720
+ env_overlay: z.record(z.string(), z.string().nullable()).optional(),
721
+ secret_env_overlay: z.record(z.string(), zSecretId.nullable()).optional(),
722
+ machine_provider_options_overlay: z.record(z.string(), z.unknown()).optional(),
723
+ description: z.string().optional()
724
+ });
725
+ var zCompiledTool = z.object({
726
+ enabled: z.boolean(),
727
+ type: z.enum(["built_in", "custom"]).optional(),
728
+ permission: zToolPermissionSelection,
729
+ deferred: z.boolean().optional(),
730
+ description: z.string().optional(),
731
+ input_schema: z.record(z.string(), z.unknown()).optional()
732
+ });
733
+ var zCompiledMcpAuthBearer = z.object({
734
+ type: z.enum(["bearer"]),
735
+ secret_id: zSecretId
736
+ });
737
+ var zCompiledMcpAuthOAuth = z.object({
738
+ type: z.enum(["oauth"]),
739
+ secret_id: zSecretId
740
+ });
741
+ var zCompiledMcpAuthSigV4 = z.object({
742
+ type: z.enum(["sigv4"]),
743
+ secret_id: zSecretId,
744
+ service: z.string().min(1),
745
+ region: z.string().min(1)
746
+ });
747
+ var zCompiledMcpAuth = z.discriminatedUnion("type", [
748
+ zCompiledMcpAuthBearer.extend({ type: z.literal("bearer") }),
749
+ zCompiledMcpAuthOAuth.extend({ type: z.literal("oauth") }),
750
+ zCompiledMcpAuthSigV4.extend({ type: z.literal("sigv4") })
751
+ ]);
752
+ var zCompiledMcpTool = z.object({
753
+ enabled: z.boolean().optional(),
754
+ permission: zToolPermissionSelection.optional(),
755
+ deferred: z.boolean().optional()
756
+ });
757
+ var zCompiledMcpServer = z.object({
758
+ url: z.string(),
759
+ auth: zCompiledMcpAuth.optional(),
760
+ default_enabled: z.boolean(),
761
+ permission: zToolPermissionSelection,
762
+ deferred: z.boolean().optional(),
763
+ tools: z.record(z.string(), zCompiledMcpTool).optional()
764
+ });
765
+ var zCompiledSkill = z.object({
766
+ id: zSkillId
767
+ });
768
+ var zCompiledSubagentModel = z.object({
769
+ configured_model_id: zConfiguredModelId.optional(),
770
+ context_window_tokens: z.int().optional(),
771
+ default_max_output_tokens: z.int().optional(),
772
+ cache_retention: zModelCacheRetention.optional(),
773
+ reasoning: zCompiledModelReasoning.optional()
774
+ });
775
+ var zCompiledSelfSubagent = z.object({
776
+ type: z.enum(["self"]),
777
+ description: z.string().optional(),
778
+ model: zCompiledSubagentModel.optional(),
779
+ instruction_append: z.string().optional(),
780
+ max_instances: z.int().optional(),
781
+ archive_after_idle_minutes: z.int().optional()
782
+ });
783
+ var zCompiledProfileSubagent = z.object({
784
+ type: z.enum(["profile"]),
785
+ profile_id: zAgentProfileId,
786
+ description: z.string().optional(),
787
+ model: zCompiledSubagentModel.optional(),
788
+ instruction_append: z.string().optional(),
789
+ max_instances: z.int().optional(),
790
+ archive_after_idle_minutes: z.int().optional()
791
+ });
792
+ var zCompiledSubagent = z.discriminatedUnion("type", [
793
+ zCompiledSelfSubagent.extend({ type: z.literal("self") }),
794
+ zCompiledProfileSubagent.extend({ type: z.literal("profile") })
795
+ ]);
796
+ var zCompiledAgentConfig = z.object({
797
+ version: z.string().optional(),
798
+ instruction: z.string(),
799
+ model: zCompiledAgentModel,
800
+ machine_sources: z.array(zCompiledMachineSource).optional(),
801
+ tools: z.record(z.string(), zCompiledTool).optional(),
802
+ mcp: z.record(z.string(), zCompiledMcpServer).optional(),
803
+ event_webhook: zCompiledEventWebhook.optional(),
804
+ skills: z.array(zCompiledSkill).optional(),
805
+ subagents: z.record(z.string(), zCompiledSubagent).optional(),
806
+ max_subagents: z.int().optional(),
807
+ max_depth: z.int().optional()
808
+ });
809
+ var zAgentConfigSummary = z.object({
685
810
  id: zAgentConfigId,
686
811
  org_id: zOrganizationId,
687
812
  project_id: zProjectId,
688
813
  source: z.string().optional(),
689
814
  source_format: z.enum(["yaml", "json"]).optional(),
690
- compiler_version: z.string().optional(),
691
815
  effective_definition_hash: z.string(),
692
816
  model: zAgentConfigModel,
693
817
  instruction_hash: z.string().optional(),
694
818
  created_at: zTimestamp
695
819
  });
820
+ var zAgentConfig = z.object({
821
+ id: zAgentConfigId,
822
+ org_id: zOrganizationId,
823
+ project_id: zProjectId,
824
+ source: z.string().optional(),
825
+ source_format: z.enum(["yaml", "json"]).optional(),
826
+ effective_definition_hash: z.string(),
827
+ model: zAgentConfigModel,
828
+ instruction_hash: z.string().optional(),
829
+ created_at: zTimestamp,
830
+ compiled_definition: zCompiledAgentConfig
831
+ });
696
832
  var zCreateAgentProfileRequest = z.object({
697
833
  name: zResourceName,
698
834
  config: zAgentConfigId
@@ -704,6 +840,17 @@ var zUpdateAgentProfileRequest = z.object({
704
840
  var zRenameAgentProfileRequest = z.object({
705
841
  name: zResourceName
706
842
  });
843
+ var zAgentProfileSummary = z.object({
844
+ id: zAgentProfileId,
845
+ org_id: zOrganizationId,
846
+ project_id: zProjectId,
847
+ name: zResourceName,
848
+ current_config_id: zAgentConfigId,
849
+ current_generation: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
850
+ created_at: zTimestamp,
851
+ updated_at: zTimestamp,
852
+ current_config: zAgentConfigSummary
853
+ });
707
854
  var zAgentProfile = z.object({
708
855
  id: zAgentProfileId,
709
856
  org_id: zOrganizationId,
@@ -711,12 +858,12 @@ var zAgentProfile = z.object({
711
858
  name: zResourceName,
712
859
  current_config_id: zAgentConfigId,
713
860
  current_generation: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
714
- current_config: zAgentConfig,
715
861
  created_at: zTimestamp,
716
- updated_at: zTimestamp
862
+ updated_at: zTimestamp,
863
+ current_config: zAgentConfig
717
864
  });
718
865
  var zListAgentProfilesResponse = z.object({
719
- data: z.array(zAgentProfile),
866
+ data: z.array(zAgentProfileSummary),
720
867
  next_cursor: z.string().nullable()
721
868
  });
722
869
  var zAgentProfileCronTriggerTarget = z.object({
@@ -1137,6 +1284,22 @@ var zContextCheckpointEvent = z.object({
1137
1284
  summary: z.string(),
1138
1285
  created_at: zTimestamp
1139
1286
  });
1287
+ var zEventWebhookAgentInputEvent = z.object({
1288
+ event: z.enum(["agent_input"]),
1289
+ data: zAgentInputEvent
1290
+ });
1291
+ var zEventWebhookToolResultEvent = z.object({
1292
+ event: z.enum(["tool_result"]),
1293
+ data: zToolResultEvent
1294
+ });
1295
+ var zEventWebhookContextCheckpointEvent = z.object({
1296
+ event: z.enum(["context_checkpoint"]),
1297
+ data: zContextCheckpointEvent
1298
+ });
1299
+ var zEventWebhookToolCallUpdate = z.object({
1300
+ event: z.enum(["tool_call_update"]),
1301
+ data: zToolCallUpdate
1302
+ });
1140
1303
  var zModelOutputTextStreamBlock = z.object({
1141
1304
  kind: z.enum(["text"])
1142
1305
  });
@@ -1202,6 +1365,17 @@ var zModelOutputEvent = z.object({
1202
1365
  provider_metadata: z.record(z.string(), z.unknown()).optional(),
1203
1366
  created_at: zTimestamp
1204
1367
  });
1368
+ var zEventWebhookModelOutputEvent = z.object({
1369
+ event: z.enum(["model_output"]),
1370
+ data: zModelOutputEvent
1371
+ });
1372
+ var zEventWebhookPayload = z.discriminatedUnion("event", [
1373
+ zEventWebhookAgentInputEvent.extend({ event: z.literal("agent_input") }),
1374
+ zEventWebhookModelOutputEvent.extend({ event: z.literal("model_output") }),
1375
+ zEventWebhookToolResultEvent.extend({ event: z.literal("tool_result") }),
1376
+ zEventWebhookContextCheckpointEvent.extend({ event: z.literal("context_checkpoint") }),
1377
+ zEventWebhookToolCallUpdate.extend({ event: z.literal("tool_call_update") })
1378
+ ]);
1205
1379
  var zAgentEvent = z.discriminatedUnion("event_kind", [
1206
1380
  zAgentInputEvent.extend({ event_kind: z.literal("agent_input") }),
1207
1381
  zModelOutputEvent.extend({ event_kind: z.literal("model_output") }),
@@ -2102,10 +2276,22 @@ var zListProjectsResponse = z.object({
2102
2276
  data: z.array(zVisibleProject),
2103
2277
  next_cursor: z.string().nullable()
2104
2278
  });
2105
- var zOrgOverviewResponse = z.object({
2106
- projects: z.array(zVisibleProject),
2107
- recent_agents: z.array(zAgent),
2108
- recent_agent_profiles: z.array(zAgentProfile)
2279
+ var zOrgOverviewAgentProfileReference = z.object({
2280
+ id: zAgentProfileId,
2281
+ name: zResourceName,
2282
+ agent_count: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" })
2283
+ });
2284
+ var zOrgOverviewToday = z.object({
2285
+ agents_created: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
2286
+ messages_sent: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" })
2287
+ });
2288
+ var zOrgOverviewUsageDayModel = z.object({
2289
+ id: zConfiguredModelId,
2290
+ tokens: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" })
2291
+ });
2292
+ var zOrgOverviewUsageDayProfile = z.object({
2293
+ id: zAgentProfileId.optional(),
2294
+ tokens: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" })
2109
2295
  });
2110
2296
  var zUsageTokenTotals = z.object({
2111
2297
  input_tokens_total: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
@@ -2124,6 +2310,37 @@ var zUsageTotals = z.object({
2124
2310
  tokens: zUsageTokenTotals,
2125
2311
  cost: zUsageCostTotals
2126
2312
  });
2313
+ var zOrgOverviewUsageModel = z.object({
2314
+ id: zConfiguredModelId,
2315
+ name: zResourceName,
2316
+ totals: zUsageTotals
2317
+ });
2318
+ var zOrgOverviewUsageProfile = z.object({
2319
+ id: zAgentProfileId.optional(),
2320
+ name: zResourceName.optional(),
2321
+ totals: zUsageTotals
2322
+ });
2323
+ var zOrgOverviewUsageDay = z.object({
2324
+ start: zTimestamp,
2325
+ totals: zUsageTotals,
2326
+ models: z.array(zOrgOverviewUsageDayModel),
2327
+ profiles: z.array(zOrgOverviewUsageDayProfile)
2328
+ });
2329
+ var zOrgOverviewUsage = z.object({
2330
+ totals: zUsageTotals,
2331
+ active_agents: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
2332
+ models: z.array(zOrgOverviewUsageModel),
2333
+ profiles: z.array(zOrgOverviewUsageProfile),
2334
+ days: z.array(zOrgOverviewUsageDay)
2335
+ });
2336
+ var zOrgOverviewResponse = z.object({
2337
+ projects: z.array(zVisibleProject),
2338
+ recent_agents: z.array(zAgent),
2339
+ recent_agent_profiles: z.array(zAgentProfileSummary),
2340
+ referenced_agent_profiles: z.array(zOrgOverviewAgentProfileReference),
2341
+ today: zOrgOverviewToday,
2342
+ usage: zOrgOverviewUsage
2343
+ });
2127
2344
  var zUsageModel = z.object({
2128
2345
  configured_model_id: zConfiguredModelId,
2129
2346
  name: zResourceName,
@@ -2266,6 +2483,9 @@ var zDeclineInvitationResponse = zOrgInvitation;
2266
2483
  var zGetOrgOverviewPath = z.object({
2267
2484
  orgID: zOrganizationId
2268
2485
  });
2486
+ var zGetOrgOverviewQuery = z.object({
2487
+ timezone: z.string().max(64).optional().default("UTC")
2488
+ });
2269
2489
  var zGetOrgOverviewResponse = zOrgOverviewResponse;
2270
2490
  var zGetOrgUsagePath = z.object({
2271
2491
  orgID: zOrganizationId
@@ -11562,7 +11782,8 @@ var commandGroups = [
11562
11782
  summary: "Show an organization overview",
11563
11783
  fn: sdk_gen_exports.getOrgOverview,
11564
11784
  format: formatRecord(),
11565
- path: zGetOrgOverviewPath
11785
+ path: zGetOrgOverviewPath,
11786
+ query: zGetOrgOverviewQuery
11566
11787
  }),
11567
11788
  op({
11568
11789
  verb: "delete",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnara",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Command-line interface for Omnara: launch and manage agents, organizations, integrations, and MCP servers",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://omnara.com",