@alienplatform/sdk 1.14.1 → 2.0.1
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/dist/dist.js +371 -275
- package/dist/index.d.ts +22 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -14356
- package/dist/native.d.ts +26 -0
- package/dist/native.d.ts.map +1 -0
- package/dist/native.js +2 -0
- package/dist/worker-runtime/channel.d.ts +25 -0
- package/dist/worker-runtime/channel.d.ts.map +1 -0
- package/dist/worker-runtime/errors.d.ts +79 -0
- package/dist/worker-runtime/errors.d.ts.map +1 -0
- package/dist/worker-runtime/event-loop.d.ts +43 -0
- package/dist/worker-runtime/event-loop.d.ts.map +1 -0
- package/dist/{generated → worker-runtime/generated}/control.d.ts +15 -15
- package/dist/worker-runtime/generated/control.d.ts.map +1 -0
- package/dist/worker-runtime/generated/google/protobuf/duration.d.ts.map +1 -0
- package/dist/worker-runtime/generated/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/{generated → worker-runtime/generated}/wait_until.d.ts +29 -29
- package/dist/worker-runtime/generated/wait_until.d.ts.map +1 -0
- package/dist/worker-runtime/grpc-utils.d.ts +23 -0
- package/dist/worker-runtime/grpc-utils.d.ts.map +1 -0
- package/dist/worker-runtime/index.d.ts +33 -0
- package/dist/worker-runtime/index.d.ts.map +1 -0
- package/dist/{src.js → worker-runtime/index.js} +9370 -4035
- package/dist/worker-runtime/registry.d.ts +169 -0
- package/dist/worker-runtime/registry.d.ts.map +1 -0
- package/dist/worker-runtime/service-definitions.d.ts +12 -0
- package/dist/worker-runtime/service-definitions.d.ts.map +1 -0
- package/dist/worker-runtime/wait-until-manager.d.ts +34 -0
- package/dist/worker-runtime/wait-until-manager.d.ts.map +1 -0
- package/package.json +18 -38
- package/.turbo/turbo-build.log +0 -30
- package/AGENTS.md +0 -70
- package/dist/bearerTokenAuthenticationPolicy.js +0 -3028
- package/dist/bindings/artifact-registry.d.ts +0 -88
- package/dist/bindings/artifact-registry.d.ts.map +0 -1
- package/dist/bindings/build.d.ts +0 -67
- package/dist/bindings/build.d.ts.map +0 -1
- package/dist/bindings/index.d.ts +0 -13
- package/dist/bindings/index.d.ts.map +0 -1
- package/dist/bindings/kv.d.ts +0 -113
- package/dist/bindings/kv.d.ts.map +0 -1
- package/dist/bindings/postgres.d.ts +0 -90
- package/dist/bindings/postgres.d.ts.map +0 -1
- package/dist/bindings/postgres.test.d.ts +0 -2
- package/dist/bindings/postgres.test.d.ts.map +0 -1
- package/dist/bindings/queue.d.ts +0 -81
- package/dist/bindings/queue.d.ts.map +0 -1
- package/dist/bindings/service-account.d.ts +0 -46
- package/dist/bindings/service-account.d.ts.map +0 -1
- package/dist/bindings/storage.d.ts +0 -164
- package/dist/bindings/storage.d.ts.map +0 -1
- package/dist/bindings/vault.d.ts +0 -65
- package/dist/bindings/vault.d.ts.map +0 -1
- package/dist/bindings/worker.d.ts +0 -72
- package/dist/bindings/worker.d.ts.map +0 -1
- package/dist/channel.d.ts +0 -39
- package/dist/channel.d.ts.map +0 -1
- package/dist/checksum.js +0 -6176
- package/dist/commands/client.d.ts +0 -47
- package/dist/commands/client.d.ts.map +0 -1
- package/dist/commands/errors.d.ts +0 -198
- package/dist/commands/errors.d.ts.map +0 -1
- package/dist/commands/index.d.ts +0 -23
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -387
- package/dist/commands/types.d.ts +0 -40
- package/dist/commands/types.d.ts.map +0 -1
- package/dist/commands.d.ts +0 -55
- package/dist/commands.d.ts.map +0 -1
- package/dist/context.d.ts +0 -182
- package/dist/context.d.ts.map +0 -1
- package/dist/dist-cjs.js +0 -15258
- package/dist/dist2.js +0 -1239
- package/dist/errors.d.ts +0 -359
- package/dist/errors.d.ts.map +0 -1
- package/dist/es5.js +0 -1720
- package/dist/esm.js +0 -18068
- package/dist/esm2.js +0 -3166
- package/dist/event-streams.js +0 -770
- package/dist/events.d.ts +0 -163
- package/dist/events.d.ts.map +0 -1
- package/dist/generated/artifact_registry.d.ts +0 -302
- package/dist/generated/artifact_registry.d.ts.map +0 -1
- package/dist/generated/build.d.ts +0 -184
- package/dist/generated/build.d.ts.map +0 -1
- package/dist/generated/container.d.ts +0 -101
- package/dist/generated/container.d.ts.map +0 -1
- package/dist/generated/control.d.ts.map +0 -1
- package/dist/generated/google/protobuf/duration.d.ts.map +0 -1
- package/dist/generated/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/generated/kv.d.ts +0 -182
- package/dist/generated/kv.d.ts.map +0 -1
- package/dist/generated/queue.d.ts +0 -127
- package/dist/generated/queue.d.ts.map +0 -1
- package/dist/generated/service_account.d.ts +0 -112
- package/dist/generated/service_account.d.ts.map +0 -1
- package/dist/generated/storage.d.ts +0 -784
- package/dist/generated/storage.d.ts.map +0 -1
- package/dist/generated/vault.d.ts +0 -107
- package/dist/generated/vault.d.ts.map +0 -1
- package/dist/generated/wait_until.d.ts.map +0 -1
- package/dist/generated/worker.d.ts +0 -107
- package/dist/generated/worker.d.ts.map +0 -1
- package/dist/global.d.ts +0 -208
- package/dist/global.d.ts.map +0 -1
- package/dist/grpc-utils.d.ts +0 -25
- package/dist/grpc-utils.d.ts.map +0 -1
- package/dist/jws.js +0 -611
- package/dist/open.js +0 -461
- package/dist/rolldown-runtime.js +0 -44
- package/dist/src2.js +0 -114032
- package/dist/types.d.ts +0 -337
- package/dist/types.d.ts.map +0 -1
- package/dist/wait-until.d.ts +0 -115
- package/dist/wait-until.d.ts.map +0 -1
- package/scripts/generate-proto.sh +0 -46
- package/src/bindings/AGENTS.md +0 -105
- package/src/bindings/artifact-registry.ts +0 -317
- package/src/bindings/build.ts +0 -195
- package/src/bindings/index.ts +0 -13
- package/src/bindings/kv.ts +0 -240
- package/src/bindings/postgres.test.ts +0 -17
- package/src/bindings/postgres.ts +0 -446
- package/src/bindings/queue.ts +0 -191
- package/src/bindings/service-account.ts +0 -113
- package/src/bindings/storage.ts +0 -536
- package/src/bindings/vault.ts +0 -133
- package/src/bindings/worker.ts +0 -164
- package/src/channel.ts +0 -102
- package/src/commands/client.ts +0 -446
- package/src/commands/errors.ts +0 -126
- package/src/commands/index.ts +0 -41
- package/src/commands/types.ts +0 -52
- package/src/commands.ts +0 -76
- package/src/context.ts +0 -368
- package/src/errors.ts +0 -280
- package/src/events.ts +0 -511
- package/src/generated/artifact_registry.ts +0 -2096
- package/src/generated/build.ts +0 -1311
- package/src/generated/container.ts +0 -503
- package/src/generated/control.ts +0 -2018
- package/src/generated/google/protobuf/duration.ts +0 -196
- package/src/generated/google/protobuf/timestamp.ts +0 -226
- package/src/generated/kv.ts +0 -1169
- package/src/generated/queue.ts +0 -753
- package/src/generated/service_account.ts +0 -814
- package/src/generated/storage.ts +0 -3820
- package/src/generated/vault.ts +0 -543
- package/src/generated/wait_until.ts +0 -829
- package/src/generated/worker.ts +0 -759
- package/src/global.ts +0 -287
- package/src/grpc-utils.ts +0 -159
- package/src/index.ts +0 -160
- package/src/types.ts +0 -397
- package/src/wait-until.ts +0 -273
- package/tsconfig.json +0 -8
- package/tsdown.config.ts +0 -17
- /package/dist/{generated → worker-runtime/generated}/google/protobuf/duration.d.ts +0 -0
- /package/dist/{generated → worker-runtime/generated}/google/protobuf/timestamp.d.ts +0 -0
package/src/generated/build.ts
DELETED
|
@@ -1,1311 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.12.0
|
|
4
|
-
// protoc v7.34.1
|
|
5
|
-
// source: build.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "alien_bindings.build";
|
|
12
|
-
|
|
13
|
-
/** Build status enumeration */
|
|
14
|
-
export enum BuildStatus {
|
|
15
|
-
BUILD_STATUS_UNSPECIFIED = 0,
|
|
16
|
-
BUILD_STATUS_QUEUED = 1,
|
|
17
|
-
BUILD_STATUS_RUNNING = 2,
|
|
18
|
-
BUILD_STATUS_SUCCEEDED = 3,
|
|
19
|
-
BUILD_STATUS_FAILED = 4,
|
|
20
|
-
BUILD_STATUS_CANCELLED = 5,
|
|
21
|
-
BUILD_STATUS_TIMED_OUT = 6,
|
|
22
|
-
UNRECOGNIZED = -1,
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export function buildStatusFromJSON(object: any): BuildStatus {
|
|
26
|
-
switch (object) {
|
|
27
|
-
case 0:
|
|
28
|
-
case "BUILD_STATUS_UNSPECIFIED":
|
|
29
|
-
return BuildStatus.BUILD_STATUS_UNSPECIFIED;
|
|
30
|
-
case 1:
|
|
31
|
-
case "BUILD_STATUS_QUEUED":
|
|
32
|
-
return BuildStatus.BUILD_STATUS_QUEUED;
|
|
33
|
-
case 2:
|
|
34
|
-
case "BUILD_STATUS_RUNNING":
|
|
35
|
-
return BuildStatus.BUILD_STATUS_RUNNING;
|
|
36
|
-
case 3:
|
|
37
|
-
case "BUILD_STATUS_SUCCEEDED":
|
|
38
|
-
return BuildStatus.BUILD_STATUS_SUCCEEDED;
|
|
39
|
-
case 4:
|
|
40
|
-
case "BUILD_STATUS_FAILED":
|
|
41
|
-
return BuildStatus.BUILD_STATUS_FAILED;
|
|
42
|
-
case 5:
|
|
43
|
-
case "BUILD_STATUS_CANCELLED":
|
|
44
|
-
return BuildStatus.BUILD_STATUS_CANCELLED;
|
|
45
|
-
case 6:
|
|
46
|
-
case "BUILD_STATUS_TIMED_OUT":
|
|
47
|
-
return BuildStatus.BUILD_STATUS_TIMED_OUT;
|
|
48
|
-
case -1:
|
|
49
|
-
case "UNRECOGNIZED":
|
|
50
|
-
default:
|
|
51
|
-
return BuildStatus.UNRECOGNIZED;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function buildStatusToJSON(object: BuildStatus): string {
|
|
56
|
-
switch (object) {
|
|
57
|
-
case BuildStatus.BUILD_STATUS_UNSPECIFIED:
|
|
58
|
-
return "BUILD_STATUS_UNSPECIFIED";
|
|
59
|
-
case BuildStatus.BUILD_STATUS_QUEUED:
|
|
60
|
-
return "BUILD_STATUS_QUEUED";
|
|
61
|
-
case BuildStatus.BUILD_STATUS_RUNNING:
|
|
62
|
-
return "BUILD_STATUS_RUNNING";
|
|
63
|
-
case BuildStatus.BUILD_STATUS_SUCCEEDED:
|
|
64
|
-
return "BUILD_STATUS_SUCCEEDED";
|
|
65
|
-
case BuildStatus.BUILD_STATUS_FAILED:
|
|
66
|
-
return "BUILD_STATUS_FAILED";
|
|
67
|
-
case BuildStatus.BUILD_STATUS_CANCELLED:
|
|
68
|
-
return "BUILD_STATUS_CANCELLED";
|
|
69
|
-
case BuildStatus.BUILD_STATUS_TIMED_OUT:
|
|
70
|
-
return "BUILD_STATUS_TIMED_OUT";
|
|
71
|
-
case BuildStatus.UNRECOGNIZED:
|
|
72
|
-
default:
|
|
73
|
-
return "UNRECOGNIZED";
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** Compute type enumeration */
|
|
78
|
-
export enum ComputeType {
|
|
79
|
-
COMPUTE_TYPE_UNSPECIFIED = 0,
|
|
80
|
-
COMPUTE_TYPE_SMALL = 1,
|
|
81
|
-
COMPUTE_TYPE_MEDIUM = 2,
|
|
82
|
-
COMPUTE_TYPE_LARGE = 3,
|
|
83
|
-
COMPUTE_TYPE_XLARGE = 4,
|
|
84
|
-
UNRECOGNIZED = -1,
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function computeTypeFromJSON(object: any): ComputeType {
|
|
88
|
-
switch (object) {
|
|
89
|
-
case 0:
|
|
90
|
-
case "COMPUTE_TYPE_UNSPECIFIED":
|
|
91
|
-
return ComputeType.COMPUTE_TYPE_UNSPECIFIED;
|
|
92
|
-
case 1:
|
|
93
|
-
case "COMPUTE_TYPE_SMALL":
|
|
94
|
-
return ComputeType.COMPUTE_TYPE_SMALL;
|
|
95
|
-
case 2:
|
|
96
|
-
case "COMPUTE_TYPE_MEDIUM":
|
|
97
|
-
return ComputeType.COMPUTE_TYPE_MEDIUM;
|
|
98
|
-
case 3:
|
|
99
|
-
case "COMPUTE_TYPE_LARGE":
|
|
100
|
-
return ComputeType.COMPUTE_TYPE_LARGE;
|
|
101
|
-
case 4:
|
|
102
|
-
case "COMPUTE_TYPE_XLARGE":
|
|
103
|
-
return ComputeType.COMPUTE_TYPE_XLARGE;
|
|
104
|
-
case -1:
|
|
105
|
-
case "UNRECOGNIZED":
|
|
106
|
-
default:
|
|
107
|
-
return ComputeType.UNRECOGNIZED;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function computeTypeToJSON(object: ComputeType): string {
|
|
112
|
-
switch (object) {
|
|
113
|
-
case ComputeType.COMPUTE_TYPE_UNSPECIFIED:
|
|
114
|
-
return "COMPUTE_TYPE_UNSPECIFIED";
|
|
115
|
-
case ComputeType.COMPUTE_TYPE_SMALL:
|
|
116
|
-
return "COMPUTE_TYPE_SMALL";
|
|
117
|
-
case ComputeType.COMPUTE_TYPE_MEDIUM:
|
|
118
|
-
return "COMPUTE_TYPE_MEDIUM";
|
|
119
|
-
case ComputeType.COMPUTE_TYPE_LARGE:
|
|
120
|
-
return "COMPUTE_TYPE_LARGE";
|
|
121
|
-
case ComputeType.COMPUTE_TYPE_XLARGE:
|
|
122
|
-
return "COMPUTE_TYPE_XLARGE";
|
|
123
|
-
case ComputeType.UNRECOGNIZED:
|
|
124
|
-
default:
|
|
125
|
-
return "UNRECOGNIZED";
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** Messages for StartBuild */
|
|
130
|
-
export interface StartBuildRequest {
|
|
131
|
-
/** Name of the build binding to use */
|
|
132
|
-
bindingName: string;
|
|
133
|
-
/** Build configuration */
|
|
134
|
-
config: BuildConfig | undefined;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface StartBuildResponse {
|
|
138
|
-
/** Build execution information */
|
|
139
|
-
execution: BuildExecution | undefined;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/** Messages for GetBuildStatus */
|
|
143
|
-
export interface GetBuildStatusRequest {
|
|
144
|
-
/** Name of the build binding to use */
|
|
145
|
-
bindingName: string;
|
|
146
|
-
/** Build execution ID */
|
|
147
|
-
buildId: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface GetBuildStatusResponse {
|
|
151
|
-
/** Build execution information */
|
|
152
|
-
execution: BuildExecution | undefined;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/** Messages for StopBuild */
|
|
156
|
-
export interface StopBuildRequest {
|
|
157
|
-
/** Name of the build binding to use */
|
|
158
|
-
bindingName: string;
|
|
159
|
-
/** Build execution ID */
|
|
160
|
-
buildId: string;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/** Empty response on success */
|
|
164
|
-
export interface StopBuildResponse {
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/** Build configuration */
|
|
168
|
-
export interface BuildConfig {
|
|
169
|
-
/** Build script to execute */
|
|
170
|
-
script: string;
|
|
171
|
-
/** Environment variables for the build */
|
|
172
|
-
environment: { [key: string]: string };
|
|
173
|
-
/** Compute type for the build */
|
|
174
|
-
computeType: ComputeType;
|
|
175
|
-
/** Timeout in seconds (optional) */
|
|
176
|
-
timeoutSeconds?:
|
|
177
|
-
| number
|
|
178
|
-
| undefined;
|
|
179
|
-
/** Monitoring configuration (optional) */
|
|
180
|
-
monitoring?: MonitoringConfig | undefined;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface BuildConfig_EnvironmentEntry {
|
|
184
|
-
key: string;
|
|
185
|
-
value: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/** Monitoring configuration */
|
|
189
|
-
export interface MonitoringConfig {
|
|
190
|
-
/** The monitoring endpoint URL */
|
|
191
|
-
endpoint: string;
|
|
192
|
-
/** Optional HTTP headers to include in requests */
|
|
193
|
-
headers: { [key: string]: string };
|
|
194
|
-
/** Optional URI path for logs (defaults to "/v1/logs") */
|
|
195
|
-
logsUri: string;
|
|
196
|
-
/** Whether to enable TLS/HTTPS (defaults to true) */
|
|
197
|
-
tlsEnabled: boolean;
|
|
198
|
-
/** Whether to verify TLS certificates (defaults to true) */
|
|
199
|
-
tlsVerify: boolean;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface MonitoringConfig_HeadersEntry {
|
|
203
|
-
key: string;
|
|
204
|
-
value: string;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/** Build execution information */
|
|
208
|
-
export interface BuildExecution {
|
|
209
|
-
/** Unique build execution ID */
|
|
210
|
-
id: string;
|
|
211
|
-
/** Current status of the build */
|
|
212
|
-
status: BuildStatus;
|
|
213
|
-
/** Start time in RFC3339 format (optional) */
|
|
214
|
-
startTime?:
|
|
215
|
-
| string
|
|
216
|
-
| undefined;
|
|
217
|
-
/** End time in RFC3339 format (optional) */
|
|
218
|
-
endTime?: string | undefined;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
function createBaseStartBuildRequest(): StartBuildRequest {
|
|
222
|
-
return { bindingName: "", config: undefined };
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export const StartBuildRequest: MessageFns<StartBuildRequest> = {
|
|
226
|
-
encode(message: StartBuildRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
227
|
-
if (message.bindingName !== "") {
|
|
228
|
-
writer.uint32(10).string(message.bindingName);
|
|
229
|
-
}
|
|
230
|
-
if (message.config !== undefined) {
|
|
231
|
-
BuildConfig.encode(message.config, writer.uint32(18).fork()).join();
|
|
232
|
-
}
|
|
233
|
-
return writer;
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
decode(input: BinaryReader | Uint8Array, length?: number): StartBuildRequest {
|
|
237
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
238
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
239
|
-
const message = createBaseStartBuildRequest();
|
|
240
|
-
while (reader.pos < end) {
|
|
241
|
-
const tag = reader.uint32();
|
|
242
|
-
switch (tag >>> 3) {
|
|
243
|
-
case 1: {
|
|
244
|
-
if (tag !== 10) {
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
message.bindingName = reader.string();
|
|
249
|
-
continue;
|
|
250
|
-
}
|
|
251
|
-
case 2: {
|
|
252
|
-
if (tag !== 18) {
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
message.config = BuildConfig.decode(reader, reader.uint32());
|
|
257
|
-
continue;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
reader.skip(tag & 7);
|
|
264
|
-
}
|
|
265
|
-
return message;
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
fromJSON(object: any): StartBuildRequest {
|
|
269
|
-
return {
|
|
270
|
-
bindingName: isSet(object.bindingName)
|
|
271
|
-
? globalThis.String(object.bindingName)
|
|
272
|
-
: isSet(object.binding_name)
|
|
273
|
-
? globalThis.String(object.binding_name)
|
|
274
|
-
: "",
|
|
275
|
-
config: isSet(object.config) ? BuildConfig.fromJSON(object.config) : undefined,
|
|
276
|
-
};
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
toJSON(message: StartBuildRequest): unknown {
|
|
280
|
-
const obj: any = {};
|
|
281
|
-
if (message.bindingName !== "") {
|
|
282
|
-
obj.bindingName = message.bindingName;
|
|
283
|
-
}
|
|
284
|
-
if (message.config !== undefined) {
|
|
285
|
-
obj.config = BuildConfig.toJSON(message.config);
|
|
286
|
-
}
|
|
287
|
-
return obj;
|
|
288
|
-
},
|
|
289
|
-
|
|
290
|
-
create(base?: DeepPartial<StartBuildRequest>): StartBuildRequest {
|
|
291
|
-
return StartBuildRequest.fromPartial(base ?? {});
|
|
292
|
-
},
|
|
293
|
-
fromPartial(object: DeepPartial<StartBuildRequest>): StartBuildRequest {
|
|
294
|
-
const message = createBaseStartBuildRequest();
|
|
295
|
-
message.bindingName = object.bindingName ?? "";
|
|
296
|
-
message.config = (object.config !== undefined && object.config !== null)
|
|
297
|
-
? BuildConfig.fromPartial(object.config)
|
|
298
|
-
: undefined;
|
|
299
|
-
return message;
|
|
300
|
-
},
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
function createBaseStartBuildResponse(): StartBuildResponse {
|
|
304
|
-
return { execution: undefined };
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export const StartBuildResponse: MessageFns<StartBuildResponse> = {
|
|
308
|
-
encode(message: StartBuildResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
309
|
-
if (message.execution !== undefined) {
|
|
310
|
-
BuildExecution.encode(message.execution, writer.uint32(10).fork()).join();
|
|
311
|
-
}
|
|
312
|
-
return writer;
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
decode(input: BinaryReader | Uint8Array, length?: number): StartBuildResponse {
|
|
316
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
317
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
318
|
-
const message = createBaseStartBuildResponse();
|
|
319
|
-
while (reader.pos < end) {
|
|
320
|
-
const tag = reader.uint32();
|
|
321
|
-
switch (tag >>> 3) {
|
|
322
|
-
case 1: {
|
|
323
|
-
if (tag !== 10) {
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
message.execution = BuildExecution.decode(reader, reader.uint32());
|
|
328
|
-
continue;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
332
|
-
break;
|
|
333
|
-
}
|
|
334
|
-
reader.skip(tag & 7);
|
|
335
|
-
}
|
|
336
|
-
return message;
|
|
337
|
-
},
|
|
338
|
-
|
|
339
|
-
fromJSON(object: any): StartBuildResponse {
|
|
340
|
-
return { execution: isSet(object.execution) ? BuildExecution.fromJSON(object.execution) : undefined };
|
|
341
|
-
},
|
|
342
|
-
|
|
343
|
-
toJSON(message: StartBuildResponse): unknown {
|
|
344
|
-
const obj: any = {};
|
|
345
|
-
if (message.execution !== undefined) {
|
|
346
|
-
obj.execution = BuildExecution.toJSON(message.execution);
|
|
347
|
-
}
|
|
348
|
-
return obj;
|
|
349
|
-
},
|
|
350
|
-
|
|
351
|
-
create(base?: DeepPartial<StartBuildResponse>): StartBuildResponse {
|
|
352
|
-
return StartBuildResponse.fromPartial(base ?? {});
|
|
353
|
-
},
|
|
354
|
-
fromPartial(object: DeepPartial<StartBuildResponse>): StartBuildResponse {
|
|
355
|
-
const message = createBaseStartBuildResponse();
|
|
356
|
-
message.execution = (object.execution !== undefined && object.execution !== null)
|
|
357
|
-
? BuildExecution.fromPartial(object.execution)
|
|
358
|
-
: undefined;
|
|
359
|
-
return message;
|
|
360
|
-
},
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
function createBaseGetBuildStatusRequest(): GetBuildStatusRequest {
|
|
364
|
-
return { bindingName: "", buildId: "" };
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
export const GetBuildStatusRequest: MessageFns<GetBuildStatusRequest> = {
|
|
368
|
-
encode(message: GetBuildStatusRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
369
|
-
if (message.bindingName !== "") {
|
|
370
|
-
writer.uint32(10).string(message.bindingName);
|
|
371
|
-
}
|
|
372
|
-
if (message.buildId !== "") {
|
|
373
|
-
writer.uint32(18).string(message.buildId);
|
|
374
|
-
}
|
|
375
|
-
return writer;
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetBuildStatusRequest {
|
|
379
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
380
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
381
|
-
const message = createBaseGetBuildStatusRequest();
|
|
382
|
-
while (reader.pos < end) {
|
|
383
|
-
const tag = reader.uint32();
|
|
384
|
-
switch (tag >>> 3) {
|
|
385
|
-
case 1: {
|
|
386
|
-
if (tag !== 10) {
|
|
387
|
-
break;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
message.bindingName = reader.string();
|
|
391
|
-
continue;
|
|
392
|
-
}
|
|
393
|
-
case 2: {
|
|
394
|
-
if (tag !== 18) {
|
|
395
|
-
break;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
message.buildId = reader.string();
|
|
399
|
-
continue;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
reader.skip(tag & 7);
|
|
406
|
-
}
|
|
407
|
-
return message;
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
fromJSON(object: any): GetBuildStatusRequest {
|
|
411
|
-
return {
|
|
412
|
-
bindingName: isSet(object.bindingName)
|
|
413
|
-
? globalThis.String(object.bindingName)
|
|
414
|
-
: isSet(object.binding_name)
|
|
415
|
-
? globalThis.String(object.binding_name)
|
|
416
|
-
: "",
|
|
417
|
-
buildId: isSet(object.buildId)
|
|
418
|
-
? globalThis.String(object.buildId)
|
|
419
|
-
: isSet(object.build_id)
|
|
420
|
-
? globalThis.String(object.build_id)
|
|
421
|
-
: "",
|
|
422
|
-
};
|
|
423
|
-
},
|
|
424
|
-
|
|
425
|
-
toJSON(message: GetBuildStatusRequest): unknown {
|
|
426
|
-
const obj: any = {};
|
|
427
|
-
if (message.bindingName !== "") {
|
|
428
|
-
obj.bindingName = message.bindingName;
|
|
429
|
-
}
|
|
430
|
-
if (message.buildId !== "") {
|
|
431
|
-
obj.buildId = message.buildId;
|
|
432
|
-
}
|
|
433
|
-
return obj;
|
|
434
|
-
},
|
|
435
|
-
|
|
436
|
-
create(base?: DeepPartial<GetBuildStatusRequest>): GetBuildStatusRequest {
|
|
437
|
-
return GetBuildStatusRequest.fromPartial(base ?? {});
|
|
438
|
-
},
|
|
439
|
-
fromPartial(object: DeepPartial<GetBuildStatusRequest>): GetBuildStatusRequest {
|
|
440
|
-
const message = createBaseGetBuildStatusRequest();
|
|
441
|
-
message.bindingName = object.bindingName ?? "";
|
|
442
|
-
message.buildId = object.buildId ?? "";
|
|
443
|
-
return message;
|
|
444
|
-
},
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
function createBaseGetBuildStatusResponse(): GetBuildStatusResponse {
|
|
448
|
-
return { execution: undefined };
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export const GetBuildStatusResponse: MessageFns<GetBuildStatusResponse> = {
|
|
452
|
-
encode(message: GetBuildStatusResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
453
|
-
if (message.execution !== undefined) {
|
|
454
|
-
BuildExecution.encode(message.execution, writer.uint32(10).fork()).join();
|
|
455
|
-
}
|
|
456
|
-
return writer;
|
|
457
|
-
},
|
|
458
|
-
|
|
459
|
-
decode(input: BinaryReader | Uint8Array, length?: number): GetBuildStatusResponse {
|
|
460
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
461
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
462
|
-
const message = createBaseGetBuildStatusResponse();
|
|
463
|
-
while (reader.pos < end) {
|
|
464
|
-
const tag = reader.uint32();
|
|
465
|
-
switch (tag >>> 3) {
|
|
466
|
-
case 1: {
|
|
467
|
-
if (tag !== 10) {
|
|
468
|
-
break;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
message.execution = BuildExecution.decode(reader, reader.uint32());
|
|
472
|
-
continue;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
476
|
-
break;
|
|
477
|
-
}
|
|
478
|
-
reader.skip(tag & 7);
|
|
479
|
-
}
|
|
480
|
-
return message;
|
|
481
|
-
},
|
|
482
|
-
|
|
483
|
-
fromJSON(object: any): GetBuildStatusResponse {
|
|
484
|
-
return { execution: isSet(object.execution) ? BuildExecution.fromJSON(object.execution) : undefined };
|
|
485
|
-
},
|
|
486
|
-
|
|
487
|
-
toJSON(message: GetBuildStatusResponse): unknown {
|
|
488
|
-
const obj: any = {};
|
|
489
|
-
if (message.execution !== undefined) {
|
|
490
|
-
obj.execution = BuildExecution.toJSON(message.execution);
|
|
491
|
-
}
|
|
492
|
-
return obj;
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
create(base?: DeepPartial<GetBuildStatusResponse>): GetBuildStatusResponse {
|
|
496
|
-
return GetBuildStatusResponse.fromPartial(base ?? {});
|
|
497
|
-
},
|
|
498
|
-
fromPartial(object: DeepPartial<GetBuildStatusResponse>): GetBuildStatusResponse {
|
|
499
|
-
const message = createBaseGetBuildStatusResponse();
|
|
500
|
-
message.execution = (object.execution !== undefined && object.execution !== null)
|
|
501
|
-
? BuildExecution.fromPartial(object.execution)
|
|
502
|
-
: undefined;
|
|
503
|
-
return message;
|
|
504
|
-
},
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
function createBaseStopBuildRequest(): StopBuildRequest {
|
|
508
|
-
return { bindingName: "", buildId: "" };
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
export const StopBuildRequest: MessageFns<StopBuildRequest> = {
|
|
512
|
-
encode(message: StopBuildRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
513
|
-
if (message.bindingName !== "") {
|
|
514
|
-
writer.uint32(10).string(message.bindingName);
|
|
515
|
-
}
|
|
516
|
-
if (message.buildId !== "") {
|
|
517
|
-
writer.uint32(18).string(message.buildId);
|
|
518
|
-
}
|
|
519
|
-
return writer;
|
|
520
|
-
},
|
|
521
|
-
|
|
522
|
-
decode(input: BinaryReader | Uint8Array, length?: number): StopBuildRequest {
|
|
523
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
524
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
525
|
-
const message = createBaseStopBuildRequest();
|
|
526
|
-
while (reader.pos < end) {
|
|
527
|
-
const tag = reader.uint32();
|
|
528
|
-
switch (tag >>> 3) {
|
|
529
|
-
case 1: {
|
|
530
|
-
if (tag !== 10) {
|
|
531
|
-
break;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
message.bindingName = reader.string();
|
|
535
|
-
continue;
|
|
536
|
-
}
|
|
537
|
-
case 2: {
|
|
538
|
-
if (tag !== 18) {
|
|
539
|
-
break;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
message.buildId = reader.string();
|
|
543
|
-
continue;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
547
|
-
break;
|
|
548
|
-
}
|
|
549
|
-
reader.skip(tag & 7);
|
|
550
|
-
}
|
|
551
|
-
return message;
|
|
552
|
-
},
|
|
553
|
-
|
|
554
|
-
fromJSON(object: any): StopBuildRequest {
|
|
555
|
-
return {
|
|
556
|
-
bindingName: isSet(object.bindingName)
|
|
557
|
-
? globalThis.String(object.bindingName)
|
|
558
|
-
: isSet(object.binding_name)
|
|
559
|
-
? globalThis.String(object.binding_name)
|
|
560
|
-
: "",
|
|
561
|
-
buildId: isSet(object.buildId)
|
|
562
|
-
? globalThis.String(object.buildId)
|
|
563
|
-
: isSet(object.build_id)
|
|
564
|
-
? globalThis.String(object.build_id)
|
|
565
|
-
: "",
|
|
566
|
-
};
|
|
567
|
-
},
|
|
568
|
-
|
|
569
|
-
toJSON(message: StopBuildRequest): unknown {
|
|
570
|
-
const obj: any = {};
|
|
571
|
-
if (message.bindingName !== "") {
|
|
572
|
-
obj.bindingName = message.bindingName;
|
|
573
|
-
}
|
|
574
|
-
if (message.buildId !== "") {
|
|
575
|
-
obj.buildId = message.buildId;
|
|
576
|
-
}
|
|
577
|
-
return obj;
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
create(base?: DeepPartial<StopBuildRequest>): StopBuildRequest {
|
|
581
|
-
return StopBuildRequest.fromPartial(base ?? {});
|
|
582
|
-
},
|
|
583
|
-
fromPartial(object: DeepPartial<StopBuildRequest>): StopBuildRequest {
|
|
584
|
-
const message = createBaseStopBuildRequest();
|
|
585
|
-
message.bindingName = object.bindingName ?? "";
|
|
586
|
-
message.buildId = object.buildId ?? "";
|
|
587
|
-
return message;
|
|
588
|
-
},
|
|
589
|
-
};
|
|
590
|
-
|
|
591
|
-
function createBaseStopBuildResponse(): StopBuildResponse {
|
|
592
|
-
return {};
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export const StopBuildResponse: MessageFns<StopBuildResponse> = {
|
|
596
|
-
encode(_: StopBuildResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
597
|
-
return writer;
|
|
598
|
-
},
|
|
599
|
-
|
|
600
|
-
decode(input: BinaryReader | Uint8Array, length?: number): StopBuildResponse {
|
|
601
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
602
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
603
|
-
const message = createBaseStopBuildResponse();
|
|
604
|
-
while (reader.pos < end) {
|
|
605
|
-
const tag = reader.uint32();
|
|
606
|
-
switch (tag >>> 3) {
|
|
607
|
-
}
|
|
608
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
609
|
-
break;
|
|
610
|
-
}
|
|
611
|
-
reader.skip(tag & 7);
|
|
612
|
-
}
|
|
613
|
-
return message;
|
|
614
|
-
},
|
|
615
|
-
|
|
616
|
-
fromJSON(_: any): StopBuildResponse {
|
|
617
|
-
return {};
|
|
618
|
-
},
|
|
619
|
-
|
|
620
|
-
toJSON(_: StopBuildResponse): unknown {
|
|
621
|
-
const obj: any = {};
|
|
622
|
-
return obj;
|
|
623
|
-
},
|
|
624
|
-
|
|
625
|
-
create(base?: DeepPartial<StopBuildResponse>): StopBuildResponse {
|
|
626
|
-
return StopBuildResponse.fromPartial(base ?? {});
|
|
627
|
-
},
|
|
628
|
-
fromPartial(_: DeepPartial<StopBuildResponse>): StopBuildResponse {
|
|
629
|
-
const message = createBaseStopBuildResponse();
|
|
630
|
-
return message;
|
|
631
|
-
},
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
function createBaseBuildConfig(): BuildConfig {
|
|
635
|
-
return { script: "", environment: {}, computeType: 0, timeoutSeconds: undefined, monitoring: undefined };
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
export const BuildConfig: MessageFns<BuildConfig> = {
|
|
639
|
-
encode(message: BuildConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
640
|
-
if (message.script !== "") {
|
|
641
|
-
writer.uint32(10).string(message.script);
|
|
642
|
-
}
|
|
643
|
-
globalThis.Object.entries(message.environment).forEach(([key, value]: [string, string]) => {
|
|
644
|
-
BuildConfig_EnvironmentEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join();
|
|
645
|
-
});
|
|
646
|
-
if (message.computeType !== 0) {
|
|
647
|
-
writer.uint32(24).int32(message.computeType);
|
|
648
|
-
}
|
|
649
|
-
if (message.timeoutSeconds !== undefined) {
|
|
650
|
-
writer.uint32(32).int32(message.timeoutSeconds);
|
|
651
|
-
}
|
|
652
|
-
if (message.monitoring !== undefined) {
|
|
653
|
-
MonitoringConfig.encode(message.monitoring, writer.uint32(42).fork()).join();
|
|
654
|
-
}
|
|
655
|
-
return writer;
|
|
656
|
-
},
|
|
657
|
-
|
|
658
|
-
decode(input: BinaryReader | Uint8Array, length?: number): BuildConfig {
|
|
659
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
660
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
661
|
-
const message = createBaseBuildConfig();
|
|
662
|
-
while (reader.pos < end) {
|
|
663
|
-
const tag = reader.uint32();
|
|
664
|
-
switch (tag >>> 3) {
|
|
665
|
-
case 1: {
|
|
666
|
-
if (tag !== 10) {
|
|
667
|
-
break;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
message.script = reader.string();
|
|
671
|
-
continue;
|
|
672
|
-
}
|
|
673
|
-
case 2: {
|
|
674
|
-
if (tag !== 18) {
|
|
675
|
-
break;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
const entry2 = BuildConfig_EnvironmentEntry.decode(reader, reader.uint32());
|
|
679
|
-
if (entry2.value !== undefined) {
|
|
680
|
-
message.environment[entry2.key] = entry2.value;
|
|
681
|
-
}
|
|
682
|
-
continue;
|
|
683
|
-
}
|
|
684
|
-
case 3: {
|
|
685
|
-
if (tag !== 24) {
|
|
686
|
-
break;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
message.computeType = reader.int32() as any;
|
|
690
|
-
continue;
|
|
691
|
-
}
|
|
692
|
-
case 4: {
|
|
693
|
-
if (tag !== 32) {
|
|
694
|
-
break;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
message.timeoutSeconds = reader.int32();
|
|
698
|
-
continue;
|
|
699
|
-
}
|
|
700
|
-
case 5: {
|
|
701
|
-
if (tag !== 42) {
|
|
702
|
-
break;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
message.monitoring = MonitoringConfig.decode(reader, reader.uint32());
|
|
706
|
-
continue;
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
710
|
-
break;
|
|
711
|
-
}
|
|
712
|
-
reader.skip(tag & 7);
|
|
713
|
-
}
|
|
714
|
-
return message;
|
|
715
|
-
},
|
|
716
|
-
|
|
717
|
-
fromJSON(object: any): BuildConfig {
|
|
718
|
-
return {
|
|
719
|
-
script: isSet(object.script) ? globalThis.String(object.script) : "",
|
|
720
|
-
environment: isObject(object.environment)
|
|
721
|
-
? (globalThis.Object.entries(object.environment) as [string, any][]).reduce(
|
|
722
|
-
(acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
723
|
-
acc[key] = globalThis.String(value);
|
|
724
|
-
return acc;
|
|
725
|
-
},
|
|
726
|
-
{},
|
|
727
|
-
)
|
|
728
|
-
: {},
|
|
729
|
-
computeType: isSet(object.computeType)
|
|
730
|
-
? computeTypeFromJSON(object.computeType)
|
|
731
|
-
: isSet(object.compute_type)
|
|
732
|
-
? computeTypeFromJSON(object.compute_type)
|
|
733
|
-
: 0,
|
|
734
|
-
timeoutSeconds: isSet(object.timeoutSeconds)
|
|
735
|
-
? globalThis.Number(object.timeoutSeconds)
|
|
736
|
-
: isSet(object.timeout_seconds)
|
|
737
|
-
? globalThis.Number(object.timeout_seconds)
|
|
738
|
-
: undefined,
|
|
739
|
-
monitoring: isSet(object.monitoring) ? MonitoringConfig.fromJSON(object.monitoring) : undefined,
|
|
740
|
-
};
|
|
741
|
-
},
|
|
742
|
-
|
|
743
|
-
toJSON(message: BuildConfig): unknown {
|
|
744
|
-
const obj: any = {};
|
|
745
|
-
if (message.script !== "") {
|
|
746
|
-
obj.script = message.script;
|
|
747
|
-
}
|
|
748
|
-
if (message.environment) {
|
|
749
|
-
const entries = globalThis.Object.entries(message.environment) as [string, string][];
|
|
750
|
-
if (entries.length > 0) {
|
|
751
|
-
obj.environment = {};
|
|
752
|
-
entries.forEach(([k, v]) => {
|
|
753
|
-
obj.environment[k] = v;
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
if (message.computeType !== 0) {
|
|
758
|
-
obj.computeType = computeTypeToJSON(message.computeType);
|
|
759
|
-
}
|
|
760
|
-
if (message.timeoutSeconds !== undefined) {
|
|
761
|
-
obj.timeoutSeconds = Math.round(message.timeoutSeconds);
|
|
762
|
-
}
|
|
763
|
-
if (message.monitoring !== undefined) {
|
|
764
|
-
obj.monitoring = MonitoringConfig.toJSON(message.monitoring);
|
|
765
|
-
}
|
|
766
|
-
return obj;
|
|
767
|
-
},
|
|
768
|
-
|
|
769
|
-
create(base?: DeepPartial<BuildConfig>): BuildConfig {
|
|
770
|
-
return BuildConfig.fromPartial(base ?? {});
|
|
771
|
-
},
|
|
772
|
-
fromPartial(object: DeepPartial<BuildConfig>): BuildConfig {
|
|
773
|
-
const message = createBaseBuildConfig();
|
|
774
|
-
message.script = object.script ?? "";
|
|
775
|
-
message.environment = (globalThis.Object.entries(object.environment ?? {}) as [string, string][]).reduce(
|
|
776
|
-
(acc: { [key: string]: string }, [key, value]: [string, string]) => {
|
|
777
|
-
if (value !== undefined) {
|
|
778
|
-
acc[key] = globalThis.String(value);
|
|
779
|
-
}
|
|
780
|
-
return acc;
|
|
781
|
-
},
|
|
782
|
-
{},
|
|
783
|
-
);
|
|
784
|
-
message.computeType = object.computeType ?? 0;
|
|
785
|
-
message.timeoutSeconds = object.timeoutSeconds ?? undefined;
|
|
786
|
-
message.monitoring = (object.monitoring !== undefined && object.monitoring !== null)
|
|
787
|
-
? MonitoringConfig.fromPartial(object.monitoring)
|
|
788
|
-
: undefined;
|
|
789
|
-
return message;
|
|
790
|
-
},
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
function createBaseBuildConfig_EnvironmentEntry(): BuildConfig_EnvironmentEntry {
|
|
794
|
-
return { key: "", value: "" };
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
export const BuildConfig_EnvironmentEntry: MessageFns<BuildConfig_EnvironmentEntry> = {
|
|
798
|
-
encode(message: BuildConfig_EnvironmentEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
799
|
-
if (message.key !== "") {
|
|
800
|
-
writer.uint32(10).string(message.key);
|
|
801
|
-
}
|
|
802
|
-
if (message.value !== "") {
|
|
803
|
-
writer.uint32(18).string(message.value);
|
|
804
|
-
}
|
|
805
|
-
return writer;
|
|
806
|
-
},
|
|
807
|
-
|
|
808
|
-
decode(input: BinaryReader | Uint8Array, length?: number): BuildConfig_EnvironmentEntry {
|
|
809
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
810
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
811
|
-
const message = createBaseBuildConfig_EnvironmentEntry();
|
|
812
|
-
while (reader.pos < end) {
|
|
813
|
-
const tag = reader.uint32();
|
|
814
|
-
switch (tag >>> 3) {
|
|
815
|
-
case 1: {
|
|
816
|
-
if (tag !== 10) {
|
|
817
|
-
break;
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
message.key = reader.string();
|
|
821
|
-
continue;
|
|
822
|
-
}
|
|
823
|
-
case 2: {
|
|
824
|
-
if (tag !== 18) {
|
|
825
|
-
break;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
message.value = reader.string();
|
|
829
|
-
continue;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
833
|
-
break;
|
|
834
|
-
}
|
|
835
|
-
reader.skip(tag & 7);
|
|
836
|
-
}
|
|
837
|
-
return message;
|
|
838
|
-
},
|
|
839
|
-
|
|
840
|
-
fromJSON(object: any): BuildConfig_EnvironmentEntry {
|
|
841
|
-
return {
|
|
842
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
843
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
844
|
-
};
|
|
845
|
-
},
|
|
846
|
-
|
|
847
|
-
toJSON(message: BuildConfig_EnvironmentEntry): unknown {
|
|
848
|
-
const obj: any = {};
|
|
849
|
-
if (message.key !== "") {
|
|
850
|
-
obj.key = message.key;
|
|
851
|
-
}
|
|
852
|
-
if (message.value !== "") {
|
|
853
|
-
obj.value = message.value;
|
|
854
|
-
}
|
|
855
|
-
return obj;
|
|
856
|
-
},
|
|
857
|
-
|
|
858
|
-
create(base?: DeepPartial<BuildConfig_EnvironmentEntry>): BuildConfig_EnvironmentEntry {
|
|
859
|
-
return BuildConfig_EnvironmentEntry.fromPartial(base ?? {});
|
|
860
|
-
},
|
|
861
|
-
fromPartial(object: DeepPartial<BuildConfig_EnvironmentEntry>): BuildConfig_EnvironmentEntry {
|
|
862
|
-
const message = createBaseBuildConfig_EnvironmentEntry();
|
|
863
|
-
message.key = object.key ?? "";
|
|
864
|
-
message.value = object.value ?? "";
|
|
865
|
-
return message;
|
|
866
|
-
},
|
|
867
|
-
};
|
|
868
|
-
|
|
869
|
-
function createBaseMonitoringConfig(): MonitoringConfig {
|
|
870
|
-
return { endpoint: "", headers: {}, logsUri: "", tlsEnabled: false, tlsVerify: false };
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
export const MonitoringConfig: MessageFns<MonitoringConfig> = {
|
|
874
|
-
encode(message: MonitoringConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
875
|
-
if (message.endpoint !== "") {
|
|
876
|
-
writer.uint32(10).string(message.endpoint);
|
|
877
|
-
}
|
|
878
|
-
globalThis.Object.entries(message.headers).forEach(([key, value]: [string, string]) => {
|
|
879
|
-
MonitoringConfig_HeadersEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join();
|
|
880
|
-
});
|
|
881
|
-
if (message.logsUri !== "") {
|
|
882
|
-
writer.uint32(26).string(message.logsUri);
|
|
883
|
-
}
|
|
884
|
-
if (message.tlsEnabled !== false) {
|
|
885
|
-
writer.uint32(32).bool(message.tlsEnabled);
|
|
886
|
-
}
|
|
887
|
-
if (message.tlsVerify !== false) {
|
|
888
|
-
writer.uint32(40).bool(message.tlsVerify);
|
|
889
|
-
}
|
|
890
|
-
return writer;
|
|
891
|
-
},
|
|
892
|
-
|
|
893
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MonitoringConfig {
|
|
894
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
895
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
896
|
-
const message = createBaseMonitoringConfig();
|
|
897
|
-
while (reader.pos < end) {
|
|
898
|
-
const tag = reader.uint32();
|
|
899
|
-
switch (tag >>> 3) {
|
|
900
|
-
case 1: {
|
|
901
|
-
if (tag !== 10) {
|
|
902
|
-
break;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
message.endpoint = reader.string();
|
|
906
|
-
continue;
|
|
907
|
-
}
|
|
908
|
-
case 2: {
|
|
909
|
-
if (tag !== 18) {
|
|
910
|
-
break;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
const entry2 = MonitoringConfig_HeadersEntry.decode(reader, reader.uint32());
|
|
914
|
-
if (entry2.value !== undefined) {
|
|
915
|
-
message.headers[entry2.key] = entry2.value;
|
|
916
|
-
}
|
|
917
|
-
continue;
|
|
918
|
-
}
|
|
919
|
-
case 3: {
|
|
920
|
-
if (tag !== 26) {
|
|
921
|
-
break;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
message.logsUri = reader.string();
|
|
925
|
-
continue;
|
|
926
|
-
}
|
|
927
|
-
case 4: {
|
|
928
|
-
if (tag !== 32) {
|
|
929
|
-
break;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
message.tlsEnabled = reader.bool();
|
|
933
|
-
continue;
|
|
934
|
-
}
|
|
935
|
-
case 5: {
|
|
936
|
-
if (tag !== 40) {
|
|
937
|
-
break;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
message.tlsVerify = reader.bool();
|
|
941
|
-
continue;
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
945
|
-
break;
|
|
946
|
-
}
|
|
947
|
-
reader.skip(tag & 7);
|
|
948
|
-
}
|
|
949
|
-
return message;
|
|
950
|
-
},
|
|
951
|
-
|
|
952
|
-
fromJSON(object: any): MonitoringConfig {
|
|
953
|
-
return {
|
|
954
|
-
endpoint: isSet(object.endpoint) ? globalThis.String(object.endpoint) : "",
|
|
955
|
-
headers: isObject(object.headers)
|
|
956
|
-
? (globalThis.Object.entries(object.headers) as [string, any][]).reduce(
|
|
957
|
-
(acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
958
|
-
acc[key] = globalThis.String(value);
|
|
959
|
-
return acc;
|
|
960
|
-
},
|
|
961
|
-
{},
|
|
962
|
-
)
|
|
963
|
-
: {},
|
|
964
|
-
logsUri: isSet(object.logsUri)
|
|
965
|
-
? globalThis.String(object.logsUri)
|
|
966
|
-
: isSet(object.logs_uri)
|
|
967
|
-
? globalThis.String(object.logs_uri)
|
|
968
|
-
: "",
|
|
969
|
-
tlsEnabled: isSet(object.tlsEnabled)
|
|
970
|
-
? globalThis.Boolean(object.tlsEnabled)
|
|
971
|
-
: isSet(object.tls_enabled)
|
|
972
|
-
? globalThis.Boolean(object.tls_enabled)
|
|
973
|
-
: false,
|
|
974
|
-
tlsVerify: isSet(object.tlsVerify)
|
|
975
|
-
? globalThis.Boolean(object.tlsVerify)
|
|
976
|
-
: isSet(object.tls_verify)
|
|
977
|
-
? globalThis.Boolean(object.tls_verify)
|
|
978
|
-
: false,
|
|
979
|
-
};
|
|
980
|
-
},
|
|
981
|
-
|
|
982
|
-
toJSON(message: MonitoringConfig): unknown {
|
|
983
|
-
const obj: any = {};
|
|
984
|
-
if (message.endpoint !== "") {
|
|
985
|
-
obj.endpoint = message.endpoint;
|
|
986
|
-
}
|
|
987
|
-
if (message.headers) {
|
|
988
|
-
const entries = globalThis.Object.entries(message.headers) as [string, string][];
|
|
989
|
-
if (entries.length > 0) {
|
|
990
|
-
obj.headers = {};
|
|
991
|
-
entries.forEach(([k, v]) => {
|
|
992
|
-
obj.headers[k] = v;
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
if (message.logsUri !== "") {
|
|
997
|
-
obj.logsUri = message.logsUri;
|
|
998
|
-
}
|
|
999
|
-
if (message.tlsEnabled !== false) {
|
|
1000
|
-
obj.tlsEnabled = message.tlsEnabled;
|
|
1001
|
-
}
|
|
1002
|
-
if (message.tlsVerify !== false) {
|
|
1003
|
-
obj.tlsVerify = message.tlsVerify;
|
|
1004
|
-
}
|
|
1005
|
-
return obj;
|
|
1006
|
-
},
|
|
1007
|
-
|
|
1008
|
-
create(base?: DeepPartial<MonitoringConfig>): MonitoringConfig {
|
|
1009
|
-
return MonitoringConfig.fromPartial(base ?? {});
|
|
1010
|
-
},
|
|
1011
|
-
fromPartial(object: DeepPartial<MonitoringConfig>): MonitoringConfig {
|
|
1012
|
-
const message = createBaseMonitoringConfig();
|
|
1013
|
-
message.endpoint = object.endpoint ?? "";
|
|
1014
|
-
message.headers = (globalThis.Object.entries(object.headers ?? {}) as [string, string][]).reduce(
|
|
1015
|
-
(acc: { [key: string]: string }, [key, value]: [string, string]) => {
|
|
1016
|
-
if (value !== undefined) {
|
|
1017
|
-
acc[key] = globalThis.String(value);
|
|
1018
|
-
}
|
|
1019
|
-
return acc;
|
|
1020
|
-
},
|
|
1021
|
-
{},
|
|
1022
|
-
);
|
|
1023
|
-
message.logsUri = object.logsUri ?? "";
|
|
1024
|
-
message.tlsEnabled = object.tlsEnabled ?? false;
|
|
1025
|
-
message.tlsVerify = object.tlsVerify ?? false;
|
|
1026
|
-
return message;
|
|
1027
|
-
},
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
function createBaseMonitoringConfig_HeadersEntry(): MonitoringConfig_HeadersEntry {
|
|
1031
|
-
return { key: "", value: "" };
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
export const MonitoringConfig_HeadersEntry: MessageFns<MonitoringConfig_HeadersEntry> = {
|
|
1035
|
-
encode(message: MonitoringConfig_HeadersEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1036
|
-
if (message.key !== "") {
|
|
1037
|
-
writer.uint32(10).string(message.key);
|
|
1038
|
-
}
|
|
1039
|
-
if (message.value !== "") {
|
|
1040
|
-
writer.uint32(18).string(message.value);
|
|
1041
|
-
}
|
|
1042
|
-
return writer;
|
|
1043
|
-
},
|
|
1044
|
-
|
|
1045
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MonitoringConfig_HeadersEntry {
|
|
1046
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1047
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1048
|
-
const message = createBaseMonitoringConfig_HeadersEntry();
|
|
1049
|
-
while (reader.pos < end) {
|
|
1050
|
-
const tag = reader.uint32();
|
|
1051
|
-
switch (tag >>> 3) {
|
|
1052
|
-
case 1: {
|
|
1053
|
-
if (tag !== 10) {
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
message.key = reader.string();
|
|
1058
|
-
continue;
|
|
1059
|
-
}
|
|
1060
|
-
case 2: {
|
|
1061
|
-
if (tag !== 18) {
|
|
1062
|
-
break;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
message.value = reader.string();
|
|
1066
|
-
continue;
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1070
|
-
break;
|
|
1071
|
-
}
|
|
1072
|
-
reader.skip(tag & 7);
|
|
1073
|
-
}
|
|
1074
|
-
return message;
|
|
1075
|
-
},
|
|
1076
|
-
|
|
1077
|
-
fromJSON(object: any): MonitoringConfig_HeadersEntry {
|
|
1078
|
-
return {
|
|
1079
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1080
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
1081
|
-
};
|
|
1082
|
-
},
|
|
1083
|
-
|
|
1084
|
-
toJSON(message: MonitoringConfig_HeadersEntry): unknown {
|
|
1085
|
-
const obj: any = {};
|
|
1086
|
-
if (message.key !== "") {
|
|
1087
|
-
obj.key = message.key;
|
|
1088
|
-
}
|
|
1089
|
-
if (message.value !== "") {
|
|
1090
|
-
obj.value = message.value;
|
|
1091
|
-
}
|
|
1092
|
-
return obj;
|
|
1093
|
-
},
|
|
1094
|
-
|
|
1095
|
-
create(base?: DeepPartial<MonitoringConfig_HeadersEntry>): MonitoringConfig_HeadersEntry {
|
|
1096
|
-
return MonitoringConfig_HeadersEntry.fromPartial(base ?? {});
|
|
1097
|
-
},
|
|
1098
|
-
fromPartial(object: DeepPartial<MonitoringConfig_HeadersEntry>): MonitoringConfig_HeadersEntry {
|
|
1099
|
-
const message = createBaseMonitoringConfig_HeadersEntry();
|
|
1100
|
-
message.key = object.key ?? "";
|
|
1101
|
-
message.value = object.value ?? "";
|
|
1102
|
-
return message;
|
|
1103
|
-
},
|
|
1104
|
-
};
|
|
1105
|
-
|
|
1106
|
-
function createBaseBuildExecution(): BuildExecution {
|
|
1107
|
-
return { id: "", status: 0, startTime: undefined, endTime: undefined };
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
export const BuildExecution: MessageFns<BuildExecution> = {
|
|
1111
|
-
encode(message: BuildExecution, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1112
|
-
if (message.id !== "") {
|
|
1113
|
-
writer.uint32(10).string(message.id);
|
|
1114
|
-
}
|
|
1115
|
-
if (message.status !== 0) {
|
|
1116
|
-
writer.uint32(16).int32(message.status);
|
|
1117
|
-
}
|
|
1118
|
-
if (message.startTime !== undefined) {
|
|
1119
|
-
writer.uint32(26).string(message.startTime);
|
|
1120
|
-
}
|
|
1121
|
-
if (message.endTime !== undefined) {
|
|
1122
|
-
writer.uint32(34).string(message.endTime);
|
|
1123
|
-
}
|
|
1124
|
-
return writer;
|
|
1125
|
-
},
|
|
1126
|
-
|
|
1127
|
-
decode(input: BinaryReader | Uint8Array, length?: number): BuildExecution {
|
|
1128
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1129
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1130
|
-
const message = createBaseBuildExecution();
|
|
1131
|
-
while (reader.pos < end) {
|
|
1132
|
-
const tag = reader.uint32();
|
|
1133
|
-
switch (tag >>> 3) {
|
|
1134
|
-
case 1: {
|
|
1135
|
-
if (tag !== 10) {
|
|
1136
|
-
break;
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
message.id = reader.string();
|
|
1140
|
-
continue;
|
|
1141
|
-
}
|
|
1142
|
-
case 2: {
|
|
1143
|
-
if (tag !== 16) {
|
|
1144
|
-
break;
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
message.status = reader.int32() as any;
|
|
1148
|
-
continue;
|
|
1149
|
-
}
|
|
1150
|
-
case 3: {
|
|
1151
|
-
if (tag !== 26) {
|
|
1152
|
-
break;
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
message.startTime = reader.string();
|
|
1156
|
-
continue;
|
|
1157
|
-
}
|
|
1158
|
-
case 4: {
|
|
1159
|
-
if (tag !== 34) {
|
|
1160
|
-
break;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
message.endTime = reader.string();
|
|
1164
|
-
continue;
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1168
|
-
break;
|
|
1169
|
-
}
|
|
1170
|
-
reader.skip(tag & 7);
|
|
1171
|
-
}
|
|
1172
|
-
return message;
|
|
1173
|
-
},
|
|
1174
|
-
|
|
1175
|
-
fromJSON(object: any): BuildExecution {
|
|
1176
|
-
return {
|
|
1177
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1178
|
-
status: isSet(object.status) ? buildStatusFromJSON(object.status) : 0,
|
|
1179
|
-
startTime: isSet(object.startTime)
|
|
1180
|
-
? globalThis.String(object.startTime)
|
|
1181
|
-
: isSet(object.start_time)
|
|
1182
|
-
? globalThis.String(object.start_time)
|
|
1183
|
-
: undefined,
|
|
1184
|
-
endTime: isSet(object.endTime)
|
|
1185
|
-
? globalThis.String(object.endTime)
|
|
1186
|
-
: isSet(object.end_time)
|
|
1187
|
-
? globalThis.String(object.end_time)
|
|
1188
|
-
: undefined,
|
|
1189
|
-
};
|
|
1190
|
-
},
|
|
1191
|
-
|
|
1192
|
-
toJSON(message: BuildExecution): unknown {
|
|
1193
|
-
const obj: any = {};
|
|
1194
|
-
if (message.id !== "") {
|
|
1195
|
-
obj.id = message.id;
|
|
1196
|
-
}
|
|
1197
|
-
if (message.status !== 0) {
|
|
1198
|
-
obj.status = buildStatusToJSON(message.status);
|
|
1199
|
-
}
|
|
1200
|
-
if (message.startTime !== undefined) {
|
|
1201
|
-
obj.startTime = message.startTime;
|
|
1202
|
-
}
|
|
1203
|
-
if (message.endTime !== undefined) {
|
|
1204
|
-
obj.endTime = message.endTime;
|
|
1205
|
-
}
|
|
1206
|
-
return obj;
|
|
1207
|
-
},
|
|
1208
|
-
|
|
1209
|
-
create(base?: DeepPartial<BuildExecution>): BuildExecution {
|
|
1210
|
-
return BuildExecution.fromPartial(base ?? {});
|
|
1211
|
-
},
|
|
1212
|
-
fromPartial(object: DeepPartial<BuildExecution>): BuildExecution {
|
|
1213
|
-
const message = createBaseBuildExecution();
|
|
1214
|
-
message.id = object.id ?? "";
|
|
1215
|
-
message.status = object.status ?? 0;
|
|
1216
|
-
message.startTime = object.startTime ?? undefined;
|
|
1217
|
-
message.endTime = object.endTime ?? undefined;
|
|
1218
|
-
return message;
|
|
1219
|
-
},
|
|
1220
|
-
};
|
|
1221
|
-
|
|
1222
|
-
/** Build service for managing build operations */
|
|
1223
|
-
export type BuildServiceDefinition = typeof BuildServiceDefinition;
|
|
1224
|
-
export const BuildServiceDefinition = {
|
|
1225
|
-
name: "BuildService",
|
|
1226
|
-
fullName: "alien_bindings.build.BuildService",
|
|
1227
|
-
methods: {
|
|
1228
|
-
/** Start a new build with the given configuration */
|
|
1229
|
-
startBuild: {
|
|
1230
|
-
name: "StartBuild",
|
|
1231
|
-
requestType: StartBuildRequest as typeof StartBuildRequest,
|
|
1232
|
-
requestStream: false,
|
|
1233
|
-
responseType: StartBuildResponse as typeof StartBuildResponse,
|
|
1234
|
-
responseStream: false,
|
|
1235
|
-
options: {},
|
|
1236
|
-
},
|
|
1237
|
-
/** Get the status of a specific build execution */
|
|
1238
|
-
getBuildStatus: {
|
|
1239
|
-
name: "GetBuildStatus",
|
|
1240
|
-
requestType: GetBuildStatusRequest as typeof GetBuildStatusRequest,
|
|
1241
|
-
requestStream: false,
|
|
1242
|
-
responseType: GetBuildStatusResponse as typeof GetBuildStatusResponse,
|
|
1243
|
-
responseStream: false,
|
|
1244
|
-
options: {},
|
|
1245
|
-
},
|
|
1246
|
-
/** Stop or cancel a running build */
|
|
1247
|
-
stopBuild: {
|
|
1248
|
-
name: "StopBuild",
|
|
1249
|
-
requestType: StopBuildRequest as typeof StopBuildRequest,
|
|
1250
|
-
requestStream: false,
|
|
1251
|
-
responseType: StopBuildResponse as typeof StopBuildResponse,
|
|
1252
|
-
responseStream: false,
|
|
1253
|
-
options: {},
|
|
1254
|
-
},
|
|
1255
|
-
},
|
|
1256
|
-
} as const;
|
|
1257
|
-
|
|
1258
|
-
export interface BuildServiceImplementation<CallContextExt = {}> {
|
|
1259
|
-
/** Start a new build with the given configuration */
|
|
1260
|
-
startBuild(
|
|
1261
|
-
request: StartBuildRequest,
|
|
1262
|
-
context: CallContext & CallContextExt,
|
|
1263
|
-
): Promise<DeepPartial<StartBuildResponse>>;
|
|
1264
|
-
/** Get the status of a specific build execution */
|
|
1265
|
-
getBuildStatus(
|
|
1266
|
-
request: GetBuildStatusRequest,
|
|
1267
|
-
context: CallContext & CallContextExt,
|
|
1268
|
-
): Promise<DeepPartial<GetBuildStatusResponse>>;
|
|
1269
|
-
/** Stop or cancel a running build */
|
|
1270
|
-
stopBuild(request: StopBuildRequest, context: CallContext & CallContextExt): Promise<DeepPartial<StopBuildResponse>>;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
export interface BuildServiceClient<CallOptionsExt = {}> {
|
|
1274
|
-
/** Start a new build with the given configuration */
|
|
1275
|
-
startBuild(
|
|
1276
|
-
request: DeepPartial<StartBuildRequest>,
|
|
1277
|
-
options?: CallOptions & CallOptionsExt,
|
|
1278
|
-
): Promise<StartBuildResponse>;
|
|
1279
|
-
/** Get the status of a specific build execution */
|
|
1280
|
-
getBuildStatus(
|
|
1281
|
-
request: DeepPartial<GetBuildStatusRequest>,
|
|
1282
|
-
options?: CallOptions & CallOptionsExt,
|
|
1283
|
-
): Promise<GetBuildStatusResponse>;
|
|
1284
|
-
/** Stop or cancel a running build */
|
|
1285
|
-
stopBuild(request: DeepPartial<StopBuildRequest>, options?: CallOptions & CallOptionsExt): Promise<StopBuildResponse>;
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1289
|
-
|
|
1290
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1291
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1292
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1293
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1294
|
-
: Partial<T>;
|
|
1295
|
-
|
|
1296
|
-
function isObject(value: any): boolean {
|
|
1297
|
-
return typeof value === "object" && value !== null;
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
function isSet(value: any): boolean {
|
|
1301
|
-
return value !== null && value !== undefined;
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
export interface MessageFns<T> {
|
|
1305
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1306
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1307
|
-
fromJSON(object: any): T;
|
|
1308
|
-
toJSON(message: T): unknown;
|
|
1309
|
-
create(base?: DeepPartial<T>): T;
|
|
1310
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
1311
|
-
}
|