@omnara/sdk 0.1.34 → 0.1.36

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-YYS4ULEG.js";
3
+ } from "./chunk-5VXC3YQG.js";
4
4
  import "./chunk-NZCMY3BC.js";
5
- import "./chunk-3TGBABPT.js";
5
+ import "./chunk-2LTFYXMO.js";
6
6
 
7
7
  // src/browser.ts
8
8
  import * as z from "zod";
@@ -99,6 +99,8 @@ __export(zod_gen_exports, {
99
99
  zCancelAgentResponse2: () => zCancelAgentResponse2,
100
100
  zCancelQueuedBacklogInputPath: () => zCancelQueuedBacklogInputPath,
101
101
  zCancelQueuedBacklogInputResponse: () => zCancelQueuedBacklogInputResponse,
102
+ zChatIntegrationLauncher: () => zChatIntegrationLauncher,
103
+ zChatIntegrationSettings: () => zChatIntegrationSettings,
102
104
  zCheckMachinePoolConnectionBody: () => zCheckMachinePoolConnectionBody,
103
105
  zCheckMachinePoolConnectionPath: () => zCheckMachinePoolConnectionPath,
104
106
  zCheckMachinePoolConnectionRequest: () => zCheckMachinePoolConnectionRequest,
@@ -426,6 +428,9 @@ __export(zod_gen_exports, {
426
428
  zGetToolCatalogResponse: () => zGetToolCatalogResponse,
427
429
  zGitHubAppCredentialsSecretMaterial: () => zGitHubAppCredentialsSecretMaterial,
428
430
  zGitHubInstallations: () => zGitHubInstallations,
431
+ zGitHubIntegrationLauncher: () => zGitHubIntegrationLauncher,
432
+ zGitHubIntegrationSettings: () => zGitHubIntegrationSettings,
433
+ zGitHubRepository: () => zGitHubRepository,
429
434
  zGitHubSetup: () => zGitHubSetup,
430
435
  zGitHubSetupInstallation: () => zGitHubSetupInstallation,
431
436
  zGrantedSecretAvailability: () => zGrantedSecretAvailability,
@@ -500,9 +505,13 @@ __export(zod_gen_exports, {
500
505
  zListEventsPath: () => zListEventsPath,
501
506
  zListEventsQuery: () => zListEventsQuery,
502
507
  zListEventsResponse: () => zListEventsResponse,
508
+ zListGitHubRepositoriesResponse: () => zListGitHubRepositoriesResponse,
503
509
  zListIntegrationDefinitionsPath: () => zListIntegrationDefinitionsPath,
504
510
  zListIntegrationDefinitionsResponse: () => zListIntegrationDefinitionsResponse,
505
511
  zListIntegrationDefinitionsResponse2: () => zListIntegrationDefinitionsResponse2,
512
+ zListIntegrationGitHubRepositoriesPath: () => zListIntegrationGitHubRepositoriesPath,
513
+ zListIntegrationGitHubRepositoriesQuery: () => zListIntegrationGitHubRepositoriesQuery,
514
+ zListIntegrationGitHubRepositoriesResponse: () => zListIntegrationGitHubRepositoriesResponse,
506
515
  zListIntegrationSubscriptionsPath: () => zListIntegrationSubscriptionsPath,
507
516
  zListIntegrationSubscriptionsQuery: () => zListIntegrationSubscriptionsQuery,
508
517
  zListIntegrationSubscriptionsResponse: () => zListIntegrationSubscriptionsResponse,
@@ -997,7 +1006,9 @@ var zAgentConfigDefinitionEventWebhook = z.object({
997
1006
  url: z.string().min(1)
998
1007
  });
999
1008
  var zAgentConfigDefinitionGitCredentials = z.object({
1000
- integration: z.string().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,31}$/)
1009
+ integration: z.string().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,31}$/),
1010
+ repository_ids: z.array(z.int().gte(1)).min(1).max(500).optional(),
1011
+ read_only: z.boolean().optional()
1001
1012
  });
1002
1013
  var zAgentConfigDefinitionInteractionHandler = z.record(z.string(), z.never());
1003
1014
  var zAgentConfigDefinitionInteractionHandlers = z.record(z.string(), zAgentConfigDefinitionInteractionHandler).nullable();
@@ -1668,6 +1679,14 @@ var zGitHubInstallations = z.object({
1668
1679
  installations: z.array(zGitHubSetupInstallation),
1669
1680
  next_page: z.int().gte(1).lte(1e3).optional()
1670
1681
  });
1682
+ var zGitHubRepository = z.object({
1683
+ id: 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" }),
1684
+ name: z.string()
1685
+ });
1686
+ var zListGitHubRepositoriesResponse = z.object({
1687
+ data: z.array(zGitHubRepository),
1688
+ next_cursor: z.string().nullable()
1689
+ });
1671
1690
  var zSlackSetupIcon = z.object({
1672
1691
  filename: z.string().optional(),
1673
1692
  data_base64: z.string().min(1)
@@ -2869,7 +2888,9 @@ var zCreateMachinePoolRequest = zCreateMachinePoolRequestBase.and(z.union([
2869
2888
  provider: z.enum([
2870
2889
  "boxd",
2871
2890
  "createos",
2872
- "daytona"
2891
+ "daytona",
2892
+ "e2b",
2893
+ "superserve"
2873
2894
  ]),
2874
2895
  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" }),
2875
2896
  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" }),
@@ -3561,6 +3582,25 @@ var zListCronTriggersResponse = z.object({
3561
3582
  next_cursor: z.string().nullable()
3562
3583
  });
3563
3584
  var zIntegrationSettings = z.record(z.string(), z.unknown());
3585
+ var zGitHubIntegrationLauncher = z.object({
3586
+ profile: zAgentProfileId,
3587
+ trigger: z.enum([
3588
+ "mention",
3589
+ "pull_request_opened",
3590
+ "both"
3591
+ ]),
3592
+ repository_id: z.string().regex(/^[1-9][0-9]*$/).optional()
3593
+ });
3594
+ var zGitHubIntegrationSettings = z.object({
3595
+ launcher: zGitHubIntegrationLauncher.optional(),
3596
+ code_write: z.boolean().optional()
3597
+ });
3598
+ var zChatIntegrationLauncher = z.object({
3599
+ profiles: z.array(zAgentProfileId).min(1).max(16)
3600
+ });
3601
+ var zChatIntegrationSettings = z.object({
3602
+ launcher: zChatIntegrationLauncher.optional()
3603
+ });
3564
3604
  var zUpdateIntegrationRequest = z.object({
3565
3605
  settings: zIntegrationSettings
3566
3606
  });
@@ -3571,7 +3611,9 @@ var zIntegrationRuntimeFailure = z.object({
3571
3611
  var zIntegrationName = z.string().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,31}$/);
3572
3612
  var zCompiledGitCredentials = z.object({
3573
3613
  integration: zIntegrationName,
3574
- integration_id: zIntegrationId
3614
+ integration_id: zIntegrationId,
3615
+ repository_ids: z.array(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(),
3616
+ read_only: z.boolean().optional()
3575
3617
  });
3576
3618
  var zCompiledAgentConfig = z.object({
3577
3619
  version: z.string().optional(),
@@ -5075,6 +5117,7 @@ var zListIntegrationsPath = z.object({
5075
5117
  projectID: zProjectId
5076
5118
  });
5077
5119
  var zListIntegrationsQuery = z.object({
5120
+ name: z.string().min(1).max(200).optional(),
5078
5121
  limit: z.int().gte(1).lte(100).optional().default(50),
5079
5122
  cursor: z.string().max(1024).optional()
5080
5123
  });
@@ -5141,6 +5184,15 @@ var zDisconnectIntegrationPath = z.object({
5141
5184
  integrationID: zIntegrationId
5142
5185
  });
5143
5186
  var zDisconnectIntegrationResponse = zIntegration;
5187
+ var zListIntegrationGitHubRepositoriesPath = z.object({
5188
+ orgID: zOrganizationId,
5189
+ projectID: zProjectId,
5190
+ integrationID: zIntegrationId
5191
+ });
5192
+ var zListIntegrationGitHubRepositoriesQuery = z.object({
5193
+ cursor: z.string().max(1024).optional()
5194
+ });
5195
+ var zListIntegrationGitHubRepositoriesResponse = zListGitHubRepositoriesResponse;
5144
5196
  var zListIntegrationDefinitionsPath = z.object({
5145
5197
  orgID: zOrganizationId,
5146
5198
  projectID: zProjectId
@@ -5297,6 +5349,8 @@ export {
5297
5349
  zInspectGitHubInstallationsRequest,
5298
5350
  zGitHubSetupInstallation,
5299
5351
  zGitHubInstallations,
5352
+ zGitHubRepository,
5353
+ zListGitHubRepositoriesResponse,
5300
5354
  zSlackSetupIcon,
5301
5355
  zCreateSlackSetupRequest,
5302
5356
  zResolveAgentConfigToolsRequest,
@@ -5599,6 +5653,10 @@ export {
5599
5653
  zCronTrigger,
5600
5654
  zListCronTriggersResponse,
5601
5655
  zIntegrationSettings,
5656
+ zGitHubIntegrationLauncher,
5657
+ zGitHubIntegrationSettings,
5658
+ zChatIntegrationLauncher,
5659
+ zChatIntegrationSettings,
5602
5660
  zUpdateIntegrationRequest,
5603
5661
  zIntegrationRuntimeFailure,
5604
5662
  zIntegrationName,
@@ -6123,8 +6181,11 @@ export {
6123
6181
  zConfigureIntegrationResponse,
6124
6182
  zDisconnectIntegrationPath,
6125
6183
  zDisconnectIntegrationResponse,
6184
+ zListIntegrationGitHubRepositoriesPath,
6185
+ zListIntegrationGitHubRepositoriesQuery,
6186
+ zListIntegrationGitHubRepositoriesResponse,
6126
6187
  zListIntegrationDefinitionsPath,
6127
6188
  zListIntegrationDefinitionsResponse2,
6128
6189
  zod_gen_exports
6129
6190
  };
6130
- //# sourceMappingURL=chunk-3TGBABPT.js.map
6191
+ //# sourceMappingURL=chunk-2LTFYXMO.js.map