@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.
- package/README.md +19 -10
- package/lib/.lazy.json +1 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +27 -9
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +26 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts +10 -8
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +11 -7
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/buildkite_jobs.d.ts +8 -0
- package/lib/services/buildkite_jobs.d.ts.map +1 -1
- package/lib/services/buildkite_jobs.js +1 -1
- package/lib/services/buildkite_jobs.js.map +1 -1
- package/lib/services/buildkite_queue.d.ts +8 -0
- package/lib/services/buildkite_queue.d.ts.map +1 -1
- package/lib/services/buildkite_queue.js +1 -1
- package/lib/services/buildkite_queue.js.map +1 -1
- package/lib/services/index.d.ts +0 -27
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +0 -27
- package/lib/services.lazy/index.js +2 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/{services → unstable-services}/artifacts.d.ts +8 -0
- package/lib/unstable-services/artifacts.d.ts.map +1 -0
- package/lib/unstable-services/artifacts.js +2 -0
- package/lib/unstable-services/artifacts.js.map +1 -0
- package/lib/{services → unstable-services}/audit.d.ts +8 -0
- package/lib/unstable-services/audit.d.ts.map +1 -0
- package/lib/unstable-services/audit.js +2 -0
- package/lib/unstable-services/audit.js.map +1 -0
- package/lib/{services → unstable-services}/bazel.d.ts +8 -0
- package/lib/unstable-services/bazel.d.ts.map +1 -0
- package/lib/unstable-services/bazel.js +2 -0
- package/lib/unstable-services/bazel.js.map +1 -0
- package/lib/{services → unstable-services}/bazel_cache.d.ts +8 -0
- package/lib/unstable-services/bazel_cache.d.ts.map +1 -0
- package/lib/unstable-services/bazel_cache.js +2 -0
- package/lib/unstable-services/bazel_cache.js.map +1 -0
- package/lib/{services → unstable-services}/builder.d.ts +8 -0
- package/lib/unstable-services/builder.d.ts.map +1 -0
- package/lib/unstable-services/builder.js +2 -0
- package/lib/unstable-services/builder.js.map +1 -0
- package/lib/{services → unstable-services}/compute.d.ts +67 -0
- package/lib/unstable-services/compute.d.ts.map +1 -0
- package/lib/unstable-services/compute.js +47 -0
- package/lib/unstable-services/compute.js.map +1 -0
- package/lib/{services → unstable-services}/compute_command.d.ts +8 -0
- package/lib/unstable-services/compute_command.d.ts.map +1 -0
- package/lib/unstable-services/compute_command.js +2 -0
- package/lib/unstable-services/compute_command.js.map +1 -0
- package/lib/{services → unstable-services}/compute_observability.d.ts +8 -0
- package/lib/unstable-services/compute_observability.d.ts.map +1 -0
- package/lib/unstable-services/compute_observability.js +2 -0
- package/lib/unstable-services/compute_observability.js.map +1 -0
- package/lib/{services → unstable-services}/compute_storage.d.ts +8 -0
- package/lib/unstable-services/compute_storage.d.ts.map +1 -0
- package/lib/unstable-services/compute_storage.js +33 -0
- package/lib/unstable-services/compute_storage.js.map +1 -0
- package/lib/{services → unstable-services}/compute_usage.d.ts +8 -0
- package/lib/unstable-services/compute_usage.d.ts.map +1 -0
- package/lib/unstable-services/compute_usage.js +2 -0
- package/lib/unstable-services/compute_usage.js.map +1 -0
- package/lib/{services → unstable-services}/egress.d.ts +8 -0
- package/lib/unstable-services/egress.d.ts.map +1 -0
- package/lib/unstable-services/egress.js +2 -0
- package/lib/unstable-services/egress.js.map +1 -0
- package/lib/{services → unstable-services}/experimental_compute_reservation.d.ts +11 -1
- package/lib/unstable-services/experimental_compute_reservation.d.ts.map +1 -0
- package/lib/unstable-services/experimental_compute_reservation.js +23 -0
- package/lib/unstable-services/experimental_compute_reservation.js.map +1 -0
- package/lib/{services → unstable-services}/experimental_remote_results.d.ts +8 -0
- package/lib/unstable-services/experimental_remote_results.d.ts.map +1 -0
- package/lib/unstable-services/experimental_remote_results.js +2 -0
- package/lib/unstable-services/experimental_remote_results.js.map +1 -0
- package/lib/{services → unstable-services}/github_image.d.ts +8 -0
- package/lib/unstable-services/github_image.d.ts.map +1 -0
- package/lib/unstable-services/github_image.js +2 -0
- package/lib/unstable-services/github_image.js.map +1 -0
- package/lib/{services → unstable-services}/github_jobs.d.ts +8 -0
- package/lib/unstable-services/github_jobs.d.ts.map +1 -0
- package/lib/unstable-services/github_jobs.js +2 -0
- package/lib/unstable-services/github_jobs.js.map +1 -0
- package/lib/{services → unstable-services}/github_profile.d.ts +8 -0
- package/lib/unstable-services/github_profile.d.ts.map +1 -0
- package/lib/unstable-services/github_profile.js +2 -0
- package/lib/unstable-services/github_profile.js.map +1 -0
- package/lib/{services → unstable-services}/gradle_cache.d.ts +8 -0
- package/lib/unstable-services/gradle_cache.d.ts.map +1 -0
- package/lib/unstable-services/gradle_cache.js +2 -0
- package/lib/unstable-services/gradle_cache.js.map +1 -0
- package/lib/{services → unstable-services}/httpcache.d.ts +8 -0
- package/lib/unstable-services/httpcache.d.ts.map +1 -0
- package/lib/unstable-services/httpcache.js +2 -0
- package/lib/unstable-services/httpcache.js.map +1 -0
- package/lib/{services → unstable-services}/iam_tenant.d.ts +95 -11
- package/lib/unstable-services/iam_tenant.d.ts.map +1 -0
- package/lib/unstable-services/iam_tenant.js +45 -0
- package/lib/unstable-services/iam_tenant.js.map +1 -0
- package/lib/{services → unstable-services}/iam_tenant_membership.d.ts +8 -0
- package/lib/unstable-services/iam_tenant_membership.d.ts.map +1 -0
- package/lib/unstable-services/iam_tenant_membership.js +2 -0
- package/lib/unstable-services/iam_tenant_membership.js.map +1 -0
- package/lib/{services → unstable-services}/iam_token.d.ts +8 -0
- package/lib/unstable-services/iam_token.d.ts.map +1 -0
- package/lib/unstable-services/iam_token.js +2 -0
- package/lib/unstable-services/iam_token.js.map +1 -0
- package/lib/{services → unstable-services}/image.d.ts +8 -0
- package/lib/unstable-services/image.d.ts.map +1 -0
- package/lib/unstable-services/image.js +2 -0
- package/lib/unstable-services/image.js.map +1 -0
- package/lib/unstable-services/index.d.ts +28 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +27 -0
- package/lib/{services → unstable-services}/private_devbox.d.ts +24 -0
- package/lib/unstable-services/private_devbox.d.ts.map +1 -0
- package/lib/unstable-services/private_devbox.js +81 -0
- package/lib/unstable-services/private_devbox.js.map +1 -0
- package/lib/{services → unstable-services}/private_user_sessions.d.ts +8 -0
- package/lib/unstable-services/private_user_sessions.d.ts.map +1 -0
- package/lib/unstable-services/private_user_sessions.js +2 -0
- package/lib/unstable-services/private_user_sessions.js.map +1 -0
- package/lib/{services → unstable-services}/registry.d.ts +8 -0
- package/lib/unstable-services/registry.d.ts.map +1 -0
- package/lib/unstable-services/registry.js +34 -0
- package/lib/unstable-services/registry.js.map +1 -0
- package/lib/{services → unstable-services}/testing.d.ts +8 -0
- package/lib/unstable-services/testing.d.ts.map +1 -0
- package/lib/unstable-services/testing.js +2 -0
- package/lib/unstable-services/testing.js.map +1 -0
- package/lib/{services → unstable-services}/vault.d.ts +8 -0
- package/lib/unstable-services/vault.d.ts.map +1 -0
- package/lib/unstable-services/vault.js +2 -0
- package/lib/unstable-services/vault.js.map +1 -0
- package/lib/unstable-services.lazy/artifacts.js +1 -0
- package/lib/unstable-services.lazy/audit.js +1 -0
- package/lib/unstable-services.lazy/bazel.js +1 -0
- package/lib/unstable-services.lazy/bazel_cache.js +1 -0
- package/lib/unstable-services.lazy/builder.js +1 -0
- package/lib/unstable-services.lazy/compute.js +4 -0
- package/lib/unstable-services.lazy/compute_command.js +1 -0
- package/lib/unstable-services.lazy/compute_observability.js +1 -0
- package/lib/{services.lazy → unstable-services.lazy}/compute_storage.js +1 -1
- package/lib/unstable-services.lazy/compute_usage.js +1 -0
- package/lib/unstable-services.lazy/egress.js +1 -0
- package/lib/{services.lazy → unstable-services.lazy}/experimental_compute_reservation.js +1 -1
- package/lib/unstable-services.lazy/experimental_remote_results.js +1 -0
- package/lib/unstable-services.lazy/github_image.js +1 -0
- package/lib/unstable-services.lazy/github_jobs.js +1 -0
- package/lib/unstable-services.lazy/github_profile.js +1 -0
- package/lib/unstable-services.lazy/gradle_cache.js +1 -0
- package/lib/unstable-services.lazy/httpcache.js +1 -0
- package/lib/unstable-services.lazy/iam_tenant.js +4 -0
- package/lib/unstable-services.lazy/iam_tenant_membership.js +1 -0
- package/lib/unstable-services.lazy/iam_token.js +1 -0
- package/lib/unstable-services.lazy/image.js +1 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/{services.lazy → unstable-services.lazy}/private_devbox.js +1 -1
- package/lib/unstable-services.lazy/private_user_sessions.js +1 -0
- package/lib/{services.lazy → unstable-services.lazy}/registry.js +1 -1
- package/lib/unstable-services.lazy/testing.js +1 -0
- package/lib/unstable-services.lazy/vault.js +1 -0
- package/package.json +12 -5
- package/src/credentials.ts +84 -40
- package/src/errors.ts +24 -0
- package/src/index.ts +10 -8
- package/src/protocol.ts +27 -26
- package/src/services/buildkite_jobs.ts +10 -2
- package/src/services/buildkite_queue.ts +12 -4
- package/src/services/index.ts +0 -27
- package/src/{services → unstable-services}/artifacts.ts +16 -8
- package/src/{services → unstable-services}/audit.ts +10 -2
- package/src/{services → unstable-services}/bazel.ts +12 -4
- package/src/{services → unstable-services}/bazel_cache.ts +10 -2
- package/src/{services → unstable-services}/builder.ts +13 -5
- package/src/{services → unstable-services}/compute.ts +422 -225
- package/src/{services → unstable-services}/compute_command.ts +10 -2
- package/src/{services → unstable-services}/compute_observability.ts +12 -4
- package/src/{services → unstable-services}/compute_storage.ts +20 -12
- package/src/{services → unstable-services}/compute_usage.ts +14 -6
- package/src/{services → unstable-services}/egress.ts +13 -5
- package/src/{services → unstable-services}/experimental_compute_reservation.ts +44 -33
- package/src/{services → unstable-services}/experimental_remote_results.ts +15 -7
- package/src/{services → unstable-services}/github_image.ts +10 -2
- package/src/{services → unstable-services}/github_jobs.ts +11 -3
- package/src/{services → unstable-services}/github_profile.ts +14 -6
- package/src/{services → unstable-services}/gradle_cache.ts +11 -3
- package/src/{services → unstable-services}/httpcache.ts +11 -3
- package/src/{services → unstable-services}/iam_tenant.ts +524 -159
- package/src/{services → unstable-services}/iam_tenant_membership.ts +11 -3
- package/src/{services → unstable-services}/iam_token.ts +17 -9
- package/src/{services → unstable-services}/image.ts +14 -6
- package/src/unstable-services/index.ts +28 -0
- package/src/{services → unstable-services}/private_devbox.ts +82 -43
- package/src/{services → unstable-services}/private_user_sessions.ts +13 -5
- package/src/{services → unstable-services}/registry.ts +22 -14
- package/src/{services → unstable-services}/testing.ts +12 -4
- package/src/{services → unstable-services}/vault.ts +14 -6
- package/lib/index.lazy.js +0 -7
- package/lib/index.lazy.js.map +0 -1
- package/lib/services/artifacts.d.ts.map +0 -1
- package/lib/services/artifacts.js +0 -2
- package/lib/services/artifacts.js.map +0 -1
- package/lib/services/audit.d.ts.map +0 -1
- package/lib/services/audit.js +0 -2
- package/lib/services/audit.js.map +0 -1
- package/lib/services/bazel.d.ts.map +0 -1
- package/lib/services/bazel.js +0 -2
- package/lib/services/bazel.js.map +0 -1
- package/lib/services/bazel_cache.d.ts.map +0 -1
- package/lib/services/bazel_cache.js +0 -2
- package/lib/services/bazel_cache.js.map +0 -1
- package/lib/services/builder.d.ts.map +0 -1
- package/lib/services/builder.js +0 -2
- package/lib/services/builder.js.map +0 -1
- package/lib/services/compute.d.ts.map +0 -1
- package/lib/services/compute.js +0 -43
- package/lib/services/compute.js.map +0 -1
- package/lib/services/compute_command.d.ts.map +0 -1
- package/lib/services/compute_command.js +0 -2
- package/lib/services/compute_command.js.map +0 -1
- package/lib/services/compute_observability.d.ts.map +0 -1
- package/lib/services/compute_observability.js +0 -2
- package/lib/services/compute_observability.js.map +0 -1
- package/lib/services/compute_storage.d.ts.map +0 -1
- package/lib/services/compute_storage.js +0 -33
- package/lib/services/compute_storage.js.map +0 -1
- package/lib/services/compute_usage.d.ts.map +0 -1
- package/lib/services/compute_usage.js +0 -2
- package/lib/services/compute_usage.js.map +0 -1
- package/lib/services/egress.d.ts.map +0 -1
- package/lib/services/egress.js +0 -2
- package/lib/services/egress.js.map +0 -1
- package/lib/services/experimental_compute_reservation.d.ts.map +0 -1
- package/lib/services/experimental_compute_reservation.js +0 -23
- package/lib/services/experimental_compute_reservation.js.map +0 -1
- package/lib/services/experimental_remote_results.d.ts.map +0 -1
- package/lib/services/experimental_remote_results.js +0 -2
- package/lib/services/experimental_remote_results.js.map +0 -1
- package/lib/services/github_image.d.ts.map +0 -1
- package/lib/services/github_image.js +0 -2
- package/lib/services/github_image.js.map +0 -1
- package/lib/services/github_jobs.d.ts.map +0 -1
- package/lib/services/github_jobs.js +0 -2
- package/lib/services/github_jobs.js.map +0 -1
- package/lib/services/github_profile.d.ts.map +0 -1
- package/lib/services/github_profile.js +0 -2
- package/lib/services/github_profile.js.map +0 -1
- package/lib/services/gradle_cache.d.ts.map +0 -1
- package/lib/services/gradle_cache.js +0 -2
- package/lib/services/gradle_cache.js.map +0 -1
- package/lib/services/httpcache.d.ts.map +0 -1
- package/lib/services/httpcache.js +0 -2
- package/lib/services/httpcache.js.map +0 -1
- package/lib/services/iam_tenant.d.ts.map +0 -1
- package/lib/services/iam_tenant.js +0 -39
- package/lib/services/iam_tenant.js.map +0 -1
- package/lib/services/iam_tenant_membership.d.ts.map +0 -1
- package/lib/services/iam_tenant_membership.js +0 -2
- package/lib/services/iam_tenant_membership.js.map +0 -1
- package/lib/services/iam_token.d.ts.map +0 -1
- package/lib/services/iam_token.js +0 -2
- package/lib/services/iam_token.js.map +0 -1
- package/lib/services/image.d.ts.map +0 -1
- package/lib/services/image.js +0 -2
- package/lib/services/image.js.map +0 -1
- package/lib/services/private_devbox.d.ts.map +0 -1
- package/lib/services/private_devbox.js +0 -81
- package/lib/services/private_devbox.js.map +0 -1
- package/lib/services/private_user_sessions.d.ts.map +0 -1
- package/lib/services/private_user_sessions.js +0 -2
- package/lib/services/private_user_sessions.js.map +0 -1
- package/lib/services/registry.d.ts.map +0 -1
- package/lib/services/registry.js +0 -34
- package/lib/services/registry.js.map +0 -1
- package/lib/services/testing.d.ts.map +0 -1
- package/lib/services/testing.js +0 -2
- package/lib/services/testing.js.map +0 -1
- package/lib/services/vault.d.ts.map +0 -1
- package/lib/services/vault.js +0 -2
- package/lib/services/vault.js.map +0 -1
- package/lib/services.lazy/artifacts.js +0 -1
- package/lib/services.lazy/audit.js +0 -1
- package/lib/services.lazy/bazel.js +0 -1
- package/lib/services.lazy/bazel_cache.js +0 -1
- package/lib/services.lazy/builder.js +0 -1
- package/lib/services.lazy/compute.js +0 -4
- package/lib/services.lazy/compute_command.js +0 -1
- package/lib/services.lazy/compute_observability.js +0 -1
- package/lib/services.lazy/compute_usage.js +0 -1
- package/lib/services.lazy/egress.js +0 -1
- package/lib/services.lazy/experimental_remote_results.js +0 -1
- package/lib/services.lazy/github_image.js +0 -1
- package/lib/services.lazy/github_jobs.js +0 -1
- package/lib/services.lazy/github_profile.js +0 -1
- package/lib/services.lazy/gradle_cache.js +0 -1
- package/lib/services.lazy/httpcache.js +0 -1
- package/lib/services.lazy/iam_tenant.js +0 -4
- package/lib/services.lazy/iam_tenant_membership.js +0 -1
- package/lib/services.lazy/iam_token.js +0 -1
- package/lib/services.lazy/image.js +0 -1
- package/lib/services.lazy/private_user_sessions.js +0 -1
- package/lib/services.lazy/testing.js +0 -1
- 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 {
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
980
|
-
capDrop: S.optional(__S(
|
|
981
|
-
devices: S.optional(__S(
|
|
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(
|
|
1009
|
-
entrypoint: S.optional(__S(
|
|
1010
|
-
environment: S.optional(__S(
|
|
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(
|
|
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(
|
|
1053
|
-
environment: S.optional(__S(
|
|
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(
|
|
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(
|
|
1128
|
-
environment: S.optional(__S(
|
|
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(
|
|
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(
|
|
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(
|
|
1174
|
+
authorizedSshKeys: S.optional(__S(6, __c0, 6)),
|
|
1165
1175
|
macosBaseImageId: S.optional(S.String),
|
|
1166
|
-
internal: S.optional(__S(
|
|
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(
|
|
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(
|
|
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(
|
|
1306
|
-
allowedEgressDomains: S.optional(__S(
|
|
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(
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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,
|