@distilled.cloud/namespacelabs 1.0.0-rc.20 → 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 (310) hide show
  1. package/README.md +19 -10
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +27 -9
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/errors.d.ts +26 -0
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +1 -1
  10. package/lib/index.d.ts +10 -8
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +0 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/protocol.d.ts +11 -7
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/retry.d.ts.map +1 -1
  17. package/lib/services/buildkite_jobs.d.ts +8 -0
  18. package/lib/services/buildkite_jobs.d.ts.map +1 -1
  19. package/lib/services/buildkite_jobs.js +1 -1
  20. package/lib/services/buildkite_jobs.js.map +1 -1
  21. package/lib/services/buildkite_queue.d.ts +8 -0
  22. package/lib/services/buildkite_queue.d.ts.map +1 -1
  23. package/lib/services/buildkite_queue.js +1 -1
  24. package/lib/services/buildkite_queue.js.map +1 -1
  25. package/lib/services/index.d.ts +0 -27
  26. package/lib/services/index.d.ts.map +1 -1
  27. package/lib/services/index.js +0 -27
  28. package/lib/services.lazy/index.js +2 -2
  29. package/lib/traits.d.ts.map +1 -1
  30. package/lib/{services → unstable-services}/artifacts.d.ts +8 -0
  31. package/lib/unstable-services/artifacts.d.ts.map +1 -0
  32. package/lib/unstable-services/artifacts.js +2 -0
  33. package/lib/unstable-services/artifacts.js.map +1 -0
  34. package/lib/{services → unstable-services}/audit.d.ts +8 -0
  35. package/lib/unstable-services/audit.d.ts.map +1 -0
  36. package/lib/unstable-services/audit.js +2 -0
  37. package/lib/unstable-services/audit.js.map +1 -0
  38. package/lib/{services → unstable-services}/bazel.d.ts +8 -0
  39. package/lib/unstable-services/bazel.d.ts.map +1 -0
  40. package/lib/unstable-services/bazel.js +2 -0
  41. package/lib/unstable-services/bazel.js.map +1 -0
  42. package/lib/{services → unstable-services}/bazel_cache.d.ts +8 -0
  43. package/lib/unstable-services/bazel_cache.d.ts.map +1 -0
  44. package/lib/unstable-services/bazel_cache.js +2 -0
  45. package/lib/unstable-services/bazel_cache.js.map +1 -0
  46. package/lib/{services → unstable-services}/builder.d.ts +8 -0
  47. package/lib/unstable-services/builder.d.ts.map +1 -0
  48. package/lib/unstable-services/builder.js +2 -0
  49. package/lib/unstable-services/builder.js.map +1 -0
  50. package/lib/{services → unstable-services}/compute.d.ts +67 -0
  51. package/lib/unstable-services/compute.d.ts.map +1 -0
  52. package/lib/unstable-services/compute.js +47 -0
  53. package/lib/unstable-services/compute.js.map +1 -0
  54. package/lib/{services → unstable-services}/compute_command.d.ts +8 -0
  55. package/lib/unstable-services/compute_command.d.ts.map +1 -0
  56. package/lib/unstable-services/compute_command.js +2 -0
  57. package/lib/unstable-services/compute_command.js.map +1 -0
  58. package/lib/{services → unstable-services}/compute_observability.d.ts +8 -0
  59. package/lib/unstable-services/compute_observability.d.ts.map +1 -0
  60. package/lib/unstable-services/compute_observability.js +2 -0
  61. package/lib/unstable-services/compute_observability.js.map +1 -0
  62. package/lib/{services → unstable-services}/compute_storage.d.ts +8 -0
  63. package/lib/unstable-services/compute_storage.d.ts.map +1 -0
  64. package/lib/unstable-services/compute_storage.js +33 -0
  65. package/lib/unstable-services/compute_storage.js.map +1 -0
  66. package/lib/{services → unstable-services}/compute_usage.d.ts +8 -0
  67. package/lib/unstable-services/compute_usage.d.ts.map +1 -0
  68. package/lib/unstable-services/compute_usage.js +2 -0
  69. package/lib/unstable-services/compute_usage.js.map +1 -0
  70. package/lib/{services → unstable-services}/egress.d.ts +8 -0
  71. package/lib/unstable-services/egress.d.ts.map +1 -0
  72. package/lib/unstable-services/egress.js +2 -0
  73. package/lib/unstable-services/egress.js.map +1 -0
  74. package/lib/{services → unstable-services}/experimental_compute_reservation.d.ts +11 -1
  75. package/lib/unstable-services/experimental_compute_reservation.d.ts.map +1 -0
  76. package/lib/unstable-services/experimental_compute_reservation.js +23 -0
  77. package/lib/unstable-services/experimental_compute_reservation.js.map +1 -0
  78. package/lib/{services → unstable-services}/experimental_remote_results.d.ts +8 -0
  79. package/lib/unstable-services/experimental_remote_results.d.ts.map +1 -0
  80. package/lib/unstable-services/experimental_remote_results.js +2 -0
  81. package/lib/unstable-services/experimental_remote_results.js.map +1 -0
  82. package/lib/{services → unstable-services}/github_image.d.ts +8 -0
  83. package/lib/unstable-services/github_image.d.ts.map +1 -0
  84. package/lib/unstable-services/github_image.js +2 -0
  85. package/lib/unstable-services/github_image.js.map +1 -0
  86. package/lib/{services → unstable-services}/github_jobs.d.ts +8 -0
  87. package/lib/unstable-services/github_jobs.d.ts.map +1 -0
  88. package/lib/unstable-services/github_jobs.js +2 -0
  89. package/lib/unstable-services/github_jobs.js.map +1 -0
  90. package/lib/{services → unstable-services}/github_profile.d.ts +8 -0
  91. package/lib/unstable-services/github_profile.d.ts.map +1 -0
  92. package/lib/unstable-services/github_profile.js +2 -0
  93. package/lib/unstable-services/github_profile.js.map +1 -0
  94. package/lib/{services → unstable-services}/gradle_cache.d.ts +8 -0
  95. package/lib/unstable-services/gradle_cache.d.ts.map +1 -0
  96. package/lib/unstable-services/gradle_cache.js +2 -0
  97. package/lib/unstable-services/gradle_cache.js.map +1 -0
  98. package/lib/{services → unstable-services}/httpcache.d.ts +8 -0
  99. package/lib/unstable-services/httpcache.d.ts.map +1 -0
  100. package/lib/unstable-services/httpcache.js +2 -0
  101. package/lib/unstable-services/httpcache.js.map +1 -0
  102. package/lib/{services → unstable-services}/iam_tenant.d.ts +95 -11
  103. package/lib/unstable-services/iam_tenant.d.ts.map +1 -0
  104. package/lib/unstable-services/iam_tenant.js +45 -0
  105. package/lib/unstable-services/iam_tenant.js.map +1 -0
  106. package/lib/{services → unstable-services}/iam_tenant_membership.d.ts +8 -0
  107. package/lib/unstable-services/iam_tenant_membership.d.ts.map +1 -0
  108. package/lib/unstable-services/iam_tenant_membership.js +2 -0
  109. package/lib/unstable-services/iam_tenant_membership.js.map +1 -0
  110. package/lib/{services → unstable-services}/iam_token.d.ts +8 -0
  111. package/lib/unstable-services/iam_token.d.ts.map +1 -0
  112. package/lib/unstable-services/iam_token.js +2 -0
  113. package/lib/unstable-services/iam_token.js.map +1 -0
  114. package/lib/{services → unstable-services}/image.d.ts +8 -0
  115. package/lib/unstable-services/image.d.ts.map +1 -0
  116. package/lib/unstable-services/image.js +2 -0
  117. package/lib/unstable-services/image.js.map +1 -0
  118. package/lib/unstable-services/index.d.ts +28 -0
  119. package/lib/unstable-services/index.d.ts.map +1 -0
  120. package/lib/unstable-services/index.js +27 -0
  121. package/lib/{services → unstable-services}/private_devbox.d.ts +24 -0
  122. package/lib/unstable-services/private_devbox.d.ts.map +1 -0
  123. package/lib/unstable-services/private_devbox.js +81 -0
  124. package/lib/unstable-services/private_devbox.js.map +1 -0
  125. package/lib/{services → unstable-services}/private_user_sessions.d.ts +8 -0
  126. package/lib/unstable-services/private_user_sessions.d.ts.map +1 -0
  127. package/lib/unstable-services/private_user_sessions.js +2 -0
  128. package/lib/unstable-services/private_user_sessions.js.map +1 -0
  129. package/lib/{services → unstable-services}/registry.d.ts +8 -0
  130. package/lib/unstable-services/registry.d.ts.map +1 -0
  131. package/lib/unstable-services/registry.js +34 -0
  132. package/lib/unstable-services/registry.js.map +1 -0
  133. package/lib/{services → unstable-services}/testing.d.ts +8 -0
  134. package/lib/unstable-services/testing.d.ts.map +1 -0
  135. package/lib/unstable-services/testing.js +2 -0
  136. package/lib/unstable-services/testing.js.map +1 -0
  137. package/lib/{services → unstable-services}/vault.d.ts +8 -0
  138. package/lib/unstable-services/vault.d.ts.map +1 -0
  139. package/lib/unstable-services/vault.js +2 -0
  140. package/lib/unstable-services/vault.js.map +1 -0
  141. package/lib/unstable-services.lazy/artifacts.js +1 -0
  142. package/lib/unstable-services.lazy/audit.js +1 -0
  143. package/lib/unstable-services.lazy/bazel.js +1 -0
  144. package/lib/unstable-services.lazy/bazel_cache.js +1 -0
  145. package/lib/unstable-services.lazy/builder.js +1 -0
  146. package/lib/unstable-services.lazy/compute.js +4 -0
  147. package/lib/unstable-services.lazy/compute_command.js +1 -0
  148. package/lib/unstable-services.lazy/compute_observability.js +1 -0
  149. package/lib/{services.lazy → unstable-services.lazy}/compute_storage.js +1 -1
  150. package/lib/unstable-services.lazy/compute_usage.js +1 -0
  151. package/lib/unstable-services.lazy/egress.js +1 -0
  152. package/lib/{services.lazy → unstable-services.lazy}/experimental_compute_reservation.js +1 -1
  153. package/lib/unstable-services.lazy/experimental_remote_results.js +1 -0
  154. package/lib/unstable-services.lazy/github_image.js +1 -0
  155. package/lib/unstable-services.lazy/github_jobs.js +1 -0
  156. package/lib/unstable-services.lazy/github_profile.js +1 -0
  157. package/lib/unstable-services.lazy/gradle_cache.js +1 -0
  158. package/lib/unstable-services.lazy/httpcache.js +1 -0
  159. package/lib/unstable-services.lazy/iam_tenant.js +4 -0
  160. package/lib/unstable-services.lazy/iam_tenant_membership.js +1 -0
  161. package/lib/unstable-services.lazy/iam_token.js +1 -0
  162. package/lib/unstable-services.lazy/image.js +1 -0
  163. package/lib/unstable-services.lazy/index.js +3 -0
  164. package/lib/{services.lazy → unstable-services.lazy}/private_devbox.js +1 -1
  165. package/lib/unstable-services.lazy/private_user_sessions.js +1 -0
  166. package/lib/{services.lazy → unstable-services.lazy}/registry.js +1 -1
  167. package/lib/unstable-services.lazy/testing.js +1 -0
  168. package/lib/unstable-services.lazy/vault.js +1 -0
  169. package/package.json +12 -5
  170. package/src/credentials.ts +84 -40
  171. package/src/errors.ts +24 -0
  172. package/src/index.ts +10 -8
  173. package/src/protocol.ts +27 -26
  174. package/src/services/buildkite_jobs.ts +10 -2
  175. package/src/services/buildkite_queue.ts +12 -4
  176. package/src/services/index.ts +0 -27
  177. package/src/{services → unstable-services}/artifacts.ts +16 -8
  178. package/src/{services → unstable-services}/audit.ts +10 -2
  179. package/src/{services → unstable-services}/bazel.ts +12 -4
  180. package/src/{services → unstable-services}/bazel_cache.ts +10 -2
  181. package/src/{services → unstable-services}/builder.ts +13 -5
  182. package/src/{services → unstable-services}/compute.ts +422 -225
  183. package/src/{services → unstable-services}/compute_command.ts +10 -2
  184. package/src/{services → unstable-services}/compute_observability.ts +12 -4
  185. package/src/{services → unstable-services}/compute_storage.ts +20 -12
  186. package/src/{services → unstable-services}/compute_usage.ts +14 -6
  187. package/src/{services → unstable-services}/egress.ts +13 -5
  188. package/src/{services → unstable-services}/experimental_compute_reservation.ts +44 -33
  189. package/src/{services → unstable-services}/experimental_remote_results.ts +15 -7
  190. package/src/{services → unstable-services}/github_image.ts +10 -2
  191. package/src/{services → unstable-services}/github_jobs.ts +11 -3
  192. package/src/{services → unstable-services}/github_profile.ts +14 -6
  193. package/src/{services → unstable-services}/gradle_cache.ts +11 -3
  194. package/src/{services → unstable-services}/httpcache.ts +11 -3
  195. package/src/{services → unstable-services}/iam_tenant.ts +524 -159
  196. package/src/{services → unstable-services}/iam_tenant_membership.ts +11 -3
  197. package/src/{services → unstable-services}/iam_token.ts +17 -9
  198. package/src/{services → unstable-services}/image.ts +14 -6
  199. package/src/unstable-services/index.ts +28 -0
  200. package/src/{services → unstable-services}/private_devbox.ts +82 -43
  201. package/src/{services → unstable-services}/private_user_sessions.ts +13 -5
  202. package/src/{services → unstable-services}/registry.ts +22 -14
  203. package/src/{services → unstable-services}/testing.ts +12 -4
  204. package/src/{services → unstable-services}/vault.ts +14 -6
  205. package/lib/index.lazy.js +0 -7
  206. package/lib/index.lazy.js.map +0 -1
  207. package/lib/services/artifacts.d.ts.map +0 -1
  208. package/lib/services/artifacts.js +0 -2
  209. package/lib/services/artifacts.js.map +0 -1
  210. package/lib/services/audit.d.ts.map +0 -1
  211. package/lib/services/audit.js +0 -2
  212. package/lib/services/audit.js.map +0 -1
  213. package/lib/services/bazel.d.ts.map +0 -1
  214. package/lib/services/bazel.js +0 -2
  215. package/lib/services/bazel.js.map +0 -1
  216. package/lib/services/bazel_cache.d.ts.map +0 -1
  217. package/lib/services/bazel_cache.js +0 -2
  218. package/lib/services/bazel_cache.js.map +0 -1
  219. package/lib/services/builder.d.ts.map +0 -1
  220. package/lib/services/builder.js +0 -2
  221. package/lib/services/builder.js.map +0 -1
  222. package/lib/services/compute.d.ts.map +0 -1
  223. package/lib/services/compute.js +0 -43
  224. package/lib/services/compute.js.map +0 -1
  225. package/lib/services/compute_command.d.ts.map +0 -1
  226. package/lib/services/compute_command.js +0 -2
  227. package/lib/services/compute_command.js.map +0 -1
  228. package/lib/services/compute_observability.d.ts.map +0 -1
  229. package/lib/services/compute_observability.js +0 -2
  230. package/lib/services/compute_observability.js.map +0 -1
  231. package/lib/services/compute_storage.d.ts.map +0 -1
  232. package/lib/services/compute_storage.js +0 -33
  233. package/lib/services/compute_storage.js.map +0 -1
  234. package/lib/services/compute_usage.d.ts.map +0 -1
  235. package/lib/services/compute_usage.js +0 -2
  236. package/lib/services/compute_usage.js.map +0 -1
  237. package/lib/services/egress.d.ts.map +0 -1
  238. package/lib/services/egress.js +0 -2
  239. package/lib/services/egress.js.map +0 -1
  240. package/lib/services/experimental_compute_reservation.d.ts.map +0 -1
  241. package/lib/services/experimental_compute_reservation.js +0 -23
  242. package/lib/services/experimental_compute_reservation.js.map +0 -1
  243. package/lib/services/experimental_remote_results.d.ts.map +0 -1
  244. package/lib/services/experimental_remote_results.js +0 -2
  245. package/lib/services/experimental_remote_results.js.map +0 -1
  246. package/lib/services/github_image.d.ts.map +0 -1
  247. package/lib/services/github_image.js +0 -2
  248. package/lib/services/github_image.js.map +0 -1
  249. package/lib/services/github_jobs.d.ts.map +0 -1
  250. package/lib/services/github_jobs.js +0 -2
  251. package/lib/services/github_jobs.js.map +0 -1
  252. package/lib/services/github_profile.d.ts.map +0 -1
  253. package/lib/services/github_profile.js +0 -2
  254. package/lib/services/github_profile.js.map +0 -1
  255. package/lib/services/gradle_cache.d.ts.map +0 -1
  256. package/lib/services/gradle_cache.js +0 -2
  257. package/lib/services/gradle_cache.js.map +0 -1
  258. package/lib/services/httpcache.d.ts.map +0 -1
  259. package/lib/services/httpcache.js +0 -2
  260. package/lib/services/httpcache.js.map +0 -1
  261. package/lib/services/iam_tenant.d.ts.map +0 -1
  262. package/lib/services/iam_tenant.js +0 -39
  263. package/lib/services/iam_tenant.js.map +0 -1
  264. package/lib/services/iam_tenant_membership.d.ts.map +0 -1
  265. package/lib/services/iam_tenant_membership.js +0 -2
  266. package/lib/services/iam_tenant_membership.js.map +0 -1
  267. package/lib/services/iam_token.d.ts.map +0 -1
  268. package/lib/services/iam_token.js +0 -2
  269. package/lib/services/iam_token.js.map +0 -1
  270. package/lib/services/image.d.ts.map +0 -1
  271. package/lib/services/image.js +0 -2
  272. package/lib/services/image.js.map +0 -1
  273. package/lib/services/private_devbox.d.ts.map +0 -1
  274. package/lib/services/private_devbox.js +0 -81
  275. package/lib/services/private_devbox.js.map +0 -1
  276. package/lib/services/private_user_sessions.d.ts.map +0 -1
  277. package/lib/services/private_user_sessions.js +0 -2
  278. package/lib/services/private_user_sessions.js.map +0 -1
  279. package/lib/services/registry.d.ts.map +0 -1
  280. package/lib/services/registry.js +0 -34
  281. package/lib/services/registry.js.map +0 -1
  282. package/lib/services/testing.d.ts.map +0 -1
  283. package/lib/services/testing.js +0 -2
  284. package/lib/services/testing.js.map +0 -1
  285. package/lib/services/vault.d.ts.map +0 -1
  286. package/lib/services/vault.js +0 -2
  287. package/lib/services/vault.js.map +0 -1
  288. package/lib/services.lazy/artifacts.js +0 -1
  289. package/lib/services.lazy/audit.js +0 -1
  290. package/lib/services.lazy/bazel.js +0 -1
  291. package/lib/services.lazy/bazel_cache.js +0 -1
  292. package/lib/services.lazy/builder.js +0 -1
  293. package/lib/services.lazy/compute.js +0 -4
  294. package/lib/services.lazy/compute_command.js +0 -1
  295. package/lib/services.lazy/compute_observability.js +0 -1
  296. package/lib/services.lazy/compute_usage.js +0 -1
  297. package/lib/services.lazy/egress.js +0 -1
  298. package/lib/services.lazy/experimental_remote_results.js +0 -1
  299. package/lib/services.lazy/github_image.js +0 -1
  300. package/lib/services.lazy/github_jobs.js +0 -1
  301. package/lib/services.lazy/github_profile.js +0 -1
  302. package/lib/services.lazy/gradle_cache.js +0 -1
  303. package/lib/services.lazy/httpcache.js +0 -1
  304. package/lib/services.lazy/iam_tenant.js +0 -4
  305. package/lib/services.lazy/iam_tenant_membership.js +0 -1
  306. package/lib/services.lazy/iam_token.js +0 -1
  307. package/lib/services.lazy/image.js +0 -1
  308. package/lib/services.lazy/private_user_sessions.js +0 -1
  309. package/lib/services.lazy/testing.js +0 -1
  310. package/lib/services.lazy/vault.js +0 -1
@@ -4,7 +4,7 @@ import * as C from "@distilled.cloud/core/category";
4
4
  import * as S from "@distilled.cloud/core/schema-lite";
5
5
  import * as __L from "@distilled.cloud/core/schema-lite";
6
6
  import type * as Redacted from "effect/Redacted";
7
- import { UnknownNamespaceLabsError } from "../errors.ts";
7
+ import { NamespaceLabsServiceErrors } from "../errors.ts";
8
8
  import { paginateCursor } from "../pagination.ts";
9
9
  import {
10
10
  NamespaceLabsProtocol,
@@ -35,6 +35,7 @@ export class AlreadyExists
35
35
  /*@__PURE__*/ S.TaggedError<AlreadyExists>()("AlreadyExists", {
36
36
  message: S.String,
37
37
  body: S.Unknown,
38
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
38
39
  }).pipe(C.withConflictError),
39
40
  [{ status: 409, body: { "/code": "already_exists" } }],
40
41
  ) {}
@@ -44,6 +45,7 @@ export class FailedPrecondition
44
45
  /*@__PURE__*/ S.TaggedError<FailedPrecondition>()("FailedPrecondition", {
45
46
  message: S.String,
46
47
  body: S.Unknown,
48
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
47
49
  }).pipe(C.withBadRequestError),
48
50
  [{ status: 400, body: { "/code": "failed_precondition" } }],
49
51
  ) {}
@@ -53,6 +55,7 @@ export class InvalidArgument
53
55
  /*@__PURE__*/ S.TaggedError<InvalidArgument>()("InvalidArgument", {
54
56
  message: S.String,
55
57
  body: S.Unknown,
58
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
56
59
  }).pipe(C.withBadRequestError),
57
60
  [{ status: 400, body: { "/code": "invalid_argument" } }],
58
61
  ) {}
@@ -62,6 +65,7 @@ export class NotFound
62
65
  /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
63
66
  message: S.String,
64
67
  body: S.Unknown,
68
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
65
69
  }).pipe(C.withBadRequestError),
66
70
  [{ status: 404 }],
67
71
  ) {}
@@ -71,6 +75,7 @@ export class PermissionDenied
71
75
  /*@__PURE__*/ S.TaggedError<PermissionDenied>()("PermissionDenied", {
72
76
  message: S.String,
73
77
  body: S.Unknown,
78
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
74
79
  }).pipe(C.withAuthError),
75
80
  [{ status: 403 }],
76
81
  ) {}
@@ -80,6 +85,8 @@ export class ResourceExhausted
80
85
  /*@__PURE__*/ S.TaggedError<ResourceExhausted>()("ResourceExhausted", {
81
86
  message: S.String,
82
87
  body: S.Unknown,
88
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
89
+ retryAfter: /*@__PURE__*/ S.optional(S.Duration),
83
90
  }).pipe(C.withThrottlingError),
84
91
  [{ status: 429 }],
85
92
  ) {}
@@ -89,6 +96,7 @@ export class Unauthenticated
89
96
  /*@__PURE__*/ S.TaggedError<Unauthenticated>()("Unauthenticated", {
90
97
  message: S.String,
91
98
  body: S.Unknown,
99
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
92
100
  }).pipe(C.withAuthError),
93
101
  [{ status: 401 }],
94
102
  ) {}
@@ -226,6 +234,14 @@ export interface ServiceSpec {
226
234
  ports?: PortSpecList | undefined;
227
235
  }
228
236
  export type ServiceSpecList = Array<ServiceSpec>;
237
+ export type WorkloadTokenSpecAccessLevel =
238
+ | "ACCESS_LEVEL_UNSPECIFIED"
239
+ | "ACCESS_LEVEL_RESTRICTED"
240
+ | "ACCESS_LEVEL_PERMISSIVE";
241
+ export interface WorkloadTokenSpec {
242
+ /** Tenant policy may restrict this selection at launch. */
243
+ accessLevel?: WorkloadTokenSpecAccessLevel | (string & {}) | undefined;
244
+ }
229
245
  export interface ActivateRequestExperimentalDevinOutposts {
230
246
  connectToken?: string | Redacted.Redacted<string> | undefined;
231
247
  sessionId?: string | undefined;
@@ -293,6 +309,7 @@ export interface CreateRequest2 {
293
309
  instanceEventCallback?: HttpCallbackEndpoint | undefined;
294
310
  persistenceMode?: PersistenceMode | (string & {}) | undefined;
295
311
  services?: ServiceSpecList | undefined;
312
+ workloadToken?: WorkloadTokenSpec | undefined;
296
313
  activate?: boolean | undefined;
297
314
  activateExperimental?: ActivateRequestExperimental | undefined;
298
315
  }
@@ -332,6 +349,7 @@ export interface BlueprintSpecUserOrUid {
332
349
  uid?: number | undefined;
333
350
  user?: string | undefined;
334
351
  }
352
+ export type BlueprintSpecInitSystem = "INIT_SYSTEM_UNKNOWN" | "SYSTEMD";
335
353
  export interface BlueprintSpec {
336
354
  remoteUser?: string | undefined;
337
355
  shell?: string | undefined;
@@ -352,6 +370,8 @@ export interface BlueprintSpec {
352
370
  workspaceDir?: string | undefined;
353
371
  /** Terminal sessions to create at startup. */
354
372
  sessions?: BlueprintSpecSessionSpecList | undefined;
373
+ /** The init system the image runs as PID 1. Honored only for tenants in the devbox.accept_image_init_system experiment. */
374
+ initSystem?: BlueprintSpecInitSystem | (string & {}) | undefined;
355
375
  }
356
376
  export interface DevBoxResolvedImage {
357
377
  id: string;
@@ -417,6 +437,8 @@ export interface DevBox {
417
437
  networkPolicy?: NetworkPolicySpec | undefined;
418
438
  labels: LabelList;
419
439
  versionControl?: VersionControlSpec | undefined;
440
+ /** Creation-time configuration, not an attestation of a running instance's token. Tenant restrictions apply at every launch, including when this is unset. */
441
+ workloadToken?: WorkloadTokenSpec | undefined;
420
442
  }
421
443
  export type AcquireLeaseResponseLeaseOutcome =
422
444
  | "LEASE_OUTCOME_UNSPECIFIED"
@@ -506,6 +528,7 @@ export interface CreateRequest {
506
528
  instanceEventCallback?: HttpCallbackEndpoint | undefined;
507
529
  persistenceMode?: PersistenceMode | (string & {}) | undefined;
508
530
  services?: ServiceSpecList | undefined;
531
+ workloadToken?: WorkloadTokenSpec | undefined;
509
532
  activate?: boolean | undefined;
510
533
  activateExperimental?: ActivateRequestExperimental | undefined;
511
534
  }
@@ -570,6 +593,8 @@ export interface DevboxTemplateSpec {
570
593
  services?: ServiceSpecList | undefined;
571
594
  /** Overrides the image's privileged setting. Unset uses the image default. */
572
595
  privileged?: boolean | undefined;
596
+ /** Uses saved defaults when unspecified on save. Tenant restrictions apply at every launch. */
597
+ workloadToken?: WorkloadTokenSpec | undefined;
573
598
  }
574
599
  /** Transient integration setup values; credentials are never returned. */
575
600
  export interface CreateBlueprintRequestExperimental {
@@ -772,6 +797,7 @@ export interface DevboxDefaults {
772
797
  /** Default persistent volume size in GB applied to new devboxes when the create request doesn't specify a size. Capped at the tenant policy's maximum_volume_size_gb. 0 means use the system default. */
773
798
  volumeSizeGb?: string | undefined;
774
799
  networkPolicy?: NetworkPolicySpec | undefined;
800
+ workloadToken?: WorkloadTokenSpec | undefined;
775
801
  }
776
802
  export interface FetchDefaultsResponse {
777
803
  defaults?: DevboxDefaults | undefined;
@@ -1116,8 +1142,8 @@ export const acquireLease: API.OperationMethod<
1116
1142
  NotFound,
1117
1143
  AlreadyExists,
1118
1144
  ResourceExhausted,
1119
- UnknownNamespaceLabsError,
1120
1145
  ],
1146
+ serviceErrors: NamespaceLabsServiceErrors,
1121
1147
  protocol: NamespaceLabsProtocol,
1122
1148
  retry: Retry.Retry,
1123
1149
  telemetry: TELEMETRY,
@@ -1149,8 +1175,8 @@ export const activate: API.OperationMethod<
1149
1175
  NotFound,
1150
1176
  AlreadyExists,
1151
1177
  ResourceExhausted,
1152
- UnknownNamespaceLabsError,
1153
1178
  ],
1179
+ serviceErrors: NamespaceLabsServiceErrors,
1154
1180
  protocol: NamespaceLabsProtocol,
1155
1181
  retry: Retry.Retry,
1156
1182
  telemetry: TELEMETRY,
@@ -1182,8 +1208,8 @@ export const connectBeginDevinOutpost: API.OperationMethod<
1182
1208
  NotFound,
1183
1209
  AlreadyExists,
1184
1210
  ResourceExhausted,
1185
- UnknownNamespaceLabsError,
1186
1211
  ],
1212
+ serviceErrors: NamespaceLabsServiceErrors,
1187
1213
  protocol: NamespaceLabsProtocol,
1188
1214
  retry: Retry.Retry,
1189
1215
  telemetry: TELEMETRY,
@@ -1215,8 +1241,8 @@ export const create: API.OperationMethod<
1215
1241
  NotFound,
1216
1242
  AlreadyExists,
1217
1243
  ResourceExhausted,
1218
- UnknownNamespaceLabsError,
1219
1244
  ],
1245
+ serviceErrors: NamespaceLabsServiceErrors,
1220
1246
  protocol: NamespaceLabsProtocol,
1221
1247
  retry: Retry.Retry,
1222
1248
  telemetry: TELEMETRY,
@@ -1248,8 +1274,8 @@ export const createBlueprint: API.OperationMethod<
1248
1274
  NotFound,
1249
1275
  AlreadyExists,
1250
1276
  ResourceExhausted,
1251
- UnknownNamespaceLabsError,
1252
1277
  ],
1278
+ serviceErrors: NamespaceLabsServiceErrors,
1253
1279
  protocol: NamespaceLabsProtocol,
1254
1280
  retry: Retry.Retry,
1255
1281
  telemetry: TELEMETRY,
@@ -1281,8 +1307,8 @@ export const createFromBlueprint: API.OperationMethod<
1281
1307
  NotFound,
1282
1308
  AlreadyExists,
1283
1309
  ResourceExhausted,
1284
- UnknownNamespaceLabsError,
1285
1310
  ],
1311
+ serviceErrors: NamespaceLabsServiceErrors,
1286
1312
  protocol: NamespaceLabsProtocol,
1287
1313
  retry: Retry.Retry,
1288
1314
  telemetry: TELEMETRY,
@@ -1298,6 +1324,7 @@ export type CreateFromDevboxError =
1298
1324
  | AlreadyExists
1299
1325
  | ResourceExhausted
1300
1326
  | NamespaceLabsOpError;
1327
+ /** Experimental: this API is not stable and is not ready for production use. */
1301
1328
  export const createFromDevbox: API.OperationMethod<
1302
1329
  CreateFromDevboxRequest,
1303
1330
  CreateFromDevboxResponse,
@@ -1314,8 +1341,8 @@ export const createFromDevbox: API.OperationMethod<
1314
1341
  NotFound,
1315
1342
  AlreadyExists,
1316
1343
  ResourceExhausted,
1317
- UnknownNamespaceLabsError,
1318
1344
  ],
1345
+ serviceErrors: NamespaceLabsServiceErrors,
1319
1346
  protocol: NamespaceLabsProtocol,
1320
1347
  retry: Retry.Retry,
1321
1348
  telemetry: TELEMETRY,
@@ -1348,8 +1375,8 @@ export const createFromTemplate: API.OperationMethod<
1348
1375
  NotFound,
1349
1376
  AlreadyExists,
1350
1377
  ResourceExhausted,
1351
- UnknownNamespaceLabsError,
1352
1378
  ],
1379
+ serviceErrors: NamespaceLabsServiceErrors,
1353
1380
  protocol: NamespaceLabsProtocol,
1354
1381
  retry: Retry.Retry,
1355
1382
  telemetry: TELEMETRY,
@@ -1381,8 +1408,8 @@ export const createIntegration: API.OperationMethod<
1381
1408
  NotFound,
1382
1409
  AlreadyExists,
1383
1410
  ResourceExhausted,
1384
- UnknownNamespaceLabsError,
1385
1411
  ],
1412
+ serviceErrors: NamespaceLabsServiceErrors,
1386
1413
  protocol: NamespaceLabsProtocol,
1387
1414
  retry: Retry.Retry,
1388
1415
  telemetry: TELEMETRY,
@@ -1414,8 +1441,8 @@ export const createRepository: API.OperationMethod<
1414
1441
  NotFound,
1415
1442
  AlreadyExists,
1416
1443
  ResourceExhausted,
1417
- UnknownNamespaceLabsError,
1418
1444
  ],
1445
+ serviceErrors: NamespaceLabsServiceErrors,
1419
1446
  protocol: NamespaceLabsProtocol,
1420
1447
  retry: Retry.Retry,
1421
1448
  telemetry: TELEMETRY,
@@ -1448,8 +1475,8 @@ export const createTemplate: API.OperationMethod<
1448
1475
  NotFound,
1449
1476
  AlreadyExists,
1450
1477
  ResourceExhausted,
1451
- UnknownNamespaceLabsError,
1452
1478
  ],
1479
+ serviceErrors: NamespaceLabsServiceErrors,
1453
1480
  protocol: NamespaceLabsProtocol,
1454
1481
  retry: Retry.Retry,
1455
1482
  telemetry: TELEMETRY,
@@ -1481,8 +1508,8 @@ export const deleteIntegration: API.OperationMethod<
1481
1508
  NotFound,
1482
1509
  AlreadyExists,
1483
1510
  ResourceExhausted,
1484
- UnknownNamespaceLabsError,
1485
1511
  ],
1512
+ serviceErrors: NamespaceLabsServiceErrors,
1486
1513
  protocol: NamespaceLabsProtocol,
1487
1514
  retry: Retry.Retry,
1488
1515
  telemetry: TELEMETRY,
@@ -1514,8 +1541,8 @@ export const describeImage: API.OperationMethod<
1514
1541
  NotFound,
1515
1542
  AlreadyExists,
1516
1543
  ResourceExhausted,
1517
- UnknownNamespaceLabsError,
1518
1544
  ],
1545
+ serviceErrors: NamespaceLabsServiceErrors,
1519
1546
  protocol: NamespaceLabsProtocol,
1520
1547
  retry: Retry.Retry,
1521
1548
  telemetry: TELEMETRY,
@@ -1548,8 +1575,8 @@ export const ensureBlueprint: API.OperationMethod<
1548
1575
  NotFound,
1549
1576
  AlreadyExists,
1550
1577
  ResourceExhausted,
1551
- UnknownNamespaceLabsError,
1552
1578
  ],
1579
+ serviceErrors: NamespaceLabsServiceErrors,
1553
1580
  protocol: NamespaceLabsProtocol,
1554
1581
  retry: Retry.Retry,
1555
1582
  telemetry: TELEMETRY,
@@ -1581,8 +1608,8 @@ export const expire: API.OperationMethod<
1581
1608
  NotFound,
1582
1609
  AlreadyExists,
1583
1610
  ResourceExhausted,
1584
- UnknownNamespaceLabsError,
1585
1611
  ],
1612
+ serviceErrors: NamespaceLabsServiceErrors,
1586
1613
  protocol: NamespaceLabsProtocol,
1587
1614
  retry: Retry.Retry,
1588
1615
  telemetry: TELEMETRY,
@@ -1614,8 +1641,8 @@ export const expireBlueprint: API.OperationMethod<
1614
1641
  NotFound,
1615
1642
  AlreadyExists,
1616
1643
  ResourceExhausted,
1617
- UnknownNamespaceLabsError,
1618
1644
  ],
1645
+ serviceErrors: NamespaceLabsServiceErrors,
1619
1646
  protocol: NamespaceLabsProtocol,
1620
1647
  retry: Retry.Retry,
1621
1648
  telemetry: TELEMETRY,
@@ -1647,8 +1674,8 @@ export const expireImage: API.OperationMethod<
1647
1674
  NotFound,
1648
1675
  AlreadyExists,
1649
1676
  ResourceExhausted,
1650
- UnknownNamespaceLabsError,
1651
1677
  ],
1678
+ serviceErrors: NamespaceLabsServiceErrors,
1652
1679
  protocol: NamespaceLabsProtocol,
1653
1680
  retry: Retry.Retry,
1654
1681
  telemetry: TELEMETRY,
@@ -1681,8 +1708,8 @@ export const expireTemplate: API.OperationMethod<
1681
1708
  NotFound,
1682
1709
  AlreadyExists,
1683
1710
  ResourceExhausted,
1684
- UnknownNamespaceLabsError,
1685
1711
  ],
1712
+ serviceErrors: NamespaceLabsServiceErrors,
1686
1713
  protocol: NamespaceLabsProtocol,
1687
1714
  retry: Retry.Retry,
1688
1715
  telemetry: TELEMETRY,
@@ -1714,8 +1741,8 @@ export const fetch: API.OperationMethod<
1714
1741
  NotFound,
1715
1742
  AlreadyExists,
1716
1743
  ResourceExhausted,
1717
- UnknownNamespaceLabsError,
1718
1744
  ],
1745
+ serviceErrors: NamespaceLabsServiceErrors,
1719
1746
  protocol: NamespaceLabsProtocol,
1720
1747
  retry: Retry.Retry,
1721
1748
  telemetry: TELEMETRY,
@@ -1747,8 +1774,8 @@ export const fetchBlueprint: API.OperationMethod<
1747
1774
  NotFound,
1748
1775
  AlreadyExists,
1749
1776
  ResourceExhausted,
1750
- UnknownNamespaceLabsError,
1751
1777
  ],
1778
+ serviceErrors: NamespaceLabsServiceErrors,
1752
1779
  protocol: NamespaceLabsProtocol,
1753
1780
  retry: Retry.Retry,
1754
1781
  telemetry: TELEMETRY,
@@ -1780,8 +1807,8 @@ export const fetchDefaults: API.OperationMethod<
1780
1807
  NotFound,
1781
1808
  AlreadyExists,
1782
1809
  ResourceExhausted,
1783
- UnknownNamespaceLabsError,
1784
1810
  ],
1811
+ serviceErrors: NamespaceLabsServiceErrors,
1785
1812
  protocol: NamespaceLabsProtocol,
1786
1813
  retry: Retry.Retry,
1787
1814
  telemetry: TELEMETRY,
@@ -1814,8 +1841,8 @@ export const fetchTemplate: API.OperationMethod<
1814
1841
  NotFound,
1815
1842
  AlreadyExists,
1816
1843
  ResourceExhausted,
1817
- UnknownNamespaceLabsError,
1818
1844
  ],
1845
+ serviceErrors: NamespaceLabsServiceErrors,
1819
1846
  protocol: NamespaceLabsProtocol,
1820
1847
  retry: Retry.Retry,
1821
1848
  telemetry: TELEMETRY,
@@ -1847,8 +1874,8 @@ export const getUsage: API.OperationMethod<
1847
1874
  NotFound,
1848
1875
  AlreadyExists,
1849
1876
  ResourceExhausted,
1850
- UnknownNamespaceLabsError,
1851
1877
  ],
1878
+ serviceErrors: NamespaceLabsServiceErrors,
1852
1879
  protocol: NamespaceLabsProtocol,
1853
1880
  retry: Retry.Retry,
1854
1881
  telemetry: TELEMETRY,
@@ -1880,8 +1907,8 @@ export const inspectImage: API.OperationMethod<
1880
1907
  NotFound,
1881
1908
  AlreadyExists,
1882
1909
  ResourceExhausted,
1883
- UnknownNamespaceLabsError,
1884
1910
  ],
1911
+ serviceErrors: NamespaceLabsServiceErrors,
1885
1912
  protocol: NamespaceLabsProtocol,
1886
1913
  retry: Retry.Retry,
1887
1914
  telemetry: TELEMETRY,
@@ -1915,8 +1942,8 @@ export const list: API.PaginatedOperationMethod<
1915
1942
  NotFound,
1916
1943
  AlreadyExists,
1917
1944
  ResourceExhausted,
1918
- UnknownNamespaceLabsError,
1919
1945
  ],
1946
+ serviceErrors: NamespaceLabsServiceErrors,
1920
1947
  protocol: NamespaceLabsProtocol,
1921
1948
  retry: Retry.Retry,
1922
1949
  telemetry: TELEMETRY,
@@ -1958,8 +1985,8 @@ export const listBlueprints: API.PaginatedOperationMethod<
1958
1985
  NotFound,
1959
1986
  AlreadyExists,
1960
1987
  ResourceExhausted,
1961
- UnknownNamespaceLabsError,
1962
1988
  ],
1989
+ serviceErrors: NamespaceLabsServiceErrors,
1963
1990
  protocol: NamespaceLabsProtocol,
1964
1991
  retry: Retry.Retry,
1965
1992
  telemetry: TELEMETRY,
@@ -1999,8 +2026,8 @@ export const listComposableFeatures: API.OperationMethod<
1999
2026
  NotFound,
2000
2027
  AlreadyExists,
2001
2028
  ResourceExhausted,
2002
- UnknownNamespaceLabsError,
2003
2029
  ],
2030
+ serviceErrors: NamespaceLabsServiceErrors,
2004
2031
  protocol: NamespaceLabsProtocol,
2005
2032
  retry: Retry.Retry,
2006
2033
  telemetry: TELEMETRY,
@@ -2034,8 +2061,8 @@ export const listImages: API.PaginatedOperationMethod<
2034
2061
  NotFound,
2035
2062
  AlreadyExists,
2036
2063
  ResourceExhausted,
2037
- UnknownNamespaceLabsError,
2038
2064
  ],
2065
+ serviceErrors: NamespaceLabsServiceErrors,
2039
2066
  protocol: NamespaceLabsProtocol,
2040
2067
  retry: Retry.Retry,
2041
2068
  telemetry: TELEMETRY,
@@ -2075,8 +2102,8 @@ export const listIntegrations: API.OperationMethod<
2075
2102
  NotFound,
2076
2103
  AlreadyExists,
2077
2104
  ResourceExhausted,
2078
- UnknownNamespaceLabsError,
2079
2105
  ],
2106
+ serviceErrors: NamespaceLabsServiceErrors,
2080
2107
  protocol: NamespaceLabsProtocol,
2081
2108
  retry: Retry.Retry,
2082
2109
  telemetry: TELEMETRY,
@@ -2108,8 +2135,8 @@ export const listSnapshots: API.OperationMethod<
2108
2135
  NotFound,
2109
2136
  AlreadyExists,
2110
2137
  ResourceExhausted,
2111
- UnknownNamespaceLabsError,
2112
2138
  ],
2139
+ serviceErrors: NamespaceLabsServiceErrors,
2113
2140
  protocol: NamespaceLabsProtocol,
2114
2141
  retry: Retry.Retry,
2115
2142
  telemetry: TELEMETRY,
@@ -2144,8 +2171,8 @@ export const listTemplates: API.PaginatedOperationMethod<
2144
2171
  NotFound,
2145
2172
  AlreadyExists,
2146
2173
  ResourceExhausted,
2147
- UnknownNamespaceLabsError,
2148
2174
  ],
2175
+ serviceErrors: NamespaceLabsServiceErrors,
2149
2176
  protocol: NamespaceLabsProtocol,
2150
2177
  retry: Retry.Retry,
2151
2178
  telemetry: TELEMETRY,
@@ -2185,8 +2212,8 @@ export const metadata: API.OperationMethod<
2185
2212
  NotFound,
2186
2213
  AlreadyExists,
2187
2214
  ResourceExhausted,
2188
- UnknownNamespaceLabsError,
2189
2215
  ],
2216
+ serviceErrors: NamespaceLabsServiceErrors,
2190
2217
  protocol: NamespaceLabsProtocol,
2191
2218
  retry: Retry.Retry,
2192
2219
  telemetry: TELEMETRY,
@@ -2218,8 +2245,8 @@ export const ping: API.OperationMethod<
2218
2245
  NotFound,
2219
2246
  AlreadyExists,
2220
2247
  ResourceExhausted,
2221
- UnknownNamespaceLabsError,
2222
2248
  ],
2249
+ serviceErrors: NamespaceLabsServiceErrors,
2223
2250
  protocol: NamespaceLabsProtocol,
2224
2251
  retry: Retry.Retry,
2225
2252
  telemetry: TELEMETRY,
@@ -2251,8 +2278,8 @@ export const registerComposableFeature: API.OperationMethod<
2251
2278
  NotFound,
2252
2279
  AlreadyExists,
2253
2280
  ResourceExhausted,
2254
- UnknownNamespaceLabsError,
2255
2281
  ],
2282
+ serviceErrors: NamespaceLabsServiceErrors,
2256
2283
  protocol: NamespaceLabsProtocol,
2257
2284
  retry: Retry.Retry,
2258
2285
  telemetry: TELEMETRY,
@@ -2284,8 +2311,8 @@ export const releaseLease: API.OperationMethod<
2284
2311
  NotFound,
2285
2312
  AlreadyExists,
2286
2313
  ResourceExhausted,
2287
- UnknownNamespaceLabsError,
2288
2314
  ],
2315
+ serviceErrors: NamespaceLabsServiceErrors,
2289
2316
  protocol: NamespaceLabsProtocol,
2290
2317
  retry: Retry.Retry,
2291
2318
  telemetry: TELEMETRY,
@@ -2317,8 +2344,8 @@ export const removeComposableFeature: API.OperationMethod<
2317
2344
  NotFound,
2318
2345
  AlreadyExists,
2319
2346
  ResourceExhausted,
2320
- UnknownNamespaceLabsError,
2321
2347
  ],
2348
+ serviceErrors: NamespaceLabsServiceErrors,
2322
2349
  protocol: NamespaceLabsProtocol,
2323
2350
  retry: Retry.Retry,
2324
2351
  telemetry: TELEMETRY,
@@ -2350,8 +2377,8 @@ export const stop: API.OperationMethod<
2350
2377
  NotFound,
2351
2378
  AlreadyExists,
2352
2379
  ResourceExhausted,
2353
- UnknownNamespaceLabsError,
2354
2380
  ],
2381
+ serviceErrors: NamespaceLabsServiceErrors,
2355
2382
  protocol: NamespaceLabsProtocol,
2356
2383
  retry: Retry.Retry,
2357
2384
  telemetry: TELEMETRY,
@@ -2383,8 +2410,8 @@ export const update: API.OperationMethod<
2383
2410
  NotFound,
2384
2411
  AlreadyExists,
2385
2412
  ResourceExhausted,
2386
- UnknownNamespaceLabsError,
2387
2413
  ],
2414
+ serviceErrors: NamespaceLabsServiceErrors,
2388
2415
  protocol: NamespaceLabsProtocol,
2389
2416
  retry: Retry.Retry,
2390
2417
  telemetry: TELEMETRY,
@@ -2416,8 +2443,8 @@ export const updateBlueprint: API.OperationMethod<
2416
2443
  NotFound,
2417
2444
  AlreadyExists,
2418
2445
  ResourceExhausted,
2419
- UnknownNamespaceLabsError,
2420
2446
  ],
2447
+ serviceErrors: NamespaceLabsServiceErrors,
2421
2448
  protocol: NamespaceLabsProtocol,
2422
2449
  retry: Retry.Retry,
2423
2450
  telemetry: TELEMETRY,
@@ -2449,8 +2476,8 @@ export const updateDefaults: API.OperationMethod<
2449
2476
  NotFound,
2450
2477
  AlreadyExists,
2451
2478
  ResourceExhausted,
2452
- UnknownNamespaceLabsError,
2453
2479
  ],
2480
+ serviceErrors: NamespaceLabsServiceErrors,
2454
2481
  protocol: NamespaceLabsProtocol,
2455
2482
  retry: Retry.Retry,
2456
2483
  telemetry: TELEMETRY,
@@ -2483,8 +2510,8 @@ export const updateTemplate: API.OperationMethod<
2483
2510
  NotFound,
2484
2511
  AlreadyExists,
2485
2512
  ResourceExhausted,
2486
- UnknownNamespaceLabsError,
2487
2513
  ],
2514
+ serviceErrors: NamespaceLabsServiceErrors,
2488
2515
  protocol: NamespaceLabsProtocol,
2489
2516
  retry: Retry.Retry,
2490
2517
  telemetry: TELEMETRY,
@@ -2516,8 +2543,8 @@ export const wireImage: API.OperationMethod<
2516
2543
  NotFound,
2517
2544
  AlreadyExists,
2518
2545
  ResourceExhausted,
2519
- UnknownNamespaceLabsError,
2520
2546
  ],
2547
+ serviceErrors: NamespaceLabsServiceErrors,
2521
2548
  protocol: NamespaceLabsProtocol,
2522
2549
  retry: Retry.Retry,
2523
2550
  telemetry: TELEMETRY,
@@ -2558,6 +2585,7 @@ function __c0(j: number): any {
2558
2585
  instanceEventCallback: S.optional(__S(851, __c53, 3)),
2559
2586
  persistenceMode: S.optional(S.String),
2560
2587
  services: S.optional(__S(870, __c54, 6)),
2588
+ workloadToken: S.optional(__S(940, __c58, 12)),
2561
2589
  activate: S.optional(S.Boolean),
2562
2590
  activateExperimental: S.optional(__S(962, __c60, 2)),
2563
2591
  }).pipe(
@@ -2666,6 +2694,7 @@ function __c3(j: number): any {
2666
2694
  persistenceMode: S.optional(S.String),
2667
2695
  services: S.optional(__S(870, __c54, 6)),
2668
2696
  privileged: S.optional(S.Boolean),
2697
+ workloadToken: S.optional(__S(940, __c58, 12)),
2669
2698
  }),
2670
2699
  ).annotate({ identifier: "DevboxTemplateSpec" });
2671
2700
  case 7:
@@ -3112,6 +3141,7 @@ function __c28(j: number): any {
3112
3141
  enabledFeatures: S.optional(__S(880, __c55, 0)),
3113
3142
  volumeSizeGb: S.optional(S.String),
3114
3143
  networkPolicy: S.optional(__S(939, __c58, 11)),
3144
+ workloadToken: S.optional(__S(940, __c58, 12)),
3115
3145
  }),
3116
3146
  ).annotate({ identifier: "DevboxDefaults" });
3117
3147
  }
@@ -3732,6 +3762,7 @@ function __c52(j: number): any {
3732
3762
  instanceEventCallback: S.optional(__S(851, __c53, 3)),
3733
3763
  persistenceMode: S.optional(S.String),
3734
3764
  services: S.optional(__S(870, __c54, 6)),
3765
+ workloadToken: S.optional(__S(940, __c58, 12)),
3735
3766
  activate: S.optional(S.Boolean),
3736
3767
  activateExperimental: S.optional(__S(962, __c60, 2)),
3737
3768
  }),
@@ -3948,6 +3979,12 @@ function __c58(j: number): any {
3948
3979
  egressPolicy: S.optional(__S(938, __c58, 10)),
3949
3980
  }),
3950
3981
  ).annotate({ identifier: "NetworkPolicySpec" });
3982
+ case 12:
3983
+ return S.suspend(() =>
3984
+ S.Struct({
3985
+ accessLevel: S.optional(S.String),
3986
+ }),
3987
+ ).annotate({ identifier: "WorkloadTokenSpec" });
3951
3988
  }
3952
3989
  }
3953
3990
  function __c59(j: number): any {
@@ -4072,6 +4109,7 @@ function __c62(j: number): any {
4072
4109
  setupDockerClient: S.optional(S.Boolean),
4073
4110
  workspaceDir: S.optional(S.String),
4074
4111
  sessions: S.optional(__S(897, __c56, 1)),
4112
+ initSystem: S.optional(S.String),
4075
4113
  }),
4076
4114
  ).annotate({ identifier: "BlueprintSpec" });
4077
4115
  }
@@ -4146,6 +4184,7 @@ function __c63(j: number): any {
4146
4184
  networkPolicy: S.optional(__S(939, __c58, 11)),
4147
4185
  labels: __S(929, __c58, 1),
4148
4186
  versionControl: S.optional(__S(933, __c58, 5)),
4187
+ workloadToken: S.optional(__S(940, __c58, 12)),
4149
4188
  }),
4150
4189
  ).annotate({ identifier: "DevBox" });
4151
4190
  }
@@ -4,7 +4,7 @@ import * as C from "@distilled.cloud/core/category";
4
4
  import * as S from "@distilled.cloud/core/schema-lite";
5
5
  import * as __L from "@distilled.cloud/core/schema-lite";
6
6
  import type * as Redacted from "effect/Redacted";
7
- import { UnknownNamespaceLabsError } from "../errors.ts";
7
+ import { NamespaceLabsServiceErrors } from "../errors.ts";
8
8
  import {
9
9
  NamespaceLabsProtocol,
10
10
  type NamespaceLabsOpError,
@@ -34,6 +34,7 @@ export class AlreadyExists
34
34
  /*@__PURE__*/ S.TaggedError<AlreadyExists>()("AlreadyExists", {
35
35
  message: S.String,
36
36
  body: S.Unknown,
37
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
37
38
  }).pipe(C.withConflictError),
38
39
  [{ status: 409, body: { "/code": "already_exists" } }],
39
40
  ) {}
@@ -43,6 +44,7 @@ export class FailedPrecondition
43
44
  /*@__PURE__*/ S.TaggedError<FailedPrecondition>()("FailedPrecondition", {
44
45
  message: S.String,
45
46
  body: S.Unknown,
47
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
46
48
  }).pipe(C.withBadRequestError),
47
49
  [{ status: 400, body: { "/code": "failed_precondition" } }],
48
50
  ) {}
@@ -52,6 +54,7 @@ export class InvalidArgument
52
54
  /*@__PURE__*/ S.TaggedError<InvalidArgument>()("InvalidArgument", {
53
55
  message: S.String,
54
56
  body: S.Unknown,
57
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
55
58
  }).pipe(C.withBadRequestError),
56
59
  [{ status: 400, body: { "/code": "invalid_argument" } }],
57
60
  ) {}
@@ -61,6 +64,7 @@ export class NotFound
61
64
  /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
62
65
  message: S.String,
63
66
  body: S.Unknown,
67
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
64
68
  }).pipe(C.withBadRequestError),
65
69
  [{ status: 404 }],
66
70
  ) {}
@@ -70,6 +74,7 @@ export class PermissionDenied
70
74
  /*@__PURE__*/ S.TaggedError<PermissionDenied>()("PermissionDenied", {
71
75
  message: S.String,
72
76
  body: S.Unknown,
77
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
73
78
  }).pipe(C.withAuthError),
74
79
  [{ status: 403 }],
75
80
  ) {}
@@ -79,6 +84,8 @@ export class ResourceExhausted
79
84
  /*@__PURE__*/ S.TaggedError<ResourceExhausted>()("ResourceExhausted", {
80
85
  message: S.String,
81
86
  body: S.Unknown,
87
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
88
+ retryAfter: /*@__PURE__*/ S.optional(S.Duration),
82
89
  }).pipe(C.withThrottlingError),
83
90
  [{ status: 429 }],
84
91
  ) {}
@@ -88,6 +95,7 @@ export class Unauthenticated
88
95
  /*@__PURE__*/ S.TaggedError<Unauthenticated>()("Unauthenticated", {
89
96
  message: S.String,
90
97
  body: S.Unknown,
98
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
91
99
  }).pipe(C.withAuthError),
92
100
  [{ status: 401 }],
93
101
  ) {}
@@ -172,8 +180,8 @@ export const invalidateAllSessions: API.OperationMethod<
172
180
  NotFound,
173
181
  AlreadyExists,
174
182
  ResourceExhausted,
175
- UnknownNamespaceLabsError,
176
183
  ],
184
+ serviceErrors: NamespaceLabsServiceErrors,
177
185
  protocol: NamespaceLabsProtocol,
178
186
  retry: Retry.Retry,
179
187
  telemetry: TELEMETRY,
@@ -205,8 +213,8 @@ export const invalidateSession: API.OperationMethod<
205
213
  NotFound,
206
214
  AlreadyExists,
207
215
  ResourceExhausted,
208
- UnknownNamespaceLabsError,
209
216
  ],
217
+ serviceErrors: NamespaceLabsServiceErrors,
210
218
  protocol: NamespaceLabsProtocol,
211
219
  retry: Retry.Retry,
212
220
  telemetry: TELEMETRY,
@@ -238,8 +246,8 @@ export const issueTenantTokenFromSession: API.OperationMethod<
238
246
  NotFound,
239
247
  AlreadyExists,
240
248
  ResourceExhausted,
241
- UnknownNamespaceLabsError,
242
249
  ],
250
+ serviceErrors: NamespaceLabsServiceErrors,
243
251
  protocol: NamespaceLabsProtocol,
244
252
  retry: Retry.Retry,
245
253
  telemetry: TELEMETRY,
@@ -271,8 +279,8 @@ export const listSessions: API.OperationMethod<
271
279
  NotFound,
272
280
  AlreadyExists,
273
281
  ResourceExhausted,
274
- UnknownNamespaceLabsError,
275
282
  ],
283
+ serviceErrors: NamespaceLabsServiceErrors,
276
284
  protocol: NamespaceLabsProtocol,
277
285
  retry: Retry.Retry,
278
286
  telemetry: TELEMETRY,