@distilled.cloud/namespacelabs 0.0.0-stage → 1.0.0-rc.20

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