@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
|
@@ -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
|
) {}
|
|
@@ -146,8 +154,8 @@ export const listTenantMembers: API.OperationMethod<
|
|
|
146
154
|
NotFound,
|
|
147
155
|
AlreadyExists,
|
|
148
156
|
ResourceExhausted,
|
|
149
|
-
UnknownNamespaceLabsError,
|
|
150
157
|
],
|
|
158
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
151
159
|
protocol: NamespaceLabsProtocol,
|
|
152
160
|
retry: Retry.Retry,
|
|
153
161
|
telemetry: TELEMETRY,
|
|
@@ -180,8 +188,8 @@ export const removeTenantMember: API.OperationMethod<
|
|
|
180
188
|
NotFound,
|
|
181
189
|
AlreadyExists,
|
|
182
190
|
ResourceExhausted,
|
|
183
|
-
UnknownNamespaceLabsError,
|
|
184
191
|
],
|
|
192
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
185
193
|
protocol: NamespaceLabsProtocol,
|
|
186
194
|
retry: Retry.Retry,
|
|
187
195
|
telemetry: TELEMETRY,
|
|
@@ -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
|
) {}
|
|
@@ -267,8 +275,8 @@ export const batchRevokeRevokableToken: API.OperationMethod<
|
|
|
267
275
|
NotFound,
|
|
268
276
|
AlreadyExists,
|
|
269
277
|
ResourceExhausted,
|
|
270
|
-
UnknownNamespaceLabsError,
|
|
271
278
|
],
|
|
279
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
272
280
|
protocol: NamespaceLabsProtocol,
|
|
273
281
|
retry: Retry.Retry,
|
|
274
282
|
telemetry: TELEMETRY,
|
|
@@ -301,8 +309,8 @@ export const createRevokableToken: API.OperationMethod<
|
|
|
301
309
|
NotFound,
|
|
302
310
|
AlreadyExists,
|
|
303
311
|
ResourceExhausted,
|
|
304
|
-
UnknownNamespaceLabsError,
|
|
305
312
|
],
|
|
313
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
306
314
|
protocol: NamespaceLabsProtocol,
|
|
307
315
|
retry: Retry.Retry,
|
|
308
316
|
telemetry: TELEMETRY,
|
|
@@ -335,8 +343,8 @@ export const issueIdToken: API.OperationMethod<
|
|
|
335
343
|
NotFound,
|
|
336
344
|
AlreadyExists,
|
|
337
345
|
ResourceExhausted,
|
|
338
|
-
UnknownNamespaceLabsError,
|
|
339
346
|
],
|
|
347
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
340
348
|
protocol: NamespaceLabsProtocol,
|
|
341
349
|
retry: Retry.Retry,
|
|
342
350
|
telemetry: TELEMETRY,
|
|
@@ -369,8 +377,8 @@ export const issueTenantToken: API.OperationMethod<
|
|
|
369
377
|
NotFound,
|
|
370
378
|
AlreadyExists,
|
|
371
379
|
ResourceExhausted,
|
|
372
|
-
UnknownNamespaceLabsError,
|
|
373
380
|
],
|
|
381
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
374
382
|
protocol: NamespaceLabsProtocol,
|
|
375
383
|
retry: Retry.Retry,
|
|
376
384
|
telemetry: TELEMETRY,
|
|
@@ -403,8 +411,8 @@ export const issueTenantTokenWithOIDC: API.OperationMethod<
|
|
|
403
411
|
NotFound,
|
|
404
412
|
AlreadyExists,
|
|
405
413
|
ResourceExhausted,
|
|
406
|
-
UnknownNamespaceLabsError,
|
|
407
414
|
],
|
|
415
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
408
416
|
protocol: NamespaceLabsProtocol,
|
|
409
417
|
retry: Retry.Retry,
|
|
410
418
|
telemetry: TELEMETRY,
|
|
@@ -439,8 +447,8 @@ export const listRevokableTokens: API.PaginatedOperationMethod<
|
|
|
439
447
|
NotFound,
|
|
440
448
|
AlreadyExists,
|
|
441
449
|
ResourceExhausted,
|
|
442
|
-
UnknownNamespaceLabsError,
|
|
443
450
|
],
|
|
451
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
444
452
|
protocol: NamespaceLabsProtocol,
|
|
445
453
|
retry: Retry.Retry,
|
|
446
454
|
telemetry: TELEMETRY,
|
|
@@ -481,8 +489,8 @@ export const refreshRevokableToken: API.OperationMethod<
|
|
|
481
489
|
NotFound,
|
|
482
490
|
AlreadyExists,
|
|
483
491
|
ResourceExhausted,
|
|
484
|
-
UnknownNamespaceLabsError,
|
|
485
492
|
],
|
|
493
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
486
494
|
protocol: NamespaceLabsProtocol,
|
|
487
495
|
retry: Retry.Retry,
|
|
488
496
|
telemetry: TELEMETRY,
|
|
@@ -515,8 +523,8 @@ export const revokeRevokableToken: API.OperationMethod<
|
|
|
515
523
|
NotFound,
|
|
516
524
|
AlreadyExists,
|
|
517
525
|
ResourceExhausted,
|
|
518
|
-
UnknownNamespaceLabsError,
|
|
519
526
|
],
|
|
527
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
520
528
|
protocol: NamespaceLabsProtocol,
|
|
521
529
|
retry: Retry.Retry,
|
|
522
530
|
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
|
) {}
|
|
@@ -246,8 +254,8 @@ export const build: API.OperationMethod<
|
|
|
246
254
|
NotFound,
|
|
247
255
|
AlreadyExists,
|
|
248
256
|
ResourceExhausted,
|
|
249
|
-
UnknownNamespaceLabsError,
|
|
250
257
|
],
|
|
258
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
251
259
|
protocol: NamespaceLabsProtocol,
|
|
252
260
|
retry: Retry.Retry,
|
|
253
261
|
telemetry: TELEMETRY,
|
|
@@ -280,8 +288,8 @@ export const createBlueprint: API.OperationMethod<
|
|
|
280
288
|
NotFound,
|
|
281
289
|
AlreadyExists,
|
|
282
290
|
ResourceExhausted,
|
|
283
|
-
UnknownNamespaceLabsError,
|
|
284
291
|
],
|
|
292
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
285
293
|
protocol: NamespaceLabsProtocol,
|
|
286
294
|
retry: Retry.Retry,
|
|
287
295
|
telemetry: TELEMETRY,
|
|
@@ -314,8 +322,8 @@ export const fetchBlueprint: API.OperationMethod<
|
|
|
314
322
|
NotFound,
|
|
315
323
|
AlreadyExists,
|
|
316
324
|
ResourceExhausted,
|
|
317
|
-
UnknownNamespaceLabsError,
|
|
318
325
|
],
|
|
326
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
319
327
|
protocol: NamespaceLabsProtocol,
|
|
320
328
|
retry: Retry.Retry,
|
|
321
329
|
telemetry: TELEMETRY,
|
|
@@ -350,8 +358,8 @@ export const listBlueprints: API.PaginatedOperationMethod<
|
|
|
350
358
|
NotFound,
|
|
351
359
|
AlreadyExists,
|
|
352
360
|
ResourceExhausted,
|
|
353
|
-
UnknownNamespaceLabsError,
|
|
354
361
|
],
|
|
362
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
355
363
|
protocol: NamespaceLabsProtocol,
|
|
356
364
|
retry: Retry.Retry,
|
|
357
365
|
telemetry: TELEMETRY,
|
|
@@ -392,8 +400,8 @@ export const removeBlueprint: API.OperationMethod<
|
|
|
392
400
|
NotFound,
|
|
393
401
|
AlreadyExists,
|
|
394
402
|
ResourceExhausted,
|
|
395
|
-
UnknownNamespaceLabsError,
|
|
396
403
|
],
|
|
404
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
397
405
|
protocol: NamespaceLabsProtocol,
|
|
398
406
|
retry: Retry.Retry,
|
|
399
407
|
telemetry: TELEMETRY,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts. Do not edit.
|
|
2
|
+
export * as artifacts from "./artifacts.ts";
|
|
3
|
+
export * as audit from "./audit.ts";
|
|
4
|
+
export * as bazelCache from "./bazel_cache.ts";
|
|
5
|
+
export * as bazel from "./bazel.ts";
|
|
6
|
+
export * as builder from "./builder.ts";
|
|
7
|
+
export * as computeCommand from "./compute_command.ts";
|
|
8
|
+
export * as computeObservability from "./compute_observability.ts";
|
|
9
|
+
export * as computeStorage from "./compute_storage.ts";
|
|
10
|
+
export * as computeUsage from "./compute_usage.ts";
|
|
11
|
+
export * as compute from "./compute.ts";
|
|
12
|
+
export * as egress from "./egress.ts";
|
|
13
|
+
export * as experimentalComputeReservation from "./experimental_compute_reservation.ts";
|
|
14
|
+
export * as experimentalRemoteResults from "./experimental_remote_results.ts";
|
|
15
|
+
export * as githubImage from "./github_image.ts";
|
|
16
|
+
export * as githubJobs from "./github_jobs.ts";
|
|
17
|
+
export * as githubProfile from "./github_profile.ts";
|
|
18
|
+
export * as gradleCache from "./gradle_cache.ts";
|
|
19
|
+
export * as httpcache from "./httpcache.ts";
|
|
20
|
+
export * as iamTenantMembership from "./iam_tenant_membership.ts";
|
|
21
|
+
export * as iamTenant from "./iam_tenant.ts";
|
|
22
|
+
export * as iamToken from "./iam_token.ts";
|
|
23
|
+
export * as image from "./image.ts";
|
|
24
|
+
export * as privateDevbox from "./private_devbox.ts";
|
|
25
|
+
export * as privateUserSessions from "./private_user_sessions.ts";
|
|
26
|
+
export * as registry from "./registry.ts";
|
|
27
|
+
export * as testing from "./testing.ts";
|
|
28
|
+
export * as vault from "./vault.ts";
|