@distilled.cloud/namespacelabs 0.0.0 → 1.0.0-rc.21

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 (219) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +130 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +73 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +59 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +44 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +2 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +19 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +12 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/buildkite_jobs.d.ts +129 -0
  26. package/lib/services/buildkite_jobs.d.ts.map +1 -0
  27. package/lib/services/buildkite_jobs.js +2 -0
  28. package/lib/services/buildkite_jobs.js.map +1 -0
  29. package/lib/services/buildkite_queue.d.ts +186 -0
  30. package/lib/services/buildkite_queue.d.ts.map +1 -0
  31. package/lib/services/buildkite_queue.js +2 -0
  32. package/lib/services/buildkite_queue.js.map +1 -0
  33. package/lib/services/index.d.ts +3 -0
  34. package/lib/services/index.d.ts.map +1 -0
  35. package/lib/services/index.js +2 -0
  36. package/lib/services.lazy/buildkite_jobs.js +1 -0
  37. package/lib/services.lazy/buildkite_queue.js +1 -0
  38. package/lib/services.lazy/index.js +3 -0
  39. package/lib/traits.d.ts +3 -0
  40. package/lib/traits.d.ts.map +1 -0
  41. package/lib/traits.js +1 -0
  42. package/lib/unstable-services/artifacts.d.ts +268 -0
  43. package/lib/unstable-services/artifacts.d.ts.map +1 -0
  44. package/lib/unstable-services/artifacts.js +2 -0
  45. package/lib/unstable-services/artifacts.js.map +1 -0
  46. package/lib/unstable-services/audit.d.ts +157 -0
  47. package/lib/unstable-services/audit.d.ts.map +1 -0
  48. package/lib/unstable-services/audit.js +2 -0
  49. package/lib/unstable-services/audit.js.map +1 -0
  50. package/lib/unstable-services/bazel.d.ts +181 -0
  51. package/lib/unstable-services/bazel.d.ts.map +1 -0
  52. package/lib/unstable-services/bazel.js +2 -0
  53. package/lib/unstable-services/bazel.js.map +1 -0
  54. package/lib/unstable-services/bazel_cache.d.ts +126 -0
  55. package/lib/unstable-services/bazel_cache.d.ts.map +1 -0
  56. package/lib/unstable-services/bazel_cache.js +2 -0
  57. package/lib/unstable-services/bazel_cache.js.map +1 -0
  58. package/lib/unstable-services/builder.d.ts +242 -0
  59. package/lib/unstable-services/builder.d.ts.map +1 -0
  60. package/lib/unstable-services/builder.js +2 -0
  61. package/lib/unstable-services/builder.js.map +1 -0
  62. package/lib/unstable-services/compute.d.ts +1124 -0
  63. package/lib/unstable-services/compute.d.ts.map +1 -0
  64. package/lib/unstable-services/compute.js +47 -0
  65. package/lib/unstable-services/compute.js.map +1 -0
  66. package/lib/unstable-services/compute_command.d.ts +120 -0
  67. package/lib/unstable-services/compute_command.d.ts.map +1 -0
  68. package/lib/unstable-services/compute_command.js +2 -0
  69. package/lib/unstable-services/compute_command.js.map +1 -0
  70. package/lib/unstable-services/compute_observability.d.ts +165 -0
  71. package/lib/unstable-services/compute_observability.d.ts.map +1 -0
  72. package/lib/unstable-services/compute_observability.js +2 -0
  73. package/lib/unstable-services/compute_observability.js.map +1 -0
  74. package/lib/unstable-services/compute_storage.d.ts +379 -0
  75. package/lib/unstable-services/compute_storage.d.ts.map +1 -0
  76. package/lib/unstable-services/compute_storage.js +33 -0
  77. package/lib/unstable-services/compute_storage.js.map +1 -0
  78. package/lib/unstable-services/compute_usage.d.ts +283 -0
  79. package/lib/unstable-services/compute_usage.d.ts.map +1 -0
  80. package/lib/unstable-services/compute_usage.js +2 -0
  81. package/lib/unstable-services/compute_usage.js.map +1 -0
  82. package/lib/unstable-services/egress.d.ts +191 -0
  83. package/lib/unstable-services/egress.d.ts.map +1 -0
  84. package/lib/unstable-services/egress.js +2 -0
  85. package/lib/unstable-services/egress.js.map +1 -0
  86. package/lib/unstable-services/experimental_compute_reservation.d.ts +672 -0
  87. package/lib/unstable-services/experimental_compute_reservation.d.ts.map +1 -0
  88. package/lib/unstable-services/experimental_compute_reservation.js +23 -0
  89. package/lib/unstable-services/experimental_compute_reservation.js.map +1 -0
  90. package/lib/unstable-services/experimental_remote_results.d.ts +496 -0
  91. package/lib/unstable-services/experimental_remote_results.d.ts.map +1 -0
  92. package/lib/unstable-services/experimental_remote_results.js +2 -0
  93. package/lib/unstable-services/experimental_remote_results.js.map +1 -0
  94. package/lib/unstable-services/github_image.d.ts +162 -0
  95. package/lib/unstable-services/github_image.d.ts.map +1 -0
  96. package/lib/unstable-services/github_image.js +2 -0
  97. package/lib/unstable-services/github_image.js.map +1 -0
  98. package/lib/unstable-services/github_jobs.d.ts +183 -0
  99. package/lib/unstable-services/github_jobs.d.ts.map +1 -0
  100. package/lib/unstable-services/github_jobs.js +2 -0
  101. package/lib/unstable-services/github_jobs.js.map +1 -0
  102. package/lib/unstable-services/github_profile.d.ts +296 -0
  103. package/lib/unstable-services/github_profile.d.ts.map +1 -0
  104. package/lib/unstable-services/github_profile.js +2 -0
  105. package/lib/unstable-services/github_profile.js.map +1 -0
  106. package/lib/unstable-services/gradle_cache.d.ts +125 -0
  107. package/lib/unstable-services/gradle_cache.d.ts.map +1 -0
  108. package/lib/unstable-services/gradle_cache.js +2 -0
  109. package/lib/unstable-services/gradle_cache.js.map +1 -0
  110. package/lib/unstable-services/httpcache.d.ts +125 -0
  111. package/lib/unstable-services/httpcache.d.ts.map +1 -0
  112. package/lib/unstable-services/httpcache.js +2 -0
  113. package/lib/unstable-services/httpcache.js.map +1 -0
  114. package/lib/unstable-services/iam_tenant.d.ts +457 -0
  115. package/lib/unstable-services/iam_tenant.d.ts.map +1 -0
  116. package/lib/unstable-services/iam_tenant.js +45 -0
  117. package/lib/unstable-services/iam_tenant.js.map +1 -0
  118. package/lib/unstable-services/iam_tenant_membership.d.ts +114 -0
  119. package/lib/unstable-services/iam_tenant_membership.d.ts.map +1 -0
  120. package/lib/unstable-services/iam_tenant_membership.js +2 -0
  121. package/lib/unstable-services/iam_tenant_membership.js.map +1 -0
  122. package/lib/unstable-services/iam_token.d.ts +257 -0
  123. package/lib/unstable-services/iam_token.d.ts.map +1 -0
  124. package/lib/unstable-services/iam_token.js +2 -0
  125. package/lib/unstable-services/iam_token.js.map +1 -0
  126. package/lib/unstable-services/image.d.ts +222 -0
  127. package/lib/unstable-services/image.d.ts.map +1 -0
  128. package/lib/unstable-services/image.js +2 -0
  129. package/lib/unstable-services/image.js.map +1 -0
  130. package/lib/unstable-services/index.d.ts +28 -0
  131. package/lib/unstable-services/index.d.ts.map +1 -0
  132. package/lib/unstable-services/index.js +27 -0
  133. package/lib/unstable-services/private_devbox.d.ts +1180 -0
  134. package/lib/unstable-services/private_devbox.d.ts.map +1 -0
  135. package/lib/unstable-services/private_devbox.js +81 -0
  136. package/lib/unstable-services/private_devbox.js.map +1 -0
  137. package/lib/unstable-services/private_user_sessions.d.ts +145 -0
  138. package/lib/unstable-services/private_user_sessions.d.ts.map +1 -0
  139. package/lib/unstable-services/private_user_sessions.js +2 -0
  140. package/lib/unstable-services/private_user_sessions.js.map +1 -0
  141. package/lib/unstable-services/registry.d.ts +373 -0
  142. package/lib/unstable-services/registry.d.ts.map +1 -0
  143. package/lib/unstable-services/registry.js +34 -0
  144. package/lib/unstable-services/registry.js.map +1 -0
  145. package/lib/unstable-services/testing.d.ts +160 -0
  146. package/lib/unstable-services/testing.d.ts.map +1 -0
  147. package/lib/unstable-services/testing.js +2 -0
  148. package/lib/unstable-services/testing.js.map +1 -0
  149. package/lib/unstable-services/vault.d.ts +203 -0
  150. package/lib/unstable-services/vault.d.ts.map +1 -0
  151. package/lib/unstable-services/vault.js +2 -0
  152. package/lib/unstable-services/vault.js.map +1 -0
  153. package/lib/unstable-services.lazy/artifacts.js +1 -0
  154. package/lib/unstable-services.lazy/audit.js +1 -0
  155. package/lib/unstable-services.lazy/bazel.js +1 -0
  156. package/lib/unstable-services.lazy/bazel_cache.js +1 -0
  157. package/lib/unstable-services.lazy/builder.js +1 -0
  158. package/lib/unstable-services.lazy/compute.js +4 -0
  159. package/lib/unstable-services.lazy/compute_command.js +1 -0
  160. package/lib/unstable-services.lazy/compute_observability.js +1 -0
  161. package/lib/unstable-services.lazy/compute_storage.js +4 -0
  162. package/lib/unstable-services.lazy/compute_usage.js +1 -0
  163. package/lib/unstable-services.lazy/egress.js +1 -0
  164. package/lib/unstable-services.lazy/experimental_compute_reservation.js +4 -0
  165. package/lib/unstable-services.lazy/experimental_remote_results.js +1 -0
  166. package/lib/unstable-services.lazy/github_image.js +1 -0
  167. package/lib/unstable-services.lazy/github_jobs.js +1 -0
  168. package/lib/unstable-services.lazy/github_profile.js +1 -0
  169. package/lib/unstable-services.lazy/gradle_cache.js +1 -0
  170. package/lib/unstable-services.lazy/httpcache.js +1 -0
  171. package/lib/unstable-services.lazy/iam_tenant.js +4 -0
  172. package/lib/unstable-services.lazy/iam_tenant_membership.js +1 -0
  173. package/lib/unstable-services.lazy/iam_token.js +1 -0
  174. package/lib/unstable-services.lazy/image.js +1 -0
  175. package/lib/unstable-services.lazy/index.js +3 -0
  176. package/lib/unstable-services.lazy/private_devbox.js +4 -0
  177. package/lib/unstable-services.lazy/private_user_sessions.js +1 -0
  178. package/lib/unstable-services.lazy/registry.js +4 -0
  179. package/lib/unstable-services.lazy/testing.js +1 -0
  180. package/lib/unstable-services.lazy/vault.js +1 -0
  181. package/package.json +89 -2
  182. package/src/credentials.ts +208 -0
  183. package/src/errors.ts +71 -0
  184. package/src/index.ts +50 -0
  185. package/src/pagination.ts +1 -0
  186. package/src/protocol.ts +83 -0
  187. package/src/retry.ts +28 -0
  188. package/src/services/buildkite_jobs.ts +230 -0
  189. package/src/services/buildkite_queue.ts +453 -0
  190. package/src/services/index.ts +3 -0
  191. package/src/traits.ts +36 -0
  192. package/src/unstable-services/artifacts.ts +769 -0
  193. package/src/unstable-services/audit.ts +323 -0
  194. package/src/unstable-services/bazel.ts +423 -0
  195. package/src/unstable-services/bazel_cache.ts +219 -0
  196. package/src/unstable-services/builder.ts +576 -0
  197. package/src/unstable-services/compute.ts +2991 -0
  198. package/src/unstable-services/compute_command.ts +220 -0
  199. package/src/unstable-services/compute_observability.ts +436 -0
  200. package/src/unstable-services/compute_storage.ts +1167 -0
  201. package/src/unstable-services/compute_usage.ts +738 -0
  202. package/src/unstable-services/egress.ts +516 -0
  203. package/src/unstable-services/experimental_compute_reservation.ts +1499 -0
  204. package/src/unstable-services/experimental_remote_results.ts +1165 -0
  205. package/src/unstable-services/github_image.ts +301 -0
  206. package/src/unstable-services/github_jobs.ts +389 -0
  207. package/src/unstable-services/github_profile.ts +729 -0
  208. package/src/unstable-services/gradle_cache.ts +271 -0
  209. package/src/unstable-services/httpcache.ts +271 -0
  210. package/src/unstable-services/iam_tenant.ts +1720 -0
  211. package/src/unstable-services/iam_tenant_membership.ts +253 -0
  212. package/src/unstable-services/iam_token.ts +788 -0
  213. package/src/unstable-services/image.ts +602 -0
  214. package/src/unstable-services/index.ts +28 -0
  215. package/src/unstable-services/private_devbox.ts +4256 -0
  216. package/src/unstable-services/private_user_sessions.ts +410 -0
  217. package/src/unstable-services/registry.ts +1242 -0
  218. package/src/unstable-services/testing.ts +394 -0
  219. package/src/unstable-services/vault.ts +522 -0
@@ -0,0 +1,4256 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as C from "@distilled.cloud/core/category";
3
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (buf.build/namespace/cloud -> smithy). Do not edit.
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import type * as Redacted from "effect/Redacted";
7
+ import { NamespaceLabsServiceErrors } from "../errors.ts";
8
+ import { paginateCursor } from "../pagination.ts";
9
+ import {
10
+ NamespaceLabsProtocol,
11
+ type NamespaceLabsOpError,
12
+ type NamespaceLabsOpContext,
13
+ } from "../protocol.ts";
14
+ import * as Retry from "../retry.ts";
15
+ import * as T from "../traits.ts";
16
+ // Schema table, filled on first reach (see __S at the end).
17
+ const __s: any[] = [];
18
+
19
+ export type { NamespaceLabsOpError, NamespaceLabsOpContext };
20
+
21
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
22
+ const TELEMETRY = {
23
+ system: "namespacelabs-api",
24
+ responseHeaders: [
25
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
26
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
27
+ ],
28
+ prefix: "Namespacelabs",
29
+ service: "DevBoxService",
30
+ propagate: "w3c",
31
+ } as const;
32
+
33
+ export class AlreadyExists
34
+ extends /*@__PURE__*/ T.applyErrorMatchers(
35
+ /*@__PURE__*/ S.TaggedError<AlreadyExists>()("AlreadyExists", {
36
+ message: S.String,
37
+ body: S.Unknown,
38
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
39
+ }).pipe(C.withConflictError),
40
+ [{ status: 409, body: { "/code": "already_exists" } }],
41
+ ) {}
42
+
43
+ export class FailedPrecondition
44
+ extends /*@__PURE__*/ T.applyErrorMatchers(
45
+ /*@__PURE__*/ S.TaggedError<FailedPrecondition>()("FailedPrecondition", {
46
+ message: S.String,
47
+ body: S.Unknown,
48
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
49
+ }).pipe(C.withBadRequestError),
50
+ [{ status: 400, body: { "/code": "failed_precondition" } }],
51
+ ) {}
52
+
53
+ export class InvalidArgument
54
+ extends /*@__PURE__*/ T.applyErrorMatchers(
55
+ /*@__PURE__*/ S.TaggedError<InvalidArgument>()("InvalidArgument", {
56
+ message: S.String,
57
+ body: S.Unknown,
58
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
59
+ }).pipe(C.withBadRequestError),
60
+ [{ status: 400, body: { "/code": "invalid_argument" } }],
61
+ ) {}
62
+
63
+ export class NotFound
64
+ extends /*@__PURE__*/ T.applyErrorMatchers(
65
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
66
+ message: S.String,
67
+ body: S.Unknown,
68
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
69
+ }).pipe(C.withBadRequestError),
70
+ [{ status: 404 }],
71
+ ) {}
72
+
73
+ export class PermissionDenied
74
+ extends /*@__PURE__*/ T.applyErrorMatchers(
75
+ /*@__PURE__*/ S.TaggedError<PermissionDenied>()("PermissionDenied", {
76
+ message: S.String,
77
+ body: S.Unknown,
78
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
79
+ }).pipe(C.withAuthError),
80
+ [{ status: 403 }],
81
+ ) {}
82
+
83
+ export class ResourceExhausted
84
+ extends /*@__PURE__*/ T.applyErrorMatchers(
85
+ /*@__PURE__*/ S.TaggedError<ResourceExhausted>()("ResourceExhausted", {
86
+ message: S.String,
87
+ body: S.Unknown,
88
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
89
+ retryAfter: /*@__PURE__*/ S.optional(S.Duration),
90
+ }).pipe(C.withThrottlingError),
91
+ [{ status: 429 }],
92
+ ) {}
93
+
94
+ export class Unauthenticated
95
+ extends /*@__PURE__*/ T.applyErrorMatchers(
96
+ /*@__PURE__*/ S.TaggedError<Unauthenticated>()("Unauthenticated", {
97
+ message: S.String,
98
+ body: S.Unknown,
99
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
100
+ }).pipe(C.withAuthError),
101
+ [{ status: 401 }],
102
+ ) {}
103
+
104
+ /** Labels are key/value pairs attached to entities such as tenants. */
105
+ export interface Label {
106
+ /** A name is an string up to 63 bytes that matches the regular expression `^[a-z]([a-z0-9-.]*[a-z0-9])?$`. */
107
+ name?: string | undefined;
108
+ /** Label values are arbitrary values up to 255 bytes. */
109
+ value?: string | undefined;
110
+ }
111
+ export type LabelList = Array<Label>;
112
+ /** Defines an instance shape: the combination of CPU, RAM and Disk that the instance should use. The size of the ephemeral disk automatically scales with the selected CPU/RAM allocation. See also https://namespace.so/docs/architecture/compute/machine-shapes#storage-allocation Usable values are constrained by policy, and are typically only settable in values as powers of two. */
113
+ export interface InstanceShape {
114
+ /** Number of virtual CPUs. Typically a power of two (e.g. 2, 4, 8, 16). */
115
+ virtualCpu?: number | undefined;
116
+ /** Memory in megabytes. Typically scales with CPU (e.g. 2048 per vCPU). */
117
+ memoryMegabytes?: number | undefined;
118
+ /** Architecture of the instance, e.g. "amd64" or "arm64". */
119
+ machineArch?: string | undefined;
120
+ /** Operating system of the instance, e.g. "linux" or "macos". */
121
+ os?: string | undefined;
122
+ /** Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors */
123
+ selectors?: LabelList | undefined;
124
+ }
125
+ export type StringList = Array<string>;
126
+ export interface Features {
127
+ enabled?: StringList | undefined;
128
+ }
129
+ export type VersionControlSpecCheckoutMethod =
130
+ | "CHECKOUT_METHOD_UNSPECIFIED"
131
+ | "CHECKOUT_METHOD_GIT_CLONE"
132
+ | "CHECKOUT_METHOD_GIT_SNAPSHOT_UNPACK";
133
+ export interface VersionControlSpecGitRepositorySpec {
134
+ repository?: string | undefined;
135
+ /** Branch, tag, or commit SHA to check out. When empty, the repository's default branch is used. */
136
+ ref?: string | undefined;
137
+ checkoutMethod?: VersionControlSpecCheckoutMethod | (string & {}) | undefined;
138
+ }
139
+ export type VersionControlSpecGitRepositorySpecList = Array<VersionControlSpecGitRepositorySpec>;
140
+ export interface VersionControlSpec {
141
+ gitRepository?: string | undefined;
142
+ /** Branch, tag, or commit SHA to check out. When empty, the repository's default branch is used. */
143
+ ref?: string | undefined;
144
+ checkoutMethod?: VersionControlSpecCheckoutMethod | (string & {}) | undefined;
145
+ /** WIP: multi-repo support that will deprecate fields above. Not yet ready! */
146
+ repositories?: VersionControlSpecGitRepositorySpecList | undefined;
147
+ }
148
+ export type AccessMode = "ACCESS_MODE_UNSPECIFIED" | "USER_PRIVATE" | "TENANT_WIDE";
149
+ export interface BlueprintSpecSessionSpec {
150
+ name?: string | undefined;
151
+ emoji?: string | undefined;
152
+ command?: string | undefined;
153
+ }
154
+ export type BlueprintSpecSessionSpecList = Array<BlueprintSpecSessionSpec>;
155
+ export interface IntegrationsTailscaleIntegration {
156
+ /** Name of a tenant-level Tailscale integration spec (defined in tenant policy under integrations.tailscale). Use `nsc integrations tailscale list` to see available specs. The oauth_client_id and tags are resolved from the policy spec. */
157
+ fromSpec?: string | undefined;
158
+ }
159
+ export interface IntegrationsClaudeIntegration {
160
+ integrationId?: string | undefined;
161
+ claudeSessionId?: string | undefined;
162
+ }
163
+ export interface Integrations {
164
+ tailscale?: IntegrationsTailscaleIntegration | undefined;
165
+ claude?: IntegrationsClaudeIntegration | undefined;
166
+ }
167
+ export interface EphemeralSpec {
168
+ /** How long a stopped instance is retained before it is eligible for expiry. Overrides the devbox app policy default: unset inherit the app policy default < 0 never expire (cleanup disabled) = 0 expire as soon as it is stopped > 0 expire after being stopped for at least this long Expiry is not immediate once the duration has elapsed. */
169
+ stoppedRetentionDuration?: string | undefined;
170
+ }
171
+ export interface BlueprintSpecEnvVar {
172
+ name?: string | undefined;
173
+ value?: string | undefined;
174
+ fromSecretId?: string | undefined;
175
+ }
176
+ export type BlueprintSpecEnvVarList = Array<BlueprintSpecEnvVar>;
177
+ export interface NetworkPolicySpecEgressDomains {
178
+ /** Prefix a domain with "*." to include all of its subdomains. */
179
+ allowed?: StringList | undefined;
180
+ /** If true, log egress decisions but don't block. */
181
+ advisory?: boolean | undefined;
182
+ }
183
+ export interface NetworkPolicySpecEgressPolicy {
184
+ tag?: string | undefined;
185
+ }
186
+ export interface NetworkPolicySpec {
187
+ /** If set, restrict outbound network access to the listed domains. Namespace infrastructure domains are always included. */
188
+ egressDomains?: NetworkPolicySpecEgressDomains | undefined;
189
+ /** If set, apply the reusable workspace egress policy identified by tag. Mutually exclusive with egress_domains. */
190
+ egressPolicy?: NetworkPolicySpecEgressPolicy | undefined;
191
+ }
192
+ export type PortSpecKind = "KIND_UNSPECIFIED" | "KIND_PORT_FORWARD" | "KIND_HTTP_INGRESS";
193
+ export interface PortSpec {
194
+ /** Optional. */
195
+ name?: string | undefined;
196
+ /** Must be 1-65535 and not use a Namespace-reserved port. */
197
+ number?: number | undefined;
198
+ /** KIND_UNSPECIFIED is invalid when persisted. */
199
+ kind?: PortSpecKind | (string & {}) | undefined;
200
+ }
201
+ export type PortSpecList = Array<PortSpec>;
202
+ export interface ResolvableValue {
203
+ static?: string | undefined;
204
+ fromSecretId?: string | undefined;
205
+ }
206
+ export interface HttpHeader {
207
+ name?: string | undefined;
208
+ value?: string | undefined;
209
+ valueFrom?: ResolvableValue | undefined;
210
+ }
211
+ export type HttpHeaderList = Array<HttpHeader>;
212
+ export interface HttpCallbackEndpoint {
213
+ postUrl?: string | undefined;
214
+ headers?: HttpHeaderList | undefined;
215
+ /** If present, the body of the callback response will be signed and provided as an HMAC hash using the specified secret. The X-Namespace-Signature header will include a value of the form `ts=<timestamp>,sha256=<hmac>`, where <hmac> is a SHA256-signed message consisting of `<timestamp>,<response body>`. */
216
+ signWithSecretId?: string | undefined;
217
+ }
218
+ export type PersistenceMode =
219
+ | "PERSISTENCE_MODE_UNSPECIFIED"
220
+ | "PERSISTENCE_MODE_WORKSPACE"
221
+ | "PERSISTENCE_MODE_WHOLE_SYSTEM";
222
+ export interface ServiceSpecCwd {
223
+ absolute?: string | undefined;
224
+ workspaceRelative?: string | undefined;
225
+ }
226
+ export interface ServiceSpecCommand {
227
+ executable?: string | undefined;
228
+ args?: StringList | undefined;
229
+ cwd?: ServiceSpecCwd | undefined;
230
+ }
231
+ export interface ServiceSpec {
232
+ name?: string | undefined;
233
+ command?: ServiceSpecCommand | undefined;
234
+ ports?: PortSpecList | undefined;
235
+ }
236
+ export type ServiceSpecList = Array<ServiceSpec>;
237
+ export type WorkloadTokenSpecAccessLevel =
238
+ | "ACCESS_LEVEL_UNSPECIFIED"
239
+ | "ACCESS_LEVEL_RESTRICTED"
240
+ | "ACCESS_LEVEL_PERMISSIVE";
241
+ export interface WorkloadTokenSpec {
242
+ /** Tenant policy may restrict this selection at launch. */
243
+ accessLevel?: WorkloadTokenSpecAccessLevel | (string & {}) | undefined;
244
+ }
245
+ export interface ActivateRequestExperimentalDevinOutposts {
246
+ connectToken?: string | Redacted.Redacted<string> | undefined;
247
+ sessionId?: string | undefined;
248
+ host?: string | undefined;
249
+ remoteBinarySha?: string | undefined;
250
+ }
251
+ export interface ActivateRequestExperimentalCursorWorker {
252
+ accessToken?: string | Redacted.Redacted<string> | undefined;
253
+ workerId?: string | undefined;
254
+ poolName?: string | undefined;
255
+ requestId?: string | undefined;
256
+ }
257
+ export interface ActivateRequestExperimentalClaudeAgent {}
258
+ export interface ActivateRequestExperimental {
259
+ agentImageref?: string | undefined;
260
+ bakeImageref?: string | undefined;
261
+ opaqueFeatures?: StringList | undefined;
262
+ enableDbus?: boolean | undefined;
263
+ devinOutposts?: ActivateRequestExperimentalDevinOutposts | undefined;
264
+ cursorWorker?: ActivateRequestExperimentalCursorWorker | undefined;
265
+ claudeAgent?: ActivateRequestExperimentalClaudeAgent | undefined;
266
+ }
267
+ export interface CreateRequest2 {
268
+ name?: string | undefined;
269
+ imageRef?: string | undefined;
270
+ instanceShape?: InstanceShape | undefined;
271
+ site?: string | undefined;
272
+ volumeName?: string | undefined;
273
+ volumeSizeGb?: string | undefined;
274
+ cacheVolumeSizeGb?: string | undefined;
275
+ repository?: string | undefined;
276
+ privateFeatures?: StringList | undefined;
277
+ /** Deprecated: use features instead. */
278
+ enabledFeatures?: StringList | undefined;
279
+ /** Overrides default enabled features. Takes precedence over enabled_features. When unset, falls back to enabled_features or tenant defaults. When set with an empty enabled list, explicitly disables all features. */
280
+ features?: Features | undefined;
281
+ /** If set, looks up the image by name and resolves image_ref. Exclusive with image_ref. */
282
+ imageName?: string | undefined;
283
+ /** If set, used as-is. Exclusive with repository. */
284
+ versionControl?: VersionControlSpec | undefined;
285
+ /** If set, passed as the initial AgentRuntimeConfiguration.busy_ensure_minimum_duration at activation time. */
286
+ busyEnsureMinimumDuration?: string | undefined;
287
+ /** If unset, defaults to DevboxDefaults.access_mode. */
288
+ accessMode?: AccessMode | (string & {}) | undefined;
289
+ /** Additional terminal sessions to create at startup. */
290
+ sessions?: BlueprintSpecSessionSpecList | undefined;
291
+ /** Integrations to enable on the backing instance (e.g. Tailscale). */
292
+ integrations?: Integrations | undefined;
293
+ /** Free-form description of what this devbox is for. */
294
+ documentedPurpose?: string | undefined;
295
+ /** If set, marks the devbox as ephemeral. Presence of this field is the signal; sub-fields configure ephemeral-specific behaviour. */
296
+ ephemeral?: EphemeralSpec | undefined;
297
+ /** Overrides the image's privileged setting. Unset uses the image default. */
298
+ privileged?: boolean | undefined;
299
+ /** Environment variables to set on the devbox container. Merged on top of any env vars defined by the image, keyed by name. */
300
+ environment?: BlueprintSpecEnvVarList | undefined;
301
+ /** If unset, inherits DevboxDefaults.network_policy. Set to an empty NetworkPolicySpec{} to opt out of inheritance. */
302
+ networkPolicy?: NetworkPolicySpec | undefined;
303
+ ports?: PortSpecList | undefined;
304
+ /** Labels attached to the devbox. Label names using Namespace-reserved prefixes are only accepted by trusted internal callers. */
305
+ labels?: LabelList | undefined;
306
+ /** Script to run once when the devbox is first initialized. */
307
+ initScript?: string | undefined;
308
+ /** Receives lifecycle events for every compute instance backing this devbox. */
309
+ instanceEventCallback?: HttpCallbackEndpoint | undefined;
310
+ persistenceMode?: PersistenceMode | (string & {}) | undefined;
311
+ services?: ServiceSpecList | undefined;
312
+ workloadToken?: WorkloadTokenSpec | undefined;
313
+ activate?: boolean | undefined;
314
+ activateExperimental?: ActivateRequestExperimental | undefined;
315
+ }
316
+ export interface AcquireLeaseRequest {
317
+ /** AcquireLease calls with the same tag resolve to the same underlying Devbox if it exists. Allows callers to decide what configuration is classed as matching. */
318
+ tag?: string | undefined;
319
+ /** Used to create a new devbox when no unleased devbox matches the tag. */
320
+ create?: CreateRequest2 | undefined;
321
+ }
322
+ export interface BlueprintRef {
323
+ blueprintName: string;
324
+ blueprintId: string;
325
+ }
326
+ export interface BlueprintSpecPortForward {
327
+ port?: number | undefined;
328
+ label?: string | undefined;
329
+ }
330
+ export type BlueprintSpecPortForwardList = Array<BlueprintSpecPortForward>;
331
+ export interface BlueprintSpecOpRunCommand {
332
+ command?: string | undefined;
333
+ args?: StringList | undefined;
334
+ }
335
+ export interface BlueprintSpecOpRunScript {
336
+ script?: string | undefined;
337
+ }
338
+ export interface BlueprintSpecOp {
339
+ runCommand?: BlueprintSpecOpRunCommand | undefined;
340
+ runScript?: BlueprintSpecOpRunScript | undefined;
341
+ }
342
+ export type BlueprintSpecOpList = Array<BlueprintSpecOp>;
343
+ export interface BlueprintSpecVolume {
344
+ mountPath?: string | undefined;
345
+ volumeName?: string | undefined;
346
+ }
347
+ export type BlueprintSpecVolumeList = Array<BlueprintSpecVolume>;
348
+ export interface BlueprintSpecUserOrUid {
349
+ uid?: number | undefined;
350
+ user?: string | undefined;
351
+ }
352
+ export type BlueprintSpecInitSystem = "INIT_SYSTEM_UNKNOWN" | "SYSTEMD";
353
+ export interface BlueprintSpec {
354
+ remoteUser?: string | undefined;
355
+ shell?: string | undefined;
356
+ portForwards?: BlueprintSpecPortForwardList | undefined;
357
+ privileged?: boolean | undefined;
358
+ capAdd?: StringList | undefined;
359
+ securityOpt?: StringList | undefined;
360
+ environment?: BlueprintSpecEnvVarList | undefined;
361
+ onCreate?: BlueprintSpecOpList | undefined;
362
+ onStartup?: BlueprintSpecOpList | undefined;
363
+ includeInPath?: StringList | undefined;
364
+ volumes?: BlueprintSpecVolumeList | undefined;
365
+ wholeSystemPersistency?: boolean | undefined;
366
+ cacheVolumeTag?: string | undefined;
367
+ cacheVolumeSizeGb?: string | undefined;
368
+ dockerSockUser?: BlueprintSpecUserOrUid | undefined;
369
+ setupDockerClient?: boolean | undefined;
370
+ workspaceDir?: string | undefined;
371
+ /** Terminal sessions to create at startup. */
372
+ sessions?: BlueprintSpecSessionSpecList | undefined;
373
+ /** The init system the image runs as PID 1. Honored only for tenants in the devbox.accept_image_init_system experiment. */
374
+ initSystem?: BlueprintSpecInitSystem | (string & {}) | undefined;
375
+ }
376
+ export interface DevBoxResolvedImage {
377
+ id: string;
378
+ name: string;
379
+ version: string;
380
+ }
381
+ export type HttpAccessModeOwnerAccess = ActivateRequestExperimentalClaudeAgent;
382
+ export type HttpAccessModeTenantAccess = ActivateRequestExperimentalClaudeAgent;
383
+ export type HttpAccessModePublicAccess = ActivateRequestExperimentalClaudeAgent;
384
+ export interface HttpAccessMode {
385
+ /** Fields are set to a non-nil value when enabled & to be enforced. Note, it is an error for none to be set */
386
+ owner?: ActivateRequestExperimentalClaudeAgent | undefined;
387
+ tenant?: ActivateRequestExperimentalClaudeAgent | undefined;
388
+ public?: ActivateRequestExperimentalClaudeAgent | undefined;
389
+ }
390
+ /** PoolLease captures the latest AcquireLease/ReleaseLease state of a Devbox, as surfaced on the Devbox returned by List and Fetch. The tag identifies the pool the devbox was leased from. */
391
+ export interface PoolLease {
392
+ /** The tag identifies the pool this devbox was last leased from. */
393
+ tag: string;
394
+ leaseId: string;
395
+ acquiredAt?: string | undefined;
396
+ /** If unset, this lease is still active (i.e. not yet released). Otherwise, the time at which ReleaseLease was called. */
397
+ releasedAt?: string | undefined;
398
+ }
399
+ export interface DevBox {
400
+ id: string;
401
+ name: string;
402
+ createdAt?: string | undefined;
403
+ lastUsedAt?: string | undefined;
404
+ destroyedAt?: string | undefined;
405
+ imageRef: string;
406
+ instanceShape?: InstanceShape | undefined;
407
+ site: string;
408
+ /** E.g. user_... */
409
+ creator: string;
410
+ volumeName: string;
411
+ volumeSizeGb: string;
412
+ cacheVolumeSizeGb: string;
413
+ /** Use version_control.repositories. */
414
+ repository: string;
415
+ blueprintRef?: BlueprintRef | undefined;
416
+ workspaceDir: string;
417
+ defaultDir: string;
418
+ spec?: BlueprintSpec | undefined;
419
+ mainUser: string;
420
+ /** Use AgentService.ListPorts. */
421
+ portForwards: BlueprintSpecPortForwardList;
422
+ privateFeatures: StringList;
423
+ enabledFeatures: StringList;
424
+ resolvedImage?: DevBoxResolvedImage | undefined;
425
+ busyEnsureMinimumDuration?: string | undefined;
426
+ accessMode: AccessMode;
427
+ httpAccessMode?: HttpAccessMode | undefined;
428
+ /** Terminal sessions configured to persist with this devbox. */
429
+ permanentSessions: BlueprintSpecSessionSpecList;
430
+ /** Integrations configured for this devbox. */
431
+ integrations?: Integrations | undefined;
432
+ /** Free-form description of what this devbox is for. Set at creation time. */
433
+ documentedPurpose: string;
434
+ ephemeral?: EphemeralSpec | undefined;
435
+ /** If set, describes the most recent lease of this devbox. Absent when the devbox has never been leased. */
436
+ poolLease?: PoolLease | undefined;
437
+ networkPolicy?: NetworkPolicySpec | undefined;
438
+ labels: LabelList;
439
+ versionControl?: VersionControlSpec | undefined;
440
+ /** Creation-time configuration, not an attestation of a running instance's token. Tenant restrictions apply at every launch, including when this is unset. */
441
+ workloadToken?: WorkloadTokenSpec | undefined;
442
+ }
443
+ export type AcquireLeaseResponseLeaseOutcome =
444
+ | "LEASE_OUTCOME_UNSPECIFIED"
445
+ | "LEASE_OUTCOME_CREATED"
446
+ | "LEASE_OUTCOME_REUSED";
447
+ export interface AcquireLeaseResponse {
448
+ devbox?: DevBox | undefined;
449
+ /** Set if activated. */
450
+ instanceId: string;
451
+ /** Opaque handle for this lease. Pass to ReleaseLease. */
452
+ leaseId: string;
453
+ outcome: AcquireLeaseResponseLeaseOutcome;
454
+ }
455
+ export interface ActivateRequest {
456
+ name?: string | undefined;
457
+ experimental?: ActivateRequestExperimental | undefined;
458
+ includeSshCredentials?: boolean | undefined;
459
+ waitForReadiness?: boolean | undefined;
460
+ /** If not set, uses the latest snapshot. */
461
+ fromSnapshotId?: string | undefined;
462
+ /** If set, lookup by id instead of name. */
463
+ id?: string | undefined;
464
+ /** If set, lookup by id first, then by name if not found. */
465
+ idOrName?: string | undefined;
466
+ }
467
+ export interface ActivateResponseInstanceMetadataSummary {
468
+ ingressDomain: string;
469
+ }
470
+ export interface ActivateResponse {
471
+ instanceId: string;
472
+ devbox?: DevBox | undefined;
473
+ privateSshKey: string | Redacted.Redacted<string>;
474
+ instanceMetadataSummary?: ActivateResponseInstanceMetadataSummary | undefined;
475
+ }
476
+ export interface ConnectBeginDevinOutpostRequest {
477
+ /** Suggested outpost name shown on the Devin connect page (admin can edit). */
478
+ outpostName?: string | undefined;
479
+ /** Allowed: "linux", "macos", or "windows". */
480
+ platform?: string | undefined;
481
+ }
482
+ export interface ConnectBeginDevinOutpostResponse {
483
+ connectUrl: string;
484
+ state: string;
485
+ }
486
+ export interface CreateRequest {
487
+ name?: string | undefined;
488
+ imageRef?: string | undefined;
489
+ instanceShape?: InstanceShape | undefined;
490
+ site?: string | undefined;
491
+ volumeName?: string | undefined;
492
+ volumeSizeGb?: string | undefined;
493
+ cacheVolumeSizeGb?: string | undefined;
494
+ repository?: string | undefined;
495
+ privateFeatures?: StringList | undefined;
496
+ /** Deprecated: use features instead. */
497
+ enabledFeatures?: StringList | undefined;
498
+ /** Overrides default enabled features. Takes precedence over enabled_features. When unset, falls back to enabled_features or tenant defaults. When set with an empty enabled list, explicitly disables all features. */
499
+ features?: Features | undefined;
500
+ /** If set, looks up the image by name and resolves image_ref. Exclusive with image_ref. */
501
+ imageName?: string | undefined;
502
+ /** If set, used as-is. Exclusive with repository. */
503
+ versionControl?: VersionControlSpec | undefined;
504
+ /** If set, passed as the initial AgentRuntimeConfiguration.busy_ensure_minimum_duration at activation time. */
505
+ busyEnsureMinimumDuration?: string | undefined;
506
+ /** If unset, defaults to DevboxDefaults.access_mode. */
507
+ accessMode?: AccessMode | (string & {}) | undefined;
508
+ /** Additional terminal sessions to create at startup. */
509
+ sessions?: BlueprintSpecSessionSpecList | undefined;
510
+ /** Integrations to enable on the backing instance (e.g. Tailscale). */
511
+ integrations?: Integrations | undefined;
512
+ /** Free-form description of what this devbox is for. */
513
+ documentedPurpose?: string | undefined;
514
+ /** If set, marks the devbox as ephemeral. Presence of this field is the signal; sub-fields configure ephemeral-specific behaviour. */
515
+ ephemeral?: EphemeralSpec | undefined;
516
+ /** Overrides the image's privileged setting. Unset uses the image default. */
517
+ privileged?: boolean | undefined;
518
+ /** Environment variables to set on the devbox container. Merged on top of any env vars defined by the image, keyed by name. */
519
+ environment?: BlueprintSpecEnvVarList | undefined;
520
+ /** If unset, inherits DevboxDefaults.network_policy. Set to an empty NetworkPolicySpec{} to opt out of inheritance. */
521
+ networkPolicy?: NetworkPolicySpec | undefined;
522
+ ports?: PortSpecList | undefined;
523
+ /** Labels attached to the devbox. Label names using Namespace-reserved prefixes are only accepted by trusted internal callers. */
524
+ labels?: LabelList | undefined;
525
+ /** Script to run once when the devbox is first initialized. */
526
+ initScript?: string | undefined;
527
+ /** Receives lifecycle events for every compute instance backing this devbox. */
528
+ instanceEventCallback?: HttpCallbackEndpoint | undefined;
529
+ persistenceMode?: PersistenceMode | (string & {}) | undefined;
530
+ services?: ServiceSpecList | undefined;
531
+ workloadToken?: WorkloadTokenSpec | undefined;
532
+ activate?: boolean | undefined;
533
+ activateExperimental?: ActivateRequestExperimental | undefined;
534
+ }
535
+ export interface CreateResponse {
536
+ devbox?: DevBox | undefined;
537
+ /** If activate is true. */
538
+ instanceId: string;
539
+ }
540
+ export interface DevboxTemplateSpecInstanceSpecLinuxInstanceSpec {
541
+ imageRef?: string | undefined;
542
+ imageName?: string | undefined;
543
+ }
544
+ export interface DevboxTemplateSpecInstanceSpec {
545
+ shape?: InstanceShape | undefined;
546
+ linux?: DevboxTemplateSpecInstanceSpecLinuxInstanceSpec | undefined;
547
+ }
548
+ export interface DevboxTemplateSpecExperimentalDevinOutpostSpec {
549
+ endpoint?: string | undefined;
550
+ outpostId?: string | undefined;
551
+ }
552
+ export interface DevboxTemplateSpecExperimentalCursorWorkerSpec {
553
+ poolName?: string | undefined;
554
+ }
555
+ export interface DevboxTemplateSpecExperimentalClaudeEnvironmentSpec {
556
+ environmentId?: string | undefined;
557
+ webhookId?: string | undefined;
558
+ }
559
+ export interface DevboxTemplateSpecExperimental {
560
+ devinOutpost?: DevboxTemplateSpecExperimentalDevinOutpostSpec | undefined;
561
+ cursorWorker?: DevboxTemplateSpecExperimentalCursorWorkerSpec | undefined;
562
+ claudeEnvironment?: DevboxTemplateSpecExperimentalClaudeEnvironmentSpec | undefined;
563
+ }
564
+ export type DevboxTemplateSpecType =
565
+ | "TYPE_UNSPECIFIED"
566
+ | "TYPE_GENERAL"
567
+ | "TYPE_MANAGED_BY_CLAUDE"
568
+ | "TYPE_MANAGED_BY_CURSOR"
569
+ | "TYPE_MANAGED_BY_DEVIN";
570
+ export interface DevboxTemplateSpec {
571
+ /** Immutable; 1-63 letters, digits or hyphens; must not start or end with a hyphen. */
572
+ name?: string | undefined;
573
+ instance?: DevboxTemplateSpecInstanceSpec | undefined;
574
+ site?: string | undefined;
575
+ ephemeral?: EphemeralSpec | undefined;
576
+ versionControl?: VersionControlSpec | undefined;
577
+ environment?: BlueprintSpecEnvVarList | undefined;
578
+ busyEnsureMinimumDuration?: string | undefined;
579
+ integrations?: Integrations | undefined;
580
+ networkPolicy?: NetworkPolicySpec | undefined;
581
+ volumeSizeGb?: string | undefined;
582
+ experimental?: DevboxTemplateSpecExperimental | undefined;
583
+ /** Optional human-readable description. */
584
+ description?: string | undefined;
585
+ accessMode?: AccessMode | (string & {}) | undefined;
586
+ features?: Features | undefined;
587
+ ports?: PortSpecList | undefined;
588
+ type?: DevboxTemplateSpecType | (string & {}) | undefined;
589
+ sessions?: BlueprintSpecSessionSpecList | undefined;
590
+ /** Script to run once when a devbox created from this template is first initialized. */
591
+ initScript?: string | undefined;
592
+ persistenceMode?: PersistenceMode | (string & {}) | undefined;
593
+ services?: ServiceSpecList | undefined;
594
+ /** Overrides the image's privileged setting. Unset uses the image default. */
595
+ privileged?: boolean | undefined;
596
+ /** Uses saved defaults when unspecified on save. Tenant restrictions apply at every launch. */
597
+ workloadToken?: WorkloadTokenSpec | undefined;
598
+ }
599
+ /** Transient integration setup values; credentials are never returned. */
600
+ export interface CreateBlueprintRequestExperimental {
601
+ devinConnectCode?: string | Redacted.Redacted<string> | undefined;
602
+ devinConnectState?: string | undefined;
603
+ cursorApiKey?: string | Redacted.Redacted<string> | undefined;
604
+ claudeApiKey?: string | Redacted.Redacted<string> | undefined;
605
+ claudeEnvironmentKey?: string | Redacted.Redacted<string> | undefined;
606
+ claudeWebhookSigningKey?: string | Redacted.Redacted<string> | undefined;
607
+ }
608
+ export interface CreateBlueprintRequest {
609
+ spec?: DevboxTemplateSpec | undefined;
610
+ experimental?: CreateBlueprintRequestExperimental | undefined;
611
+ }
612
+ export interface DevboxBlueprint {
613
+ id: string;
614
+ version: string;
615
+ createdAt?: string | undefined;
616
+ updatedAt?: string | undefined;
617
+ spec?: DevboxTemplateSpec | undefined;
618
+ }
619
+ export interface CreateBlueprintResponse {
620
+ blueprint?: DevboxBlueprint | undefined;
621
+ }
622
+ export interface CreateFromBlueprintRequestOverrides {
623
+ site?: string | undefined;
624
+ accessMode?: AccessMode | (string & {}) | undefined;
625
+ }
626
+ export interface CreateFromBlueprintRequest {
627
+ name?: string | undefined;
628
+ blueprintId?: string | undefined;
629
+ activate?: boolean | undefined;
630
+ activateExperimental?: ActivateRequestExperimental | undefined;
631
+ documentedPurpose?: string | undefined;
632
+ overrides?: CreateFromBlueprintRequestOverrides | undefined;
633
+ labels?: LabelList | undefined;
634
+ }
635
+ export interface CreateFromBlueprintResponse {
636
+ devbox?: DevBox | undefined;
637
+ /** If activate is true. */
638
+ instanceId: string;
639
+ }
640
+ export interface CreateFromDevboxRequest {
641
+ /** Name for the new devbox. */
642
+ name?: string | undefined;
643
+ /** Name of the source devbox to fork from. */
644
+ fromDevbox?: string | undefined;
645
+ /** Optional: override the instance shape. If unset, inherits from the source devbox. */
646
+ instanceShape?: InstanceShape | undefined;
647
+ /** Optional: snapshot ID to boot from (as returned by ListPersistentVolumeSnapshots). If unset, the latest completed snapshot from the source devbox is used. */
648
+ snapshotId?: string | undefined;
649
+ /** Free-form description of what this devbox is for. Not inherited from the source devbox. */
650
+ documentedPurpose?: string | undefined;
651
+ labels?: LabelList | undefined;
652
+ activateExperimental?: ActivateRequestExperimental | undefined;
653
+ }
654
+ export interface CreateFromDevboxResponse {
655
+ devbox?: DevBox | undefined;
656
+ /** If activate is true. */
657
+ instanceId: string;
658
+ }
659
+ export type CreateFromTemplateRequestOverrides = CreateFromBlueprintRequestOverrides;
660
+ export interface CreateFromTemplateRequest {
661
+ name?: string | undefined;
662
+ templateId?: string | undefined;
663
+ activate?: boolean | undefined;
664
+ activateExperimental?: ActivateRequestExperimental | undefined;
665
+ documentedPurpose?: string | undefined;
666
+ overrides?: CreateFromBlueprintRequestOverrides | undefined;
667
+ labels?: LabelList | undefined;
668
+ }
669
+ export interface CreateFromTemplateResponse {
670
+ devbox?: DevBox | undefined;
671
+ /** If activate is true. */
672
+ instanceId: string;
673
+ }
674
+ /** Depending on the situation, fields may not be returned. */
675
+ export interface ClaudeIntegrationSpec {
676
+ claudeApiKey?: string | Redacted.Redacted<string> | undefined;
677
+ claudeEnvironmentId?: string | undefined;
678
+ claudeEnvironmentKey?: string | Redacted.Redacted<string> | undefined;
679
+ claudeWebhookSigningKey?: string | Redacted.Redacted<string> | undefined;
680
+ /** unique id in the webhook endpoint to identifier the caller */
681
+ nscWebhookId?: string | undefined;
682
+ }
683
+ export interface CreateIntegrationRequest {
684
+ claude?: ClaudeIntegrationSpec | undefined;
685
+ }
686
+ export interface CreateIntegrationResponse {
687
+ id: string;
688
+ }
689
+ export interface CreateRepositoryRequest {
690
+ repository?: string | undefined;
691
+ }
692
+ export interface CreateRepositoryResponse {}
693
+ /** Transient integration setup values that must not be persisted in DevboxTemplateSpec. Credentials are stored as tenant Vault secrets and never returned. */
694
+ export type CreateTemplateRequestExperimental = CreateBlueprintRequestExperimental;
695
+ export interface CreateTemplateRequest {
696
+ spec?: DevboxTemplateSpec | undefined;
697
+ experimental?: CreateBlueprintRequestExperimental | undefined;
698
+ }
699
+ export type DevboxTemplate = DevboxBlueprint;
700
+ export interface CreateTemplateResponse {
701
+ template?: DevboxBlueprint | undefined;
702
+ }
703
+ export interface DeleteIntegrationRequest {
704
+ id?: string | undefined;
705
+ }
706
+ export interface DeleteIntegrationResponse {}
707
+ export interface DescribeImageRequest {
708
+ digest?: string | undefined;
709
+ version?: string | undefined;
710
+ name?: string | undefined;
711
+ id?: string | undefined;
712
+ }
713
+ export type ImageFlag = "FLAG_UNKNOWN" | "NAMESPACE_MANAGED" | "FLAG_DEPRECATED";
714
+ export type ImageFlagList = Array<ImageFlag>;
715
+ export interface ImageSource {
716
+ dockerfile?: string | undefined;
717
+ /** Build that produced this image. Empty when wired from an existing image. */
718
+ buildRef?: string | undefined;
719
+ }
720
+ export interface Image {
721
+ repository: string;
722
+ digest: string;
723
+ originalDigest: string;
724
+ createdAt?: string | undefined;
725
+ description: string;
726
+ metadata?: BlueprintSpec | undefined;
727
+ flag: ImageFlagList;
728
+ version: string;
729
+ source?: ImageSource | undefined;
730
+ name: string;
731
+ id: string;
732
+ expiresAt?: string | undefined;
733
+ }
734
+ export interface DescribeImageResponse {
735
+ image?: Image | undefined;
736
+ }
737
+ export interface EnsureBlueprintRequest {
738
+ /** Only spec.name is used when the blueprint already exists. */
739
+ spec?: DevboxTemplateSpec | undefined;
740
+ experimental?: CreateBlueprintRequestExperimental | undefined;
741
+ }
742
+ export interface EnsureBlueprintResponse {
743
+ blueprint?: DevboxBlueprint | undefined;
744
+ }
745
+ export interface ExpireRequest {
746
+ name?: string | undefined;
747
+ }
748
+ export type DevBoxList = Array<DevBox>;
749
+ export interface ExpireResponse {
750
+ devboxes: DevBoxList;
751
+ }
752
+ export interface ExpireBlueprintRequest {
753
+ id?: string | undefined;
754
+ }
755
+ export interface ExpireBlueprintResponse {}
756
+ export interface ExpireImageRequest {
757
+ repository?: string | undefined;
758
+ digest?: string | undefined;
759
+ name?: string | undefined;
760
+ version?: string | undefined;
761
+ }
762
+ export interface ExpireImageResponse {}
763
+ export interface ExpireTemplateRequest {
764
+ id?: string | undefined;
765
+ }
766
+ export interface ExpireTemplateResponse {}
767
+ export interface FetchRequest {
768
+ name?: string | undefined;
769
+ includeSshCredentials?: boolean | undefined;
770
+ returnActivatedInstance?: boolean | undefined;
771
+ /** If set, fetch by id instead of name. */
772
+ id?: string | undefined;
773
+ /** If set, fetch by id first, then by name if not found. */
774
+ idOrName?: string | undefined;
775
+ }
776
+ export interface FetchResponse {
777
+ devbox?: DevBox | undefined;
778
+ privateSshKey: string | Redacted.Redacted<string>;
779
+ /** Set if `return_activated_instance` is true, and the devbox is currently running. */
780
+ instanceId: string;
781
+ }
782
+ export interface FetchBlueprintRequest {
783
+ name?: string | undefined;
784
+ }
785
+ export interface FetchBlueprintResponse {
786
+ blueprint?: DevboxBlueprint | undefined;
787
+ }
788
+ export interface FetchDefaultsRequest {}
789
+ export interface DevboxDefaults {
790
+ instanceShape?: InstanceShape | undefined;
791
+ imageName?: string | undefined;
792
+ versionControl?: VersionControlSpec | undefined;
793
+ busyEnsureMinimumDuration?: string | undefined;
794
+ accessMode?: AccessMode | (string & {}) | undefined;
795
+ integrations?: Integrations | undefined;
796
+ enabledFeatures?: StringList | undefined;
797
+ /** Default persistent volume size in GB applied to new devboxes when the create request doesn't specify a size. Capped at the tenant policy's maximum_volume_size_gb. 0 means use the system default. */
798
+ volumeSizeGb?: string | undefined;
799
+ networkPolicy?: NetworkPolicySpec | undefined;
800
+ workloadToken?: WorkloadTokenSpec | undefined;
801
+ }
802
+ export interface FetchDefaultsResponse {
803
+ defaults?: DevboxDefaults | undefined;
804
+ metadataVersion: string;
805
+ /** Values explicitly set via tenant policy. */
806
+ byPolicy?: DevboxDefaults | undefined;
807
+ }
808
+ export interface FetchTemplateRequest {
809
+ name?: string | undefined;
810
+ }
811
+ export interface FetchTemplateResponse {
812
+ template?: DevboxBlueprint | undefined;
813
+ }
814
+ export interface GetUsageRequestDate {
815
+ year?: number | undefined;
816
+ month?: number | undefined;
817
+ day?: number | undefined;
818
+ }
819
+ export interface GetUsageRequest {
820
+ /** Optional: If no start date is provided, return usage starting from the first day of the current month. Period start is inclusive. */
821
+ periodStart?: GetUsageRequestDate | undefined;
822
+ /** Optional: Limits the time range of the returned results. Period end is inclusive and must be in the same month as period start. */
823
+ periodEnd?: GetUsageRequestDate | undefined;
824
+ }
825
+ export interface GetUsageResponseDataPoint {
826
+ year: number;
827
+ month: number;
828
+ day: number;
829
+ /** Number of non-expired devboxes for the tenant at the end of the day, or the end of the requested period for the final partial day. */
830
+ activeCount: number;
831
+ /** Number of non-expired devboxes created by the current user at the end of the day, or the end of the requested period for the final partial day. */
832
+ activeCountForUser: number;
833
+ }
834
+ export type GetUsageResponseDataPointList = Array<GetUsageResponseDataPoint>;
835
+ export interface GetUsageResponse {
836
+ perDay: GetUsageResponseDataPointList;
837
+ /** Effective maximum number of non-expired devboxes for the tenant. */
838
+ maximumCount: number;
839
+ /** Effective maximum number of non-expired devboxes per user. */
840
+ maximumCountPerUser: number;
841
+ }
842
+ export interface InspectImageRequest {
843
+ imageRef?: string | undefined;
844
+ }
845
+ export type StringMap = { [key: string]: string | undefined };
846
+ export interface InspectImageResponse {
847
+ optimizedKinds: StringList;
848
+ user: string;
849
+ env: StringMap;
850
+ version: string;
851
+ spec?: BlueprintSpec | undefined;
852
+ versionCreatedAt?: string | undefined;
853
+ /** Sites for which this image has been optimized. */
854
+ optimizedSites: StringList;
855
+ }
856
+ export type StringMatcherOperator = "OPERATOR_UNKNOWN" | "IS_ANY_OF" | "IS_NOT";
857
+ export interface StringMatcher {
858
+ values?: StringList | undefined;
859
+ op?: StringMatcherOperator | (string & {}) | undefined;
860
+ }
861
+ export type ListRequestOrderBy =
862
+ | "ORDER_BY_UNKNOWN"
863
+ | "ORDER_BY_LAST_USED_AT"
864
+ | "ORDER_BY_CREATED_AT";
865
+ export type ListRequestEphemeralFilter =
866
+ | "EPHEMERAL_FILTER_UNKNOWN"
867
+ | "EPHEMERAL_FILTER_ONLY_EPHEMERAL"
868
+ | "EPHEMERAL_FILTER_ONLY_NON_EPHEMERAL";
869
+ export type LabelFilterEntryLabelFilterOp = "UNKNOWN" | "EQUAL" | "NOT_EQUAL" | "EXIST";
870
+ export interface LabelFilterEntry {
871
+ name?: string | undefined;
872
+ value?: string | undefined;
873
+ op?: LabelFilterEntryLabelFilterOp | (string & {}) | undefined;
874
+ }
875
+ export type LabelFilterEntryList = Array<LabelFilterEntry>;
876
+ export interface ListRequestLabelFilter {
877
+ anyOf?: LabelFilterEntryList | undefined;
878
+ }
879
+ export type ListRequestLabelFilterList = Array<ListRequestLabelFilter>;
880
+ export interface ListRequest {
881
+ /** If a previous response returned a `pagination_cursor`, it can be specified to continue reading results with the same arguments as the original call. */
882
+ paginationCursor?: string | undefined;
883
+ /** Filter by the devbox creator. */
884
+ matchCreator?: StringMatcher | undefined;
885
+ /** Filter by the resolved image name. */
886
+ matchImageName?: StringMatcher | undefined;
887
+ /** Filter by the image ref (e.g. repository@digest). */
888
+ matchImageRef?: StringMatcher | undefined;
889
+ orderBy?: ListRequestOrderBy | (string & {}) | undefined;
890
+ /** Filter by whether the devbox is ephemeral. If unset (UNKNOWN), both ephemeral and non-ephemeral devboxes are returned. */
891
+ matchEphemeral?: ListRequestEphemeralFilter | (string & {}) | undefined;
892
+ /** The maximum number of entries to return. If 0 and `pagination_cursor` is unset, all matching devboxes are returned in a single response (the legacy behavior) and `pagination_cursor` in the response is never set. If > 0, the server returns at most `max_entries` and sets `pagination_cursor` in the response if more results exist. */
893
+ maxEntries?: string | undefined;
894
+ /** Only return devboxes that match every filter. A filter matches when any of its predicates match. NOT_EQUAL matches when the label is absent. Filters with no predicates are invalid. */
895
+ matchLabels?: ListRequestLabelFilterList | undefined;
896
+ }
897
+ export interface ListResponse {
898
+ /** If set, there are additional results. Pass the same cursor to a subsequent List call (with the same filter arguments) to continue fetching results. */
899
+ paginationCursor: string;
900
+ /** List of Devboxes that match the filter. */
901
+ devboxes: DevBoxList;
902
+ }
903
+ export type ListBlueprintsRequestOrderBy =
904
+ | "ORDER_BY_UNKNOWN"
905
+ | "ORDER_BY_CREATED_AT"
906
+ | "ORDER_BY_UPDATED_AT";
907
+ export interface ListBlueprintsRequest {
908
+ /** Cursor from a previous response, to continue reading results. */
909
+ paginationCursor?: string | undefined;
910
+ orderBy?: ListBlueprintsRequestOrderBy | (string & {}) | undefined;
911
+ /** Maximum entries to return. Defaults to 100 if unset (0). */
912
+ maxEntries?: string | undefined;
913
+ }
914
+ export type DevboxBlueprintList = Array<DevboxBlueprint>;
915
+ export interface ListBlueprintsResponse {
916
+ blueprints: DevboxBlueprintList;
917
+ /** Set when more results exist; pass it back to fetch the next page. */
918
+ paginationCursor: string;
919
+ }
920
+ export interface ListComposableFeaturesRequest {}
921
+ export interface ComposableFeature {
922
+ id?: string | undefined;
923
+ iconUrl?: string | undefined;
924
+ description?: string | undefined;
925
+ builtin?: boolean | undefined;
926
+ }
927
+ export type ComposableFeatureList = Array<ComposableFeature>;
928
+ export interface ListComposableFeaturesResponse {
929
+ features: ComposableFeatureList;
930
+ }
931
+ export interface ListImagesRequest {
932
+ includeBuiltin?: boolean | undefined;
933
+ pagionationCursor?: string | undefined;
934
+ }
935
+ export type ImageList = Array<Image>;
936
+ export interface ListImagesResponse {
937
+ paginationCursor: string;
938
+ image: ImageList;
939
+ }
940
+ export interface ListIntegrationsRequest {}
941
+ /** Stored view of an integration. Exactly one spec field is populated. */
942
+ export interface Integration {
943
+ id: string;
944
+ createdAt?: string | undefined;
945
+ updatedAt?: string | undefined;
946
+ claude?: ClaudeIntegrationSpec | undefined;
947
+ }
948
+ export type IntegrationList = Array<Integration>;
949
+ export interface ListIntegrationsResponse {
950
+ integrations: IntegrationList;
951
+ }
952
+ export type ListSnapshotsRequestOrderBy = "ORDER_BY_UNKNOWN" | "ORDER_BY_CREATED_AT_DESC";
953
+ export interface ListSnapshotsRequest {
954
+ idOrName?: string | undefined;
955
+ orderBy?: ListSnapshotsRequestOrderBy | (string & {}) | undefined;
956
+ }
957
+ export interface PersistentVolumeSnapshot {
958
+ /** The unique identifier of this snapshot. */
959
+ id: string;
960
+ /** The timestamp of when the snapshot was created (in UTC). */
961
+ createdAt?: string | undefined;
962
+ /** The total size of the snapshot in bytes (sum of all pages). */
963
+ usedBytes: string;
964
+ /** The ID of the snapshot this snapshot was created from. Empty if this is the first snapshot. */
965
+ snapshotFrom: string;
966
+ /** The completed snapshot ID. Empty if the snapshot is still in progress. */
967
+ completedSnapshot: string;
968
+ /** The net new bytes added by this snapshot compared to its parent. */
969
+ netNewUsedBytes: string;
970
+ /** The instance ID that this snapshot is attached to. Empty if not attached. */
971
+ attachedInstanceId: string;
972
+ /** The timestamp of when the snapshot was released (detached from the instance). */
973
+ releasedAt?: string | undefined;
974
+ /** The reason why the snapshot was released. */
975
+ releasedReason: string;
976
+ /** The timestamp of when the snapshot was abandoned (in UTC). Abandoned snapshots are excluded when selecting a base snapshot for new volumes. */
977
+ abandonedAt?: string | undefined;
978
+ /** The metadata version of the snapshot (e.g., "v1", "v2"). */
979
+ metadataVersion: string;
980
+ }
981
+ export type PersistentVolumeSnapshotList = Array<PersistentVolumeSnapshot>;
982
+ export interface ListSnapshotsResponse {
983
+ snapshots: PersistentVolumeSnapshotList;
984
+ }
985
+ export type ListTemplatesRequestOrderBy =
986
+ | "ORDER_BY_UNKNOWN"
987
+ | "ORDER_BY_CREATED_AT"
988
+ | "ORDER_BY_UPDATED_AT";
989
+ export interface ListTemplatesRequest {
990
+ /** Cursor from a previous response, to continue reading results. */
991
+ paginationCursor?: string | undefined;
992
+ orderBy?: ListTemplatesRequestOrderBy | (string & {}) | undefined;
993
+ /** Maximum entries to return. Defaults to 100 if unset (0). */
994
+ maxEntries?: string | undefined;
995
+ }
996
+ export type DevboxTemplateList = Array<DevboxBlueprint>;
997
+ export interface ListTemplatesResponse {
998
+ templates: DevboxTemplateList;
999
+ /** Set when more results exist; pass it back to fetch the next page. */
1000
+ paginationCursor: string;
1001
+ }
1002
+ export interface MetadataRequest {}
1003
+ export interface MetadataResponseSite {
1004
+ site: string;
1005
+ label: string;
1006
+ /** Canonical OS/architecture values, such as "linux/amd64" or "macos/arm64". */
1007
+ platforms: StringList;
1008
+ }
1009
+ export type MetadataResponseSiteList = Array<MetadataResponseSite>;
1010
+ export interface MetadataResponse {
1011
+ sites: MetadataResponseSiteList;
1012
+ }
1013
+ export interface PingRequest {}
1014
+ export interface PingResponse {}
1015
+ export interface FeatureSpecRunScript {
1016
+ name?: string | undefined;
1017
+ script?: string | undefined;
1018
+ /** If set, downloads the script from this URL and runs it with the interpreter. This replaces patterns like "curl -fsSL https://example.com/install.sh | bash". */
1019
+ scriptSource?: string | undefined;
1020
+ /** The interpreter to use when running the script (e.g., "bash", "sh", "python3"). If not set, defaults to "/bin/sh" on Unix or Windows PowerShell with -File on Windows. */
1021
+ interpreter?: string | undefined;
1022
+ }
1023
+ export type FeatureSpecRunScriptList = Array<FeatureSpecRunScript>;
1024
+ export type FeatureSpecSessionSpec = BlueprintSpecSessionSpec;
1025
+ export type FeatureSpecSessionSpecList = Array<BlueprintSpecSessionSpec>;
1026
+ export interface FeatureSpecExportedPort {
1027
+ name?: string | undefined;
1028
+ port?: number | undefined;
1029
+ }
1030
+ export type FeatureSpecExportedPortList = Array<FeatureSpecExportedPort>;
1031
+ /** FeatureSpec represents the changes to apply when a feature is enabled. */
1032
+ export interface FeatureSpec {
1033
+ /** Scripts to run during devbox creation. */
1034
+ onCreate?: FeatureSpecRunScriptList | undefined;
1035
+ /** Terminal sessions to create. */
1036
+ sessions?: FeatureSpecSessionSpecList | undefined;
1037
+ /** Paths to add to PATH. */
1038
+ includeInPath?: StringList | undefined;
1039
+ /** Named ports to export from the devbox container. */
1040
+ exportedPorts?: FeatureSpecExportedPortList | undefined;
1041
+ /** Scripts to run on every devbox startup (not just first boot). */
1042
+ onStartup?: FeatureSpecRunScriptList | undefined;
1043
+ }
1044
+ export interface RegisterComposableFeatureRequest {
1045
+ feature?: ComposableFeature | undefined;
1046
+ spec?: FeatureSpec | undefined;
1047
+ }
1048
+ export interface RegisterComposableFeatureResponse {}
1049
+ export interface ReleaseLeaseRequest {
1050
+ /** Required if lease_id is not supplied. When both are set, guards that the lease belongs to the named devbox. */
1051
+ idOrName?: string | undefined;
1052
+ /** Required if id_or_name is not supplied. Opaque handle returned by AcquireLease. */
1053
+ leaseId?: string | undefined;
1054
+ }
1055
+ export interface ReleaseLeaseResponse {}
1056
+ export interface RemoveComposableFeatureRequest {
1057
+ id?: string | undefined;
1058
+ }
1059
+ export interface RemoveComposableFeatureResponse {}
1060
+ export interface StopRequest {
1061
+ name?: string | undefined;
1062
+ }
1063
+ export interface StopResponse {
1064
+ devbox?: DevBox | undefined;
1065
+ instanceId: string;
1066
+ }
1067
+ export interface UpdateRequest {
1068
+ name?: string | undefined;
1069
+ instanceShape?: InstanceShape | undefined;
1070
+ busyEnsureMinimumDuration?: string | undefined;
1071
+ /** If set, updates the persisted integrations config for this devbox. */
1072
+ integrations?: Integrations | undefined;
1073
+ /** If > 0, requests resizing the persistent volume to this size. Must be greater than or equal to the current size and not exceed the tenant policy's maximum volume size. Cannot shrink. Applies on next devbox restart. */
1074
+ volumeSizeGb?: string | undefined;
1075
+ /** If set, updates the persisted privileged flag. Applies on next restart. */
1076
+ privileged?: boolean | undefined;
1077
+ /** If set, updates the persisted network policy. Applies on next restart. An empty NetworkPolicySpec{} clears the stored policy. */
1078
+ networkPolicy?: NetworkPolicySpec | undefined;
1079
+ /** If set, updates access to this devbox through devbox.so URLs. */
1080
+ httpAccessMode?: HttpAccessMode | undefined;
1081
+ }
1082
+ export interface UpdateResponse {
1083
+ devbox?: DevBox | undefined;
1084
+ }
1085
+ export interface UpdateBlueprintRequest {
1086
+ id?: string | undefined;
1087
+ spec?: DevboxTemplateSpec | undefined;
1088
+ experimental?: CreateBlueprintRequestExperimental | undefined;
1089
+ }
1090
+ export interface UpdateBlueprintResponse {
1091
+ blueprint?: DevboxBlueprint | undefined;
1092
+ }
1093
+ export interface UpdateDefaultsRequest {
1094
+ defaults?: DevboxDefaults | undefined;
1095
+ matchMetadataVersion?: string | undefined;
1096
+ }
1097
+ export interface UpdateDefaultsResponse {
1098
+ defaults?: DevboxDefaults | undefined;
1099
+ }
1100
+ /** Transient integration setup values that must not be persisted in DevboxTemplateSpec. Credentials are stored as tenant Vault secrets and never returned. */
1101
+ export type UpdateTemplateRequestExperimental = CreateBlueprintRequestExperimental;
1102
+ export interface UpdateTemplateRequest {
1103
+ id?: string | undefined;
1104
+ spec?: DevboxTemplateSpec | undefined;
1105
+ experimental?: CreateBlueprintRequestExperimental | undefined;
1106
+ }
1107
+ export interface UpdateTemplateResponse {
1108
+ template?: DevboxBlueprint | undefined;
1109
+ }
1110
+ export interface WireImageRequest {
1111
+ imageRef?: string | undefined;
1112
+ description?: string | undefined;
1113
+ metadata?: BlueprintSpec | undefined;
1114
+ name?: string | undefined;
1115
+ source?: ImageSource | undefined;
1116
+ }
1117
+ export interface WireImageResponse {
1118
+ image?: Image | undefined;
1119
+ }
1120
+ export type AcquireLeaseError =
1121
+ | InvalidArgument
1122
+ | FailedPrecondition
1123
+ | Unauthenticated
1124
+ | PermissionDenied
1125
+ | NotFound
1126
+ | AlreadyExists
1127
+ | ResourceExhausted
1128
+ | NamespaceLabsOpError;
1129
+ export const acquireLease: API.OperationMethod<
1130
+ AcquireLeaseRequest,
1131
+ AcquireLeaseResponse,
1132
+ AcquireLeaseError,
1133
+ NamespaceLabsOpContext
1134
+ > = /*@__PURE__*/ API.make(() => ({
1135
+ input: __S(833, __c52, 1) as any as S.Schema<AcquireLeaseRequest>,
1136
+ output: __S(834, __c52, 2) as any as S.Schema<AcquireLeaseResponse>,
1137
+ errors: [
1138
+ InvalidArgument,
1139
+ FailedPrecondition,
1140
+ Unauthenticated,
1141
+ PermissionDenied,
1142
+ NotFound,
1143
+ AlreadyExists,
1144
+ ResourceExhausted,
1145
+ ],
1146
+ serviceErrors: NamespaceLabsServiceErrors,
1147
+ protocol: NamespaceLabsProtocol,
1148
+ retry: Retry.Retry,
1149
+ telemetry: TELEMETRY,
1150
+ span: "AcquireLease",
1151
+ }));
1152
+
1153
+ export type ActivateError =
1154
+ | InvalidArgument
1155
+ | FailedPrecondition
1156
+ | Unauthenticated
1157
+ | PermissionDenied
1158
+ | NotFound
1159
+ | AlreadyExists
1160
+ | ResourceExhausted
1161
+ | NamespaceLabsOpError;
1162
+ export const activate: API.OperationMethod<
1163
+ ActivateRequest,
1164
+ ActivateResponse,
1165
+ ActivateError,
1166
+ NamespaceLabsOpContext
1167
+ > = /*@__PURE__*/ API.make(() => ({
1168
+ input: __S(1024, __c64, 0) as any as S.Schema<ActivateRequest>,
1169
+ output: __S(1026, __c64, 2) as any as S.Schema<ActivateResponse>,
1170
+ errors: [
1171
+ InvalidArgument,
1172
+ FailedPrecondition,
1173
+ Unauthenticated,
1174
+ PermissionDenied,
1175
+ NotFound,
1176
+ AlreadyExists,
1177
+ ResourceExhausted,
1178
+ ],
1179
+ serviceErrors: NamespaceLabsServiceErrors,
1180
+ protocol: NamespaceLabsProtocol,
1181
+ retry: Retry.Retry,
1182
+ telemetry: TELEMETRY,
1183
+ span: "Activate",
1184
+ }));
1185
+
1186
+ export type ConnectBeginDevinOutpostError =
1187
+ | InvalidArgument
1188
+ | FailedPrecondition
1189
+ | Unauthenticated
1190
+ | PermissionDenied
1191
+ | NotFound
1192
+ | AlreadyExists
1193
+ | ResourceExhausted
1194
+ | NamespaceLabsOpError;
1195
+ export const connectBeginDevinOutpost: API.OperationMethod<
1196
+ ConnectBeginDevinOutpostRequest,
1197
+ ConnectBeginDevinOutpostResponse,
1198
+ ConnectBeginDevinOutpostError,
1199
+ NamespaceLabsOpContext
1200
+ > = /*@__PURE__*/ API.make(() => ({
1201
+ input: __S(1040, __c65, 0) as any as S.Schema<ConnectBeginDevinOutpostRequest>,
1202
+ output: __S(1041, __c65, 1) as any as S.Schema<ConnectBeginDevinOutpostResponse>,
1203
+ errors: [
1204
+ InvalidArgument,
1205
+ FailedPrecondition,
1206
+ Unauthenticated,
1207
+ PermissionDenied,
1208
+ NotFound,
1209
+ AlreadyExists,
1210
+ ResourceExhausted,
1211
+ ],
1212
+ serviceErrors: NamespaceLabsServiceErrors,
1213
+ protocol: NamespaceLabsProtocol,
1214
+ retry: Retry.Retry,
1215
+ telemetry: TELEMETRY,
1216
+ span: "ConnectBeginDevinOutpost",
1217
+ }));
1218
+
1219
+ export type CreateError =
1220
+ | InvalidArgument
1221
+ | FailedPrecondition
1222
+ | Unauthenticated
1223
+ | PermissionDenied
1224
+ | NotFound
1225
+ | AlreadyExists
1226
+ | ResourceExhausted
1227
+ | NamespaceLabsOpError;
1228
+ export const create: API.OperationMethod<
1229
+ CreateRequest,
1230
+ CreateResponse,
1231
+ CreateError,
1232
+ NamespaceLabsOpContext
1233
+ > = /*@__PURE__*/ API.make(() => ({
1234
+ input: __S(0, __c0, 0) as any as S.Schema<CreateRequest>,
1235
+ output: __S(16, __c1, 0) as any as S.Schema<CreateResponse>,
1236
+ errors: [
1237
+ InvalidArgument,
1238
+ FailedPrecondition,
1239
+ Unauthenticated,
1240
+ PermissionDenied,
1241
+ NotFound,
1242
+ AlreadyExists,
1243
+ ResourceExhausted,
1244
+ ],
1245
+ serviceErrors: NamespaceLabsServiceErrors,
1246
+ protocol: NamespaceLabsProtocol,
1247
+ retry: Retry.Retry,
1248
+ telemetry: TELEMETRY,
1249
+ span: "Create",
1250
+ }));
1251
+
1252
+ export type CreateBlueprintError =
1253
+ | InvalidArgument
1254
+ | FailedPrecondition
1255
+ | Unauthenticated
1256
+ | PermissionDenied
1257
+ | NotFound
1258
+ | AlreadyExists
1259
+ | ResourceExhausted
1260
+ | NamespaceLabsOpError;
1261
+ export const createBlueprint: API.OperationMethod<
1262
+ CreateBlueprintRequest,
1263
+ CreateBlueprintResponse,
1264
+ CreateBlueprintError,
1265
+ NamespaceLabsOpContext
1266
+ > = /*@__PURE__*/ API.make(() => ({
1267
+ input: __S(32, __c2, 0) as any as S.Schema<CreateBlueprintRequest>,
1268
+ output: __S(80, __c5, 0) as any as S.Schema<CreateBlueprintResponse>,
1269
+ errors: [
1270
+ InvalidArgument,
1271
+ FailedPrecondition,
1272
+ Unauthenticated,
1273
+ PermissionDenied,
1274
+ NotFound,
1275
+ AlreadyExists,
1276
+ ResourceExhausted,
1277
+ ],
1278
+ serviceErrors: NamespaceLabsServiceErrors,
1279
+ protocol: NamespaceLabsProtocol,
1280
+ retry: Retry.Retry,
1281
+ telemetry: TELEMETRY,
1282
+ span: "CreateBlueprint",
1283
+ }));
1284
+
1285
+ export type CreateFromBlueprintError =
1286
+ | InvalidArgument
1287
+ | FailedPrecondition
1288
+ | Unauthenticated
1289
+ | PermissionDenied
1290
+ | NotFound
1291
+ | AlreadyExists
1292
+ | ResourceExhausted
1293
+ | NamespaceLabsOpError;
1294
+ export const createFromBlueprint: API.OperationMethod<
1295
+ CreateFromBlueprintRequest,
1296
+ CreateFromBlueprintResponse,
1297
+ CreateFromBlueprintError,
1298
+ NamespaceLabsOpContext
1299
+ > = /*@__PURE__*/ API.make(() => ({
1300
+ input: __S(96, __c6, 0) as any as S.Schema<CreateFromBlueprintRequest>,
1301
+ output: __S(16, __c1, 0) as any as S.Schema<CreateFromBlueprintResponse>,
1302
+ errors: [
1303
+ InvalidArgument,
1304
+ FailedPrecondition,
1305
+ Unauthenticated,
1306
+ PermissionDenied,
1307
+ NotFound,
1308
+ AlreadyExists,
1309
+ ResourceExhausted,
1310
+ ],
1311
+ serviceErrors: NamespaceLabsServiceErrors,
1312
+ protocol: NamespaceLabsProtocol,
1313
+ retry: Retry.Retry,
1314
+ telemetry: TELEMETRY,
1315
+ span: "CreateFromBlueprint",
1316
+ }));
1317
+
1318
+ export type CreateFromDevboxError =
1319
+ | InvalidArgument
1320
+ | FailedPrecondition
1321
+ | Unauthenticated
1322
+ | PermissionDenied
1323
+ | NotFound
1324
+ | AlreadyExists
1325
+ | ResourceExhausted
1326
+ | NamespaceLabsOpError;
1327
+ /** Experimental: this API is not stable and is not ready for production use. */
1328
+ export const createFromDevbox: API.OperationMethod<
1329
+ CreateFromDevboxRequest,
1330
+ CreateFromDevboxResponse,
1331
+ CreateFromDevboxError,
1332
+ NamespaceLabsOpContext
1333
+ > = /*@__PURE__*/ API.make(() => ({
1334
+ input: __S(128, __c8, 0) as any as S.Schema<CreateFromDevboxRequest>,
1335
+ output: __S(16, __c1, 0) as any as S.Schema<CreateFromDevboxResponse>,
1336
+ errors: [
1337
+ InvalidArgument,
1338
+ FailedPrecondition,
1339
+ Unauthenticated,
1340
+ PermissionDenied,
1341
+ NotFound,
1342
+ AlreadyExists,
1343
+ ResourceExhausted,
1344
+ ],
1345
+ serviceErrors: NamespaceLabsServiceErrors,
1346
+ protocol: NamespaceLabsProtocol,
1347
+ retry: Retry.Retry,
1348
+ telemetry: TELEMETRY,
1349
+ span: "CreateFromDevbox",
1350
+ }));
1351
+
1352
+ export type CreateFromTemplateError =
1353
+ | InvalidArgument
1354
+ | FailedPrecondition
1355
+ | Unauthenticated
1356
+ | PermissionDenied
1357
+ | NotFound
1358
+ | AlreadyExists
1359
+ | ResourceExhausted
1360
+ | NamespaceLabsOpError;
1361
+ /** Retained for backwards compatibility; use CreateFromBlueprint instead. */
1362
+ export const createFromTemplate: API.OperationMethod<
1363
+ CreateFromTemplateRequest,
1364
+ CreateFromTemplateResponse,
1365
+ CreateFromTemplateError,
1366
+ NamespaceLabsOpContext
1367
+ > = /*@__PURE__*/ API.make(() => ({
1368
+ input: __S(144, __c9, 0) as any as S.Schema<CreateFromTemplateRequest>,
1369
+ output: __S(16, __c1, 0) as any as S.Schema<CreateFromTemplateResponse>,
1370
+ errors: [
1371
+ InvalidArgument,
1372
+ FailedPrecondition,
1373
+ Unauthenticated,
1374
+ PermissionDenied,
1375
+ NotFound,
1376
+ AlreadyExists,
1377
+ ResourceExhausted,
1378
+ ],
1379
+ serviceErrors: NamespaceLabsServiceErrors,
1380
+ protocol: NamespaceLabsProtocol,
1381
+ retry: Retry.Retry,
1382
+ telemetry: TELEMETRY,
1383
+ span: "CreateFromTemplate",
1384
+ }));
1385
+
1386
+ export type CreateIntegrationError =
1387
+ | InvalidArgument
1388
+ | FailedPrecondition
1389
+ | Unauthenticated
1390
+ | PermissionDenied
1391
+ | NotFound
1392
+ | AlreadyExists
1393
+ | ResourceExhausted
1394
+ | NamespaceLabsOpError;
1395
+ export const createIntegration: API.OperationMethod<
1396
+ CreateIntegrationRequest,
1397
+ CreateIntegrationResponse,
1398
+ CreateIntegrationError,
1399
+ NamespaceLabsOpContext
1400
+ > = /*@__PURE__*/ API.make(() => ({
1401
+ input: __S(160, __c10, 0) as any as S.Schema<CreateIntegrationRequest>,
1402
+ output: __S(161, __c10, 1) as any as S.Schema<CreateIntegrationResponse>,
1403
+ errors: [
1404
+ InvalidArgument,
1405
+ FailedPrecondition,
1406
+ Unauthenticated,
1407
+ PermissionDenied,
1408
+ NotFound,
1409
+ AlreadyExists,
1410
+ ResourceExhausted,
1411
+ ],
1412
+ serviceErrors: NamespaceLabsServiceErrors,
1413
+ protocol: NamespaceLabsProtocol,
1414
+ retry: Retry.Retry,
1415
+ telemetry: TELEMETRY,
1416
+ span: "CreateIntegration",
1417
+ }));
1418
+
1419
+ export type CreateRepositoryError =
1420
+ | InvalidArgument
1421
+ | FailedPrecondition
1422
+ | Unauthenticated
1423
+ | PermissionDenied
1424
+ | NotFound
1425
+ | AlreadyExists
1426
+ | ResourceExhausted
1427
+ | NamespaceLabsOpError;
1428
+ export const createRepository: API.OperationMethod<
1429
+ CreateRepositoryRequest,
1430
+ CreateRepositoryResponse,
1431
+ CreateRepositoryError,
1432
+ NamespaceLabsOpContext
1433
+ > = /*@__PURE__*/ API.make(() => ({
1434
+ input: __S(192, __c12, 0) as any as S.Schema<CreateRepositoryRequest>,
1435
+ output: __S(976, __c61, 0) as any as S.Schema<CreateRepositoryResponse>,
1436
+ errors: [
1437
+ InvalidArgument,
1438
+ FailedPrecondition,
1439
+ Unauthenticated,
1440
+ PermissionDenied,
1441
+ NotFound,
1442
+ AlreadyExists,
1443
+ ResourceExhausted,
1444
+ ],
1445
+ serviceErrors: NamespaceLabsServiceErrors,
1446
+ protocol: NamespaceLabsProtocol,
1447
+ retry: Retry.Retry,
1448
+ telemetry: TELEMETRY,
1449
+ span: "CreateRepository",
1450
+ }));
1451
+
1452
+ export type CreateTemplateError =
1453
+ | InvalidArgument
1454
+ | FailedPrecondition
1455
+ | Unauthenticated
1456
+ | PermissionDenied
1457
+ | NotFound
1458
+ | AlreadyExists
1459
+ | ResourceExhausted
1460
+ | NamespaceLabsOpError;
1461
+ /** Retained for backwards compatibility; use CreateBlueprint instead. */
1462
+ export const createTemplate: API.OperationMethod<
1463
+ CreateTemplateRequest,
1464
+ CreateTemplateResponse,
1465
+ CreateTemplateError,
1466
+ NamespaceLabsOpContext
1467
+ > = /*@__PURE__*/ API.make(() => ({
1468
+ input: __S(208, __c13, 0) as any as S.Schema<CreateTemplateRequest>,
1469
+ output: __S(224, __c14, 0) as any as S.Schema<CreateTemplateResponse>,
1470
+ errors: [
1471
+ InvalidArgument,
1472
+ FailedPrecondition,
1473
+ Unauthenticated,
1474
+ PermissionDenied,
1475
+ NotFound,
1476
+ AlreadyExists,
1477
+ ResourceExhausted,
1478
+ ],
1479
+ serviceErrors: NamespaceLabsServiceErrors,
1480
+ protocol: NamespaceLabsProtocol,
1481
+ retry: Retry.Retry,
1482
+ telemetry: TELEMETRY,
1483
+ span: "CreateTemplate",
1484
+ }));
1485
+
1486
+ export type DeleteIntegrationError =
1487
+ | InvalidArgument
1488
+ | FailedPrecondition
1489
+ | Unauthenticated
1490
+ | PermissionDenied
1491
+ | NotFound
1492
+ | AlreadyExists
1493
+ | ResourceExhausted
1494
+ | NamespaceLabsOpError;
1495
+ export const deleteIntegration: API.OperationMethod<
1496
+ DeleteIntegrationRequest,
1497
+ DeleteIntegrationResponse,
1498
+ DeleteIntegrationError,
1499
+ NamespaceLabsOpContext
1500
+ > = /*@__PURE__*/ API.make(() => ({
1501
+ input: __S(240, __c15, 0) as any as S.Schema<DeleteIntegrationRequest>,
1502
+ output: __S(976, __c61, 0) as any as S.Schema<DeleteIntegrationResponse>,
1503
+ errors: [
1504
+ InvalidArgument,
1505
+ FailedPrecondition,
1506
+ Unauthenticated,
1507
+ PermissionDenied,
1508
+ NotFound,
1509
+ AlreadyExists,
1510
+ ResourceExhausted,
1511
+ ],
1512
+ serviceErrors: NamespaceLabsServiceErrors,
1513
+ protocol: NamespaceLabsProtocol,
1514
+ retry: Retry.Retry,
1515
+ telemetry: TELEMETRY,
1516
+ span: "DeleteIntegration",
1517
+ }));
1518
+
1519
+ export type DescribeImageError =
1520
+ | InvalidArgument
1521
+ | FailedPrecondition
1522
+ | Unauthenticated
1523
+ | PermissionDenied
1524
+ | NotFound
1525
+ | AlreadyExists
1526
+ | ResourceExhausted
1527
+ | NamespaceLabsOpError;
1528
+ export const describeImage: API.OperationMethod<
1529
+ DescribeImageRequest,
1530
+ DescribeImageResponse,
1531
+ DescribeImageError,
1532
+ NamespaceLabsOpContext
1533
+ > = /*@__PURE__*/ API.make(() => ({
1534
+ input: __S(256, __c16, 0) as any as S.Schema<DescribeImageRequest>,
1535
+ output: __S(288, __c18, 0) as any as S.Schema<DescribeImageResponse>,
1536
+ errors: [
1537
+ InvalidArgument,
1538
+ FailedPrecondition,
1539
+ Unauthenticated,
1540
+ PermissionDenied,
1541
+ NotFound,
1542
+ AlreadyExists,
1543
+ ResourceExhausted,
1544
+ ],
1545
+ serviceErrors: NamespaceLabsServiceErrors,
1546
+ protocol: NamespaceLabsProtocol,
1547
+ retry: Retry.Retry,
1548
+ telemetry: TELEMETRY,
1549
+ span: "DescribeImage",
1550
+ }));
1551
+
1552
+ export type EnsureBlueprintError =
1553
+ | InvalidArgument
1554
+ | FailedPrecondition
1555
+ | Unauthenticated
1556
+ | PermissionDenied
1557
+ | NotFound
1558
+ | AlreadyExists
1559
+ | ResourceExhausted
1560
+ | NamespaceLabsOpError;
1561
+ /** Fetch by spec.name, or create with the supplied parameters if missing. Existing blueprints are returned unchanged. */
1562
+ export const ensureBlueprint: API.OperationMethod<
1563
+ EnsureBlueprintRequest,
1564
+ EnsureBlueprintResponse,
1565
+ EnsureBlueprintError,
1566
+ NamespaceLabsOpContext
1567
+ > = /*@__PURE__*/ API.make(() => ({
1568
+ input: __S(304, __c19, 0) as any as S.Schema<EnsureBlueprintRequest>,
1569
+ output: __S(80, __c5, 0) as any as S.Schema<EnsureBlueprintResponse>,
1570
+ errors: [
1571
+ InvalidArgument,
1572
+ FailedPrecondition,
1573
+ Unauthenticated,
1574
+ PermissionDenied,
1575
+ NotFound,
1576
+ AlreadyExists,
1577
+ ResourceExhausted,
1578
+ ],
1579
+ serviceErrors: NamespaceLabsServiceErrors,
1580
+ protocol: NamespaceLabsProtocol,
1581
+ retry: Retry.Retry,
1582
+ telemetry: TELEMETRY,
1583
+ span: "EnsureBlueprint",
1584
+ }));
1585
+
1586
+ export type ExpireError =
1587
+ | InvalidArgument
1588
+ | FailedPrecondition
1589
+ | Unauthenticated
1590
+ | PermissionDenied
1591
+ | NotFound
1592
+ | AlreadyExists
1593
+ | ResourceExhausted
1594
+ | NamespaceLabsOpError;
1595
+ export const expire: API.OperationMethod<
1596
+ ExpireRequest,
1597
+ ExpireResponse,
1598
+ ExpireError,
1599
+ NamespaceLabsOpContext
1600
+ > = /*@__PURE__*/ API.make(() => ({
1601
+ input: __S(320, __c20, 0) as any as S.Schema<ExpireRequest>,
1602
+ output: __S(321, __c20, 1) as any as S.Schema<ExpireResponse>,
1603
+ errors: [
1604
+ InvalidArgument,
1605
+ FailedPrecondition,
1606
+ Unauthenticated,
1607
+ PermissionDenied,
1608
+ NotFound,
1609
+ AlreadyExists,
1610
+ ResourceExhausted,
1611
+ ],
1612
+ serviceErrors: NamespaceLabsServiceErrors,
1613
+ protocol: NamespaceLabsProtocol,
1614
+ retry: Retry.Retry,
1615
+ telemetry: TELEMETRY,
1616
+ span: "Expire",
1617
+ }));
1618
+
1619
+ export type ExpireBlueprintError =
1620
+ | InvalidArgument
1621
+ | FailedPrecondition
1622
+ | Unauthenticated
1623
+ | PermissionDenied
1624
+ | NotFound
1625
+ | AlreadyExists
1626
+ | ResourceExhausted
1627
+ | NamespaceLabsOpError;
1628
+ export const expireBlueprint: API.OperationMethod<
1629
+ ExpireBlueprintRequest,
1630
+ ExpireBlueprintResponse,
1631
+ ExpireBlueprintError,
1632
+ NamespaceLabsOpContext
1633
+ > = /*@__PURE__*/ API.make(() => ({
1634
+ input: __S(352, __c22, 0) as any as S.Schema<ExpireBlueprintRequest>,
1635
+ output: __S(976, __c61, 0) as any as S.Schema<ExpireBlueprintResponse>,
1636
+ errors: [
1637
+ InvalidArgument,
1638
+ FailedPrecondition,
1639
+ Unauthenticated,
1640
+ PermissionDenied,
1641
+ NotFound,
1642
+ AlreadyExists,
1643
+ ResourceExhausted,
1644
+ ],
1645
+ serviceErrors: NamespaceLabsServiceErrors,
1646
+ protocol: NamespaceLabsProtocol,
1647
+ retry: Retry.Retry,
1648
+ telemetry: TELEMETRY,
1649
+ span: "ExpireBlueprint",
1650
+ }));
1651
+
1652
+ export type ExpireImageError =
1653
+ | InvalidArgument
1654
+ | FailedPrecondition
1655
+ | Unauthenticated
1656
+ | PermissionDenied
1657
+ | NotFound
1658
+ | AlreadyExists
1659
+ | ResourceExhausted
1660
+ | NamespaceLabsOpError;
1661
+ export const expireImage: API.OperationMethod<
1662
+ ExpireImageRequest,
1663
+ ExpireImageResponse,
1664
+ ExpireImageError,
1665
+ NamespaceLabsOpContext
1666
+ > = /*@__PURE__*/ API.make(() => ({
1667
+ input: __S(368, __c23, 0) as any as S.Schema<ExpireImageRequest>,
1668
+ output: __S(976, __c61, 0) as any as S.Schema<ExpireImageResponse>,
1669
+ errors: [
1670
+ InvalidArgument,
1671
+ FailedPrecondition,
1672
+ Unauthenticated,
1673
+ PermissionDenied,
1674
+ NotFound,
1675
+ AlreadyExists,
1676
+ ResourceExhausted,
1677
+ ],
1678
+ serviceErrors: NamespaceLabsServiceErrors,
1679
+ protocol: NamespaceLabsProtocol,
1680
+ retry: Retry.Retry,
1681
+ telemetry: TELEMETRY,
1682
+ span: "ExpireImage",
1683
+ }));
1684
+
1685
+ export type ExpireTemplateError =
1686
+ | InvalidArgument
1687
+ | FailedPrecondition
1688
+ | Unauthenticated
1689
+ | PermissionDenied
1690
+ | NotFound
1691
+ | AlreadyExists
1692
+ | ResourceExhausted
1693
+ | NamespaceLabsOpError;
1694
+ /** Retained for backwards compatibility; use ExpireBlueprint instead. */
1695
+ export const expireTemplate: API.OperationMethod<
1696
+ ExpireTemplateRequest,
1697
+ ExpireTemplateResponse,
1698
+ ExpireTemplateError,
1699
+ NamespaceLabsOpContext
1700
+ > = /*@__PURE__*/ API.make(() => ({
1701
+ input: __S(384, __c24, 0) as any as S.Schema<ExpireTemplateRequest>,
1702
+ output: __S(976, __c61, 0) as any as S.Schema<ExpireTemplateResponse>,
1703
+ errors: [
1704
+ InvalidArgument,
1705
+ FailedPrecondition,
1706
+ Unauthenticated,
1707
+ PermissionDenied,
1708
+ NotFound,
1709
+ AlreadyExists,
1710
+ ResourceExhausted,
1711
+ ],
1712
+ serviceErrors: NamespaceLabsServiceErrors,
1713
+ protocol: NamespaceLabsProtocol,
1714
+ retry: Retry.Retry,
1715
+ telemetry: TELEMETRY,
1716
+ span: "ExpireTemplate",
1717
+ }));
1718
+
1719
+ export type FetchError =
1720
+ | InvalidArgument
1721
+ | FailedPrecondition
1722
+ | Unauthenticated
1723
+ | PermissionDenied
1724
+ | NotFound
1725
+ | AlreadyExists
1726
+ | ResourceExhausted
1727
+ | NamespaceLabsOpError;
1728
+ export const fetch: API.OperationMethod<
1729
+ FetchRequest,
1730
+ FetchResponse,
1731
+ FetchError,
1732
+ NamespaceLabsOpContext
1733
+ > = /*@__PURE__*/ API.make(() => ({
1734
+ input: __S(400, __c25, 0) as any as S.Schema<FetchRequest>,
1735
+ output: __S(401, __c25, 1) as any as S.Schema<FetchResponse>,
1736
+ errors: [
1737
+ InvalidArgument,
1738
+ FailedPrecondition,
1739
+ Unauthenticated,
1740
+ PermissionDenied,
1741
+ NotFound,
1742
+ AlreadyExists,
1743
+ ResourceExhausted,
1744
+ ],
1745
+ serviceErrors: NamespaceLabsServiceErrors,
1746
+ protocol: NamespaceLabsProtocol,
1747
+ retry: Retry.Retry,
1748
+ telemetry: TELEMETRY,
1749
+ span: "Fetch",
1750
+ }));
1751
+
1752
+ export type FetchBlueprintError =
1753
+ | InvalidArgument
1754
+ | FailedPrecondition
1755
+ | Unauthenticated
1756
+ | PermissionDenied
1757
+ | NotFound
1758
+ | AlreadyExists
1759
+ | ResourceExhausted
1760
+ | NamespaceLabsOpError;
1761
+ export const fetchBlueprint: API.OperationMethod<
1762
+ FetchBlueprintRequest,
1763
+ FetchBlueprintResponse,
1764
+ FetchBlueprintError,
1765
+ NamespaceLabsOpContext
1766
+ > = /*@__PURE__*/ API.make(() => ({
1767
+ input: __S(416, __c26, 0) as any as S.Schema<FetchBlueprintRequest>,
1768
+ output: __S(80, __c5, 0) as any as S.Schema<FetchBlueprintResponse>,
1769
+ errors: [
1770
+ InvalidArgument,
1771
+ FailedPrecondition,
1772
+ Unauthenticated,
1773
+ PermissionDenied,
1774
+ NotFound,
1775
+ AlreadyExists,
1776
+ ResourceExhausted,
1777
+ ],
1778
+ serviceErrors: NamespaceLabsServiceErrors,
1779
+ protocol: NamespaceLabsProtocol,
1780
+ retry: Retry.Retry,
1781
+ telemetry: TELEMETRY,
1782
+ span: "FetchBlueprint",
1783
+ }));
1784
+
1785
+ export type FetchDefaultsError =
1786
+ | InvalidArgument
1787
+ | FailedPrecondition
1788
+ | Unauthenticated
1789
+ | PermissionDenied
1790
+ | NotFound
1791
+ | AlreadyExists
1792
+ | ResourceExhausted
1793
+ | NamespaceLabsOpError;
1794
+ export const fetchDefaults: API.OperationMethod<
1795
+ FetchDefaultsRequest,
1796
+ FetchDefaultsResponse,
1797
+ FetchDefaultsError,
1798
+ NamespaceLabsOpContext
1799
+ > = /*@__PURE__*/ API.make(() => ({
1800
+ input: __S(432, __c27, 0) as any as S.Schema<FetchDefaultsRequest>,
1801
+ output: __S(433, __c27, 1) as any as S.Schema<FetchDefaultsResponse>,
1802
+ errors: [
1803
+ InvalidArgument,
1804
+ FailedPrecondition,
1805
+ Unauthenticated,
1806
+ PermissionDenied,
1807
+ NotFound,
1808
+ AlreadyExists,
1809
+ ResourceExhausted,
1810
+ ],
1811
+ serviceErrors: NamespaceLabsServiceErrors,
1812
+ protocol: NamespaceLabsProtocol,
1813
+ retry: Retry.Retry,
1814
+ telemetry: TELEMETRY,
1815
+ span: "FetchDefaults",
1816
+ }));
1817
+
1818
+ export type FetchTemplateError =
1819
+ | InvalidArgument
1820
+ | FailedPrecondition
1821
+ | Unauthenticated
1822
+ | PermissionDenied
1823
+ | NotFound
1824
+ | AlreadyExists
1825
+ | ResourceExhausted
1826
+ | NamespaceLabsOpError;
1827
+ /** Retained for backwards compatibility; use FetchBlueprint instead. */
1828
+ export const fetchTemplate: API.OperationMethod<
1829
+ FetchTemplateRequest,
1830
+ FetchTemplateResponse,
1831
+ FetchTemplateError,
1832
+ NamespaceLabsOpContext
1833
+ > = /*@__PURE__*/ API.make(() => ({
1834
+ input: __S(464, __c29, 0) as any as S.Schema<FetchTemplateRequest>,
1835
+ output: __S(224, __c14, 0) as any as S.Schema<FetchTemplateResponse>,
1836
+ errors: [
1837
+ InvalidArgument,
1838
+ FailedPrecondition,
1839
+ Unauthenticated,
1840
+ PermissionDenied,
1841
+ NotFound,
1842
+ AlreadyExists,
1843
+ ResourceExhausted,
1844
+ ],
1845
+ serviceErrors: NamespaceLabsServiceErrors,
1846
+ protocol: NamespaceLabsProtocol,
1847
+ retry: Retry.Retry,
1848
+ telemetry: TELEMETRY,
1849
+ span: "FetchTemplate",
1850
+ }));
1851
+
1852
+ export type GetUsageError =
1853
+ | InvalidArgument
1854
+ | FailedPrecondition
1855
+ | Unauthenticated
1856
+ | PermissionDenied
1857
+ | NotFound
1858
+ | AlreadyExists
1859
+ | ResourceExhausted
1860
+ | NamespaceLabsOpError;
1861
+ export const getUsage: API.OperationMethod<
1862
+ GetUsageRequest,
1863
+ GetUsageResponse,
1864
+ GetUsageError,
1865
+ NamespaceLabsOpContext
1866
+ > = /*@__PURE__*/ API.make(() => ({
1867
+ input: __S(481, __c30, 1) as any as S.Schema<GetUsageRequest>,
1868
+ output: __S(484, __c30, 4) as any as S.Schema<GetUsageResponse>,
1869
+ errors: [
1870
+ InvalidArgument,
1871
+ FailedPrecondition,
1872
+ Unauthenticated,
1873
+ PermissionDenied,
1874
+ NotFound,
1875
+ AlreadyExists,
1876
+ ResourceExhausted,
1877
+ ],
1878
+ serviceErrors: NamespaceLabsServiceErrors,
1879
+ protocol: NamespaceLabsProtocol,
1880
+ retry: Retry.Retry,
1881
+ telemetry: TELEMETRY,
1882
+ span: "GetUsage",
1883
+ }));
1884
+
1885
+ export type InspectImageError =
1886
+ | InvalidArgument
1887
+ | FailedPrecondition
1888
+ | Unauthenticated
1889
+ | PermissionDenied
1890
+ | NotFound
1891
+ | AlreadyExists
1892
+ | ResourceExhausted
1893
+ | NamespaceLabsOpError;
1894
+ export const inspectImage: API.OperationMethod<
1895
+ InspectImageRequest,
1896
+ InspectImageResponse,
1897
+ InspectImageError,
1898
+ NamespaceLabsOpContext
1899
+ > = /*@__PURE__*/ API.make(() => ({
1900
+ input: __S(496, __c31, 0) as any as S.Schema<InspectImageRequest>,
1901
+ output: __S(498, __c31, 2) as any as S.Schema<InspectImageResponse>,
1902
+ errors: [
1903
+ InvalidArgument,
1904
+ FailedPrecondition,
1905
+ Unauthenticated,
1906
+ PermissionDenied,
1907
+ NotFound,
1908
+ AlreadyExists,
1909
+ ResourceExhausted,
1910
+ ],
1911
+ serviceErrors: NamespaceLabsServiceErrors,
1912
+ protocol: NamespaceLabsProtocol,
1913
+ retry: Retry.Retry,
1914
+ telemetry: TELEMETRY,
1915
+ span: "InspectImage",
1916
+ }));
1917
+
1918
+ export type ListError =
1919
+ | InvalidArgument
1920
+ | FailedPrecondition
1921
+ | Unauthenticated
1922
+ | PermissionDenied
1923
+ | NotFound
1924
+ | AlreadyExists
1925
+ | ResourceExhausted
1926
+ | NamespaceLabsOpError;
1927
+ export const list: API.PaginatedOperationMethod<
1928
+ ListRequest,
1929
+ ListResponse,
1930
+ ListError,
1931
+ NamespaceLabsOpContext,
1932
+ DevBox
1933
+ > = /*@__PURE__*/ API.makePaginated(
1934
+ () => ({
1935
+ input: __S(517, __c32, 5) as any as S.Schema<ListRequest>,
1936
+ output: __S(518, __c32, 6) as any as S.Schema<ListResponse>,
1937
+ errors: [
1938
+ InvalidArgument,
1939
+ FailedPrecondition,
1940
+ Unauthenticated,
1941
+ PermissionDenied,
1942
+ NotFound,
1943
+ AlreadyExists,
1944
+ ResourceExhausted,
1945
+ ],
1946
+ serviceErrors: NamespaceLabsServiceErrors,
1947
+ protocol: NamespaceLabsProtocol,
1948
+ retry: Retry.Retry,
1949
+ telemetry: TELEMETRY,
1950
+ span: "List",
1951
+ pagination: {
1952
+ mode: "cursor",
1953
+ inputToken: "paginationCursor",
1954
+ outputToken: "paginationCursor",
1955
+ items: "devboxes",
1956
+ } as const,
1957
+ }),
1958
+ paginateCursor,
1959
+ ) as any;
1960
+
1961
+ export type ListBlueprintsError =
1962
+ | InvalidArgument
1963
+ | FailedPrecondition
1964
+ | Unauthenticated
1965
+ | PermissionDenied
1966
+ | NotFound
1967
+ | AlreadyExists
1968
+ | ResourceExhausted
1969
+ | NamespaceLabsOpError;
1970
+ export const listBlueprints: API.PaginatedOperationMethod<
1971
+ ListBlueprintsRequest,
1972
+ ListBlueprintsResponse,
1973
+ ListBlueprintsError,
1974
+ NamespaceLabsOpContext,
1975
+ DevboxBlueprint
1976
+ > = /*@__PURE__*/ API.makePaginated(
1977
+ () => ({
1978
+ input: __S(528, __c33, 0) as any as S.Schema<ListBlueprintsRequest>,
1979
+ output: __S(529, __c33, 1) as any as S.Schema<ListBlueprintsResponse>,
1980
+ errors: [
1981
+ InvalidArgument,
1982
+ FailedPrecondition,
1983
+ Unauthenticated,
1984
+ PermissionDenied,
1985
+ NotFound,
1986
+ AlreadyExists,
1987
+ ResourceExhausted,
1988
+ ],
1989
+ serviceErrors: NamespaceLabsServiceErrors,
1990
+ protocol: NamespaceLabsProtocol,
1991
+ retry: Retry.Retry,
1992
+ telemetry: TELEMETRY,
1993
+ span: "ListBlueprints",
1994
+ pagination: {
1995
+ mode: "cursor",
1996
+ inputToken: "paginationCursor",
1997
+ outputToken: "paginationCursor",
1998
+ items: "blueprints",
1999
+ } as const,
2000
+ }),
2001
+ paginateCursor,
2002
+ ) as any;
2003
+
2004
+ export type ListComposableFeaturesError =
2005
+ | InvalidArgument
2006
+ | FailedPrecondition
2007
+ | Unauthenticated
2008
+ | PermissionDenied
2009
+ | NotFound
2010
+ | AlreadyExists
2011
+ | ResourceExhausted
2012
+ | NamespaceLabsOpError;
2013
+ export const listComposableFeatures: API.OperationMethod<
2014
+ ListComposableFeaturesRequest,
2015
+ ListComposableFeaturesResponse,
2016
+ ListComposableFeaturesError,
2017
+ NamespaceLabsOpContext
2018
+ > = /*@__PURE__*/ API.make(() => ({
2019
+ input: __S(560, __c35, 0) as any as S.Schema<ListComposableFeaturesRequest>,
2020
+ output: __S(562, __c35, 2) as any as S.Schema<ListComposableFeaturesResponse>,
2021
+ errors: [
2022
+ InvalidArgument,
2023
+ FailedPrecondition,
2024
+ Unauthenticated,
2025
+ PermissionDenied,
2026
+ NotFound,
2027
+ AlreadyExists,
2028
+ ResourceExhausted,
2029
+ ],
2030
+ serviceErrors: NamespaceLabsServiceErrors,
2031
+ protocol: NamespaceLabsProtocol,
2032
+ retry: Retry.Retry,
2033
+ telemetry: TELEMETRY,
2034
+ span: "ListComposableFeatures",
2035
+ }));
2036
+
2037
+ export type ListImagesError =
2038
+ | InvalidArgument
2039
+ | FailedPrecondition
2040
+ | Unauthenticated
2041
+ | PermissionDenied
2042
+ | NotFound
2043
+ | AlreadyExists
2044
+ | ResourceExhausted
2045
+ | NamespaceLabsOpError;
2046
+ export const listImages: API.PaginatedOperationMethod<
2047
+ ListImagesRequest,
2048
+ ListImagesResponse,
2049
+ ListImagesError,
2050
+ NamespaceLabsOpContext,
2051
+ Image
2052
+ > = /*@__PURE__*/ API.makePaginated(
2053
+ () => ({
2054
+ input: __S(592, __c37, 0) as any as S.Schema<ListImagesRequest>,
2055
+ output: __S(594, __c37, 2) as any as S.Schema<ListImagesResponse>,
2056
+ errors: [
2057
+ InvalidArgument,
2058
+ FailedPrecondition,
2059
+ Unauthenticated,
2060
+ PermissionDenied,
2061
+ NotFound,
2062
+ AlreadyExists,
2063
+ ResourceExhausted,
2064
+ ],
2065
+ serviceErrors: NamespaceLabsServiceErrors,
2066
+ protocol: NamespaceLabsProtocol,
2067
+ retry: Retry.Retry,
2068
+ telemetry: TELEMETRY,
2069
+ span: "ListImages",
2070
+ pagination: {
2071
+ mode: "cursor",
2072
+ inputToken: "pagionationCursor",
2073
+ outputToken: "paginationCursor",
2074
+ items: "image",
2075
+ } as const,
2076
+ }),
2077
+ paginateCursor,
2078
+ ) as any;
2079
+
2080
+ export type ListIntegrationsError =
2081
+ | InvalidArgument
2082
+ | FailedPrecondition
2083
+ | Unauthenticated
2084
+ | PermissionDenied
2085
+ | NotFound
2086
+ | AlreadyExists
2087
+ | ResourceExhausted
2088
+ | NamespaceLabsOpError;
2089
+ export const listIntegrations: API.OperationMethod<
2090
+ ListIntegrationsRequest,
2091
+ ListIntegrationsResponse,
2092
+ ListIntegrationsError,
2093
+ NamespaceLabsOpContext
2094
+ > = /*@__PURE__*/ API.make(() => ({
2095
+ input: __S(608, __c38, 0) as any as S.Schema<ListIntegrationsRequest>,
2096
+ output: __S(611, __c38, 3) as any as S.Schema<ListIntegrationsResponse>,
2097
+ errors: [
2098
+ InvalidArgument,
2099
+ FailedPrecondition,
2100
+ Unauthenticated,
2101
+ PermissionDenied,
2102
+ NotFound,
2103
+ AlreadyExists,
2104
+ ResourceExhausted,
2105
+ ],
2106
+ serviceErrors: NamespaceLabsServiceErrors,
2107
+ protocol: NamespaceLabsProtocol,
2108
+ retry: Retry.Retry,
2109
+ telemetry: TELEMETRY,
2110
+ span: "ListIntegrations",
2111
+ }));
2112
+
2113
+ export type ListSnapshotsError =
2114
+ | InvalidArgument
2115
+ | FailedPrecondition
2116
+ | Unauthenticated
2117
+ | PermissionDenied
2118
+ | NotFound
2119
+ | AlreadyExists
2120
+ | ResourceExhausted
2121
+ | NamespaceLabsOpError;
2122
+ export const listSnapshots: API.OperationMethod<
2123
+ ListSnapshotsRequest,
2124
+ ListSnapshotsResponse,
2125
+ ListSnapshotsError,
2126
+ NamespaceLabsOpContext
2127
+ > = /*@__PURE__*/ API.make(() => ({
2128
+ input: __S(624, __c39, 0) as any as S.Schema<ListSnapshotsRequest>,
2129
+ output: __S(627, __c39, 3) as any as S.Schema<ListSnapshotsResponse>,
2130
+ errors: [
2131
+ InvalidArgument,
2132
+ FailedPrecondition,
2133
+ Unauthenticated,
2134
+ PermissionDenied,
2135
+ NotFound,
2136
+ AlreadyExists,
2137
+ ResourceExhausted,
2138
+ ],
2139
+ serviceErrors: NamespaceLabsServiceErrors,
2140
+ protocol: NamespaceLabsProtocol,
2141
+ retry: Retry.Retry,
2142
+ telemetry: TELEMETRY,
2143
+ span: "ListSnapshots",
2144
+ }));
2145
+
2146
+ export type ListTemplatesError =
2147
+ | InvalidArgument
2148
+ | FailedPrecondition
2149
+ | Unauthenticated
2150
+ | PermissionDenied
2151
+ | NotFound
2152
+ | AlreadyExists
2153
+ | ResourceExhausted
2154
+ | NamespaceLabsOpError;
2155
+ /** Retained for backwards compatibility; use ListBlueprints instead. */
2156
+ export const listTemplates: API.PaginatedOperationMethod<
2157
+ ListTemplatesRequest,
2158
+ ListTemplatesResponse,
2159
+ ListTemplatesError,
2160
+ NamespaceLabsOpContext,
2161
+ DevboxBlueprint
2162
+ > = /*@__PURE__*/ API.makePaginated(
2163
+ () => ({
2164
+ input: __S(640, __c40, 0) as any as S.Schema<ListTemplatesRequest>,
2165
+ output: __S(641, __c40, 1) as any as S.Schema<ListTemplatesResponse>,
2166
+ errors: [
2167
+ InvalidArgument,
2168
+ FailedPrecondition,
2169
+ Unauthenticated,
2170
+ PermissionDenied,
2171
+ NotFound,
2172
+ AlreadyExists,
2173
+ ResourceExhausted,
2174
+ ],
2175
+ serviceErrors: NamespaceLabsServiceErrors,
2176
+ protocol: NamespaceLabsProtocol,
2177
+ retry: Retry.Retry,
2178
+ telemetry: TELEMETRY,
2179
+ span: "ListTemplates",
2180
+ pagination: {
2181
+ mode: "cursor",
2182
+ inputToken: "paginationCursor",
2183
+ outputToken: "paginationCursor",
2184
+ items: "templates",
2185
+ } as const,
2186
+ }),
2187
+ paginateCursor,
2188
+ ) as any;
2189
+
2190
+ export type MetadataError =
2191
+ | InvalidArgument
2192
+ | FailedPrecondition
2193
+ | Unauthenticated
2194
+ | PermissionDenied
2195
+ | NotFound
2196
+ | AlreadyExists
2197
+ | ResourceExhausted
2198
+ | NamespaceLabsOpError;
2199
+ export const metadata: API.OperationMethod<
2200
+ MetadataRequest,
2201
+ MetadataResponse,
2202
+ MetadataError,
2203
+ NamespaceLabsOpContext
2204
+ > = /*@__PURE__*/ API.make(() => ({
2205
+ input: __S(656, __c41, 0) as any as S.Schema<MetadataRequest>,
2206
+ output: __S(659, __c41, 3) as any as S.Schema<MetadataResponse>,
2207
+ errors: [
2208
+ InvalidArgument,
2209
+ FailedPrecondition,
2210
+ Unauthenticated,
2211
+ PermissionDenied,
2212
+ NotFound,
2213
+ AlreadyExists,
2214
+ ResourceExhausted,
2215
+ ],
2216
+ serviceErrors: NamespaceLabsServiceErrors,
2217
+ protocol: NamespaceLabsProtocol,
2218
+ retry: Retry.Retry,
2219
+ telemetry: TELEMETRY,
2220
+ span: "Metadata",
2221
+ }));
2222
+
2223
+ export type PingError =
2224
+ | InvalidArgument
2225
+ | FailedPrecondition
2226
+ | Unauthenticated
2227
+ | PermissionDenied
2228
+ | NotFound
2229
+ | AlreadyExists
2230
+ | ResourceExhausted
2231
+ | NamespaceLabsOpError;
2232
+ export const ping: API.OperationMethod<
2233
+ PingRequest,
2234
+ PingResponse,
2235
+ PingError,
2236
+ NamespaceLabsOpContext
2237
+ > = /*@__PURE__*/ API.make(() => ({
2238
+ input: __S(672, __c42, 0) as any as S.Schema<PingRequest>,
2239
+ output: __S(976, __c61, 0) as any as S.Schema<PingResponse>,
2240
+ errors: [
2241
+ InvalidArgument,
2242
+ FailedPrecondition,
2243
+ Unauthenticated,
2244
+ PermissionDenied,
2245
+ NotFound,
2246
+ AlreadyExists,
2247
+ ResourceExhausted,
2248
+ ],
2249
+ serviceErrors: NamespaceLabsServiceErrors,
2250
+ protocol: NamespaceLabsProtocol,
2251
+ retry: Retry.Retry,
2252
+ telemetry: TELEMETRY,
2253
+ span: "Ping",
2254
+ }));
2255
+
2256
+ export type RegisterComposableFeatureError =
2257
+ | InvalidArgument
2258
+ | FailedPrecondition
2259
+ | Unauthenticated
2260
+ | PermissionDenied
2261
+ | NotFound
2262
+ | AlreadyExists
2263
+ | ResourceExhausted
2264
+ | NamespaceLabsOpError;
2265
+ export const registerComposableFeature: API.OperationMethod<
2266
+ RegisterComposableFeatureRequest,
2267
+ RegisterComposableFeatureResponse,
2268
+ RegisterComposableFeatureError,
2269
+ NamespaceLabsOpContext
2270
+ > = /*@__PURE__*/ API.make(() => ({
2271
+ input: __S(693, __c43, 5) as any as S.Schema<RegisterComposableFeatureRequest>,
2272
+ output: __S(976, __c61, 0) as any as S.Schema<RegisterComposableFeatureResponse>,
2273
+ errors: [
2274
+ InvalidArgument,
2275
+ FailedPrecondition,
2276
+ Unauthenticated,
2277
+ PermissionDenied,
2278
+ NotFound,
2279
+ AlreadyExists,
2280
+ ResourceExhausted,
2281
+ ],
2282
+ serviceErrors: NamespaceLabsServiceErrors,
2283
+ protocol: NamespaceLabsProtocol,
2284
+ retry: Retry.Retry,
2285
+ telemetry: TELEMETRY,
2286
+ span: "RegisterComposableFeature",
2287
+ }));
2288
+
2289
+ export type ReleaseLeaseError =
2290
+ | InvalidArgument
2291
+ | FailedPrecondition
2292
+ | Unauthenticated
2293
+ | PermissionDenied
2294
+ | NotFound
2295
+ | AlreadyExists
2296
+ | ResourceExhausted
2297
+ | NamespaceLabsOpError;
2298
+ export const releaseLease: API.OperationMethod<
2299
+ ReleaseLeaseRequest,
2300
+ ReleaseLeaseResponse,
2301
+ ReleaseLeaseError,
2302
+ NamespaceLabsOpContext
2303
+ > = /*@__PURE__*/ API.make(() => ({
2304
+ input: __S(704, __c44, 0) as any as S.Schema<ReleaseLeaseRequest>,
2305
+ output: __S(976, __c61, 0) as any as S.Schema<ReleaseLeaseResponse>,
2306
+ errors: [
2307
+ InvalidArgument,
2308
+ FailedPrecondition,
2309
+ Unauthenticated,
2310
+ PermissionDenied,
2311
+ NotFound,
2312
+ AlreadyExists,
2313
+ ResourceExhausted,
2314
+ ],
2315
+ serviceErrors: NamespaceLabsServiceErrors,
2316
+ protocol: NamespaceLabsProtocol,
2317
+ retry: Retry.Retry,
2318
+ telemetry: TELEMETRY,
2319
+ span: "ReleaseLease",
2320
+ }));
2321
+
2322
+ export type RemoveComposableFeatureError =
2323
+ | InvalidArgument
2324
+ | FailedPrecondition
2325
+ | Unauthenticated
2326
+ | PermissionDenied
2327
+ | NotFound
2328
+ | AlreadyExists
2329
+ | ResourceExhausted
2330
+ | NamespaceLabsOpError;
2331
+ export const removeComposableFeature: API.OperationMethod<
2332
+ RemoveComposableFeatureRequest,
2333
+ RemoveComposableFeatureResponse,
2334
+ RemoveComposableFeatureError,
2335
+ NamespaceLabsOpContext
2336
+ > = /*@__PURE__*/ API.make(() => ({
2337
+ input: __S(720, __c45, 0) as any as S.Schema<RemoveComposableFeatureRequest>,
2338
+ output: __S(976, __c61, 0) as any as S.Schema<RemoveComposableFeatureResponse>,
2339
+ errors: [
2340
+ InvalidArgument,
2341
+ FailedPrecondition,
2342
+ Unauthenticated,
2343
+ PermissionDenied,
2344
+ NotFound,
2345
+ AlreadyExists,
2346
+ ResourceExhausted,
2347
+ ],
2348
+ serviceErrors: NamespaceLabsServiceErrors,
2349
+ protocol: NamespaceLabsProtocol,
2350
+ retry: Retry.Retry,
2351
+ telemetry: TELEMETRY,
2352
+ span: "RemoveComposableFeature",
2353
+ }));
2354
+
2355
+ export type StopError =
2356
+ | InvalidArgument
2357
+ | FailedPrecondition
2358
+ | Unauthenticated
2359
+ | PermissionDenied
2360
+ | NotFound
2361
+ | AlreadyExists
2362
+ | ResourceExhausted
2363
+ | NamespaceLabsOpError;
2364
+ export const stop: API.OperationMethod<
2365
+ StopRequest,
2366
+ StopResponse,
2367
+ StopError,
2368
+ NamespaceLabsOpContext
2369
+ > = /*@__PURE__*/ API.make(() => ({
2370
+ input: __S(736, __c46, 0) as any as S.Schema<StopRequest>,
2371
+ output: __S(16, __c1, 0) as any as S.Schema<StopResponse>,
2372
+ errors: [
2373
+ InvalidArgument,
2374
+ FailedPrecondition,
2375
+ Unauthenticated,
2376
+ PermissionDenied,
2377
+ NotFound,
2378
+ AlreadyExists,
2379
+ ResourceExhausted,
2380
+ ],
2381
+ serviceErrors: NamespaceLabsServiceErrors,
2382
+ protocol: NamespaceLabsProtocol,
2383
+ retry: Retry.Retry,
2384
+ telemetry: TELEMETRY,
2385
+ span: "Stop",
2386
+ }));
2387
+
2388
+ export type UpdateError =
2389
+ | InvalidArgument
2390
+ | FailedPrecondition
2391
+ | Unauthenticated
2392
+ | PermissionDenied
2393
+ | NotFound
2394
+ | AlreadyExists
2395
+ | ResourceExhausted
2396
+ | NamespaceLabsOpError;
2397
+ export const update: API.OperationMethod<
2398
+ UpdateRequest,
2399
+ UpdateResponse,
2400
+ UpdateError,
2401
+ NamespaceLabsOpContext
2402
+ > = /*@__PURE__*/ API.make(() => ({
2403
+ input: __S(752, __c47, 0) as any as S.Schema<UpdateRequest>,
2404
+ output: __S(753, __c47, 1) as any as S.Schema<UpdateResponse>,
2405
+ errors: [
2406
+ InvalidArgument,
2407
+ FailedPrecondition,
2408
+ Unauthenticated,
2409
+ PermissionDenied,
2410
+ NotFound,
2411
+ AlreadyExists,
2412
+ ResourceExhausted,
2413
+ ],
2414
+ serviceErrors: NamespaceLabsServiceErrors,
2415
+ protocol: NamespaceLabsProtocol,
2416
+ retry: Retry.Retry,
2417
+ telemetry: TELEMETRY,
2418
+ span: "Update",
2419
+ }));
2420
+
2421
+ export type UpdateBlueprintError =
2422
+ | InvalidArgument
2423
+ | FailedPrecondition
2424
+ | Unauthenticated
2425
+ | PermissionDenied
2426
+ | NotFound
2427
+ | AlreadyExists
2428
+ | ResourceExhausted
2429
+ | NamespaceLabsOpError;
2430
+ export const updateBlueprint: API.OperationMethod<
2431
+ UpdateBlueprintRequest,
2432
+ UpdateBlueprintResponse,
2433
+ UpdateBlueprintError,
2434
+ NamespaceLabsOpContext
2435
+ > = /*@__PURE__*/ API.make(() => ({
2436
+ input: __S(768, __c48, 0) as any as S.Schema<UpdateBlueprintRequest>,
2437
+ output: __S(80, __c5, 0) as any as S.Schema<UpdateBlueprintResponse>,
2438
+ errors: [
2439
+ InvalidArgument,
2440
+ FailedPrecondition,
2441
+ Unauthenticated,
2442
+ PermissionDenied,
2443
+ NotFound,
2444
+ AlreadyExists,
2445
+ ResourceExhausted,
2446
+ ],
2447
+ serviceErrors: NamespaceLabsServiceErrors,
2448
+ protocol: NamespaceLabsProtocol,
2449
+ retry: Retry.Retry,
2450
+ telemetry: TELEMETRY,
2451
+ span: "UpdateBlueprint",
2452
+ }));
2453
+
2454
+ export type UpdateDefaultsError =
2455
+ | InvalidArgument
2456
+ | FailedPrecondition
2457
+ | Unauthenticated
2458
+ | PermissionDenied
2459
+ | NotFound
2460
+ | AlreadyExists
2461
+ | ResourceExhausted
2462
+ | NamespaceLabsOpError;
2463
+ export const updateDefaults: API.OperationMethod<
2464
+ UpdateDefaultsRequest,
2465
+ UpdateDefaultsResponse,
2466
+ UpdateDefaultsError,
2467
+ NamespaceLabsOpContext
2468
+ > = /*@__PURE__*/ API.make(() => ({
2469
+ input: __S(784, __c49, 0) as any as S.Schema<UpdateDefaultsRequest>,
2470
+ output: __S(785, __c49, 1) as any as S.Schema<UpdateDefaultsResponse>,
2471
+ errors: [
2472
+ InvalidArgument,
2473
+ FailedPrecondition,
2474
+ Unauthenticated,
2475
+ PermissionDenied,
2476
+ NotFound,
2477
+ AlreadyExists,
2478
+ ResourceExhausted,
2479
+ ],
2480
+ serviceErrors: NamespaceLabsServiceErrors,
2481
+ protocol: NamespaceLabsProtocol,
2482
+ retry: Retry.Retry,
2483
+ telemetry: TELEMETRY,
2484
+ span: "UpdateDefaults",
2485
+ }));
2486
+
2487
+ export type UpdateTemplateError =
2488
+ | InvalidArgument
2489
+ | FailedPrecondition
2490
+ | Unauthenticated
2491
+ | PermissionDenied
2492
+ | NotFound
2493
+ | AlreadyExists
2494
+ | ResourceExhausted
2495
+ | NamespaceLabsOpError;
2496
+ /** Retained for backwards compatibility; use UpdateBlueprint instead. */
2497
+ export const updateTemplate: API.OperationMethod<
2498
+ UpdateTemplateRequest,
2499
+ UpdateTemplateResponse,
2500
+ UpdateTemplateError,
2501
+ NamespaceLabsOpContext
2502
+ > = /*@__PURE__*/ API.make(() => ({
2503
+ input: __S(800, __c50, 0) as any as S.Schema<UpdateTemplateRequest>,
2504
+ output: __S(224, __c14, 0) as any as S.Schema<UpdateTemplateResponse>,
2505
+ errors: [
2506
+ InvalidArgument,
2507
+ FailedPrecondition,
2508
+ Unauthenticated,
2509
+ PermissionDenied,
2510
+ NotFound,
2511
+ AlreadyExists,
2512
+ ResourceExhausted,
2513
+ ],
2514
+ serviceErrors: NamespaceLabsServiceErrors,
2515
+ protocol: NamespaceLabsProtocol,
2516
+ retry: Retry.Retry,
2517
+ telemetry: TELEMETRY,
2518
+ span: "UpdateTemplate",
2519
+ }));
2520
+
2521
+ export type WireImageError =
2522
+ | InvalidArgument
2523
+ | FailedPrecondition
2524
+ | Unauthenticated
2525
+ | PermissionDenied
2526
+ | NotFound
2527
+ | AlreadyExists
2528
+ | ResourceExhausted
2529
+ | NamespaceLabsOpError;
2530
+ export const wireImage: API.OperationMethod<
2531
+ WireImageRequest,
2532
+ WireImageResponse,
2533
+ WireImageError,
2534
+ NamespaceLabsOpContext
2535
+ > = /*@__PURE__*/ API.make(() => ({
2536
+ input: __S(816, __c51, 0) as any as S.Schema<WireImageRequest>,
2537
+ output: __S(288, __c18, 0) as any as S.Schema<WireImageResponse>,
2538
+ errors: [
2539
+ InvalidArgument,
2540
+ FailedPrecondition,
2541
+ Unauthenticated,
2542
+ PermissionDenied,
2543
+ NotFound,
2544
+ AlreadyExists,
2545
+ ResourceExhausted,
2546
+ ],
2547
+ serviceErrors: NamespaceLabsServiceErrors,
2548
+ protocol: NamespaceLabsProtocol,
2549
+ retry: Retry.Retry,
2550
+ telemetry: TELEMETRY,
2551
+ span: "WireImage",
2552
+ }));
2553
+
2554
+ // Schema builders: each runs one schema initializer, on that schema's first use.
2555
+ function __c0(j: number): any {
2556
+ switch (j) {
2557
+ case 0:
2558
+ return S.suspend(() =>
2559
+ S.Struct({
2560
+ name: S.optional(S.String),
2561
+ imageRef: S.optional(S.String),
2562
+ instanceShape: S.optional(__S(930, __c58, 2)),
2563
+ site: S.optional(S.String),
2564
+ volumeName: S.optional(S.String),
2565
+ volumeSizeGb: S.optional(S.String),
2566
+ cacheVolumeSizeGb: S.optional(S.String),
2567
+ repository: S.optional(S.String),
2568
+ privateFeatures: S.optional(__S(880, __c55, 0)),
2569
+ enabledFeatures: S.optional(__S(880, __c55, 0)),
2570
+ features: S.optional(__S(864, __c54, 0)),
2571
+ imageName: S.optional(S.String),
2572
+ versionControl: S.optional(__S(933, __c58, 5)),
2573
+ busyEnsureMinimumDuration: S.optional(S.String),
2574
+ accessMode: S.optional(S.String),
2575
+ sessions: S.optional(__S(897, __c56, 1)),
2576
+ integrations: S.optional(__S(936, __c58, 8)),
2577
+ documentedPurpose: S.optional(S.String),
2578
+ ephemeral: S.optional(__S(944, __c59, 0)),
2579
+ privileged: S.optional(S.Boolean),
2580
+ environment: S.optional(__S(913, __c57, 1)),
2581
+ networkPolicy: S.optional(__S(939, __c58, 11)),
2582
+ ports: S.optional(__S(866, __c54, 2)),
2583
+ labels: S.optional(__S(929, __c58, 1)),
2584
+ initScript: S.optional(S.String),
2585
+ instanceEventCallback: S.optional(__S(851, __c53, 3)),
2586
+ persistenceMode: S.optional(S.String),
2587
+ services: S.optional(__S(870, __c54, 6)),
2588
+ workloadToken: S.optional(__S(940, __c58, 12)),
2589
+ activate: S.optional(S.Boolean),
2590
+ activateExperimental: S.optional(__S(962, __c60, 2)),
2591
+ }).pipe(
2592
+ T.Http({
2593
+ method: "POST",
2594
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/Create",
2595
+ code: 200,
2596
+ }),
2597
+ ),
2598
+ ).annotate({ identifier: "CreateRequest" });
2599
+ }
2600
+ }
2601
+ function __c1(j: number): any {
2602
+ switch (j) {
2603
+ case 0:
2604
+ return S.suspend(() =>
2605
+ S.Struct({
2606
+ devbox: S.optional(__S(1012, __c63, 4)),
2607
+ instanceId: S.String,
2608
+ }),
2609
+ ).annotate({ identifier: "CreateResponse" });
2610
+ }
2611
+ }
2612
+ function __c2(j: number): any {
2613
+ switch (j) {
2614
+ case 0:
2615
+ return S.suspend(() =>
2616
+ S.Struct({
2617
+ spec: S.optional(__S(54, __c3, 6)),
2618
+ experimental: S.optional(__S(64, __c4, 0)),
2619
+ }).pipe(
2620
+ T.Http({
2621
+ method: "POST",
2622
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/CreateBlueprint",
2623
+ code: 200,
2624
+ }),
2625
+ ),
2626
+ ).annotate({ identifier: "CreateBlueprintRequest" });
2627
+ }
2628
+ }
2629
+ function __c3(j: number): any {
2630
+ switch (j) {
2631
+ case 0:
2632
+ return S.suspend(() =>
2633
+ S.Struct({
2634
+ imageRef: S.optional(S.String),
2635
+ imageName: S.optional(S.String),
2636
+ }),
2637
+ ).annotate({ identifier: "DevboxTemplateSpecInstanceSpecLinuxInstanceSpec" });
2638
+ case 1:
2639
+ return S.suspend(() =>
2640
+ S.Struct({
2641
+ shape: S.optional(__S(930, __c58, 2)),
2642
+ linux: S.optional(__S(48, __c3, 0)),
2643
+ }),
2644
+ ).annotate({ identifier: "DevboxTemplateSpecInstanceSpec" });
2645
+ case 2:
2646
+ return S.suspend(() =>
2647
+ S.Struct({
2648
+ endpoint: S.optional(S.String),
2649
+ outpostId: S.optional(S.String),
2650
+ }),
2651
+ ).annotate({ identifier: "DevboxTemplateSpecExperimentalDevinOutpostSpec" });
2652
+ case 3:
2653
+ return S.suspend(() =>
2654
+ S.Struct({
2655
+ poolName: S.optional(S.String),
2656
+ }),
2657
+ ).annotate({ identifier: "DevboxTemplateSpecExperimentalCursorWorkerSpec" });
2658
+ case 4:
2659
+ return S.suspend(() =>
2660
+ S.Struct({
2661
+ environmentId: S.optional(S.String),
2662
+ webhookId: S.optional(S.String),
2663
+ }),
2664
+ ).annotate({ identifier: "DevboxTemplateSpecExperimentalClaudeEnvironmentSpec" });
2665
+ case 5:
2666
+ return S.suspend(() =>
2667
+ S.Struct({
2668
+ devinOutpost: S.optional(__S(50, __c3, 2)),
2669
+ cursorWorker: S.optional(__S(51, __c3, 3)),
2670
+ claudeEnvironment: S.optional(__S(52, __c3, 4)),
2671
+ }),
2672
+ ).annotate({ identifier: "DevboxTemplateSpecExperimental" });
2673
+ case 6:
2674
+ return S.suspend(() =>
2675
+ S.Struct({
2676
+ name: S.optional(S.String),
2677
+ instance: S.optional(__S(49, __c3, 1)),
2678
+ site: S.optional(S.String),
2679
+ ephemeral: S.optional(__S(944, __c59, 0)),
2680
+ versionControl: S.optional(__S(933, __c58, 5)),
2681
+ environment: S.optional(__S(913, __c57, 1)),
2682
+ busyEnsureMinimumDuration: S.optional(S.String),
2683
+ integrations: S.optional(__S(936, __c58, 8)),
2684
+ networkPolicy: S.optional(__S(939, __c58, 11)),
2685
+ volumeSizeGb: S.optional(S.String),
2686
+ experimental: S.optional(__S(53, __c3, 5)),
2687
+ description: S.optional(S.String),
2688
+ accessMode: S.optional(S.String),
2689
+ features: S.optional(__S(864, __c54, 0)),
2690
+ ports: S.optional(__S(866, __c54, 2)),
2691
+ type: S.optional(S.String),
2692
+ sessions: S.optional(__S(897, __c56, 1)),
2693
+ initScript: S.optional(S.String),
2694
+ persistenceMode: S.optional(S.String),
2695
+ services: S.optional(__S(870, __c54, 6)),
2696
+ privileged: S.optional(S.Boolean),
2697
+ workloadToken: S.optional(__S(940, __c58, 12)),
2698
+ }),
2699
+ ).annotate({ identifier: "DevboxTemplateSpec" });
2700
+ case 7:
2701
+ return S.suspend(() =>
2702
+ S.Struct({
2703
+ id: S.String,
2704
+ version: S.String,
2705
+ createdAt: S.optional(S.String),
2706
+ updatedAt: S.optional(S.String),
2707
+ spec: S.optional(__S(54, __c3, 6)),
2708
+ }),
2709
+ ).annotate({ identifier: "DevboxBlueprint" });
2710
+ }
2711
+ }
2712
+ function __c4(j: number): any {
2713
+ switch (j) {
2714
+ case 0:
2715
+ return S.suspend(() =>
2716
+ S.Struct({
2717
+ devinConnectCode: S.optional(S.String.pipe(T.SensitiveValue({}))),
2718
+ devinConnectState: S.optional(S.String),
2719
+ cursorApiKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
2720
+ claudeApiKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
2721
+ claudeEnvironmentKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
2722
+ claudeWebhookSigningKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
2723
+ }),
2724
+ ).annotate({ identifier: "CreateBlueprintRequestExperimental" });
2725
+ }
2726
+ }
2727
+ function __c5(j: number): any {
2728
+ switch (j) {
2729
+ case 0:
2730
+ return S.suspend(() =>
2731
+ S.Struct({
2732
+ blueprint: S.optional(__S(55, __c3, 7)),
2733
+ }),
2734
+ ).annotate({ identifier: "CreateBlueprintResponse" });
2735
+ }
2736
+ }
2737
+ function __c6(j: number): any {
2738
+ switch (j) {
2739
+ case 0:
2740
+ return S.suspend(() =>
2741
+ S.Struct({
2742
+ name: S.optional(S.String),
2743
+ blueprintId: S.optional(S.String),
2744
+ activate: S.optional(S.Boolean),
2745
+ activateExperimental: S.optional(__S(962, __c60, 2)),
2746
+ documentedPurpose: S.optional(S.String),
2747
+ overrides: S.optional(__S(112, __c7, 0)),
2748
+ labels: S.optional(__S(929, __c58, 1)),
2749
+ }).pipe(
2750
+ T.Http({
2751
+ method: "POST",
2752
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/CreateFromBlueprint",
2753
+ code: 200,
2754
+ }),
2755
+ ),
2756
+ ).annotate({ identifier: "CreateFromBlueprintRequest" });
2757
+ }
2758
+ }
2759
+ function __c7(j: number): any {
2760
+ switch (j) {
2761
+ case 0:
2762
+ return S.suspend(() =>
2763
+ S.Struct({
2764
+ site: S.optional(S.String),
2765
+ accessMode: S.optional(S.String),
2766
+ }),
2767
+ ).annotate({ identifier: "CreateFromBlueprintRequestOverrides" });
2768
+ }
2769
+ }
2770
+ function __c8(j: number): any {
2771
+ switch (j) {
2772
+ case 0:
2773
+ return S.suspend(() =>
2774
+ S.Struct({
2775
+ name: S.optional(S.String),
2776
+ fromDevbox: S.optional(S.String),
2777
+ instanceShape: S.optional(__S(930, __c58, 2)),
2778
+ snapshotId: S.optional(S.String),
2779
+ documentedPurpose: S.optional(S.String),
2780
+ labels: S.optional(__S(929, __c58, 1)),
2781
+ activateExperimental: S.optional(__S(962, __c60, 2)),
2782
+ }).pipe(
2783
+ T.Http({
2784
+ method: "POST",
2785
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/CreateFromDevbox",
2786
+ code: 200,
2787
+ }),
2788
+ ),
2789
+ ).annotate({ identifier: "CreateFromDevboxRequest" });
2790
+ }
2791
+ }
2792
+ function __c9(j: number): any {
2793
+ switch (j) {
2794
+ case 0:
2795
+ return S.suspend(() =>
2796
+ S.Struct({
2797
+ name: S.optional(S.String),
2798
+ templateId: S.optional(S.String),
2799
+ activate: S.optional(S.Boolean),
2800
+ activateExperimental: S.optional(__S(962, __c60, 2)),
2801
+ documentedPurpose: S.optional(S.String),
2802
+ overrides: S.optional(__S(112, __c7, 0)),
2803
+ labels: S.optional(__S(929, __c58, 1)),
2804
+ }).pipe(
2805
+ T.Http({
2806
+ method: "POST",
2807
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/CreateFromTemplate",
2808
+ code: 200,
2809
+ }),
2810
+ ),
2811
+ ).annotate({ identifier: "CreateFromTemplateRequest" });
2812
+ }
2813
+ }
2814
+ function __c10(j: number): any {
2815
+ switch (j) {
2816
+ case 0:
2817
+ return S.suspend(() =>
2818
+ S.Struct({
2819
+ claude: S.optional(__S(176, __c11, 0)),
2820
+ }).pipe(
2821
+ T.Http({
2822
+ method: "POST",
2823
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/CreateIntegration",
2824
+ code: 200,
2825
+ }),
2826
+ ),
2827
+ ).annotate({ identifier: "CreateIntegrationRequest" });
2828
+ case 1:
2829
+ return S.suspend(() =>
2830
+ S.Struct({
2831
+ id: S.String,
2832
+ }),
2833
+ ).annotate({ identifier: "CreateIntegrationResponse" });
2834
+ }
2835
+ }
2836
+ function __c11(j: number): any {
2837
+ switch (j) {
2838
+ case 0:
2839
+ return S.suspend(() =>
2840
+ S.Struct({
2841
+ claudeApiKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
2842
+ claudeEnvironmentId: S.optional(S.String),
2843
+ claudeEnvironmentKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
2844
+ claudeWebhookSigningKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
2845
+ nscWebhookId: S.optional(S.String),
2846
+ }),
2847
+ ).annotate({ identifier: "ClaudeIntegrationSpec" });
2848
+ }
2849
+ }
2850
+ function __c12(j: number): any {
2851
+ switch (j) {
2852
+ case 0:
2853
+ return S.suspend(() =>
2854
+ S.Struct({
2855
+ repository: S.optional(S.String),
2856
+ }).pipe(
2857
+ T.Http({
2858
+ method: "POST",
2859
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/CreateRepository",
2860
+ code: 200,
2861
+ }),
2862
+ ),
2863
+ ).annotate({ identifier: "CreateRepositoryRequest" });
2864
+ }
2865
+ }
2866
+ function __c13(j: number): any {
2867
+ switch (j) {
2868
+ case 0:
2869
+ return S.suspend(() =>
2870
+ S.Struct({
2871
+ spec: S.optional(__S(54, __c3, 6)),
2872
+ experimental: S.optional(__S(64, __c4, 0)),
2873
+ }).pipe(
2874
+ T.Http({
2875
+ method: "POST",
2876
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/CreateTemplate",
2877
+ code: 200,
2878
+ }),
2879
+ ),
2880
+ ).annotate({ identifier: "CreateTemplateRequest" });
2881
+ }
2882
+ }
2883
+ function __c14(j: number): any {
2884
+ switch (j) {
2885
+ case 0:
2886
+ return S.suspend(() =>
2887
+ S.Struct({
2888
+ template: S.optional(__S(55, __c3, 7)),
2889
+ }),
2890
+ ).annotate({ identifier: "CreateTemplateResponse" });
2891
+ }
2892
+ }
2893
+ function __c15(j: number): any {
2894
+ switch (j) {
2895
+ case 0:
2896
+ return S.suspend(() =>
2897
+ S.Struct({
2898
+ id: S.optional(S.String),
2899
+ }).pipe(
2900
+ T.Http({
2901
+ method: "POST",
2902
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/DeleteIntegration",
2903
+ code: 200,
2904
+ }),
2905
+ ),
2906
+ ).annotate({ identifier: "DeleteIntegrationRequest" });
2907
+ }
2908
+ }
2909
+ function __c16(j: number): any {
2910
+ switch (j) {
2911
+ case 0:
2912
+ return S.suspend(() =>
2913
+ S.Struct({
2914
+ digest: S.optional(S.String),
2915
+ version: S.optional(S.String),
2916
+ name: S.optional(S.String),
2917
+ id: S.optional(S.String),
2918
+ }).pipe(
2919
+ T.Http({
2920
+ method: "POST",
2921
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/DescribeImage",
2922
+ code: 200,
2923
+ }),
2924
+ ),
2925
+ ).annotate({ identifier: "DescribeImageRequest" });
2926
+ }
2927
+ }
2928
+ function __c17(j: number): any {
2929
+ switch (j) {
2930
+ case 0:
2931
+ return S.Array(S.String);
2932
+ case 1:
2933
+ return S.suspend(() =>
2934
+ S.Struct({
2935
+ dockerfile: S.optional(S.String),
2936
+ buildRef: S.optional(S.String),
2937
+ }),
2938
+ ).annotate({ identifier: "ImageSource" });
2939
+ case 2:
2940
+ return S.suspend(() =>
2941
+ S.Struct({
2942
+ repository: S.String,
2943
+ digest: S.String,
2944
+ originalDigest: S.String,
2945
+ createdAt: S.optional(S.String),
2946
+ description: S.String,
2947
+ metadata: S.optional(__S(1001, __c62, 9)),
2948
+ flag: __S(272, __c17, 0),
2949
+ version: S.String,
2950
+ source: S.optional(__S(273, __c17, 1)),
2951
+ name: S.String,
2952
+ id: S.String,
2953
+ expiresAt: S.optional(S.String),
2954
+ }),
2955
+ ).annotate({ identifier: "Image" });
2956
+ }
2957
+ }
2958
+ function __c18(j: number): any {
2959
+ switch (j) {
2960
+ case 0:
2961
+ return S.suspend(() =>
2962
+ S.Struct({
2963
+ image: S.optional(__S(274, __c17, 2)),
2964
+ }),
2965
+ ).annotate({ identifier: "DescribeImageResponse" });
2966
+ }
2967
+ }
2968
+ function __c19(j: number): any {
2969
+ switch (j) {
2970
+ case 0:
2971
+ return S.suspend(() =>
2972
+ S.Struct({
2973
+ spec: S.optional(__S(54, __c3, 6)),
2974
+ experimental: S.optional(__S(64, __c4, 0)),
2975
+ }).pipe(
2976
+ T.Http({
2977
+ method: "POST",
2978
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/EnsureBlueprint",
2979
+ code: 200,
2980
+ }),
2981
+ ),
2982
+ ).annotate({ identifier: "EnsureBlueprintRequest" });
2983
+ }
2984
+ }
2985
+ function __c20(j: number): any {
2986
+ switch (j) {
2987
+ case 0:
2988
+ return S.suspend(() =>
2989
+ S.Struct({
2990
+ name: S.optional(S.String),
2991
+ }).pipe(
2992
+ T.Http({
2993
+ method: "POST",
2994
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/Expire",
2995
+ code: 200,
2996
+ }),
2997
+ ),
2998
+ ).annotate({ identifier: "ExpireRequest" });
2999
+ case 1:
3000
+ return S.suspend(() =>
3001
+ S.Struct({
3002
+ devboxes: __S(336, __c21, 0),
3003
+ }),
3004
+ ).annotate({ identifier: "ExpireResponse" });
3005
+ }
3006
+ }
3007
+ function __c21(j: number): any {
3008
+ switch (j) {
3009
+ case 0:
3010
+ return S.Array(__S(1012, __c63, 4));
3011
+ }
3012
+ }
3013
+ function __c22(j: number): any {
3014
+ switch (j) {
3015
+ case 0:
3016
+ return S.suspend(() =>
3017
+ S.Struct({
3018
+ id: S.optional(S.String),
3019
+ }).pipe(
3020
+ T.Http({
3021
+ method: "POST",
3022
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ExpireBlueprint",
3023
+ code: 200,
3024
+ }),
3025
+ ),
3026
+ ).annotate({ identifier: "ExpireBlueprintRequest" });
3027
+ }
3028
+ }
3029
+ function __c23(j: number): any {
3030
+ switch (j) {
3031
+ case 0:
3032
+ return S.suspend(() =>
3033
+ S.Struct({
3034
+ repository: S.optional(S.String),
3035
+ digest: S.optional(S.String),
3036
+ name: S.optional(S.String),
3037
+ version: S.optional(S.String),
3038
+ }).pipe(
3039
+ T.Http({
3040
+ method: "POST",
3041
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ExpireImage",
3042
+ code: 200,
3043
+ }),
3044
+ ),
3045
+ ).annotate({ identifier: "ExpireImageRequest" });
3046
+ }
3047
+ }
3048
+ function __c24(j: number): any {
3049
+ switch (j) {
3050
+ case 0:
3051
+ return S.suspend(() =>
3052
+ S.Struct({
3053
+ id: S.optional(S.String),
3054
+ }).pipe(
3055
+ T.Http({
3056
+ method: "POST",
3057
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ExpireTemplate",
3058
+ code: 200,
3059
+ }),
3060
+ ),
3061
+ ).annotate({ identifier: "ExpireTemplateRequest" });
3062
+ }
3063
+ }
3064
+ function __c25(j: number): any {
3065
+ switch (j) {
3066
+ case 0:
3067
+ return S.suspend(() =>
3068
+ S.Struct({
3069
+ name: S.optional(S.String),
3070
+ includeSshCredentials: S.optional(S.Boolean),
3071
+ returnActivatedInstance: S.optional(S.Boolean),
3072
+ id: S.optional(S.String),
3073
+ idOrName: S.optional(S.String),
3074
+ }).pipe(
3075
+ T.Http({
3076
+ method: "POST",
3077
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/Fetch",
3078
+ code: 200,
3079
+ }),
3080
+ ),
3081
+ ).annotate({ identifier: "FetchRequest" });
3082
+ case 1:
3083
+ return S.suspend(() =>
3084
+ S.Struct({
3085
+ devbox: S.optional(__S(1012, __c63, 4)),
3086
+ privateSshKey: S.String.pipe(T.SensitiveValue({})),
3087
+ instanceId: S.String,
3088
+ }),
3089
+ ).annotate({ identifier: "FetchResponse" });
3090
+ }
3091
+ }
3092
+ function __c26(j: number): any {
3093
+ switch (j) {
3094
+ case 0:
3095
+ return S.suspend(() =>
3096
+ S.Struct({
3097
+ name: S.optional(S.String),
3098
+ }).pipe(
3099
+ T.Http({
3100
+ method: "POST",
3101
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/FetchBlueprint",
3102
+ code: 200,
3103
+ }),
3104
+ ),
3105
+ ).annotate({ identifier: "FetchBlueprintRequest" });
3106
+ }
3107
+ }
3108
+ function __c27(j: number): any {
3109
+ switch (j) {
3110
+ case 0:
3111
+ return S.suspend(() =>
3112
+ S.Struct({}).pipe(
3113
+ T.Http({
3114
+ method: "POST",
3115
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/FetchDefaults",
3116
+ code: 200,
3117
+ }),
3118
+ ),
3119
+ ).annotate({ identifier: "FetchDefaultsRequest" });
3120
+ case 1:
3121
+ return S.suspend(() =>
3122
+ S.Struct({
3123
+ defaults: S.optional(__S(448, __c28, 0)),
3124
+ metadataVersion: S.String,
3125
+ byPolicy: S.optional(__S(448, __c28, 0)),
3126
+ }),
3127
+ ).annotate({ identifier: "FetchDefaultsResponse" });
3128
+ }
3129
+ }
3130
+ function __c28(j: number): any {
3131
+ switch (j) {
3132
+ case 0:
3133
+ return S.suspend(() =>
3134
+ S.Struct({
3135
+ instanceShape: S.optional(__S(930, __c58, 2)),
3136
+ imageName: S.optional(S.String),
3137
+ versionControl: S.optional(__S(933, __c58, 5)),
3138
+ busyEnsureMinimumDuration: S.optional(S.String),
3139
+ accessMode: S.optional(S.String),
3140
+ integrations: S.optional(__S(936, __c58, 8)),
3141
+ enabledFeatures: S.optional(__S(880, __c55, 0)),
3142
+ volumeSizeGb: S.optional(S.String),
3143
+ networkPolicy: S.optional(__S(939, __c58, 11)),
3144
+ workloadToken: S.optional(__S(940, __c58, 12)),
3145
+ }),
3146
+ ).annotate({ identifier: "DevboxDefaults" });
3147
+ }
3148
+ }
3149
+ function __c29(j: number): any {
3150
+ switch (j) {
3151
+ case 0:
3152
+ return S.suspend(() =>
3153
+ S.Struct({
3154
+ name: S.optional(S.String),
3155
+ }).pipe(
3156
+ T.Http({
3157
+ method: "POST",
3158
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/FetchTemplate",
3159
+ code: 200,
3160
+ }),
3161
+ ),
3162
+ ).annotate({ identifier: "FetchTemplateRequest" });
3163
+ }
3164
+ }
3165
+ function __c30(j: number): any {
3166
+ switch (j) {
3167
+ case 0:
3168
+ return S.suspend(() =>
3169
+ S.Struct({
3170
+ year: S.optional(S.Number),
3171
+ month: S.optional(S.Number),
3172
+ day: S.optional(S.Number),
3173
+ }),
3174
+ ).annotate({ identifier: "GetUsageRequestDate" });
3175
+ case 1:
3176
+ return S.suspend(() =>
3177
+ S.Struct({
3178
+ periodStart: S.optional(__S(480, __c30, 0)),
3179
+ periodEnd: S.optional(__S(480, __c30, 0)),
3180
+ }).pipe(
3181
+ T.Http({
3182
+ method: "POST",
3183
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/GetUsage",
3184
+ code: 200,
3185
+ }),
3186
+ ),
3187
+ ).annotate({ identifier: "GetUsageRequest" });
3188
+ case 2:
3189
+ return S.suspend(() =>
3190
+ S.Struct({
3191
+ year: S.Number,
3192
+ month: S.Number,
3193
+ day: S.Number,
3194
+ activeCount: S.Number,
3195
+ activeCountForUser: S.Number,
3196
+ }),
3197
+ ).annotate({ identifier: "GetUsageResponseDataPoint" });
3198
+ case 3:
3199
+ return S.Array(__S(482, __c30, 2));
3200
+ case 4:
3201
+ return S.suspend(() =>
3202
+ S.Struct({
3203
+ perDay: __S(483, __c30, 3),
3204
+ maximumCount: S.Number,
3205
+ maximumCountPerUser: S.Number,
3206
+ }),
3207
+ ).annotate({ identifier: "GetUsageResponse" });
3208
+ }
3209
+ }
3210
+ function __c31(j: number): any {
3211
+ switch (j) {
3212
+ case 0:
3213
+ return S.suspend(() =>
3214
+ S.Struct({
3215
+ imageRef: S.optional(S.String),
3216
+ }).pipe(
3217
+ T.Http({
3218
+ method: "POST",
3219
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/InspectImage",
3220
+ code: 200,
3221
+ }),
3222
+ ),
3223
+ ).annotate({ identifier: "InspectImageRequest" });
3224
+ case 1:
3225
+ return S.Record(S.String, S.String);
3226
+ case 2:
3227
+ return S.suspend(() =>
3228
+ S.Struct({
3229
+ optimizedKinds: __S(880, __c55, 0),
3230
+ user: S.String,
3231
+ env: __S(497, __c31, 1),
3232
+ version: S.String,
3233
+ spec: S.optional(__S(1001, __c62, 9)),
3234
+ versionCreatedAt: S.optional(S.String),
3235
+ optimizedSites: __S(880, __c55, 0),
3236
+ }),
3237
+ ).annotate({ identifier: "InspectImageResponse" });
3238
+ }
3239
+ }
3240
+ function __c32(j: number): any {
3241
+ switch (j) {
3242
+ case 0:
3243
+ return S.suspend(() =>
3244
+ S.Struct({
3245
+ values: S.optional(__S(880, __c55, 0)),
3246
+ op: S.optional(S.String),
3247
+ }),
3248
+ ).annotate({ identifier: "StringMatcher" });
3249
+ case 1:
3250
+ return S.suspend(() =>
3251
+ S.Struct({
3252
+ name: S.optional(S.String),
3253
+ value: S.optional(S.String),
3254
+ op: S.optional(S.String),
3255
+ }),
3256
+ ).annotate({ identifier: "LabelFilterEntry" });
3257
+ case 2:
3258
+ return S.Array(__S(513, __c32, 1));
3259
+ case 3:
3260
+ return S.suspend(() =>
3261
+ S.Struct({
3262
+ anyOf: S.optional(__S(514, __c32, 2)),
3263
+ }),
3264
+ ).annotate({ identifier: "ListRequestLabelFilter" });
3265
+ case 4:
3266
+ return S.Array(__S(515, __c32, 3));
3267
+ case 5:
3268
+ return S.suspend(() =>
3269
+ S.Struct({
3270
+ paginationCursor: S.optional(S.String),
3271
+ matchCreator: S.optional(__S(512, __c32, 0)),
3272
+ matchImageName: S.optional(__S(512, __c32, 0)),
3273
+ matchImageRef: S.optional(__S(512, __c32, 0)),
3274
+ orderBy: S.optional(S.String),
3275
+ matchEphemeral: S.optional(S.String),
3276
+ maxEntries: S.optional(S.String),
3277
+ matchLabels: S.optional(__S(516, __c32, 4)),
3278
+ }).pipe(
3279
+ T.Http({
3280
+ method: "POST",
3281
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/List",
3282
+ code: 200,
3283
+ }),
3284
+ ),
3285
+ ).annotate({ identifier: "ListRequest" });
3286
+ case 6:
3287
+ return S.suspend(() =>
3288
+ S.Struct({
3289
+ paginationCursor: S.String,
3290
+ devboxes: __S(336, __c21, 0),
3291
+ }),
3292
+ ).annotate({ identifier: "ListResponse" });
3293
+ }
3294
+ }
3295
+ function __c33(j: number): any {
3296
+ switch (j) {
3297
+ case 0:
3298
+ return S.suspend(() =>
3299
+ S.Struct({
3300
+ paginationCursor: S.optional(S.String),
3301
+ orderBy: S.optional(S.String),
3302
+ maxEntries: S.optional(S.String),
3303
+ }).pipe(
3304
+ T.Http({
3305
+ method: "POST",
3306
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ListBlueprints",
3307
+ code: 200,
3308
+ }),
3309
+ ),
3310
+ ).annotate({ identifier: "ListBlueprintsRequest" });
3311
+ case 1:
3312
+ return S.suspend(() =>
3313
+ S.Struct({
3314
+ blueprints: __S(544, __c34, 0),
3315
+ paginationCursor: S.String,
3316
+ }),
3317
+ ).annotate({ identifier: "ListBlueprintsResponse" });
3318
+ }
3319
+ }
3320
+ function __c34(j: number): any {
3321
+ switch (j) {
3322
+ case 0:
3323
+ return S.Array(__S(55, __c3, 7));
3324
+ }
3325
+ }
3326
+ function __c35(j: number): any {
3327
+ switch (j) {
3328
+ case 0:
3329
+ return S.suspend(() =>
3330
+ S.Struct({}).pipe(
3331
+ T.Http({
3332
+ method: "POST",
3333
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ListComposableFeatures",
3334
+ code: 200,
3335
+ }),
3336
+ ),
3337
+ ).annotate({ identifier: "ListComposableFeaturesRequest" });
3338
+ case 1:
3339
+ return S.Array(__S(576, __c36, 0));
3340
+ case 2:
3341
+ return S.suspend(() =>
3342
+ S.Struct({
3343
+ features: __S(561, __c35, 1),
3344
+ }),
3345
+ ).annotate({ identifier: "ListComposableFeaturesResponse" });
3346
+ }
3347
+ }
3348
+ function __c36(j: number): any {
3349
+ switch (j) {
3350
+ case 0:
3351
+ return S.suspend(() =>
3352
+ S.Struct({
3353
+ id: S.optional(S.String),
3354
+ iconUrl: S.optional(S.String),
3355
+ description: S.optional(S.String),
3356
+ builtin: S.optional(S.Boolean),
3357
+ }),
3358
+ ).annotate({ identifier: "ComposableFeature" });
3359
+ }
3360
+ }
3361
+ function __c37(j: number): any {
3362
+ switch (j) {
3363
+ case 0:
3364
+ return S.suspend(() =>
3365
+ S.Struct({
3366
+ includeBuiltin: S.optional(S.Boolean),
3367
+ pagionationCursor: S.optional(S.String),
3368
+ }).pipe(
3369
+ T.Http({
3370
+ method: "POST",
3371
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ListImages",
3372
+ code: 200,
3373
+ }),
3374
+ ),
3375
+ ).annotate({ identifier: "ListImagesRequest" });
3376
+ case 1:
3377
+ return S.Array(__S(274, __c17, 2));
3378
+ case 2:
3379
+ return S.suspend(() =>
3380
+ S.Struct({
3381
+ paginationCursor: S.String,
3382
+ image: __S(593, __c37, 1),
3383
+ }),
3384
+ ).annotate({ identifier: "ListImagesResponse" });
3385
+ }
3386
+ }
3387
+ function __c38(j: number): any {
3388
+ switch (j) {
3389
+ case 0:
3390
+ return S.suspend(() =>
3391
+ S.Struct({}).pipe(
3392
+ T.Http({
3393
+ method: "POST",
3394
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ListIntegrations",
3395
+ code: 200,
3396
+ }),
3397
+ ),
3398
+ ).annotate({ identifier: "ListIntegrationsRequest" });
3399
+ case 1:
3400
+ return S.suspend(() =>
3401
+ S.Struct({
3402
+ id: S.String,
3403
+ createdAt: S.optional(S.String),
3404
+ updatedAt: S.optional(S.String),
3405
+ claude: S.optional(__S(176, __c11, 0)),
3406
+ }),
3407
+ ).annotate({ identifier: "Integration" });
3408
+ case 2:
3409
+ return S.Array(__S(609, __c38, 1));
3410
+ case 3:
3411
+ return S.suspend(() =>
3412
+ S.Struct({
3413
+ integrations: __S(610, __c38, 2),
3414
+ }),
3415
+ ).annotate({ identifier: "ListIntegrationsResponse" });
3416
+ }
3417
+ }
3418
+ function __c39(j: number): any {
3419
+ switch (j) {
3420
+ case 0:
3421
+ return S.suspend(() =>
3422
+ S.Struct({
3423
+ idOrName: S.optional(S.String),
3424
+ orderBy: S.optional(S.String),
3425
+ }).pipe(
3426
+ T.Http({
3427
+ method: "POST",
3428
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ListSnapshots",
3429
+ code: 200,
3430
+ }),
3431
+ ),
3432
+ ).annotate({ identifier: "ListSnapshotsRequest" });
3433
+ case 1:
3434
+ return S.suspend(() =>
3435
+ S.Struct({
3436
+ id: S.String,
3437
+ createdAt: S.optional(S.String),
3438
+ usedBytes: S.String,
3439
+ snapshotFrom: S.String,
3440
+ completedSnapshot: S.String,
3441
+ netNewUsedBytes: S.String,
3442
+ attachedInstanceId: S.String,
3443
+ releasedAt: S.optional(S.String),
3444
+ releasedReason: S.String,
3445
+ abandonedAt: S.optional(S.String),
3446
+ metadataVersion: S.String,
3447
+ }),
3448
+ ).annotate({ identifier: "PersistentVolumeSnapshot" });
3449
+ case 2:
3450
+ return S.Array(__S(625, __c39, 1));
3451
+ case 3:
3452
+ return S.suspend(() =>
3453
+ S.Struct({
3454
+ snapshots: __S(626, __c39, 2),
3455
+ }),
3456
+ ).annotate({ identifier: "ListSnapshotsResponse" });
3457
+ }
3458
+ }
3459
+ function __c40(j: number): any {
3460
+ switch (j) {
3461
+ case 0:
3462
+ return S.suspend(() =>
3463
+ S.Struct({
3464
+ paginationCursor: S.optional(S.String),
3465
+ orderBy: S.optional(S.String),
3466
+ maxEntries: S.optional(S.String),
3467
+ }).pipe(
3468
+ T.Http({
3469
+ method: "POST",
3470
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ListTemplates",
3471
+ code: 200,
3472
+ }),
3473
+ ),
3474
+ ).annotate({ identifier: "ListTemplatesRequest" });
3475
+ case 1:
3476
+ return S.suspend(() =>
3477
+ S.Struct({
3478
+ templates: __S(544, __c34, 0),
3479
+ paginationCursor: S.String,
3480
+ }),
3481
+ ).annotate({ identifier: "ListTemplatesResponse" });
3482
+ }
3483
+ }
3484
+ function __c41(j: number): any {
3485
+ switch (j) {
3486
+ case 0:
3487
+ return S.suspend(() =>
3488
+ S.Struct({}).pipe(
3489
+ T.Http({
3490
+ method: "POST",
3491
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/Metadata",
3492
+ code: 200,
3493
+ }),
3494
+ ),
3495
+ ).annotate({ identifier: "MetadataRequest" });
3496
+ case 1:
3497
+ return S.suspend(() =>
3498
+ S.Struct({
3499
+ site: S.String,
3500
+ label: S.String,
3501
+ platforms: __S(880, __c55, 0),
3502
+ }),
3503
+ ).annotate({ identifier: "MetadataResponseSite" });
3504
+ case 2:
3505
+ return S.Array(__S(657, __c41, 1));
3506
+ case 3:
3507
+ return S.suspend(() =>
3508
+ S.Struct({
3509
+ sites: __S(658, __c41, 2),
3510
+ }),
3511
+ ).annotate({ identifier: "MetadataResponse" });
3512
+ }
3513
+ }
3514
+ function __c42(j: number): any {
3515
+ switch (j) {
3516
+ case 0:
3517
+ return S.suspend(() =>
3518
+ S.Struct({}).pipe(
3519
+ T.Http({
3520
+ method: "POST",
3521
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/Ping",
3522
+ code: 200,
3523
+ }),
3524
+ ),
3525
+ ).annotate({ identifier: "PingRequest" });
3526
+ }
3527
+ }
3528
+ function __c43(j: number): any {
3529
+ switch (j) {
3530
+ case 0:
3531
+ return S.suspend(() =>
3532
+ S.Struct({
3533
+ name: S.optional(S.String),
3534
+ script: S.optional(S.String),
3535
+ scriptSource: S.optional(S.String),
3536
+ interpreter: S.optional(S.String),
3537
+ }),
3538
+ ).annotate({ identifier: "FeatureSpecRunScript" });
3539
+ case 1:
3540
+ return S.Array(__S(688, __c43, 0));
3541
+ case 2:
3542
+ return S.suspend(() =>
3543
+ S.Struct({
3544
+ name: S.optional(S.String),
3545
+ port: S.optional(S.Number),
3546
+ }),
3547
+ ).annotate({ identifier: "FeatureSpecExportedPort" });
3548
+ case 3:
3549
+ return S.Array(__S(690, __c43, 2));
3550
+ case 4:
3551
+ return S.suspend(() =>
3552
+ S.Struct({
3553
+ onCreate: S.optional(__S(689, __c43, 1)),
3554
+ sessions: S.optional(__S(897, __c56, 1)),
3555
+ includeInPath: S.optional(__S(880, __c55, 0)),
3556
+ exportedPorts: S.optional(__S(691, __c43, 3)),
3557
+ onStartup: S.optional(__S(689, __c43, 1)),
3558
+ }),
3559
+ ).annotate({ identifier: "FeatureSpec" });
3560
+ case 5:
3561
+ return S.suspend(() =>
3562
+ S.Struct({
3563
+ feature: S.optional(__S(576, __c36, 0)),
3564
+ spec: S.optional(__S(692, __c43, 4)),
3565
+ }).pipe(
3566
+ T.Http({
3567
+ method: "POST",
3568
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/RegisterComposableFeature",
3569
+ code: 200,
3570
+ }),
3571
+ ),
3572
+ ).annotate({ identifier: "RegisterComposableFeatureRequest" });
3573
+ }
3574
+ }
3575
+ function __c44(j: number): any {
3576
+ switch (j) {
3577
+ case 0:
3578
+ return S.suspend(() =>
3579
+ S.Struct({
3580
+ idOrName: S.optional(S.String),
3581
+ leaseId: S.optional(S.String),
3582
+ }).pipe(
3583
+ T.Http({
3584
+ method: "POST",
3585
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/ReleaseLease",
3586
+ code: 200,
3587
+ }),
3588
+ ),
3589
+ ).annotate({ identifier: "ReleaseLeaseRequest" });
3590
+ }
3591
+ }
3592
+ function __c45(j: number): any {
3593
+ switch (j) {
3594
+ case 0:
3595
+ return S.suspend(() =>
3596
+ S.Struct({
3597
+ id: S.optional(S.String),
3598
+ }).pipe(
3599
+ T.Http({
3600
+ method: "POST",
3601
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/RemoveComposableFeature",
3602
+ code: 200,
3603
+ }),
3604
+ ),
3605
+ ).annotate({ identifier: "RemoveComposableFeatureRequest" });
3606
+ }
3607
+ }
3608
+ function __c46(j: number): any {
3609
+ switch (j) {
3610
+ case 0:
3611
+ return S.suspend(() =>
3612
+ S.Struct({
3613
+ name: S.optional(S.String),
3614
+ }).pipe(
3615
+ T.Http({
3616
+ method: "POST",
3617
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/Stop",
3618
+ code: 200,
3619
+ }),
3620
+ ),
3621
+ ).annotate({ identifier: "StopRequest" });
3622
+ }
3623
+ }
3624
+ function __c47(j: number): any {
3625
+ switch (j) {
3626
+ case 0:
3627
+ return S.suspend(() =>
3628
+ S.Struct({
3629
+ name: S.optional(S.String),
3630
+ instanceShape: S.optional(__S(930, __c58, 2)),
3631
+ busyEnsureMinimumDuration: S.optional(S.String),
3632
+ integrations: S.optional(__S(936, __c58, 8)),
3633
+ volumeSizeGb: S.optional(S.String),
3634
+ privileged: S.optional(S.Boolean),
3635
+ networkPolicy: S.optional(__S(939, __c58, 11)),
3636
+ httpAccessMode: S.optional(__S(1010, __c63, 2)),
3637
+ }).pipe(
3638
+ T.Http({
3639
+ method: "POST",
3640
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/Update",
3641
+ code: 200,
3642
+ }),
3643
+ ),
3644
+ ).annotate({ identifier: "UpdateRequest" });
3645
+ case 1:
3646
+ return S.suspend(() =>
3647
+ S.Struct({
3648
+ devbox: S.optional(__S(1012, __c63, 4)),
3649
+ }),
3650
+ ).annotate({ identifier: "UpdateResponse" });
3651
+ }
3652
+ }
3653
+ function __c48(j: number): any {
3654
+ switch (j) {
3655
+ case 0:
3656
+ return S.suspend(() =>
3657
+ S.Struct({
3658
+ id: S.optional(S.String),
3659
+ spec: S.optional(__S(54, __c3, 6)),
3660
+ experimental: S.optional(__S(64, __c4, 0)),
3661
+ }).pipe(
3662
+ T.Http({
3663
+ method: "POST",
3664
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/UpdateBlueprint",
3665
+ code: 200,
3666
+ }),
3667
+ ),
3668
+ ).annotate({ identifier: "UpdateBlueprintRequest" });
3669
+ }
3670
+ }
3671
+ function __c49(j: number): any {
3672
+ switch (j) {
3673
+ case 0:
3674
+ return S.suspend(() =>
3675
+ S.Struct({
3676
+ defaults: S.optional(__S(448, __c28, 0)),
3677
+ matchMetadataVersion: S.optional(S.String),
3678
+ }).pipe(
3679
+ T.Http({
3680
+ method: "POST",
3681
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/UpdateDefaults",
3682
+ code: 200,
3683
+ }),
3684
+ ),
3685
+ ).annotate({ identifier: "UpdateDefaultsRequest" });
3686
+ case 1:
3687
+ return S.suspend(() =>
3688
+ S.Struct({
3689
+ defaults: S.optional(__S(448, __c28, 0)),
3690
+ }),
3691
+ ).annotate({ identifier: "UpdateDefaultsResponse" });
3692
+ }
3693
+ }
3694
+ function __c50(j: number): any {
3695
+ switch (j) {
3696
+ case 0:
3697
+ return S.suspend(() =>
3698
+ S.Struct({
3699
+ id: S.optional(S.String),
3700
+ spec: S.optional(__S(54, __c3, 6)),
3701
+ experimental: S.optional(__S(64, __c4, 0)),
3702
+ }).pipe(
3703
+ T.Http({
3704
+ method: "POST",
3705
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/UpdateTemplate",
3706
+ code: 200,
3707
+ }),
3708
+ ),
3709
+ ).annotate({ identifier: "UpdateTemplateRequest" });
3710
+ }
3711
+ }
3712
+ function __c51(j: number): any {
3713
+ switch (j) {
3714
+ case 0:
3715
+ return S.suspend(() =>
3716
+ S.Struct({
3717
+ imageRef: S.optional(S.String),
3718
+ description: S.optional(S.String),
3719
+ metadata: S.optional(__S(1001, __c62, 9)),
3720
+ name: S.optional(S.String),
3721
+ source: S.optional(__S(273, __c17, 1)),
3722
+ }).pipe(
3723
+ T.Http({
3724
+ method: "POST",
3725
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/WireImage",
3726
+ code: 200,
3727
+ }),
3728
+ ),
3729
+ ).annotate({ identifier: "WireImageRequest" });
3730
+ }
3731
+ }
3732
+ function __c52(j: number): any {
3733
+ switch (j) {
3734
+ case 0:
3735
+ return S.suspend(() =>
3736
+ S.Struct({
3737
+ name: S.optional(S.String),
3738
+ imageRef: S.optional(S.String),
3739
+ instanceShape: S.optional(__S(930, __c58, 2)),
3740
+ site: S.optional(S.String),
3741
+ volumeName: S.optional(S.String),
3742
+ volumeSizeGb: S.optional(S.String),
3743
+ cacheVolumeSizeGb: S.optional(S.String),
3744
+ repository: S.optional(S.String),
3745
+ privateFeatures: S.optional(__S(880, __c55, 0)),
3746
+ enabledFeatures: S.optional(__S(880, __c55, 0)),
3747
+ features: S.optional(__S(864, __c54, 0)),
3748
+ imageName: S.optional(S.String),
3749
+ versionControl: S.optional(__S(933, __c58, 5)),
3750
+ busyEnsureMinimumDuration: S.optional(S.String),
3751
+ accessMode: S.optional(S.String),
3752
+ sessions: S.optional(__S(897, __c56, 1)),
3753
+ integrations: S.optional(__S(936, __c58, 8)),
3754
+ documentedPurpose: S.optional(S.String),
3755
+ ephemeral: S.optional(__S(944, __c59, 0)),
3756
+ privileged: S.optional(S.Boolean),
3757
+ environment: S.optional(__S(913, __c57, 1)),
3758
+ networkPolicy: S.optional(__S(939, __c58, 11)),
3759
+ ports: S.optional(__S(866, __c54, 2)),
3760
+ labels: S.optional(__S(929, __c58, 1)),
3761
+ initScript: S.optional(S.String),
3762
+ instanceEventCallback: S.optional(__S(851, __c53, 3)),
3763
+ persistenceMode: S.optional(S.String),
3764
+ services: S.optional(__S(870, __c54, 6)),
3765
+ workloadToken: S.optional(__S(940, __c58, 12)),
3766
+ activate: S.optional(S.Boolean),
3767
+ activateExperimental: S.optional(__S(962, __c60, 2)),
3768
+ }),
3769
+ ).annotate({ identifier: "CreateRequest2" });
3770
+ case 1:
3771
+ return S.suspend(() =>
3772
+ S.Struct({
3773
+ tag: S.optional(S.String),
3774
+ create: S.optional(__S(832, __c52, 0)),
3775
+ }).pipe(
3776
+ T.Http({
3777
+ method: "POST",
3778
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/AcquireLease",
3779
+ code: 200,
3780
+ }),
3781
+ ),
3782
+ ).annotate({ identifier: "AcquireLeaseRequest" });
3783
+ case 2:
3784
+ return S.suspend(() =>
3785
+ S.Struct({
3786
+ devbox: S.optional(__S(1012, __c63, 4)),
3787
+ instanceId: S.String,
3788
+ leaseId: S.String,
3789
+ outcome: S.String,
3790
+ }),
3791
+ ).annotate({ identifier: "AcquireLeaseResponse" });
3792
+ }
3793
+ }
3794
+ function __c53(j: number): any {
3795
+ switch (j) {
3796
+ case 0:
3797
+ return S.suspend(() =>
3798
+ S.Struct({
3799
+ static: S.optional(S.String),
3800
+ fromSecretId: S.optional(S.String),
3801
+ }),
3802
+ ).annotate({ identifier: "ResolvableValue" });
3803
+ case 1:
3804
+ return S.suspend(() =>
3805
+ S.Struct({
3806
+ name: S.optional(S.String),
3807
+ value: S.optional(S.String),
3808
+ valueFrom: S.optional(__S(848, __c53, 0)),
3809
+ }),
3810
+ ).annotate({ identifier: "HttpHeader" });
3811
+ case 2:
3812
+ return S.Array(__S(849, __c53, 1));
3813
+ case 3:
3814
+ return S.suspend(() =>
3815
+ S.Struct({
3816
+ postUrl: S.optional(S.String),
3817
+ headers: S.optional(__S(850, __c53, 2)),
3818
+ signWithSecretId: S.optional(S.String),
3819
+ }),
3820
+ ).annotate({ identifier: "HttpCallbackEndpoint" });
3821
+ }
3822
+ }
3823
+ function __c54(j: number): any {
3824
+ switch (j) {
3825
+ case 0:
3826
+ return S.suspend(() =>
3827
+ S.Struct({
3828
+ enabled: S.optional(__S(880, __c55, 0)),
3829
+ }),
3830
+ ).annotate({ identifier: "Features" });
3831
+ case 1:
3832
+ return S.suspend(() =>
3833
+ S.Struct({
3834
+ name: S.optional(S.String),
3835
+ number: S.optional(S.Number),
3836
+ kind: S.optional(S.String),
3837
+ }),
3838
+ ).annotate({ identifier: "PortSpec" });
3839
+ case 2:
3840
+ return S.Array(__S(865, __c54, 1));
3841
+ case 3:
3842
+ return S.suspend(() =>
3843
+ S.Struct({
3844
+ absolute: S.optional(S.String),
3845
+ workspaceRelative: S.optional(S.String),
3846
+ }),
3847
+ ).annotate({ identifier: "ServiceSpecCwd" });
3848
+ case 4:
3849
+ return S.suspend(() =>
3850
+ S.Struct({
3851
+ executable: S.optional(S.String),
3852
+ args: S.optional(__S(880, __c55, 0)),
3853
+ cwd: S.optional(__S(867, __c54, 3)),
3854
+ }),
3855
+ ).annotate({ identifier: "ServiceSpecCommand" });
3856
+ case 5:
3857
+ return S.suspend(() =>
3858
+ S.Struct({
3859
+ name: S.optional(S.String),
3860
+ command: S.optional(__S(868, __c54, 4)),
3861
+ ports: S.optional(__S(866, __c54, 2)),
3862
+ }),
3863
+ ).annotate({ identifier: "ServiceSpec" });
3864
+ case 6:
3865
+ return S.Array(__S(869, __c54, 5));
3866
+ }
3867
+ }
3868
+ function __c55(j: number): any {
3869
+ switch (j) {
3870
+ case 0:
3871
+ return S.Array(S.String);
3872
+ }
3873
+ }
3874
+ function __c56(j: number): any {
3875
+ switch (j) {
3876
+ case 0:
3877
+ return S.suspend(() =>
3878
+ S.Struct({
3879
+ name: S.optional(S.String),
3880
+ emoji: S.optional(S.String),
3881
+ command: S.optional(S.String),
3882
+ }),
3883
+ ).annotate({ identifier: "BlueprintSpecSessionSpec" });
3884
+ case 1:
3885
+ return S.Array(__S(896, __c56, 0));
3886
+ }
3887
+ }
3888
+ function __c57(j: number): any {
3889
+ switch (j) {
3890
+ case 0:
3891
+ return S.suspend(() =>
3892
+ S.Struct({
3893
+ name: S.optional(S.String),
3894
+ value: S.optional(S.String),
3895
+ fromSecretId: S.optional(S.String),
3896
+ }),
3897
+ ).annotate({ identifier: "BlueprintSpecEnvVar" });
3898
+ case 1:
3899
+ return S.Array(__S(912, __c57, 0));
3900
+ }
3901
+ }
3902
+ function __c58(j: number): any {
3903
+ switch (j) {
3904
+ case 0:
3905
+ return S.suspend(() =>
3906
+ S.Struct({
3907
+ name: S.optional(S.String),
3908
+ value: S.optional(S.String),
3909
+ }),
3910
+ ).annotate({ identifier: "Label" });
3911
+ case 1:
3912
+ return S.Array(__S(928, __c58, 0));
3913
+ case 2:
3914
+ return S.suspend(() =>
3915
+ S.Struct({
3916
+ virtualCpu: S.optional(S.Number),
3917
+ memoryMegabytes: S.optional(S.Number),
3918
+ machineArch: S.optional(S.String),
3919
+ os: S.optional(S.String),
3920
+ selectors: S.optional(__S(929, __c58, 1)),
3921
+ }),
3922
+ ).annotate({ identifier: "InstanceShape" });
3923
+ case 3:
3924
+ return S.suspend(() =>
3925
+ S.Struct({
3926
+ repository: S.optional(S.String),
3927
+ ref: S.optional(S.String),
3928
+ checkoutMethod: S.optional(S.String),
3929
+ }),
3930
+ ).annotate({ identifier: "VersionControlSpecGitRepositorySpec" });
3931
+ case 4:
3932
+ return S.Array(__S(931, __c58, 3));
3933
+ case 5:
3934
+ return S.suspend(() =>
3935
+ S.Struct({
3936
+ gitRepository: S.optional(S.String),
3937
+ ref: S.optional(S.String),
3938
+ checkoutMethod: S.optional(S.String),
3939
+ repositories: S.optional(__S(932, __c58, 4)),
3940
+ }),
3941
+ ).annotate({ identifier: "VersionControlSpec" });
3942
+ case 6:
3943
+ return S.suspend(() =>
3944
+ S.Struct({
3945
+ fromSpec: S.optional(S.String),
3946
+ }),
3947
+ ).annotate({ identifier: "IntegrationsTailscaleIntegration" });
3948
+ case 7:
3949
+ return S.suspend(() =>
3950
+ S.Struct({
3951
+ integrationId: S.optional(S.String),
3952
+ claudeSessionId: S.optional(S.String),
3953
+ }),
3954
+ ).annotate({ identifier: "IntegrationsClaudeIntegration" });
3955
+ case 8:
3956
+ return S.suspend(() =>
3957
+ S.Struct({
3958
+ tailscale: S.optional(__S(934, __c58, 6)),
3959
+ claude: S.optional(__S(935, __c58, 7)),
3960
+ }),
3961
+ ).annotate({ identifier: "Integrations" });
3962
+ case 9:
3963
+ return S.suspend(() =>
3964
+ S.Struct({
3965
+ allowed: S.optional(__S(880, __c55, 0)),
3966
+ advisory: S.optional(S.Boolean),
3967
+ }),
3968
+ ).annotate({ identifier: "NetworkPolicySpecEgressDomains" });
3969
+ case 10:
3970
+ return S.suspend(() =>
3971
+ S.Struct({
3972
+ tag: S.optional(S.String),
3973
+ }),
3974
+ ).annotate({ identifier: "NetworkPolicySpecEgressPolicy" });
3975
+ case 11:
3976
+ return S.suspend(() =>
3977
+ S.Struct({
3978
+ egressDomains: S.optional(__S(937, __c58, 9)),
3979
+ egressPolicy: S.optional(__S(938, __c58, 10)),
3980
+ }),
3981
+ ).annotate({ identifier: "NetworkPolicySpec" });
3982
+ case 12:
3983
+ return S.suspend(() =>
3984
+ S.Struct({
3985
+ accessLevel: S.optional(S.String),
3986
+ }),
3987
+ ).annotate({ identifier: "WorkloadTokenSpec" });
3988
+ }
3989
+ }
3990
+ function __c59(j: number): any {
3991
+ switch (j) {
3992
+ case 0:
3993
+ return S.suspend(() =>
3994
+ S.Struct({
3995
+ stoppedRetentionDuration: S.optional(S.String),
3996
+ }),
3997
+ ).annotate({ identifier: "EphemeralSpec" });
3998
+ }
3999
+ }
4000
+ function __c60(j: number): any {
4001
+ switch (j) {
4002
+ case 0:
4003
+ return S.suspend(() =>
4004
+ S.Struct({
4005
+ connectToken: S.optional(S.String.pipe(T.SensitiveValue({}))),
4006
+ sessionId: S.optional(S.String),
4007
+ host: S.optional(S.String),
4008
+ remoteBinarySha: S.optional(S.String),
4009
+ }),
4010
+ ).annotate({ identifier: "ActivateRequestExperimentalDevinOutposts" });
4011
+ case 1:
4012
+ return S.suspend(() =>
4013
+ S.Struct({
4014
+ accessToken: S.optional(S.String.pipe(T.SensitiveValue({}))),
4015
+ workerId: S.optional(S.String),
4016
+ poolName: S.optional(S.String),
4017
+ requestId: S.optional(S.String),
4018
+ }),
4019
+ ).annotate({ identifier: "ActivateRequestExperimentalCursorWorker" });
4020
+ case 2:
4021
+ return S.suspend(() =>
4022
+ S.Struct({
4023
+ agentImageref: S.optional(S.String),
4024
+ bakeImageref: S.optional(S.String),
4025
+ opaqueFeatures: S.optional(__S(880, __c55, 0)),
4026
+ enableDbus: S.optional(S.Boolean),
4027
+ devinOutposts: S.optional(__S(960, __c60, 0)),
4028
+ cursorWorker: S.optional(__S(961, __c60, 1)),
4029
+ claudeAgent: S.optional(__S(976, __c61, 0)),
4030
+ }),
4031
+ ).annotate({ identifier: "ActivateRequestExperimental" });
4032
+ }
4033
+ }
4034
+ function __c61(j: number): any {
4035
+ switch (j) {
4036
+ case 0:
4037
+ return S.suspend(() => S.Struct({})).annotate({
4038
+ identifier: "ActivateRequestExperimentalClaudeAgent",
4039
+ });
4040
+ }
4041
+ }
4042
+ function __c62(j: number): any {
4043
+ switch (j) {
4044
+ case 0:
4045
+ return S.suspend(() =>
4046
+ S.Struct({
4047
+ port: S.optional(S.Number),
4048
+ label: S.optional(S.String),
4049
+ }),
4050
+ ).annotate({ identifier: "BlueprintSpecPortForward" });
4051
+ case 1:
4052
+ return S.Array(__S(992, __c62, 0));
4053
+ case 2:
4054
+ return S.suspend(() =>
4055
+ S.Struct({
4056
+ command: S.optional(S.String),
4057
+ args: S.optional(__S(880, __c55, 0)),
4058
+ }),
4059
+ ).annotate({ identifier: "BlueprintSpecOpRunCommand" });
4060
+ case 3:
4061
+ return S.suspend(() =>
4062
+ S.Struct({
4063
+ script: S.optional(S.String),
4064
+ }),
4065
+ ).annotate({ identifier: "BlueprintSpecOpRunScript" });
4066
+ case 4:
4067
+ return S.suspend(() =>
4068
+ S.Struct({
4069
+ runCommand: S.optional(__S(994, __c62, 2)),
4070
+ runScript: S.optional(__S(995, __c62, 3)),
4071
+ }),
4072
+ ).annotate({ identifier: "BlueprintSpecOp" });
4073
+ case 5:
4074
+ return S.Array(__S(996, __c62, 4));
4075
+ case 6:
4076
+ return S.suspend(() =>
4077
+ S.Struct({
4078
+ mountPath: S.optional(S.String),
4079
+ volumeName: S.optional(S.String),
4080
+ }),
4081
+ ).annotate({ identifier: "BlueprintSpecVolume" });
4082
+ case 7:
4083
+ return S.Array(__S(998, __c62, 6));
4084
+ case 8:
4085
+ return S.suspend(() =>
4086
+ S.Struct({
4087
+ uid: S.optional(S.Number),
4088
+ user: S.optional(S.String),
4089
+ }),
4090
+ ).annotate({ identifier: "BlueprintSpecUserOrUid" });
4091
+ case 9:
4092
+ return S.suspend(() =>
4093
+ S.Struct({
4094
+ remoteUser: S.optional(S.String),
4095
+ shell: S.optional(S.String),
4096
+ portForwards: S.optional(__S(993, __c62, 1)),
4097
+ privileged: S.optional(S.Boolean),
4098
+ capAdd: S.optional(__S(880, __c55, 0)),
4099
+ securityOpt: S.optional(__S(880, __c55, 0)),
4100
+ environment: S.optional(__S(913, __c57, 1)),
4101
+ onCreate: S.optional(__S(997, __c62, 5)),
4102
+ onStartup: S.optional(__S(997, __c62, 5)),
4103
+ includeInPath: S.optional(__S(880, __c55, 0)),
4104
+ volumes: S.optional(__S(999, __c62, 7)),
4105
+ wholeSystemPersistency: S.optional(S.Boolean),
4106
+ cacheVolumeTag: S.optional(S.String),
4107
+ cacheVolumeSizeGb: S.optional(S.String),
4108
+ dockerSockUser: S.optional(__S(1000, __c62, 8)),
4109
+ setupDockerClient: S.optional(S.Boolean),
4110
+ workspaceDir: S.optional(S.String),
4111
+ sessions: S.optional(__S(897, __c56, 1)),
4112
+ initSystem: S.optional(S.String),
4113
+ }),
4114
+ ).annotate({ identifier: "BlueprintSpec" });
4115
+ }
4116
+ }
4117
+ function __c63(j: number): any {
4118
+ switch (j) {
4119
+ case 0:
4120
+ return S.suspend(() =>
4121
+ S.Struct({
4122
+ blueprintName: S.String,
4123
+ blueprintId: S.String,
4124
+ }),
4125
+ ).annotate({ identifier: "BlueprintRef" });
4126
+ case 1:
4127
+ return S.suspend(() =>
4128
+ S.Struct({
4129
+ id: S.String,
4130
+ name: S.String,
4131
+ version: S.String,
4132
+ }),
4133
+ ).annotate({ identifier: "DevBoxResolvedImage" });
4134
+ case 2:
4135
+ return S.suspend(() =>
4136
+ S.Struct({
4137
+ owner: S.optional(__S(976, __c61, 0)),
4138
+ tenant: S.optional(__S(976, __c61, 0)),
4139
+ public: S.optional(__S(976, __c61, 0)),
4140
+ }),
4141
+ ).annotate({ identifier: "HttpAccessMode" });
4142
+ case 3:
4143
+ return S.suspend(() =>
4144
+ S.Struct({
4145
+ tag: S.String,
4146
+ leaseId: S.String,
4147
+ acquiredAt: S.optional(S.String),
4148
+ releasedAt: S.optional(S.String),
4149
+ }),
4150
+ ).annotate({ identifier: "PoolLease" });
4151
+ case 4:
4152
+ return S.suspend(() =>
4153
+ S.Struct({
4154
+ id: S.String,
4155
+ name: S.String,
4156
+ createdAt: S.optional(S.String),
4157
+ lastUsedAt: S.optional(S.String),
4158
+ destroyedAt: S.optional(S.String),
4159
+ imageRef: S.String,
4160
+ instanceShape: S.optional(__S(930, __c58, 2)),
4161
+ site: S.String,
4162
+ creator: S.String,
4163
+ volumeName: S.String,
4164
+ volumeSizeGb: S.String,
4165
+ cacheVolumeSizeGb: S.String,
4166
+ repository: S.String,
4167
+ blueprintRef: S.optional(__S(1008, __c63, 0)),
4168
+ workspaceDir: S.String,
4169
+ defaultDir: S.String,
4170
+ spec: S.optional(__S(1001, __c62, 9)),
4171
+ mainUser: S.String,
4172
+ portForwards: __S(993, __c62, 1),
4173
+ privateFeatures: __S(880, __c55, 0),
4174
+ enabledFeatures: __S(880, __c55, 0),
4175
+ resolvedImage: S.optional(__S(1009, __c63, 1)),
4176
+ busyEnsureMinimumDuration: S.optional(S.String),
4177
+ accessMode: S.String,
4178
+ httpAccessMode: S.optional(__S(1010, __c63, 2)),
4179
+ permanentSessions: __S(897, __c56, 1),
4180
+ integrations: S.optional(__S(936, __c58, 8)),
4181
+ documentedPurpose: S.String,
4182
+ ephemeral: S.optional(__S(944, __c59, 0)),
4183
+ poolLease: S.optional(__S(1011, __c63, 3)),
4184
+ networkPolicy: S.optional(__S(939, __c58, 11)),
4185
+ labels: __S(929, __c58, 1),
4186
+ versionControl: S.optional(__S(933, __c58, 5)),
4187
+ workloadToken: S.optional(__S(940, __c58, 12)),
4188
+ }),
4189
+ ).annotate({ identifier: "DevBox" });
4190
+ }
4191
+ }
4192
+ function __c64(j: number): any {
4193
+ switch (j) {
4194
+ case 0:
4195
+ return S.suspend(() =>
4196
+ S.Struct({
4197
+ name: S.optional(S.String),
4198
+ experimental: S.optional(__S(962, __c60, 2)),
4199
+ includeSshCredentials: S.optional(S.Boolean),
4200
+ waitForReadiness: S.optional(S.Boolean),
4201
+ fromSnapshotId: S.optional(S.String),
4202
+ id: S.optional(S.String),
4203
+ idOrName: S.optional(S.String),
4204
+ }).pipe(
4205
+ T.Http({
4206
+ method: "POST",
4207
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/Activate",
4208
+ code: 200,
4209
+ }),
4210
+ ),
4211
+ ).annotate({ identifier: "ActivateRequest" });
4212
+ case 1:
4213
+ return S.suspend(() =>
4214
+ S.Struct({
4215
+ ingressDomain: S.String,
4216
+ }),
4217
+ ).annotate({ identifier: "ActivateResponseInstanceMetadataSummary" });
4218
+ case 2:
4219
+ return S.suspend(() =>
4220
+ S.Struct({
4221
+ instanceId: S.String,
4222
+ devbox: S.optional(__S(1012, __c63, 4)),
4223
+ privateSshKey: S.String.pipe(T.SensitiveValue({})),
4224
+ instanceMetadataSummary: S.optional(__S(1025, __c64, 1)),
4225
+ }),
4226
+ ).annotate({ identifier: "ActivateResponse" });
4227
+ }
4228
+ }
4229
+ function __c65(j: number): any {
4230
+ switch (j) {
4231
+ case 0:
4232
+ return S.suspend(() =>
4233
+ S.Struct({
4234
+ outpostName: S.optional(S.String),
4235
+ platform: S.optional(S.String),
4236
+ }).pipe(
4237
+ T.Http({
4238
+ method: "POST",
4239
+ uri: "/namespace.private.devbox.v1beta.DevBoxService/BeginDevinOutpostConnect",
4240
+ code: 200,
4241
+ }),
4242
+ ),
4243
+ ).annotate({ identifier: "ConnectBeginDevinOutpostRequest" });
4244
+ case 1:
4245
+ return S.suspend(() =>
4246
+ S.Struct({
4247
+ connectUrl: S.String,
4248
+ state: S.String,
4249
+ }),
4250
+ ).annotate({ identifier: "ConnectBeginDevinOutpostResponse" });
4251
+ }
4252
+ }
4253
+ // Schema table: entry i is schema j of builder f, made on first reach.
4254
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
4255
+ return (__s[i] ??= __L.at(f, j));
4256
+ }