omnara 1.0.16 → 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 +60 -7
  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
  });
@@ -2270,10 +2276,22 @@ var zListProjectsResponse = z.object({
2270
2276
  data: z.array(zVisibleProject),
2271
2277
  next_cursor: z.string().nullable()
2272
2278
  });
2273
- var zOrgOverviewResponse = z.object({
2274
- projects: z.array(zVisibleProject),
2275
- recent_agents: z.array(zAgent),
2276
- recent_agent_profiles: z.array(zAgentProfileSummary)
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" })
2277
2295
  });
2278
2296
  var zUsageTokenTotals = z.object({
2279
2297
  input_tokens_total: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
@@ -2292,6 +2310,37 @@ var zUsageTotals = z.object({
2292
2310
  tokens: zUsageTokenTotals,
2293
2311
  cost: zUsageCostTotals
2294
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
+ });
2295
2344
  var zUsageModel = z.object({
2296
2345
  configured_model_id: zConfiguredModelId,
2297
2346
  name: zResourceName,
@@ -2434,6 +2483,9 @@ var zDeclineInvitationResponse = zOrgInvitation;
2434
2483
  var zGetOrgOverviewPath = z.object({
2435
2484
  orgID: zOrganizationId
2436
2485
  });
2486
+ var zGetOrgOverviewQuery = z.object({
2487
+ timezone: z.string().max(64).optional().default("UTC")
2488
+ });
2437
2489
  var zGetOrgOverviewResponse = zOrgOverviewResponse;
2438
2490
  var zGetOrgUsagePath = z.object({
2439
2491
  orgID: zOrganizationId
@@ -11730,7 +11782,8 @@ var commandGroups = [
11730
11782
  summary: "Show an organization overview",
11731
11783
  fn: sdk_gen_exports.getOrgOverview,
11732
11784
  format: formatRecord(),
11733
- path: zGetOrgOverviewPath
11785
+ path: zGetOrgOverviewPath,
11786
+ query: zGetOrgOverviewQuery
11734
11787
  }),
11735
11788
  op({
11736
11789
  verb: "delete",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnara",
3
- "version": "1.0.16",
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",