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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +130 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +73 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +59 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +44 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +2 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +19 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +12 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/buildkite_jobs.d.ts +129 -0
  26. package/lib/services/buildkite_jobs.d.ts.map +1 -0
  27. package/lib/services/buildkite_jobs.js +2 -0
  28. package/lib/services/buildkite_jobs.js.map +1 -0
  29. package/lib/services/buildkite_queue.d.ts +186 -0
  30. package/lib/services/buildkite_queue.d.ts.map +1 -0
  31. package/lib/services/buildkite_queue.js +2 -0
  32. package/lib/services/buildkite_queue.js.map +1 -0
  33. package/lib/services/index.d.ts +3 -0
  34. package/lib/services/index.d.ts.map +1 -0
  35. package/lib/services/index.js +2 -0
  36. package/lib/services.lazy/buildkite_jobs.js +1 -0
  37. package/lib/services.lazy/buildkite_queue.js +1 -0
  38. package/lib/services.lazy/index.js +3 -0
  39. package/lib/traits.d.ts +3 -0
  40. package/lib/traits.d.ts.map +1 -0
  41. package/lib/traits.js +1 -0
  42. package/lib/unstable-services/artifacts.d.ts +268 -0
  43. package/lib/unstable-services/artifacts.d.ts.map +1 -0
  44. package/lib/unstable-services/artifacts.js +2 -0
  45. package/lib/unstable-services/artifacts.js.map +1 -0
  46. package/lib/unstable-services/audit.d.ts +157 -0
  47. package/lib/unstable-services/audit.d.ts.map +1 -0
  48. package/lib/unstable-services/audit.js +2 -0
  49. package/lib/unstable-services/audit.js.map +1 -0
  50. package/lib/unstable-services/bazel.d.ts +181 -0
  51. package/lib/unstable-services/bazel.d.ts.map +1 -0
  52. package/lib/unstable-services/bazel.js +2 -0
  53. package/lib/unstable-services/bazel.js.map +1 -0
  54. package/lib/unstable-services/bazel_cache.d.ts +126 -0
  55. package/lib/unstable-services/bazel_cache.d.ts.map +1 -0
  56. package/lib/unstable-services/bazel_cache.js +2 -0
  57. package/lib/unstable-services/bazel_cache.js.map +1 -0
  58. package/lib/unstable-services/builder.d.ts +242 -0
  59. package/lib/unstable-services/builder.d.ts.map +1 -0
  60. package/lib/unstable-services/builder.js +2 -0
  61. package/lib/unstable-services/builder.js.map +1 -0
  62. package/lib/unstable-services/compute.d.ts +1124 -0
  63. package/lib/unstable-services/compute.d.ts.map +1 -0
  64. package/lib/unstable-services/compute.js +47 -0
  65. package/lib/unstable-services/compute.js.map +1 -0
  66. package/lib/unstable-services/compute_command.d.ts +120 -0
  67. package/lib/unstable-services/compute_command.d.ts.map +1 -0
  68. package/lib/unstable-services/compute_command.js +2 -0
  69. package/lib/unstable-services/compute_command.js.map +1 -0
  70. package/lib/unstable-services/compute_observability.d.ts +165 -0
  71. package/lib/unstable-services/compute_observability.d.ts.map +1 -0
  72. package/lib/unstable-services/compute_observability.js +2 -0
  73. package/lib/unstable-services/compute_observability.js.map +1 -0
  74. package/lib/unstable-services/compute_storage.d.ts +379 -0
  75. package/lib/unstable-services/compute_storage.d.ts.map +1 -0
  76. package/lib/unstable-services/compute_storage.js +33 -0
  77. package/lib/unstable-services/compute_storage.js.map +1 -0
  78. package/lib/unstable-services/compute_usage.d.ts +283 -0
  79. package/lib/unstable-services/compute_usage.d.ts.map +1 -0
  80. package/lib/unstable-services/compute_usage.js +2 -0
  81. package/lib/unstable-services/compute_usage.js.map +1 -0
  82. package/lib/unstable-services/egress.d.ts +191 -0
  83. package/lib/unstable-services/egress.d.ts.map +1 -0
  84. package/lib/unstable-services/egress.js +2 -0
  85. package/lib/unstable-services/egress.js.map +1 -0
  86. package/lib/unstable-services/experimental_compute_reservation.d.ts +672 -0
  87. package/lib/unstable-services/experimental_compute_reservation.d.ts.map +1 -0
  88. package/lib/unstable-services/experimental_compute_reservation.js +23 -0
  89. package/lib/unstable-services/experimental_compute_reservation.js.map +1 -0
  90. package/lib/unstable-services/experimental_remote_results.d.ts +496 -0
  91. package/lib/unstable-services/experimental_remote_results.d.ts.map +1 -0
  92. package/lib/unstable-services/experimental_remote_results.js +2 -0
  93. package/lib/unstable-services/experimental_remote_results.js.map +1 -0
  94. package/lib/unstable-services/github_image.d.ts +162 -0
  95. package/lib/unstable-services/github_image.d.ts.map +1 -0
  96. package/lib/unstable-services/github_image.js +2 -0
  97. package/lib/unstable-services/github_image.js.map +1 -0
  98. package/lib/unstable-services/github_jobs.d.ts +183 -0
  99. package/lib/unstable-services/github_jobs.d.ts.map +1 -0
  100. package/lib/unstable-services/github_jobs.js +2 -0
  101. package/lib/unstable-services/github_jobs.js.map +1 -0
  102. package/lib/unstable-services/github_profile.d.ts +296 -0
  103. package/lib/unstable-services/github_profile.d.ts.map +1 -0
  104. package/lib/unstable-services/github_profile.js +2 -0
  105. package/lib/unstable-services/github_profile.js.map +1 -0
  106. package/lib/unstable-services/gradle_cache.d.ts +125 -0
  107. package/lib/unstable-services/gradle_cache.d.ts.map +1 -0
  108. package/lib/unstable-services/gradle_cache.js +2 -0
  109. package/lib/unstable-services/gradle_cache.js.map +1 -0
  110. package/lib/unstable-services/httpcache.d.ts +125 -0
  111. package/lib/unstable-services/httpcache.d.ts.map +1 -0
  112. package/lib/unstable-services/httpcache.js +2 -0
  113. package/lib/unstable-services/httpcache.js.map +1 -0
  114. package/lib/unstable-services/iam_tenant.d.ts +457 -0
  115. package/lib/unstable-services/iam_tenant.d.ts.map +1 -0
  116. package/lib/unstable-services/iam_tenant.js +45 -0
  117. package/lib/unstable-services/iam_tenant.js.map +1 -0
  118. package/lib/unstable-services/iam_tenant_membership.d.ts +114 -0
  119. package/lib/unstable-services/iam_tenant_membership.d.ts.map +1 -0
  120. package/lib/unstable-services/iam_tenant_membership.js +2 -0
  121. package/lib/unstable-services/iam_tenant_membership.js.map +1 -0
  122. package/lib/unstable-services/iam_token.d.ts +257 -0
  123. package/lib/unstable-services/iam_token.d.ts.map +1 -0
  124. package/lib/unstable-services/iam_token.js +2 -0
  125. package/lib/unstable-services/iam_token.js.map +1 -0
  126. package/lib/unstable-services/image.d.ts +222 -0
  127. package/lib/unstable-services/image.d.ts.map +1 -0
  128. package/lib/unstable-services/image.js +2 -0
  129. package/lib/unstable-services/image.js.map +1 -0
  130. package/lib/unstable-services/index.d.ts +28 -0
  131. package/lib/unstable-services/index.d.ts.map +1 -0
  132. package/lib/unstable-services/index.js +27 -0
  133. package/lib/unstable-services/private_devbox.d.ts +1180 -0
  134. package/lib/unstable-services/private_devbox.d.ts.map +1 -0
  135. package/lib/unstable-services/private_devbox.js +81 -0
  136. package/lib/unstable-services/private_devbox.js.map +1 -0
  137. package/lib/unstable-services/private_user_sessions.d.ts +145 -0
  138. package/lib/unstable-services/private_user_sessions.d.ts.map +1 -0
  139. package/lib/unstable-services/private_user_sessions.js +2 -0
  140. package/lib/unstable-services/private_user_sessions.js.map +1 -0
  141. package/lib/unstable-services/registry.d.ts +373 -0
  142. package/lib/unstable-services/registry.d.ts.map +1 -0
  143. package/lib/unstable-services/registry.js +34 -0
  144. package/lib/unstable-services/registry.js.map +1 -0
  145. package/lib/unstable-services/testing.d.ts +160 -0
  146. package/lib/unstable-services/testing.d.ts.map +1 -0
  147. package/lib/unstable-services/testing.js +2 -0
  148. package/lib/unstable-services/testing.js.map +1 -0
  149. package/lib/unstable-services/vault.d.ts +203 -0
  150. package/lib/unstable-services/vault.d.ts.map +1 -0
  151. package/lib/unstable-services/vault.js +2 -0
  152. package/lib/unstable-services/vault.js.map +1 -0
  153. package/lib/unstable-services.lazy/artifacts.js +1 -0
  154. package/lib/unstable-services.lazy/audit.js +1 -0
  155. package/lib/unstable-services.lazy/bazel.js +1 -0
  156. package/lib/unstable-services.lazy/bazel_cache.js +1 -0
  157. package/lib/unstable-services.lazy/builder.js +1 -0
  158. package/lib/unstable-services.lazy/compute.js +4 -0
  159. package/lib/unstable-services.lazy/compute_command.js +1 -0
  160. package/lib/unstable-services.lazy/compute_observability.js +1 -0
  161. package/lib/unstable-services.lazy/compute_storage.js +4 -0
  162. package/lib/unstable-services.lazy/compute_usage.js +1 -0
  163. package/lib/unstable-services.lazy/egress.js +1 -0
  164. package/lib/unstable-services.lazy/experimental_compute_reservation.js +4 -0
  165. package/lib/unstable-services.lazy/experimental_remote_results.js +1 -0
  166. package/lib/unstable-services.lazy/github_image.js +1 -0
  167. package/lib/unstable-services.lazy/github_jobs.js +1 -0
  168. package/lib/unstable-services.lazy/github_profile.js +1 -0
  169. package/lib/unstable-services.lazy/gradle_cache.js +1 -0
  170. package/lib/unstable-services.lazy/httpcache.js +1 -0
  171. package/lib/unstable-services.lazy/iam_tenant.js +4 -0
  172. package/lib/unstable-services.lazy/iam_tenant_membership.js +1 -0
  173. package/lib/unstable-services.lazy/iam_token.js +1 -0
  174. package/lib/unstable-services.lazy/image.js +1 -0
  175. package/lib/unstable-services.lazy/index.js +3 -0
  176. package/lib/unstable-services.lazy/private_devbox.js +4 -0
  177. package/lib/unstable-services.lazy/private_user_sessions.js +1 -0
  178. package/lib/unstable-services.lazy/registry.js +4 -0
  179. package/lib/unstable-services.lazy/testing.js +1 -0
  180. package/lib/unstable-services.lazy/vault.js +1 -0
  181. package/package.json +89 -2
  182. package/src/credentials.ts +208 -0
  183. package/src/errors.ts +71 -0
  184. package/src/index.ts +50 -0
  185. package/src/pagination.ts +1 -0
  186. package/src/protocol.ts +83 -0
  187. package/src/retry.ts +28 -0
  188. package/src/services/buildkite_jobs.ts +230 -0
  189. package/src/services/buildkite_queue.ts +453 -0
  190. package/src/services/index.ts +3 -0
  191. package/src/traits.ts +36 -0
  192. package/src/unstable-services/artifacts.ts +769 -0
  193. package/src/unstable-services/audit.ts +323 -0
  194. package/src/unstable-services/bazel.ts +423 -0
  195. package/src/unstable-services/bazel_cache.ts +219 -0
  196. package/src/unstable-services/builder.ts +576 -0
  197. package/src/unstable-services/compute.ts +2991 -0
  198. package/src/unstable-services/compute_command.ts +220 -0
  199. package/src/unstable-services/compute_observability.ts +436 -0
  200. package/src/unstable-services/compute_storage.ts +1167 -0
  201. package/src/unstable-services/compute_usage.ts +738 -0
  202. package/src/unstable-services/egress.ts +516 -0
  203. package/src/unstable-services/experimental_compute_reservation.ts +1499 -0
  204. package/src/unstable-services/experimental_remote_results.ts +1165 -0
  205. package/src/unstable-services/github_image.ts +301 -0
  206. package/src/unstable-services/github_jobs.ts +389 -0
  207. package/src/unstable-services/github_profile.ts +729 -0
  208. package/src/unstable-services/gradle_cache.ts +271 -0
  209. package/src/unstable-services/httpcache.ts +271 -0
  210. package/src/unstable-services/iam_tenant.ts +1720 -0
  211. package/src/unstable-services/iam_tenant_membership.ts +253 -0
  212. package/src/unstable-services/iam_token.ts +788 -0
  213. package/src/unstable-services/image.ts +602 -0
  214. package/src/unstable-services/index.ts +28 -0
  215. package/src/unstable-services/private_devbox.ts +4256 -0
  216. package/src/unstable-services/private_user_sessions.ts +410 -0
  217. package/src/unstable-services/registry.ts +1242 -0
  218. package/src/unstable-services/testing.ts +394 -0
  219. package/src/unstable-services/vault.ts +522 -0
@@ -0,0 +1,1180 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import type * as Redacted from "effect/Redacted";
4
+ import { type NamespaceLabsOpError, type NamespaceLabsOpContext } from "../protocol.ts";
5
+ export type { NamespaceLabsOpError, NamespaceLabsOpContext };
6
+ declare const AlreadyExists_base: S.TaggedErrorClass<"AlreadyExists", {
7
+ readonly message: any;
8
+ readonly body: any;
9
+ readonly headers: any;
10
+ }> & (new (...args: any[]) => {
11
+ "@distilled.cloud/error/categories": {
12
+ ConflictError: true;
13
+ };
14
+ });
15
+ export declare class AlreadyExists extends /*@__PURE__*/ AlreadyExists_base {
16
+ }
17
+ declare const FailedPrecondition_base: S.TaggedErrorClass<"FailedPrecondition", {
18
+ readonly message: any;
19
+ readonly body: any;
20
+ readonly headers: any;
21
+ }> & (new (...args: any[]) => {
22
+ "@distilled.cloud/error/categories": {
23
+ BadRequestError: true;
24
+ };
25
+ });
26
+ export declare class FailedPrecondition extends /*@__PURE__*/ FailedPrecondition_base {
27
+ }
28
+ declare const InvalidArgument_base: S.TaggedErrorClass<"InvalidArgument", {
29
+ readonly message: any;
30
+ readonly body: any;
31
+ readonly headers: any;
32
+ }> & (new (...args: any[]) => {
33
+ "@distilled.cloud/error/categories": {
34
+ BadRequestError: true;
35
+ };
36
+ });
37
+ export declare class InvalidArgument extends /*@__PURE__*/ InvalidArgument_base {
38
+ }
39
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
40
+ readonly message: any;
41
+ readonly body: any;
42
+ readonly headers: any;
43
+ }> & (new (...args: any[]) => {
44
+ "@distilled.cloud/error/categories": {
45
+ BadRequestError: true;
46
+ };
47
+ });
48
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
49
+ }
50
+ declare const PermissionDenied_base: S.TaggedErrorClass<"PermissionDenied", {
51
+ readonly message: any;
52
+ readonly body: any;
53
+ readonly headers: any;
54
+ }> & (new (...args: any[]) => {
55
+ "@distilled.cloud/error/categories": {
56
+ AuthError: true;
57
+ };
58
+ });
59
+ export declare class PermissionDenied extends /*@__PURE__*/ PermissionDenied_base {
60
+ }
61
+ declare const ResourceExhausted_base: S.TaggedErrorClass<"ResourceExhausted", {
62
+ readonly message: any;
63
+ readonly body: any;
64
+ readonly headers: any;
65
+ readonly retryAfter: any;
66
+ }> & (new (...args: any[]) => {
67
+ "@distilled.cloud/error/categories": {
68
+ ThrottlingError: true;
69
+ };
70
+ });
71
+ export declare class ResourceExhausted extends /*@__PURE__*/ ResourceExhausted_base {
72
+ }
73
+ declare const Unauthenticated_base: S.TaggedErrorClass<"Unauthenticated", {
74
+ readonly message: any;
75
+ readonly body: any;
76
+ readonly headers: any;
77
+ }> & (new (...args: any[]) => {
78
+ "@distilled.cloud/error/categories": {
79
+ AuthError: true;
80
+ };
81
+ });
82
+ export declare class Unauthenticated extends /*@__PURE__*/ Unauthenticated_base {
83
+ }
84
+ /** Labels are key/value pairs attached to entities such as tenants. */
85
+ export interface Label {
86
+ /** A name is an string up to 63 bytes that matches the regular expression `^[a-z]([a-z0-9-.]*[a-z0-9])?$`. */
87
+ name?: string | undefined;
88
+ /** Label values are arbitrary values up to 255 bytes. */
89
+ value?: string | undefined;
90
+ }
91
+ export type LabelList = Array<Label>;
92
+ /** 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. */
93
+ export interface InstanceShape {
94
+ /** Number of virtual CPUs. Typically a power of two (e.g. 2, 4, 8, 16). */
95
+ virtualCpu?: number | undefined;
96
+ /** Memory in megabytes. Typically scales with CPU (e.g. 2048 per vCPU). */
97
+ memoryMegabytes?: number | undefined;
98
+ /** Architecture of the instance, e.g. "amd64" or "arm64". */
99
+ machineArch?: string | undefined;
100
+ /** Operating system of the instance, e.g. "linux" or "macos". */
101
+ os?: string | undefined;
102
+ /** Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors */
103
+ selectors?: LabelList | undefined;
104
+ }
105
+ export type StringList = Array<string>;
106
+ export interface Features {
107
+ enabled?: StringList | undefined;
108
+ }
109
+ export type VersionControlSpecCheckoutMethod = "CHECKOUT_METHOD_UNSPECIFIED" | "CHECKOUT_METHOD_GIT_CLONE" | "CHECKOUT_METHOD_GIT_SNAPSHOT_UNPACK";
110
+ export interface VersionControlSpecGitRepositorySpec {
111
+ repository?: string | undefined;
112
+ /** Branch, tag, or commit SHA to check out. When empty, the repository's default branch is used. */
113
+ ref?: string | undefined;
114
+ checkoutMethod?: VersionControlSpecCheckoutMethod | (string & {}) | undefined;
115
+ }
116
+ export type VersionControlSpecGitRepositorySpecList = Array<VersionControlSpecGitRepositorySpec>;
117
+ export interface VersionControlSpec {
118
+ gitRepository?: string | undefined;
119
+ /** Branch, tag, or commit SHA to check out. When empty, the repository's default branch is used. */
120
+ ref?: string | undefined;
121
+ checkoutMethod?: VersionControlSpecCheckoutMethod | (string & {}) | undefined;
122
+ /** WIP: multi-repo support that will deprecate fields above. Not yet ready! */
123
+ repositories?: VersionControlSpecGitRepositorySpecList | undefined;
124
+ }
125
+ export type AccessMode = "ACCESS_MODE_UNSPECIFIED" | "USER_PRIVATE" | "TENANT_WIDE";
126
+ export interface BlueprintSpecSessionSpec {
127
+ name?: string | undefined;
128
+ emoji?: string | undefined;
129
+ command?: string | undefined;
130
+ }
131
+ export type BlueprintSpecSessionSpecList = Array<BlueprintSpecSessionSpec>;
132
+ export interface IntegrationsTailscaleIntegration {
133
+ /** 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. */
134
+ fromSpec?: string | undefined;
135
+ }
136
+ export interface IntegrationsClaudeIntegration {
137
+ integrationId?: string | undefined;
138
+ claudeSessionId?: string | undefined;
139
+ }
140
+ export interface Integrations {
141
+ tailscale?: IntegrationsTailscaleIntegration | undefined;
142
+ claude?: IntegrationsClaudeIntegration | undefined;
143
+ }
144
+ export interface EphemeralSpec {
145
+ /** 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. */
146
+ stoppedRetentionDuration?: string | undefined;
147
+ }
148
+ export interface BlueprintSpecEnvVar {
149
+ name?: string | undefined;
150
+ value?: string | undefined;
151
+ fromSecretId?: string | undefined;
152
+ }
153
+ export type BlueprintSpecEnvVarList = Array<BlueprintSpecEnvVar>;
154
+ export interface NetworkPolicySpecEgressDomains {
155
+ /** Prefix a domain with "*." to include all of its subdomains. */
156
+ allowed?: StringList | undefined;
157
+ /** If true, log egress decisions but don't block. */
158
+ advisory?: boolean | undefined;
159
+ }
160
+ export interface NetworkPolicySpecEgressPolicy {
161
+ tag?: string | undefined;
162
+ }
163
+ export interface NetworkPolicySpec {
164
+ /** If set, restrict outbound network access to the listed domains. Namespace infrastructure domains are always included. */
165
+ egressDomains?: NetworkPolicySpecEgressDomains | undefined;
166
+ /** If set, apply the reusable workspace egress policy identified by tag. Mutually exclusive with egress_domains. */
167
+ egressPolicy?: NetworkPolicySpecEgressPolicy | undefined;
168
+ }
169
+ export type PortSpecKind = "KIND_UNSPECIFIED" | "KIND_PORT_FORWARD" | "KIND_HTTP_INGRESS";
170
+ export interface PortSpec {
171
+ /** Optional. */
172
+ name?: string | undefined;
173
+ /** Must be 1-65535 and not use a Namespace-reserved port. */
174
+ number?: number | undefined;
175
+ /** KIND_UNSPECIFIED is invalid when persisted. */
176
+ kind?: PortSpecKind | (string & {}) | undefined;
177
+ }
178
+ export type PortSpecList = Array<PortSpec>;
179
+ export interface ResolvableValue {
180
+ static?: string | undefined;
181
+ fromSecretId?: string | undefined;
182
+ }
183
+ export interface HttpHeader {
184
+ name?: string | undefined;
185
+ value?: string | undefined;
186
+ valueFrom?: ResolvableValue | undefined;
187
+ }
188
+ export type HttpHeaderList = Array<HttpHeader>;
189
+ export interface HttpCallbackEndpoint {
190
+ postUrl?: string | undefined;
191
+ headers?: HttpHeaderList | undefined;
192
+ /** 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>`. */
193
+ signWithSecretId?: string | undefined;
194
+ }
195
+ export type PersistenceMode = "PERSISTENCE_MODE_UNSPECIFIED" | "PERSISTENCE_MODE_WORKSPACE" | "PERSISTENCE_MODE_WHOLE_SYSTEM";
196
+ export interface ServiceSpecCwd {
197
+ absolute?: string | undefined;
198
+ workspaceRelative?: string | undefined;
199
+ }
200
+ export interface ServiceSpecCommand {
201
+ executable?: string | undefined;
202
+ args?: StringList | undefined;
203
+ cwd?: ServiceSpecCwd | undefined;
204
+ }
205
+ export interface ServiceSpec {
206
+ name?: string | undefined;
207
+ command?: ServiceSpecCommand | undefined;
208
+ ports?: PortSpecList | undefined;
209
+ }
210
+ export type ServiceSpecList = Array<ServiceSpec>;
211
+ export type WorkloadTokenSpecAccessLevel = "ACCESS_LEVEL_UNSPECIFIED" | "ACCESS_LEVEL_RESTRICTED" | "ACCESS_LEVEL_PERMISSIVE";
212
+ export interface WorkloadTokenSpec {
213
+ /** Tenant policy may restrict this selection at launch. */
214
+ accessLevel?: WorkloadTokenSpecAccessLevel | (string & {}) | undefined;
215
+ }
216
+ export interface ActivateRequestExperimentalDevinOutposts {
217
+ connectToken?: string | Redacted.Redacted<string> | undefined;
218
+ sessionId?: string | undefined;
219
+ host?: string | undefined;
220
+ remoteBinarySha?: string | undefined;
221
+ }
222
+ export interface ActivateRequestExperimentalCursorWorker {
223
+ accessToken?: string | Redacted.Redacted<string> | undefined;
224
+ workerId?: string | undefined;
225
+ poolName?: string | undefined;
226
+ requestId?: string | undefined;
227
+ }
228
+ export interface ActivateRequestExperimentalClaudeAgent {
229
+ }
230
+ export interface ActivateRequestExperimental {
231
+ agentImageref?: string | undefined;
232
+ bakeImageref?: string | undefined;
233
+ opaqueFeatures?: StringList | undefined;
234
+ enableDbus?: boolean | undefined;
235
+ devinOutposts?: ActivateRequestExperimentalDevinOutposts | undefined;
236
+ cursorWorker?: ActivateRequestExperimentalCursorWorker | undefined;
237
+ claudeAgent?: ActivateRequestExperimentalClaudeAgent | undefined;
238
+ }
239
+ export interface CreateRequest2 {
240
+ name?: string | undefined;
241
+ imageRef?: string | undefined;
242
+ instanceShape?: InstanceShape | undefined;
243
+ site?: string | undefined;
244
+ volumeName?: string | undefined;
245
+ volumeSizeGb?: string | undefined;
246
+ cacheVolumeSizeGb?: string | undefined;
247
+ repository?: string | undefined;
248
+ privateFeatures?: StringList | undefined;
249
+ /** Deprecated: use features instead. */
250
+ enabledFeatures?: StringList | undefined;
251
+ /** 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. */
252
+ features?: Features | undefined;
253
+ /** If set, looks up the image by name and resolves image_ref. Exclusive with image_ref. */
254
+ imageName?: string | undefined;
255
+ /** If set, used as-is. Exclusive with repository. */
256
+ versionControl?: VersionControlSpec | undefined;
257
+ /** If set, passed as the initial AgentRuntimeConfiguration.busy_ensure_minimum_duration at activation time. */
258
+ busyEnsureMinimumDuration?: string | undefined;
259
+ /** If unset, defaults to DevboxDefaults.access_mode. */
260
+ accessMode?: AccessMode | (string & {}) | undefined;
261
+ /** Additional terminal sessions to create at startup. */
262
+ sessions?: BlueprintSpecSessionSpecList | undefined;
263
+ /** Integrations to enable on the backing instance (e.g. Tailscale). */
264
+ integrations?: Integrations | undefined;
265
+ /** Free-form description of what this devbox is for. */
266
+ documentedPurpose?: string | undefined;
267
+ /** If set, marks the devbox as ephemeral. Presence of this field is the signal; sub-fields configure ephemeral-specific behaviour. */
268
+ ephemeral?: EphemeralSpec | undefined;
269
+ /** Overrides the image's privileged setting. Unset uses the image default. */
270
+ privileged?: boolean | undefined;
271
+ /** Environment variables to set on the devbox container. Merged on top of any env vars defined by the image, keyed by name. */
272
+ environment?: BlueprintSpecEnvVarList | undefined;
273
+ /** If unset, inherits DevboxDefaults.network_policy. Set to an empty NetworkPolicySpec{} to opt out of inheritance. */
274
+ networkPolicy?: NetworkPolicySpec | undefined;
275
+ ports?: PortSpecList | undefined;
276
+ /** Labels attached to the devbox. Label names using Namespace-reserved prefixes are only accepted by trusted internal callers. */
277
+ labels?: LabelList | undefined;
278
+ /** Script to run once when the devbox is first initialized. */
279
+ initScript?: string | undefined;
280
+ /** Receives lifecycle events for every compute instance backing this devbox. */
281
+ instanceEventCallback?: HttpCallbackEndpoint | undefined;
282
+ persistenceMode?: PersistenceMode | (string & {}) | undefined;
283
+ services?: ServiceSpecList | undefined;
284
+ workloadToken?: WorkloadTokenSpec | undefined;
285
+ activate?: boolean | undefined;
286
+ activateExperimental?: ActivateRequestExperimental | undefined;
287
+ }
288
+ export interface AcquireLeaseRequest {
289
+ /** 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. */
290
+ tag?: string | undefined;
291
+ /** Used to create a new devbox when no unleased devbox matches the tag. */
292
+ create?: CreateRequest2 | undefined;
293
+ }
294
+ export interface BlueprintRef {
295
+ blueprintName: string;
296
+ blueprintId: string;
297
+ }
298
+ export interface BlueprintSpecPortForward {
299
+ port?: number | undefined;
300
+ label?: string | undefined;
301
+ }
302
+ export type BlueprintSpecPortForwardList = Array<BlueprintSpecPortForward>;
303
+ export interface BlueprintSpecOpRunCommand {
304
+ command?: string | undefined;
305
+ args?: StringList | undefined;
306
+ }
307
+ export interface BlueprintSpecOpRunScript {
308
+ script?: string | undefined;
309
+ }
310
+ export interface BlueprintSpecOp {
311
+ runCommand?: BlueprintSpecOpRunCommand | undefined;
312
+ runScript?: BlueprintSpecOpRunScript | undefined;
313
+ }
314
+ export type BlueprintSpecOpList = Array<BlueprintSpecOp>;
315
+ export interface BlueprintSpecVolume {
316
+ mountPath?: string | undefined;
317
+ volumeName?: string | undefined;
318
+ }
319
+ export type BlueprintSpecVolumeList = Array<BlueprintSpecVolume>;
320
+ export interface BlueprintSpecUserOrUid {
321
+ uid?: number | undefined;
322
+ user?: string | undefined;
323
+ }
324
+ export type BlueprintSpecInitSystem = "INIT_SYSTEM_UNKNOWN" | "SYSTEMD";
325
+ export interface BlueprintSpec {
326
+ remoteUser?: string | undefined;
327
+ shell?: string | undefined;
328
+ portForwards?: BlueprintSpecPortForwardList | undefined;
329
+ privileged?: boolean | undefined;
330
+ capAdd?: StringList | undefined;
331
+ securityOpt?: StringList | undefined;
332
+ environment?: BlueprintSpecEnvVarList | undefined;
333
+ onCreate?: BlueprintSpecOpList | undefined;
334
+ onStartup?: BlueprintSpecOpList | undefined;
335
+ includeInPath?: StringList | undefined;
336
+ volumes?: BlueprintSpecVolumeList | undefined;
337
+ wholeSystemPersistency?: boolean | undefined;
338
+ cacheVolumeTag?: string | undefined;
339
+ cacheVolumeSizeGb?: string | undefined;
340
+ dockerSockUser?: BlueprintSpecUserOrUid | undefined;
341
+ setupDockerClient?: boolean | undefined;
342
+ workspaceDir?: string | undefined;
343
+ /** Terminal sessions to create at startup. */
344
+ sessions?: BlueprintSpecSessionSpecList | undefined;
345
+ /** The init system the image runs as PID 1. Honored only for tenants in the devbox.accept_image_init_system experiment. */
346
+ initSystem?: BlueprintSpecInitSystem | (string & {}) | undefined;
347
+ }
348
+ export interface DevBoxResolvedImage {
349
+ id: string;
350
+ name: string;
351
+ version: string;
352
+ }
353
+ export type HttpAccessModeOwnerAccess = ActivateRequestExperimentalClaudeAgent;
354
+ export type HttpAccessModeTenantAccess = ActivateRequestExperimentalClaudeAgent;
355
+ export type HttpAccessModePublicAccess = ActivateRequestExperimentalClaudeAgent;
356
+ export interface HttpAccessMode {
357
+ /** Fields are set to a non-nil value when enabled & to be enforced. Note, it is an error for none to be set */
358
+ owner?: ActivateRequestExperimentalClaudeAgent | undefined;
359
+ tenant?: ActivateRequestExperimentalClaudeAgent | undefined;
360
+ public?: ActivateRequestExperimentalClaudeAgent | undefined;
361
+ }
362
+ /** 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. */
363
+ export interface PoolLease {
364
+ /** The tag identifies the pool this devbox was last leased from. */
365
+ tag: string;
366
+ leaseId: string;
367
+ acquiredAt?: string | undefined;
368
+ /** If unset, this lease is still active (i.e. not yet released). Otherwise, the time at which ReleaseLease was called. */
369
+ releasedAt?: string | undefined;
370
+ }
371
+ export interface DevBox {
372
+ id: string;
373
+ name: string;
374
+ createdAt?: string | undefined;
375
+ lastUsedAt?: string | undefined;
376
+ destroyedAt?: string | undefined;
377
+ imageRef: string;
378
+ instanceShape?: InstanceShape | undefined;
379
+ site: string;
380
+ /** E.g. user_... */
381
+ creator: string;
382
+ volumeName: string;
383
+ volumeSizeGb: string;
384
+ cacheVolumeSizeGb: string;
385
+ /** Use version_control.repositories. */
386
+ repository: string;
387
+ blueprintRef?: BlueprintRef | undefined;
388
+ workspaceDir: string;
389
+ defaultDir: string;
390
+ spec?: BlueprintSpec | undefined;
391
+ mainUser: string;
392
+ /** Use AgentService.ListPorts. */
393
+ portForwards: BlueprintSpecPortForwardList;
394
+ privateFeatures: StringList;
395
+ enabledFeatures: StringList;
396
+ resolvedImage?: DevBoxResolvedImage | undefined;
397
+ busyEnsureMinimumDuration?: string | undefined;
398
+ accessMode: AccessMode;
399
+ httpAccessMode?: HttpAccessMode | undefined;
400
+ /** Terminal sessions configured to persist with this devbox. */
401
+ permanentSessions: BlueprintSpecSessionSpecList;
402
+ /** Integrations configured for this devbox. */
403
+ integrations?: Integrations | undefined;
404
+ /** Free-form description of what this devbox is for. Set at creation time. */
405
+ documentedPurpose: string;
406
+ ephemeral?: EphemeralSpec | undefined;
407
+ /** If set, describes the most recent lease of this devbox. Absent when the devbox has never been leased. */
408
+ poolLease?: PoolLease | undefined;
409
+ networkPolicy?: NetworkPolicySpec | undefined;
410
+ labels: LabelList;
411
+ versionControl?: VersionControlSpec | undefined;
412
+ /** Creation-time configuration, not an attestation of a running instance's token. Tenant restrictions apply at every launch, including when this is unset. */
413
+ workloadToken?: WorkloadTokenSpec | undefined;
414
+ }
415
+ export type AcquireLeaseResponseLeaseOutcome = "LEASE_OUTCOME_UNSPECIFIED" | "LEASE_OUTCOME_CREATED" | "LEASE_OUTCOME_REUSED";
416
+ export interface AcquireLeaseResponse {
417
+ devbox?: DevBox | undefined;
418
+ /** Set if activated. */
419
+ instanceId: string;
420
+ /** Opaque handle for this lease. Pass to ReleaseLease. */
421
+ leaseId: string;
422
+ outcome: AcquireLeaseResponseLeaseOutcome;
423
+ }
424
+ export interface ActivateRequest {
425
+ name?: string | undefined;
426
+ experimental?: ActivateRequestExperimental | undefined;
427
+ includeSshCredentials?: boolean | undefined;
428
+ waitForReadiness?: boolean | undefined;
429
+ /** If not set, uses the latest snapshot. */
430
+ fromSnapshotId?: string | undefined;
431
+ /** If set, lookup by id instead of name. */
432
+ id?: string | undefined;
433
+ /** If set, lookup by id first, then by name if not found. */
434
+ idOrName?: string | undefined;
435
+ }
436
+ export interface ActivateResponseInstanceMetadataSummary {
437
+ ingressDomain: string;
438
+ }
439
+ export interface ActivateResponse {
440
+ instanceId: string;
441
+ devbox?: DevBox | undefined;
442
+ privateSshKey: string | Redacted.Redacted<string>;
443
+ instanceMetadataSummary?: ActivateResponseInstanceMetadataSummary | undefined;
444
+ }
445
+ export interface ConnectBeginDevinOutpostRequest {
446
+ /** Suggested outpost name shown on the Devin connect page (admin can edit). */
447
+ outpostName?: string | undefined;
448
+ /** Allowed: "linux", "macos", or "windows". */
449
+ platform?: string | undefined;
450
+ }
451
+ export interface ConnectBeginDevinOutpostResponse {
452
+ connectUrl: string;
453
+ state: string;
454
+ }
455
+ export interface CreateRequest {
456
+ name?: string | undefined;
457
+ imageRef?: string | undefined;
458
+ instanceShape?: InstanceShape | undefined;
459
+ site?: string | undefined;
460
+ volumeName?: string | undefined;
461
+ volumeSizeGb?: string | undefined;
462
+ cacheVolumeSizeGb?: string | undefined;
463
+ repository?: string | undefined;
464
+ privateFeatures?: StringList | undefined;
465
+ /** Deprecated: use features instead. */
466
+ enabledFeatures?: StringList | undefined;
467
+ /** 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. */
468
+ features?: Features | undefined;
469
+ /** If set, looks up the image by name and resolves image_ref. Exclusive with image_ref. */
470
+ imageName?: string | undefined;
471
+ /** If set, used as-is. Exclusive with repository. */
472
+ versionControl?: VersionControlSpec | undefined;
473
+ /** If set, passed as the initial AgentRuntimeConfiguration.busy_ensure_minimum_duration at activation time. */
474
+ busyEnsureMinimumDuration?: string | undefined;
475
+ /** If unset, defaults to DevboxDefaults.access_mode. */
476
+ accessMode?: AccessMode | (string & {}) | undefined;
477
+ /** Additional terminal sessions to create at startup. */
478
+ sessions?: BlueprintSpecSessionSpecList | undefined;
479
+ /** Integrations to enable on the backing instance (e.g. Tailscale). */
480
+ integrations?: Integrations | undefined;
481
+ /** Free-form description of what this devbox is for. */
482
+ documentedPurpose?: string | undefined;
483
+ /** If set, marks the devbox as ephemeral. Presence of this field is the signal; sub-fields configure ephemeral-specific behaviour. */
484
+ ephemeral?: EphemeralSpec | undefined;
485
+ /** Overrides the image's privileged setting. Unset uses the image default. */
486
+ privileged?: boolean | undefined;
487
+ /** Environment variables to set on the devbox container. Merged on top of any env vars defined by the image, keyed by name. */
488
+ environment?: BlueprintSpecEnvVarList | undefined;
489
+ /** If unset, inherits DevboxDefaults.network_policy. Set to an empty NetworkPolicySpec{} to opt out of inheritance. */
490
+ networkPolicy?: NetworkPolicySpec | undefined;
491
+ ports?: PortSpecList | undefined;
492
+ /** Labels attached to the devbox. Label names using Namespace-reserved prefixes are only accepted by trusted internal callers. */
493
+ labels?: LabelList | undefined;
494
+ /** Script to run once when the devbox is first initialized. */
495
+ initScript?: string | undefined;
496
+ /** Receives lifecycle events for every compute instance backing this devbox. */
497
+ instanceEventCallback?: HttpCallbackEndpoint | undefined;
498
+ persistenceMode?: PersistenceMode | (string & {}) | undefined;
499
+ services?: ServiceSpecList | undefined;
500
+ workloadToken?: WorkloadTokenSpec | undefined;
501
+ activate?: boolean | undefined;
502
+ activateExperimental?: ActivateRequestExperimental | undefined;
503
+ }
504
+ export interface CreateResponse {
505
+ devbox?: DevBox | undefined;
506
+ /** If activate is true. */
507
+ instanceId: string;
508
+ }
509
+ export interface DevboxTemplateSpecInstanceSpecLinuxInstanceSpec {
510
+ imageRef?: string | undefined;
511
+ imageName?: string | undefined;
512
+ }
513
+ export interface DevboxTemplateSpecInstanceSpec {
514
+ shape?: InstanceShape | undefined;
515
+ linux?: DevboxTemplateSpecInstanceSpecLinuxInstanceSpec | undefined;
516
+ }
517
+ export interface DevboxTemplateSpecExperimentalDevinOutpostSpec {
518
+ endpoint?: string | undefined;
519
+ outpostId?: string | undefined;
520
+ }
521
+ export interface DevboxTemplateSpecExperimentalCursorWorkerSpec {
522
+ poolName?: string | undefined;
523
+ }
524
+ export interface DevboxTemplateSpecExperimentalClaudeEnvironmentSpec {
525
+ environmentId?: string | undefined;
526
+ webhookId?: string | undefined;
527
+ }
528
+ export interface DevboxTemplateSpecExperimental {
529
+ devinOutpost?: DevboxTemplateSpecExperimentalDevinOutpostSpec | undefined;
530
+ cursorWorker?: DevboxTemplateSpecExperimentalCursorWorkerSpec | undefined;
531
+ claudeEnvironment?: DevboxTemplateSpecExperimentalClaudeEnvironmentSpec | undefined;
532
+ }
533
+ export type DevboxTemplateSpecType = "TYPE_UNSPECIFIED" | "TYPE_GENERAL" | "TYPE_MANAGED_BY_CLAUDE" | "TYPE_MANAGED_BY_CURSOR" | "TYPE_MANAGED_BY_DEVIN";
534
+ export interface DevboxTemplateSpec {
535
+ /** Immutable; 1-63 letters, digits or hyphens; must not start or end with a hyphen. */
536
+ name?: string | undefined;
537
+ instance?: DevboxTemplateSpecInstanceSpec | undefined;
538
+ site?: string | undefined;
539
+ ephemeral?: EphemeralSpec | undefined;
540
+ versionControl?: VersionControlSpec | undefined;
541
+ environment?: BlueprintSpecEnvVarList | undefined;
542
+ busyEnsureMinimumDuration?: string | undefined;
543
+ integrations?: Integrations | undefined;
544
+ networkPolicy?: NetworkPolicySpec | undefined;
545
+ volumeSizeGb?: string | undefined;
546
+ experimental?: DevboxTemplateSpecExperimental | undefined;
547
+ /** Optional human-readable description. */
548
+ description?: string | undefined;
549
+ accessMode?: AccessMode | (string & {}) | undefined;
550
+ features?: Features | undefined;
551
+ ports?: PortSpecList | undefined;
552
+ type?: DevboxTemplateSpecType | (string & {}) | undefined;
553
+ sessions?: BlueprintSpecSessionSpecList | undefined;
554
+ /** Script to run once when a devbox created from this template is first initialized. */
555
+ initScript?: string | undefined;
556
+ persistenceMode?: PersistenceMode | (string & {}) | undefined;
557
+ services?: ServiceSpecList | undefined;
558
+ /** Overrides the image's privileged setting. Unset uses the image default. */
559
+ privileged?: boolean | undefined;
560
+ /** Uses saved defaults when unspecified on save. Tenant restrictions apply at every launch. */
561
+ workloadToken?: WorkloadTokenSpec | undefined;
562
+ }
563
+ /** Transient integration setup values; credentials are never returned. */
564
+ export interface CreateBlueprintRequestExperimental {
565
+ devinConnectCode?: string | Redacted.Redacted<string> | undefined;
566
+ devinConnectState?: string | undefined;
567
+ cursorApiKey?: string | Redacted.Redacted<string> | undefined;
568
+ claudeApiKey?: string | Redacted.Redacted<string> | undefined;
569
+ claudeEnvironmentKey?: string | Redacted.Redacted<string> | undefined;
570
+ claudeWebhookSigningKey?: string | Redacted.Redacted<string> | undefined;
571
+ }
572
+ export interface CreateBlueprintRequest {
573
+ spec?: DevboxTemplateSpec | undefined;
574
+ experimental?: CreateBlueprintRequestExperimental | undefined;
575
+ }
576
+ export interface DevboxBlueprint {
577
+ id: string;
578
+ version: string;
579
+ createdAt?: string | undefined;
580
+ updatedAt?: string | undefined;
581
+ spec?: DevboxTemplateSpec | undefined;
582
+ }
583
+ export interface CreateBlueprintResponse {
584
+ blueprint?: DevboxBlueprint | undefined;
585
+ }
586
+ export interface CreateFromBlueprintRequestOverrides {
587
+ site?: string | undefined;
588
+ accessMode?: AccessMode | (string & {}) | undefined;
589
+ }
590
+ export interface CreateFromBlueprintRequest {
591
+ name?: string | undefined;
592
+ blueprintId?: string | undefined;
593
+ activate?: boolean | undefined;
594
+ activateExperimental?: ActivateRequestExperimental | undefined;
595
+ documentedPurpose?: string | undefined;
596
+ overrides?: CreateFromBlueprintRequestOverrides | undefined;
597
+ labels?: LabelList | undefined;
598
+ }
599
+ export interface CreateFromBlueprintResponse {
600
+ devbox?: DevBox | undefined;
601
+ /** If activate is true. */
602
+ instanceId: string;
603
+ }
604
+ export interface CreateFromDevboxRequest {
605
+ /** Name for the new devbox. */
606
+ name?: string | undefined;
607
+ /** Name of the source devbox to fork from. */
608
+ fromDevbox?: string | undefined;
609
+ /** Optional: override the instance shape. If unset, inherits from the source devbox. */
610
+ instanceShape?: InstanceShape | undefined;
611
+ /** Optional: snapshot ID to boot from (as returned by ListPersistentVolumeSnapshots). If unset, the latest completed snapshot from the source devbox is used. */
612
+ snapshotId?: string | undefined;
613
+ /** Free-form description of what this devbox is for. Not inherited from the source devbox. */
614
+ documentedPurpose?: string | undefined;
615
+ labels?: LabelList | undefined;
616
+ activateExperimental?: ActivateRequestExperimental | undefined;
617
+ }
618
+ export interface CreateFromDevboxResponse {
619
+ devbox?: DevBox | undefined;
620
+ /** If activate is true. */
621
+ instanceId: string;
622
+ }
623
+ export type CreateFromTemplateRequestOverrides = CreateFromBlueprintRequestOverrides;
624
+ export interface CreateFromTemplateRequest {
625
+ name?: string | undefined;
626
+ templateId?: string | undefined;
627
+ activate?: boolean | undefined;
628
+ activateExperimental?: ActivateRequestExperimental | undefined;
629
+ documentedPurpose?: string | undefined;
630
+ overrides?: CreateFromBlueprintRequestOverrides | undefined;
631
+ labels?: LabelList | undefined;
632
+ }
633
+ export interface CreateFromTemplateResponse {
634
+ devbox?: DevBox | undefined;
635
+ /** If activate is true. */
636
+ instanceId: string;
637
+ }
638
+ /** Depending on the situation, fields may not be returned. */
639
+ export interface ClaudeIntegrationSpec {
640
+ claudeApiKey?: string | Redacted.Redacted<string> | undefined;
641
+ claudeEnvironmentId?: string | undefined;
642
+ claudeEnvironmentKey?: string | Redacted.Redacted<string> | undefined;
643
+ claudeWebhookSigningKey?: string | Redacted.Redacted<string> | undefined;
644
+ /** unique id in the webhook endpoint to identifier the caller */
645
+ nscWebhookId?: string | undefined;
646
+ }
647
+ export interface CreateIntegrationRequest {
648
+ claude?: ClaudeIntegrationSpec | undefined;
649
+ }
650
+ export interface CreateIntegrationResponse {
651
+ id: string;
652
+ }
653
+ export interface CreateRepositoryRequest {
654
+ repository?: string | undefined;
655
+ }
656
+ export interface CreateRepositoryResponse {
657
+ }
658
+ /** Transient integration setup values that must not be persisted in DevboxTemplateSpec. Credentials are stored as tenant Vault secrets and never returned. */
659
+ export type CreateTemplateRequestExperimental = CreateBlueprintRequestExperimental;
660
+ export interface CreateTemplateRequest {
661
+ spec?: DevboxTemplateSpec | undefined;
662
+ experimental?: CreateBlueprintRequestExperimental | undefined;
663
+ }
664
+ export type DevboxTemplate = DevboxBlueprint;
665
+ export interface CreateTemplateResponse {
666
+ template?: DevboxBlueprint | undefined;
667
+ }
668
+ export interface DeleteIntegrationRequest {
669
+ id?: string | undefined;
670
+ }
671
+ export interface DeleteIntegrationResponse {
672
+ }
673
+ export interface DescribeImageRequest {
674
+ digest?: string | undefined;
675
+ version?: string | undefined;
676
+ name?: string | undefined;
677
+ id?: string | undefined;
678
+ }
679
+ export type ImageFlag = "FLAG_UNKNOWN" | "NAMESPACE_MANAGED" | "FLAG_DEPRECATED";
680
+ export type ImageFlagList = Array<ImageFlag>;
681
+ export interface ImageSource {
682
+ dockerfile?: string | undefined;
683
+ /** Build that produced this image. Empty when wired from an existing image. */
684
+ buildRef?: string | undefined;
685
+ }
686
+ export interface Image {
687
+ repository: string;
688
+ digest: string;
689
+ originalDigest: string;
690
+ createdAt?: string | undefined;
691
+ description: string;
692
+ metadata?: BlueprintSpec | undefined;
693
+ flag: ImageFlagList;
694
+ version: string;
695
+ source?: ImageSource | undefined;
696
+ name: string;
697
+ id: string;
698
+ expiresAt?: string | undefined;
699
+ }
700
+ export interface DescribeImageResponse {
701
+ image?: Image | undefined;
702
+ }
703
+ export interface EnsureBlueprintRequest {
704
+ /** Only spec.name is used when the blueprint already exists. */
705
+ spec?: DevboxTemplateSpec | undefined;
706
+ experimental?: CreateBlueprintRequestExperimental | undefined;
707
+ }
708
+ export interface EnsureBlueprintResponse {
709
+ blueprint?: DevboxBlueprint | undefined;
710
+ }
711
+ export interface ExpireRequest {
712
+ name?: string | undefined;
713
+ }
714
+ export type DevBoxList = Array<DevBox>;
715
+ export interface ExpireResponse {
716
+ devboxes: DevBoxList;
717
+ }
718
+ export interface ExpireBlueprintRequest {
719
+ id?: string | undefined;
720
+ }
721
+ export interface ExpireBlueprintResponse {
722
+ }
723
+ export interface ExpireImageRequest {
724
+ repository?: string | undefined;
725
+ digest?: string | undefined;
726
+ name?: string | undefined;
727
+ version?: string | undefined;
728
+ }
729
+ export interface ExpireImageResponse {
730
+ }
731
+ export interface ExpireTemplateRequest {
732
+ id?: string | undefined;
733
+ }
734
+ export interface ExpireTemplateResponse {
735
+ }
736
+ export interface FetchRequest {
737
+ name?: string | undefined;
738
+ includeSshCredentials?: boolean | undefined;
739
+ returnActivatedInstance?: boolean | undefined;
740
+ /** If set, fetch by id instead of name. */
741
+ id?: string | undefined;
742
+ /** If set, fetch by id first, then by name if not found. */
743
+ idOrName?: string | undefined;
744
+ }
745
+ export interface FetchResponse {
746
+ devbox?: DevBox | undefined;
747
+ privateSshKey: string | Redacted.Redacted<string>;
748
+ /** Set if `return_activated_instance` is true, and the devbox is currently running. */
749
+ instanceId: string;
750
+ }
751
+ export interface FetchBlueprintRequest {
752
+ name?: string | undefined;
753
+ }
754
+ export interface FetchBlueprintResponse {
755
+ blueprint?: DevboxBlueprint | undefined;
756
+ }
757
+ export interface FetchDefaultsRequest {
758
+ }
759
+ export interface DevboxDefaults {
760
+ instanceShape?: InstanceShape | undefined;
761
+ imageName?: string | undefined;
762
+ versionControl?: VersionControlSpec | undefined;
763
+ busyEnsureMinimumDuration?: string | undefined;
764
+ accessMode?: AccessMode | (string & {}) | undefined;
765
+ integrations?: Integrations | undefined;
766
+ enabledFeatures?: StringList | undefined;
767
+ /** 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. */
768
+ volumeSizeGb?: string | undefined;
769
+ networkPolicy?: NetworkPolicySpec | undefined;
770
+ workloadToken?: WorkloadTokenSpec | undefined;
771
+ }
772
+ export interface FetchDefaultsResponse {
773
+ defaults?: DevboxDefaults | undefined;
774
+ metadataVersion: string;
775
+ /** Values explicitly set via tenant policy. */
776
+ byPolicy?: DevboxDefaults | undefined;
777
+ }
778
+ export interface FetchTemplateRequest {
779
+ name?: string | undefined;
780
+ }
781
+ export interface FetchTemplateResponse {
782
+ template?: DevboxBlueprint | undefined;
783
+ }
784
+ export interface GetUsageRequestDate {
785
+ year?: number | undefined;
786
+ month?: number | undefined;
787
+ day?: number | undefined;
788
+ }
789
+ export interface GetUsageRequest {
790
+ /** Optional: If no start date is provided, return usage starting from the first day of the current month. Period start is inclusive. */
791
+ periodStart?: GetUsageRequestDate | undefined;
792
+ /** Optional: Limits the time range of the returned results. Period end is inclusive and must be in the same month as period start. */
793
+ periodEnd?: GetUsageRequestDate | undefined;
794
+ }
795
+ export interface GetUsageResponseDataPoint {
796
+ year: number;
797
+ month: number;
798
+ day: number;
799
+ /** 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. */
800
+ activeCount: number;
801
+ /** 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. */
802
+ activeCountForUser: number;
803
+ }
804
+ export type GetUsageResponseDataPointList = Array<GetUsageResponseDataPoint>;
805
+ export interface GetUsageResponse {
806
+ perDay: GetUsageResponseDataPointList;
807
+ /** Effective maximum number of non-expired devboxes for the tenant. */
808
+ maximumCount: number;
809
+ /** Effective maximum number of non-expired devboxes per user. */
810
+ maximumCountPerUser: number;
811
+ }
812
+ export interface InspectImageRequest {
813
+ imageRef?: string | undefined;
814
+ }
815
+ export type StringMap = {
816
+ [key: string]: string | undefined;
817
+ };
818
+ export interface InspectImageResponse {
819
+ optimizedKinds: StringList;
820
+ user: string;
821
+ env: StringMap;
822
+ version: string;
823
+ spec?: BlueprintSpec | undefined;
824
+ versionCreatedAt?: string | undefined;
825
+ /** Sites for which this image has been optimized. */
826
+ optimizedSites: StringList;
827
+ }
828
+ export type StringMatcherOperator = "OPERATOR_UNKNOWN" | "IS_ANY_OF" | "IS_NOT";
829
+ export interface StringMatcher {
830
+ values?: StringList | undefined;
831
+ op?: StringMatcherOperator | (string & {}) | undefined;
832
+ }
833
+ export type ListRequestOrderBy = "ORDER_BY_UNKNOWN" | "ORDER_BY_LAST_USED_AT" | "ORDER_BY_CREATED_AT";
834
+ export type ListRequestEphemeralFilter = "EPHEMERAL_FILTER_UNKNOWN" | "EPHEMERAL_FILTER_ONLY_EPHEMERAL" | "EPHEMERAL_FILTER_ONLY_NON_EPHEMERAL";
835
+ export type LabelFilterEntryLabelFilterOp = "UNKNOWN" | "EQUAL" | "NOT_EQUAL" | "EXIST";
836
+ export interface LabelFilterEntry {
837
+ name?: string | undefined;
838
+ value?: string | undefined;
839
+ op?: LabelFilterEntryLabelFilterOp | (string & {}) | undefined;
840
+ }
841
+ export type LabelFilterEntryList = Array<LabelFilterEntry>;
842
+ export interface ListRequestLabelFilter {
843
+ anyOf?: LabelFilterEntryList | undefined;
844
+ }
845
+ export type ListRequestLabelFilterList = Array<ListRequestLabelFilter>;
846
+ export interface ListRequest {
847
+ /** If a previous response returned a `pagination_cursor`, it can be specified to continue reading results with the same arguments as the original call. */
848
+ paginationCursor?: string | undefined;
849
+ /** Filter by the devbox creator. */
850
+ matchCreator?: StringMatcher | undefined;
851
+ /** Filter by the resolved image name. */
852
+ matchImageName?: StringMatcher | undefined;
853
+ /** Filter by the image ref (e.g. repository@digest). */
854
+ matchImageRef?: StringMatcher | undefined;
855
+ orderBy?: ListRequestOrderBy | (string & {}) | undefined;
856
+ /** Filter by whether the devbox is ephemeral. If unset (UNKNOWN), both ephemeral and non-ephemeral devboxes are returned. */
857
+ matchEphemeral?: ListRequestEphemeralFilter | (string & {}) | undefined;
858
+ /** 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. */
859
+ maxEntries?: string | undefined;
860
+ /** 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. */
861
+ matchLabels?: ListRequestLabelFilterList | undefined;
862
+ }
863
+ export interface ListResponse {
864
+ /** If set, there are additional results. Pass the same cursor to a subsequent List call (with the same filter arguments) to continue fetching results. */
865
+ paginationCursor: string;
866
+ /** List of Devboxes that match the filter. */
867
+ devboxes: DevBoxList;
868
+ }
869
+ export type ListBlueprintsRequestOrderBy = "ORDER_BY_UNKNOWN" | "ORDER_BY_CREATED_AT" | "ORDER_BY_UPDATED_AT";
870
+ export interface ListBlueprintsRequest {
871
+ /** Cursor from a previous response, to continue reading results. */
872
+ paginationCursor?: string | undefined;
873
+ orderBy?: ListBlueprintsRequestOrderBy | (string & {}) | undefined;
874
+ /** Maximum entries to return. Defaults to 100 if unset (0). */
875
+ maxEntries?: string | undefined;
876
+ }
877
+ export type DevboxBlueprintList = Array<DevboxBlueprint>;
878
+ export interface ListBlueprintsResponse {
879
+ blueprints: DevboxBlueprintList;
880
+ /** Set when more results exist; pass it back to fetch the next page. */
881
+ paginationCursor: string;
882
+ }
883
+ export interface ListComposableFeaturesRequest {
884
+ }
885
+ export interface ComposableFeature {
886
+ id?: string | undefined;
887
+ iconUrl?: string | undefined;
888
+ description?: string | undefined;
889
+ builtin?: boolean | undefined;
890
+ }
891
+ export type ComposableFeatureList = Array<ComposableFeature>;
892
+ export interface ListComposableFeaturesResponse {
893
+ features: ComposableFeatureList;
894
+ }
895
+ export interface ListImagesRequest {
896
+ includeBuiltin?: boolean | undefined;
897
+ pagionationCursor?: string | undefined;
898
+ }
899
+ export type ImageList = Array<Image>;
900
+ export interface ListImagesResponse {
901
+ paginationCursor: string;
902
+ image: ImageList;
903
+ }
904
+ export interface ListIntegrationsRequest {
905
+ }
906
+ /** Stored view of an integration. Exactly one spec field is populated. */
907
+ export interface Integration {
908
+ id: string;
909
+ createdAt?: string | undefined;
910
+ updatedAt?: string | undefined;
911
+ claude?: ClaudeIntegrationSpec | undefined;
912
+ }
913
+ export type IntegrationList = Array<Integration>;
914
+ export interface ListIntegrationsResponse {
915
+ integrations: IntegrationList;
916
+ }
917
+ export type ListSnapshotsRequestOrderBy = "ORDER_BY_UNKNOWN" | "ORDER_BY_CREATED_AT_DESC";
918
+ export interface ListSnapshotsRequest {
919
+ idOrName?: string | undefined;
920
+ orderBy?: ListSnapshotsRequestOrderBy | (string & {}) | undefined;
921
+ }
922
+ export interface PersistentVolumeSnapshot {
923
+ /** The unique identifier of this snapshot. */
924
+ id: string;
925
+ /** The timestamp of when the snapshot was created (in UTC). */
926
+ createdAt?: string | undefined;
927
+ /** The total size of the snapshot in bytes (sum of all pages). */
928
+ usedBytes: string;
929
+ /** The ID of the snapshot this snapshot was created from. Empty if this is the first snapshot. */
930
+ snapshotFrom: string;
931
+ /** The completed snapshot ID. Empty if the snapshot is still in progress. */
932
+ completedSnapshot: string;
933
+ /** The net new bytes added by this snapshot compared to its parent. */
934
+ netNewUsedBytes: string;
935
+ /** The instance ID that this snapshot is attached to. Empty if not attached. */
936
+ attachedInstanceId: string;
937
+ /** The timestamp of when the snapshot was released (detached from the instance). */
938
+ releasedAt?: string | undefined;
939
+ /** The reason why the snapshot was released. */
940
+ releasedReason: string;
941
+ /** The timestamp of when the snapshot was abandoned (in UTC). Abandoned snapshots are excluded when selecting a base snapshot for new volumes. */
942
+ abandonedAt?: string | undefined;
943
+ /** The metadata version of the snapshot (e.g., "v1", "v2"). */
944
+ metadataVersion: string;
945
+ }
946
+ export type PersistentVolumeSnapshotList = Array<PersistentVolumeSnapshot>;
947
+ export interface ListSnapshotsResponse {
948
+ snapshots: PersistentVolumeSnapshotList;
949
+ }
950
+ export type ListTemplatesRequestOrderBy = "ORDER_BY_UNKNOWN" | "ORDER_BY_CREATED_AT" | "ORDER_BY_UPDATED_AT";
951
+ export interface ListTemplatesRequest {
952
+ /** Cursor from a previous response, to continue reading results. */
953
+ paginationCursor?: string | undefined;
954
+ orderBy?: ListTemplatesRequestOrderBy | (string & {}) | undefined;
955
+ /** Maximum entries to return. Defaults to 100 if unset (0). */
956
+ maxEntries?: string | undefined;
957
+ }
958
+ export type DevboxTemplateList = Array<DevboxBlueprint>;
959
+ export interface ListTemplatesResponse {
960
+ templates: DevboxTemplateList;
961
+ /** Set when more results exist; pass it back to fetch the next page. */
962
+ paginationCursor: string;
963
+ }
964
+ export interface MetadataRequest {
965
+ }
966
+ export interface MetadataResponseSite {
967
+ site: string;
968
+ label: string;
969
+ /** Canonical OS/architecture values, such as "linux/amd64" or "macos/arm64". */
970
+ platforms: StringList;
971
+ }
972
+ export type MetadataResponseSiteList = Array<MetadataResponseSite>;
973
+ export interface MetadataResponse {
974
+ sites: MetadataResponseSiteList;
975
+ }
976
+ export interface PingRequest {
977
+ }
978
+ export interface PingResponse {
979
+ }
980
+ export interface FeatureSpecRunScript {
981
+ name?: string | undefined;
982
+ script?: string | undefined;
983
+ /** 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". */
984
+ scriptSource?: string | undefined;
985
+ /** 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. */
986
+ interpreter?: string | undefined;
987
+ }
988
+ export type FeatureSpecRunScriptList = Array<FeatureSpecRunScript>;
989
+ export type FeatureSpecSessionSpec = BlueprintSpecSessionSpec;
990
+ export type FeatureSpecSessionSpecList = Array<BlueprintSpecSessionSpec>;
991
+ export interface FeatureSpecExportedPort {
992
+ name?: string | undefined;
993
+ port?: number | undefined;
994
+ }
995
+ export type FeatureSpecExportedPortList = Array<FeatureSpecExportedPort>;
996
+ /** FeatureSpec represents the changes to apply when a feature is enabled. */
997
+ export interface FeatureSpec {
998
+ /** Scripts to run during devbox creation. */
999
+ onCreate?: FeatureSpecRunScriptList | undefined;
1000
+ /** Terminal sessions to create. */
1001
+ sessions?: FeatureSpecSessionSpecList | undefined;
1002
+ /** Paths to add to PATH. */
1003
+ includeInPath?: StringList | undefined;
1004
+ /** Named ports to export from the devbox container. */
1005
+ exportedPorts?: FeatureSpecExportedPortList | undefined;
1006
+ /** Scripts to run on every devbox startup (not just first boot). */
1007
+ onStartup?: FeatureSpecRunScriptList | undefined;
1008
+ }
1009
+ export interface RegisterComposableFeatureRequest {
1010
+ feature?: ComposableFeature | undefined;
1011
+ spec?: FeatureSpec | undefined;
1012
+ }
1013
+ export interface RegisterComposableFeatureResponse {
1014
+ }
1015
+ export interface ReleaseLeaseRequest {
1016
+ /** Required if lease_id is not supplied. When both are set, guards that the lease belongs to the named devbox. */
1017
+ idOrName?: string | undefined;
1018
+ /** Required if id_or_name is not supplied. Opaque handle returned by AcquireLease. */
1019
+ leaseId?: string | undefined;
1020
+ }
1021
+ export interface ReleaseLeaseResponse {
1022
+ }
1023
+ export interface RemoveComposableFeatureRequest {
1024
+ id?: string | undefined;
1025
+ }
1026
+ export interface RemoveComposableFeatureResponse {
1027
+ }
1028
+ export interface StopRequest {
1029
+ name?: string | undefined;
1030
+ }
1031
+ export interface StopResponse {
1032
+ devbox?: DevBox | undefined;
1033
+ instanceId: string;
1034
+ }
1035
+ export interface UpdateRequest {
1036
+ name?: string | undefined;
1037
+ instanceShape?: InstanceShape | undefined;
1038
+ busyEnsureMinimumDuration?: string | undefined;
1039
+ /** If set, updates the persisted integrations config for this devbox. */
1040
+ integrations?: Integrations | undefined;
1041
+ /** 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. */
1042
+ volumeSizeGb?: string | undefined;
1043
+ /** If set, updates the persisted privileged flag. Applies on next restart. */
1044
+ privileged?: boolean | undefined;
1045
+ /** If set, updates the persisted network policy. Applies on next restart. An empty NetworkPolicySpec{} clears the stored policy. */
1046
+ networkPolicy?: NetworkPolicySpec | undefined;
1047
+ /** If set, updates access to this devbox through devbox.so URLs. */
1048
+ httpAccessMode?: HttpAccessMode | undefined;
1049
+ }
1050
+ export interface UpdateResponse {
1051
+ devbox?: DevBox | undefined;
1052
+ }
1053
+ export interface UpdateBlueprintRequest {
1054
+ id?: string | undefined;
1055
+ spec?: DevboxTemplateSpec | undefined;
1056
+ experimental?: CreateBlueprintRequestExperimental | undefined;
1057
+ }
1058
+ export interface UpdateBlueprintResponse {
1059
+ blueprint?: DevboxBlueprint | undefined;
1060
+ }
1061
+ export interface UpdateDefaultsRequest {
1062
+ defaults?: DevboxDefaults | undefined;
1063
+ matchMetadataVersion?: string | undefined;
1064
+ }
1065
+ export interface UpdateDefaultsResponse {
1066
+ defaults?: DevboxDefaults | undefined;
1067
+ }
1068
+ /** Transient integration setup values that must not be persisted in DevboxTemplateSpec. Credentials are stored as tenant Vault secrets and never returned. */
1069
+ export type UpdateTemplateRequestExperimental = CreateBlueprintRequestExperimental;
1070
+ export interface UpdateTemplateRequest {
1071
+ id?: string | undefined;
1072
+ spec?: DevboxTemplateSpec | undefined;
1073
+ experimental?: CreateBlueprintRequestExperimental | undefined;
1074
+ }
1075
+ export interface UpdateTemplateResponse {
1076
+ template?: DevboxBlueprint | undefined;
1077
+ }
1078
+ export interface WireImageRequest {
1079
+ imageRef?: string | undefined;
1080
+ description?: string | undefined;
1081
+ metadata?: BlueprintSpec | undefined;
1082
+ name?: string | undefined;
1083
+ source?: ImageSource | undefined;
1084
+ }
1085
+ export interface WireImageResponse {
1086
+ image?: Image | undefined;
1087
+ }
1088
+ export type AcquireLeaseError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1089
+ export declare const acquireLease: API.OperationMethod<AcquireLeaseRequest, AcquireLeaseResponse, AcquireLeaseError, NamespaceLabsOpContext>;
1090
+ export type ActivateError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1091
+ export declare const activate: API.OperationMethod<ActivateRequest, ActivateResponse, ActivateError, NamespaceLabsOpContext>;
1092
+ export type ConnectBeginDevinOutpostError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1093
+ export declare const connectBeginDevinOutpost: API.OperationMethod<ConnectBeginDevinOutpostRequest, ConnectBeginDevinOutpostResponse, ConnectBeginDevinOutpostError, NamespaceLabsOpContext>;
1094
+ export type CreateError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1095
+ export declare const create: API.OperationMethod<CreateRequest, CreateResponse, CreateError, NamespaceLabsOpContext>;
1096
+ export type CreateBlueprintError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1097
+ export declare const createBlueprint: API.OperationMethod<CreateBlueprintRequest, CreateBlueprintResponse, CreateBlueprintError, NamespaceLabsOpContext>;
1098
+ export type CreateFromBlueprintError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1099
+ export declare const createFromBlueprint: API.OperationMethod<CreateFromBlueprintRequest, CreateFromBlueprintResponse, CreateFromBlueprintError, NamespaceLabsOpContext>;
1100
+ export type CreateFromDevboxError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1101
+ /** Experimental: this API is not stable and is not ready for production use. */
1102
+ export declare const createFromDevbox: API.OperationMethod<CreateFromDevboxRequest, CreateFromDevboxResponse, CreateFromDevboxError, NamespaceLabsOpContext>;
1103
+ export type CreateFromTemplateError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1104
+ /** Retained for backwards compatibility; use CreateFromBlueprint instead. */
1105
+ export declare const createFromTemplate: API.OperationMethod<CreateFromTemplateRequest, CreateFromTemplateResponse, CreateFromTemplateError, NamespaceLabsOpContext>;
1106
+ export type CreateIntegrationError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1107
+ export declare const createIntegration: API.OperationMethod<CreateIntegrationRequest, CreateIntegrationResponse, CreateIntegrationError, NamespaceLabsOpContext>;
1108
+ export type CreateRepositoryError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1109
+ export declare const createRepository: API.OperationMethod<CreateRepositoryRequest, CreateRepositoryResponse, CreateRepositoryError, NamespaceLabsOpContext>;
1110
+ export type CreateTemplateError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1111
+ /** Retained for backwards compatibility; use CreateBlueprint instead. */
1112
+ export declare const createTemplate: API.OperationMethod<CreateTemplateRequest, CreateTemplateResponse, CreateTemplateError, NamespaceLabsOpContext>;
1113
+ export type DeleteIntegrationError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1114
+ export declare const deleteIntegration: API.OperationMethod<DeleteIntegrationRequest, DeleteIntegrationResponse, DeleteIntegrationError, NamespaceLabsOpContext>;
1115
+ export type DescribeImageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1116
+ export declare const describeImage: API.OperationMethod<DescribeImageRequest, DescribeImageResponse, DescribeImageError, NamespaceLabsOpContext>;
1117
+ export type EnsureBlueprintError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1118
+ /** Fetch by spec.name, or create with the supplied parameters if missing. Existing blueprints are returned unchanged. */
1119
+ export declare const ensureBlueprint: API.OperationMethod<EnsureBlueprintRequest, EnsureBlueprintResponse, EnsureBlueprintError, NamespaceLabsOpContext>;
1120
+ export type ExpireError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1121
+ export declare const expire: API.OperationMethod<ExpireRequest, ExpireResponse, ExpireError, NamespaceLabsOpContext>;
1122
+ export type ExpireBlueprintError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1123
+ export declare const expireBlueprint: API.OperationMethod<ExpireBlueprintRequest, ExpireBlueprintResponse, ExpireBlueprintError, NamespaceLabsOpContext>;
1124
+ export type ExpireImageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1125
+ export declare const expireImage: API.OperationMethod<ExpireImageRequest, ExpireImageResponse, ExpireImageError, NamespaceLabsOpContext>;
1126
+ export type ExpireTemplateError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1127
+ /** Retained for backwards compatibility; use ExpireBlueprint instead. */
1128
+ export declare const expireTemplate: API.OperationMethod<ExpireTemplateRequest, ExpireTemplateResponse, ExpireTemplateError, NamespaceLabsOpContext>;
1129
+ export type FetchError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1130
+ export declare const fetch: API.OperationMethod<FetchRequest, FetchResponse, FetchError, NamespaceLabsOpContext>;
1131
+ export type FetchBlueprintError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1132
+ export declare const fetchBlueprint: API.OperationMethod<FetchBlueprintRequest, FetchBlueprintResponse, FetchBlueprintError, NamespaceLabsOpContext>;
1133
+ export type FetchDefaultsError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1134
+ export declare const fetchDefaults: API.OperationMethod<FetchDefaultsRequest, FetchDefaultsResponse, FetchDefaultsError, NamespaceLabsOpContext>;
1135
+ export type FetchTemplateError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1136
+ /** Retained for backwards compatibility; use FetchBlueprint instead. */
1137
+ export declare const fetchTemplate: API.OperationMethod<FetchTemplateRequest, FetchTemplateResponse, FetchTemplateError, NamespaceLabsOpContext>;
1138
+ export type GetUsageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1139
+ export declare const getUsage: API.OperationMethod<GetUsageRequest, GetUsageResponse, GetUsageError, NamespaceLabsOpContext>;
1140
+ export type InspectImageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1141
+ export declare const inspectImage: API.OperationMethod<InspectImageRequest, InspectImageResponse, InspectImageError, NamespaceLabsOpContext>;
1142
+ export type ListError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1143
+ export declare const list: API.PaginatedOperationMethod<ListRequest, ListResponse, ListError, NamespaceLabsOpContext, DevBox>;
1144
+ export type ListBlueprintsError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1145
+ export declare const listBlueprints: API.PaginatedOperationMethod<ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsError, NamespaceLabsOpContext, DevboxBlueprint>;
1146
+ export type ListComposableFeaturesError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1147
+ export declare const listComposableFeatures: API.OperationMethod<ListComposableFeaturesRequest, ListComposableFeaturesResponse, ListComposableFeaturesError, NamespaceLabsOpContext>;
1148
+ export type ListImagesError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1149
+ export declare const listImages: API.PaginatedOperationMethod<ListImagesRequest, ListImagesResponse, ListImagesError, NamespaceLabsOpContext, Image>;
1150
+ export type ListIntegrationsError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1151
+ export declare const listIntegrations: API.OperationMethod<ListIntegrationsRequest, ListIntegrationsResponse, ListIntegrationsError, NamespaceLabsOpContext>;
1152
+ export type ListSnapshotsError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1153
+ export declare const listSnapshots: API.OperationMethod<ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsError, NamespaceLabsOpContext>;
1154
+ export type ListTemplatesError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1155
+ /** Retained for backwards compatibility; use ListBlueprints instead. */
1156
+ export declare const listTemplates: API.PaginatedOperationMethod<ListTemplatesRequest, ListTemplatesResponse, ListTemplatesError, NamespaceLabsOpContext, DevboxBlueprint>;
1157
+ export type MetadataError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1158
+ export declare const metadata: API.OperationMethod<MetadataRequest, MetadataResponse, MetadataError, NamespaceLabsOpContext>;
1159
+ export type PingError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1160
+ export declare const ping: API.OperationMethod<PingRequest, PingResponse, PingError, NamespaceLabsOpContext>;
1161
+ export type RegisterComposableFeatureError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1162
+ export declare const registerComposableFeature: API.OperationMethod<RegisterComposableFeatureRequest, RegisterComposableFeatureResponse, RegisterComposableFeatureError, NamespaceLabsOpContext>;
1163
+ export type ReleaseLeaseError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1164
+ export declare const releaseLease: API.OperationMethod<ReleaseLeaseRequest, ReleaseLeaseResponse, ReleaseLeaseError, NamespaceLabsOpContext>;
1165
+ export type RemoveComposableFeatureError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1166
+ export declare const removeComposableFeature: API.OperationMethod<RemoveComposableFeatureRequest, RemoveComposableFeatureResponse, RemoveComposableFeatureError, NamespaceLabsOpContext>;
1167
+ export type StopError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1168
+ export declare const stop: API.OperationMethod<StopRequest, StopResponse, StopError, NamespaceLabsOpContext>;
1169
+ export type UpdateError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1170
+ export declare const update: API.OperationMethod<UpdateRequest, UpdateResponse, UpdateError, NamespaceLabsOpContext>;
1171
+ export type UpdateBlueprintError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1172
+ export declare const updateBlueprint: API.OperationMethod<UpdateBlueprintRequest, UpdateBlueprintResponse, UpdateBlueprintError, NamespaceLabsOpContext>;
1173
+ export type UpdateDefaultsError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1174
+ export declare const updateDefaults: API.OperationMethod<UpdateDefaultsRequest, UpdateDefaultsResponse, UpdateDefaultsError, NamespaceLabsOpContext>;
1175
+ export type UpdateTemplateError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1176
+ /** Retained for backwards compatibility; use UpdateBlueprint instead. */
1177
+ export declare const updateTemplate: API.OperationMethod<UpdateTemplateRequest, UpdateTemplateResponse, UpdateTemplateError, NamespaceLabsOpContext>;
1178
+ export type WireImageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
1179
+ export declare const wireImage: API.OperationMethod<WireImageRequest, WireImageResponse, WireImageError, NamespaceLabsOpContext>;
1180
+ //# sourceMappingURL=private_devbox.d.ts.map