omnara 1.0.9 → 1.0.10

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 +36 -6
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -128,7 +128,12 @@ var zModelApiFormat = z.enum([
128
128
  "openai-chat-completions",
129
129
  "anthropic-messages"
130
130
  ]);
131
- var zModelProviderAuthKind = z.enum(["bearer_token", "api_key_header"]);
131
+ var zModelProviderAuthKind = z.enum([
132
+ "bearer_token",
133
+ "api_key_header",
134
+ "sigv4"
135
+ ]);
136
+ var zModelProviderAuthKindResponse = z.string();
132
137
  var zModelProviderApiVariant = z.enum([
133
138
  "default",
134
139
  "openrouter",
@@ -231,7 +236,9 @@ var zCreateModelProviderConfigRequest = z.object({
231
236
  idle_timeout_ms: z.int().gte(1).lte(2147483647).optional(),
232
237
  auth_kind: zModelProviderAuthKind.optional(),
233
238
  auth_options: z.object({
234
- header_name: z.string().min(1).optional()
239
+ header_name: z.string().min(1).optional(),
240
+ service: z.string().min(1).max(64).optional(),
241
+ region: z.string().min(1).max(64).optional()
235
242
  }).optional(),
236
243
  credential_secret_id: zSecretId
237
244
  });
@@ -242,7 +249,9 @@ var zUpdateModelProviderConfigRequest = z.object({
242
249
  idle_timeout_ms: z.int().gte(1).lte(2147483647).optional(),
243
250
  auth_kind: zModelProviderAuthKind.optional(),
244
251
  auth_options: z.object({
245
- header_name: z.string().min(1).optional()
252
+ header_name: z.string().min(1).optional(),
253
+ service: z.string().min(1).max(64).optional(),
254
+ region: z.string().min(1).max(64).optional()
246
255
  }).optional(),
247
256
  credential_secret_id: zSecretId.optional()
248
257
  });
@@ -264,9 +273,11 @@ var zModelProviderConfig = z.object({
264
273
  endpoint_path: z.string(),
265
274
  request_timeout_ms: z.int(),
266
275
  idle_timeout_ms: z.int(),
267
- auth_kind: zModelProviderAuthKind,
276
+ auth_kind: zModelProviderAuthKindResponse,
268
277
  auth_options: z.object({
269
- header_name: z.string().min(1).optional()
278
+ header_name: z.string().min(1).optional(),
279
+ service: z.string().min(1).max(64).optional(),
280
+ region: z.string().min(1).max(64).optional()
270
281
  }),
271
282
  credential_secret_id: zSecretId,
272
283
  created_at: zTimestamp,
@@ -1598,7 +1609,7 @@ var zCreateMachinePoolRequestBase = z.object({
1598
1609
  });
1599
1610
  var zCreateMachinePoolRequest = zCreateMachinePoolRequestBase.and(z.union([
1600
1611
  z.object({
1601
- provider: z.enum(["unikraft"]),
1612
+ provider: z.enum(["unikraft", "modal"]),
1602
1613
  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" }),
1603
1614
  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" }),
1604
1615
  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" }),
@@ -2075,6 +2086,9 @@ var zCurrentUserOrg = z.object({
2075
2086
  role: z.string(),
2076
2087
  created_at: zTimestamp
2077
2088
  });
2089
+ var zListOrganizationsResponse = z.object({
2090
+ data: z.array(zCurrentUserOrg)
2091
+ });
2078
2092
  var zCurrentUser = z.object({
2079
2093
  user: zCurrentUserIdentity,
2080
2094
  orgs: z.array(zCurrentUserOrg)
@@ -2153,6 +2167,7 @@ var zRecordMachineFailureQuery = z.object({
2153
2167
  target_version: z.string().max(100).optional()
2154
2168
  });
2155
2169
  var zRecordMachineFailureResponse = z.void();
2170
+ var zListOrganizationsResponse2 = zListOrganizationsResponse;
2156
2171
  var zCreateOrganizationBody = zCreateOrganizationRequest;
2157
2172
  var zCreateOrganizationHeaders = z.object({
2158
2173
  "Idempotency-Key": z.string().min(1).max(255).optional()
@@ -4607,6 +4622,7 @@ __export(sdk_gen_exports, {
4607
4622
  listOrgApiKeys: () => listOrgApiKeys,
4608
4623
  listOrgInvitations: () => listOrgInvitations,
4609
4624
  listOrgMembers: () => listOrgMembers,
4625
+ listOrganizations: () => listOrganizations,
4610
4626
  listPendingInvitations: () => listPendingInvitations,
4611
4627
  listPersonalAccessTokens: () => listPersonalAccessTokens,
4612
4628
  listProjectAvailableSecrets: () => listProjectAvailableSecrets,
@@ -4731,6 +4747,20 @@ var recordMachineFailure = (options) => (options.client ?? client).post({
4731
4747
  ...options.headers
4732
4748
  }
4733
4749
  });
4750
+ var listOrganizations = (options) => (options?.client ?? client).get({
4751
+ responseValidator: relaxedResponseValidator(zListOrganizationsResponse2),
4752
+ security: [{
4753
+ key: "bearerAuth",
4754
+ scheme: "bearer",
4755
+ type: "http"
4756
+ }, {
4757
+ in: "cookie",
4758
+ name: "__Host-omnara_session",
4759
+ type: "apiKey"
4760
+ }],
4761
+ url: "/orgs",
4762
+ ...options
4763
+ });
4734
4764
  var createOrganization = (options) => (options.client ?? client).post({
4735
4765
  responseValidator: relaxedResponseValidator(zCreateOrganizationResponse2),
4736
4766
  security: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnara",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
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",