@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 {
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
  ) {}
@@ -182,8 +190,8 @@ export interface CreateInstanceRequestFeatureConfiguration {
182
190
  /** Overrides the kubelet --max-pods value. Must be <= 250. */
183
191
  kubernetesMaxPods?: number | undefined;
184
192
  }
185
- export type StringList = Array<string>;
186
193
  export type StringMap = { [key: string]: string | undefined };
194
+ export type StringList = Array<string>;
187
195
  export interface EnvironmentVariable {
188
196
  /** Required: Name under which the environment variable will be available, e.g. "FOOBAR_VAR_NAME". */
189
197
  name?: string | undefined;
@@ -635,6 +643,8 @@ export interface CreateInstanceRequest {
635
643
  documentedPurpose?: string | undefined;
636
644
  /** A set of labels that are attached to the new instance. Instances can be queried based on labels, see also ListInstancesRequest. */
637
645
  labels?: LabelList | undefined;
646
+ /** Descriptive user metadata, separate from labels and attachments. Returned in instance metadata and searchable using ListInstances.annotation_filter. Uses the same name, value, and total-size limits as AnnotationOperation. */
647
+ annotations?: StringMap | undefined;
638
648
  /** Timestamp of when this instance should be released (in UTC). Requested deadlines can be modified by policy. For example, if a workspace is configured with a maximum deadline of 24h, and a instance is created with a requested deadline of 48h, the resulting instance will have a deadline of 24h. When a instance hits its deadline, processes within will receive a `SIGTERM` and have a maximum time to shutdown gracefully before the instance is destroyed. Note: In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. */
639
649
  deadline?: string | undefined;
640
650
  /** Deprecated and ignored; it used to allow creation queueing. */
@@ -711,8 +721,8 @@ export const cancelReservation: API.OperationMethod<
711
721
  NotFound,
712
722
  AlreadyExists,
713
723
  ResourceExhausted,
714
- UnknownNamespaceLabsError,
715
724
  ],
725
+ serviceErrors: NamespaceLabsServiceErrors,
716
726
  protocol: NamespaceLabsProtocol,
717
727
  retry: Retry.Retry,
718
728
  telemetry: TELEMETRY,
@@ -745,8 +755,8 @@ export const describeReservation: API.OperationMethod<
745
755
  NotFound,
746
756
  AlreadyExists,
747
757
  ResourceExhausted,
748
- UnknownNamespaceLabsError,
749
758
  ],
759
+ serviceErrors: NamespaceLabsServiceErrors,
750
760
  protocol: NamespaceLabsProtocol,
751
761
  retry: Retry.Retry,
752
762
  telemetry: TELEMETRY,
@@ -779,8 +789,8 @@ export const listReservations: API.OperationMethod<
779
789
  NotFound,
780
790
  AlreadyExists,
781
791
  ResourceExhausted,
782
- UnknownNamespaceLabsError,
783
792
  ],
793
+ serviceErrors: NamespaceLabsServiceErrors,
784
794
  protocol: NamespaceLabsProtocol,
785
795
  retry: Retry.Retry,
786
796
  telemetry: TELEMETRY,
@@ -813,8 +823,8 @@ export const reserveInstance: API.OperationMethod<
813
823
  NotFound,
814
824
  AlreadyExists,
815
825
  ResourceExhausted,
816
- UnknownNamespaceLabsError,
817
826
  ],
827
+ serviceErrors: NamespaceLabsServiceErrors,
818
828
  protocol: NamespaceLabsProtocol,
819
829
  retry: Retry.Retry,
820
830
  telemetry: TELEMETRY,
@@ -847,8 +857,8 @@ export const updateReservationDeadline: API.OperationMethod<
847
857
  NotFound,
848
858
  AlreadyExists,
849
859
  ResourceExhausted,
850
- UnknownNamespaceLabsError,
851
860
  ],
861
+ serviceErrors: NamespaceLabsServiceErrors,
852
862
  protocol: NamespaceLabsProtocol,
853
863
  retry: Retry.Retry,
854
864
  telemetry: TELEMETRY,
@@ -888,9 +898,9 @@ function __c0(j: number): any {
888
898
  }),
889
899
  ).annotate({ identifier: "CreateInstanceRequestFeatureConfiguration" });
890
900
  case 5:
891
- return S.Array(S.String);
892
- case 6:
893
901
  return S.Record(S.String, S.String);
902
+ case 6:
903
+ return S.Array(S.String);
894
904
  case 7:
895
905
  return S.suspend(() =>
896
906
  S.Struct({
@@ -904,7 +914,7 @@ function __c0(j: number): any {
904
914
  case 9:
905
915
  return S.suspend(() =>
906
916
  S.Struct({
907
- method: S.optional(__S(5, __c0, 5)),
917
+ method: S.optional(__S(6, __c0, 6)),
908
918
  path: S.optional(S.String),
909
919
  }),
910
920
  ).annotate({ identifier: "HttpMatchRuleHttpMatch" });
@@ -970,15 +980,15 @@ function __c0(j: number): any {
970
980
  case 21:
971
981
  return S.suspend(() =>
972
982
  S.Struct({
973
- includeLogs: S.optional(__S(5, __c0, 5)),
983
+ includeLogs: S.optional(__S(6, __c0, 6)),
974
984
  hostMount: S.optional(__S(15, __c0, 15)),
975
985
  privileged: S.optional(S.Boolean),
976
- exportedUnixSockets: S.optional(__S(6, __c0, 6)),
986
+ exportedUnixSockets: S.optional(__S(5, __c0, 5)),
977
987
  imagePullCredentials: S.optional(__S(17, __c0, 17)),
978
988
  pushEphemeralDiskAsImage: S.optional(__S(18, __c0, 18)),
979
- capAdd: S.optional(__S(5, __c0, 5)),
980
- capDrop: S.optional(__S(5, __c0, 5)),
981
- devices: S.optional(__S(5, __c0, 5)),
989
+ capAdd: S.optional(__S(6, __c0, 6)),
990
+ capDrop: S.optional(__S(6, __c0, 6)),
991
+ devices: S.optional(__S(6, __c0, 6)),
982
992
  sidecarVolumes: S.optional(__S(20, __c0, 20)),
983
993
  incrementalLoading: S.optional(S.Boolean),
984
994
  sandboxLike: S.optional(S.Boolean),
@@ -1005,9 +1015,9 @@ function __c0(j: number): any {
1005
1015
  imageRef: S.optional(S.String),
1006
1016
  knownImageId: S.optional(S.String),
1007
1017
  rootFilesystem: S.optional(S.String),
1008
- args: S.optional(__S(5, __c0, 5)),
1009
- entrypoint: S.optional(__S(5, __c0, 5)),
1010
- environment: S.optional(__S(6, __c0, 6)),
1018
+ args: S.optional(__S(6, __c0, 6)),
1019
+ entrypoint: S.optional(__S(6, __c0, 6)),
1020
+ environment: S.optional(__S(5, __c0, 5)),
1011
1021
  envVars: S.optional(__S(8, __c0, 8)),
1012
1022
  dockerSockPath: S.optional(S.String),
1013
1023
  nscStatePath: S.optional(S.String),
@@ -1040,7 +1050,7 @@ function __c0(j: number): any {
1040
1050
  case 28:
1041
1051
  return S.suspend(() =>
1042
1052
  S.Struct({
1043
- includeLogs: S.optional(__S(5, __c0, 5)),
1053
+ includeLogs: S.optional(__S(6, __c0, 6)),
1044
1054
  }),
1045
1055
  ).annotate({ identifier: "ApplicationRequestExperimentalFeatures" });
1046
1056
  case 29:
@@ -1049,8 +1059,8 @@ function __c0(j: number): any {
1049
1059
  name: S.optional(S.String),
1050
1060
  imageRef: S.optional(S.String),
1051
1061
  command: S.optional(S.String),
1052
- args: S.optional(__S(5, __c0, 5)),
1053
- environment: S.optional(__S(6, __c0, 6)),
1062
+ args: S.optional(__S(6, __c0, 6)),
1063
+ environment: S.optional(__S(5, __c0, 5)),
1054
1064
  envVars: S.optional(__S(8, __c0, 8)),
1055
1065
  workloadType: S.optional(S.String),
1056
1066
  experimental: S.optional(__S(28, __c0, 28)),
@@ -1076,7 +1086,7 @@ function __c1(j: number): any {
1076
1086
  S.Struct({
1077
1087
  name: S.optional(S.String),
1078
1088
  runtimeType: S.optional(S.String),
1079
- addToPath: S.optional(__S(5, __c0, 5)),
1089
+ addToPath: S.optional(__S(6, __c0, 6)),
1080
1090
  binaryName: S.optional(S.String),
1081
1091
  root: S.optional(S.String),
1082
1092
  }),
@@ -1124,8 +1134,8 @@ function __c1(j: number): any {
1124
1134
  return S.suspend(() =>
1125
1135
  S.Struct({
1126
1136
  command: S.optional(S.String),
1127
- args: S.optional(__S(5, __c0, 5)),
1128
- environment: S.optional(__S(6, __c0, 6)),
1137
+ args: S.optional(__S(6, __c0, 6)),
1138
+ environment: S.optional(__S(5, __c0, 5)),
1129
1139
  }),
1130
1140
  ).annotate({ identifier: "CreateInstanceRequestExperimentalFeaturesHookCommand" });
1131
1141
  case 11:
@@ -1148,7 +1158,7 @@ function __c1(j: number): any {
1148
1158
  case 14:
1149
1159
  return S.suspend(() =>
1150
1160
  S.Struct({
1151
- privateFeature: S.optional(__S(5, __c0, 5)),
1161
+ privateFeature: S.optional(__S(6, __c0, 6)),
1152
1162
  disks: S.optional(__S(32, __c1, 0)),
1153
1163
  containerdShims: S.optional(__S(34, __c1, 2)),
1154
1164
  tlsBackedPorts: S.optional(__S(36, __c1, 4)),
@@ -1157,13 +1167,13 @@ function __c1(j: number): any {
1157
1167
  volumes: S.optional(__S(23, __c0, 23)),
1158
1168
  ensureDirectory: S.optional(__S(40, __c1, 8)),
1159
1169
  uniqueTag: S.optional(S.String),
1160
- exportedUnixSockets: S.optional(__S(6, __c0, 6)),
1170
+ exportedUnixSockets: S.optional(__S(5, __c0, 5)),
1161
1171
  containerCache: S.optional(__S(41, __c1, 9)),
1162
1172
  preStartHook: S.optional(__S(44, __c1, 12)),
1163
1173
  preShutdownHook: S.optional(__S(44, __c1, 12)),
1164
- authorizedSshKeys: S.optional(__S(5, __c0, 5)),
1174
+ authorizedSshKeys: S.optional(__S(6, __c0, 6)),
1165
1175
  macosBaseImageId: S.optional(S.String),
1166
- internal: S.optional(__S(6, __c0, 6)),
1176
+ internal: S.optional(__S(5, __c0, 5)),
1167
1177
  nestedVirtualization: S.optional(S.Boolean),
1168
1178
  prometheusMetricsSink: S.optional(__S(45, __c1, 13)),
1169
1179
  withConfiguration: S.optional(S.String),
@@ -1244,7 +1254,7 @@ function __c1(j: number): any {
1244
1254
  S.Struct({
1245
1255
  resourceType: S.optional(S.String),
1246
1256
  resourceId: S.optional(S.String),
1247
- actions: S.optional(__S(5, __c0, 5)),
1257
+ actions: S.optional(__S(6, __c0, 6)),
1248
1258
  }),
1249
1259
  ).annotate({ identifier: "Permission" });
1250
1260
  case 27:
@@ -1252,7 +1262,7 @@ function __c1(j: number): any {
1252
1262
  case 28:
1253
1263
  return S.suspend(() =>
1254
1264
  S.Struct({
1255
- matchDomains: S.optional(__S(5, __c0, 5)),
1265
+ matchDomains: S.optional(__S(6, __c0, 6)),
1256
1266
  }),
1257
1267
  ).annotate({ identifier: "EgressPolicySpecMatcher" });
1258
1268
  case 29:
@@ -1302,8 +1312,8 @@ function __c2(j: number): any {
1302
1312
  mode: S.optional(S.String),
1303
1313
  deepPacketInspection: S.optional(S.Boolean),
1304
1314
  rules: S.optional(__S(66, __c2, 2)),
1305
- additionalRulesets: S.optional(__S(5, __c0, 5)),
1306
- allowedEgressDomains: S.optional(__S(5, __c0, 5)),
1315
+ additionalRulesets: S.optional(__S(6, __c0, 6)),
1316
+ allowedEgressDomains: S.optional(__S(6, __c0, 6)),
1307
1317
  }),
1308
1318
  ).annotate({ identifier: "EgressPolicySpec" });
1309
1319
  case 4:
@@ -1321,10 +1331,11 @@ function __c2(j: number): any {
1321
1331
  featureConfiguration: S.optional(__S(4, __c0, 4)),
1322
1332
  documentedPurpose: S.optional(S.String),
1323
1333
  labels: S.optional(__S(1, __c0, 1)),
1334
+ annotations: S.optional(__S(5, __c0, 5)),
1324
1335
  deadline: S.optional(S.String),
1325
1336
  interactive: S.optional(S.Boolean),
1326
1337
  region: S.optional(S.String),
1327
- placement: S.optional(__S(5, __c0, 5)),
1338
+ placement: S.optional(__S(6, __c0, 6)),
1328
1339
  containers: S.optional(__S(25, __c0, 25)),
1329
1340
  ingresses: S.optional(__S(27, __c0, 27)),
1330
1341
  ingressBaseDomain: S.optional(S.String),
@@ -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
  ) {}
@@ -516,8 +524,8 @@ export const downloadPrepare: API.OperationMethod<
516
524
  NotFound,
517
525
  AlreadyExists,
518
526
  ResourceExhausted,
519
- UnknownNamespaceLabsError,
520
527
  ],
528
+ serviceErrors: NamespaceLabsServiceErrors,
521
529
  protocol: NamespaceLabsProtocol,
522
530
  retry: Retry.Retry,
523
531
  telemetry: TELEMETRY,
@@ -550,8 +558,8 @@ export const expireResult: API.OperationMethod<
550
558
  NotFound,
551
559
  AlreadyExists,
552
560
  ResourceExhausted,
553
- UnknownNamespaceLabsError,
554
561
  ],
562
+ serviceErrors: NamespaceLabsServiceErrors,
555
563
  protocol: NamespaceLabsProtocol,
556
564
  retry: Retry.Retry,
557
565
  telemetry: TELEMETRY,
@@ -584,8 +592,8 @@ export const fetchResult: API.OperationMethod<
584
592
  NotFound,
585
593
  AlreadyExists,
586
594
  ResourceExhausted,
587
- UnknownNamespaceLabsError,
588
595
  ],
596
+ serviceErrors: NamespaceLabsServiceErrors,
589
597
  protocol: NamespaceLabsProtocol,
590
598
  retry: Retry.Retry,
591
599
  telemetry: TELEMETRY,
@@ -618,8 +626,8 @@ export const finalizeUploadResult: API.OperationMethod<
618
626
  NotFound,
619
627
  AlreadyExists,
620
628
  ResourceExhausted,
621
- UnknownNamespaceLabsError,
622
629
  ],
630
+ serviceErrors: NamespaceLabsServiceErrors,
623
631
  protocol: NamespaceLabsProtocol,
624
632
  retry: Retry.Retry,
625
633
  telemetry: TELEMETRY,
@@ -654,8 +662,8 @@ export const listResults: API.PaginatedOperationMethod<
654
662
  NotFound,
655
663
  AlreadyExists,
656
664
  ResourceExhausted,
657
- UnknownNamespaceLabsError,
658
665
  ],
666
+ serviceErrors: NamespaceLabsServiceErrors,
659
667
  protocol: NamespaceLabsProtocol,
660
668
  retry: Retry.Retry,
661
669
  telemetry: TELEMETRY,
@@ -696,8 +704,8 @@ export const prepareUploadResult: API.OperationMethod<
696
704
  NotFound,
697
705
  AlreadyExists,
698
706
  ResourceExhausted,
699
- UnknownNamespaceLabsError,
700
707
  ],
708
+ serviceErrors: NamespaceLabsServiceErrors,
701
709
  protocol: NamespaceLabsProtocol,
702
710
  retry: Retry.Retry,
703
711
  telemetry: TELEMETRY,
@@ -3,7 +3,7 @@ import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (buf.build/namespace/cloud -> smithy). Do not edit.
4
4
  import * as S from "@distilled.cloud/core/schema-lite";
5
5
  import * as __L from "@distilled.cloud/core/schema-lite";
6
- import { UnknownNamespaceLabsError } from "../errors.ts";
6
+ import { NamespaceLabsServiceErrors } from "../errors.ts";
7
7
  import {
8
8
  NamespaceLabsProtocol,
9
9
  type NamespaceLabsOpError,
@@ -33,6 +33,7 @@ export class AlreadyExists
33
33
  /*@__PURE__*/ S.TaggedError<AlreadyExists>()("AlreadyExists", {
34
34
  message: S.String,
35
35
  body: S.Unknown,
36
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
36
37
  }).pipe(C.withConflictError),
37
38
  [{ status: 409, body: { "/code": "already_exists" } }],
38
39
  ) {}
@@ -42,6 +43,7 @@ export class FailedPrecondition
42
43
  /*@__PURE__*/ S.TaggedError<FailedPrecondition>()("FailedPrecondition", {
43
44
  message: S.String,
44
45
  body: S.Unknown,
46
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
45
47
  }).pipe(C.withBadRequestError),
46
48
  [{ status: 400, body: { "/code": "failed_precondition" } }],
47
49
  ) {}
@@ -51,6 +53,7 @@ export class InvalidArgument
51
53
  /*@__PURE__*/ S.TaggedError<InvalidArgument>()("InvalidArgument", {
52
54
  message: S.String,
53
55
  body: S.Unknown,
56
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
54
57
  }).pipe(C.withBadRequestError),
55
58
  [{ status: 400, body: { "/code": "invalid_argument" } }],
56
59
  ) {}
@@ -60,6 +63,7 @@ export class NotFound
60
63
  /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
61
64
  message: S.String,
62
65
  body: S.Unknown,
66
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
63
67
  }).pipe(C.withBadRequestError),
64
68
  [{ status: 404 }],
65
69
  ) {}
@@ -69,6 +73,7 @@ export class PermissionDenied
69
73
  /*@__PURE__*/ S.TaggedError<PermissionDenied>()("PermissionDenied", {
70
74
  message: S.String,
71
75
  body: S.Unknown,
76
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
72
77
  }).pipe(C.withAuthError),
73
78
  [{ status: 403 }],
74
79
  ) {}
@@ -78,6 +83,8 @@ export class ResourceExhausted
78
83
  /*@__PURE__*/ S.TaggedError<ResourceExhausted>()("ResourceExhausted", {
79
84
  message: S.String,
80
85
  body: S.Unknown,
86
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
87
+ retryAfter: /*@__PURE__*/ S.optional(S.Duration),
81
88
  }).pipe(C.withThrottlingError),
82
89
  [{ status: 429 }],
83
90
  ) {}
@@ -87,6 +94,7 @@ export class Unauthenticated
87
94
  /*@__PURE__*/ S.TaggedError<Unauthenticated>()("Unauthenticated", {
88
95
  message: S.String,
89
96
  body: S.Unknown,
97
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
90
98
  }).pipe(C.withAuthError),
91
99
  [{ status: 401 }],
92
100
  ) {}
@@ -193,8 +201,8 @@ export const listBaseImages: API.OperationMethod<
193
201
  NotFound,
194
202
  AlreadyExists,
195
203
  ResourceExhausted,
196
- UnknownNamespaceLabsError,
197
204
  ],
205
+ serviceErrors: NamespaceLabsServiceErrors,
198
206
  protocol: NamespaceLabsProtocol,
199
207
  retry: Retry.Retry,
200
208
  telemetry: TELEMETRY,
@@ -3,7 +3,7 @@ import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (buf.build/namespace/cloud -> smithy). Do not edit.
4
4
  import * as S from "@distilled.cloud/core/schema-lite";
5
5
  import * as __L from "@distilled.cloud/core/schema-lite";
6
- import { UnknownNamespaceLabsError } from "../errors.ts";
6
+ import { NamespaceLabsServiceErrors } from "../errors.ts";
7
7
  import { paginateCursor } from "../pagination.ts";
8
8
  import {
9
9
  NamespaceLabsProtocol,
@@ -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
  ) {}
@@ -212,8 +220,8 @@ export const describeJob: API.OperationMethod<
212
220
  NotFound,
213
221
  AlreadyExists,
214
222
  ResourceExhausted,
215
- UnknownNamespaceLabsError,
216
223
  ],
224
+ serviceErrors: NamespaceLabsServiceErrors,
217
225
  protocol: NamespaceLabsProtocol,
218
226
  retry: Retry.Retry,
219
227
  telemetry: TELEMETRY,
@@ -248,8 +256,8 @@ export const listJobs: API.PaginatedOperationMethod<
248
256
  NotFound,
249
257
  AlreadyExists,
250
258
  ResourceExhausted,
251
- UnknownNamespaceLabsError,
252
259
  ],
260
+ serviceErrors: NamespaceLabsServiceErrors,
253
261
  protocol: NamespaceLabsProtocol,
254
262
  retry: Retry.Retry,
255
263
  telemetry: TELEMETRY,
@@ -3,7 +3,7 @@ import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (buf.build/namespace/cloud -> smithy). Do not edit.
4
4
  import * as S from "@distilled.cloud/core/schema-lite";
5
5
  import * as __L from "@distilled.cloud/core/schema-lite";
6
- import { UnknownNamespaceLabsError } from "../errors.ts";
6
+ import { NamespaceLabsServiceErrors } from "../errors.ts";
7
7
  import {
8
8
  NamespaceLabsProtocol,
9
9
  type NamespaceLabsOpError,
@@ -33,6 +33,7 @@ export class AlreadyExists
33
33
  /*@__PURE__*/ S.TaggedError<AlreadyExists>()("AlreadyExists", {
34
34
  message: S.String,
35
35
  body: S.Unknown,
36
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
36
37
  }).pipe(C.withConflictError),
37
38
  [{ status: 409, body: { "/code": "already_exists" } }],
38
39
  ) {}
@@ -42,6 +43,7 @@ export class FailedPrecondition
42
43
  /*@__PURE__*/ S.TaggedError<FailedPrecondition>()("FailedPrecondition", {
43
44
  message: S.String,
44
45
  body: S.Unknown,
46
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
45
47
  }).pipe(C.withBadRequestError),
46
48
  [{ status: 400, body: { "/code": "failed_precondition" } }],
47
49
  ) {}
@@ -51,6 +53,7 @@ export class InvalidArgument
51
53
  /*@__PURE__*/ S.TaggedError<InvalidArgument>()("InvalidArgument", {
52
54
  message: S.String,
53
55
  body: S.Unknown,
56
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
54
57
  }).pipe(C.withBadRequestError),
55
58
  [{ status: 400, body: { "/code": "invalid_argument" } }],
56
59
  ) {}
@@ -60,6 +63,7 @@ export class NotFound
60
63
  /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
61
64
  message: S.String,
62
65
  body: S.Unknown,
66
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
63
67
  }).pipe(C.withBadRequestError),
64
68
  [{ status: 404 }],
65
69
  ) {}
@@ -69,6 +73,7 @@ export class PermissionDenied
69
73
  /*@__PURE__*/ S.TaggedError<PermissionDenied>()("PermissionDenied", {
70
74
  message: S.String,
71
75
  body: S.Unknown,
76
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
72
77
  }).pipe(C.withAuthError),
73
78
  [{ status: 403 }],
74
79
  ) {}
@@ -78,6 +83,8 @@ export class ResourceExhausted
78
83
  /*@__PURE__*/ S.TaggedError<ResourceExhausted>()("ResourceExhausted", {
79
84
  message: S.String,
80
85
  body: S.Unknown,
86
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
87
+ retryAfter: /*@__PURE__*/ S.optional(S.Duration),
81
88
  }).pipe(C.withThrottlingError),
82
89
  [{ status: 429 }],
83
90
  ) {}
@@ -87,6 +94,7 @@ export class Unauthenticated
87
94
  /*@__PURE__*/ S.TaggedError<Unauthenticated>()("Unauthenticated", {
88
95
  message: S.String,
89
96
  body: S.Unknown,
97
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
90
98
  }).pipe(C.withAuthError),
91
99
  [{ status: 401 }],
92
100
  ) {}
@@ -326,8 +334,8 @@ export const createProfile: API.OperationMethod<
326
334
  NotFound,
327
335
  AlreadyExists,
328
336
  ResourceExhausted,
329
- UnknownNamespaceLabsError,
330
337
  ],
338
+ serviceErrors: NamespaceLabsServiceErrors,
331
339
  protocol: NamespaceLabsProtocol,
332
340
  retry: Retry.Retry,
333
341
  telemetry: TELEMETRY,
@@ -360,8 +368,8 @@ export const deleteProfile: API.OperationMethod<
360
368
  NotFound,
361
369
  AlreadyExists,
362
370
  ResourceExhausted,
363
- UnknownNamespaceLabsError,
364
371
  ],
372
+ serviceErrors: NamespaceLabsServiceErrors,
365
373
  protocol: NamespaceLabsProtocol,
366
374
  retry: Retry.Retry,
367
375
  telemetry: TELEMETRY,
@@ -394,8 +402,8 @@ export const listProfiles: API.OperationMethod<
394
402
  NotFound,
395
403
  AlreadyExists,
396
404
  ResourceExhausted,
397
- UnknownNamespaceLabsError,
398
405
  ],
406
+ serviceErrors: NamespaceLabsServiceErrors,
399
407
  protocol: NamespaceLabsProtocol,
400
408
  retry: Retry.Retry,
401
409
  telemetry: TELEMETRY,
@@ -428,8 +436,8 @@ export const rebuildProfileImage: API.OperationMethod<
428
436
  NotFound,
429
437
  AlreadyExists,
430
438
  ResourceExhausted,
431
- UnknownNamespaceLabsError,
432
439
  ],
440
+ serviceErrors: NamespaceLabsServiceErrors,
433
441
  protocol: NamespaceLabsProtocol,
434
442
  retry: Retry.Retry,
435
443
  telemetry: TELEMETRY,
@@ -462,8 +470,8 @@ export const updateProfile: API.OperationMethod<
462
470
  NotFound,
463
471
  AlreadyExists,
464
472
  ResourceExhausted,
465
- UnknownNamespaceLabsError,
466
473
  ],
474
+ serviceErrors: NamespaceLabsServiceErrors,
467
475
  protocol: NamespaceLabsProtocol,
468
476
  retry: Retry.Retry,
469
477
  telemetry: TELEMETRY,