@altf4llc/vorpal-sdk 0.1.0-beta.0
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.
Potentially problematic release.
This version of @altf4llc/vorpal-sdk might be problematic. Click here for more details.
- package/dist/api/agent/agent.d.ts +68 -0
- package/dist/api/agent/agent.d.ts.map +1 -0
- package/dist/api/agent/agent.js +246 -0
- package/dist/api/agent/agent.js.map +1 -0
- package/dist/api/archive/archive.d.ts +98 -0
- package/dist/api/archive/archive.d.ts.map +1 -0
- package/dist/api/archive/archive.js +288 -0
- package/dist/api/archive/archive.js.map +1 -0
- package/dist/api/artifact/artifact.d.ts +169 -0
- package/dist/api/artifact/artifact.d.ts.map +1 -0
- package/dist/api/artifact/artifact.js +1041 -0
- package/dist/api/artifact/artifact.js.map +1 -0
- package/dist/api/context/context.d.ts +42 -0
- package/dist/api/context/context.d.ts.map +1 -0
- package/dist/api/context/context.js +31 -0
- package/dist/api/context/context.js.map +1 -0
- package/dist/api/worker/worker.d.ts +65 -0
- package/dist/api/worker/worker.d.ts.map +1 -0
- package/dist/api/worker/worker.js +185 -0
- package/dist/api/worker/worker.js.map +1 -0
- package/dist/artifact/language/go.d.ts +161 -0
- package/dist/artifact/language/go.d.ts.map +1 -0
- package/dist/artifact/language/go.js +355 -0
- package/dist/artifact/language/go.js.map +1 -0
- package/dist/artifact/language/rust.d.ts +132 -0
- package/dist/artifact/language/rust.d.ts.map +1 -0
- package/dist/artifact/language/rust.js +569 -0
- package/dist/artifact/language/rust.js.map +1 -0
- package/dist/artifact/language/typescript.d.ts +139 -0
- package/dist/artifact/language/typescript.d.ts.map +1 -0
- package/dist/artifact/language/typescript.js +328 -0
- package/dist/artifact/language/typescript.js.map +1 -0
- package/dist/artifact/step.d.ts +28 -0
- package/dist/artifact/step.d.ts.map +1 -0
- package/dist/artifact/step.js +214 -0
- package/dist/artifact/step.js.map +1 -0
- package/dist/artifact.d.ts +371 -0
- package/dist/artifact.d.ts.map +1 -0
- package/dist/artifact.js +914 -0
- package/dist/artifact.js.map +1 -0
- package/dist/cli.d.ts +42 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +112 -0
- package/dist/cli.js.map +1 -0
- package/dist/context.d.ts +163 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +761 -0
- package/dist/context.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/system.d.ts +20 -0
- package/dist/system.d.ts.map +1 -0
- package/dist/system.js +76 -0
- package/dist/system.js.map +1 -0
- package/dist/vorpal.d.ts +2 -0
- package/dist/vorpal.d.ts.map +1 -0
- package/dist/vorpal.js +148 -0
- package/dist/vorpal.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,1041 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.2
|
|
4
|
+
// protoc v4.25.4
|
|
5
|
+
// source: artifact/artifact.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
import { makeGenericClientConstructor, } from "@grpc/grpc-js";
|
|
9
|
+
export const protobufPackage = "vorpal.artifact";
|
|
10
|
+
export var ArtifactSystem;
|
|
11
|
+
(function (ArtifactSystem) {
|
|
12
|
+
ArtifactSystem[ArtifactSystem["UNKNOWN_SYSTEM"] = 0] = "UNKNOWN_SYSTEM";
|
|
13
|
+
ArtifactSystem[ArtifactSystem["AARCH64_DARWIN"] = 1] = "AARCH64_DARWIN";
|
|
14
|
+
ArtifactSystem[ArtifactSystem["AARCH64_LINUX"] = 2] = "AARCH64_LINUX";
|
|
15
|
+
ArtifactSystem[ArtifactSystem["X8664_DARWIN"] = 3] = "X8664_DARWIN";
|
|
16
|
+
ArtifactSystem[ArtifactSystem["X8664_LINUX"] = 4] = "X8664_LINUX";
|
|
17
|
+
ArtifactSystem[ArtifactSystem["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
+
})(ArtifactSystem || (ArtifactSystem = {}));
|
|
19
|
+
export function artifactSystemFromJSON(object) {
|
|
20
|
+
switch (object) {
|
|
21
|
+
case 0:
|
|
22
|
+
case "UNKNOWN_SYSTEM":
|
|
23
|
+
return ArtifactSystem.UNKNOWN_SYSTEM;
|
|
24
|
+
case 1:
|
|
25
|
+
case "AARCH64_DARWIN":
|
|
26
|
+
return ArtifactSystem.AARCH64_DARWIN;
|
|
27
|
+
case 2:
|
|
28
|
+
case "AARCH64_LINUX":
|
|
29
|
+
return ArtifactSystem.AARCH64_LINUX;
|
|
30
|
+
case 3:
|
|
31
|
+
case "X8664_DARWIN":
|
|
32
|
+
return ArtifactSystem.X8664_DARWIN;
|
|
33
|
+
case 4:
|
|
34
|
+
case "X8664_LINUX":
|
|
35
|
+
return ArtifactSystem.X8664_LINUX;
|
|
36
|
+
case -1:
|
|
37
|
+
case "UNRECOGNIZED":
|
|
38
|
+
default:
|
|
39
|
+
return ArtifactSystem.UNRECOGNIZED;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export function artifactSystemToJSON(object) {
|
|
43
|
+
switch (object) {
|
|
44
|
+
case ArtifactSystem.UNKNOWN_SYSTEM:
|
|
45
|
+
return "UNKNOWN_SYSTEM";
|
|
46
|
+
case ArtifactSystem.AARCH64_DARWIN:
|
|
47
|
+
return "AARCH64_DARWIN";
|
|
48
|
+
case ArtifactSystem.AARCH64_LINUX:
|
|
49
|
+
return "AARCH64_LINUX";
|
|
50
|
+
case ArtifactSystem.X8664_DARWIN:
|
|
51
|
+
return "X8664_DARWIN";
|
|
52
|
+
case ArtifactSystem.X8664_LINUX:
|
|
53
|
+
return "X8664_LINUX";
|
|
54
|
+
case ArtifactSystem.UNRECOGNIZED:
|
|
55
|
+
default:
|
|
56
|
+
return "UNRECOGNIZED";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function createBaseArtifactSource() {
|
|
60
|
+
return { digest: undefined, excludes: [], includes: [], name: "", path: "" };
|
|
61
|
+
}
|
|
62
|
+
export const ArtifactSource = {
|
|
63
|
+
encode(message, writer = new BinaryWriter()) {
|
|
64
|
+
if (message.digest !== undefined) {
|
|
65
|
+
writer.uint32(10).string(message.digest);
|
|
66
|
+
}
|
|
67
|
+
for (const v of message.excludes) {
|
|
68
|
+
writer.uint32(18).string(v);
|
|
69
|
+
}
|
|
70
|
+
for (const v of message.includes) {
|
|
71
|
+
writer.uint32(26).string(v);
|
|
72
|
+
}
|
|
73
|
+
if (message.name !== "") {
|
|
74
|
+
writer.uint32(34).string(message.name);
|
|
75
|
+
}
|
|
76
|
+
if (message.path !== "") {
|
|
77
|
+
writer.uint32(42).string(message.path);
|
|
78
|
+
}
|
|
79
|
+
return writer;
|
|
80
|
+
},
|
|
81
|
+
decode(input, length) {
|
|
82
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
83
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
84
|
+
const message = createBaseArtifactSource();
|
|
85
|
+
while (reader.pos < end) {
|
|
86
|
+
const tag = reader.uint32();
|
|
87
|
+
switch (tag >>> 3) {
|
|
88
|
+
case 1: {
|
|
89
|
+
if (tag !== 10) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
message.digest = reader.string();
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
case 2: {
|
|
96
|
+
if (tag !== 18) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
message.excludes.push(reader.string());
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
case 3: {
|
|
103
|
+
if (tag !== 26) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
message.includes.push(reader.string());
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
case 4: {
|
|
110
|
+
if (tag !== 34) {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
message.name = reader.string();
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
case 5: {
|
|
117
|
+
if (tag !== 42) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
message.path = reader.string();
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
reader.skip(tag & 7);
|
|
128
|
+
}
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
fromJSON(object) {
|
|
132
|
+
return {
|
|
133
|
+
digest: isSet(object.digest) ? globalThis.String(object.digest) : undefined,
|
|
134
|
+
excludes: globalThis.Array.isArray(object?.excludes) ? object.excludes.map((e) => globalThis.String(e)) : [],
|
|
135
|
+
includes: globalThis.Array.isArray(object?.includes) ? object.includes.map((e) => globalThis.String(e)) : [],
|
|
136
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
137
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
138
|
+
};
|
|
139
|
+
},
|
|
140
|
+
toJSON(message) {
|
|
141
|
+
const obj = {};
|
|
142
|
+
if (message.digest !== undefined) {
|
|
143
|
+
obj.digest = message.digest;
|
|
144
|
+
}
|
|
145
|
+
if (message.excludes?.length) {
|
|
146
|
+
obj.excludes = message.excludes;
|
|
147
|
+
}
|
|
148
|
+
if (message.includes?.length) {
|
|
149
|
+
obj.includes = message.includes;
|
|
150
|
+
}
|
|
151
|
+
if (message.name !== "") {
|
|
152
|
+
obj.name = message.name;
|
|
153
|
+
}
|
|
154
|
+
if (message.path !== "") {
|
|
155
|
+
obj.path = message.path;
|
|
156
|
+
}
|
|
157
|
+
return obj;
|
|
158
|
+
},
|
|
159
|
+
create(base) {
|
|
160
|
+
return ArtifactSource.fromPartial(base ?? {});
|
|
161
|
+
},
|
|
162
|
+
fromPartial(object) {
|
|
163
|
+
const message = createBaseArtifactSource();
|
|
164
|
+
message.digest = object.digest ?? undefined;
|
|
165
|
+
message.excludes = object.excludes?.map((e) => e) || [];
|
|
166
|
+
message.includes = object.includes?.map((e) => e) || [];
|
|
167
|
+
message.name = object.name ?? "";
|
|
168
|
+
message.path = object.path ?? "";
|
|
169
|
+
return message;
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
function createBaseArtifactStepSecret() {
|
|
173
|
+
return { name: "", value: "" };
|
|
174
|
+
}
|
|
175
|
+
export const ArtifactStepSecret = {
|
|
176
|
+
encode(message, writer = new BinaryWriter()) {
|
|
177
|
+
if (message.name !== "") {
|
|
178
|
+
writer.uint32(10).string(message.name);
|
|
179
|
+
}
|
|
180
|
+
if (message.value !== "") {
|
|
181
|
+
writer.uint32(18).string(message.value);
|
|
182
|
+
}
|
|
183
|
+
return writer;
|
|
184
|
+
},
|
|
185
|
+
decode(input, length) {
|
|
186
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
187
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
188
|
+
const message = createBaseArtifactStepSecret();
|
|
189
|
+
while (reader.pos < end) {
|
|
190
|
+
const tag = reader.uint32();
|
|
191
|
+
switch (tag >>> 3) {
|
|
192
|
+
case 1: {
|
|
193
|
+
if (tag !== 10) {
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
message.name = reader.string();
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
case 2: {
|
|
200
|
+
if (tag !== 18) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
message.value = reader.string();
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
reader.skip(tag & 7);
|
|
211
|
+
}
|
|
212
|
+
return message;
|
|
213
|
+
},
|
|
214
|
+
fromJSON(object) {
|
|
215
|
+
return {
|
|
216
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
217
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
toJSON(message) {
|
|
221
|
+
const obj = {};
|
|
222
|
+
if (message.name !== "") {
|
|
223
|
+
obj.name = message.name;
|
|
224
|
+
}
|
|
225
|
+
if (message.value !== "") {
|
|
226
|
+
obj.value = message.value;
|
|
227
|
+
}
|
|
228
|
+
return obj;
|
|
229
|
+
},
|
|
230
|
+
create(base) {
|
|
231
|
+
return ArtifactStepSecret.fromPartial(base ?? {});
|
|
232
|
+
},
|
|
233
|
+
fromPartial(object) {
|
|
234
|
+
const message = createBaseArtifactStepSecret();
|
|
235
|
+
message.name = object.name ?? "";
|
|
236
|
+
message.value = object.value ?? "";
|
|
237
|
+
return message;
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
function createBaseArtifactStep() {
|
|
241
|
+
return { entrypoint: undefined, script: undefined, secrets: [], arguments: [], artifacts: [], environments: [] };
|
|
242
|
+
}
|
|
243
|
+
export const ArtifactStep = {
|
|
244
|
+
encode(message, writer = new BinaryWriter()) {
|
|
245
|
+
if (message.entrypoint !== undefined) {
|
|
246
|
+
writer.uint32(10).string(message.entrypoint);
|
|
247
|
+
}
|
|
248
|
+
if (message.script !== undefined) {
|
|
249
|
+
writer.uint32(18).string(message.script);
|
|
250
|
+
}
|
|
251
|
+
for (const v of message.secrets) {
|
|
252
|
+
ArtifactStepSecret.encode(v, writer.uint32(26).fork()).join();
|
|
253
|
+
}
|
|
254
|
+
for (const v of message.arguments) {
|
|
255
|
+
writer.uint32(34).string(v);
|
|
256
|
+
}
|
|
257
|
+
for (const v of message.artifacts) {
|
|
258
|
+
writer.uint32(42).string(v);
|
|
259
|
+
}
|
|
260
|
+
for (const v of message.environments) {
|
|
261
|
+
writer.uint32(50).string(v);
|
|
262
|
+
}
|
|
263
|
+
return writer;
|
|
264
|
+
},
|
|
265
|
+
decode(input, length) {
|
|
266
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
267
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
268
|
+
const message = createBaseArtifactStep();
|
|
269
|
+
while (reader.pos < end) {
|
|
270
|
+
const tag = reader.uint32();
|
|
271
|
+
switch (tag >>> 3) {
|
|
272
|
+
case 1: {
|
|
273
|
+
if (tag !== 10) {
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
message.entrypoint = reader.string();
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
case 2: {
|
|
280
|
+
if (tag !== 18) {
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
message.script = reader.string();
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
case 3: {
|
|
287
|
+
if (tag !== 26) {
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
message.secrets.push(ArtifactStepSecret.decode(reader, reader.uint32()));
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
case 4: {
|
|
294
|
+
if (tag !== 34) {
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
message.arguments.push(reader.string());
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
case 5: {
|
|
301
|
+
if (tag !== 42) {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
message.artifacts.push(reader.string());
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
case 6: {
|
|
308
|
+
if (tag !== 50) {
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
message.environments.push(reader.string());
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
reader.skip(tag & 7);
|
|
319
|
+
}
|
|
320
|
+
return message;
|
|
321
|
+
},
|
|
322
|
+
fromJSON(object) {
|
|
323
|
+
return {
|
|
324
|
+
entrypoint: isSet(object.entrypoint) ? globalThis.String(object.entrypoint) : undefined,
|
|
325
|
+
script: isSet(object.script) ? globalThis.String(object.script) : undefined,
|
|
326
|
+
secrets: globalThis.Array.isArray(object?.secrets)
|
|
327
|
+
? object.secrets.map((e) => ArtifactStepSecret.fromJSON(e))
|
|
328
|
+
: [],
|
|
329
|
+
arguments: globalThis.Array.isArray(object?.arguments)
|
|
330
|
+
? object.arguments.map((e) => globalThis.String(e))
|
|
331
|
+
: [],
|
|
332
|
+
artifacts: globalThis.Array.isArray(object?.artifacts)
|
|
333
|
+
? object.artifacts.map((e) => globalThis.String(e))
|
|
334
|
+
: [],
|
|
335
|
+
environments: globalThis.Array.isArray(object?.environments)
|
|
336
|
+
? object.environments.map((e) => globalThis.String(e))
|
|
337
|
+
: [],
|
|
338
|
+
};
|
|
339
|
+
},
|
|
340
|
+
toJSON(message) {
|
|
341
|
+
const obj = {};
|
|
342
|
+
if (message.entrypoint !== undefined) {
|
|
343
|
+
obj.entrypoint = message.entrypoint;
|
|
344
|
+
}
|
|
345
|
+
if (message.script !== undefined) {
|
|
346
|
+
obj.script = message.script;
|
|
347
|
+
}
|
|
348
|
+
if (message.secrets?.length) {
|
|
349
|
+
obj.secrets = message.secrets.map((e) => ArtifactStepSecret.toJSON(e));
|
|
350
|
+
}
|
|
351
|
+
if (message.arguments?.length) {
|
|
352
|
+
obj.arguments = message.arguments;
|
|
353
|
+
}
|
|
354
|
+
if (message.artifacts?.length) {
|
|
355
|
+
obj.artifacts = message.artifacts;
|
|
356
|
+
}
|
|
357
|
+
if (message.environments?.length) {
|
|
358
|
+
obj.environments = message.environments;
|
|
359
|
+
}
|
|
360
|
+
return obj;
|
|
361
|
+
},
|
|
362
|
+
create(base) {
|
|
363
|
+
return ArtifactStep.fromPartial(base ?? {});
|
|
364
|
+
},
|
|
365
|
+
fromPartial(object) {
|
|
366
|
+
const message = createBaseArtifactStep();
|
|
367
|
+
message.entrypoint = object.entrypoint ?? undefined;
|
|
368
|
+
message.script = object.script ?? undefined;
|
|
369
|
+
message.secrets = object.secrets?.map((e) => ArtifactStepSecret.fromPartial(e)) || [];
|
|
370
|
+
message.arguments = object.arguments?.map((e) => e) || [];
|
|
371
|
+
message.artifacts = object.artifacts?.map((e) => e) || [];
|
|
372
|
+
message.environments = object.environments?.map((e) => e) || [];
|
|
373
|
+
return message;
|
|
374
|
+
},
|
|
375
|
+
};
|
|
376
|
+
function createBaseArtifact() {
|
|
377
|
+
return { target: 0, sources: [], steps: [], systems: [], aliases: [], name: "" };
|
|
378
|
+
}
|
|
379
|
+
export const Artifact = {
|
|
380
|
+
encode(message, writer = new BinaryWriter()) {
|
|
381
|
+
if (message.target !== 0) {
|
|
382
|
+
writer.uint32(8).int32(message.target);
|
|
383
|
+
}
|
|
384
|
+
for (const v of message.sources) {
|
|
385
|
+
ArtifactSource.encode(v, writer.uint32(18).fork()).join();
|
|
386
|
+
}
|
|
387
|
+
for (const v of message.steps) {
|
|
388
|
+
ArtifactStep.encode(v, writer.uint32(26).fork()).join();
|
|
389
|
+
}
|
|
390
|
+
writer.uint32(34).fork();
|
|
391
|
+
for (const v of message.systems) {
|
|
392
|
+
writer.int32(v);
|
|
393
|
+
}
|
|
394
|
+
writer.join();
|
|
395
|
+
for (const v of message.aliases) {
|
|
396
|
+
writer.uint32(42).string(v);
|
|
397
|
+
}
|
|
398
|
+
if (message.name !== "") {
|
|
399
|
+
writer.uint32(50).string(message.name);
|
|
400
|
+
}
|
|
401
|
+
return writer;
|
|
402
|
+
},
|
|
403
|
+
decode(input, length) {
|
|
404
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
405
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
406
|
+
const message = createBaseArtifact();
|
|
407
|
+
while (reader.pos < end) {
|
|
408
|
+
const tag = reader.uint32();
|
|
409
|
+
switch (tag >>> 3) {
|
|
410
|
+
case 1: {
|
|
411
|
+
if (tag !== 8) {
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
message.target = reader.int32();
|
|
415
|
+
continue;
|
|
416
|
+
}
|
|
417
|
+
case 2: {
|
|
418
|
+
if (tag !== 18) {
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
message.sources.push(ArtifactSource.decode(reader, reader.uint32()));
|
|
422
|
+
continue;
|
|
423
|
+
}
|
|
424
|
+
case 3: {
|
|
425
|
+
if (tag !== 26) {
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
message.steps.push(ArtifactStep.decode(reader, reader.uint32()));
|
|
429
|
+
continue;
|
|
430
|
+
}
|
|
431
|
+
case 4: {
|
|
432
|
+
if (tag === 32) {
|
|
433
|
+
message.systems.push(reader.int32());
|
|
434
|
+
continue;
|
|
435
|
+
}
|
|
436
|
+
if (tag === 34) {
|
|
437
|
+
const end2 = reader.uint32() + reader.pos;
|
|
438
|
+
while (reader.pos < end2) {
|
|
439
|
+
message.systems.push(reader.int32());
|
|
440
|
+
}
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
case 5: {
|
|
446
|
+
if (tag !== 42) {
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
449
|
+
message.aliases.push(reader.string());
|
|
450
|
+
continue;
|
|
451
|
+
}
|
|
452
|
+
case 6: {
|
|
453
|
+
if (tag !== 50) {
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
message.name = reader.string();
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
reader.skip(tag & 7);
|
|
464
|
+
}
|
|
465
|
+
return message;
|
|
466
|
+
},
|
|
467
|
+
fromJSON(object) {
|
|
468
|
+
return {
|
|
469
|
+
target: isSet(object.target) ? artifactSystemFromJSON(object.target) : 0,
|
|
470
|
+
sources: globalThis.Array.isArray(object?.sources)
|
|
471
|
+
? object.sources.map((e) => ArtifactSource.fromJSON(e))
|
|
472
|
+
: [],
|
|
473
|
+
steps: globalThis.Array.isArray(object?.steps) ? object.steps.map((e) => ArtifactStep.fromJSON(e)) : [],
|
|
474
|
+
systems: globalThis.Array.isArray(object?.systems)
|
|
475
|
+
? object.systems.map((e) => artifactSystemFromJSON(e))
|
|
476
|
+
: [],
|
|
477
|
+
aliases: globalThis.Array.isArray(object?.aliases) ? object.aliases.map((e) => globalThis.String(e)) : [],
|
|
478
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
479
|
+
};
|
|
480
|
+
},
|
|
481
|
+
toJSON(message) {
|
|
482
|
+
const obj = {};
|
|
483
|
+
if (message.target !== 0) {
|
|
484
|
+
obj.target = artifactSystemToJSON(message.target);
|
|
485
|
+
}
|
|
486
|
+
if (message.sources?.length) {
|
|
487
|
+
obj.sources = message.sources.map((e) => ArtifactSource.toJSON(e));
|
|
488
|
+
}
|
|
489
|
+
if (message.steps?.length) {
|
|
490
|
+
obj.steps = message.steps.map((e) => ArtifactStep.toJSON(e));
|
|
491
|
+
}
|
|
492
|
+
if (message.systems?.length) {
|
|
493
|
+
obj.systems = message.systems.map((e) => artifactSystemToJSON(e));
|
|
494
|
+
}
|
|
495
|
+
if (message.aliases?.length) {
|
|
496
|
+
obj.aliases = message.aliases;
|
|
497
|
+
}
|
|
498
|
+
if (message.name !== "") {
|
|
499
|
+
obj.name = message.name;
|
|
500
|
+
}
|
|
501
|
+
return obj;
|
|
502
|
+
},
|
|
503
|
+
create(base) {
|
|
504
|
+
return Artifact.fromPartial(base ?? {});
|
|
505
|
+
},
|
|
506
|
+
fromPartial(object) {
|
|
507
|
+
const message = createBaseArtifact();
|
|
508
|
+
message.target = object.target ?? 0;
|
|
509
|
+
message.sources = object.sources?.map((e) => ArtifactSource.fromPartial(e)) || [];
|
|
510
|
+
message.steps = object.steps?.map((e) => ArtifactStep.fromPartial(e)) || [];
|
|
511
|
+
message.systems = object.systems?.map((e) => e) || [];
|
|
512
|
+
message.aliases = object.aliases?.map((e) => e) || [];
|
|
513
|
+
message.name = object.name ?? "";
|
|
514
|
+
return message;
|
|
515
|
+
},
|
|
516
|
+
};
|
|
517
|
+
function createBaseArtifactRequest() {
|
|
518
|
+
return { digest: "", namespace: "" };
|
|
519
|
+
}
|
|
520
|
+
export const ArtifactRequest = {
|
|
521
|
+
encode(message, writer = new BinaryWriter()) {
|
|
522
|
+
if (message.digest !== "") {
|
|
523
|
+
writer.uint32(10).string(message.digest);
|
|
524
|
+
}
|
|
525
|
+
if (message.namespace !== "") {
|
|
526
|
+
writer.uint32(18).string(message.namespace);
|
|
527
|
+
}
|
|
528
|
+
return writer;
|
|
529
|
+
},
|
|
530
|
+
decode(input, length) {
|
|
531
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
532
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
533
|
+
const message = createBaseArtifactRequest();
|
|
534
|
+
while (reader.pos < end) {
|
|
535
|
+
const tag = reader.uint32();
|
|
536
|
+
switch (tag >>> 3) {
|
|
537
|
+
case 1: {
|
|
538
|
+
if (tag !== 10) {
|
|
539
|
+
break;
|
|
540
|
+
}
|
|
541
|
+
message.digest = reader.string();
|
|
542
|
+
continue;
|
|
543
|
+
}
|
|
544
|
+
case 2: {
|
|
545
|
+
if (tag !== 18) {
|
|
546
|
+
break;
|
|
547
|
+
}
|
|
548
|
+
message.namespace = reader.string();
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
reader.skip(tag & 7);
|
|
556
|
+
}
|
|
557
|
+
return message;
|
|
558
|
+
},
|
|
559
|
+
fromJSON(object) {
|
|
560
|
+
return {
|
|
561
|
+
digest: isSet(object.digest) ? globalThis.String(object.digest) : "",
|
|
562
|
+
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
563
|
+
};
|
|
564
|
+
},
|
|
565
|
+
toJSON(message) {
|
|
566
|
+
const obj = {};
|
|
567
|
+
if (message.digest !== "") {
|
|
568
|
+
obj.digest = message.digest;
|
|
569
|
+
}
|
|
570
|
+
if (message.namespace !== "") {
|
|
571
|
+
obj.namespace = message.namespace;
|
|
572
|
+
}
|
|
573
|
+
return obj;
|
|
574
|
+
},
|
|
575
|
+
create(base) {
|
|
576
|
+
return ArtifactRequest.fromPartial(base ?? {});
|
|
577
|
+
},
|
|
578
|
+
fromPartial(object) {
|
|
579
|
+
const message = createBaseArtifactRequest();
|
|
580
|
+
message.digest = object.digest ?? "";
|
|
581
|
+
message.namespace = object.namespace ?? "";
|
|
582
|
+
return message;
|
|
583
|
+
},
|
|
584
|
+
};
|
|
585
|
+
function createBaseArtifactResponse() {
|
|
586
|
+
return { digest: "" };
|
|
587
|
+
}
|
|
588
|
+
export const ArtifactResponse = {
|
|
589
|
+
encode(message, writer = new BinaryWriter()) {
|
|
590
|
+
if (message.digest !== "") {
|
|
591
|
+
writer.uint32(10).string(message.digest);
|
|
592
|
+
}
|
|
593
|
+
return writer;
|
|
594
|
+
},
|
|
595
|
+
decode(input, length) {
|
|
596
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
597
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
598
|
+
const message = createBaseArtifactResponse();
|
|
599
|
+
while (reader.pos < end) {
|
|
600
|
+
const tag = reader.uint32();
|
|
601
|
+
switch (tag >>> 3) {
|
|
602
|
+
case 1: {
|
|
603
|
+
if (tag !== 10) {
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
message.digest = reader.string();
|
|
607
|
+
continue;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
reader.skip(tag & 7);
|
|
614
|
+
}
|
|
615
|
+
return message;
|
|
616
|
+
},
|
|
617
|
+
fromJSON(object) {
|
|
618
|
+
return { digest: isSet(object.digest) ? globalThis.String(object.digest) : "" };
|
|
619
|
+
},
|
|
620
|
+
toJSON(message) {
|
|
621
|
+
const obj = {};
|
|
622
|
+
if (message.digest !== "") {
|
|
623
|
+
obj.digest = message.digest;
|
|
624
|
+
}
|
|
625
|
+
return obj;
|
|
626
|
+
},
|
|
627
|
+
create(base) {
|
|
628
|
+
return ArtifactResponse.fromPartial(base ?? {});
|
|
629
|
+
},
|
|
630
|
+
fromPartial(object) {
|
|
631
|
+
const message = createBaseArtifactResponse();
|
|
632
|
+
message.digest = object.digest ?? "";
|
|
633
|
+
return message;
|
|
634
|
+
},
|
|
635
|
+
};
|
|
636
|
+
function createBaseArtifactsRequest() {
|
|
637
|
+
return { digests: [], namespace: "" };
|
|
638
|
+
}
|
|
639
|
+
export const ArtifactsRequest = {
|
|
640
|
+
encode(message, writer = new BinaryWriter()) {
|
|
641
|
+
for (const v of message.digests) {
|
|
642
|
+
writer.uint32(10).string(v);
|
|
643
|
+
}
|
|
644
|
+
if (message.namespace !== "") {
|
|
645
|
+
writer.uint32(18).string(message.namespace);
|
|
646
|
+
}
|
|
647
|
+
return writer;
|
|
648
|
+
},
|
|
649
|
+
decode(input, length) {
|
|
650
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
651
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
652
|
+
const message = createBaseArtifactsRequest();
|
|
653
|
+
while (reader.pos < end) {
|
|
654
|
+
const tag = reader.uint32();
|
|
655
|
+
switch (tag >>> 3) {
|
|
656
|
+
case 1: {
|
|
657
|
+
if (tag !== 10) {
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
message.digests.push(reader.string());
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
case 2: {
|
|
664
|
+
if (tag !== 18) {
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
message.namespace = reader.string();
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
reader.skip(tag & 7);
|
|
675
|
+
}
|
|
676
|
+
return message;
|
|
677
|
+
},
|
|
678
|
+
fromJSON(object) {
|
|
679
|
+
return {
|
|
680
|
+
digests: globalThis.Array.isArray(object?.digests) ? object.digests.map((e) => globalThis.String(e)) : [],
|
|
681
|
+
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
682
|
+
};
|
|
683
|
+
},
|
|
684
|
+
toJSON(message) {
|
|
685
|
+
const obj = {};
|
|
686
|
+
if (message.digests?.length) {
|
|
687
|
+
obj.digests = message.digests;
|
|
688
|
+
}
|
|
689
|
+
if (message.namespace !== "") {
|
|
690
|
+
obj.namespace = message.namespace;
|
|
691
|
+
}
|
|
692
|
+
return obj;
|
|
693
|
+
},
|
|
694
|
+
create(base) {
|
|
695
|
+
return ArtifactsRequest.fromPartial(base ?? {});
|
|
696
|
+
},
|
|
697
|
+
fromPartial(object) {
|
|
698
|
+
const message = createBaseArtifactsRequest();
|
|
699
|
+
message.digests = object.digests?.map((e) => e) || [];
|
|
700
|
+
message.namespace = object.namespace ?? "";
|
|
701
|
+
return message;
|
|
702
|
+
},
|
|
703
|
+
};
|
|
704
|
+
function createBaseArtifactsResponse() {
|
|
705
|
+
return { digests: [] };
|
|
706
|
+
}
|
|
707
|
+
export const ArtifactsResponse = {
|
|
708
|
+
encode(message, writer = new BinaryWriter()) {
|
|
709
|
+
for (const v of message.digests) {
|
|
710
|
+
writer.uint32(10).string(v);
|
|
711
|
+
}
|
|
712
|
+
return writer;
|
|
713
|
+
},
|
|
714
|
+
decode(input, length) {
|
|
715
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
716
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
717
|
+
const message = createBaseArtifactsResponse();
|
|
718
|
+
while (reader.pos < end) {
|
|
719
|
+
const tag = reader.uint32();
|
|
720
|
+
switch (tag >>> 3) {
|
|
721
|
+
case 1: {
|
|
722
|
+
if (tag !== 10) {
|
|
723
|
+
break;
|
|
724
|
+
}
|
|
725
|
+
message.digests.push(reader.string());
|
|
726
|
+
continue;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
730
|
+
break;
|
|
731
|
+
}
|
|
732
|
+
reader.skip(tag & 7);
|
|
733
|
+
}
|
|
734
|
+
return message;
|
|
735
|
+
},
|
|
736
|
+
fromJSON(object) {
|
|
737
|
+
return {
|
|
738
|
+
digests: globalThis.Array.isArray(object?.digests) ? object.digests.map((e) => globalThis.String(e)) : [],
|
|
739
|
+
};
|
|
740
|
+
},
|
|
741
|
+
toJSON(message) {
|
|
742
|
+
const obj = {};
|
|
743
|
+
if (message.digests?.length) {
|
|
744
|
+
obj.digests = message.digests;
|
|
745
|
+
}
|
|
746
|
+
return obj;
|
|
747
|
+
},
|
|
748
|
+
create(base) {
|
|
749
|
+
return ArtifactsResponse.fromPartial(base ?? {});
|
|
750
|
+
},
|
|
751
|
+
fromPartial(object) {
|
|
752
|
+
const message = createBaseArtifactsResponse();
|
|
753
|
+
message.digests = object.digests?.map((e) => e) || [];
|
|
754
|
+
return message;
|
|
755
|
+
},
|
|
756
|
+
};
|
|
757
|
+
function createBaseGetArtifactAliasRequest() {
|
|
758
|
+
return { system: 0, name: "", namespace: "", tag: "" };
|
|
759
|
+
}
|
|
760
|
+
export const GetArtifactAliasRequest = {
|
|
761
|
+
encode(message, writer = new BinaryWriter()) {
|
|
762
|
+
if (message.system !== 0) {
|
|
763
|
+
writer.uint32(8).int32(message.system);
|
|
764
|
+
}
|
|
765
|
+
if (message.name !== "") {
|
|
766
|
+
writer.uint32(18).string(message.name);
|
|
767
|
+
}
|
|
768
|
+
if (message.namespace !== "") {
|
|
769
|
+
writer.uint32(26).string(message.namespace);
|
|
770
|
+
}
|
|
771
|
+
if (message.tag !== "") {
|
|
772
|
+
writer.uint32(34).string(message.tag);
|
|
773
|
+
}
|
|
774
|
+
return writer;
|
|
775
|
+
},
|
|
776
|
+
decode(input, length) {
|
|
777
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
778
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
779
|
+
const message = createBaseGetArtifactAliasRequest();
|
|
780
|
+
while (reader.pos < end) {
|
|
781
|
+
const tag = reader.uint32();
|
|
782
|
+
switch (tag >>> 3) {
|
|
783
|
+
case 1: {
|
|
784
|
+
if (tag !== 8) {
|
|
785
|
+
break;
|
|
786
|
+
}
|
|
787
|
+
message.system = reader.int32();
|
|
788
|
+
continue;
|
|
789
|
+
}
|
|
790
|
+
case 2: {
|
|
791
|
+
if (tag !== 18) {
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
message.name = reader.string();
|
|
795
|
+
continue;
|
|
796
|
+
}
|
|
797
|
+
case 3: {
|
|
798
|
+
if (tag !== 26) {
|
|
799
|
+
break;
|
|
800
|
+
}
|
|
801
|
+
message.namespace = reader.string();
|
|
802
|
+
continue;
|
|
803
|
+
}
|
|
804
|
+
case 4: {
|
|
805
|
+
if (tag !== 34) {
|
|
806
|
+
break;
|
|
807
|
+
}
|
|
808
|
+
message.tag = reader.string();
|
|
809
|
+
continue;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
813
|
+
break;
|
|
814
|
+
}
|
|
815
|
+
reader.skip(tag & 7);
|
|
816
|
+
}
|
|
817
|
+
return message;
|
|
818
|
+
},
|
|
819
|
+
fromJSON(object) {
|
|
820
|
+
return {
|
|
821
|
+
system: isSet(object.system) ? artifactSystemFromJSON(object.system) : 0,
|
|
822
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
823
|
+
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
824
|
+
tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
|
|
825
|
+
};
|
|
826
|
+
},
|
|
827
|
+
toJSON(message) {
|
|
828
|
+
const obj = {};
|
|
829
|
+
if (message.system !== 0) {
|
|
830
|
+
obj.system = artifactSystemToJSON(message.system);
|
|
831
|
+
}
|
|
832
|
+
if (message.name !== "") {
|
|
833
|
+
obj.name = message.name;
|
|
834
|
+
}
|
|
835
|
+
if (message.namespace !== "") {
|
|
836
|
+
obj.namespace = message.namespace;
|
|
837
|
+
}
|
|
838
|
+
if (message.tag !== "") {
|
|
839
|
+
obj.tag = message.tag;
|
|
840
|
+
}
|
|
841
|
+
return obj;
|
|
842
|
+
},
|
|
843
|
+
create(base) {
|
|
844
|
+
return GetArtifactAliasRequest.fromPartial(base ?? {});
|
|
845
|
+
},
|
|
846
|
+
fromPartial(object) {
|
|
847
|
+
const message = createBaseGetArtifactAliasRequest();
|
|
848
|
+
message.system = object.system ?? 0;
|
|
849
|
+
message.name = object.name ?? "";
|
|
850
|
+
message.namespace = object.namespace ?? "";
|
|
851
|
+
message.tag = object.tag ?? "";
|
|
852
|
+
return message;
|
|
853
|
+
},
|
|
854
|
+
};
|
|
855
|
+
function createBaseGetArtifactAliasResponse() {
|
|
856
|
+
return { digest: "" };
|
|
857
|
+
}
|
|
858
|
+
export const GetArtifactAliasResponse = {
|
|
859
|
+
encode(message, writer = new BinaryWriter()) {
|
|
860
|
+
if (message.digest !== "") {
|
|
861
|
+
writer.uint32(10).string(message.digest);
|
|
862
|
+
}
|
|
863
|
+
return writer;
|
|
864
|
+
},
|
|
865
|
+
decode(input, length) {
|
|
866
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
867
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
868
|
+
const message = createBaseGetArtifactAliasResponse();
|
|
869
|
+
while (reader.pos < end) {
|
|
870
|
+
const tag = reader.uint32();
|
|
871
|
+
switch (tag >>> 3) {
|
|
872
|
+
case 1: {
|
|
873
|
+
if (tag !== 10) {
|
|
874
|
+
break;
|
|
875
|
+
}
|
|
876
|
+
message.digest = reader.string();
|
|
877
|
+
continue;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
reader.skip(tag & 7);
|
|
884
|
+
}
|
|
885
|
+
return message;
|
|
886
|
+
},
|
|
887
|
+
fromJSON(object) {
|
|
888
|
+
return { digest: isSet(object.digest) ? globalThis.String(object.digest) : "" };
|
|
889
|
+
},
|
|
890
|
+
toJSON(message) {
|
|
891
|
+
const obj = {};
|
|
892
|
+
if (message.digest !== "") {
|
|
893
|
+
obj.digest = message.digest;
|
|
894
|
+
}
|
|
895
|
+
return obj;
|
|
896
|
+
},
|
|
897
|
+
create(base) {
|
|
898
|
+
return GetArtifactAliasResponse.fromPartial(base ?? {});
|
|
899
|
+
},
|
|
900
|
+
fromPartial(object) {
|
|
901
|
+
const message = createBaseGetArtifactAliasResponse();
|
|
902
|
+
message.digest = object.digest ?? "";
|
|
903
|
+
return message;
|
|
904
|
+
},
|
|
905
|
+
};
|
|
906
|
+
function createBaseStoreArtifactRequest() {
|
|
907
|
+
return { artifact: undefined, artifact_aliases: [], artifact_namespace: "" };
|
|
908
|
+
}
|
|
909
|
+
export const StoreArtifactRequest = {
|
|
910
|
+
encode(message, writer = new BinaryWriter()) {
|
|
911
|
+
if (message.artifact !== undefined) {
|
|
912
|
+
Artifact.encode(message.artifact, writer.uint32(10).fork()).join();
|
|
913
|
+
}
|
|
914
|
+
for (const v of message.artifact_aliases) {
|
|
915
|
+
writer.uint32(18).string(v);
|
|
916
|
+
}
|
|
917
|
+
if (message.artifact_namespace !== "") {
|
|
918
|
+
writer.uint32(26).string(message.artifact_namespace);
|
|
919
|
+
}
|
|
920
|
+
return writer;
|
|
921
|
+
},
|
|
922
|
+
decode(input, length) {
|
|
923
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
924
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
925
|
+
const message = createBaseStoreArtifactRequest();
|
|
926
|
+
while (reader.pos < end) {
|
|
927
|
+
const tag = reader.uint32();
|
|
928
|
+
switch (tag >>> 3) {
|
|
929
|
+
case 1: {
|
|
930
|
+
if (tag !== 10) {
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
message.artifact = Artifact.decode(reader, reader.uint32());
|
|
934
|
+
continue;
|
|
935
|
+
}
|
|
936
|
+
case 2: {
|
|
937
|
+
if (tag !== 18) {
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
|
+
message.artifact_aliases.push(reader.string());
|
|
941
|
+
continue;
|
|
942
|
+
}
|
|
943
|
+
case 3: {
|
|
944
|
+
if (tag !== 26) {
|
|
945
|
+
break;
|
|
946
|
+
}
|
|
947
|
+
message.artifact_namespace = reader.string();
|
|
948
|
+
continue;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
reader.skip(tag & 7);
|
|
955
|
+
}
|
|
956
|
+
return message;
|
|
957
|
+
},
|
|
958
|
+
fromJSON(object) {
|
|
959
|
+
return {
|
|
960
|
+
artifact: isSet(object.artifact) ? Artifact.fromJSON(object.artifact) : undefined,
|
|
961
|
+
artifact_aliases: globalThis.Array.isArray(object?.artifactAliases)
|
|
962
|
+
? object.artifactAliases.map((e) => globalThis.String(e))
|
|
963
|
+
: globalThis.Array.isArray(object?.artifact_aliases)
|
|
964
|
+
? object.artifact_aliases.map((e) => globalThis.String(e))
|
|
965
|
+
: [],
|
|
966
|
+
artifact_namespace: isSet(object.artifactNamespace)
|
|
967
|
+
? globalThis.String(object.artifactNamespace)
|
|
968
|
+
: isSet(object.artifact_namespace)
|
|
969
|
+
? globalThis.String(object.artifact_namespace)
|
|
970
|
+
: "",
|
|
971
|
+
};
|
|
972
|
+
},
|
|
973
|
+
toJSON(message) {
|
|
974
|
+
const obj = {};
|
|
975
|
+
if (message.artifact !== undefined) {
|
|
976
|
+
obj.artifact = Artifact.toJSON(message.artifact);
|
|
977
|
+
}
|
|
978
|
+
if (message.artifact_aliases?.length) {
|
|
979
|
+
obj.artifactAliases = message.artifact_aliases;
|
|
980
|
+
}
|
|
981
|
+
if (message.artifact_namespace !== "") {
|
|
982
|
+
obj.artifactNamespace = message.artifact_namespace;
|
|
983
|
+
}
|
|
984
|
+
return obj;
|
|
985
|
+
},
|
|
986
|
+
create(base) {
|
|
987
|
+
return StoreArtifactRequest.fromPartial(base ?? {});
|
|
988
|
+
},
|
|
989
|
+
fromPartial(object) {
|
|
990
|
+
const message = createBaseStoreArtifactRequest();
|
|
991
|
+
message.artifact = (object.artifact !== undefined && object.artifact !== null)
|
|
992
|
+
? Artifact.fromPartial(object.artifact)
|
|
993
|
+
: undefined;
|
|
994
|
+
message.artifact_aliases = object.artifact_aliases?.map((e) => e) || [];
|
|
995
|
+
message.artifact_namespace = object.artifact_namespace ?? "";
|
|
996
|
+
return message;
|
|
997
|
+
},
|
|
998
|
+
};
|
|
999
|
+
export const ArtifactServiceService = {
|
|
1000
|
+
getArtifact: {
|
|
1001
|
+
path: "/vorpal.artifact.ArtifactService/GetArtifact",
|
|
1002
|
+
requestStream: false,
|
|
1003
|
+
responseStream: false,
|
|
1004
|
+
requestSerialize: (value) => Buffer.from(ArtifactRequest.encode(value).finish()),
|
|
1005
|
+
requestDeserialize: (value) => ArtifactRequest.decode(value),
|
|
1006
|
+
responseSerialize: (value) => Buffer.from(Artifact.encode(value).finish()),
|
|
1007
|
+
responseDeserialize: (value) => Artifact.decode(value),
|
|
1008
|
+
},
|
|
1009
|
+
getArtifactAlias: {
|
|
1010
|
+
path: "/vorpal.artifact.ArtifactService/GetArtifactAlias",
|
|
1011
|
+
requestStream: false,
|
|
1012
|
+
responseStream: false,
|
|
1013
|
+
requestSerialize: (value) => Buffer.from(GetArtifactAliasRequest.encode(value).finish()),
|
|
1014
|
+
requestDeserialize: (value) => GetArtifactAliasRequest.decode(value),
|
|
1015
|
+
responseSerialize: (value) => Buffer.from(GetArtifactAliasResponse.encode(value).finish()),
|
|
1016
|
+
responseDeserialize: (value) => GetArtifactAliasResponse.decode(value),
|
|
1017
|
+
},
|
|
1018
|
+
getArtifacts: {
|
|
1019
|
+
path: "/vorpal.artifact.ArtifactService/GetArtifacts",
|
|
1020
|
+
requestStream: false,
|
|
1021
|
+
responseStream: false,
|
|
1022
|
+
requestSerialize: (value) => Buffer.from(ArtifactsRequest.encode(value).finish()),
|
|
1023
|
+
requestDeserialize: (value) => ArtifactsRequest.decode(value),
|
|
1024
|
+
responseSerialize: (value) => Buffer.from(ArtifactsResponse.encode(value).finish()),
|
|
1025
|
+
responseDeserialize: (value) => ArtifactsResponse.decode(value),
|
|
1026
|
+
},
|
|
1027
|
+
storeArtifact: {
|
|
1028
|
+
path: "/vorpal.artifact.ArtifactService/StoreArtifact",
|
|
1029
|
+
requestStream: false,
|
|
1030
|
+
responseStream: false,
|
|
1031
|
+
requestSerialize: (value) => Buffer.from(StoreArtifactRequest.encode(value).finish()),
|
|
1032
|
+
requestDeserialize: (value) => StoreArtifactRequest.decode(value),
|
|
1033
|
+
responseSerialize: (value) => Buffer.from(ArtifactResponse.encode(value).finish()),
|
|
1034
|
+
responseDeserialize: (value) => ArtifactResponse.decode(value),
|
|
1035
|
+
},
|
|
1036
|
+
};
|
|
1037
|
+
export const ArtifactServiceClient = makeGenericClientConstructor(ArtifactServiceService, "vorpal.artifact.ArtifactService");
|
|
1038
|
+
function isSet(value) {
|
|
1039
|
+
return value !== null && value !== undefined;
|
|
1040
|
+
}
|
|
1041
|
+
//# sourceMappingURL=artifact.js.map
|