@distilled.cloud/namespacelabs 0.0.0-stage → 1.0.0-rc.20
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/LICENSE +201 -0
- package/README.md +125 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +55 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +33 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +42 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.lazy.js +7 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/pagination.d.ts +2 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +15 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +12 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/artifacts.d.ts +260 -0
- package/lib/services/artifacts.d.ts.map +1 -0
- package/lib/services/artifacts.js +2 -0
- package/lib/services/artifacts.js.map +1 -0
- package/lib/services/audit.d.ts +149 -0
- package/lib/services/audit.d.ts.map +1 -0
- package/lib/services/audit.js +2 -0
- package/lib/services/audit.js.map +1 -0
- package/lib/services/bazel.d.ts +173 -0
- package/lib/services/bazel.d.ts.map +1 -0
- package/lib/services/bazel.js +2 -0
- package/lib/services/bazel.js.map +1 -0
- package/lib/services/bazel_cache.d.ts +118 -0
- package/lib/services/bazel_cache.d.ts.map +1 -0
- package/lib/services/bazel_cache.js +2 -0
- package/lib/services/bazel_cache.js.map +1 -0
- package/lib/services/builder.d.ts +234 -0
- package/lib/services/builder.d.ts.map +1 -0
- package/lib/services/builder.js +2 -0
- package/lib/services/builder.js.map +1 -0
- package/lib/services/buildkite_jobs.d.ts +121 -0
- package/lib/services/buildkite_jobs.d.ts.map +1 -0
- package/lib/services/buildkite_jobs.js +2 -0
- package/lib/services/buildkite_jobs.js.map +1 -0
- package/lib/services/buildkite_queue.d.ts +178 -0
- package/lib/services/buildkite_queue.d.ts.map +1 -0
- package/lib/services/buildkite_queue.js +2 -0
- package/lib/services/buildkite_queue.js.map +1 -0
- package/lib/services/compute.d.ts +1057 -0
- package/lib/services/compute.d.ts.map +1 -0
- package/lib/services/compute.js +43 -0
- package/lib/services/compute.js.map +1 -0
- package/lib/services/compute_command.d.ts +112 -0
- package/lib/services/compute_command.d.ts.map +1 -0
- package/lib/services/compute_command.js +2 -0
- package/lib/services/compute_command.js.map +1 -0
- package/lib/services/compute_observability.d.ts +157 -0
- package/lib/services/compute_observability.d.ts.map +1 -0
- package/lib/services/compute_observability.js +2 -0
- package/lib/services/compute_observability.js.map +1 -0
- package/lib/services/compute_storage.d.ts +371 -0
- package/lib/services/compute_storage.d.ts.map +1 -0
- package/lib/services/compute_storage.js +33 -0
- package/lib/services/compute_storage.js.map +1 -0
- package/lib/services/compute_usage.d.ts +275 -0
- package/lib/services/compute_usage.d.ts.map +1 -0
- package/lib/services/compute_usage.js +2 -0
- package/lib/services/compute_usage.js.map +1 -0
- package/lib/services/egress.d.ts +183 -0
- package/lib/services/egress.d.ts.map +1 -0
- package/lib/services/egress.js +2 -0
- package/lib/services/egress.js.map +1 -0
- package/lib/services/experimental_compute_reservation.d.ts +662 -0
- package/lib/services/experimental_compute_reservation.d.ts.map +1 -0
- package/lib/services/experimental_compute_reservation.js +23 -0
- package/lib/services/experimental_compute_reservation.js.map +1 -0
- package/lib/services/experimental_remote_results.d.ts +488 -0
- package/lib/services/experimental_remote_results.d.ts.map +1 -0
- package/lib/services/experimental_remote_results.js +2 -0
- package/lib/services/experimental_remote_results.js.map +1 -0
- package/lib/services/github_image.d.ts +154 -0
- package/lib/services/github_image.d.ts.map +1 -0
- package/lib/services/github_image.js +2 -0
- package/lib/services/github_image.js.map +1 -0
- package/lib/services/github_jobs.d.ts +175 -0
- package/lib/services/github_jobs.d.ts.map +1 -0
- package/lib/services/github_jobs.js +2 -0
- package/lib/services/github_jobs.js.map +1 -0
- package/lib/services/github_profile.d.ts +288 -0
- package/lib/services/github_profile.d.ts.map +1 -0
- package/lib/services/github_profile.js +2 -0
- package/lib/services/github_profile.js.map +1 -0
- package/lib/services/gradle_cache.d.ts +117 -0
- package/lib/services/gradle_cache.d.ts.map +1 -0
- package/lib/services/gradle_cache.js +2 -0
- package/lib/services/gradle_cache.js.map +1 -0
- package/lib/services/httpcache.d.ts +117 -0
- package/lib/services/httpcache.d.ts.map +1 -0
- package/lib/services/httpcache.js +2 -0
- package/lib/services/httpcache.js.map +1 -0
- package/lib/services/iam_tenant.d.ts +373 -0
- package/lib/services/iam_tenant.d.ts.map +1 -0
- package/lib/services/iam_tenant.js +39 -0
- package/lib/services/iam_tenant.js.map +1 -0
- package/lib/services/iam_tenant_membership.d.ts +106 -0
- package/lib/services/iam_tenant_membership.d.ts.map +1 -0
- package/lib/services/iam_tenant_membership.js +2 -0
- package/lib/services/iam_tenant_membership.js.map +1 -0
- package/lib/services/iam_token.d.ts +249 -0
- package/lib/services/iam_token.d.ts.map +1 -0
- package/lib/services/iam_token.js +2 -0
- package/lib/services/iam_token.js.map +1 -0
- package/lib/services/image.d.ts +214 -0
- package/lib/services/image.d.ts.map +1 -0
- package/lib/services/image.js +2 -0
- package/lib/services/image.js.map +1 -0
- package/lib/services/index.d.ts +30 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +29 -0
- package/lib/services/private_devbox.d.ts +1156 -0
- package/lib/services/private_devbox.d.ts.map +1 -0
- package/lib/services/private_devbox.js +81 -0
- package/lib/services/private_devbox.js.map +1 -0
- package/lib/services/private_user_sessions.d.ts +137 -0
- package/lib/services/private_user_sessions.d.ts.map +1 -0
- package/lib/services/private_user_sessions.js +2 -0
- package/lib/services/private_user_sessions.js.map +1 -0
- package/lib/services/registry.d.ts +365 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +34 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/testing.d.ts +152 -0
- package/lib/services/testing.d.ts.map +1 -0
- package/lib/services/testing.js +2 -0
- package/lib/services/testing.js.map +1 -0
- package/lib/services/vault.d.ts +195 -0
- package/lib/services/vault.d.ts.map +1 -0
- package/lib/services/vault.js +2 -0
- package/lib/services/vault.js.map +1 -0
- package/lib/services.lazy/artifacts.js +1 -0
- package/lib/services.lazy/audit.js +1 -0
- package/lib/services.lazy/bazel.js +1 -0
- package/lib/services.lazy/bazel_cache.js +1 -0
- package/lib/services.lazy/builder.js +1 -0
- package/lib/services.lazy/buildkite_jobs.js +1 -0
- package/lib/services.lazy/buildkite_queue.js +1 -0
- package/lib/services.lazy/compute.js +4 -0
- package/lib/services.lazy/compute_command.js +1 -0
- package/lib/services.lazy/compute_observability.js +1 -0
- package/lib/services.lazy/compute_storage.js +4 -0
- package/lib/services.lazy/compute_usage.js +1 -0
- package/lib/services.lazy/egress.js +1 -0
- package/lib/services.lazy/experimental_compute_reservation.js +4 -0
- package/lib/services.lazy/experimental_remote_results.js +1 -0
- package/lib/services.lazy/github_image.js +1 -0
- package/lib/services.lazy/github_jobs.js +1 -0
- package/lib/services.lazy/github_profile.js +1 -0
- package/lib/services.lazy/gradle_cache.js +1 -0
- package/lib/services.lazy/httpcache.js +1 -0
- package/lib/services.lazy/iam_tenant.js +4 -0
- package/lib/services.lazy/iam_tenant_membership.js +1 -0
- package/lib/services.lazy/iam_token.js +1 -0
- package/lib/services.lazy/image.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/private_devbox.js +4 -0
- package/lib/services.lazy/private_user_sessions.js +1 -0
- package/lib/services.lazy/registry.js +4 -0
- package/lib/services.lazy/testing.js +1 -0
- package/lib/services.lazy/vault.js +1 -0
- package/lib/traits.d.ts +3 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +87 -3
- package/src/credentials.ts +164 -0
- package/src/errors.ts +47 -0
- package/src/index.ts +48 -0
- package/src/pagination.ts +1 -0
- package/src/protocol.ts +82 -0
- package/src/retry.ts +28 -0
- package/src/services/artifacts.ts +761 -0
- package/src/services/audit.ts +315 -0
- package/src/services/bazel.ts +415 -0
- package/src/services/bazel_cache.ts +211 -0
- package/src/services/builder.ts +568 -0
- package/src/services/buildkite_jobs.ts +222 -0
- package/src/services/buildkite_queue.ts +445 -0
- package/src/services/compute.ts +2794 -0
- package/src/services/compute_command.ts +212 -0
- package/src/services/compute_observability.ts +428 -0
- package/src/services/compute_storage.ts +1159 -0
- package/src/services/compute_usage.ts +730 -0
- package/src/services/egress.ts +508 -0
- package/src/services/experimental_compute_reservation.ts +1488 -0
- package/src/services/experimental_remote_results.ts +1157 -0
- package/src/services/github_image.ts +293 -0
- package/src/services/github_jobs.ts +381 -0
- package/src/services/github_profile.ts +721 -0
- package/src/services/gradle_cache.ts +263 -0
- package/src/services/httpcache.ts +263 -0
- package/src/services/iam_tenant.ts +1355 -0
- package/src/services/iam_tenant_membership.ts +245 -0
- package/src/services/iam_token.ts +780 -0
- package/src/services/image.ts +594 -0
- package/src/services/index.ts +30 -0
- package/src/services/private_devbox.ts +4217 -0
- package/src/services/private_user_sessions.ts +402 -0
- package/src/services/registry.ts +1234 -0
- package/src/services/testing.ts +386 -0
- package/src/services/vault.ts +514 -0
- package/src/traits.ts +36 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (buf.build/namespace/cloud -> smithy). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import { UnknownNamespaceLabsError } from "../errors.ts";
|
|
7
|
+
import {
|
|
8
|
+
NamespaceLabsProtocol,
|
|
9
|
+
type NamespaceLabsOpError,
|
|
10
|
+
type NamespaceLabsOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
import * as T from "../traits.ts";
|
|
14
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
15
|
+
const __s: any[] = [];
|
|
16
|
+
|
|
17
|
+
export type { NamespaceLabsOpError, NamespaceLabsOpContext };
|
|
18
|
+
|
|
19
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
20
|
+
const TELEMETRY = {
|
|
21
|
+
system: "namespacelabs-api",
|
|
22
|
+
responseHeaders: [
|
|
23
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
24
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
25
|
+
],
|
|
26
|
+
prefix: "Namespacelabs",
|
|
27
|
+
service: "ImageService",
|
|
28
|
+
propagate: "w3c",
|
|
29
|
+
} as const;
|
|
30
|
+
|
|
31
|
+
export class AlreadyExists
|
|
32
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
33
|
+
/*@__PURE__*/ S.TaggedError<AlreadyExists>()("AlreadyExists", {
|
|
34
|
+
message: S.String,
|
|
35
|
+
body: S.Unknown,
|
|
36
|
+
}).pipe(C.withConflictError),
|
|
37
|
+
[{ status: 409, body: { "/code": "already_exists" } }],
|
|
38
|
+
) {}
|
|
39
|
+
|
|
40
|
+
export class FailedPrecondition
|
|
41
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
42
|
+
/*@__PURE__*/ S.TaggedError<FailedPrecondition>()("FailedPrecondition", {
|
|
43
|
+
message: S.String,
|
|
44
|
+
body: S.Unknown,
|
|
45
|
+
}).pipe(C.withBadRequestError),
|
|
46
|
+
[{ status: 400, body: { "/code": "failed_precondition" } }],
|
|
47
|
+
) {}
|
|
48
|
+
|
|
49
|
+
export class InvalidArgument
|
|
50
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
51
|
+
/*@__PURE__*/ S.TaggedError<InvalidArgument>()("InvalidArgument", {
|
|
52
|
+
message: S.String,
|
|
53
|
+
body: S.Unknown,
|
|
54
|
+
}).pipe(C.withBadRequestError),
|
|
55
|
+
[{ status: 400, body: { "/code": "invalid_argument" } }],
|
|
56
|
+
) {}
|
|
57
|
+
|
|
58
|
+
export class NotFound
|
|
59
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
60
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
61
|
+
message: S.String,
|
|
62
|
+
body: S.Unknown,
|
|
63
|
+
}).pipe(C.withBadRequestError),
|
|
64
|
+
[{ status: 404 }],
|
|
65
|
+
) {}
|
|
66
|
+
|
|
67
|
+
export class PermissionDenied
|
|
68
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
69
|
+
/*@__PURE__*/ S.TaggedError<PermissionDenied>()("PermissionDenied", {
|
|
70
|
+
message: S.String,
|
|
71
|
+
body: S.Unknown,
|
|
72
|
+
}).pipe(C.withAuthError),
|
|
73
|
+
[{ status: 403 }],
|
|
74
|
+
) {}
|
|
75
|
+
|
|
76
|
+
export class ResourceExhausted
|
|
77
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
78
|
+
/*@__PURE__*/ S.TaggedError<ResourceExhausted>()("ResourceExhausted", {
|
|
79
|
+
message: S.String,
|
|
80
|
+
body: S.Unknown,
|
|
81
|
+
}).pipe(C.withThrottlingError),
|
|
82
|
+
[{ status: 429 }],
|
|
83
|
+
) {}
|
|
84
|
+
|
|
85
|
+
export class Unauthenticated
|
|
86
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
87
|
+
/*@__PURE__*/ S.TaggedError<Unauthenticated>()("Unauthenticated", {
|
|
88
|
+
message: S.String,
|
|
89
|
+
body: S.Unknown,
|
|
90
|
+
}).pipe(C.withAuthError),
|
|
91
|
+
[{ status: 401 }],
|
|
92
|
+
) {}
|
|
93
|
+
|
|
94
|
+
export type StringList = Array<string>;
|
|
95
|
+
export type StringMatcherOperator = "OPERATOR_UNKNOWN" | "IS_ANY_OF" | "IS_NOT";
|
|
96
|
+
export interface StringMatcher {
|
|
97
|
+
values?: StringList | undefined;
|
|
98
|
+
op?: StringMatcherOperator | (string & {}) | undefined;
|
|
99
|
+
}
|
|
100
|
+
export type ReleaseStage = "STAGE_UNKNOWN" | "PRODUCTION" | "CANARY";
|
|
101
|
+
export type ReleaseStageList = Array<ReleaseStage | (string & {})>;
|
|
102
|
+
export interface ListBaseImagesRequest {
|
|
103
|
+
/** Filter by labels (e.g., "ubuntu-24.04", "macos-15"). */
|
|
104
|
+
labels?: StringMatcher | undefined;
|
|
105
|
+
/** Filter by release stage. Default: only PRODUCTION images. */
|
|
106
|
+
releaseStages?: ReleaseStageList | undefined;
|
|
107
|
+
}
|
|
108
|
+
export interface Package {
|
|
109
|
+
/** E.g. "Xcode", "iOS SDK", aws-cli, Rust, Docker, etc. */
|
|
110
|
+
name: string;
|
|
111
|
+
/** Type of installation (e.g. system, pre-installed for Ubuntu or simruntime, Xcode for MacOS) */
|
|
112
|
+
type: string;
|
|
113
|
+
/** E.g. 14.3 */
|
|
114
|
+
version: string;
|
|
115
|
+
/** Build number, e.g. 16B5100e. */
|
|
116
|
+
build: string;
|
|
117
|
+
/** Whether this version is the default for the product (e.g. for Xcode). */
|
|
118
|
+
isDefault: boolean;
|
|
119
|
+
}
|
|
120
|
+
export type PackageList = Array<Package>;
|
|
121
|
+
export type DeprecatedReleaseChannel = "CHANNEL_UNKNOWN" | "STABLE" | "EDGE";
|
|
122
|
+
export interface BaseImageCaveat {
|
|
123
|
+
text: string;
|
|
124
|
+
linkUrl: string;
|
|
125
|
+
}
|
|
126
|
+
export type BaseImageCaveatList = Array<BaseImageCaveat>;
|
|
127
|
+
/** BaseImage describes a Namespace-managed image that is used by one of the various applications built on top of the platform. The same schema is used to define base images used by Linux, and by MacOS. */
|
|
128
|
+
export interface BaseImage {
|
|
129
|
+
/** Base Image unique identifier. */
|
|
130
|
+
id: string;
|
|
131
|
+
/** Deprecated. Use id instead. */
|
|
132
|
+
ref: string;
|
|
133
|
+
/** Corresponds to InstanceShape.os ("linux" or "macos"). */
|
|
134
|
+
os: string;
|
|
135
|
+
/** E.g. Sonoma, Ubuntu LTS */
|
|
136
|
+
osName: string;
|
|
137
|
+
/** E.g. 14.4.1 */
|
|
138
|
+
osVersion: string;
|
|
139
|
+
/** E.g. 23H124 */
|
|
140
|
+
osBuild: string;
|
|
141
|
+
/** A description used for administration purposes. */
|
|
142
|
+
description: string;
|
|
143
|
+
/** When the image was last updated. */
|
|
144
|
+
updatedAt?: string | undefined;
|
|
145
|
+
/** The set of software packages that are included; e.g. Docker, Rust, Java, Podman, etc. */
|
|
146
|
+
packages: PackageList;
|
|
147
|
+
/** The set of software package versions that are set to be default. */
|
|
148
|
+
defaultPackages: PackageList;
|
|
149
|
+
/** Whether this image includes pre-release software. Whether this is a production image, or an image being canaried. */
|
|
150
|
+
releaseStage: ReleaseStage;
|
|
151
|
+
/** Set of features that the image supports. */
|
|
152
|
+
features: StringList;
|
|
153
|
+
releaseChannel: DeprecatedReleaseChannel;
|
|
154
|
+
caveats: BaseImageCaveatList;
|
|
155
|
+
}
|
|
156
|
+
export interface RunnerBaseImage {
|
|
157
|
+
/** runs-on label (e.g., "ubuntu-24.04", "macos-15"). */
|
|
158
|
+
label: string;
|
|
159
|
+
/** Image reference. */
|
|
160
|
+
imageRef: string;
|
|
161
|
+
/** The base image specification (OS, packages, etc.) */
|
|
162
|
+
spec?: BaseImage | undefined;
|
|
163
|
+
/** Human-readable title (e.g., "Ubuntu 24.04 LTS"). */
|
|
164
|
+
title: string;
|
|
165
|
+
}
|
|
166
|
+
export type RunnerBaseImageList = Array<RunnerBaseImage>;
|
|
167
|
+
export interface ListBaseImagesResponse {
|
|
168
|
+
images: RunnerBaseImageList;
|
|
169
|
+
}
|
|
170
|
+
export type ListBaseImagesError =
|
|
171
|
+
| InvalidArgument
|
|
172
|
+
| FailedPrecondition
|
|
173
|
+
| Unauthenticated
|
|
174
|
+
| PermissionDenied
|
|
175
|
+
| NotFound
|
|
176
|
+
| AlreadyExists
|
|
177
|
+
| ResourceExhausted
|
|
178
|
+
| NamespaceLabsOpError;
|
|
179
|
+
/** Lists currently available base images for GitHub runners. Returns only active images that can be used for new runners. */
|
|
180
|
+
export const listBaseImages: API.OperationMethod<
|
|
181
|
+
ListBaseImagesRequest,
|
|
182
|
+
ListBaseImagesResponse,
|
|
183
|
+
ListBaseImagesError,
|
|
184
|
+
NamespaceLabsOpContext
|
|
185
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
186
|
+
input: __S(3, __c0, 3) as any as S.Schema<ListBaseImagesRequest>,
|
|
187
|
+
output: __S(11, __c0, 11) as any as S.Schema<ListBaseImagesResponse>,
|
|
188
|
+
errors: [
|
|
189
|
+
InvalidArgument,
|
|
190
|
+
FailedPrecondition,
|
|
191
|
+
Unauthenticated,
|
|
192
|
+
PermissionDenied,
|
|
193
|
+
NotFound,
|
|
194
|
+
AlreadyExists,
|
|
195
|
+
ResourceExhausted,
|
|
196
|
+
UnknownNamespaceLabsError,
|
|
197
|
+
],
|
|
198
|
+
protocol: NamespaceLabsProtocol,
|
|
199
|
+
retry: Retry.Retry,
|
|
200
|
+
telemetry: TELEMETRY,
|
|
201
|
+
span: "ListBaseImages",
|
|
202
|
+
}));
|
|
203
|
+
|
|
204
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
205
|
+
function __c0(j: number): any {
|
|
206
|
+
switch (j) {
|
|
207
|
+
case 0:
|
|
208
|
+
return S.Array(S.String);
|
|
209
|
+
case 1:
|
|
210
|
+
return S.suspend(() =>
|
|
211
|
+
S.Struct({
|
|
212
|
+
values: S.optional(__S(0, __c0, 0)),
|
|
213
|
+
op: S.optional(S.String),
|
|
214
|
+
}),
|
|
215
|
+
).annotate({ identifier: "StringMatcher" });
|
|
216
|
+
case 2:
|
|
217
|
+
return S.Array(S.String);
|
|
218
|
+
case 3:
|
|
219
|
+
return S.suspend(() =>
|
|
220
|
+
S.Struct({
|
|
221
|
+
labels: S.optional(__S(1, __c0, 1)),
|
|
222
|
+
releaseStages: S.optional(__S(2, __c0, 2)),
|
|
223
|
+
}).pipe(
|
|
224
|
+
T.Http({
|
|
225
|
+
method: "POST",
|
|
226
|
+
uri: "/namespace.cloud.github.v1beta.ImageService/ListBaseImages",
|
|
227
|
+
code: 200,
|
|
228
|
+
}),
|
|
229
|
+
),
|
|
230
|
+
).annotate({ identifier: "ListBaseImagesRequest" });
|
|
231
|
+
case 4:
|
|
232
|
+
return S.suspend(() =>
|
|
233
|
+
S.Struct({
|
|
234
|
+
name: S.String,
|
|
235
|
+
type: S.String,
|
|
236
|
+
version: S.String,
|
|
237
|
+
build: S.String,
|
|
238
|
+
isDefault: S.Boolean,
|
|
239
|
+
}),
|
|
240
|
+
).annotate({ identifier: "Package" });
|
|
241
|
+
case 5:
|
|
242
|
+
return S.Array(__S(4, __c0, 4));
|
|
243
|
+
case 6:
|
|
244
|
+
return S.suspend(() =>
|
|
245
|
+
S.Struct({
|
|
246
|
+
text: S.String,
|
|
247
|
+
linkUrl: S.String,
|
|
248
|
+
}),
|
|
249
|
+
).annotate({ identifier: "BaseImageCaveat" });
|
|
250
|
+
case 7:
|
|
251
|
+
return S.Array(__S(6, __c0, 6));
|
|
252
|
+
case 8:
|
|
253
|
+
return S.suspend(() =>
|
|
254
|
+
S.Struct({
|
|
255
|
+
id: S.String,
|
|
256
|
+
ref: S.String,
|
|
257
|
+
os: S.String,
|
|
258
|
+
osName: S.String,
|
|
259
|
+
osVersion: S.String,
|
|
260
|
+
osBuild: S.String,
|
|
261
|
+
description: S.String,
|
|
262
|
+
updatedAt: S.optional(S.String),
|
|
263
|
+
packages: __S(5, __c0, 5),
|
|
264
|
+
defaultPackages: __S(5, __c0, 5),
|
|
265
|
+
releaseStage: S.String,
|
|
266
|
+
features: __S(0, __c0, 0),
|
|
267
|
+
releaseChannel: S.String,
|
|
268
|
+
caveats: __S(7, __c0, 7),
|
|
269
|
+
}),
|
|
270
|
+
).annotate({ identifier: "BaseImage" });
|
|
271
|
+
case 9:
|
|
272
|
+
return S.suspend(() =>
|
|
273
|
+
S.Struct({
|
|
274
|
+
label: S.String,
|
|
275
|
+
imageRef: S.String,
|
|
276
|
+
spec: S.optional(__S(8, __c0, 8)),
|
|
277
|
+
title: S.String,
|
|
278
|
+
}),
|
|
279
|
+
).annotate({ identifier: "RunnerBaseImage" });
|
|
280
|
+
case 10:
|
|
281
|
+
return S.Array(__S(9, __c0, 9));
|
|
282
|
+
case 11:
|
|
283
|
+
return S.suspend(() =>
|
|
284
|
+
S.Struct({
|
|
285
|
+
images: __S(10, __c0, 10),
|
|
286
|
+
}),
|
|
287
|
+
).annotate({ identifier: "ListBaseImagesResponse" });
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
291
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
292
|
+
return (__s[i] ??= __L.at(f, j));
|
|
293
|
+
}
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (buf.build/namespace/cloud -> smithy). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import { UnknownNamespaceLabsError } from "../errors.ts";
|
|
7
|
+
import { paginateCursor } from "../pagination.ts";
|
|
8
|
+
import {
|
|
9
|
+
NamespaceLabsProtocol,
|
|
10
|
+
type NamespaceLabsOpError,
|
|
11
|
+
type NamespaceLabsOpContext,
|
|
12
|
+
} from "../protocol.ts";
|
|
13
|
+
import * as Retry from "../retry.ts";
|
|
14
|
+
import * as T from "../traits.ts";
|
|
15
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
16
|
+
const __s: any[] = [];
|
|
17
|
+
|
|
18
|
+
export type { NamespaceLabsOpError, NamespaceLabsOpContext };
|
|
19
|
+
|
|
20
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
21
|
+
const TELEMETRY = {
|
|
22
|
+
system: "namespacelabs-api",
|
|
23
|
+
responseHeaders: [
|
|
24
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
25
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
26
|
+
],
|
|
27
|
+
prefix: "Namespacelabs",
|
|
28
|
+
service: "JobsService",
|
|
29
|
+
propagate: "w3c",
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
export class AlreadyExists
|
|
33
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
34
|
+
/*@__PURE__*/ S.TaggedError<AlreadyExists>()("AlreadyExists", {
|
|
35
|
+
message: S.String,
|
|
36
|
+
body: S.Unknown,
|
|
37
|
+
}).pipe(C.withConflictError),
|
|
38
|
+
[{ status: 409, body: { "/code": "already_exists" } }],
|
|
39
|
+
) {}
|
|
40
|
+
|
|
41
|
+
export class FailedPrecondition
|
|
42
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
43
|
+
/*@__PURE__*/ S.TaggedError<FailedPrecondition>()("FailedPrecondition", {
|
|
44
|
+
message: S.String,
|
|
45
|
+
body: S.Unknown,
|
|
46
|
+
}).pipe(C.withBadRequestError),
|
|
47
|
+
[{ status: 400, body: { "/code": "failed_precondition" } }],
|
|
48
|
+
) {}
|
|
49
|
+
|
|
50
|
+
export class InvalidArgument
|
|
51
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
52
|
+
/*@__PURE__*/ S.TaggedError<InvalidArgument>()("InvalidArgument", {
|
|
53
|
+
message: S.String,
|
|
54
|
+
body: S.Unknown,
|
|
55
|
+
}).pipe(C.withBadRequestError),
|
|
56
|
+
[{ status: 400, body: { "/code": "invalid_argument" } }],
|
|
57
|
+
) {}
|
|
58
|
+
|
|
59
|
+
export class NotFound
|
|
60
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
61
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
62
|
+
message: S.String,
|
|
63
|
+
body: S.Unknown,
|
|
64
|
+
}).pipe(C.withBadRequestError),
|
|
65
|
+
[{ status: 404 }],
|
|
66
|
+
) {}
|
|
67
|
+
|
|
68
|
+
export class PermissionDenied
|
|
69
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
70
|
+
/*@__PURE__*/ S.TaggedError<PermissionDenied>()("PermissionDenied", {
|
|
71
|
+
message: S.String,
|
|
72
|
+
body: S.Unknown,
|
|
73
|
+
}).pipe(C.withAuthError),
|
|
74
|
+
[{ status: 403 }],
|
|
75
|
+
) {}
|
|
76
|
+
|
|
77
|
+
export class ResourceExhausted
|
|
78
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
79
|
+
/*@__PURE__*/ S.TaggedError<ResourceExhausted>()("ResourceExhausted", {
|
|
80
|
+
message: S.String,
|
|
81
|
+
body: S.Unknown,
|
|
82
|
+
}).pipe(C.withThrottlingError),
|
|
83
|
+
[{ status: 429 }],
|
|
84
|
+
) {}
|
|
85
|
+
|
|
86
|
+
export class Unauthenticated
|
|
87
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
88
|
+
/*@__PURE__*/ S.TaggedError<Unauthenticated>()("Unauthenticated", {
|
|
89
|
+
message: S.String,
|
|
90
|
+
body: S.Unknown,
|
|
91
|
+
}).pipe(C.withAuthError),
|
|
92
|
+
[{ status: 401 }],
|
|
93
|
+
) {}
|
|
94
|
+
|
|
95
|
+
export interface DescribeJobRequest {
|
|
96
|
+
/** The GitHub Actions job ID to describe. This is the numeric identifier visible in the GitHub job URL (e.g., ".../job/1234567890"). */
|
|
97
|
+
jobId?: string | undefined;
|
|
98
|
+
}
|
|
99
|
+
/** RunnerInfo contains information about the runner executing the job. */
|
|
100
|
+
export interface RunnerInfo {
|
|
101
|
+
/** Unique identifier for the runner. */
|
|
102
|
+
runnerId: string;
|
|
103
|
+
/** Name of the runner. */
|
|
104
|
+
runnerName: string;
|
|
105
|
+
/** Instance ID of the underlying compute instance. */
|
|
106
|
+
instanceId: string;
|
|
107
|
+
/** Container name within the instance (Linux runners only). */
|
|
108
|
+
containerName: string;
|
|
109
|
+
}
|
|
110
|
+
/** ProfileRef references a runner profile. */
|
|
111
|
+
export interface ProfileRef {
|
|
112
|
+
/** Profile tag as defined in the runner profile configuration. */
|
|
113
|
+
tag: string;
|
|
114
|
+
}
|
|
115
|
+
/** Job represents a GitHub Actions workflow job. */
|
|
116
|
+
export interface Job {
|
|
117
|
+
/** Tenant ID that owns this job. */
|
|
118
|
+
tenantId: string;
|
|
119
|
+
/** Unique identifier for the job. */
|
|
120
|
+
jobId: string;
|
|
121
|
+
/** Repository in "owner/repo" format. */
|
|
122
|
+
repository: string;
|
|
123
|
+
/** GitHub workflow run ID. */
|
|
124
|
+
runId: string;
|
|
125
|
+
/** Name of the workflow as defined in the workflow file. */
|
|
126
|
+
workflowName: string;
|
|
127
|
+
/** Name of the job as defined in the workflow file. */
|
|
128
|
+
jobName: string;
|
|
129
|
+
/** Job conclusion (e.g., "success", "failure", "cancelled"). Only set when the job has completed. */
|
|
130
|
+
conclusion: string;
|
|
131
|
+
/** URL to view the job on GitHub. */
|
|
132
|
+
jobUrl: string;
|
|
133
|
+
/** GitHub login of the user who triggered the workflow. */
|
|
134
|
+
senderLogin: string;
|
|
135
|
+
/** Branch or tag ref that triggered the workflow. */
|
|
136
|
+
ref: string;
|
|
137
|
+
/** When the job was created on GitHub. */
|
|
138
|
+
createdAt?: string | undefined;
|
|
139
|
+
/** When the job was queued for execution. */
|
|
140
|
+
queuedAt?: string | undefined;
|
|
141
|
+
/** When the job started executing. */
|
|
142
|
+
startedAt?: string | undefined;
|
|
143
|
+
/** When the job completed. */
|
|
144
|
+
completedAt?: string | undefined;
|
|
145
|
+
/** Runner information, if assigned. */
|
|
146
|
+
runner?: RunnerInfo | undefined;
|
|
147
|
+
/** Runner profile used for this job. */
|
|
148
|
+
profile?: ProfileRef | undefined;
|
|
149
|
+
}
|
|
150
|
+
export interface DescribeJobResponse {
|
|
151
|
+
/** The described job, including runner and compute instance information. */
|
|
152
|
+
job?: Job | undefined;
|
|
153
|
+
}
|
|
154
|
+
export interface TimestampRange {
|
|
155
|
+
after?: string | undefined;
|
|
156
|
+
before?: string | undefined;
|
|
157
|
+
}
|
|
158
|
+
export type StringList = Array<string>;
|
|
159
|
+
export type StringMatcherOperator = "OPERATOR_UNKNOWN" | "IS_ANY_OF" | "IS_NOT";
|
|
160
|
+
export interface StringMatcher {
|
|
161
|
+
values?: StringList | undefined;
|
|
162
|
+
op?: StringMatcherOperator | (string & {}) | undefined;
|
|
163
|
+
}
|
|
164
|
+
export interface ListJobsRequest {
|
|
165
|
+
/** If a previous response returned a `pagination_cursor`, it can be specified to continue reading results with the same arguments as the original call. */
|
|
166
|
+
paginationCursor?: string | undefined;
|
|
167
|
+
/** The maximum number of entries to return. We won't return more than `max_entries`, but may return fewer. */
|
|
168
|
+
maxEntries?: string | undefined;
|
|
169
|
+
/** Filter jobs by time range (based on created_at timestamp). */
|
|
170
|
+
timeRange?: TimestampRange | undefined;
|
|
171
|
+
/** Filter jobs by conclusion (e.g., "success", "failure", "cancelled"). Only applies to completed jobs. */
|
|
172
|
+
conclusion?: StringMatcher | undefined;
|
|
173
|
+
/** Filter jobs by repository name (e.g., "owner/repo"). */
|
|
174
|
+
repository?: StringMatcher | undefined;
|
|
175
|
+
/** Filter jobs by the GitHub login of the user who triggered the workflow. */
|
|
176
|
+
senderLogin?: StringMatcher | undefined;
|
|
177
|
+
/** If true, only return jobs that have not started yet (i.e., started_at is not set). */
|
|
178
|
+
hasNotStarted?: boolean | undefined;
|
|
179
|
+
/** If true, only return jobs that have not finished yet (i.e., completed_at is not set). */
|
|
180
|
+
hasNotFinished?: boolean | undefined;
|
|
181
|
+
}
|
|
182
|
+
export type JobList = Array<Job>;
|
|
183
|
+
export interface ListJobsResponse {
|
|
184
|
+
/** List of jobs matching the filters. */
|
|
185
|
+
jobs: JobList;
|
|
186
|
+
/** If set, there are additional results. Pass the same cursor to a subsequent ListJobs call to continue fetching results. */
|
|
187
|
+
paginationCursor: string;
|
|
188
|
+
}
|
|
189
|
+
export type DescribeJobError =
|
|
190
|
+
| InvalidArgument
|
|
191
|
+
| FailedPrecondition
|
|
192
|
+
| Unauthenticated
|
|
193
|
+
| PermissionDenied
|
|
194
|
+
| NotFound
|
|
195
|
+
| AlreadyExists
|
|
196
|
+
| ResourceExhausted
|
|
197
|
+
| NamespaceLabsOpError;
|
|
198
|
+
/** Describes a single GitHub Actions job by its job ID, including the runner and compute instance it was assigned to. */
|
|
199
|
+
export const describeJob: API.OperationMethod<
|
|
200
|
+
DescribeJobRequest,
|
|
201
|
+
DescribeJobResponse,
|
|
202
|
+
DescribeJobError,
|
|
203
|
+
NamespaceLabsOpContext
|
|
204
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
205
|
+
input: __S(0, __c0, 0) as any as S.Schema<DescribeJobRequest>,
|
|
206
|
+
output: __S(1, __c0, 1) as any as S.Schema<DescribeJobResponse>,
|
|
207
|
+
errors: [
|
|
208
|
+
InvalidArgument,
|
|
209
|
+
FailedPrecondition,
|
|
210
|
+
Unauthenticated,
|
|
211
|
+
PermissionDenied,
|
|
212
|
+
NotFound,
|
|
213
|
+
AlreadyExists,
|
|
214
|
+
ResourceExhausted,
|
|
215
|
+
UnknownNamespaceLabsError,
|
|
216
|
+
],
|
|
217
|
+
protocol: NamespaceLabsProtocol,
|
|
218
|
+
retry: Retry.Retry,
|
|
219
|
+
telemetry: TELEMETRY,
|
|
220
|
+
span: "DescribeJob",
|
|
221
|
+
}));
|
|
222
|
+
|
|
223
|
+
export type ListJobsError =
|
|
224
|
+
| InvalidArgument
|
|
225
|
+
| FailedPrecondition
|
|
226
|
+
| Unauthenticated
|
|
227
|
+
| PermissionDenied
|
|
228
|
+
| NotFound
|
|
229
|
+
| AlreadyExists
|
|
230
|
+
| ResourceExhausted
|
|
231
|
+
| NamespaceLabsOpError;
|
|
232
|
+
/** Lists GitHub Actions jobs matching the specified filters. */
|
|
233
|
+
export const listJobs: API.PaginatedOperationMethod<
|
|
234
|
+
ListJobsRequest,
|
|
235
|
+
ListJobsResponse,
|
|
236
|
+
ListJobsError,
|
|
237
|
+
NamespaceLabsOpContext,
|
|
238
|
+
Job
|
|
239
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
240
|
+
() => ({
|
|
241
|
+
input: __S(19, __c2, 3) as any as S.Schema<ListJobsRequest>,
|
|
242
|
+
output: __S(21, __c2, 5) as any as S.Schema<ListJobsResponse>,
|
|
243
|
+
errors: [
|
|
244
|
+
InvalidArgument,
|
|
245
|
+
FailedPrecondition,
|
|
246
|
+
Unauthenticated,
|
|
247
|
+
PermissionDenied,
|
|
248
|
+
NotFound,
|
|
249
|
+
AlreadyExists,
|
|
250
|
+
ResourceExhausted,
|
|
251
|
+
UnknownNamespaceLabsError,
|
|
252
|
+
],
|
|
253
|
+
protocol: NamespaceLabsProtocol,
|
|
254
|
+
retry: Retry.Retry,
|
|
255
|
+
telemetry: TELEMETRY,
|
|
256
|
+
span: "ListJobs",
|
|
257
|
+
pagination: {
|
|
258
|
+
mode: "cursor",
|
|
259
|
+
inputToken: "paginationCursor",
|
|
260
|
+
outputToken: "paginationCursor",
|
|
261
|
+
items: "jobs",
|
|
262
|
+
} as const,
|
|
263
|
+
}),
|
|
264
|
+
paginateCursor,
|
|
265
|
+
) as any;
|
|
266
|
+
|
|
267
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
268
|
+
function __c0(j: number): any {
|
|
269
|
+
switch (j) {
|
|
270
|
+
case 0:
|
|
271
|
+
return S.suspend(() =>
|
|
272
|
+
S.Struct({
|
|
273
|
+
jobId: S.optional(S.String),
|
|
274
|
+
}).pipe(
|
|
275
|
+
T.Http({
|
|
276
|
+
method: "POST",
|
|
277
|
+
uri: "/namespace.cloud.github.v1beta.JobsService/DescribeJob",
|
|
278
|
+
code: 200,
|
|
279
|
+
}),
|
|
280
|
+
),
|
|
281
|
+
).annotate({ identifier: "DescribeJobRequest" });
|
|
282
|
+
case 1:
|
|
283
|
+
return S.suspend(() =>
|
|
284
|
+
S.Struct({
|
|
285
|
+
job: S.optional(__S(10, __c1, 2)),
|
|
286
|
+
}),
|
|
287
|
+
).annotate({ identifier: "DescribeJobResponse" });
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
function __c1(j: number): any {
|
|
291
|
+
switch (j) {
|
|
292
|
+
case 0:
|
|
293
|
+
return S.suspend(() =>
|
|
294
|
+
S.Struct({
|
|
295
|
+
runnerId: S.String,
|
|
296
|
+
runnerName: S.String,
|
|
297
|
+
instanceId: S.String,
|
|
298
|
+
containerName: S.String,
|
|
299
|
+
}),
|
|
300
|
+
).annotate({ identifier: "RunnerInfo" });
|
|
301
|
+
case 1:
|
|
302
|
+
return S.suspend(() =>
|
|
303
|
+
S.Struct({
|
|
304
|
+
tag: S.String,
|
|
305
|
+
}),
|
|
306
|
+
).annotate({ identifier: "ProfileRef" });
|
|
307
|
+
case 2:
|
|
308
|
+
return S.suspend(() =>
|
|
309
|
+
S.Struct({
|
|
310
|
+
tenantId: S.String,
|
|
311
|
+
jobId: S.String,
|
|
312
|
+
repository: S.String,
|
|
313
|
+
runId: S.String,
|
|
314
|
+
workflowName: S.String,
|
|
315
|
+
jobName: S.String,
|
|
316
|
+
conclusion: S.String,
|
|
317
|
+
jobUrl: S.String,
|
|
318
|
+
senderLogin: S.String,
|
|
319
|
+
ref: S.String,
|
|
320
|
+
createdAt: S.optional(S.String),
|
|
321
|
+
queuedAt: S.optional(S.String),
|
|
322
|
+
startedAt: S.optional(S.String),
|
|
323
|
+
completedAt: S.optional(S.String),
|
|
324
|
+
runner: S.optional(__S(8, __c1, 0)),
|
|
325
|
+
profile: S.optional(__S(9, __c1, 1)),
|
|
326
|
+
}),
|
|
327
|
+
).annotate({ identifier: "Job" });
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
function __c2(j: number): any {
|
|
331
|
+
switch (j) {
|
|
332
|
+
case 0:
|
|
333
|
+
return S.suspend(() =>
|
|
334
|
+
S.Struct({
|
|
335
|
+
after: S.optional(S.String),
|
|
336
|
+
before: S.optional(S.String),
|
|
337
|
+
}),
|
|
338
|
+
).annotate({ identifier: "TimestampRange" });
|
|
339
|
+
case 1:
|
|
340
|
+
return S.Array(S.String);
|
|
341
|
+
case 2:
|
|
342
|
+
return S.suspend(() =>
|
|
343
|
+
S.Struct({
|
|
344
|
+
values: S.optional(__S(17, __c2, 1)),
|
|
345
|
+
op: S.optional(S.String),
|
|
346
|
+
}),
|
|
347
|
+
).annotate({ identifier: "StringMatcher" });
|
|
348
|
+
case 3:
|
|
349
|
+
return S.suspend(() =>
|
|
350
|
+
S.Struct({
|
|
351
|
+
paginationCursor: S.optional(S.String),
|
|
352
|
+
maxEntries: S.optional(S.String),
|
|
353
|
+
timeRange: S.optional(__S(16, __c2, 0)),
|
|
354
|
+
conclusion: S.optional(__S(18, __c2, 2)),
|
|
355
|
+
repository: S.optional(__S(18, __c2, 2)),
|
|
356
|
+
senderLogin: S.optional(__S(18, __c2, 2)),
|
|
357
|
+
hasNotStarted: S.optional(S.Boolean),
|
|
358
|
+
hasNotFinished: S.optional(S.Boolean),
|
|
359
|
+
}).pipe(
|
|
360
|
+
T.Http({
|
|
361
|
+
method: "POST",
|
|
362
|
+
uri: "/namespace.cloud.github.v1beta.JobsService/ListJobs",
|
|
363
|
+
code: 200,
|
|
364
|
+
}),
|
|
365
|
+
),
|
|
366
|
+
).annotate({ identifier: "ListJobsRequest" });
|
|
367
|
+
case 4:
|
|
368
|
+
return S.Array(__S(10, __c1, 2));
|
|
369
|
+
case 5:
|
|
370
|
+
return S.suspend(() =>
|
|
371
|
+
S.Struct({
|
|
372
|
+
jobs: __S(20, __c2, 4),
|
|
373
|
+
paginationCursor: S.String,
|
|
374
|
+
}),
|
|
375
|
+
).annotate({ identifier: "ListJobsResponse" });
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
379
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
380
|
+
return (__s[i] ??= __L.at(f, j));
|
|
381
|
+
}
|