@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
|
) {}
|
|
@@ -151,8 +159,8 @@ export const runCommandSync: API.OperationMethod<
|
|
|
151
159
|
NotFound,
|
|
152
160
|
AlreadyExists,
|
|
153
161
|
ResourceExhausted,
|
|
154
|
-
UnknownNamespaceLabsError,
|
|
155
162
|
],
|
|
163
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
156
164
|
protocol: NamespaceLabsProtocol,
|
|
157
165
|
retry: Retry.Retry,
|
|
158
166
|
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
|
) {}
|
|
@@ -192,8 +200,8 @@ export const fetchInstanceDiagnostics: API.OperationMethod<
|
|
|
192
200
|
NotFound,
|
|
193
201
|
AlreadyExists,
|
|
194
202
|
ResourceExhausted,
|
|
195
|
-
UnknownNamespaceLabsError,
|
|
196
203
|
],
|
|
204
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
197
205
|
protocol: NamespaceLabsProtocol,
|
|
198
206
|
retry: Retry.Retry,
|
|
199
207
|
telemetry: TELEMETRY,
|
|
@@ -228,8 +236,8 @@ export const fetchInstanceEgress: API.PaginatedOperationMethod<
|
|
|
228
236
|
NotFound,
|
|
229
237
|
AlreadyExists,
|
|
230
238
|
ResourceExhausted,
|
|
231
|
-
UnknownNamespaceLabsError,
|
|
232
239
|
],
|
|
240
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
233
241
|
protocol: NamespaceLabsProtocol,
|
|
234
242
|
retry: Retry.Retry,
|
|
235
243
|
telemetry: TELEMETRY,
|
|
@@ -273,8 +281,8 @@ export const fetchInstanceLogs: API.PaginatedOperationMethod<
|
|
|
273
281
|
NotFound,
|
|
274
282
|
AlreadyExists,
|
|
275
283
|
ResourceExhausted,
|
|
276
|
-
UnknownNamespaceLabsError,
|
|
277
284
|
],
|
|
285
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
278
286
|
protocol: NamespaceLabsProtocol,
|
|
279
287
|
retry: Retry.Retry,
|
|
280
288
|
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
|
) {}
|
|
@@ -384,8 +392,8 @@ export const describePersistentVolume: API.OperationMethod<
|
|
|
384
392
|
NotFound,
|
|
385
393
|
AlreadyExists,
|
|
386
394
|
ResourceExhausted,
|
|
387
|
-
UnknownNamespaceLabsError,
|
|
388
395
|
],
|
|
396
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
389
397
|
protocol: NamespaceLabsProtocol,
|
|
390
398
|
retry: Retry.Retry,
|
|
391
399
|
telemetry: TELEMETRY,
|
|
@@ -418,8 +426,8 @@ export const describePersistentVolumeSnapshot: API.OperationMethod<
|
|
|
418
426
|
NotFound,
|
|
419
427
|
AlreadyExists,
|
|
420
428
|
ResourceExhausted,
|
|
421
|
-
UnknownNamespaceLabsError,
|
|
422
429
|
],
|
|
430
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
423
431
|
protocol: NamespaceLabsProtocol,
|
|
424
432
|
retry: Retry.Retry,
|
|
425
433
|
telemetry: TELEMETRY,
|
|
@@ -452,8 +460,8 @@ export const destroyCacheVolume: API.OperationMethod<
|
|
|
452
460
|
NotFound,
|
|
453
461
|
AlreadyExists,
|
|
454
462
|
ResourceExhausted,
|
|
455
|
-
UnknownNamespaceLabsError,
|
|
456
463
|
],
|
|
464
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
457
465
|
protocol: NamespaceLabsProtocol,
|
|
458
466
|
retry: Retry.Retry,
|
|
459
467
|
telemetry: TELEMETRY,
|
|
@@ -486,8 +494,8 @@ export const destroyPersistentVolumes: API.OperationMethod<
|
|
|
486
494
|
NotFound,
|
|
487
495
|
AlreadyExists,
|
|
488
496
|
ResourceExhausted,
|
|
489
|
-
UnknownNamespaceLabsError,
|
|
490
497
|
],
|
|
498
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
491
499
|
protocol: NamespaceLabsProtocol,
|
|
492
500
|
retry: Retry.Retry,
|
|
493
501
|
telemetry: TELEMETRY,
|
|
@@ -520,8 +528,8 @@ export const destroyPersistentVolumeSnapshot: API.OperationMethod<
|
|
|
520
528
|
NotFound,
|
|
521
529
|
AlreadyExists,
|
|
522
530
|
ResourceExhausted,
|
|
523
|
-
UnknownNamespaceLabsError,
|
|
524
531
|
],
|
|
532
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
525
533
|
protocol: NamespaceLabsProtocol,
|
|
526
534
|
retry: Retry.Retry,
|
|
527
535
|
telemetry: TELEMETRY,
|
|
@@ -554,8 +562,8 @@ export const getCacheVolume: API.OperationMethod<
|
|
|
554
562
|
NotFound,
|
|
555
563
|
AlreadyExists,
|
|
556
564
|
ResourceExhausted,
|
|
557
|
-
UnknownNamespaceLabsError,
|
|
558
565
|
],
|
|
566
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
559
567
|
protocol: NamespaceLabsProtocol,
|
|
560
568
|
retry: Retry.Retry,
|
|
561
569
|
telemetry: TELEMETRY,
|
|
@@ -588,8 +596,8 @@ export const getVolumeTagSummary: API.OperationMethod<
|
|
|
588
596
|
NotFound,
|
|
589
597
|
AlreadyExists,
|
|
590
598
|
ResourceExhausted,
|
|
591
|
-
UnknownNamespaceLabsError,
|
|
592
599
|
],
|
|
600
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
593
601
|
protocol: NamespaceLabsProtocol,
|
|
594
602
|
retry: Retry.Retry,
|
|
595
603
|
telemetry: TELEMETRY,
|
|
@@ -622,8 +630,8 @@ export const listCacheVolumes: API.OperationMethod<
|
|
|
622
630
|
NotFound,
|
|
623
631
|
AlreadyExists,
|
|
624
632
|
ResourceExhausted,
|
|
625
|
-
UnknownNamespaceLabsError,
|
|
626
633
|
],
|
|
634
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
627
635
|
protocol: NamespaceLabsProtocol,
|
|
628
636
|
retry: Retry.Retry,
|
|
629
637
|
telemetry: TELEMETRY,
|
|
@@ -658,8 +666,8 @@ export const listPersistentVolumes: API.PaginatedOperationMethod<
|
|
|
658
666
|
NotFound,
|
|
659
667
|
AlreadyExists,
|
|
660
668
|
ResourceExhausted,
|
|
661
|
-
UnknownNamespaceLabsError,
|
|
662
669
|
],
|
|
670
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
663
671
|
protocol: NamespaceLabsProtocol,
|
|
664
672
|
retry: Retry.Retry,
|
|
665
673
|
telemetry: TELEMETRY,
|
|
@@ -700,8 +708,8 @@ export const listPersistentVolumeSnapshots: API.OperationMethod<
|
|
|
700
708
|
NotFound,
|
|
701
709
|
AlreadyExists,
|
|
702
710
|
ResourceExhausted,
|
|
703
|
-
UnknownNamespaceLabsError,
|
|
704
711
|
],
|
|
712
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
705
713
|
protocol: NamespaceLabsProtocol,
|
|
706
714
|
retry: Retry.Retry,
|
|
707
715
|
telemetry: TELEMETRY,
|
|
@@ -734,8 +742,8 @@ export const listVolumeTagSummaries: API.OperationMethod<
|
|
|
734
742
|
NotFound,
|
|
735
743
|
AlreadyExists,
|
|
736
744
|
ResourceExhausted,
|
|
737
|
-
UnknownNamespaceLabsError,
|
|
738
745
|
],
|
|
746
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
739
747
|
protocol: NamespaceLabsProtocol,
|
|
740
748
|
retry: Retry.Retry,
|
|
741
749
|
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
|
) {}
|
|
@@ -302,8 +310,8 @@ export const getArtifactUsage: API.OperationMethod<
|
|
|
302
310
|
NotFound,
|
|
303
311
|
AlreadyExists,
|
|
304
312
|
ResourceExhausted,
|
|
305
|
-
UnknownNamespaceLabsError,
|
|
306
313
|
],
|
|
314
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
307
315
|
protocol: NamespaceLabsProtocol,
|
|
308
316
|
retry: Retry.Retry,
|
|
309
317
|
telemetry: TELEMETRY,
|
|
@@ -336,8 +344,8 @@ export const getConcurrency: API.OperationMethod<
|
|
|
336
344
|
NotFound,
|
|
337
345
|
AlreadyExists,
|
|
338
346
|
ResourceExhausted,
|
|
339
|
-
UnknownNamespaceLabsError,
|
|
340
347
|
],
|
|
348
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
341
349
|
protocol: NamespaceLabsProtocol,
|
|
342
350
|
retry: Retry.Retry,
|
|
343
351
|
telemetry: TELEMETRY,
|
|
@@ -370,8 +378,8 @@ export const getUsage: API.OperationMethod<
|
|
|
370
378
|
NotFound,
|
|
371
379
|
AlreadyExists,
|
|
372
380
|
ResourceExhausted,
|
|
373
|
-
UnknownNamespaceLabsError,
|
|
374
381
|
],
|
|
382
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
375
383
|
protocol: NamespaceLabsProtocol,
|
|
376
384
|
retry: Retry.Retry,
|
|
377
385
|
telemetry: TELEMETRY,
|
|
@@ -404,8 +412,8 @@ export const getUsageTimeSeries: API.OperationMethod<
|
|
|
404
412
|
NotFound,
|
|
405
413
|
AlreadyExists,
|
|
406
414
|
ResourceExhausted,
|
|
407
|
-
UnknownNamespaceLabsError,
|
|
408
415
|
],
|
|
416
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
409
417
|
protocol: NamespaceLabsProtocol,
|
|
410
418
|
retry: Retry.Retry,
|
|
411
419
|
telemetry: TELEMETRY,
|
|
@@ -438,8 +446,8 @@ export const getVolumeUsage: API.OperationMethod<
|
|
|
438
446
|
NotFound,
|
|
439
447
|
AlreadyExists,
|
|
440
448
|
ResourceExhausted,
|
|
441
|
-
UnknownNamespaceLabsError,
|
|
442
449
|
],
|
|
450
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
443
451
|
protocol: NamespaceLabsProtocol,
|
|
444
452
|
retry: Retry.Retry,
|
|
445
453
|
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
|
) {}
|
|
@@ -215,8 +223,8 @@ export const createEgressPolicy: API.OperationMethod<
|
|
|
215
223
|
NotFound,
|
|
216
224
|
AlreadyExists,
|
|
217
225
|
ResourceExhausted,
|
|
218
|
-
UnknownNamespaceLabsError,
|
|
219
226
|
],
|
|
227
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
220
228
|
protocol: NamespaceLabsProtocol,
|
|
221
229
|
retry: Retry.Retry,
|
|
222
230
|
telemetry: TELEMETRY,
|
|
@@ -249,8 +257,8 @@ export const getEgressPolicy: API.OperationMethod<
|
|
|
249
257
|
NotFound,
|
|
250
258
|
AlreadyExists,
|
|
251
259
|
ResourceExhausted,
|
|
252
|
-
UnknownNamespaceLabsError,
|
|
253
260
|
],
|
|
261
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
254
262
|
protocol: NamespaceLabsProtocol,
|
|
255
263
|
retry: Retry.Retry,
|
|
256
264
|
telemetry: TELEMETRY,
|
|
@@ -283,8 +291,8 @@ export const listEgressPolicies: API.OperationMethod<
|
|
|
283
291
|
NotFound,
|
|
284
292
|
AlreadyExists,
|
|
285
293
|
ResourceExhausted,
|
|
286
|
-
UnknownNamespaceLabsError,
|
|
287
294
|
],
|
|
295
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
288
296
|
protocol: NamespaceLabsProtocol,
|
|
289
297
|
retry: Retry.Retry,
|
|
290
298
|
telemetry: TELEMETRY,
|
|
@@ -317,8 +325,8 @@ export const updateEgressPolicy: API.OperationMethod<
|
|
|
317
325
|
NotFound,
|
|
318
326
|
AlreadyExists,
|
|
319
327
|
ResourceExhausted,
|
|
320
|
-
UnknownNamespaceLabsError,
|
|
321
328
|
],
|
|
329
|
+
serviceErrors: NamespaceLabsServiceErrors,
|
|
322
330
|
protocol: NamespaceLabsProtocol,
|
|
323
331
|
retry: Retry.Retry,
|
|
324
332
|
telemetry: TELEMETRY,
|