modal 0.7.3-dev.1 → 0.7.4
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/index.cjs +3515 -194
- package/dist/index.d.cts +301 -3
- package/dist/index.d.ts +301 -3
- package/dist/index.js +3513 -194
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -51,6 +51,7 @@ __export(index_exports, {
|
|
|
51
51
|
InvalidError: () => InvalidError,
|
|
52
52
|
ModalClient: () => ModalClient2,
|
|
53
53
|
NotFoundError: () => NotFoundError,
|
|
54
|
+
Probe: () => Probe2,
|
|
54
55
|
Proxy: () => Proxy3,
|
|
55
56
|
ProxyService: () => ProxyService,
|
|
56
57
|
Queue: () => Queue,
|
|
@@ -65,6 +66,7 @@ __export(index_exports, {
|
|
|
65
66
|
SandboxTimeoutError: () => SandboxTimeoutError,
|
|
66
67
|
Secret: () => Secret,
|
|
67
68
|
SecretService: () => SecretService,
|
|
69
|
+
TimeoutError: () => TimeoutError,
|
|
68
70
|
Volume: () => Volume,
|
|
69
71
|
VolumeService: () => VolumeService,
|
|
70
72
|
checkForRenamedParams: () => checkForRenamedParams,
|
|
@@ -3084,6 +3086,371 @@ var AppClientDisconnectRequest = {
|
|
|
3084
3086
|
return message;
|
|
3085
3087
|
}
|
|
3086
3088
|
};
|
|
3089
|
+
function createBaseAppCountLogsRequest() {
|
|
3090
|
+
return {
|
|
3091
|
+
appId: "",
|
|
3092
|
+
taskId: "",
|
|
3093
|
+
functionId: "",
|
|
3094
|
+
functionCallId: "",
|
|
3095
|
+
sandboxId: "",
|
|
3096
|
+
searchText: "",
|
|
3097
|
+
since: void 0,
|
|
3098
|
+
until: void 0,
|
|
3099
|
+
bucketSecs: 0,
|
|
3100
|
+
source: 0
|
|
3101
|
+
};
|
|
3102
|
+
}
|
|
3103
|
+
var AppCountLogsRequest = {
|
|
3104
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3105
|
+
if (message.appId !== "") {
|
|
3106
|
+
writer.uint32(10).string(message.appId);
|
|
3107
|
+
}
|
|
3108
|
+
if (message.taskId !== "") {
|
|
3109
|
+
writer.uint32(18).string(message.taskId);
|
|
3110
|
+
}
|
|
3111
|
+
if (message.functionId !== "") {
|
|
3112
|
+
writer.uint32(26).string(message.functionId);
|
|
3113
|
+
}
|
|
3114
|
+
if (message.functionCallId !== "") {
|
|
3115
|
+
writer.uint32(34).string(message.functionCallId);
|
|
3116
|
+
}
|
|
3117
|
+
if (message.sandboxId !== "") {
|
|
3118
|
+
writer.uint32(42).string(message.sandboxId);
|
|
3119
|
+
}
|
|
3120
|
+
if (message.searchText !== "") {
|
|
3121
|
+
writer.uint32(50).string(message.searchText);
|
|
3122
|
+
}
|
|
3123
|
+
if (message.since !== void 0) {
|
|
3124
|
+
Timestamp.encode(toTimestamp(message.since), writer.uint32(58).fork()).join();
|
|
3125
|
+
}
|
|
3126
|
+
if (message.until !== void 0) {
|
|
3127
|
+
Timestamp.encode(toTimestamp(message.until), writer.uint32(66).fork()).join();
|
|
3128
|
+
}
|
|
3129
|
+
if (message.bucketSecs !== 0) {
|
|
3130
|
+
writer.uint32(72).uint32(message.bucketSecs);
|
|
3131
|
+
}
|
|
3132
|
+
if (message.source !== 0) {
|
|
3133
|
+
writer.uint32(80).int32(message.source);
|
|
3134
|
+
}
|
|
3135
|
+
return writer;
|
|
3136
|
+
},
|
|
3137
|
+
decode(input, length) {
|
|
3138
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3139
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3140
|
+
const message = createBaseAppCountLogsRequest();
|
|
3141
|
+
while (reader.pos < end) {
|
|
3142
|
+
const tag = reader.uint32();
|
|
3143
|
+
switch (tag >>> 3) {
|
|
3144
|
+
case 1: {
|
|
3145
|
+
if (tag !== 10) {
|
|
3146
|
+
break;
|
|
3147
|
+
}
|
|
3148
|
+
message.appId = reader.string();
|
|
3149
|
+
continue;
|
|
3150
|
+
}
|
|
3151
|
+
case 2: {
|
|
3152
|
+
if (tag !== 18) {
|
|
3153
|
+
break;
|
|
3154
|
+
}
|
|
3155
|
+
message.taskId = reader.string();
|
|
3156
|
+
continue;
|
|
3157
|
+
}
|
|
3158
|
+
case 3: {
|
|
3159
|
+
if (tag !== 26) {
|
|
3160
|
+
break;
|
|
3161
|
+
}
|
|
3162
|
+
message.functionId = reader.string();
|
|
3163
|
+
continue;
|
|
3164
|
+
}
|
|
3165
|
+
case 4: {
|
|
3166
|
+
if (tag !== 34) {
|
|
3167
|
+
break;
|
|
3168
|
+
}
|
|
3169
|
+
message.functionCallId = reader.string();
|
|
3170
|
+
continue;
|
|
3171
|
+
}
|
|
3172
|
+
case 5: {
|
|
3173
|
+
if (tag !== 42) {
|
|
3174
|
+
break;
|
|
3175
|
+
}
|
|
3176
|
+
message.sandboxId = reader.string();
|
|
3177
|
+
continue;
|
|
3178
|
+
}
|
|
3179
|
+
case 6: {
|
|
3180
|
+
if (tag !== 50) {
|
|
3181
|
+
break;
|
|
3182
|
+
}
|
|
3183
|
+
message.searchText = reader.string();
|
|
3184
|
+
continue;
|
|
3185
|
+
}
|
|
3186
|
+
case 7: {
|
|
3187
|
+
if (tag !== 58) {
|
|
3188
|
+
break;
|
|
3189
|
+
}
|
|
3190
|
+
message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3191
|
+
continue;
|
|
3192
|
+
}
|
|
3193
|
+
case 8: {
|
|
3194
|
+
if (tag !== 66) {
|
|
3195
|
+
break;
|
|
3196
|
+
}
|
|
3197
|
+
message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3198
|
+
continue;
|
|
3199
|
+
}
|
|
3200
|
+
case 9: {
|
|
3201
|
+
if (tag !== 72) {
|
|
3202
|
+
break;
|
|
3203
|
+
}
|
|
3204
|
+
message.bucketSecs = reader.uint32();
|
|
3205
|
+
continue;
|
|
3206
|
+
}
|
|
3207
|
+
case 10: {
|
|
3208
|
+
if (tag !== 80) {
|
|
3209
|
+
break;
|
|
3210
|
+
}
|
|
3211
|
+
message.source = reader.int32();
|
|
3212
|
+
continue;
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3216
|
+
break;
|
|
3217
|
+
}
|
|
3218
|
+
reader.skip(tag & 7);
|
|
3219
|
+
}
|
|
3220
|
+
return message;
|
|
3221
|
+
},
|
|
3222
|
+
fromJSON(object) {
|
|
3223
|
+
return {
|
|
3224
|
+
appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
|
|
3225
|
+
taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
3226
|
+
functionId: isSet4(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
3227
|
+
functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
3228
|
+
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
3229
|
+
searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : "",
|
|
3230
|
+
since: isSet4(object.since) ? fromJsonTimestamp(object.since) : void 0,
|
|
3231
|
+
until: isSet4(object.until) ? fromJsonTimestamp(object.until) : void 0,
|
|
3232
|
+
bucketSecs: isSet4(object.bucketSecs) ? globalThis.Number(object.bucketSecs) : 0,
|
|
3233
|
+
source: isSet4(object.source) ? fileDescriptorFromJSON(object.source) : 0
|
|
3234
|
+
};
|
|
3235
|
+
},
|
|
3236
|
+
toJSON(message) {
|
|
3237
|
+
const obj = {};
|
|
3238
|
+
if (message.appId !== "") {
|
|
3239
|
+
obj.appId = message.appId;
|
|
3240
|
+
}
|
|
3241
|
+
if (message.taskId !== "") {
|
|
3242
|
+
obj.taskId = message.taskId;
|
|
3243
|
+
}
|
|
3244
|
+
if (message.functionId !== "") {
|
|
3245
|
+
obj.functionId = message.functionId;
|
|
3246
|
+
}
|
|
3247
|
+
if (message.functionCallId !== "") {
|
|
3248
|
+
obj.functionCallId = message.functionCallId;
|
|
3249
|
+
}
|
|
3250
|
+
if (message.sandboxId !== "") {
|
|
3251
|
+
obj.sandboxId = message.sandboxId;
|
|
3252
|
+
}
|
|
3253
|
+
if (message.searchText !== "") {
|
|
3254
|
+
obj.searchText = message.searchText;
|
|
3255
|
+
}
|
|
3256
|
+
if (message.since !== void 0) {
|
|
3257
|
+
obj.since = message.since.toISOString();
|
|
3258
|
+
}
|
|
3259
|
+
if (message.until !== void 0) {
|
|
3260
|
+
obj.until = message.until.toISOString();
|
|
3261
|
+
}
|
|
3262
|
+
if (message.bucketSecs !== 0) {
|
|
3263
|
+
obj.bucketSecs = Math.round(message.bucketSecs);
|
|
3264
|
+
}
|
|
3265
|
+
if (message.source !== 0) {
|
|
3266
|
+
obj.source = fileDescriptorToJSON(message.source);
|
|
3267
|
+
}
|
|
3268
|
+
return obj;
|
|
3269
|
+
},
|
|
3270
|
+
create(base) {
|
|
3271
|
+
return AppCountLogsRequest.fromPartial(base ?? {});
|
|
3272
|
+
},
|
|
3273
|
+
fromPartial(object) {
|
|
3274
|
+
const message = createBaseAppCountLogsRequest();
|
|
3275
|
+
message.appId = object.appId ?? "";
|
|
3276
|
+
message.taskId = object.taskId ?? "";
|
|
3277
|
+
message.functionId = object.functionId ?? "";
|
|
3278
|
+
message.functionCallId = object.functionCallId ?? "";
|
|
3279
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
3280
|
+
message.searchText = object.searchText ?? "";
|
|
3281
|
+
message.since = object.since ?? void 0;
|
|
3282
|
+
message.until = object.until ?? void 0;
|
|
3283
|
+
message.bucketSecs = object.bucketSecs ?? 0;
|
|
3284
|
+
message.source = object.source ?? 0;
|
|
3285
|
+
return message;
|
|
3286
|
+
}
|
|
3287
|
+
};
|
|
3288
|
+
function createBaseAppCountLogsResponse() {
|
|
3289
|
+
return { appId: "", buckets: [] };
|
|
3290
|
+
}
|
|
3291
|
+
var AppCountLogsResponse = {
|
|
3292
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3293
|
+
if (message.appId !== "") {
|
|
3294
|
+
writer.uint32(10).string(message.appId);
|
|
3295
|
+
}
|
|
3296
|
+
for (const v of message.buckets) {
|
|
3297
|
+
AppCountLogsResponse_LogBucket.encode(v, writer.uint32(18).fork()).join();
|
|
3298
|
+
}
|
|
3299
|
+
return writer;
|
|
3300
|
+
},
|
|
3301
|
+
decode(input, length) {
|
|
3302
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3303
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3304
|
+
const message = createBaseAppCountLogsResponse();
|
|
3305
|
+
while (reader.pos < end) {
|
|
3306
|
+
const tag = reader.uint32();
|
|
3307
|
+
switch (tag >>> 3) {
|
|
3308
|
+
case 1: {
|
|
3309
|
+
if (tag !== 10) {
|
|
3310
|
+
break;
|
|
3311
|
+
}
|
|
3312
|
+
message.appId = reader.string();
|
|
3313
|
+
continue;
|
|
3314
|
+
}
|
|
3315
|
+
case 2: {
|
|
3316
|
+
if (tag !== 18) {
|
|
3317
|
+
break;
|
|
3318
|
+
}
|
|
3319
|
+
message.buckets.push(AppCountLogsResponse_LogBucket.decode(reader, reader.uint32()));
|
|
3320
|
+
continue;
|
|
3321
|
+
}
|
|
3322
|
+
}
|
|
3323
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3324
|
+
break;
|
|
3325
|
+
}
|
|
3326
|
+
reader.skip(tag & 7);
|
|
3327
|
+
}
|
|
3328
|
+
return message;
|
|
3329
|
+
},
|
|
3330
|
+
fromJSON(object) {
|
|
3331
|
+
return {
|
|
3332
|
+
appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
|
|
3333
|
+
buckets: globalThis.Array.isArray(object?.buckets) ? object.buckets.map((e) => AppCountLogsResponse_LogBucket.fromJSON(e)) : []
|
|
3334
|
+
};
|
|
3335
|
+
},
|
|
3336
|
+
toJSON(message) {
|
|
3337
|
+
const obj = {};
|
|
3338
|
+
if (message.appId !== "") {
|
|
3339
|
+
obj.appId = message.appId;
|
|
3340
|
+
}
|
|
3341
|
+
if (message.buckets?.length) {
|
|
3342
|
+
obj.buckets = message.buckets.map((e) => AppCountLogsResponse_LogBucket.toJSON(e));
|
|
3343
|
+
}
|
|
3344
|
+
return obj;
|
|
3345
|
+
},
|
|
3346
|
+
create(base) {
|
|
3347
|
+
return AppCountLogsResponse.fromPartial(base ?? {});
|
|
3348
|
+
},
|
|
3349
|
+
fromPartial(object) {
|
|
3350
|
+
const message = createBaseAppCountLogsResponse();
|
|
3351
|
+
message.appId = object.appId ?? "";
|
|
3352
|
+
message.buckets = object.buckets?.map((e) => AppCountLogsResponse_LogBucket.fromPartial(e)) || [];
|
|
3353
|
+
return message;
|
|
3354
|
+
}
|
|
3355
|
+
};
|
|
3356
|
+
function createBaseAppCountLogsResponse_LogBucket() {
|
|
3357
|
+
return { bucketStartAt: void 0, stdoutLogs: 0, stderrLogs: 0, systemLogs: 0 };
|
|
3358
|
+
}
|
|
3359
|
+
var AppCountLogsResponse_LogBucket = {
|
|
3360
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3361
|
+
if (message.bucketStartAt !== void 0) {
|
|
3362
|
+
Timestamp.encode(toTimestamp(message.bucketStartAt), writer.uint32(10).fork()).join();
|
|
3363
|
+
}
|
|
3364
|
+
if (message.stdoutLogs !== 0) {
|
|
3365
|
+
writer.uint32(16).uint64(message.stdoutLogs);
|
|
3366
|
+
}
|
|
3367
|
+
if (message.stderrLogs !== 0) {
|
|
3368
|
+
writer.uint32(24).uint64(message.stderrLogs);
|
|
3369
|
+
}
|
|
3370
|
+
if (message.systemLogs !== 0) {
|
|
3371
|
+
writer.uint32(32).uint64(message.systemLogs);
|
|
3372
|
+
}
|
|
3373
|
+
return writer;
|
|
3374
|
+
},
|
|
3375
|
+
decode(input, length) {
|
|
3376
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3377
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3378
|
+
const message = createBaseAppCountLogsResponse_LogBucket();
|
|
3379
|
+
while (reader.pos < end) {
|
|
3380
|
+
const tag = reader.uint32();
|
|
3381
|
+
switch (tag >>> 3) {
|
|
3382
|
+
case 1: {
|
|
3383
|
+
if (tag !== 10) {
|
|
3384
|
+
break;
|
|
3385
|
+
}
|
|
3386
|
+
message.bucketStartAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3387
|
+
continue;
|
|
3388
|
+
}
|
|
3389
|
+
case 2: {
|
|
3390
|
+
if (tag !== 16) {
|
|
3391
|
+
break;
|
|
3392
|
+
}
|
|
3393
|
+
message.stdoutLogs = longToNumber2(reader.uint64());
|
|
3394
|
+
continue;
|
|
3395
|
+
}
|
|
3396
|
+
case 3: {
|
|
3397
|
+
if (tag !== 24) {
|
|
3398
|
+
break;
|
|
3399
|
+
}
|
|
3400
|
+
message.stderrLogs = longToNumber2(reader.uint64());
|
|
3401
|
+
continue;
|
|
3402
|
+
}
|
|
3403
|
+
case 4: {
|
|
3404
|
+
if (tag !== 32) {
|
|
3405
|
+
break;
|
|
3406
|
+
}
|
|
3407
|
+
message.systemLogs = longToNumber2(reader.uint64());
|
|
3408
|
+
continue;
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3411
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3412
|
+
break;
|
|
3413
|
+
}
|
|
3414
|
+
reader.skip(tag & 7);
|
|
3415
|
+
}
|
|
3416
|
+
return message;
|
|
3417
|
+
},
|
|
3418
|
+
fromJSON(object) {
|
|
3419
|
+
return {
|
|
3420
|
+
bucketStartAt: isSet4(object.bucketStartAt) ? fromJsonTimestamp(object.bucketStartAt) : void 0,
|
|
3421
|
+
stdoutLogs: isSet4(object.stdoutLogs) ? globalThis.Number(object.stdoutLogs) : 0,
|
|
3422
|
+
stderrLogs: isSet4(object.stderrLogs) ? globalThis.Number(object.stderrLogs) : 0,
|
|
3423
|
+
systemLogs: isSet4(object.systemLogs) ? globalThis.Number(object.systemLogs) : 0
|
|
3424
|
+
};
|
|
3425
|
+
},
|
|
3426
|
+
toJSON(message) {
|
|
3427
|
+
const obj = {};
|
|
3428
|
+
if (message.bucketStartAt !== void 0) {
|
|
3429
|
+
obj.bucketStartAt = message.bucketStartAt.toISOString();
|
|
3430
|
+
}
|
|
3431
|
+
if (message.stdoutLogs !== 0) {
|
|
3432
|
+
obj.stdoutLogs = Math.round(message.stdoutLogs);
|
|
3433
|
+
}
|
|
3434
|
+
if (message.stderrLogs !== 0) {
|
|
3435
|
+
obj.stderrLogs = Math.round(message.stderrLogs);
|
|
3436
|
+
}
|
|
3437
|
+
if (message.systemLogs !== 0) {
|
|
3438
|
+
obj.systemLogs = Math.round(message.systemLogs);
|
|
3439
|
+
}
|
|
3440
|
+
return obj;
|
|
3441
|
+
},
|
|
3442
|
+
create(base) {
|
|
3443
|
+
return AppCountLogsResponse_LogBucket.fromPartial(base ?? {});
|
|
3444
|
+
},
|
|
3445
|
+
fromPartial(object) {
|
|
3446
|
+
const message = createBaseAppCountLogsResponse_LogBucket();
|
|
3447
|
+
message.bucketStartAt = object.bucketStartAt ?? void 0;
|
|
3448
|
+
message.stdoutLogs = object.stdoutLogs ?? 0;
|
|
3449
|
+
message.stderrLogs = object.stderrLogs ?? 0;
|
|
3450
|
+
message.systemLogs = object.systemLogs ?? 0;
|
|
3451
|
+
return message;
|
|
3452
|
+
}
|
|
3453
|
+
};
|
|
3087
3454
|
function createBaseAppCreateRequest() {
|
|
3088
3455
|
return { clientId: "", description: "", environmentName: "", appState: 0, tags: {} };
|
|
3089
3456
|
}
|
|
@@ -3832,6 +4199,258 @@ var AppDeploymentHistoryResponse = {
|
|
|
3832
4199
|
return message;
|
|
3833
4200
|
}
|
|
3834
4201
|
};
|
|
4202
|
+
function createBaseAppFetchLogsRequest() {
|
|
4203
|
+
return {
|
|
4204
|
+
appId: "",
|
|
4205
|
+
since: void 0,
|
|
4206
|
+
until: void 0,
|
|
4207
|
+
limit: 0,
|
|
4208
|
+
source: 0,
|
|
4209
|
+
functionId: "",
|
|
4210
|
+
functionCallId: "",
|
|
4211
|
+
taskId: "",
|
|
4212
|
+
sandboxId: "",
|
|
4213
|
+
searchText: ""
|
|
4214
|
+
};
|
|
4215
|
+
}
|
|
4216
|
+
var AppFetchLogsRequest = {
|
|
4217
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4218
|
+
if (message.appId !== "") {
|
|
4219
|
+
writer.uint32(10).string(message.appId);
|
|
4220
|
+
}
|
|
4221
|
+
if (message.since !== void 0) {
|
|
4222
|
+
Timestamp.encode(toTimestamp(message.since), writer.uint32(18).fork()).join();
|
|
4223
|
+
}
|
|
4224
|
+
if (message.until !== void 0) {
|
|
4225
|
+
Timestamp.encode(toTimestamp(message.until), writer.uint32(26).fork()).join();
|
|
4226
|
+
}
|
|
4227
|
+
if (message.limit !== 0) {
|
|
4228
|
+
writer.uint32(32).uint32(message.limit);
|
|
4229
|
+
}
|
|
4230
|
+
if (message.source !== 0) {
|
|
4231
|
+
writer.uint32(40).int32(message.source);
|
|
4232
|
+
}
|
|
4233
|
+
if (message.functionId !== "") {
|
|
4234
|
+
writer.uint32(50).string(message.functionId);
|
|
4235
|
+
}
|
|
4236
|
+
if (message.functionCallId !== "") {
|
|
4237
|
+
writer.uint32(58).string(message.functionCallId);
|
|
4238
|
+
}
|
|
4239
|
+
if (message.taskId !== "") {
|
|
4240
|
+
writer.uint32(66).string(message.taskId);
|
|
4241
|
+
}
|
|
4242
|
+
if (message.sandboxId !== "") {
|
|
4243
|
+
writer.uint32(74).string(message.sandboxId);
|
|
4244
|
+
}
|
|
4245
|
+
if (message.searchText !== "") {
|
|
4246
|
+
writer.uint32(82).string(message.searchText);
|
|
4247
|
+
}
|
|
4248
|
+
return writer;
|
|
4249
|
+
},
|
|
4250
|
+
decode(input, length) {
|
|
4251
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4252
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4253
|
+
const message = createBaseAppFetchLogsRequest();
|
|
4254
|
+
while (reader.pos < end) {
|
|
4255
|
+
const tag = reader.uint32();
|
|
4256
|
+
switch (tag >>> 3) {
|
|
4257
|
+
case 1: {
|
|
4258
|
+
if (tag !== 10) {
|
|
4259
|
+
break;
|
|
4260
|
+
}
|
|
4261
|
+
message.appId = reader.string();
|
|
4262
|
+
continue;
|
|
4263
|
+
}
|
|
4264
|
+
case 2: {
|
|
4265
|
+
if (tag !== 18) {
|
|
4266
|
+
break;
|
|
4267
|
+
}
|
|
4268
|
+
message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
4269
|
+
continue;
|
|
4270
|
+
}
|
|
4271
|
+
case 3: {
|
|
4272
|
+
if (tag !== 26) {
|
|
4273
|
+
break;
|
|
4274
|
+
}
|
|
4275
|
+
message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
4276
|
+
continue;
|
|
4277
|
+
}
|
|
4278
|
+
case 4: {
|
|
4279
|
+
if (tag !== 32) {
|
|
4280
|
+
break;
|
|
4281
|
+
}
|
|
4282
|
+
message.limit = reader.uint32();
|
|
4283
|
+
continue;
|
|
4284
|
+
}
|
|
4285
|
+
case 5: {
|
|
4286
|
+
if (tag !== 40) {
|
|
4287
|
+
break;
|
|
4288
|
+
}
|
|
4289
|
+
message.source = reader.int32();
|
|
4290
|
+
continue;
|
|
4291
|
+
}
|
|
4292
|
+
case 6: {
|
|
4293
|
+
if (tag !== 50) {
|
|
4294
|
+
break;
|
|
4295
|
+
}
|
|
4296
|
+
message.functionId = reader.string();
|
|
4297
|
+
continue;
|
|
4298
|
+
}
|
|
4299
|
+
case 7: {
|
|
4300
|
+
if (tag !== 58) {
|
|
4301
|
+
break;
|
|
4302
|
+
}
|
|
4303
|
+
message.functionCallId = reader.string();
|
|
4304
|
+
continue;
|
|
4305
|
+
}
|
|
4306
|
+
case 8: {
|
|
4307
|
+
if (tag !== 66) {
|
|
4308
|
+
break;
|
|
4309
|
+
}
|
|
4310
|
+
message.taskId = reader.string();
|
|
4311
|
+
continue;
|
|
4312
|
+
}
|
|
4313
|
+
case 9: {
|
|
4314
|
+
if (tag !== 74) {
|
|
4315
|
+
break;
|
|
4316
|
+
}
|
|
4317
|
+
message.sandboxId = reader.string();
|
|
4318
|
+
continue;
|
|
4319
|
+
}
|
|
4320
|
+
case 10: {
|
|
4321
|
+
if (tag !== 82) {
|
|
4322
|
+
break;
|
|
4323
|
+
}
|
|
4324
|
+
message.searchText = reader.string();
|
|
4325
|
+
continue;
|
|
4326
|
+
}
|
|
4327
|
+
}
|
|
4328
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4329
|
+
break;
|
|
4330
|
+
}
|
|
4331
|
+
reader.skip(tag & 7);
|
|
4332
|
+
}
|
|
4333
|
+
return message;
|
|
4334
|
+
},
|
|
4335
|
+
fromJSON(object) {
|
|
4336
|
+
return {
|
|
4337
|
+
appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
|
|
4338
|
+
since: isSet4(object.since) ? fromJsonTimestamp(object.since) : void 0,
|
|
4339
|
+
until: isSet4(object.until) ? fromJsonTimestamp(object.until) : void 0,
|
|
4340
|
+
limit: isSet4(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
4341
|
+
source: isSet4(object.source) ? fileDescriptorFromJSON(object.source) : 0,
|
|
4342
|
+
functionId: isSet4(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
4343
|
+
functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
4344
|
+
taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
4345
|
+
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
4346
|
+
searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : ""
|
|
4347
|
+
};
|
|
4348
|
+
},
|
|
4349
|
+
toJSON(message) {
|
|
4350
|
+
const obj = {};
|
|
4351
|
+
if (message.appId !== "") {
|
|
4352
|
+
obj.appId = message.appId;
|
|
4353
|
+
}
|
|
4354
|
+
if (message.since !== void 0) {
|
|
4355
|
+
obj.since = message.since.toISOString();
|
|
4356
|
+
}
|
|
4357
|
+
if (message.until !== void 0) {
|
|
4358
|
+
obj.until = message.until.toISOString();
|
|
4359
|
+
}
|
|
4360
|
+
if (message.limit !== 0) {
|
|
4361
|
+
obj.limit = Math.round(message.limit);
|
|
4362
|
+
}
|
|
4363
|
+
if (message.source !== 0) {
|
|
4364
|
+
obj.source = fileDescriptorToJSON(message.source);
|
|
4365
|
+
}
|
|
4366
|
+
if (message.functionId !== "") {
|
|
4367
|
+
obj.functionId = message.functionId;
|
|
4368
|
+
}
|
|
4369
|
+
if (message.functionCallId !== "") {
|
|
4370
|
+
obj.functionCallId = message.functionCallId;
|
|
4371
|
+
}
|
|
4372
|
+
if (message.taskId !== "") {
|
|
4373
|
+
obj.taskId = message.taskId;
|
|
4374
|
+
}
|
|
4375
|
+
if (message.sandboxId !== "") {
|
|
4376
|
+
obj.sandboxId = message.sandboxId;
|
|
4377
|
+
}
|
|
4378
|
+
if (message.searchText !== "") {
|
|
4379
|
+
obj.searchText = message.searchText;
|
|
4380
|
+
}
|
|
4381
|
+
return obj;
|
|
4382
|
+
},
|
|
4383
|
+
create(base) {
|
|
4384
|
+
return AppFetchLogsRequest.fromPartial(base ?? {});
|
|
4385
|
+
},
|
|
4386
|
+
fromPartial(object) {
|
|
4387
|
+
const message = createBaseAppFetchLogsRequest();
|
|
4388
|
+
message.appId = object.appId ?? "";
|
|
4389
|
+
message.since = object.since ?? void 0;
|
|
4390
|
+
message.until = object.until ?? void 0;
|
|
4391
|
+
message.limit = object.limit ?? 0;
|
|
4392
|
+
message.source = object.source ?? 0;
|
|
4393
|
+
message.functionId = object.functionId ?? "";
|
|
4394
|
+
message.functionCallId = object.functionCallId ?? "";
|
|
4395
|
+
message.taskId = object.taskId ?? "";
|
|
4396
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
4397
|
+
message.searchText = object.searchText ?? "";
|
|
4398
|
+
return message;
|
|
4399
|
+
}
|
|
4400
|
+
};
|
|
4401
|
+
function createBaseAppFetchLogsResponse() {
|
|
4402
|
+
return { batches: [] };
|
|
4403
|
+
}
|
|
4404
|
+
var AppFetchLogsResponse = {
|
|
4405
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4406
|
+
for (const v of message.batches) {
|
|
4407
|
+
TaskLogsBatch.encode(v, writer.uint32(10).fork()).join();
|
|
4408
|
+
}
|
|
4409
|
+
return writer;
|
|
4410
|
+
},
|
|
4411
|
+
decode(input, length) {
|
|
4412
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4413
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4414
|
+
const message = createBaseAppFetchLogsResponse();
|
|
4415
|
+
while (reader.pos < end) {
|
|
4416
|
+
const tag = reader.uint32();
|
|
4417
|
+
switch (tag >>> 3) {
|
|
4418
|
+
case 1: {
|
|
4419
|
+
if (tag !== 10) {
|
|
4420
|
+
break;
|
|
4421
|
+
}
|
|
4422
|
+
message.batches.push(TaskLogsBatch.decode(reader, reader.uint32()));
|
|
4423
|
+
continue;
|
|
4424
|
+
}
|
|
4425
|
+
}
|
|
4426
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4427
|
+
break;
|
|
4428
|
+
}
|
|
4429
|
+
reader.skip(tag & 7);
|
|
4430
|
+
}
|
|
4431
|
+
return message;
|
|
4432
|
+
},
|
|
4433
|
+
fromJSON(object) {
|
|
4434
|
+
return {
|
|
4435
|
+
batches: globalThis.Array.isArray(object?.batches) ? object.batches.map((e) => TaskLogsBatch.fromJSON(e)) : []
|
|
4436
|
+
};
|
|
4437
|
+
},
|
|
4438
|
+
toJSON(message) {
|
|
4439
|
+
const obj = {};
|
|
4440
|
+
if (message.batches?.length) {
|
|
4441
|
+
obj.batches = message.batches.map((e) => TaskLogsBatch.toJSON(e));
|
|
4442
|
+
}
|
|
4443
|
+
return obj;
|
|
4444
|
+
},
|
|
4445
|
+
create(base) {
|
|
4446
|
+
return AppFetchLogsResponse.fromPartial(base ?? {});
|
|
4447
|
+
},
|
|
4448
|
+
fromPartial(object) {
|
|
4449
|
+
const message = createBaseAppFetchLogsResponse();
|
|
4450
|
+
message.batches = object.batches?.map((e) => TaskLogsBatch.fromPartial(e)) || [];
|
|
4451
|
+
return message;
|
|
4452
|
+
}
|
|
4453
|
+
};
|
|
3835
4454
|
function createBaseAppGetByDeploymentNameRequest() {
|
|
3836
4455
|
return { name: "", environmentName: "" };
|
|
3837
4456
|
}
|
|
@@ -4053,6 +4672,108 @@ var AppGetLayoutResponse = {
|
|
|
4053
4672
|
return message;
|
|
4054
4673
|
}
|
|
4055
4674
|
};
|
|
4675
|
+
function createBaseAppGetLifecycleRequest() {
|
|
4676
|
+
return { appId: "" };
|
|
4677
|
+
}
|
|
4678
|
+
var AppGetLifecycleRequest = {
|
|
4679
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4680
|
+
if (message.appId !== "") {
|
|
4681
|
+
writer.uint32(10).string(message.appId);
|
|
4682
|
+
}
|
|
4683
|
+
return writer;
|
|
4684
|
+
},
|
|
4685
|
+
decode(input, length) {
|
|
4686
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4687
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4688
|
+
const message = createBaseAppGetLifecycleRequest();
|
|
4689
|
+
while (reader.pos < end) {
|
|
4690
|
+
const tag = reader.uint32();
|
|
4691
|
+
switch (tag >>> 3) {
|
|
4692
|
+
case 1: {
|
|
4693
|
+
if (tag !== 10) {
|
|
4694
|
+
break;
|
|
4695
|
+
}
|
|
4696
|
+
message.appId = reader.string();
|
|
4697
|
+
continue;
|
|
4698
|
+
}
|
|
4699
|
+
}
|
|
4700
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4701
|
+
break;
|
|
4702
|
+
}
|
|
4703
|
+
reader.skip(tag & 7);
|
|
4704
|
+
}
|
|
4705
|
+
return message;
|
|
4706
|
+
},
|
|
4707
|
+
fromJSON(object) {
|
|
4708
|
+
return { appId: isSet4(object.appId) ? globalThis.String(object.appId) : "" };
|
|
4709
|
+
},
|
|
4710
|
+
toJSON(message) {
|
|
4711
|
+
const obj = {};
|
|
4712
|
+
if (message.appId !== "") {
|
|
4713
|
+
obj.appId = message.appId;
|
|
4714
|
+
}
|
|
4715
|
+
return obj;
|
|
4716
|
+
},
|
|
4717
|
+
create(base) {
|
|
4718
|
+
return AppGetLifecycleRequest.fromPartial(base ?? {});
|
|
4719
|
+
},
|
|
4720
|
+
fromPartial(object) {
|
|
4721
|
+
const message = createBaseAppGetLifecycleRequest();
|
|
4722
|
+
message.appId = object.appId ?? "";
|
|
4723
|
+
return message;
|
|
4724
|
+
}
|
|
4725
|
+
};
|
|
4726
|
+
function createBaseAppGetLifecycleResponse() {
|
|
4727
|
+
return { lifecycle: void 0 };
|
|
4728
|
+
}
|
|
4729
|
+
var AppGetLifecycleResponse = {
|
|
4730
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4731
|
+
if (message.lifecycle !== void 0) {
|
|
4732
|
+
AppLifecycle.encode(message.lifecycle, writer.uint32(10).fork()).join();
|
|
4733
|
+
}
|
|
4734
|
+
return writer;
|
|
4735
|
+
},
|
|
4736
|
+
decode(input, length) {
|
|
4737
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4738
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4739
|
+
const message = createBaseAppGetLifecycleResponse();
|
|
4740
|
+
while (reader.pos < end) {
|
|
4741
|
+
const tag = reader.uint32();
|
|
4742
|
+
switch (tag >>> 3) {
|
|
4743
|
+
case 1: {
|
|
4744
|
+
if (tag !== 10) {
|
|
4745
|
+
break;
|
|
4746
|
+
}
|
|
4747
|
+
message.lifecycle = AppLifecycle.decode(reader, reader.uint32());
|
|
4748
|
+
continue;
|
|
4749
|
+
}
|
|
4750
|
+
}
|
|
4751
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4752
|
+
break;
|
|
4753
|
+
}
|
|
4754
|
+
reader.skip(tag & 7);
|
|
4755
|
+
}
|
|
4756
|
+
return message;
|
|
4757
|
+
},
|
|
4758
|
+
fromJSON(object) {
|
|
4759
|
+
return { lifecycle: isSet4(object.lifecycle) ? AppLifecycle.fromJSON(object.lifecycle) : void 0 };
|
|
4760
|
+
},
|
|
4761
|
+
toJSON(message) {
|
|
4762
|
+
const obj = {};
|
|
4763
|
+
if (message.lifecycle !== void 0) {
|
|
4764
|
+
obj.lifecycle = AppLifecycle.toJSON(message.lifecycle);
|
|
4765
|
+
}
|
|
4766
|
+
return obj;
|
|
4767
|
+
},
|
|
4768
|
+
create(base) {
|
|
4769
|
+
return AppGetLifecycleResponse.fromPartial(base ?? {});
|
|
4770
|
+
},
|
|
4771
|
+
fromPartial(object) {
|
|
4772
|
+
const message = createBaseAppGetLifecycleResponse();
|
|
4773
|
+
message.lifecycle = object.lifecycle !== void 0 && object.lifecycle !== null ? AppLifecycle.fromPartial(object.lifecycle) : void 0;
|
|
4774
|
+
return message;
|
|
4775
|
+
}
|
|
4776
|
+
};
|
|
4056
4777
|
function createBaseAppGetLogsRequest() {
|
|
4057
4778
|
return {
|
|
4058
4779
|
appId: "",
|
|
@@ -4064,7 +4785,8 @@ function createBaseAppGetLogsRequest() {
|
|
|
4064
4785
|
taskId: "",
|
|
4065
4786
|
functionCallId: "",
|
|
4066
4787
|
fileDescriptor: 0,
|
|
4067
|
-
sandboxId: ""
|
|
4788
|
+
sandboxId: "",
|
|
4789
|
+
searchText: ""
|
|
4068
4790
|
};
|
|
4069
4791
|
}
|
|
4070
4792
|
var AppGetLogsRequest = {
|
|
@@ -4099,6 +4821,9 @@ var AppGetLogsRequest = {
|
|
|
4099
4821
|
if (message.sandboxId !== "") {
|
|
4100
4822
|
writer.uint32(82).string(message.sandboxId);
|
|
4101
4823
|
}
|
|
4824
|
+
if (message.searchText !== "") {
|
|
4825
|
+
writer.uint32(98).string(message.searchText);
|
|
4826
|
+
}
|
|
4102
4827
|
return writer;
|
|
4103
4828
|
},
|
|
4104
4829
|
decode(input, length) {
|
|
@@ -4178,6 +4903,13 @@ var AppGetLogsRequest = {
|
|
|
4178
4903
|
message.sandboxId = reader.string();
|
|
4179
4904
|
continue;
|
|
4180
4905
|
}
|
|
4906
|
+
case 12: {
|
|
4907
|
+
if (tag !== 98) {
|
|
4908
|
+
break;
|
|
4909
|
+
}
|
|
4910
|
+
message.searchText = reader.string();
|
|
4911
|
+
continue;
|
|
4912
|
+
}
|
|
4181
4913
|
}
|
|
4182
4914
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4183
4915
|
break;
|
|
@@ -4197,7 +4929,8 @@ var AppGetLogsRequest = {
|
|
|
4197
4929
|
taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
4198
4930
|
functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
4199
4931
|
fileDescriptor: isSet4(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
|
|
4200
|
-
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
|
|
4932
|
+
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
4933
|
+
searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : ""
|
|
4201
4934
|
};
|
|
4202
4935
|
},
|
|
4203
4936
|
toJSON(message) {
|
|
@@ -4232,6 +4965,9 @@ var AppGetLogsRequest = {
|
|
|
4232
4965
|
if (message.sandboxId !== "") {
|
|
4233
4966
|
obj.sandboxId = message.sandboxId;
|
|
4234
4967
|
}
|
|
4968
|
+
if (message.searchText !== "") {
|
|
4969
|
+
obj.searchText = message.searchText;
|
|
4970
|
+
}
|
|
4235
4971
|
return obj;
|
|
4236
4972
|
},
|
|
4237
4973
|
create(base) {
|
|
@@ -4249,6 +4985,7 @@ var AppGetLogsRequest = {
|
|
|
4249
4985
|
message.functionCallId = object.functionCallId ?? "";
|
|
4250
4986
|
message.fileDescriptor = object.fileDescriptor ?? 0;
|
|
4251
4987
|
message.sandboxId = object.sandboxId ?? "";
|
|
4988
|
+
message.searchText = object.searchText ?? "";
|
|
4252
4989
|
return message;
|
|
4253
4990
|
}
|
|
4254
4991
|
};
|
|
@@ -5086,6 +5823,173 @@ var AppLayout_ClassIdsEntry = {
|
|
|
5086
5823
|
return message;
|
|
5087
5824
|
}
|
|
5088
5825
|
};
|
|
5826
|
+
function createBaseAppLifecycle() {
|
|
5827
|
+
return {
|
|
5828
|
+
appState: 0,
|
|
5829
|
+
createdAt: 0,
|
|
5830
|
+
createdBy: "",
|
|
5831
|
+
deployedAt: 0,
|
|
5832
|
+
deployedBy: "",
|
|
5833
|
+
version: 0,
|
|
5834
|
+
stoppedAt: 0,
|
|
5835
|
+
stoppedBy: ""
|
|
5836
|
+
};
|
|
5837
|
+
}
|
|
5838
|
+
var AppLifecycle = {
|
|
5839
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5840
|
+
if (message.appState !== 0) {
|
|
5841
|
+
writer.uint32(8).int32(message.appState);
|
|
5842
|
+
}
|
|
5843
|
+
if (message.createdAt !== 0) {
|
|
5844
|
+
writer.uint32(17).double(message.createdAt);
|
|
5845
|
+
}
|
|
5846
|
+
if (message.createdBy !== "") {
|
|
5847
|
+
writer.uint32(26).string(message.createdBy);
|
|
5848
|
+
}
|
|
5849
|
+
if (message.deployedAt !== 0) {
|
|
5850
|
+
writer.uint32(33).double(message.deployedAt);
|
|
5851
|
+
}
|
|
5852
|
+
if (message.deployedBy !== "") {
|
|
5853
|
+
writer.uint32(42).string(message.deployedBy);
|
|
5854
|
+
}
|
|
5855
|
+
if (message.version !== 0) {
|
|
5856
|
+
writer.uint32(48).int32(message.version);
|
|
5857
|
+
}
|
|
5858
|
+
if (message.stoppedAt !== 0) {
|
|
5859
|
+
writer.uint32(57).double(message.stoppedAt);
|
|
5860
|
+
}
|
|
5861
|
+
if (message.stoppedBy !== "") {
|
|
5862
|
+
writer.uint32(66).string(message.stoppedBy);
|
|
5863
|
+
}
|
|
5864
|
+
return writer;
|
|
5865
|
+
},
|
|
5866
|
+
decode(input, length) {
|
|
5867
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5868
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5869
|
+
const message = createBaseAppLifecycle();
|
|
5870
|
+
while (reader.pos < end) {
|
|
5871
|
+
const tag = reader.uint32();
|
|
5872
|
+
switch (tag >>> 3) {
|
|
5873
|
+
case 1: {
|
|
5874
|
+
if (tag !== 8) {
|
|
5875
|
+
break;
|
|
5876
|
+
}
|
|
5877
|
+
message.appState = reader.int32();
|
|
5878
|
+
continue;
|
|
5879
|
+
}
|
|
5880
|
+
case 2: {
|
|
5881
|
+
if (tag !== 17) {
|
|
5882
|
+
break;
|
|
5883
|
+
}
|
|
5884
|
+
message.createdAt = reader.double();
|
|
5885
|
+
continue;
|
|
5886
|
+
}
|
|
5887
|
+
case 3: {
|
|
5888
|
+
if (tag !== 26) {
|
|
5889
|
+
break;
|
|
5890
|
+
}
|
|
5891
|
+
message.createdBy = reader.string();
|
|
5892
|
+
continue;
|
|
5893
|
+
}
|
|
5894
|
+
case 4: {
|
|
5895
|
+
if (tag !== 33) {
|
|
5896
|
+
break;
|
|
5897
|
+
}
|
|
5898
|
+
message.deployedAt = reader.double();
|
|
5899
|
+
continue;
|
|
5900
|
+
}
|
|
5901
|
+
case 5: {
|
|
5902
|
+
if (tag !== 42) {
|
|
5903
|
+
break;
|
|
5904
|
+
}
|
|
5905
|
+
message.deployedBy = reader.string();
|
|
5906
|
+
continue;
|
|
5907
|
+
}
|
|
5908
|
+
case 6: {
|
|
5909
|
+
if (tag !== 48) {
|
|
5910
|
+
break;
|
|
5911
|
+
}
|
|
5912
|
+
message.version = reader.int32();
|
|
5913
|
+
continue;
|
|
5914
|
+
}
|
|
5915
|
+
case 7: {
|
|
5916
|
+
if (tag !== 57) {
|
|
5917
|
+
break;
|
|
5918
|
+
}
|
|
5919
|
+
message.stoppedAt = reader.double();
|
|
5920
|
+
continue;
|
|
5921
|
+
}
|
|
5922
|
+
case 8: {
|
|
5923
|
+
if (tag !== 66) {
|
|
5924
|
+
break;
|
|
5925
|
+
}
|
|
5926
|
+
message.stoppedBy = reader.string();
|
|
5927
|
+
continue;
|
|
5928
|
+
}
|
|
5929
|
+
}
|
|
5930
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5931
|
+
break;
|
|
5932
|
+
}
|
|
5933
|
+
reader.skip(tag & 7);
|
|
5934
|
+
}
|
|
5935
|
+
return message;
|
|
5936
|
+
},
|
|
5937
|
+
fromJSON(object) {
|
|
5938
|
+
return {
|
|
5939
|
+
appState: isSet4(object.appState) ? appStateFromJSON(object.appState) : 0,
|
|
5940
|
+
createdAt: isSet4(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
5941
|
+
createdBy: isSet4(object.createdBy) ? globalThis.String(object.createdBy) : "",
|
|
5942
|
+
deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0,
|
|
5943
|
+
deployedBy: isSet4(object.deployedBy) ? globalThis.String(object.deployedBy) : "",
|
|
5944
|
+
version: isSet4(object.version) ? globalThis.Number(object.version) : 0,
|
|
5945
|
+
stoppedAt: isSet4(object.stoppedAt) ? globalThis.Number(object.stoppedAt) : 0,
|
|
5946
|
+
stoppedBy: isSet4(object.stoppedBy) ? globalThis.String(object.stoppedBy) : ""
|
|
5947
|
+
};
|
|
5948
|
+
},
|
|
5949
|
+
toJSON(message) {
|
|
5950
|
+
const obj = {};
|
|
5951
|
+
if (message.appState !== 0) {
|
|
5952
|
+
obj.appState = appStateToJSON(message.appState);
|
|
5953
|
+
}
|
|
5954
|
+
if (message.createdAt !== 0) {
|
|
5955
|
+
obj.createdAt = message.createdAt;
|
|
5956
|
+
}
|
|
5957
|
+
if (message.createdBy !== "") {
|
|
5958
|
+
obj.createdBy = message.createdBy;
|
|
5959
|
+
}
|
|
5960
|
+
if (message.deployedAt !== 0) {
|
|
5961
|
+
obj.deployedAt = message.deployedAt;
|
|
5962
|
+
}
|
|
5963
|
+
if (message.deployedBy !== "") {
|
|
5964
|
+
obj.deployedBy = message.deployedBy;
|
|
5965
|
+
}
|
|
5966
|
+
if (message.version !== 0) {
|
|
5967
|
+
obj.version = Math.round(message.version);
|
|
5968
|
+
}
|
|
5969
|
+
if (message.stoppedAt !== 0) {
|
|
5970
|
+
obj.stoppedAt = message.stoppedAt;
|
|
5971
|
+
}
|
|
5972
|
+
if (message.stoppedBy !== "") {
|
|
5973
|
+
obj.stoppedBy = message.stoppedBy;
|
|
5974
|
+
}
|
|
5975
|
+
return obj;
|
|
5976
|
+
},
|
|
5977
|
+
create(base) {
|
|
5978
|
+
return AppLifecycle.fromPartial(base ?? {});
|
|
5979
|
+
},
|
|
5980
|
+
fromPartial(object) {
|
|
5981
|
+
const message = createBaseAppLifecycle();
|
|
5982
|
+
message.appState = object.appState ?? 0;
|
|
5983
|
+
message.createdAt = object.createdAt ?? 0;
|
|
5984
|
+
message.createdBy = object.createdBy ?? "";
|
|
5985
|
+
message.deployedAt = object.deployedAt ?? 0;
|
|
5986
|
+
message.deployedBy = object.deployedBy ?? "";
|
|
5987
|
+
message.version = object.version ?? 0;
|
|
5988
|
+
message.stoppedAt = object.stoppedAt ?? 0;
|
|
5989
|
+
message.stoppedBy = object.stoppedBy ?? "";
|
|
5990
|
+
return message;
|
|
5991
|
+
}
|
|
5992
|
+
};
|
|
5089
5993
|
function createBaseAppListRequest() {
|
|
5090
5994
|
return { environmentName: "" };
|
|
5091
5995
|
}
|
|
@@ -6014,7 +6918,7 @@ var AppPublishRequest_TagsEntry = {
|
|
|
6014
6918
|
}
|
|
6015
6919
|
};
|
|
6016
6920
|
function createBaseAppPublishResponse() {
|
|
6017
|
-
return { url: "", serverWarnings: [] };
|
|
6921
|
+
return { url: "", serverWarnings: [], deployedAt: 0 };
|
|
6018
6922
|
}
|
|
6019
6923
|
var AppPublishResponse = {
|
|
6020
6924
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -6024,6 +6928,9 @@ var AppPublishResponse = {
|
|
|
6024
6928
|
for (const v of message.serverWarnings) {
|
|
6025
6929
|
Warning.encode(v, writer.uint32(26).fork()).join();
|
|
6026
6930
|
}
|
|
6931
|
+
if (message.deployedAt !== 0) {
|
|
6932
|
+
writer.uint32(33).double(message.deployedAt);
|
|
6933
|
+
}
|
|
6027
6934
|
return writer;
|
|
6028
6935
|
},
|
|
6029
6936
|
decode(input, length) {
|
|
@@ -6047,6 +6954,13 @@ var AppPublishResponse = {
|
|
|
6047
6954
|
message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
|
|
6048
6955
|
continue;
|
|
6049
6956
|
}
|
|
6957
|
+
case 4: {
|
|
6958
|
+
if (tag !== 33) {
|
|
6959
|
+
break;
|
|
6960
|
+
}
|
|
6961
|
+
message.deployedAt = reader.double();
|
|
6962
|
+
continue;
|
|
6963
|
+
}
|
|
6050
6964
|
}
|
|
6051
6965
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6052
6966
|
break;
|
|
@@ -6058,7 +6972,8 @@ var AppPublishResponse = {
|
|
|
6058
6972
|
fromJSON(object) {
|
|
6059
6973
|
return {
|
|
6060
6974
|
url: isSet4(object.url) ? globalThis.String(object.url) : "",
|
|
6061
|
-
serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : []
|
|
6975
|
+
serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
|
|
6976
|
+
deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
|
|
6062
6977
|
};
|
|
6063
6978
|
},
|
|
6064
6979
|
toJSON(message) {
|
|
@@ -6069,6 +6984,9 @@ var AppPublishResponse = {
|
|
|
6069
6984
|
if (message.serverWarnings?.length) {
|
|
6070
6985
|
obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
|
|
6071
6986
|
}
|
|
6987
|
+
if (message.deployedAt !== 0) {
|
|
6988
|
+
obj.deployedAt = message.deployedAt;
|
|
6989
|
+
}
|
|
6072
6990
|
return obj;
|
|
6073
6991
|
},
|
|
6074
6992
|
create(base) {
|
|
@@ -6078,6 +6996,7 @@ var AppPublishResponse = {
|
|
|
6078
6996
|
const message = createBaseAppPublishResponse();
|
|
6079
6997
|
message.url = object.url ?? "";
|
|
6080
6998
|
message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
|
|
6999
|
+
message.deployedAt = object.deployedAt ?? 0;
|
|
6081
7000
|
return message;
|
|
6082
7001
|
}
|
|
6083
7002
|
};
|
|
@@ -6149,6 +7068,140 @@ var AppRollbackRequest = {
|
|
|
6149
7068
|
return message;
|
|
6150
7069
|
}
|
|
6151
7070
|
};
|
|
7071
|
+
function createBaseAppRolloverRequest() {
|
|
7072
|
+
return { appId: "" };
|
|
7073
|
+
}
|
|
7074
|
+
var AppRolloverRequest = {
|
|
7075
|
+
encode(message, writer = new BinaryWriter()) {
|
|
7076
|
+
if (message.appId !== "") {
|
|
7077
|
+
writer.uint32(10).string(message.appId);
|
|
7078
|
+
}
|
|
7079
|
+
return writer;
|
|
7080
|
+
},
|
|
7081
|
+
decode(input, length) {
|
|
7082
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7083
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7084
|
+
const message = createBaseAppRolloverRequest();
|
|
7085
|
+
while (reader.pos < end) {
|
|
7086
|
+
const tag = reader.uint32();
|
|
7087
|
+
switch (tag >>> 3) {
|
|
7088
|
+
case 1: {
|
|
7089
|
+
if (tag !== 10) {
|
|
7090
|
+
break;
|
|
7091
|
+
}
|
|
7092
|
+
message.appId = reader.string();
|
|
7093
|
+
continue;
|
|
7094
|
+
}
|
|
7095
|
+
}
|
|
7096
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7097
|
+
break;
|
|
7098
|
+
}
|
|
7099
|
+
reader.skip(tag & 7);
|
|
7100
|
+
}
|
|
7101
|
+
return message;
|
|
7102
|
+
},
|
|
7103
|
+
fromJSON(object) {
|
|
7104
|
+
return { appId: isSet4(object.appId) ? globalThis.String(object.appId) : "" };
|
|
7105
|
+
},
|
|
7106
|
+
toJSON(message) {
|
|
7107
|
+
const obj = {};
|
|
7108
|
+
if (message.appId !== "") {
|
|
7109
|
+
obj.appId = message.appId;
|
|
7110
|
+
}
|
|
7111
|
+
return obj;
|
|
7112
|
+
},
|
|
7113
|
+
create(base) {
|
|
7114
|
+
return AppRolloverRequest.fromPartial(base ?? {});
|
|
7115
|
+
},
|
|
7116
|
+
fromPartial(object) {
|
|
7117
|
+
const message = createBaseAppRolloverRequest();
|
|
7118
|
+
message.appId = object.appId ?? "";
|
|
7119
|
+
return message;
|
|
7120
|
+
}
|
|
7121
|
+
};
|
|
7122
|
+
function createBaseAppRolloverResponse() {
|
|
7123
|
+
return { url: "", serverWarnings: [], deployedAt: 0 };
|
|
7124
|
+
}
|
|
7125
|
+
var AppRolloverResponse = {
|
|
7126
|
+
encode(message, writer = new BinaryWriter()) {
|
|
7127
|
+
if (message.url !== "") {
|
|
7128
|
+
writer.uint32(10).string(message.url);
|
|
7129
|
+
}
|
|
7130
|
+
for (const v of message.serverWarnings) {
|
|
7131
|
+
Warning.encode(v, writer.uint32(26).fork()).join();
|
|
7132
|
+
}
|
|
7133
|
+
if (message.deployedAt !== 0) {
|
|
7134
|
+
writer.uint32(33).double(message.deployedAt);
|
|
7135
|
+
}
|
|
7136
|
+
return writer;
|
|
7137
|
+
},
|
|
7138
|
+
decode(input, length) {
|
|
7139
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7140
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7141
|
+
const message = createBaseAppRolloverResponse();
|
|
7142
|
+
while (reader.pos < end) {
|
|
7143
|
+
const tag = reader.uint32();
|
|
7144
|
+
switch (tag >>> 3) {
|
|
7145
|
+
case 1: {
|
|
7146
|
+
if (tag !== 10) {
|
|
7147
|
+
break;
|
|
7148
|
+
}
|
|
7149
|
+
message.url = reader.string();
|
|
7150
|
+
continue;
|
|
7151
|
+
}
|
|
7152
|
+
case 3: {
|
|
7153
|
+
if (tag !== 26) {
|
|
7154
|
+
break;
|
|
7155
|
+
}
|
|
7156
|
+
message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
|
|
7157
|
+
continue;
|
|
7158
|
+
}
|
|
7159
|
+
case 4: {
|
|
7160
|
+
if (tag !== 33) {
|
|
7161
|
+
break;
|
|
7162
|
+
}
|
|
7163
|
+
message.deployedAt = reader.double();
|
|
7164
|
+
continue;
|
|
7165
|
+
}
|
|
7166
|
+
}
|
|
7167
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7168
|
+
break;
|
|
7169
|
+
}
|
|
7170
|
+
reader.skip(tag & 7);
|
|
7171
|
+
}
|
|
7172
|
+
return message;
|
|
7173
|
+
},
|
|
7174
|
+
fromJSON(object) {
|
|
7175
|
+
return {
|
|
7176
|
+
url: isSet4(object.url) ? globalThis.String(object.url) : "",
|
|
7177
|
+
serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
|
|
7178
|
+
deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
|
|
7179
|
+
};
|
|
7180
|
+
},
|
|
7181
|
+
toJSON(message) {
|
|
7182
|
+
const obj = {};
|
|
7183
|
+
if (message.url !== "") {
|
|
7184
|
+
obj.url = message.url;
|
|
7185
|
+
}
|
|
7186
|
+
if (message.serverWarnings?.length) {
|
|
7187
|
+
obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
|
|
7188
|
+
}
|
|
7189
|
+
if (message.deployedAt !== 0) {
|
|
7190
|
+
obj.deployedAt = message.deployedAt;
|
|
7191
|
+
}
|
|
7192
|
+
return obj;
|
|
7193
|
+
},
|
|
7194
|
+
create(base) {
|
|
7195
|
+
return AppRolloverResponse.fromPartial(base ?? {});
|
|
7196
|
+
},
|
|
7197
|
+
fromPartial(object) {
|
|
7198
|
+
const message = createBaseAppRolloverResponse();
|
|
7199
|
+
message.url = object.url ?? "";
|
|
7200
|
+
message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
|
|
7201
|
+
message.deployedAt = object.deployedAt ?? 0;
|
|
7202
|
+
return message;
|
|
7203
|
+
}
|
|
7204
|
+
};
|
|
6152
7205
|
function createBaseAppSetObjectsRequest() {
|
|
6153
7206
|
return { appId: "", indexedObjectIds: {}, clientId: "", unindexedObjectIds: [], newAppState: 0 };
|
|
6154
7207
|
}
|
|
@@ -28597,6 +29650,140 @@ var PortSpecs = {
|
|
|
28597
29650
|
return message;
|
|
28598
29651
|
}
|
|
28599
29652
|
};
|
|
29653
|
+
function createBaseProbe() {
|
|
29654
|
+
return { tcpPort: void 0, execCommand: void 0, intervalMs: void 0 };
|
|
29655
|
+
}
|
|
29656
|
+
var Probe = {
|
|
29657
|
+
encode(message, writer = new BinaryWriter()) {
|
|
29658
|
+
if (message.tcpPort !== void 0) {
|
|
29659
|
+
writer.uint32(8).uint32(message.tcpPort);
|
|
29660
|
+
}
|
|
29661
|
+
if (message.execCommand !== void 0) {
|
|
29662
|
+
Probe_ExecCommand.encode(message.execCommand, writer.uint32(18).fork()).join();
|
|
29663
|
+
}
|
|
29664
|
+
if (message.intervalMs !== void 0) {
|
|
29665
|
+
writer.uint32(24).uint32(message.intervalMs);
|
|
29666
|
+
}
|
|
29667
|
+
return writer;
|
|
29668
|
+
},
|
|
29669
|
+
decode(input, length) {
|
|
29670
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
29671
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
29672
|
+
const message = createBaseProbe();
|
|
29673
|
+
while (reader.pos < end) {
|
|
29674
|
+
const tag = reader.uint32();
|
|
29675
|
+
switch (tag >>> 3) {
|
|
29676
|
+
case 1: {
|
|
29677
|
+
if (tag !== 8) {
|
|
29678
|
+
break;
|
|
29679
|
+
}
|
|
29680
|
+
message.tcpPort = reader.uint32();
|
|
29681
|
+
continue;
|
|
29682
|
+
}
|
|
29683
|
+
case 2: {
|
|
29684
|
+
if (tag !== 18) {
|
|
29685
|
+
break;
|
|
29686
|
+
}
|
|
29687
|
+
message.execCommand = Probe_ExecCommand.decode(reader, reader.uint32());
|
|
29688
|
+
continue;
|
|
29689
|
+
}
|
|
29690
|
+
case 3: {
|
|
29691
|
+
if (tag !== 24) {
|
|
29692
|
+
break;
|
|
29693
|
+
}
|
|
29694
|
+
message.intervalMs = reader.uint32();
|
|
29695
|
+
continue;
|
|
29696
|
+
}
|
|
29697
|
+
}
|
|
29698
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
29699
|
+
break;
|
|
29700
|
+
}
|
|
29701
|
+
reader.skip(tag & 7);
|
|
29702
|
+
}
|
|
29703
|
+
return message;
|
|
29704
|
+
},
|
|
29705
|
+
fromJSON(object) {
|
|
29706
|
+
return {
|
|
29707
|
+
tcpPort: isSet4(object.tcpPort) ? globalThis.Number(object.tcpPort) : void 0,
|
|
29708
|
+
execCommand: isSet4(object.execCommand) ? Probe_ExecCommand.fromJSON(object.execCommand) : void 0,
|
|
29709
|
+
intervalMs: isSet4(object.intervalMs) ? globalThis.Number(object.intervalMs) : void 0
|
|
29710
|
+
};
|
|
29711
|
+
},
|
|
29712
|
+
toJSON(message) {
|
|
29713
|
+
const obj = {};
|
|
29714
|
+
if (message.tcpPort !== void 0) {
|
|
29715
|
+
obj.tcpPort = Math.round(message.tcpPort);
|
|
29716
|
+
}
|
|
29717
|
+
if (message.execCommand !== void 0) {
|
|
29718
|
+
obj.execCommand = Probe_ExecCommand.toJSON(message.execCommand);
|
|
29719
|
+
}
|
|
29720
|
+
if (message.intervalMs !== void 0) {
|
|
29721
|
+
obj.intervalMs = Math.round(message.intervalMs);
|
|
29722
|
+
}
|
|
29723
|
+
return obj;
|
|
29724
|
+
},
|
|
29725
|
+
create(base) {
|
|
29726
|
+
return Probe.fromPartial(base ?? {});
|
|
29727
|
+
},
|
|
29728
|
+
fromPartial(object) {
|
|
29729
|
+
const message = createBaseProbe();
|
|
29730
|
+
message.tcpPort = object.tcpPort ?? void 0;
|
|
29731
|
+
message.execCommand = object.execCommand !== void 0 && object.execCommand !== null ? Probe_ExecCommand.fromPartial(object.execCommand) : void 0;
|
|
29732
|
+
message.intervalMs = object.intervalMs ?? void 0;
|
|
29733
|
+
return message;
|
|
29734
|
+
}
|
|
29735
|
+
};
|
|
29736
|
+
function createBaseProbe_ExecCommand() {
|
|
29737
|
+
return { argv: [] };
|
|
29738
|
+
}
|
|
29739
|
+
var Probe_ExecCommand = {
|
|
29740
|
+
encode(message, writer = new BinaryWriter()) {
|
|
29741
|
+
for (const v of message.argv) {
|
|
29742
|
+
writer.uint32(10).string(v);
|
|
29743
|
+
}
|
|
29744
|
+
return writer;
|
|
29745
|
+
},
|
|
29746
|
+
decode(input, length) {
|
|
29747
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
29748
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
29749
|
+
const message = createBaseProbe_ExecCommand();
|
|
29750
|
+
while (reader.pos < end) {
|
|
29751
|
+
const tag = reader.uint32();
|
|
29752
|
+
switch (tag >>> 3) {
|
|
29753
|
+
case 1: {
|
|
29754
|
+
if (tag !== 10) {
|
|
29755
|
+
break;
|
|
29756
|
+
}
|
|
29757
|
+
message.argv.push(reader.string());
|
|
29758
|
+
continue;
|
|
29759
|
+
}
|
|
29760
|
+
}
|
|
29761
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
29762
|
+
break;
|
|
29763
|
+
}
|
|
29764
|
+
reader.skip(tag & 7);
|
|
29765
|
+
}
|
|
29766
|
+
return message;
|
|
29767
|
+
},
|
|
29768
|
+
fromJSON(object) {
|
|
29769
|
+
return { argv: globalThis.Array.isArray(object?.argv) ? object.argv.map((e) => globalThis.String(e)) : [] };
|
|
29770
|
+
},
|
|
29771
|
+
toJSON(message) {
|
|
29772
|
+
const obj = {};
|
|
29773
|
+
if (message.argv?.length) {
|
|
29774
|
+
obj.argv = message.argv;
|
|
29775
|
+
}
|
|
29776
|
+
return obj;
|
|
29777
|
+
},
|
|
29778
|
+
create(base) {
|
|
29779
|
+
return Probe_ExecCommand.fromPartial(base ?? {});
|
|
29780
|
+
},
|
|
29781
|
+
fromPartial(object) {
|
|
29782
|
+
const message = createBaseProbe_ExecCommand();
|
|
29783
|
+
message.argv = object.argv?.map((e) => e) || [];
|
|
29784
|
+
return message;
|
|
29785
|
+
}
|
|
29786
|
+
};
|
|
28600
29787
|
function createBaseProxy() {
|
|
28601
29788
|
return { name: "", createdAt: 0, environmentName: "", proxyIps: [], proxyId: "", region: "" };
|
|
28602
29789
|
}
|
|
@@ -31714,7 +32901,8 @@ function createBaseSandbox() {
|
|
|
31714
32901
|
directSandboxCommandsEnabled: false,
|
|
31715
32902
|
RestoreInstanceType: "",
|
|
31716
32903
|
customDomain: "",
|
|
31717
|
-
includeOidcIdentityToken: false
|
|
32904
|
+
includeOidcIdentityToken: false,
|
|
32905
|
+
readinessProbe: void 0
|
|
31718
32906
|
};
|
|
31719
32907
|
}
|
|
31720
32908
|
var Sandbox = {
|
|
@@ -31824,6 +33012,9 @@ var Sandbox = {
|
|
|
31824
33012
|
if (message.includeOidcIdentityToken !== false) {
|
|
31825
33013
|
writer.uint32(296).bool(message.includeOidcIdentityToken);
|
|
31826
33014
|
}
|
|
33015
|
+
if (message.readinessProbe !== void 0) {
|
|
33016
|
+
Probe.encode(message.readinessProbe, writer.uint32(306).fork()).join();
|
|
33017
|
+
}
|
|
31827
33018
|
return writer;
|
|
31828
33019
|
},
|
|
31829
33020
|
decode(input, length) {
|
|
@@ -32081,6 +33272,13 @@ var Sandbox = {
|
|
|
32081
33272
|
message.includeOidcIdentityToken = reader.bool();
|
|
32082
33273
|
continue;
|
|
32083
33274
|
}
|
|
33275
|
+
case 38: {
|
|
33276
|
+
if (tag !== 306) {
|
|
33277
|
+
break;
|
|
33278
|
+
}
|
|
33279
|
+
message.readinessProbe = Probe.decode(reader, reader.uint32());
|
|
33280
|
+
continue;
|
|
33281
|
+
}
|
|
32084
33282
|
}
|
|
32085
33283
|
if ((tag & 7) === 4 || tag === 0) {
|
|
32086
33284
|
break;
|
|
@@ -32128,7 +33326,8 @@ var Sandbox = {
|
|
|
32128
33326
|
directSandboxCommandsEnabled: isSet4(object.directSandboxCommandsEnabled) ? globalThis.Boolean(object.directSandboxCommandsEnabled) : false,
|
|
32129
33327
|
RestoreInstanceType: isSet4(object.RestoreInstanceType) ? globalThis.String(object.RestoreInstanceType) : "",
|
|
32130
33328
|
customDomain: isSet4(object.customDomain) ? globalThis.String(object.customDomain) : "",
|
|
32131
|
-
includeOidcIdentityToken: isSet4(object.includeOidcIdentityToken) ? globalThis.Boolean(object.includeOidcIdentityToken) : false
|
|
33329
|
+
includeOidcIdentityToken: isSet4(object.includeOidcIdentityToken) ? globalThis.Boolean(object.includeOidcIdentityToken) : false,
|
|
33330
|
+
readinessProbe: isSet4(object.readinessProbe) ? Probe.fromJSON(object.readinessProbe) : void 0
|
|
32132
33331
|
};
|
|
32133
33332
|
},
|
|
32134
33333
|
toJSON(message) {
|
|
@@ -32244,6 +33443,9 @@ var Sandbox = {
|
|
|
32244
33443
|
if (message.includeOidcIdentityToken !== false) {
|
|
32245
33444
|
obj.includeOidcIdentityToken = message.includeOidcIdentityToken;
|
|
32246
33445
|
}
|
|
33446
|
+
if (message.readinessProbe !== void 0) {
|
|
33447
|
+
obj.readinessProbe = Probe.toJSON(message.readinessProbe);
|
|
33448
|
+
}
|
|
32247
33449
|
return obj;
|
|
32248
33450
|
},
|
|
32249
33451
|
create(base) {
|
|
@@ -32294,6 +33496,7 @@ var Sandbox = {
|
|
|
32294
33496
|
message.RestoreInstanceType = object.RestoreInstanceType ?? "";
|
|
32295
33497
|
message.customDomain = object.customDomain ?? "";
|
|
32296
33498
|
message.includeOidcIdentityToken = object.includeOidcIdentityToken ?? false;
|
|
33499
|
+
message.readinessProbe = object.readinessProbe !== void 0 && object.readinessProbe !== null ? Probe.fromPartial(object.readinessProbe) : void 0;
|
|
32297
33500
|
return message;
|
|
32298
33501
|
}
|
|
32299
33502
|
};
|
|
@@ -32635,6 +33838,276 @@ var SandboxCreateResponse = {
|
|
|
32635
33838
|
return message;
|
|
32636
33839
|
}
|
|
32637
33840
|
};
|
|
33841
|
+
function createBaseSandboxCreateV2Request() {
|
|
33842
|
+
return { appId: "", definition: void 0 };
|
|
33843
|
+
}
|
|
33844
|
+
var SandboxCreateV2Request = {
|
|
33845
|
+
encode(message, writer = new BinaryWriter()) {
|
|
33846
|
+
if (message.appId !== "") {
|
|
33847
|
+
writer.uint32(10).string(message.appId);
|
|
33848
|
+
}
|
|
33849
|
+
if (message.definition !== void 0) {
|
|
33850
|
+
Sandbox.encode(message.definition, writer.uint32(18).fork()).join();
|
|
33851
|
+
}
|
|
33852
|
+
return writer;
|
|
33853
|
+
},
|
|
33854
|
+
decode(input, length) {
|
|
33855
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33856
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33857
|
+
const message = createBaseSandboxCreateV2Request();
|
|
33858
|
+
while (reader.pos < end) {
|
|
33859
|
+
const tag = reader.uint32();
|
|
33860
|
+
switch (tag >>> 3) {
|
|
33861
|
+
case 1: {
|
|
33862
|
+
if (tag !== 10) {
|
|
33863
|
+
break;
|
|
33864
|
+
}
|
|
33865
|
+
message.appId = reader.string();
|
|
33866
|
+
continue;
|
|
33867
|
+
}
|
|
33868
|
+
case 2: {
|
|
33869
|
+
if (tag !== 18) {
|
|
33870
|
+
break;
|
|
33871
|
+
}
|
|
33872
|
+
message.definition = Sandbox.decode(reader, reader.uint32());
|
|
33873
|
+
continue;
|
|
33874
|
+
}
|
|
33875
|
+
}
|
|
33876
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
33877
|
+
break;
|
|
33878
|
+
}
|
|
33879
|
+
reader.skip(tag & 7);
|
|
33880
|
+
}
|
|
33881
|
+
return message;
|
|
33882
|
+
},
|
|
33883
|
+
fromJSON(object) {
|
|
33884
|
+
return {
|
|
33885
|
+
appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
|
|
33886
|
+
definition: isSet4(object.definition) ? Sandbox.fromJSON(object.definition) : void 0
|
|
33887
|
+
};
|
|
33888
|
+
},
|
|
33889
|
+
toJSON(message) {
|
|
33890
|
+
const obj = {};
|
|
33891
|
+
if (message.appId !== "") {
|
|
33892
|
+
obj.appId = message.appId;
|
|
33893
|
+
}
|
|
33894
|
+
if (message.definition !== void 0) {
|
|
33895
|
+
obj.definition = Sandbox.toJSON(message.definition);
|
|
33896
|
+
}
|
|
33897
|
+
return obj;
|
|
33898
|
+
},
|
|
33899
|
+
create(base) {
|
|
33900
|
+
return SandboxCreateV2Request.fromPartial(base ?? {});
|
|
33901
|
+
},
|
|
33902
|
+
fromPartial(object) {
|
|
33903
|
+
const message = createBaseSandboxCreateV2Request();
|
|
33904
|
+
message.appId = object.appId ?? "";
|
|
33905
|
+
message.definition = object.definition !== void 0 && object.definition !== null ? Sandbox.fromPartial(object.definition) : void 0;
|
|
33906
|
+
return message;
|
|
33907
|
+
}
|
|
33908
|
+
};
|
|
33909
|
+
function createBaseSandboxCreateV2Response() {
|
|
33910
|
+
return { sandboxId: "", tunnels: [], taskId: "" };
|
|
33911
|
+
}
|
|
33912
|
+
var SandboxCreateV2Response = {
|
|
33913
|
+
encode(message, writer = new BinaryWriter()) {
|
|
33914
|
+
if (message.sandboxId !== "") {
|
|
33915
|
+
writer.uint32(10).string(message.sandboxId);
|
|
33916
|
+
}
|
|
33917
|
+
for (const v of message.tunnels) {
|
|
33918
|
+
TunnelData.encode(v, writer.uint32(18).fork()).join();
|
|
33919
|
+
}
|
|
33920
|
+
if (message.taskId !== "") {
|
|
33921
|
+
writer.uint32(26).string(message.taskId);
|
|
33922
|
+
}
|
|
33923
|
+
return writer;
|
|
33924
|
+
},
|
|
33925
|
+
decode(input, length) {
|
|
33926
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33927
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33928
|
+
const message = createBaseSandboxCreateV2Response();
|
|
33929
|
+
while (reader.pos < end) {
|
|
33930
|
+
const tag = reader.uint32();
|
|
33931
|
+
switch (tag >>> 3) {
|
|
33932
|
+
case 1: {
|
|
33933
|
+
if (tag !== 10) {
|
|
33934
|
+
break;
|
|
33935
|
+
}
|
|
33936
|
+
message.sandboxId = reader.string();
|
|
33937
|
+
continue;
|
|
33938
|
+
}
|
|
33939
|
+
case 2: {
|
|
33940
|
+
if (tag !== 18) {
|
|
33941
|
+
break;
|
|
33942
|
+
}
|
|
33943
|
+
message.tunnels.push(TunnelData.decode(reader, reader.uint32()));
|
|
33944
|
+
continue;
|
|
33945
|
+
}
|
|
33946
|
+
case 3: {
|
|
33947
|
+
if (tag !== 26) {
|
|
33948
|
+
break;
|
|
33949
|
+
}
|
|
33950
|
+
message.taskId = reader.string();
|
|
33951
|
+
continue;
|
|
33952
|
+
}
|
|
33953
|
+
}
|
|
33954
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
33955
|
+
break;
|
|
33956
|
+
}
|
|
33957
|
+
reader.skip(tag & 7);
|
|
33958
|
+
}
|
|
33959
|
+
return message;
|
|
33960
|
+
},
|
|
33961
|
+
fromJSON(object) {
|
|
33962
|
+
return {
|
|
33963
|
+
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
33964
|
+
tunnels: globalThis.Array.isArray(object?.tunnels) ? object.tunnels.map((e) => TunnelData.fromJSON(e)) : [],
|
|
33965
|
+
taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : ""
|
|
33966
|
+
};
|
|
33967
|
+
},
|
|
33968
|
+
toJSON(message) {
|
|
33969
|
+
const obj = {};
|
|
33970
|
+
if (message.sandboxId !== "") {
|
|
33971
|
+
obj.sandboxId = message.sandboxId;
|
|
33972
|
+
}
|
|
33973
|
+
if (message.tunnels?.length) {
|
|
33974
|
+
obj.tunnels = message.tunnels.map((e) => TunnelData.toJSON(e));
|
|
33975
|
+
}
|
|
33976
|
+
if (message.taskId !== "") {
|
|
33977
|
+
obj.taskId = message.taskId;
|
|
33978
|
+
}
|
|
33979
|
+
return obj;
|
|
33980
|
+
},
|
|
33981
|
+
create(base) {
|
|
33982
|
+
return SandboxCreateV2Response.fromPartial(base ?? {});
|
|
33983
|
+
},
|
|
33984
|
+
fromPartial(object) {
|
|
33985
|
+
const message = createBaseSandboxCreateV2Response();
|
|
33986
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
33987
|
+
message.tunnels = object.tunnels?.map((e) => TunnelData.fromPartial(e)) || [];
|
|
33988
|
+
message.taskId = object.taskId ?? "";
|
|
33989
|
+
return message;
|
|
33990
|
+
}
|
|
33991
|
+
};
|
|
33992
|
+
function createBaseSandboxGetCommandRouterAccessRequest() {
|
|
33993
|
+
return { sandboxId: "" };
|
|
33994
|
+
}
|
|
33995
|
+
var SandboxGetCommandRouterAccessRequest = {
|
|
33996
|
+
encode(message, writer = new BinaryWriter()) {
|
|
33997
|
+
if (message.sandboxId !== "") {
|
|
33998
|
+
writer.uint32(10).string(message.sandboxId);
|
|
33999
|
+
}
|
|
34000
|
+
return writer;
|
|
34001
|
+
},
|
|
34002
|
+
decode(input, length) {
|
|
34003
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34004
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
34005
|
+
const message = createBaseSandboxGetCommandRouterAccessRequest();
|
|
34006
|
+
while (reader.pos < end) {
|
|
34007
|
+
const tag = reader.uint32();
|
|
34008
|
+
switch (tag >>> 3) {
|
|
34009
|
+
case 1: {
|
|
34010
|
+
if (tag !== 10) {
|
|
34011
|
+
break;
|
|
34012
|
+
}
|
|
34013
|
+
message.sandboxId = reader.string();
|
|
34014
|
+
continue;
|
|
34015
|
+
}
|
|
34016
|
+
}
|
|
34017
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34018
|
+
break;
|
|
34019
|
+
}
|
|
34020
|
+
reader.skip(tag & 7);
|
|
34021
|
+
}
|
|
34022
|
+
return message;
|
|
34023
|
+
},
|
|
34024
|
+
fromJSON(object) {
|
|
34025
|
+
return { sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "" };
|
|
34026
|
+
},
|
|
34027
|
+
toJSON(message) {
|
|
34028
|
+
const obj = {};
|
|
34029
|
+
if (message.sandboxId !== "") {
|
|
34030
|
+
obj.sandboxId = message.sandboxId;
|
|
34031
|
+
}
|
|
34032
|
+
return obj;
|
|
34033
|
+
},
|
|
34034
|
+
create(base) {
|
|
34035
|
+
return SandboxGetCommandRouterAccessRequest.fromPartial(base ?? {});
|
|
34036
|
+
},
|
|
34037
|
+
fromPartial(object) {
|
|
34038
|
+
const message = createBaseSandboxGetCommandRouterAccessRequest();
|
|
34039
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
34040
|
+
return message;
|
|
34041
|
+
}
|
|
34042
|
+
};
|
|
34043
|
+
function createBaseSandboxGetCommandRouterAccessResponse() {
|
|
34044
|
+
return { jwt: "", url: "" };
|
|
34045
|
+
}
|
|
34046
|
+
var SandboxGetCommandRouterAccessResponse = {
|
|
34047
|
+
encode(message, writer = new BinaryWriter()) {
|
|
34048
|
+
if (message.jwt !== "") {
|
|
34049
|
+
writer.uint32(10).string(message.jwt);
|
|
34050
|
+
}
|
|
34051
|
+
if (message.url !== "") {
|
|
34052
|
+
writer.uint32(18).string(message.url);
|
|
34053
|
+
}
|
|
34054
|
+
return writer;
|
|
34055
|
+
},
|
|
34056
|
+
decode(input, length) {
|
|
34057
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34058
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
34059
|
+
const message = createBaseSandboxGetCommandRouterAccessResponse();
|
|
34060
|
+
while (reader.pos < end) {
|
|
34061
|
+
const tag = reader.uint32();
|
|
34062
|
+
switch (tag >>> 3) {
|
|
34063
|
+
case 1: {
|
|
34064
|
+
if (tag !== 10) {
|
|
34065
|
+
break;
|
|
34066
|
+
}
|
|
34067
|
+
message.jwt = reader.string();
|
|
34068
|
+
continue;
|
|
34069
|
+
}
|
|
34070
|
+
case 2: {
|
|
34071
|
+
if (tag !== 18) {
|
|
34072
|
+
break;
|
|
34073
|
+
}
|
|
34074
|
+
message.url = reader.string();
|
|
34075
|
+
continue;
|
|
34076
|
+
}
|
|
34077
|
+
}
|
|
34078
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34079
|
+
break;
|
|
34080
|
+
}
|
|
34081
|
+
reader.skip(tag & 7);
|
|
34082
|
+
}
|
|
34083
|
+
return message;
|
|
34084
|
+
},
|
|
34085
|
+
fromJSON(object) {
|
|
34086
|
+
return {
|
|
34087
|
+
jwt: isSet4(object.jwt) ? globalThis.String(object.jwt) : "",
|
|
34088
|
+
url: isSet4(object.url) ? globalThis.String(object.url) : ""
|
|
34089
|
+
};
|
|
34090
|
+
},
|
|
34091
|
+
toJSON(message) {
|
|
34092
|
+
const obj = {};
|
|
34093
|
+
if (message.jwt !== "") {
|
|
34094
|
+
obj.jwt = message.jwt;
|
|
34095
|
+
}
|
|
34096
|
+
if (message.url !== "") {
|
|
34097
|
+
obj.url = message.url;
|
|
34098
|
+
}
|
|
34099
|
+
return obj;
|
|
34100
|
+
},
|
|
34101
|
+
create(base) {
|
|
34102
|
+
return SandboxGetCommandRouterAccessResponse.fromPartial(base ?? {});
|
|
34103
|
+
},
|
|
34104
|
+
fromPartial(object) {
|
|
34105
|
+
const message = createBaseSandboxGetCommandRouterAccessResponse();
|
|
34106
|
+
message.jwt = object.jwt ?? "";
|
|
34107
|
+
message.url = object.url ?? "";
|
|
34108
|
+
return message;
|
|
34109
|
+
}
|
|
34110
|
+
};
|
|
32638
34111
|
function createBaseSandboxGetFromNameRequest() {
|
|
32639
34112
|
return { sandboxName: "", environmentName: "", appName: "" };
|
|
32640
34113
|
}
|
|
@@ -33366,7 +34839,8 @@ function createBaseSandboxInfo() {
|
|
|
33366
34839
|
resourceInfo: void 0,
|
|
33367
34840
|
regions: [],
|
|
33368
34841
|
timeoutSecs: 0,
|
|
33369
|
-
idleTimeoutSecs: void 0
|
|
34842
|
+
idleTimeoutSecs: void 0,
|
|
34843
|
+
readyAt: void 0
|
|
33370
34844
|
};
|
|
33371
34845
|
}
|
|
33372
34846
|
var SandboxInfo = {
|
|
@@ -33404,6 +34878,9 @@ var SandboxInfo = {
|
|
|
33404
34878
|
if (message.idleTimeoutSecs !== void 0) {
|
|
33405
34879
|
writer.uint32(96).uint32(message.idleTimeoutSecs);
|
|
33406
34880
|
}
|
|
34881
|
+
if (message.readyAt !== void 0) {
|
|
34882
|
+
writer.uint32(105).double(message.readyAt);
|
|
34883
|
+
}
|
|
33407
34884
|
return writer;
|
|
33408
34885
|
},
|
|
33409
34886
|
decode(input, length) {
|
|
@@ -33490,6 +34967,13 @@ var SandboxInfo = {
|
|
|
33490
34967
|
message.idleTimeoutSecs = reader.uint32();
|
|
33491
34968
|
continue;
|
|
33492
34969
|
}
|
|
34970
|
+
case 13: {
|
|
34971
|
+
if (tag !== 105) {
|
|
34972
|
+
break;
|
|
34973
|
+
}
|
|
34974
|
+
message.readyAt = reader.double();
|
|
34975
|
+
continue;
|
|
34976
|
+
}
|
|
33493
34977
|
}
|
|
33494
34978
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33495
34979
|
break;
|
|
@@ -33510,7 +34994,8 @@ var SandboxInfo = {
|
|
|
33510
34994
|
resourceInfo: isSet4(object.resourceInfo) ? ResourceInfo.fromJSON(object.resourceInfo) : void 0,
|
|
33511
34995
|
regions: globalThis.Array.isArray(object?.regions) ? object.regions.map((e) => globalThis.String(e)) : [],
|
|
33512
34996
|
timeoutSecs: isSet4(object.timeoutSecs) ? globalThis.Number(object.timeoutSecs) : 0,
|
|
33513
|
-
idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0
|
|
34997
|
+
idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0,
|
|
34998
|
+
readyAt: isSet4(object.readyAt) ? globalThis.Number(object.readyAt) : void 0
|
|
33514
34999
|
};
|
|
33515
35000
|
},
|
|
33516
35001
|
toJSON(message) {
|
|
@@ -33548,6 +35033,9 @@ var SandboxInfo = {
|
|
|
33548
35033
|
if (message.idleTimeoutSecs !== void 0) {
|
|
33549
35034
|
obj.idleTimeoutSecs = Math.round(message.idleTimeoutSecs);
|
|
33550
35035
|
}
|
|
35036
|
+
if (message.readyAt !== void 0) {
|
|
35037
|
+
obj.readyAt = message.readyAt;
|
|
35038
|
+
}
|
|
33551
35039
|
return obj;
|
|
33552
35040
|
},
|
|
33553
35041
|
create(base) {
|
|
@@ -33566,6 +35054,7 @@ var SandboxInfo = {
|
|
|
33566
35054
|
message.regions = object.regions?.map((e) => e) || [];
|
|
33567
35055
|
message.timeoutSecs = object.timeoutSecs ?? 0;
|
|
33568
35056
|
message.idleTimeoutSecs = object.idleTimeoutSecs ?? void 0;
|
|
35057
|
+
message.readyAt = object.readyAt ?? void 0;
|
|
33569
35058
|
return message;
|
|
33570
35059
|
}
|
|
33571
35060
|
};
|
|
@@ -35124,6 +36613,125 @@ var SandboxWaitResponse = {
|
|
|
35124
36613
|
return message;
|
|
35125
36614
|
}
|
|
35126
36615
|
};
|
|
36616
|
+
function createBaseSandboxWaitUntilReadyRequest() {
|
|
36617
|
+
return { sandboxId: "", timeout: 0 };
|
|
36618
|
+
}
|
|
36619
|
+
var SandboxWaitUntilReadyRequest = {
|
|
36620
|
+
encode(message, writer = new BinaryWriter()) {
|
|
36621
|
+
if (message.sandboxId !== "") {
|
|
36622
|
+
writer.uint32(10).string(message.sandboxId);
|
|
36623
|
+
}
|
|
36624
|
+
if (message.timeout !== 0) {
|
|
36625
|
+
writer.uint32(21).float(message.timeout);
|
|
36626
|
+
}
|
|
36627
|
+
return writer;
|
|
36628
|
+
},
|
|
36629
|
+
decode(input, length) {
|
|
36630
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
36631
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
36632
|
+
const message = createBaseSandboxWaitUntilReadyRequest();
|
|
36633
|
+
while (reader.pos < end) {
|
|
36634
|
+
const tag = reader.uint32();
|
|
36635
|
+
switch (tag >>> 3) {
|
|
36636
|
+
case 1: {
|
|
36637
|
+
if (tag !== 10) {
|
|
36638
|
+
break;
|
|
36639
|
+
}
|
|
36640
|
+
message.sandboxId = reader.string();
|
|
36641
|
+
continue;
|
|
36642
|
+
}
|
|
36643
|
+
case 2: {
|
|
36644
|
+
if (tag !== 21) {
|
|
36645
|
+
break;
|
|
36646
|
+
}
|
|
36647
|
+
message.timeout = reader.float();
|
|
36648
|
+
continue;
|
|
36649
|
+
}
|
|
36650
|
+
}
|
|
36651
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36652
|
+
break;
|
|
36653
|
+
}
|
|
36654
|
+
reader.skip(tag & 7);
|
|
36655
|
+
}
|
|
36656
|
+
return message;
|
|
36657
|
+
},
|
|
36658
|
+
fromJSON(object) {
|
|
36659
|
+
return {
|
|
36660
|
+
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
36661
|
+
timeout: isSet4(object.timeout) ? globalThis.Number(object.timeout) : 0
|
|
36662
|
+
};
|
|
36663
|
+
},
|
|
36664
|
+
toJSON(message) {
|
|
36665
|
+
const obj = {};
|
|
36666
|
+
if (message.sandboxId !== "") {
|
|
36667
|
+
obj.sandboxId = message.sandboxId;
|
|
36668
|
+
}
|
|
36669
|
+
if (message.timeout !== 0) {
|
|
36670
|
+
obj.timeout = message.timeout;
|
|
36671
|
+
}
|
|
36672
|
+
return obj;
|
|
36673
|
+
},
|
|
36674
|
+
create(base) {
|
|
36675
|
+
return SandboxWaitUntilReadyRequest.fromPartial(base ?? {});
|
|
36676
|
+
},
|
|
36677
|
+
fromPartial(object) {
|
|
36678
|
+
const message = createBaseSandboxWaitUntilReadyRequest();
|
|
36679
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
36680
|
+
message.timeout = object.timeout ?? 0;
|
|
36681
|
+
return message;
|
|
36682
|
+
}
|
|
36683
|
+
};
|
|
36684
|
+
function createBaseSandboxWaitUntilReadyResponse() {
|
|
36685
|
+
return { readyAt: 0 };
|
|
36686
|
+
}
|
|
36687
|
+
var SandboxWaitUntilReadyResponse = {
|
|
36688
|
+
encode(message, writer = new BinaryWriter()) {
|
|
36689
|
+
if (message.readyAt !== 0) {
|
|
36690
|
+
writer.uint32(9).double(message.readyAt);
|
|
36691
|
+
}
|
|
36692
|
+
return writer;
|
|
36693
|
+
},
|
|
36694
|
+
decode(input, length) {
|
|
36695
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
36696
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
36697
|
+
const message = createBaseSandboxWaitUntilReadyResponse();
|
|
36698
|
+
while (reader.pos < end) {
|
|
36699
|
+
const tag = reader.uint32();
|
|
36700
|
+
switch (tag >>> 3) {
|
|
36701
|
+
case 1: {
|
|
36702
|
+
if (tag !== 9) {
|
|
36703
|
+
break;
|
|
36704
|
+
}
|
|
36705
|
+
message.readyAt = reader.double();
|
|
36706
|
+
continue;
|
|
36707
|
+
}
|
|
36708
|
+
}
|
|
36709
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36710
|
+
break;
|
|
36711
|
+
}
|
|
36712
|
+
reader.skip(tag & 7);
|
|
36713
|
+
}
|
|
36714
|
+
return message;
|
|
36715
|
+
},
|
|
36716
|
+
fromJSON(object) {
|
|
36717
|
+
return { readyAt: isSet4(object.readyAt) ? globalThis.Number(object.readyAt) : 0 };
|
|
36718
|
+
},
|
|
36719
|
+
toJSON(message) {
|
|
36720
|
+
const obj = {};
|
|
36721
|
+
if (message.readyAt !== 0) {
|
|
36722
|
+
obj.readyAt = message.readyAt;
|
|
36723
|
+
}
|
|
36724
|
+
return obj;
|
|
36725
|
+
},
|
|
36726
|
+
create(base) {
|
|
36727
|
+
return SandboxWaitUntilReadyResponse.fromPartial(base ?? {});
|
|
36728
|
+
},
|
|
36729
|
+
fromPartial(object) {
|
|
36730
|
+
const message = createBaseSandboxWaitUntilReadyResponse();
|
|
36731
|
+
message.readyAt = object.readyAt ?? 0;
|
|
36732
|
+
return message;
|
|
36733
|
+
}
|
|
36734
|
+
};
|
|
35127
36735
|
function createBaseSchedule() {
|
|
35128
36736
|
return { cron: void 0, period: void 0 };
|
|
35129
36737
|
}
|
|
@@ -37875,6 +39483,125 @@ var TaskGetCommandRouterAccessResponse = {
|
|
|
37875
39483
|
return message;
|
|
37876
39484
|
}
|
|
37877
39485
|
};
|
|
39486
|
+
function createBaseTaskGetInfoRequest() {
|
|
39487
|
+
return { taskId: "" };
|
|
39488
|
+
}
|
|
39489
|
+
var TaskGetInfoRequest = {
|
|
39490
|
+
encode(message, writer = new BinaryWriter()) {
|
|
39491
|
+
if (message.taskId !== "") {
|
|
39492
|
+
writer.uint32(10).string(message.taskId);
|
|
39493
|
+
}
|
|
39494
|
+
return writer;
|
|
39495
|
+
},
|
|
39496
|
+
decode(input, length) {
|
|
39497
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
39498
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
39499
|
+
const message = createBaseTaskGetInfoRequest();
|
|
39500
|
+
while (reader.pos < end) {
|
|
39501
|
+
const tag = reader.uint32();
|
|
39502
|
+
switch (tag >>> 3) {
|
|
39503
|
+
case 1: {
|
|
39504
|
+
if (tag !== 10) {
|
|
39505
|
+
break;
|
|
39506
|
+
}
|
|
39507
|
+
message.taskId = reader.string();
|
|
39508
|
+
continue;
|
|
39509
|
+
}
|
|
39510
|
+
}
|
|
39511
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39512
|
+
break;
|
|
39513
|
+
}
|
|
39514
|
+
reader.skip(tag & 7);
|
|
39515
|
+
}
|
|
39516
|
+
return message;
|
|
39517
|
+
},
|
|
39518
|
+
fromJSON(object) {
|
|
39519
|
+
return { taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "" };
|
|
39520
|
+
},
|
|
39521
|
+
toJSON(message) {
|
|
39522
|
+
const obj = {};
|
|
39523
|
+
if (message.taskId !== "") {
|
|
39524
|
+
obj.taskId = message.taskId;
|
|
39525
|
+
}
|
|
39526
|
+
return obj;
|
|
39527
|
+
},
|
|
39528
|
+
create(base) {
|
|
39529
|
+
return TaskGetInfoRequest.fromPartial(base ?? {});
|
|
39530
|
+
},
|
|
39531
|
+
fromPartial(object) {
|
|
39532
|
+
const message = createBaseTaskGetInfoRequest();
|
|
39533
|
+
message.taskId = object.taskId ?? "";
|
|
39534
|
+
return message;
|
|
39535
|
+
}
|
|
39536
|
+
};
|
|
39537
|
+
function createBaseTaskGetInfoResponse() {
|
|
39538
|
+
return { appId: "", info: void 0 };
|
|
39539
|
+
}
|
|
39540
|
+
var TaskGetInfoResponse = {
|
|
39541
|
+
encode(message, writer = new BinaryWriter()) {
|
|
39542
|
+
if (message.appId !== "") {
|
|
39543
|
+
writer.uint32(10).string(message.appId);
|
|
39544
|
+
}
|
|
39545
|
+
if (message.info !== void 0) {
|
|
39546
|
+
TaskInfo.encode(message.info, writer.uint32(18).fork()).join();
|
|
39547
|
+
}
|
|
39548
|
+
return writer;
|
|
39549
|
+
},
|
|
39550
|
+
decode(input, length) {
|
|
39551
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
39552
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
39553
|
+
const message = createBaseTaskGetInfoResponse();
|
|
39554
|
+
while (reader.pos < end) {
|
|
39555
|
+
const tag = reader.uint32();
|
|
39556
|
+
switch (tag >>> 3) {
|
|
39557
|
+
case 1: {
|
|
39558
|
+
if (tag !== 10) {
|
|
39559
|
+
break;
|
|
39560
|
+
}
|
|
39561
|
+
message.appId = reader.string();
|
|
39562
|
+
continue;
|
|
39563
|
+
}
|
|
39564
|
+
case 2: {
|
|
39565
|
+
if (tag !== 18) {
|
|
39566
|
+
break;
|
|
39567
|
+
}
|
|
39568
|
+
message.info = TaskInfo.decode(reader, reader.uint32());
|
|
39569
|
+
continue;
|
|
39570
|
+
}
|
|
39571
|
+
}
|
|
39572
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39573
|
+
break;
|
|
39574
|
+
}
|
|
39575
|
+
reader.skip(tag & 7);
|
|
39576
|
+
}
|
|
39577
|
+
return message;
|
|
39578
|
+
},
|
|
39579
|
+
fromJSON(object) {
|
|
39580
|
+
return {
|
|
39581
|
+
appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
|
|
39582
|
+
info: isSet4(object.info) ? TaskInfo.fromJSON(object.info) : void 0
|
|
39583
|
+
};
|
|
39584
|
+
},
|
|
39585
|
+
toJSON(message) {
|
|
39586
|
+
const obj = {};
|
|
39587
|
+
if (message.appId !== "") {
|
|
39588
|
+
obj.appId = message.appId;
|
|
39589
|
+
}
|
|
39590
|
+
if (message.info !== void 0) {
|
|
39591
|
+
obj.info = TaskInfo.toJSON(message.info);
|
|
39592
|
+
}
|
|
39593
|
+
return obj;
|
|
39594
|
+
},
|
|
39595
|
+
create(base) {
|
|
39596
|
+
return TaskGetInfoResponse.fromPartial(base ?? {});
|
|
39597
|
+
},
|
|
39598
|
+
fromPartial(object) {
|
|
39599
|
+
const message = createBaseTaskGetInfoResponse();
|
|
39600
|
+
message.appId = object.appId ?? "";
|
|
39601
|
+
message.info = object.info !== void 0 && object.info !== null ? TaskInfo.fromPartial(object.info) : void 0;
|
|
39602
|
+
return message;
|
|
39603
|
+
}
|
|
39604
|
+
};
|
|
37878
39605
|
function createBaseTaskInfo() {
|
|
37879
39606
|
return {
|
|
37880
39607
|
id: "",
|
|
@@ -38059,13 +39786,16 @@ var TaskInfo = {
|
|
|
38059
39786
|
}
|
|
38060
39787
|
};
|
|
38061
39788
|
function createBaseTaskListRequest() {
|
|
38062
|
-
return { environmentName: "" };
|
|
39789
|
+
return { environmentName: "", appId: "" };
|
|
38063
39790
|
}
|
|
38064
39791
|
var TaskListRequest = {
|
|
38065
39792
|
encode(message, writer = new BinaryWriter()) {
|
|
38066
39793
|
if (message.environmentName !== "") {
|
|
38067
39794
|
writer.uint32(10).string(message.environmentName);
|
|
38068
39795
|
}
|
|
39796
|
+
if (message.appId !== "") {
|
|
39797
|
+
writer.uint32(18).string(message.appId);
|
|
39798
|
+
}
|
|
38069
39799
|
return writer;
|
|
38070
39800
|
},
|
|
38071
39801
|
decode(input, length) {
|
|
@@ -38082,6 +39812,13 @@ var TaskListRequest = {
|
|
|
38082
39812
|
message.environmentName = reader.string();
|
|
38083
39813
|
continue;
|
|
38084
39814
|
}
|
|
39815
|
+
case 2: {
|
|
39816
|
+
if (tag !== 18) {
|
|
39817
|
+
break;
|
|
39818
|
+
}
|
|
39819
|
+
message.appId = reader.string();
|
|
39820
|
+
continue;
|
|
39821
|
+
}
|
|
38085
39822
|
}
|
|
38086
39823
|
if ((tag & 7) === 4 || tag === 0) {
|
|
38087
39824
|
break;
|
|
@@ -38091,13 +39828,19 @@ var TaskListRequest = {
|
|
|
38091
39828
|
return message;
|
|
38092
39829
|
},
|
|
38093
39830
|
fromJSON(object) {
|
|
38094
|
-
return {
|
|
39831
|
+
return {
|
|
39832
|
+
environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
39833
|
+
appId: isSet4(object.appId) ? globalThis.String(object.appId) : ""
|
|
39834
|
+
};
|
|
38095
39835
|
},
|
|
38096
39836
|
toJSON(message) {
|
|
38097
39837
|
const obj = {};
|
|
38098
39838
|
if (message.environmentName !== "") {
|
|
38099
39839
|
obj.environmentName = message.environmentName;
|
|
38100
39840
|
}
|
|
39841
|
+
if (message.appId !== "") {
|
|
39842
|
+
obj.appId = message.appId;
|
|
39843
|
+
}
|
|
38101
39844
|
return obj;
|
|
38102
39845
|
},
|
|
38103
39846
|
create(base) {
|
|
@@ -38106,6 +39849,7 @@ var TaskListRequest = {
|
|
|
38106
39849
|
fromPartial(object) {
|
|
38107
39850
|
const message = createBaseTaskListRequest();
|
|
38108
39851
|
message.environmentName = object.environmentName ?? "";
|
|
39852
|
+
message.appId = object.appId ?? "";
|
|
38109
39853
|
return message;
|
|
38110
39854
|
}
|
|
38111
39855
|
};
|
|
@@ -38171,7 +39915,9 @@ function createBaseTaskLogs() {
|
|
|
38171
39915
|
taskProgress: void 0,
|
|
38172
39916
|
functionCallId: "",
|
|
38173
39917
|
inputId: "",
|
|
38174
|
-
timestampNs: 0
|
|
39918
|
+
timestampNs: 0,
|
|
39919
|
+
containerId: "",
|
|
39920
|
+
containerName: ""
|
|
38175
39921
|
};
|
|
38176
39922
|
}
|
|
38177
39923
|
var TaskLogs = {
|
|
@@ -38200,6 +39946,12 @@ var TaskLogs = {
|
|
|
38200
39946
|
if (message.timestampNs !== 0) {
|
|
38201
39947
|
writer.uint32(96).uint64(message.timestampNs);
|
|
38202
39948
|
}
|
|
39949
|
+
if (message.containerId !== "") {
|
|
39950
|
+
writer.uint32(106).string(message.containerId);
|
|
39951
|
+
}
|
|
39952
|
+
if (message.containerName !== "") {
|
|
39953
|
+
writer.uint32(114).string(message.containerName);
|
|
39954
|
+
}
|
|
38203
39955
|
return writer;
|
|
38204
39956
|
},
|
|
38205
39957
|
decode(input, length) {
|
|
@@ -38265,6 +40017,20 @@ var TaskLogs = {
|
|
|
38265
40017
|
message.timestampNs = longToNumber2(reader.uint64());
|
|
38266
40018
|
continue;
|
|
38267
40019
|
}
|
|
40020
|
+
case 13: {
|
|
40021
|
+
if (tag !== 106) {
|
|
40022
|
+
break;
|
|
40023
|
+
}
|
|
40024
|
+
message.containerId = reader.string();
|
|
40025
|
+
continue;
|
|
40026
|
+
}
|
|
40027
|
+
case 14: {
|
|
40028
|
+
if (tag !== 114) {
|
|
40029
|
+
break;
|
|
40030
|
+
}
|
|
40031
|
+
message.containerName = reader.string();
|
|
40032
|
+
continue;
|
|
40033
|
+
}
|
|
38268
40034
|
}
|
|
38269
40035
|
if ((tag & 7) === 4 || tag === 0) {
|
|
38270
40036
|
break;
|
|
@@ -38282,7 +40048,9 @@ var TaskLogs = {
|
|
|
38282
40048
|
taskProgress: isSet4(object.taskProgress) ? TaskProgress.fromJSON(object.taskProgress) : void 0,
|
|
38283
40049
|
functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
38284
40050
|
inputId: isSet4(object.inputId) ? globalThis.String(object.inputId) : "",
|
|
38285
|
-
timestampNs: isSet4(object.timestampNs) ? globalThis.Number(object.timestampNs) : 0
|
|
40051
|
+
timestampNs: isSet4(object.timestampNs) ? globalThis.Number(object.timestampNs) : 0,
|
|
40052
|
+
containerId: isSet4(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
40053
|
+
containerName: isSet4(object.containerName) ? globalThis.String(object.containerName) : ""
|
|
38286
40054
|
};
|
|
38287
40055
|
},
|
|
38288
40056
|
toJSON(message) {
|
|
@@ -38311,6 +40079,12 @@ var TaskLogs = {
|
|
|
38311
40079
|
if (message.timestampNs !== 0) {
|
|
38312
40080
|
obj.timestampNs = Math.round(message.timestampNs);
|
|
38313
40081
|
}
|
|
40082
|
+
if (message.containerId !== "") {
|
|
40083
|
+
obj.containerId = message.containerId;
|
|
40084
|
+
}
|
|
40085
|
+
if (message.containerName !== "") {
|
|
40086
|
+
obj.containerName = message.containerName;
|
|
40087
|
+
}
|
|
38314
40088
|
return obj;
|
|
38315
40089
|
},
|
|
38316
40090
|
create(base) {
|
|
@@ -38326,6 +40100,8 @@ var TaskLogs = {
|
|
|
38326
40100
|
message.functionCallId = object.functionCallId ?? "";
|
|
38327
40101
|
message.inputId = object.inputId ?? "";
|
|
38328
40102
|
message.timestampNs = object.timestampNs ?? 0;
|
|
40103
|
+
message.containerId = object.containerId ?? "";
|
|
40104
|
+
message.containerName = object.containerName ?? "";
|
|
38329
40105
|
return message;
|
|
38330
40106
|
}
|
|
38331
40107
|
};
|
|
@@ -38694,7 +40470,7 @@ var TaskResultRequest = {
|
|
|
38694
40470
|
}
|
|
38695
40471
|
};
|
|
38696
40472
|
function createBaseTaskStats() {
|
|
38697
|
-
return { taskId: "", appId: "", appDescription: "", startedAt: 0 };
|
|
40473
|
+
return { taskId: "", appId: "", appDescription: "", startedAt: 0, enqueuedAt: 0 };
|
|
38698
40474
|
}
|
|
38699
40475
|
var TaskStats = {
|
|
38700
40476
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -38710,6 +40486,9 @@ var TaskStats = {
|
|
|
38710
40486
|
if (message.startedAt !== 0) {
|
|
38711
40487
|
writer.uint32(33).double(message.startedAt);
|
|
38712
40488
|
}
|
|
40489
|
+
if (message.enqueuedAt !== 0) {
|
|
40490
|
+
writer.uint32(41).double(message.enqueuedAt);
|
|
40491
|
+
}
|
|
38713
40492
|
return writer;
|
|
38714
40493
|
},
|
|
38715
40494
|
decode(input, length) {
|
|
@@ -38747,6 +40526,13 @@ var TaskStats = {
|
|
|
38747
40526
|
message.startedAt = reader.double();
|
|
38748
40527
|
continue;
|
|
38749
40528
|
}
|
|
40529
|
+
case 5: {
|
|
40530
|
+
if (tag !== 41) {
|
|
40531
|
+
break;
|
|
40532
|
+
}
|
|
40533
|
+
message.enqueuedAt = reader.double();
|
|
40534
|
+
continue;
|
|
40535
|
+
}
|
|
38750
40536
|
}
|
|
38751
40537
|
if ((tag & 7) === 4 || tag === 0) {
|
|
38752
40538
|
break;
|
|
@@ -38760,7 +40546,8 @@ var TaskStats = {
|
|
|
38760
40546
|
taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
38761
40547
|
appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
|
|
38762
40548
|
appDescription: isSet4(object.appDescription) ? globalThis.String(object.appDescription) : "",
|
|
38763
|
-
startedAt: isSet4(object.startedAt) ? globalThis.Number(object.startedAt) : 0
|
|
40549
|
+
startedAt: isSet4(object.startedAt) ? globalThis.Number(object.startedAt) : 0,
|
|
40550
|
+
enqueuedAt: isSet4(object.enqueuedAt) ? globalThis.Number(object.enqueuedAt) : 0
|
|
38764
40551
|
};
|
|
38765
40552
|
},
|
|
38766
40553
|
toJSON(message) {
|
|
@@ -38777,6 +40564,9 @@ var TaskStats = {
|
|
|
38777
40564
|
if (message.startedAt !== 0) {
|
|
38778
40565
|
obj.startedAt = message.startedAt;
|
|
38779
40566
|
}
|
|
40567
|
+
if (message.enqueuedAt !== 0) {
|
|
40568
|
+
obj.enqueuedAt = message.enqueuedAt;
|
|
40569
|
+
}
|
|
38780
40570
|
return obj;
|
|
38781
40571
|
},
|
|
38782
40572
|
create(base) {
|
|
@@ -38788,6 +40578,7 @@ var TaskStats = {
|
|
|
38788
40578
|
message.appId = object.appId ?? "";
|
|
38789
40579
|
message.appDescription = object.appDescription ?? "";
|
|
38790
40580
|
message.startedAt = object.startedAt ?? 0;
|
|
40581
|
+
message.enqueuedAt = object.enqueuedAt ?? 0;
|
|
38791
40582
|
return message;
|
|
38792
40583
|
}
|
|
38793
40584
|
};
|
|
@@ -38904,6 +40695,179 @@ var TaskTemplate = {
|
|
|
38904
40695
|
return message;
|
|
38905
40696
|
}
|
|
38906
40697
|
};
|
|
40698
|
+
function createBaseTemplateListRequest() {
|
|
40699
|
+
return {};
|
|
40700
|
+
}
|
|
40701
|
+
var TemplateListRequest = {
|
|
40702
|
+
encode(_, writer = new BinaryWriter()) {
|
|
40703
|
+
return writer;
|
|
40704
|
+
},
|
|
40705
|
+
decode(input, length) {
|
|
40706
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
40707
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
40708
|
+
const message = createBaseTemplateListRequest();
|
|
40709
|
+
while (reader.pos < end) {
|
|
40710
|
+
const tag = reader.uint32();
|
|
40711
|
+
switch (tag >>> 3) {
|
|
40712
|
+
}
|
|
40713
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40714
|
+
break;
|
|
40715
|
+
}
|
|
40716
|
+
reader.skip(tag & 7);
|
|
40717
|
+
}
|
|
40718
|
+
return message;
|
|
40719
|
+
},
|
|
40720
|
+
fromJSON(_) {
|
|
40721
|
+
return {};
|
|
40722
|
+
},
|
|
40723
|
+
toJSON(_) {
|
|
40724
|
+
const obj = {};
|
|
40725
|
+
return obj;
|
|
40726
|
+
},
|
|
40727
|
+
create(base) {
|
|
40728
|
+
return TemplateListRequest.fromPartial(base ?? {});
|
|
40729
|
+
},
|
|
40730
|
+
fromPartial(_) {
|
|
40731
|
+
const message = createBaseTemplateListRequest();
|
|
40732
|
+
return message;
|
|
40733
|
+
}
|
|
40734
|
+
};
|
|
40735
|
+
function createBaseTemplateListResponse() {
|
|
40736
|
+
return { items: [] };
|
|
40737
|
+
}
|
|
40738
|
+
var TemplateListResponse = {
|
|
40739
|
+
encode(message, writer = new BinaryWriter()) {
|
|
40740
|
+
for (const v of message.items) {
|
|
40741
|
+
TemplateListResponse_TemplateListItem.encode(v, writer.uint32(10).fork()).join();
|
|
40742
|
+
}
|
|
40743
|
+
return writer;
|
|
40744
|
+
},
|
|
40745
|
+
decode(input, length) {
|
|
40746
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
40747
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
40748
|
+
const message = createBaseTemplateListResponse();
|
|
40749
|
+
while (reader.pos < end) {
|
|
40750
|
+
const tag = reader.uint32();
|
|
40751
|
+
switch (tag >>> 3) {
|
|
40752
|
+
case 1: {
|
|
40753
|
+
if (tag !== 10) {
|
|
40754
|
+
break;
|
|
40755
|
+
}
|
|
40756
|
+
message.items.push(TemplateListResponse_TemplateListItem.decode(reader, reader.uint32()));
|
|
40757
|
+
continue;
|
|
40758
|
+
}
|
|
40759
|
+
}
|
|
40760
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40761
|
+
break;
|
|
40762
|
+
}
|
|
40763
|
+
reader.skip(tag & 7);
|
|
40764
|
+
}
|
|
40765
|
+
return message;
|
|
40766
|
+
},
|
|
40767
|
+
fromJSON(object) {
|
|
40768
|
+
return {
|
|
40769
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => TemplateListResponse_TemplateListItem.fromJSON(e)) : []
|
|
40770
|
+
};
|
|
40771
|
+
},
|
|
40772
|
+
toJSON(message) {
|
|
40773
|
+
const obj = {};
|
|
40774
|
+
if (message.items?.length) {
|
|
40775
|
+
obj.items = message.items.map((e) => TemplateListResponse_TemplateListItem.toJSON(e));
|
|
40776
|
+
}
|
|
40777
|
+
return obj;
|
|
40778
|
+
},
|
|
40779
|
+
create(base) {
|
|
40780
|
+
return TemplateListResponse.fromPartial(base ?? {});
|
|
40781
|
+
},
|
|
40782
|
+
fromPartial(object) {
|
|
40783
|
+
const message = createBaseTemplateListResponse();
|
|
40784
|
+
message.items = object.items?.map((e) => TemplateListResponse_TemplateListItem.fromPartial(e)) || [];
|
|
40785
|
+
return message;
|
|
40786
|
+
}
|
|
40787
|
+
};
|
|
40788
|
+
function createBaseTemplateListResponse_TemplateListItem() {
|
|
40789
|
+
return { name: "", repo: "", ref: "" };
|
|
40790
|
+
}
|
|
40791
|
+
var TemplateListResponse_TemplateListItem = {
|
|
40792
|
+
encode(message, writer = new BinaryWriter()) {
|
|
40793
|
+
if (message.name !== "") {
|
|
40794
|
+
writer.uint32(10).string(message.name);
|
|
40795
|
+
}
|
|
40796
|
+
if (message.repo !== "") {
|
|
40797
|
+
writer.uint32(18).string(message.repo);
|
|
40798
|
+
}
|
|
40799
|
+
if (message.ref !== "") {
|
|
40800
|
+
writer.uint32(26).string(message.ref);
|
|
40801
|
+
}
|
|
40802
|
+
return writer;
|
|
40803
|
+
},
|
|
40804
|
+
decode(input, length) {
|
|
40805
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
40806
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
40807
|
+
const message = createBaseTemplateListResponse_TemplateListItem();
|
|
40808
|
+
while (reader.pos < end) {
|
|
40809
|
+
const tag = reader.uint32();
|
|
40810
|
+
switch (tag >>> 3) {
|
|
40811
|
+
case 1: {
|
|
40812
|
+
if (tag !== 10) {
|
|
40813
|
+
break;
|
|
40814
|
+
}
|
|
40815
|
+
message.name = reader.string();
|
|
40816
|
+
continue;
|
|
40817
|
+
}
|
|
40818
|
+
case 2: {
|
|
40819
|
+
if (tag !== 18) {
|
|
40820
|
+
break;
|
|
40821
|
+
}
|
|
40822
|
+
message.repo = reader.string();
|
|
40823
|
+
continue;
|
|
40824
|
+
}
|
|
40825
|
+
case 3: {
|
|
40826
|
+
if (tag !== 26) {
|
|
40827
|
+
break;
|
|
40828
|
+
}
|
|
40829
|
+
message.ref = reader.string();
|
|
40830
|
+
continue;
|
|
40831
|
+
}
|
|
40832
|
+
}
|
|
40833
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40834
|
+
break;
|
|
40835
|
+
}
|
|
40836
|
+
reader.skip(tag & 7);
|
|
40837
|
+
}
|
|
40838
|
+
return message;
|
|
40839
|
+
},
|
|
40840
|
+
fromJSON(object) {
|
|
40841
|
+
return {
|
|
40842
|
+
name: isSet4(object.name) ? globalThis.String(object.name) : "",
|
|
40843
|
+
repo: isSet4(object.repo) ? globalThis.String(object.repo) : "",
|
|
40844
|
+
ref: isSet4(object.ref) ? globalThis.String(object.ref) : ""
|
|
40845
|
+
};
|
|
40846
|
+
},
|
|
40847
|
+
toJSON(message) {
|
|
40848
|
+
const obj = {};
|
|
40849
|
+
if (message.name !== "") {
|
|
40850
|
+
obj.name = message.name;
|
|
40851
|
+
}
|
|
40852
|
+
if (message.repo !== "") {
|
|
40853
|
+
obj.repo = message.repo;
|
|
40854
|
+
}
|
|
40855
|
+
if (message.ref !== "") {
|
|
40856
|
+
obj.ref = message.ref;
|
|
40857
|
+
}
|
|
40858
|
+
return obj;
|
|
40859
|
+
},
|
|
40860
|
+
create(base) {
|
|
40861
|
+
return TemplateListResponse_TemplateListItem.fromPartial(base ?? {});
|
|
40862
|
+
},
|
|
40863
|
+
fromPartial(object) {
|
|
40864
|
+
const message = createBaseTemplateListResponse_TemplateListItem();
|
|
40865
|
+
message.name = object.name ?? "";
|
|
40866
|
+
message.repo = object.repo ?? "";
|
|
40867
|
+
message.ref = object.ref ?? "";
|
|
40868
|
+
return message;
|
|
40869
|
+
}
|
|
40870
|
+
};
|
|
38907
40871
|
function createBaseTokenFlowCreateRequest() {
|
|
38908
40872
|
return { utmSource: "", localhostPort: 0, nextUrl: "" };
|
|
38909
40873
|
}
|
|
@@ -43438,6 +45402,14 @@ var ModalClientDefinition = {
|
|
|
43438
45402
|
responseStream: false,
|
|
43439
45403
|
options: {}
|
|
43440
45404
|
},
|
|
45405
|
+
appCountLogs: {
|
|
45406
|
+
name: "AppCountLogs",
|
|
45407
|
+
requestType: AppCountLogsRequest,
|
|
45408
|
+
requestStream: false,
|
|
45409
|
+
responseType: AppCountLogsResponse,
|
|
45410
|
+
responseStream: false,
|
|
45411
|
+
options: {}
|
|
45412
|
+
},
|
|
43441
45413
|
appCreate: {
|
|
43442
45414
|
name: "AppCreate",
|
|
43443
45415
|
requestType: AppCreateRequest,
|
|
@@ -43462,6 +45434,14 @@ var ModalClientDefinition = {
|
|
|
43462
45434
|
responseStream: false,
|
|
43463
45435
|
options: {}
|
|
43464
45436
|
},
|
|
45437
|
+
appFetchLogs: {
|
|
45438
|
+
name: "AppFetchLogs",
|
|
45439
|
+
requestType: AppFetchLogsRequest,
|
|
45440
|
+
requestStream: false,
|
|
45441
|
+
responseType: AppFetchLogsResponse,
|
|
45442
|
+
responseStream: false,
|
|
45443
|
+
options: {}
|
|
45444
|
+
},
|
|
43465
45445
|
appGetByDeploymentName: {
|
|
43466
45446
|
name: "AppGetByDeploymentName",
|
|
43467
45447
|
requestType: AppGetByDeploymentNameRequest,
|
|
@@ -43478,6 +45458,14 @@ var ModalClientDefinition = {
|
|
|
43478
45458
|
responseStream: false,
|
|
43479
45459
|
options: {}
|
|
43480
45460
|
},
|
|
45461
|
+
appGetLifecycle: {
|
|
45462
|
+
name: "AppGetLifecycle",
|
|
45463
|
+
requestType: AppGetLifecycleRequest,
|
|
45464
|
+
requestStream: false,
|
|
45465
|
+
responseType: AppGetLifecycleResponse,
|
|
45466
|
+
responseStream: false,
|
|
45467
|
+
options: {}
|
|
45468
|
+
},
|
|
43481
45469
|
appGetLogs: {
|
|
43482
45470
|
name: "AppGetLogs",
|
|
43483
45471
|
requestType: AppGetLogsRequest,
|
|
@@ -43550,6 +45538,14 @@ var ModalClientDefinition = {
|
|
|
43550
45538
|
responseStream: false,
|
|
43551
45539
|
options: {}
|
|
43552
45540
|
},
|
|
45541
|
+
appRollover: {
|
|
45542
|
+
name: "AppRollover",
|
|
45543
|
+
requestType: AppRolloverRequest,
|
|
45544
|
+
requestStream: false,
|
|
45545
|
+
responseType: AppRolloverResponse,
|
|
45546
|
+
responseStream: false,
|
|
45547
|
+
options: {}
|
|
45548
|
+
},
|
|
43553
45549
|
appSetObjects: {
|
|
43554
45550
|
name: "AppSetObjects",
|
|
43555
45551
|
requestType: AppSetObjectsRequest,
|
|
@@ -44397,6 +46393,22 @@ var ModalClientDefinition = {
|
|
|
44397
46393
|
responseStream: false,
|
|
44398
46394
|
options: {}
|
|
44399
46395
|
},
|
|
46396
|
+
sandboxCreateV2: {
|
|
46397
|
+
name: "SandboxCreateV2",
|
|
46398
|
+
requestType: SandboxCreateV2Request,
|
|
46399
|
+
requestStream: false,
|
|
46400
|
+
responseType: SandboxCreateV2Response,
|
|
46401
|
+
responseStream: false,
|
|
46402
|
+
options: {}
|
|
46403
|
+
},
|
|
46404
|
+
sandboxGetCommandRouterAccess: {
|
|
46405
|
+
name: "SandboxGetCommandRouterAccess",
|
|
46406
|
+
requestType: SandboxGetCommandRouterAccessRequest,
|
|
46407
|
+
requestStream: false,
|
|
46408
|
+
responseType: SandboxGetCommandRouterAccessResponse,
|
|
46409
|
+
responseStream: false,
|
|
46410
|
+
options: {}
|
|
46411
|
+
},
|
|
44400
46412
|
sandboxGetFromName: {
|
|
44401
46413
|
name: "SandboxGetFromName",
|
|
44402
46414
|
requestType: SandboxGetFromNameRequest,
|
|
@@ -44430,6 +46442,14 @@ var ModalClientDefinition = {
|
|
|
44430
46442
|
responseStream: false,
|
|
44431
46443
|
options: {}
|
|
44432
46444
|
},
|
|
46445
|
+
sandboxGetTaskIdV2: {
|
|
46446
|
+
name: "SandboxGetTaskIdV2",
|
|
46447
|
+
requestType: SandboxGetTaskIdRequest,
|
|
46448
|
+
requestStream: false,
|
|
46449
|
+
responseType: SandboxGetTaskIdResponse,
|
|
46450
|
+
responseStream: false,
|
|
46451
|
+
options: {}
|
|
46452
|
+
},
|
|
44433
46453
|
sandboxGetTunnels: {
|
|
44434
46454
|
name: "SandboxGetTunnels",
|
|
44435
46455
|
requestType: SandboxGetTunnelsRequest,
|
|
@@ -44438,6 +46458,14 @@ var ModalClientDefinition = {
|
|
|
44438
46458
|
responseStream: false,
|
|
44439
46459
|
options: {}
|
|
44440
46460
|
},
|
|
46461
|
+
sandboxGetTunnelsV2: {
|
|
46462
|
+
name: "SandboxGetTunnelsV2",
|
|
46463
|
+
requestType: SandboxGetTunnelsRequest,
|
|
46464
|
+
requestStream: false,
|
|
46465
|
+
responseType: SandboxGetTunnelsResponse,
|
|
46466
|
+
responseStream: false,
|
|
46467
|
+
options: {}
|
|
46468
|
+
},
|
|
44441
46469
|
sandboxList: {
|
|
44442
46470
|
name: "SandboxList",
|
|
44443
46471
|
requestType: SandboxListRequest,
|
|
@@ -44534,6 +46562,14 @@ var ModalClientDefinition = {
|
|
|
44534
46562
|
responseStream: false,
|
|
44535
46563
|
options: {}
|
|
44536
46564
|
},
|
|
46565
|
+
sandboxTerminateV2: {
|
|
46566
|
+
name: "SandboxTerminateV2",
|
|
46567
|
+
requestType: SandboxTerminateRequest,
|
|
46568
|
+
requestStream: false,
|
|
46569
|
+
responseType: SandboxTerminateResponse,
|
|
46570
|
+
responseStream: false,
|
|
46571
|
+
options: {}
|
|
46572
|
+
},
|
|
44537
46573
|
sandboxWait: {
|
|
44538
46574
|
name: "SandboxWait",
|
|
44539
46575
|
requestType: SandboxWaitRequest,
|
|
@@ -44542,6 +46578,22 @@ var ModalClientDefinition = {
|
|
|
44542
46578
|
responseStream: false,
|
|
44543
46579
|
options: {}
|
|
44544
46580
|
},
|
|
46581
|
+
sandboxWaitUntilReady: {
|
|
46582
|
+
name: "SandboxWaitUntilReady",
|
|
46583
|
+
requestType: SandboxWaitUntilReadyRequest,
|
|
46584
|
+
requestStream: false,
|
|
46585
|
+
responseType: SandboxWaitUntilReadyResponse,
|
|
46586
|
+
responseStream: false,
|
|
46587
|
+
options: {}
|
|
46588
|
+
},
|
|
46589
|
+
sandboxWaitV2: {
|
|
46590
|
+
name: "SandboxWaitV2",
|
|
46591
|
+
requestType: SandboxWaitRequest,
|
|
46592
|
+
requestStream: false,
|
|
46593
|
+
responseType: SandboxWaitResponse,
|
|
46594
|
+
responseStream: false,
|
|
46595
|
+
options: {}
|
|
46596
|
+
},
|
|
44545
46597
|
/** Secrets */
|
|
44546
46598
|
secretDelete: {
|
|
44547
46599
|
name: "SecretDelete",
|
|
@@ -44673,6 +46725,14 @@ var ModalClientDefinition = {
|
|
|
44673
46725
|
responseStream: false,
|
|
44674
46726
|
options: {}
|
|
44675
46727
|
},
|
|
46728
|
+
taskGetInfo: {
|
|
46729
|
+
name: "TaskGetInfo",
|
|
46730
|
+
requestType: TaskGetInfoRequest,
|
|
46731
|
+
requestStream: false,
|
|
46732
|
+
responseType: TaskGetInfoResponse,
|
|
46733
|
+
responseStream: false,
|
|
46734
|
+
options: {}
|
|
46735
|
+
},
|
|
44676
46736
|
taskList: {
|
|
44677
46737
|
name: "TaskList",
|
|
44678
46738
|
requestType: TaskListRequest,
|
|
@@ -44689,6 +46749,15 @@ var ModalClientDefinition = {
|
|
|
44689
46749
|
responseStream: false,
|
|
44690
46750
|
options: {}
|
|
44691
46751
|
},
|
|
46752
|
+
/** Templates */
|
|
46753
|
+
templateList: {
|
|
46754
|
+
name: "TemplateList",
|
|
46755
|
+
requestType: TemplateListRequest,
|
|
46756
|
+
requestStream: false,
|
|
46757
|
+
responseType: TemplateListResponse,
|
|
46758
|
+
responseStream: false,
|
|
46759
|
+
options: {}
|
|
46760
|
+
},
|
|
44692
46761
|
/** Tokens (web auth flow) */
|
|
44693
46762
|
tokenFlowCreate: {
|
|
44694
46763
|
name: "TokenFlowCreate",
|
|
@@ -45053,6 +47122,12 @@ var CloudBucketMount2 = class {
|
|
|
45053
47122
|
var import_nice_grpc3 = require("nice-grpc");
|
|
45054
47123
|
|
|
45055
47124
|
// src/errors.ts
|
|
47125
|
+
var TimeoutError = class extends Error {
|
|
47126
|
+
constructor(message = "Operation timed out") {
|
|
47127
|
+
super(message);
|
|
47128
|
+
this.name = "TimeoutError";
|
|
47129
|
+
}
|
|
47130
|
+
};
|
|
45056
47131
|
var FunctionTimeoutError = class extends Error {
|
|
45057
47132
|
constructor(message) {
|
|
45058
47133
|
super(message);
|
|
@@ -47258,23 +49333,38 @@ function taskExecStdoutConfigToJSON(object) {
|
|
|
47258
49333
|
return "UNRECOGNIZED";
|
|
47259
49334
|
}
|
|
47260
49335
|
}
|
|
47261
|
-
function
|
|
47262
|
-
return { taskId: "",
|
|
49336
|
+
function createBaseTaskContainerCreateRequest() {
|
|
49337
|
+
return { taskId: "", containerName: "", imageId: "", args: [], env: {}, workdir: "", secretIds: [] };
|
|
47263
49338
|
}
|
|
47264
|
-
var
|
|
49339
|
+
var TaskContainerCreateRequest = {
|
|
47265
49340
|
encode(message, writer = new BinaryWriter()) {
|
|
47266
49341
|
if (message.taskId !== "") {
|
|
47267
49342
|
writer.uint32(10).string(message.taskId);
|
|
47268
49343
|
}
|
|
47269
|
-
if (message.
|
|
47270
|
-
writer.uint32(18).string(message.
|
|
49344
|
+
if (message.containerName !== "") {
|
|
49345
|
+
writer.uint32(18).string(message.containerName);
|
|
49346
|
+
}
|
|
49347
|
+
if (message.imageId !== "") {
|
|
49348
|
+
writer.uint32(26).string(message.imageId);
|
|
49349
|
+
}
|
|
49350
|
+
for (const v of message.args) {
|
|
49351
|
+
writer.uint32(42).string(v);
|
|
49352
|
+
}
|
|
49353
|
+
Object.entries(message.env).forEach(([key, value]) => {
|
|
49354
|
+
TaskContainerCreateRequest_EnvEntry.encode({ key, value }, writer.uint32(50).fork()).join();
|
|
49355
|
+
});
|
|
49356
|
+
if (message.workdir !== "") {
|
|
49357
|
+
writer.uint32(58).string(message.workdir);
|
|
49358
|
+
}
|
|
49359
|
+
for (const v of message.secretIds) {
|
|
49360
|
+
writer.uint32(66).string(v);
|
|
47271
49361
|
}
|
|
47272
49362
|
return writer;
|
|
47273
49363
|
},
|
|
47274
49364
|
decode(input, length) {
|
|
47275
49365
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
47276
49366
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
47277
|
-
const message =
|
|
49367
|
+
const message = createBaseTaskContainerCreateRequest();
|
|
47278
49368
|
while (reader.pos < end) {
|
|
47279
49369
|
const tag = reader.uint32();
|
|
47280
49370
|
switch (tag >>> 3) {
|
|
@@ -47289,7 +49379,45 @@ var TaskExecPollRequest = {
|
|
|
47289
49379
|
if (tag !== 18) {
|
|
47290
49380
|
break;
|
|
47291
49381
|
}
|
|
47292
|
-
message.
|
|
49382
|
+
message.containerName = reader.string();
|
|
49383
|
+
continue;
|
|
49384
|
+
}
|
|
49385
|
+
case 3: {
|
|
49386
|
+
if (tag !== 26) {
|
|
49387
|
+
break;
|
|
49388
|
+
}
|
|
49389
|
+
message.imageId = reader.string();
|
|
49390
|
+
continue;
|
|
49391
|
+
}
|
|
49392
|
+
case 5: {
|
|
49393
|
+
if (tag !== 42) {
|
|
49394
|
+
break;
|
|
49395
|
+
}
|
|
49396
|
+
message.args.push(reader.string());
|
|
49397
|
+
continue;
|
|
49398
|
+
}
|
|
49399
|
+
case 6: {
|
|
49400
|
+
if (tag !== 50) {
|
|
49401
|
+
break;
|
|
49402
|
+
}
|
|
49403
|
+
const entry6 = TaskContainerCreateRequest_EnvEntry.decode(reader, reader.uint32());
|
|
49404
|
+
if (entry6.value !== void 0) {
|
|
49405
|
+
message.env[entry6.key] = entry6.value;
|
|
49406
|
+
}
|
|
49407
|
+
continue;
|
|
49408
|
+
}
|
|
49409
|
+
case 7: {
|
|
49410
|
+
if (tag !== 58) {
|
|
49411
|
+
break;
|
|
49412
|
+
}
|
|
49413
|
+
message.workdir = reader.string();
|
|
49414
|
+
continue;
|
|
49415
|
+
}
|
|
49416
|
+
case 8: {
|
|
49417
|
+
if (tag !== 66) {
|
|
49418
|
+
break;
|
|
49419
|
+
}
|
|
49420
|
+
message.secretIds.push(reader.string());
|
|
47293
49421
|
continue;
|
|
47294
49422
|
}
|
|
47295
49423
|
}
|
|
@@ -47303,7 +49431,15 @@ var TaskExecPollRequest = {
|
|
|
47303
49431
|
fromJSON(object) {
|
|
47304
49432
|
return {
|
|
47305
49433
|
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
47306
|
-
|
|
49434
|
+
containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
|
|
49435
|
+
imageId: isSet5(object.imageId) ? globalThis.String(object.imageId) : "",
|
|
49436
|
+
args: globalThis.Array.isArray(object?.args) ? object.args.map((e) => globalThis.String(e)) : [],
|
|
49437
|
+
env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
|
|
49438
|
+
acc[key] = String(value);
|
|
49439
|
+
return acc;
|
|
49440
|
+
}, {}) : {},
|
|
49441
|
+
workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : "",
|
|
49442
|
+
secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : []
|
|
47307
49443
|
};
|
|
47308
49444
|
},
|
|
47309
49445
|
toJSON(message) {
|
|
@@ -47311,53 +49447,84 @@ var TaskExecPollRequest = {
|
|
|
47311
49447
|
if (message.taskId !== "") {
|
|
47312
49448
|
obj.taskId = message.taskId;
|
|
47313
49449
|
}
|
|
47314
|
-
if (message.
|
|
47315
|
-
obj.
|
|
49450
|
+
if (message.containerName !== "") {
|
|
49451
|
+
obj.containerName = message.containerName;
|
|
49452
|
+
}
|
|
49453
|
+
if (message.imageId !== "") {
|
|
49454
|
+
obj.imageId = message.imageId;
|
|
49455
|
+
}
|
|
49456
|
+
if (message.args?.length) {
|
|
49457
|
+
obj.args = message.args;
|
|
49458
|
+
}
|
|
49459
|
+
if (message.env) {
|
|
49460
|
+
const entries = Object.entries(message.env);
|
|
49461
|
+
if (entries.length > 0) {
|
|
49462
|
+
obj.env = {};
|
|
49463
|
+
entries.forEach(([k, v]) => {
|
|
49464
|
+
obj.env[k] = v;
|
|
49465
|
+
});
|
|
49466
|
+
}
|
|
49467
|
+
}
|
|
49468
|
+
if (message.workdir !== "") {
|
|
49469
|
+
obj.workdir = message.workdir;
|
|
49470
|
+
}
|
|
49471
|
+
if (message.secretIds?.length) {
|
|
49472
|
+
obj.secretIds = message.secretIds;
|
|
47316
49473
|
}
|
|
47317
49474
|
return obj;
|
|
47318
49475
|
},
|
|
47319
49476
|
create(base) {
|
|
47320
|
-
return
|
|
49477
|
+
return TaskContainerCreateRequest.fromPartial(base ?? {});
|
|
47321
49478
|
},
|
|
47322
49479
|
fromPartial(object) {
|
|
47323
|
-
const message =
|
|
49480
|
+
const message = createBaseTaskContainerCreateRequest();
|
|
47324
49481
|
message.taskId = object.taskId ?? "";
|
|
47325
|
-
message.
|
|
49482
|
+
message.containerName = object.containerName ?? "";
|
|
49483
|
+
message.imageId = object.imageId ?? "";
|
|
49484
|
+
message.args = object.args?.map((e) => e) || [];
|
|
49485
|
+
message.env = Object.entries(object.env ?? {}).reduce((acc, [key, value]) => {
|
|
49486
|
+
if (value !== void 0) {
|
|
49487
|
+
acc[key] = globalThis.String(value);
|
|
49488
|
+
}
|
|
49489
|
+
return acc;
|
|
49490
|
+
}, {});
|
|
49491
|
+
message.workdir = object.workdir ?? "";
|
|
49492
|
+
message.secretIds = object.secretIds?.map((e) => e) || [];
|
|
47326
49493
|
return message;
|
|
47327
49494
|
}
|
|
47328
49495
|
};
|
|
47329
|
-
function
|
|
47330
|
-
return {
|
|
49496
|
+
function createBaseTaskContainerCreateRequest_EnvEntry() {
|
|
49497
|
+
return { key: "", value: "" };
|
|
47331
49498
|
}
|
|
47332
|
-
var
|
|
49499
|
+
var TaskContainerCreateRequest_EnvEntry = {
|
|
47333
49500
|
encode(message, writer = new BinaryWriter()) {
|
|
47334
|
-
if (message.
|
|
47335
|
-
writer.uint32(
|
|
49501
|
+
if (message.key !== "") {
|
|
49502
|
+
writer.uint32(10).string(message.key);
|
|
47336
49503
|
}
|
|
47337
|
-
if (message.
|
|
47338
|
-
writer.uint32(
|
|
49504
|
+
if (message.value !== "") {
|
|
49505
|
+
writer.uint32(18).string(message.value);
|
|
47339
49506
|
}
|
|
47340
49507
|
return writer;
|
|
47341
49508
|
},
|
|
47342
49509
|
decode(input, length) {
|
|
47343
49510
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
47344
49511
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
47345
|
-
const message =
|
|
49512
|
+
const message = createBaseTaskContainerCreateRequest_EnvEntry();
|
|
47346
49513
|
while (reader.pos < end) {
|
|
47347
49514
|
const tag = reader.uint32();
|
|
47348
49515
|
switch (tag >>> 3) {
|
|
47349
49516
|
case 1: {
|
|
47350
|
-
if (tag !==
|
|
49517
|
+
if (tag !== 10) {
|
|
47351
49518
|
break;
|
|
47352
49519
|
}
|
|
47353
|
-
message.
|
|
49520
|
+
message.key = reader.string();
|
|
47354
49521
|
continue;
|
|
47355
49522
|
}
|
|
47356
49523
|
case 2: {
|
|
47357
|
-
if (tag !==
|
|
49524
|
+
if (tag !== 18) {
|
|
47358
49525
|
break;
|
|
47359
49526
|
}
|
|
47360
|
-
message.
|
|
49527
|
+
message.value = reader.string();
|
|
47361
49528
|
continue;
|
|
47362
49529
|
}
|
|
47363
49530
|
}
|
|
@@ -47370,82 +49537,47 @@ var TaskExecPollResponse = {
|
|
|
47370
49537
|
},
|
|
47371
49538
|
fromJSON(object) {
|
|
47372
49539
|
return {
|
|
47373
|
-
|
|
47374
|
-
|
|
49540
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
49541
|
+
value: isSet5(object.value) ? globalThis.String(object.value) : ""
|
|
47375
49542
|
};
|
|
47376
49543
|
},
|
|
47377
49544
|
toJSON(message) {
|
|
47378
49545
|
const obj = {};
|
|
47379
|
-
if (message.
|
|
47380
|
-
obj.
|
|
49546
|
+
if (message.key !== "") {
|
|
49547
|
+
obj.key = message.key;
|
|
47381
49548
|
}
|
|
47382
|
-
if (message.
|
|
47383
|
-
obj.
|
|
49549
|
+
if (message.value !== "") {
|
|
49550
|
+
obj.value = message.value;
|
|
47384
49551
|
}
|
|
47385
49552
|
return obj;
|
|
47386
49553
|
},
|
|
47387
49554
|
create(base) {
|
|
47388
|
-
return
|
|
49555
|
+
return TaskContainerCreateRequest_EnvEntry.fromPartial(base ?? {});
|
|
47389
49556
|
},
|
|
47390
49557
|
fromPartial(object) {
|
|
47391
|
-
const message =
|
|
47392
|
-
message.
|
|
47393
|
-
message.
|
|
49558
|
+
const message = createBaseTaskContainerCreateRequest_EnvEntry();
|
|
49559
|
+
message.key = object.key ?? "";
|
|
49560
|
+
message.value = object.value ?? "";
|
|
47394
49561
|
return message;
|
|
47395
49562
|
}
|
|
47396
49563
|
};
|
|
47397
|
-
function
|
|
47398
|
-
return {
|
|
47399
|
-
taskId: "",
|
|
47400
|
-
execId: "",
|
|
47401
|
-
commandArgs: [],
|
|
47402
|
-
stdoutConfig: 0,
|
|
47403
|
-
stderrConfig: 0,
|
|
47404
|
-
timeoutSecs: void 0,
|
|
47405
|
-
workdir: void 0,
|
|
47406
|
-
secretIds: [],
|
|
47407
|
-
ptyInfo: void 0,
|
|
47408
|
-
runtimeDebug: false
|
|
47409
|
-
};
|
|
49564
|
+
function createBaseTaskContainerCreateResponse() {
|
|
49565
|
+
return { containerId: "", containerName: "" };
|
|
47410
49566
|
}
|
|
47411
|
-
var
|
|
49567
|
+
var TaskContainerCreateResponse = {
|
|
47412
49568
|
encode(message, writer = new BinaryWriter()) {
|
|
47413
|
-
if (message.
|
|
47414
|
-
writer.uint32(10).string(message.
|
|
47415
|
-
}
|
|
47416
|
-
if (message.execId !== "") {
|
|
47417
|
-
writer.uint32(18).string(message.execId);
|
|
47418
|
-
}
|
|
47419
|
-
for (const v of message.commandArgs) {
|
|
47420
|
-
writer.uint32(26).string(v);
|
|
47421
|
-
}
|
|
47422
|
-
if (message.stdoutConfig !== 0) {
|
|
47423
|
-
writer.uint32(32).int32(message.stdoutConfig);
|
|
47424
|
-
}
|
|
47425
|
-
if (message.stderrConfig !== 0) {
|
|
47426
|
-
writer.uint32(40).int32(message.stderrConfig);
|
|
47427
|
-
}
|
|
47428
|
-
if (message.timeoutSecs !== void 0) {
|
|
47429
|
-
writer.uint32(48).uint32(message.timeoutSecs);
|
|
47430
|
-
}
|
|
47431
|
-
if (message.workdir !== void 0) {
|
|
47432
|
-
writer.uint32(58).string(message.workdir);
|
|
47433
|
-
}
|
|
47434
|
-
for (const v of message.secretIds) {
|
|
47435
|
-
writer.uint32(66).string(v);
|
|
47436
|
-
}
|
|
47437
|
-
if (message.ptyInfo !== void 0) {
|
|
47438
|
-
PTYInfo.encode(message.ptyInfo, writer.uint32(74).fork()).join();
|
|
49569
|
+
if (message.containerId !== "") {
|
|
49570
|
+
writer.uint32(10).string(message.containerId);
|
|
47439
49571
|
}
|
|
47440
|
-
if (message.
|
|
47441
|
-
writer.uint32(
|
|
49572
|
+
if (message.containerName !== "") {
|
|
49573
|
+
writer.uint32(18).string(message.containerName);
|
|
47442
49574
|
}
|
|
47443
49575
|
return writer;
|
|
47444
49576
|
},
|
|
47445
49577
|
decode(input, length) {
|
|
47446
49578
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
47447
49579
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
47448
|
-
const message =
|
|
49580
|
+
const message = createBaseTaskContainerCreateResponse();
|
|
47449
49581
|
while (reader.pos < end) {
|
|
47450
49582
|
const tag = reader.uint32();
|
|
47451
49583
|
switch (tag >>> 3) {
|
|
@@ -47453,70 +49585,92 @@ var TaskExecStartRequest = {
|
|
|
47453
49585
|
if (tag !== 10) {
|
|
47454
49586
|
break;
|
|
47455
49587
|
}
|
|
47456
|
-
message.
|
|
49588
|
+
message.containerId = reader.string();
|
|
47457
49589
|
continue;
|
|
47458
49590
|
}
|
|
47459
49591
|
case 2: {
|
|
47460
49592
|
if (tag !== 18) {
|
|
47461
49593
|
break;
|
|
47462
49594
|
}
|
|
47463
|
-
message.
|
|
47464
|
-
continue;
|
|
47465
|
-
}
|
|
47466
|
-
case 3: {
|
|
47467
|
-
if (tag !== 26) {
|
|
47468
|
-
break;
|
|
47469
|
-
}
|
|
47470
|
-
message.commandArgs.push(reader.string());
|
|
47471
|
-
continue;
|
|
47472
|
-
}
|
|
47473
|
-
case 4: {
|
|
47474
|
-
if (tag !== 32) {
|
|
47475
|
-
break;
|
|
47476
|
-
}
|
|
47477
|
-
message.stdoutConfig = reader.int32();
|
|
47478
|
-
continue;
|
|
47479
|
-
}
|
|
47480
|
-
case 5: {
|
|
47481
|
-
if (tag !== 40) {
|
|
47482
|
-
break;
|
|
47483
|
-
}
|
|
47484
|
-
message.stderrConfig = reader.int32();
|
|
47485
|
-
continue;
|
|
47486
|
-
}
|
|
47487
|
-
case 6: {
|
|
47488
|
-
if (tag !== 48) {
|
|
47489
|
-
break;
|
|
47490
|
-
}
|
|
47491
|
-
message.timeoutSecs = reader.uint32();
|
|
47492
|
-
continue;
|
|
47493
|
-
}
|
|
47494
|
-
case 7: {
|
|
47495
|
-
if (tag !== 58) {
|
|
47496
|
-
break;
|
|
47497
|
-
}
|
|
47498
|
-
message.workdir = reader.string();
|
|
49595
|
+
message.containerName = reader.string();
|
|
47499
49596
|
continue;
|
|
47500
49597
|
}
|
|
47501
|
-
|
|
47502
|
-
|
|
49598
|
+
}
|
|
49599
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49600
|
+
break;
|
|
49601
|
+
}
|
|
49602
|
+
reader.skip(tag & 7);
|
|
49603
|
+
}
|
|
49604
|
+
return message;
|
|
49605
|
+
},
|
|
49606
|
+
fromJSON(object) {
|
|
49607
|
+
return {
|
|
49608
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
49609
|
+
containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : ""
|
|
49610
|
+
};
|
|
49611
|
+
},
|
|
49612
|
+
toJSON(message) {
|
|
49613
|
+
const obj = {};
|
|
49614
|
+
if (message.containerId !== "") {
|
|
49615
|
+
obj.containerId = message.containerId;
|
|
49616
|
+
}
|
|
49617
|
+
if (message.containerName !== "") {
|
|
49618
|
+
obj.containerName = message.containerName;
|
|
49619
|
+
}
|
|
49620
|
+
return obj;
|
|
49621
|
+
},
|
|
49622
|
+
create(base) {
|
|
49623
|
+
return TaskContainerCreateResponse.fromPartial(base ?? {});
|
|
49624
|
+
},
|
|
49625
|
+
fromPartial(object) {
|
|
49626
|
+
const message = createBaseTaskContainerCreateResponse();
|
|
49627
|
+
message.containerId = object.containerId ?? "";
|
|
49628
|
+
message.containerName = object.containerName ?? "";
|
|
49629
|
+
return message;
|
|
49630
|
+
}
|
|
49631
|
+
};
|
|
49632
|
+
function createBaseTaskContainerGetRequest() {
|
|
49633
|
+
return { taskId: "", containerName: "", includeTerminated: false };
|
|
49634
|
+
}
|
|
49635
|
+
var TaskContainerGetRequest = {
|
|
49636
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49637
|
+
if (message.taskId !== "") {
|
|
49638
|
+
writer.uint32(10).string(message.taskId);
|
|
49639
|
+
}
|
|
49640
|
+
if (message.containerName !== "") {
|
|
49641
|
+
writer.uint32(18).string(message.containerName);
|
|
49642
|
+
}
|
|
49643
|
+
if (message.includeTerminated !== false) {
|
|
49644
|
+
writer.uint32(24).bool(message.includeTerminated);
|
|
49645
|
+
}
|
|
49646
|
+
return writer;
|
|
49647
|
+
},
|
|
49648
|
+
decode(input, length) {
|
|
49649
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49650
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49651
|
+
const message = createBaseTaskContainerGetRequest();
|
|
49652
|
+
while (reader.pos < end) {
|
|
49653
|
+
const tag = reader.uint32();
|
|
49654
|
+
switch (tag >>> 3) {
|
|
49655
|
+
case 1: {
|
|
49656
|
+
if (tag !== 10) {
|
|
47503
49657
|
break;
|
|
47504
49658
|
}
|
|
47505
|
-
message.
|
|
49659
|
+
message.taskId = reader.string();
|
|
47506
49660
|
continue;
|
|
47507
49661
|
}
|
|
47508
|
-
case
|
|
47509
|
-
if (tag !==
|
|
49662
|
+
case 2: {
|
|
49663
|
+
if (tag !== 18) {
|
|
47510
49664
|
break;
|
|
47511
49665
|
}
|
|
47512
|
-
message.
|
|
49666
|
+
message.containerName = reader.string();
|
|
47513
49667
|
continue;
|
|
47514
49668
|
}
|
|
47515
|
-
case
|
|
47516
|
-
if (tag !==
|
|
49669
|
+
case 3: {
|
|
49670
|
+
if (tag !== 24) {
|
|
47517
49671
|
break;
|
|
47518
49672
|
}
|
|
47519
|
-
message.
|
|
49673
|
+
message.includeTerminated = reader.bool();
|
|
47520
49674
|
continue;
|
|
47521
49675
|
}
|
|
47522
49676
|
}
|
|
@@ -47530,15 +49684,8 @@ var TaskExecStartRequest = {
|
|
|
47530
49684
|
fromJSON(object) {
|
|
47531
49685
|
return {
|
|
47532
49686
|
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
47533
|
-
|
|
47534
|
-
|
|
47535
|
-
stdoutConfig: isSet5(object.stdoutConfig) ? taskExecStdoutConfigFromJSON(object.stdoutConfig) : 0,
|
|
47536
|
-
stderrConfig: isSet5(object.stderrConfig) ? taskExecStderrConfigFromJSON(object.stderrConfig) : 0,
|
|
47537
|
-
timeoutSecs: isSet5(object.timeoutSecs) ? globalThis.Number(object.timeoutSecs) : void 0,
|
|
47538
|
-
workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : void 0,
|
|
47539
|
-
secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : [],
|
|
47540
|
-
ptyInfo: isSet5(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
|
|
47541
|
-
runtimeDebug: isSet5(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false
|
|
49687
|
+
containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
|
|
49688
|
+
includeTerminated: isSet5(object.includeTerminated) ? globalThis.Boolean(object.includeTerminated) : false
|
|
47542
49689
|
};
|
|
47543
49690
|
},
|
|
47544
49691
|
toJSON(message) {
|
|
@@ -47546,71 +49693,1004 @@ var TaskExecStartRequest = {
|
|
|
47546
49693
|
if (message.taskId !== "") {
|
|
47547
49694
|
obj.taskId = message.taskId;
|
|
47548
49695
|
}
|
|
47549
|
-
if (message.
|
|
47550
|
-
obj.
|
|
47551
|
-
}
|
|
47552
|
-
if (message.commandArgs?.length) {
|
|
47553
|
-
obj.commandArgs = message.commandArgs;
|
|
47554
|
-
}
|
|
47555
|
-
if (message.stdoutConfig !== 0) {
|
|
47556
|
-
obj.stdoutConfig = taskExecStdoutConfigToJSON(message.stdoutConfig);
|
|
47557
|
-
}
|
|
47558
|
-
if (message.stderrConfig !== 0) {
|
|
47559
|
-
obj.stderrConfig = taskExecStderrConfigToJSON(message.stderrConfig);
|
|
47560
|
-
}
|
|
47561
|
-
if (message.timeoutSecs !== void 0) {
|
|
47562
|
-
obj.timeoutSecs = Math.round(message.timeoutSecs);
|
|
47563
|
-
}
|
|
47564
|
-
if (message.workdir !== void 0) {
|
|
47565
|
-
obj.workdir = message.workdir;
|
|
47566
|
-
}
|
|
47567
|
-
if (message.secretIds?.length) {
|
|
47568
|
-
obj.secretIds = message.secretIds;
|
|
47569
|
-
}
|
|
47570
|
-
if (message.ptyInfo !== void 0) {
|
|
47571
|
-
obj.ptyInfo = PTYInfo.toJSON(message.ptyInfo);
|
|
49696
|
+
if (message.containerName !== "") {
|
|
49697
|
+
obj.containerName = message.containerName;
|
|
47572
49698
|
}
|
|
47573
|
-
if (message.
|
|
47574
|
-
obj.
|
|
49699
|
+
if (message.includeTerminated !== false) {
|
|
49700
|
+
obj.includeTerminated = message.includeTerminated;
|
|
47575
49701
|
}
|
|
47576
49702
|
return obj;
|
|
47577
49703
|
},
|
|
47578
49704
|
create(base) {
|
|
47579
|
-
return
|
|
49705
|
+
return TaskContainerGetRequest.fromPartial(base ?? {});
|
|
47580
49706
|
},
|
|
47581
49707
|
fromPartial(object) {
|
|
47582
|
-
const message =
|
|
49708
|
+
const message = createBaseTaskContainerGetRequest();
|
|
47583
49709
|
message.taskId = object.taskId ?? "";
|
|
47584
|
-
message.
|
|
47585
|
-
message.
|
|
47586
|
-
message.stdoutConfig = object.stdoutConfig ?? 0;
|
|
47587
|
-
message.stderrConfig = object.stderrConfig ?? 0;
|
|
47588
|
-
message.timeoutSecs = object.timeoutSecs ?? void 0;
|
|
47589
|
-
message.workdir = object.workdir ?? void 0;
|
|
47590
|
-
message.secretIds = object.secretIds?.map((e) => e) || [];
|
|
47591
|
-
message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
|
|
47592
|
-
message.runtimeDebug = object.runtimeDebug ?? false;
|
|
49710
|
+
message.containerName = object.containerName ?? "";
|
|
49711
|
+
message.includeTerminated = object.includeTerminated ?? false;
|
|
47593
49712
|
return message;
|
|
47594
49713
|
}
|
|
47595
49714
|
};
|
|
47596
|
-
function
|
|
47597
|
-
return {};
|
|
49715
|
+
function createBaseTaskContainerGetResponse() {
|
|
49716
|
+
return { container: void 0 };
|
|
47598
49717
|
}
|
|
47599
|
-
var
|
|
47600
|
-
encode(
|
|
49718
|
+
var TaskContainerGetResponse = {
|
|
49719
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49720
|
+
if (message.container !== void 0) {
|
|
49721
|
+
TaskContainerInfo.encode(message.container, writer.uint32(10).fork()).join();
|
|
49722
|
+
}
|
|
47601
49723
|
return writer;
|
|
47602
49724
|
},
|
|
47603
49725
|
decode(input, length) {
|
|
47604
49726
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
47605
49727
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
47606
|
-
const message =
|
|
49728
|
+
const message = createBaseTaskContainerGetResponse();
|
|
47607
49729
|
while (reader.pos < end) {
|
|
47608
49730
|
const tag = reader.uint32();
|
|
47609
49731
|
switch (tag >>> 3) {
|
|
47610
|
-
|
|
47611
|
-
|
|
47612
|
-
|
|
47613
|
-
|
|
49732
|
+
case 1: {
|
|
49733
|
+
if (tag !== 10) {
|
|
49734
|
+
break;
|
|
49735
|
+
}
|
|
49736
|
+
message.container = TaskContainerInfo.decode(reader, reader.uint32());
|
|
49737
|
+
continue;
|
|
49738
|
+
}
|
|
49739
|
+
}
|
|
49740
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49741
|
+
break;
|
|
49742
|
+
}
|
|
49743
|
+
reader.skip(tag & 7);
|
|
49744
|
+
}
|
|
49745
|
+
return message;
|
|
49746
|
+
},
|
|
49747
|
+
fromJSON(object) {
|
|
49748
|
+
return { container: isSet5(object.container) ? TaskContainerInfo.fromJSON(object.container) : void 0 };
|
|
49749
|
+
},
|
|
49750
|
+
toJSON(message) {
|
|
49751
|
+
const obj = {};
|
|
49752
|
+
if (message.container !== void 0) {
|
|
49753
|
+
obj.container = TaskContainerInfo.toJSON(message.container);
|
|
49754
|
+
}
|
|
49755
|
+
return obj;
|
|
49756
|
+
},
|
|
49757
|
+
create(base) {
|
|
49758
|
+
return TaskContainerGetResponse.fromPartial(base ?? {});
|
|
49759
|
+
},
|
|
49760
|
+
fromPartial(object) {
|
|
49761
|
+
const message = createBaseTaskContainerGetResponse();
|
|
49762
|
+
message.container = object.container !== void 0 && object.container !== null ? TaskContainerInfo.fromPartial(object.container) : void 0;
|
|
49763
|
+
return message;
|
|
49764
|
+
}
|
|
49765
|
+
};
|
|
49766
|
+
function createBaseTaskContainerInfo() {
|
|
49767
|
+
return { containerId: "", containerName: "", status: "", result: void 0 };
|
|
49768
|
+
}
|
|
49769
|
+
var TaskContainerInfo = {
|
|
49770
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49771
|
+
if (message.containerId !== "") {
|
|
49772
|
+
writer.uint32(10).string(message.containerId);
|
|
49773
|
+
}
|
|
49774
|
+
if (message.containerName !== "") {
|
|
49775
|
+
writer.uint32(18).string(message.containerName);
|
|
49776
|
+
}
|
|
49777
|
+
if (message.status !== "") {
|
|
49778
|
+
writer.uint32(26).string(message.status);
|
|
49779
|
+
}
|
|
49780
|
+
if (message.result !== void 0) {
|
|
49781
|
+
GenericResult.encode(message.result, writer.uint32(34).fork()).join();
|
|
49782
|
+
}
|
|
49783
|
+
return writer;
|
|
49784
|
+
},
|
|
49785
|
+
decode(input, length) {
|
|
49786
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49787
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49788
|
+
const message = createBaseTaskContainerInfo();
|
|
49789
|
+
while (reader.pos < end) {
|
|
49790
|
+
const tag = reader.uint32();
|
|
49791
|
+
switch (tag >>> 3) {
|
|
49792
|
+
case 1: {
|
|
49793
|
+
if (tag !== 10) {
|
|
49794
|
+
break;
|
|
49795
|
+
}
|
|
49796
|
+
message.containerId = reader.string();
|
|
49797
|
+
continue;
|
|
49798
|
+
}
|
|
49799
|
+
case 2: {
|
|
49800
|
+
if (tag !== 18) {
|
|
49801
|
+
break;
|
|
49802
|
+
}
|
|
49803
|
+
message.containerName = reader.string();
|
|
49804
|
+
continue;
|
|
49805
|
+
}
|
|
49806
|
+
case 3: {
|
|
49807
|
+
if (tag !== 26) {
|
|
49808
|
+
break;
|
|
49809
|
+
}
|
|
49810
|
+
message.status = reader.string();
|
|
49811
|
+
continue;
|
|
49812
|
+
}
|
|
49813
|
+
case 4: {
|
|
49814
|
+
if (tag !== 34) {
|
|
49815
|
+
break;
|
|
49816
|
+
}
|
|
49817
|
+
message.result = GenericResult.decode(reader, reader.uint32());
|
|
49818
|
+
continue;
|
|
49819
|
+
}
|
|
49820
|
+
}
|
|
49821
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49822
|
+
break;
|
|
49823
|
+
}
|
|
49824
|
+
reader.skip(tag & 7);
|
|
49825
|
+
}
|
|
49826
|
+
return message;
|
|
49827
|
+
},
|
|
49828
|
+
fromJSON(object) {
|
|
49829
|
+
return {
|
|
49830
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
49831
|
+
containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
|
|
49832
|
+
status: isSet5(object.status) ? globalThis.String(object.status) : "",
|
|
49833
|
+
result: isSet5(object.result) ? GenericResult.fromJSON(object.result) : void 0
|
|
49834
|
+
};
|
|
49835
|
+
},
|
|
49836
|
+
toJSON(message) {
|
|
49837
|
+
const obj = {};
|
|
49838
|
+
if (message.containerId !== "") {
|
|
49839
|
+
obj.containerId = message.containerId;
|
|
49840
|
+
}
|
|
49841
|
+
if (message.containerName !== "") {
|
|
49842
|
+
obj.containerName = message.containerName;
|
|
49843
|
+
}
|
|
49844
|
+
if (message.status !== "") {
|
|
49845
|
+
obj.status = message.status;
|
|
49846
|
+
}
|
|
49847
|
+
if (message.result !== void 0) {
|
|
49848
|
+
obj.result = GenericResult.toJSON(message.result);
|
|
49849
|
+
}
|
|
49850
|
+
return obj;
|
|
49851
|
+
},
|
|
49852
|
+
create(base) {
|
|
49853
|
+
return TaskContainerInfo.fromPartial(base ?? {});
|
|
49854
|
+
},
|
|
49855
|
+
fromPartial(object) {
|
|
49856
|
+
const message = createBaseTaskContainerInfo();
|
|
49857
|
+
message.containerId = object.containerId ?? "";
|
|
49858
|
+
message.containerName = object.containerName ?? "";
|
|
49859
|
+
message.status = object.status ?? "";
|
|
49860
|
+
message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
|
|
49861
|
+
return message;
|
|
49862
|
+
}
|
|
49863
|
+
};
|
|
49864
|
+
function createBaseTaskContainerListRequest() {
|
|
49865
|
+
return { taskId: "", includeTerminated: false };
|
|
49866
|
+
}
|
|
49867
|
+
var TaskContainerListRequest = {
|
|
49868
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49869
|
+
if (message.taskId !== "") {
|
|
49870
|
+
writer.uint32(10).string(message.taskId);
|
|
49871
|
+
}
|
|
49872
|
+
if (message.includeTerminated !== false) {
|
|
49873
|
+
writer.uint32(16).bool(message.includeTerminated);
|
|
49874
|
+
}
|
|
49875
|
+
return writer;
|
|
49876
|
+
},
|
|
49877
|
+
decode(input, length) {
|
|
49878
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49879
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49880
|
+
const message = createBaseTaskContainerListRequest();
|
|
49881
|
+
while (reader.pos < end) {
|
|
49882
|
+
const tag = reader.uint32();
|
|
49883
|
+
switch (tag >>> 3) {
|
|
49884
|
+
case 1: {
|
|
49885
|
+
if (tag !== 10) {
|
|
49886
|
+
break;
|
|
49887
|
+
}
|
|
49888
|
+
message.taskId = reader.string();
|
|
49889
|
+
continue;
|
|
49890
|
+
}
|
|
49891
|
+
case 2: {
|
|
49892
|
+
if (tag !== 16) {
|
|
49893
|
+
break;
|
|
49894
|
+
}
|
|
49895
|
+
message.includeTerminated = reader.bool();
|
|
49896
|
+
continue;
|
|
49897
|
+
}
|
|
49898
|
+
}
|
|
49899
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49900
|
+
break;
|
|
49901
|
+
}
|
|
49902
|
+
reader.skip(tag & 7);
|
|
49903
|
+
}
|
|
49904
|
+
return message;
|
|
49905
|
+
},
|
|
49906
|
+
fromJSON(object) {
|
|
49907
|
+
return {
|
|
49908
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
49909
|
+
includeTerminated: isSet5(object.includeTerminated) ? globalThis.Boolean(object.includeTerminated) : false
|
|
49910
|
+
};
|
|
49911
|
+
},
|
|
49912
|
+
toJSON(message) {
|
|
49913
|
+
const obj = {};
|
|
49914
|
+
if (message.taskId !== "") {
|
|
49915
|
+
obj.taskId = message.taskId;
|
|
49916
|
+
}
|
|
49917
|
+
if (message.includeTerminated !== false) {
|
|
49918
|
+
obj.includeTerminated = message.includeTerminated;
|
|
49919
|
+
}
|
|
49920
|
+
return obj;
|
|
49921
|
+
},
|
|
49922
|
+
create(base) {
|
|
49923
|
+
return TaskContainerListRequest.fromPartial(base ?? {});
|
|
49924
|
+
},
|
|
49925
|
+
fromPartial(object) {
|
|
49926
|
+
const message = createBaseTaskContainerListRequest();
|
|
49927
|
+
message.taskId = object.taskId ?? "";
|
|
49928
|
+
message.includeTerminated = object.includeTerminated ?? false;
|
|
49929
|
+
return message;
|
|
49930
|
+
}
|
|
49931
|
+
};
|
|
49932
|
+
function createBaseTaskContainerListResponse() {
|
|
49933
|
+
return { containers: [] };
|
|
49934
|
+
}
|
|
49935
|
+
var TaskContainerListResponse = {
|
|
49936
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49937
|
+
for (const v of message.containers) {
|
|
49938
|
+
TaskContainerInfo.encode(v, writer.uint32(10).fork()).join();
|
|
49939
|
+
}
|
|
49940
|
+
return writer;
|
|
49941
|
+
},
|
|
49942
|
+
decode(input, length) {
|
|
49943
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49944
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49945
|
+
const message = createBaseTaskContainerListResponse();
|
|
49946
|
+
while (reader.pos < end) {
|
|
49947
|
+
const tag = reader.uint32();
|
|
49948
|
+
switch (tag >>> 3) {
|
|
49949
|
+
case 1: {
|
|
49950
|
+
if (tag !== 10) {
|
|
49951
|
+
break;
|
|
49952
|
+
}
|
|
49953
|
+
message.containers.push(TaskContainerInfo.decode(reader, reader.uint32()));
|
|
49954
|
+
continue;
|
|
49955
|
+
}
|
|
49956
|
+
}
|
|
49957
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49958
|
+
break;
|
|
49959
|
+
}
|
|
49960
|
+
reader.skip(tag & 7);
|
|
49961
|
+
}
|
|
49962
|
+
return message;
|
|
49963
|
+
},
|
|
49964
|
+
fromJSON(object) {
|
|
49965
|
+
return {
|
|
49966
|
+
containers: globalThis.Array.isArray(object?.containers) ? object.containers.map((e) => TaskContainerInfo.fromJSON(e)) : []
|
|
49967
|
+
};
|
|
49968
|
+
},
|
|
49969
|
+
toJSON(message) {
|
|
49970
|
+
const obj = {};
|
|
49971
|
+
if (message.containers?.length) {
|
|
49972
|
+
obj.containers = message.containers.map((e) => TaskContainerInfo.toJSON(e));
|
|
49973
|
+
}
|
|
49974
|
+
return obj;
|
|
49975
|
+
},
|
|
49976
|
+
create(base) {
|
|
49977
|
+
return TaskContainerListResponse.fromPartial(base ?? {});
|
|
49978
|
+
},
|
|
49979
|
+
fromPartial(object) {
|
|
49980
|
+
const message = createBaseTaskContainerListResponse();
|
|
49981
|
+
message.containers = object.containers?.map((e) => TaskContainerInfo.fromPartial(e)) || [];
|
|
49982
|
+
return message;
|
|
49983
|
+
}
|
|
49984
|
+
};
|
|
49985
|
+
function createBaseTaskContainerTerminateRequest() {
|
|
49986
|
+
return { taskId: "", containerId: "" };
|
|
49987
|
+
}
|
|
49988
|
+
var TaskContainerTerminateRequest = {
|
|
49989
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49990
|
+
if (message.taskId !== "") {
|
|
49991
|
+
writer.uint32(10).string(message.taskId);
|
|
49992
|
+
}
|
|
49993
|
+
if (message.containerId !== "") {
|
|
49994
|
+
writer.uint32(18).string(message.containerId);
|
|
49995
|
+
}
|
|
49996
|
+
return writer;
|
|
49997
|
+
},
|
|
49998
|
+
decode(input, length) {
|
|
49999
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50000
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50001
|
+
const message = createBaseTaskContainerTerminateRequest();
|
|
50002
|
+
while (reader.pos < end) {
|
|
50003
|
+
const tag = reader.uint32();
|
|
50004
|
+
switch (tag >>> 3) {
|
|
50005
|
+
case 1: {
|
|
50006
|
+
if (tag !== 10) {
|
|
50007
|
+
break;
|
|
50008
|
+
}
|
|
50009
|
+
message.taskId = reader.string();
|
|
50010
|
+
continue;
|
|
50011
|
+
}
|
|
50012
|
+
case 2: {
|
|
50013
|
+
if (tag !== 18) {
|
|
50014
|
+
break;
|
|
50015
|
+
}
|
|
50016
|
+
message.containerId = reader.string();
|
|
50017
|
+
continue;
|
|
50018
|
+
}
|
|
50019
|
+
}
|
|
50020
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50021
|
+
break;
|
|
50022
|
+
}
|
|
50023
|
+
reader.skip(tag & 7);
|
|
50024
|
+
}
|
|
50025
|
+
return message;
|
|
50026
|
+
},
|
|
50027
|
+
fromJSON(object) {
|
|
50028
|
+
return {
|
|
50029
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
50030
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : ""
|
|
50031
|
+
};
|
|
50032
|
+
},
|
|
50033
|
+
toJSON(message) {
|
|
50034
|
+
const obj = {};
|
|
50035
|
+
if (message.taskId !== "") {
|
|
50036
|
+
obj.taskId = message.taskId;
|
|
50037
|
+
}
|
|
50038
|
+
if (message.containerId !== "") {
|
|
50039
|
+
obj.containerId = message.containerId;
|
|
50040
|
+
}
|
|
50041
|
+
return obj;
|
|
50042
|
+
},
|
|
50043
|
+
create(base) {
|
|
50044
|
+
return TaskContainerTerminateRequest.fromPartial(base ?? {});
|
|
50045
|
+
},
|
|
50046
|
+
fromPartial(object) {
|
|
50047
|
+
const message = createBaseTaskContainerTerminateRequest();
|
|
50048
|
+
message.taskId = object.taskId ?? "";
|
|
50049
|
+
message.containerId = object.containerId ?? "";
|
|
50050
|
+
return message;
|
|
50051
|
+
}
|
|
50052
|
+
};
|
|
50053
|
+
function createBaseTaskContainerTerminateResponse() {
|
|
50054
|
+
return {};
|
|
50055
|
+
}
|
|
50056
|
+
var TaskContainerTerminateResponse = {
|
|
50057
|
+
encode(_, writer = new BinaryWriter()) {
|
|
50058
|
+
return writer;
|
|
50059
|
+
},
|
|
50060
|
+
decode(input, length) {
|
|
50061
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50062
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50063
|
+
const message = createBaseTaskContainerTerminateResponse();
|
|
50064
|
+
while (reader.pos < end) {
|
|
50065
|
+
const tag = reader.uint32();
|
|
50066
|
+
switch (tag >>> 3) {
|
|
50067
|
+
}
|
|
50068
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50069
|
+
break;
|
|
50070
|
+
}
|
|
50071
|
+
reader.skip(tag & 7);
|
|
50072
|
+
}
|
|
50073
|
+
return message;
|
|
50074
|
+
},
|
|
50075
|
+
fromJSON(_) {
|
|
50076
|
+
return {};
|
|
50077
|
+
},
|
|
50078
|
+
toJSON(_) {
|
|
50079
|
+
const obj = {};
|
|
50080
|
+
return obj;
|
|
50081
|
+
},
|
|
50082
|
+
create(base) {
|
|
50083
|
+
return TaskContainerTerminateResponse.fromPartial(base ?? {});
|
|
50084
|
+
},
|
|
50085
|
+
fromPartial(_) {
|
|
50086
|
+
const message = createBaseTaskContainerTerminateResponse();
|
|
50087
|
+
return message;
|
|
50088
|
+
}
|
|
50089
|
+
};
|
|
50090
|
+
function createBaseTaskContainerWaitRequest() {
|
|
50091
|
+
return { taskId: "", containerId: "", timeout: 0 };
|
|
50092
|
+
}
|
|
50093
|
+
var TaskContainerWaitRequest = {
|
|
50094
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50095
|
+
if (message.taskId !== "") {
|
|
50096
|
+
writer.uint32(10).string(message.taskId);
|
|
50097
|
+
}
|
|
50098
|
+
if (message.containerId !== "") {
|
|
50099
|
+
writer.uint32(18).string(message.containerId);
|
|
50100
|
+
}
|
|
50101
|
+
if (message.timeout !== 0) {
|
|
50102
|
+
writer.uint32(29).float(message.timeout);
|
|
50103
|
+
}
|
|
50104
|
+
return writer;
|
|
50105
|
+
},
|
|
50106
|
+
decode(input, length) {
|
|
50107
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50108
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50109
|
+
const message = createBaseTaskContainerWaitRequest();
|
|
50110
|
+
while (reader.pos < end) {
|
|
50111
|
+
const tag = reader.uint32();
|
|
50112
|
+
switch (tag >>> 3) {
|
|
50113
|
+
case 1: {
|
|
50114
|
+
if (tag !== 10) {
|
|
50115
|
+
break;
|
|
50116
|
+
}
|
|
50117
|
+
message.taskId = reader.string();
|
|
50118
|
+
continue;
|
|
50119
|
+
}
|
|
50120
|
+
case 2: {
|
|
50121
|
+
if (tag !== 18) {
|
|
50122
|
+
break;
|
|
50123
|
+
}
|
|
50124
|
+
message.containerId = reader.string();
|
|
50125
|
+
continue;
|
|
50126
|
+
}
|
|
50127
|
+
case 3: {
|
|
50128
|
+
if (tag !== 29) {
|
|
50129
|
+
break;
|
|
50130
|
+
}
|
|
50131
|
+
message.timeout = reader.float();
|
|
50132
|
+
continue;
|
|
50133
|
+
}
|
|
50134
|
+
}
|
|
50135
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50136
|
+
break;
|
|
50137
|
+
}
|
|
50138
|
+
reader.skip(tag & 7);
|
|
50139
|
+
}
|
|
50140
|
+
return message;
|
|
50141
|
+
},
|
|
50142
|
+
fromJSON(object) {
|
|
50143
|
+
return {
|
|
50144
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
50145
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
50146
|
+
timeout: isSet5(object.timeout) ? globalThis.Number(object.timeout) : 0
|
|
50147
|
+
};
|
|
50148
|
+
},
|
|
50149
|
+
toJSON(message) {
|
|
50150
|
+
const obj = {};
|
|
50151
|
+
if (message.taskId !== "") {
|
|
50152
|
+
obj.taskId = message.taskId;
|
|
50153
|
+
}
|
|
50154
|
+
if (message.containerId !== "") {
|
|
50155
|
+
obj.containerId = message.containerId;
|
|
50156
|
+
}
|
|
50157
|
+
if (message.timeout !== 0) {
|
|
50158
|
+
obj.timeout = message.timeout;
|
|
50159
|
+
}
|
|
50160
|
+
return obj;
|
|
50161
|
+
},
|
|
50162
|
+
create(base) {
|
|
50163
|
+
return TaskContainerWaitRequest.fromPartial(base ?? {});
|
|
50164
|
+
},
|
|
50165
|
+
fromPartial(object) {
|
|
50166
|
+
const message = createBaseTaskContainerWaitRequest();
|
|
50167
|
+
message.taskId = object.taskId ?? "";
|
|
50168
|
+
message.containerId = object.containerId ?? "";
|
|
50169
|
+
message.timeout = object.timeout ?? 0;
|
|
50170
|
+
return message;
|
|
50171
|
+
}
|
|
50172
|
+
};
|
|
50173
|
+
function createBaseTaskContainerWaitResponse() {
|
|
50174
|
+
return { result: void 0 };
|
|
50175
|
+
}
|
|
50176
|
+
var TaskContainerWaitResponse = {
|
|
50177
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50178
|
+
if (message.result !== void 0) {
|
|
50179
|
+
GenericResult.encode(message.result, writer.uint32(10).fork()).join();
|
|
50180
|
+
}
|
|
50181
|
+
return writer;
|
|
50182
|
+
},
|
|
50183
|
+
decode(input, length) {
|
|
50184
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50185
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50186
|
+
const message = createBaseTaskContainerWaitResponse();
|
|
50187
|
+
while (reader.pos < end) {
|
|
50188
|
+
const tag = reader.uint32();
|
|
50189
|
+
switch (tag >>> 3) {
|
|
50190
|
+
case 1: {
|
|
50191
|
+
if (tag !== 10) {
|
|
50192
|
+
break;
|
|
50193
|
+
}
|
|
50194
|
+
message.result = GenericResult.decode(reader, reader.uint32());
|
|
50195
|
+
continue;
|
|
50196
|
+
}
|
|
50197
|
+
}
|
|
50198
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50199
|
+
break;
|
|
50200
|
+
}
|
|
50201
|
+
reader.skip(tag & 7);
|
|
50202
|
+
}
|
|
50203
|
+
return message;
|
|
50204
|
+
},
|
|
50205
|
+
fromJSON(object) {
|
|
50206
|
+
return { result: isSet5(object.result) ? GenericResult.fromJSON(object.result) : void 0 };
|
|
50207
|
+
},
|
|
50208
|
+
toJSON(message) {
|
|
50209
|
+
const obj = {};
|
|
50210
|
+
if (message.result !== void 0) {
|
|
50211
|
+
obj.result = GenericResult.toJSON(message.result);
|
|
50212
|
+
}
|
|
50213
|
+
return obj;
|
|
50214
|
+
},
|
|
50215
|
+
create(base) {
|
|
50216
|
+
return TaskContainerWaitResponse.fromPartial(base ?? {});
|
|
50217
|
+
},
|
|
50218
|
+
fromPartial(object) {
|
|
50219
|
+
const message = createBaseTaskContainerWaitResponse();
|
|
50220
|
+
message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
|
|
50221
|
+
return message;
|
|
50222
|
+
}
|
|
50223
|
+
};
|
|
50224
|
+
function createBaseTaskExecPollRequest() {
|
|
50225
|
+
return { taskId: "", execId: "" };
|
|
50226
|
+
}
|
|
50227
|
+
var TaskExecPollRequest = {
|
|
50228
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50229
|
+
if (message.taskId !== "") {
|
|
50230
|
+
writer.uint32(10).string(message.taskId);
|
|
50231
|
+
}
|
|
50232
|
+
if (message.execId !== "") {
|
|
50233
|
+
writer.uint32(18).string(message.execId);
|
|
50234
|
+
}
|
|
50235
|
+
return writer;
|
|
50236
|
+
},
|
|
50237
|
+
decode(input, length) {
|
|
50238
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50239
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50240
|
+
const message = createBaseTaskExecPollRequest();
|
|
50241
|
+
while (reader.pos < end) {
|
|
50242
|
+
const tag = reader.uint32();
|
|
50243
|
+
switch (tag >>> 3) {
|
|
50244
|
+
case 1: {
|
|
50245
|
+
if (tag !== 10) {
|
|
50246
|
+
break;
|
|
50247
|
+
}
|
|
50248
|
+
message.taskId = reader.string();
|
|
50249
|
+
continue;
|
|
50250
|
+
}
|
|
50251
|
+
case 2: {
|
|
50252
|
+
if (tag !== 18) {
|
|
50253
|
+
break;
|
|
50254
|
+
}
|
|
50255
|
+
message.execId = reader.string();
|
|
50256
|
+
continue;
|
|
50257
|
+
}
|
|
50258
|
+
}
|
|
50259
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50260
|
+
break;
|
|
50261
|
+
}
|
|
50262
|
+
reader.skip(tag & 7);
|
|
50263
|
+
}
|
|
50264
|
+
return message;
|
|
50265
|
+
},
|
|
50266
|
+
fromJSON(object) {
|
|
50267
|
+
return {
|
|
50268
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
50269
|
+
execId: isSet5(object.execId) ? globalThis.String(object.execId) : ""
|
|
50270
|
+
};
|
|
50271
|
+
},
|
|
50272
|
+
toJSON(message) {
|
|
50273
|
+
const obj = {};
|
|
50274
|
+
if (message.taskId !== "") {
|
|
50275
|
+
obj.taskId = message.taskId;
|
|
50276
|
+
}
|
|
50277
|
+
if (message.execId !== "") {
|
|
50278
|
+
obj.execId = message.execId;
|
|
50279
|
+
}
|
|
50280
|
+
return obj;
|
|
50281
|
+
},
|
|
50282
|
+
create(base) {
|
|
50283
|
+
return TaskExecPollRequest.fromPartial(base ?? {});
|
|
50284
|
+
},
|
|
50285
|
+
fromPartial(object) {
|
|
50286
|
+
const message = createBaseTaskExecPollRequest();
|
|
50287
|
+
message.taskId = object.taskId ?? "";
|
|
50288
|
+
message.execId = object.execId ?? "";
|
|
50289
|
+
return message;
|
|
50290
|
+
}
|
|
50291
|
+
};
|
|
50292
|
+
function createBaseTaskExecPollResponse() {
|
|
50293
|
+
return { code: void 0, signal: void 0 };
|
|
50294
|
+
}
|
|
50295
|
+
var TaskExecPollResponse = {
|
|
50296
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50297
|
+
if (message.code !== void 0) {
|
|
50298
|
+
writer.uint32(8).int32(message.code);
|
|
50299
|
+
}
|
|
50300
|
+
if (message.signal !== void 0) {
|
|
50301
|
+
writer.uint32(16).int32(message.signal);
|
|
50302
|
+
}
|
|
50303
|
+
return writer;
|
|
50304
|
+
},
|
|
50305
|
+
decode(input, length) {
|
|
50306
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50307
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50308
|
+
const message = createBaseTaskExecPollResponse();
|
|
50309
|
+
while (reader.pos < end) {
|
|
50310
|
+
const tag = reader.uint32();
|
|
50311
|
+
switch (tag >>> 3) {
|
|
50312
|
+
case 1: {
|
|
50313
|
+
if (tag !== 8) {
|
|
50314
|
+
break;
|
|
50315
|
+
}
|
|
50316
|
+
message.code = reader.int32();
|
|
50317
|
+
continue;
|
|
50318
|
+
}
|
|
50319
|
+
case 2: {
|
|
50320
|
+
if (tag !== 16) {
|
|
50321
|
+
break;
|
|
50322
|
+
}
|
|
50323
|
+
message.signal = reader.int32();
|
|
50324
|
+
continue;
|
|
50325
|
+
}
|
|
50326
|
+
}
|
|
50327
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50328
|
+
break;
|
|
50329
|
+
}
|
|
50330
|
+
reader.skip(tag & 7);
|
|
50331
|
+
}
|
|
50332
|
+
return message;
|
|
50333
|
+
},
|
|
50334
|
+
fromJSON(object) {
|
|
50335
|
+
return {
|
|
50336
|
+
code: isSet5(object.code) ? globalThis.Number(object.code) : void 0,
|
|
50337
|
+
signal: isSet5(object.signal) ? globalThis.Number(object.signal) : void 0
|
|
50338
|
+
};
|
|
50339
|
+
},
|
|
50340
|
+
toJSON(message) {
|
|
50341
|
+
const obj = {};
|
|
50342
|
+
if (message.code !== void 0) {
|
|
50343
|
+
obj.code = Math.round(message.code);
|
|
50344
|
+
}
|
|
50345
|
+
if (message.signal !== void 0) {
|
|
50346
|
+
obj.signal = Math.round(message.signal);
|
|
50347
|
+
}
|
|
50348
|
+
return obj;
|
|
50349
|
+
},
|
|
50350
|
+
create(base) {
|
|
50351
|
+
return TaskExecPollResponse.fromPartial(base ?? {});
|
|
50352
|
+
},
|
|
50353
|
+
fromPartial(object) {
|
|
50354
|
+
const message = createBaseTaskExecPollResponse();
|
|
50355
|
+
message.code = object.code ?? void 0;
|
|
50356
|
+
message.signal = object.signal ?? void 0;
|
|
50357
|
+
return message;
|
|
50358
|
+
}
|
|
50359
|
+
};
|
|
50360
|
+
function createBaseTaskExecStartRequest() {
|
|
50361
|
+
return {
|
|
50362
|
+
taskId: "",
|
|
50363
|
+
execId: "",
|
|
50364
|
+
commandArgs: [],
|
|
50365
|
+
stdoutConfig: 0,
|
|
50366
|
+
stderrConfig: 0,
|
|
50367
|
+
timeoutSecs: void 0,
|
|
50368
|
+
workdir: void 0,
|
|
50369
|
+
secretIds: [],
|
|
50370
|
+
ptyInfo: void 0,
|
|
50371
|
+
runtimeDebug: false,
|
|
50372
|
+
containerId: "",
|
|
50373
|
+
env: {}
|
|
50374
|
+
};
|
|
50375
|
+
}
|
|
50376
|
+
var TaskExecStartRequest = {
|
|
50377
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50378
|
+
if (message.taskId !== "") {
|
|
50379
|
+
writer.uint32(10).string(message.taskId);
|
|
50380
|
+
}
|
|
50381
|
+
if (message.execId !== "") {
|
|
50382
|
+
writer.uint32(18).string(message.execId);
|
|
50383
|
+
}
|
|
50384
|
+
for (const v of message.commandArgs) {
|
|
50385
|
+
writer.uint32(26).string(v);
|
|
50386
|
+
}
|
|
50387
|
+
if (message.stdoutConfig !== 0) {
|
|
50388
|
+
writer.uint32(32).int32(message.stdoutConfig);
|
|
50389
|
+
}
|
|
50390
|
+
if (message.stderrConfig !== 0) {
|
|
50391
|
+
writer.uint32(40).int32(message.stderrConfig);
|
|
50392
|
+
}
|
|
50393
|
+
if (message.timeoutSecs !== void 0) {
|
|
50394
|
+
writer.uint32(48).uint32(message.timeoutSecs);
|
|
50395
|
+
}
|
|
50396
|
+
if (message.workdir !== void 0) {
|
|
50397
|
+
writer.uint32(58).string(message.workdir);
|
|
50398
|
+
}
|
|
50399
|
+
for (const v of message.secretIds) {
|
|
50400
|
+
writer.uint32(66).string(v);
|
|
50401
|
+
}
|
|
50402
|
+
if (message.ptyInfo !== void 0) {
|
|
50403
|
+
PTYInfo.encode(message.ptyInfo, writer.uint32(74).fork()).join();
|
|
50404
|
+
}
|
|
50405
|
+
if (message.runtimeDebug !== false) {
|
|
50406
|
+
writer.uint32(80).bool(message.runtimeDebug);
|
|
50407
|
+
}
|
|
50408
|
+
if (message.containerId !== "") {
|
|
50409
|
+
writer.uint32(90).string(message.containerId);
|
|
50410
|
+
}
|
|
50411
|
+
Object.entries(message.env).forEach(([key, value]) => {
|
|
50412
|
+
TaskExecStartRequest_EnvEntry.encode({ key, value }, writer.uint32(98).fork()).join();
|
|
50413
|
+
});
|
|
50414
|
+
return writer;
|
|
50415
|
+
},
|
|
50416
|
+
decode(input, length) {
|
|
50417
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50418
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50419
|
+
const message = createBaseTaskExecStartRequest();
|
|
50420
|
+
while (reader.pos < end) {
|
|
50421
|
+
const tag = reader.uint32();
|
|
50422
|
+
switch (tag >>> 3) {
|
|
50423
|
+
case 1: {
|
|
50424
|
+
if (tag !== 10) {
|
|
50425
|
+
break;
|
|
50426
|
+
}
|
|
50427
|
+
message.taskId = reader.string();
|
|
50428
|
+
continue;
|
|
50429
|
+
}
|
|
50430
|
+
case 2: {
|
|
50431
|
+
if (tag !== 18) {
|
|
50432
|
+
break;
|
|
50433
|
+
}
|
|
50434
|
+
message.execId = reader.string();
|
|
50435
|
+
continue;
|
|
50436
|
+
}
|
|
50437
|
+
case 3: {
|
|
50438
|
+
if (tag !== 26) {
|
|
50439
|
+
break;
|
|
50440
|
+
}
|
|
50441
|
+
message.commandArgs.push(reader.string());
|
|
50442
|
+
continue;
|
|
50443
|
+
}
|
|
50444
|
+
case 4: {
|
|
50445
|
+
if (tag !== 32) {
|
|
50446
|
+
break;
|
|
50447
|
+
}
|
|
50448
|
+
message.stdoutConfig = reader.int32();
|
|
50449
|
+
continue;
|
|
50450
|
+
}
|
|
50451
|
+
case 5: {
|
|
50452
|
+
if (tag !== 40) {
|
|
50453
|
+
break;
|
|
50454
|
+
}
|
|
50455
|
+
message.stderrConfig = reader.int32();
|
|
50456
|
+
continue;
|
|
50457
|
+
}
|
|
50458
|
+
case 6: {
|
|
50459
|
+
if (tag !== 48) {
|
|
50460
|
+
break;
|
|
50461
|
+
}
|
|
50462
|
+
message.timeoutSecs = reader.uint32();
|
|
50463
|
+
continue;
|
|
50464
|
+
}
|
|
50465
|
+
case 7: {
|
|
50466
|
+
if (tag !== 58) {
|
|
50467
|
+
break;
|
|
50468
|
+
}
|
|
50469
|
+
message.workdir = reader.string();
|
|
50470
|
+
continue;
|
|
50471
|
+
}
|
|
50472
|
+
case 8: {
|
|
50473
|
+
if (tag !== 66) {
|
|
50474
|
+
break;
|
|
50475
|
+
}
|
|
50476
|
+
message.secretIds.push(reader.string());
|
|
50477
|
+
continue;
|
|
50478
|
+
}
|
|
50479
|
+
case 9: {
|
|
50480
|
+
if (tag !== 74) {
|
|
50481
|
+
break;
|
|
50482
|
+
}
|
|
50483
|
+
message.ptyInfo = PTYInfo.decode(reader, reader.uint32());
|
|
50484
|
+
continue;
|
|
50485
|
+
}
|
|
50486
|
+
case 10: {
|
|
50487
|
+
if (tag !== 80) {
|
|
50488
|
+
break;
|
|
50489
|
+
}
|
|
50490
|
+
message.runtimeDebug = reader.bool();
|
|
50491
|
+
continue;
|
|
50492
|
+
}
|
|
50493
|
+
case 11: {
|
|
50494
|
+
if (tag !== 90) {
|
|
50495
|
+
break;
|
|
50496
|
+
}
|
|
50497
|
+
message.containerId = reader.string();
|
|
50498
|
+
continue;
|
|
50499
|
+
}
|
|
50500
|
+
case 12: {
|
|
50501
|
+
if (tag !== 98) {
|
|
50502
|
+
break;
|
|
50503
|
+
}
|
|
50504
|
+
const entry12 = TaskExecStartRequest_EnvEntry.decode(reader, reader.uint32());
|
|
50505
|
+
if (entry12.value !== void 0) {
|
|
50506
|
+
message.env[entry12.key] = entry12.value;
|
|
50507
|
+
}
|
|
50508
|
+
continue;
|
|
50509
|
+
}
|
|
50510
|
+
}
|
|
50511
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50512
|
+
break;
|
|
50513
|
+
}
|
|
50514
|
+
reader.skip(tag & 7);
|
|
50515
|
+
}
|
|
50516
|
+
return message;
|
|
50517
|
+
},
|
|
50518
|
+
fromJSON(object) {
|
|
50519
|
+
return {
|
|
50520
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
50521
|
+
execId: isSet5(object.execId) ? globalThis.String(object.execId) : "",
|
|
50522
|
+
commandArgs: globalThis.Array.isArray(object?.commandArgs) ? object.commandArgs.map((e) => globalThis.String(e)) : [],
|
|
50523
|
+
stdoutConfig: isSet5(object.stdoutConfig) ? taskExecStdoutConfigFromJSON(object.stdoutConfig) : 0,
|
|
50524
|
+
stderrConfig: isSet5(object.stderrConfig) ? taskExecStderrConfigFromJSON(object.stderrConfig) : 0,
|
|
50525
|
+
timeoutSecs: isSet5(object.timeoutSecs) ? globalThis.Number(object.timeoutSecs) : void 0,
|
|
50526
|
+
workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : void 0,
|
|
50527
|
+
secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : [],
|
|
50528
|
+
ptyInfo: isSet5(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
|
|
50529
|
+
runtimeDebug: isSet5(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false,
|
|
50530
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
50531
|
+
env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
|
|
50532
|
+
acc[key] = String(value);
|
|
50533
|
+
return acc;
|
|
50534
|
+
}, {}) : {}
|
|
50535
|
+
};
|
|
50536
|
+
},
|
|
50537
|
+
toJSON(message) {
|
|
50538
|
+
const obj = {};
|
|
50539
|
+
if (message.taskId !== "") {
|
|
50540
|
+
obj.taskId = message.taskId;
|
|
50541
|
+
}
|
|
50542
|
+
if (message.execId !== "") {
|
|
50543
|
+
obj.execId = message.execId;
|
|
50544
|
+
}
|
|
50545
|
+
if (message.commandArgs?.length) {
|
|
50546
|
+
obj.commandArgs = message.commandArgs;
|
|
50547
|
+
}
|
|
50548
|
+
if (message.stdoutConfig !== 0) {
|
|
50549
|
+
obj.stdoutConfig = taskExecStdoutConfigToJSON(message.stdoutConfig);
|
|
50550
|
+
}
|
|
50551
|
+
if (message.stderrConfig !== 0) {
|
|
50552
|
+
obj.stderrConfig = taskExecStderrConfigToJSON(message.stderrConfig);
|
|
50553
|
+
}
|
|
50554
|
+
if (message.timeoutSecs !== void 0) {
|
|
50555
|
+
obj.timeoutSecs = Math.round(message.timeoutSecs);
|
|
50556
|
+
}
|
|
50557
|
+
if (message.workdir !== void 0) {
|
|
50558
|
+
obj.workdir = message.workdir;
|
|
50559
|
+
}
|
|
50560
|
+
if (message.secretIds?.length) {
|
|
50561
|
+
obj.secretIds = message.secretIds;
|
|
50562
|
+
}
|
|
50563
|
+
if (message.ptyInfo !== void 0) {
|
|
50564
|
+
obj.ptyInfo = PTYInfo.toJSON(message.ptyInfo);
|
|
50565
|
+
}
|
|
50566
|
+
if (message.runtimeDebug !== false) {
|
|
50567
|
+
obj.runtimeDebug = message.runtimeDebug;
|
|
50568
|
+
}
|
|
50569
|
+
if (message.containerId !== "") {
|
|
50570
|
+
obj.containerId = message.containerId;
|
|
50571
|
+
}
|
|
50572
|
+
if (message.env) {
|
|
50573
|
+
const entries = Object.entries(message.env);
|
|
50574
|
+
if (entries.length > 0) {
|
|
50575
|
+
obj.env = {};
|
|
50576
|
+
entries.forEach(([k, v]) => {
|
|
50577
|
+
obj.env[k] = v;
|
|
50578
|
+
});
|
|
50579
|
+
}
|
|
50580
|
+
}
|
|
50581
|
+
return obj;
|
|
50582
|
+
},
|
|
50583
|
+
create(base) {
|
|
50584
|
+
return TaskExecStartRequest.fromPartial(base ?? {});
|
|
50585
|
+
},
|
|
50586
|
+
fromPartial(object) {
|
|
50587
|
+
const message = createBaseTaskExecStartRequest();
|
|
50588
|
+
message.taskId = object.taskId ?? "";
|
|
50589
|
+
message.execId = object.execId ?? "";
|
|
50590
|
+
message.commandArgs = object.commandArgs?.map((e) => e) || [];
|
|
50591
|
+
message.stdoutConfig = object.stdoutConfig ?? 0;
|
|
50592
|
+
message.stderrConfig = object.stderrConfig ?? 0;
|
|
50593
|
+
message.timeoutSecs = object.timeoutSecs ?? void 0;
|
|
50594
|
+
message.workdir = object.workdir ?? void 0;
|
|
50595
|
+
message.secretIds = object.secretIds?.map((e) => e) || [];
|
|
50596
|
+
message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
|
|
50597
|
+
message.runtimeDebug = object.runtimeDebug ?? false;
|
|
50598
|
+
message.containerId = object.containerId ?? "";
|
|
50599
|
+
message.env = Object.entries(object.env ?? {}).reduce((acc, [key, value]) => {
|
|
50600
|
+
if (value !== void 0) {
|
|
50601
|
+
acc[key] = globalThis.String(value);
|
|
50602
|
+
}
|
|
50603
|
+
return acc;
|
|
50604
|
+
}, {});
|
|
50605
|
+
return message;
|
|
50606
|
+
}
|
|
50607
|
+
};
|
|
50608
|
+
function createBaseTaskExecStartRequest_EnvEntry() {
|
|
50609
|
+
return { key: "", value: "" };
|
|
50610
|
+
}
|
|
50611
|
+
var TaskExecStartRequest_EnvEntry = {
|
|
50612
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50613
|
+
if (message.key !== "") {
|
|
50614
|
+
writer.uint32(10).string(message.key);
|
|
50615
|
+
}
|
|
50616
|
+
if (message.value !== "") {
|
|
50617
|
+
writer.uint32(18).string(message.value);
|
|
50618
|
+
}
|
|
50619
|
+
return writer;
|
|
50620
|
+
},
|
|
50621
|
+
decode(input, length) {
|
|
50622
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50623
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50624
|
+
const message = createBaseTaskExecStartRequest_EnvEntry();
|
|
50625
|
+
while (reader.pos < end) {
|
|
50626
|
+
const tag = reader.uint32();
|
|
50627
|
+
switch (tag >>> 3) {
|
|
50628
|
+
case 1: {
|
|
50629
|
+
if (tag !== 10) {
|
|
50630
|
+
break;
|
|
50631
|
+
}
|
|
50632
|
+
message.key = reader.string();
|
|
50633
|
+
continue;
|
|
50634
|
+
}
|
|
50635
|
+
case 2: {
|
|
50636
|
+
if (tag !== 18) {
|
|
50637
|
+
break;
|
|
50638
|
+
}
|
|
50639
|
+
message.value = reader.string();
|
|
50640
|
+
continue;
|
|
50641
|
+
}
|
|
50642
|
+
}
|
|
50643
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50644
|
+
break;
|
|
50645
|
+
}
|
|
50646
|
+
reader.skip(tag & 7);
|
|
50647
|
+
}
|
|
50648
|
+
return message;
|
|
50649
|
+
},
|
|
50650
|
+
fromJSON(object) {
|
|
50651
|
+
return {
|
|
50652
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
50653
|
+
value: isSet5(object.value) ? globalThis.String(object.value) : ""
|
|
50654
|
+
};
|
|
50655
|
+
},
|
|
50656
|
+
toJSON(message) {
|
|
50657
|
+
const obj = {};
|
|
50658
|
+
if (message.key !== "") {
|
|
50659
|
+
obj.key = message.key;
|
|
50660
|
+
}
|
|
50661
|
+
if (message.value !== "") {
|
|
50662
|
+
obj.value = message.value;
|
|
50663
|
+
}
|
|
50664
|
+
return obj;
|
|
50665
|
+
},
|
|
50666
|
+
create(base) {
|
|
50667
|
+
return TaskExecStartRequest_EnvEntry.fromPartial(base ?? {});
|
|
50668
|
+
},
|
|
50669
|
+
fromPartial(object) {
|
|
50670
|
+
const message = createBaseTaskExecStartRequest_EnvEntry();
|
|
50671
|
+
message.key = object.key ?? "";
|
|
50672
|
+
message.value = object.value ?? "";
|
|
50673
|
+
return message;
|
|
50674
|
+
}
|
|
50675
|
+
};
|
|
50676
|
+
function createBaseTaskExecStartResponse() {
|
|
50677
|
+
return {};
|
|
50678
|
+
}
|
|
50679
|
+
var TaskExecStartResponse = {
|
|
50680
|
+
encode(_, writer = new BinaryWriter()) {
|
|
50681
|
+
return writer;
|
|
50682
|
+
},
|
|
50683
|
+
decode(input, length) {
|
|
50684
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50685
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50686
|
+
const message = createBaseTaskExecStartResponse();
|
|
50687
|
+
while (reader.pos < end) {
|
|
50688
|
+
const tag = reader.uint32();
|
|
50689
|
+
switch (tag >>> 3) {
|
|
50690
|
+
}
|
|
50691
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50692
|
+
break;
|
|
50693
|
+
}
|
|
47614
50694
|
reader.skip(tag & 7);
|
|
47615
50695
|
}
|
|
47616
50696
|
return message;
|
|
@@ -48267,10 +51347,123 @@ var TaskSnapshotDirectoryResponse = {
|
|
|
48267
51347
|
return message;
|
|
48268
51348
|
}
|
|
48269
51349
|
};
|
|
51350
|
+
function createBaseTaskUnmountDirectoryRequest() {
|
|
51351
|
+
return { taskId: "", path: new Uint8Array(0) };
|
|
51352
|
+
}
|
|
51353
|
+
var TaskUnmountDirectoryRequest = {
|
|
51354
|
+
encode(message, writer = new BinaryWriter()) {
|
|
51355
|
+
if (message.taskId !== "") {
|
|
51356
|
+
writer.uint32(10).string(message.taskId);
|
|
51357
|
+
}
|
|
51358
|
+
if (message.path.length !== 0) {
|
|
51359
|
+
writer.uint32(18).bytes(message.path);
|
|
51360
|
+
}
|
|
51361
|
+
return writer;
|
|
51362
|
+
},
|
|
51363
|
+
decode(input, length) {
|
|
51364
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51365
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51366
|
+
const message = createBaseTaskUnmountDirectoryRequest();
|
|
51367
|
+
while (reader.pos < end) {
|
|
51368
|
+
const tag = reader.uint32();
|
|
51369
|
+
switch (tag >>> 3) {
|
|
51370
|
+
case 1: {
|
|
51371
|
+
if (tag !== 10) {
|
|
51372
|
+
break;
|
|
51373
|
+
}
|
|
51374
|
+
message.taskId = reader.string();
|
|
51375
|
+
continue;
|
|
51376
|
+
}
|
|
51377
|
+
case 2: {
|
|
51378
|
+
if (tag !== 18) {
|
|
51379
|
+
break;
|
|
51380
|
+
}
|
|
51381
|
+
message.path = reader.bytes();
|
|
51382
|
+
continue;
|
|
51383
|
+
}
|
|
51384
|
+
}
|
|
51385
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
51386
|
+
break;
|
|
51387
|
+
}
|
|
51388
|
+
reader.skip(tag & 7);
|
|
51389
|
+
}
|
|
51390
|
+
return message;
|
|
51391
|
+
},
|
|
51392
|
+
fromJSON(object) {
|
|
51393
|
+
return {
|
|
51394
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
51395
|
+
path: isSet5(object.path) ? bytesFromBase642(object.path) : new Uint8Array(0)
|
|
51396
|
+
};
|
|
51397
|
+
},
|
|
51398
|
+
toJSON(message) {
|
|
51399
|
+
const obj = {};
|
|
51400
|
+
if (message.taskId !== "") {
|
|
51401
|
+
obj.taskId = message.taskId;
|
|
51402
|
+
}
|
|
51403
|
+
if (message.path.length !== 0) {
|
|
51404
|
+
obj.path = base64FromBytes2(message.path);
|
|
51405
|
+
}
|
|
51406
|
+
return obj;
|
|
51407
|
+
},
|
|
51408
|
+
create(base) {
|
|
51409
|
+
return TaskUnmountDirectoryRequest.fromPartial(base ?? {});
|
|
51410
|
+
},
|
|
51411
|
+
fromPartial(object) {
|
|
51412
|
+
const message = createBaseTaskUnmountDirectoryRequest();
|
|
51413
|
+
message.taskId = object.taskId ?? "";
|
|
51414
|
+
message.path = object.path ?? new Uint8Array(0);
|
|
51415
|
+
return message;
|
|
51416
|
+
}
|
|
51417
|
+
};
|
|
48270
51418
|
var TaskCommandRouterDefinition = {
|
|
48271
51419
|
name: "TaskCommandRouter",
|
|
48272
51420
|
fullName: "modal.task_command_router.TaskCommandRouter",
|
|
48273
51421
|
methods: {
|
|
51422
|
+
/** Create an additional container for a task. */
|
|
51423
|
+
taskContainerCreate: {
|
|
51424
|
+
name: "TaskContainerCreate",
|
|
51425
|
+
requestType: TaskContainerCreateRequest,
|
|
51426
|
+
requestStream: false,
|
|
51427
|
+
responseType: TaskContainerCreateResponse,
|
|
51428
|
+
responseStream: false,
|
|
51429
|
+
options: {}
|
|
51430
|
+
},
|
|
51431
|
+
/** Get the latest container associated with a logical name. */
|
|
51432
|
+
taskContainerGet: {
|
|
51433
|
+
name: "TaskContainerGet",
|
|
51434
|
+
requestType: TaskContainerGetRequest,
|
|
51435
|
+
requestStream: false,
|
|
51436
|
+
responseType: TaskContainerGetResponse,
|
|
51437
|
+
responseStream: false,
|
|
51438
|
+
options: {}
|
|
51439
|
+
},
|
|
51440
|
+
/** List containers associated with the task. */
|
|
51441
|
+
taskContainerList: {
|
|
51442
|
+
name: "TaskContainerList",
|
|
51443
|
+
requestType: TaskContainerListRequest,
|
|
51444
|
+
requestStream: false,
|
|
51445
|
+
responseType: TaskContainerListResponse,
|
|
51446
|
+
responseStream: false,
|
|
51447
|
+
options: {}
|
|
51448
|
+
},
|
|
51449
|
+
/** Terminate or release a tracked container. */
|
|
51450
|
+
taskContainerTerminate: {
|
|
51451
|
+
name: "TaskContainerTerminate",
|
|
51452
|
+
requestType: TaskContainerTerminateRequest,
|
|
51453
|
+
requestStream: false,
|
|
51454
|
+
responseType: TaskContainerTerminateResponse,
|
|
51455
|
+
responseStream: false,
|
|
51456
|
+
options: {}
|
|
51457
|
+
},
|
|
51458
|
+
/** Wait for a tracked container to reach a terminal result. */
|
|
51459
|
+
taskContainerWait: {
|
|
51460
|
+
name: "TaskContainerWait",
|
|
51461
|
+
requestType: TaskContainerWaitRequest,
|
|
51462
|
+
requestStream: false,
|
|
51463
|
+
responseType: TaskContainerWaitResponse,
|
|
51464
|
+
responseStream: false,
|
|
51465
|
+
options: {}
|
|
51466
|
+
},
|
|
48274
51467
|
/** Poll for the exit status of an exec'd command. */
|
|
48275
51468
|
taskExecPoll: {
|
|
48276
51469
|
name: "TaskExecPoll",
|
|
@@ -48333,6 +51526,15 @@ var TaskCommandRouterDefinition = {
|
|
|
48333
51526
|
responseType: TaskSnapshotDirectoryResponse,
|
|
48334
51527
|
responseStream: false,
|
|
48335
51528
|
options: {}
|
|
51529
|
+
},
|
|
51530
|
+
/** Unmount an image previously mounted at a directory in the container. */
|
|
51531
|
+
taskUnmountDirectory: {
|
|
51532
|
+
name: "TaskUnmountDirectory",
|
|
51533
|
+
requestType: TaskUnmountDirectoryRequest,
|
|
51534
|
+
requestStream: false,
|
|
51535
|
+
responseType: Empty,
|
|
51536
|
+
responseStream: false,
|
|
51537
|
+
options: {}
|
|
48336
51538
|
}
|
|
48337
51539
|
}
|
|
48338
51540
|
};
|
|
@@ -48369,6 +51571,9 @@ function longToNumber3(int64) {
|
|
|
48369
51571
|
}
|
|
48370
51572
|
return num;
|
|
48371
51573
|
}
|
|
51574
|
+
function isObject3(value) {
|
|
51575
|
+
return typeof value === "object" && value !== null;
|
|
51576
|
+
}
|
|
48372
51577
|
function isSet5(value) {
|
|
48373
51578
|
return value !== null && value !== void 0;
|
|
48374
51579
|
}
|
|
@@ -49037,6 +52242,78 @@ function streamConsumingIter(iterable, onCancel) {
|
|
|
49037
52242
|
var SB_LOGS_INITIAL_DELAY_MS = 10;
|
|
49038
52243
|
var SB_LOGS_DELAY_FACTOR = 2;
|
|
49039
52244
|
var SB_LOGS_MAX_RETRIES = 10;
|
|
52245
|
+
var Probe2 = class _Probe {
|
|
52246
|
+
#tcpPort;
|
|
52247
|
+
#execArgv;
|
|
52248
|
+
#intervalMs;
|
|
52249
|
+
constructor(params) {
|
|
52250
|
+
const { tcpPort, execArgv, intervalMs } = params;
|
|
52251
|
+
if (tcpPort === void 0 === (execArgv === void 0)) {
|
|
52252
|
+
throw new InvalidError(
|
|
52253
|
+
"Probe must be created with Probe.withTcp(...) or Probe.withExec(...)"
|
|
52254
|
+
);
|
|
52255
|
+
}
|
|
52256
|
+
this.#tcpPort = tcpPort;
|
|
52257
|
+
this.#execArgv = execArgv;
|
|
52258
|
+
this.#intervalMs = intervalMs;
|
|
52259
|
+
}
|
|
52260
|
+
static withTcp(port, params = { intervalMs: 100 }) {
|
|
52261
|
+
if (!Number.isInteger(port)) {
|
|
52262
|
+
throw new InvalidError("Probe.withTcp() expects an integer `port`");
|
|
52263
|
+
}
|
|
52264
|
+
if (port <= 0 || port > 65535) {
|
|
52265
|
+
throw new InvalidError(
|
|
52266
|
+
`Probe.withTcp() expects \`port\` in [1, 65535], got ${port}`
|
|
52267
|
+
);
|
|
52268
|
+
}
|
|
52269
|
+
const { intervalMs } = params;
|
|
52270
|
+
_Probe.#validateIntervalMs("Probe.withTcp", intervalMs);
|
|
52271
|
+
return new _Probe({ tcpPort: port, intervalMs });
|
|
52272
|
+
}
|
|
52273
|
+
static withExec(argv, params = { intervalMs: 100 }) {
|
|
52274
|
+
if (!Array.isArray(argv) || argv.length === 0) {
|
|
52275
|
+
throw new InvalidError("Probe.withExec() requires at least one argument");
|
|
52276
|
+
}
|
|
52277
|
+
if (!argv.every((arg) => typeof arg === "string")) {
|
|
52278
|
+
throw new InvalidError(
|
|
52279
|
+
"Probe.withExec() expects all arguments to be strings"
|
|
52280
|
+
);
|
|
52281
|
+
}
|
|
52282
|
+
const { intervalMs } = params;
|
|
52283
|
+
_Probe.#validateIntervalMs("Probe.withExec", intervalMs);
|
|
52284
|
+
return new _Probe({ execArgv: [...argv], intervalMs });
|
|
52285
|
+
}
|
|
52286
|
+
/** @ignore */
|
|
52287
|
+
toProto() {
|
|
52288
|
+
if (this.#tcpPort !== void 0) {
|
|
52289
|
+
return Probe.create({
|
|
52290
|
+
tcpPort: this.#tcpPort,
|
|
52291
|
+
intervalMs: this.#intervalMs
|
|
52292
|
+
});
|
|
52293
|
+
}
|
|
52294
|
+
if (this.#execArgv !== void 0) {
|
|
52295
|
+
return Probe.create({
|
|
52296
|
+
execCommand: { argv: this.#execArgv },
|
|
52297
|
+
intervalMs: this.#intervalMs
|
|
52298
|
+
});
|
|
52299
|
+
}
|
|
52300
|
+
throw new InvalidError(
|
|
52301
|
+
"Probe must be created with Probe.withTcp(...) or Probe.withExec(...)"
|
|
52302
|
+
);
|
|
52303
|
+
}
|
|
52304
|
+
static #validateIntervalMs(methodName, intervalMs) {
|
|
52305
|
+
if (!Number.isInteger(intervalMs)) {
|
|
52306
|
+
throw new InvalidError(
|
|
52307
|
+
`${methodName}() expects an integer \`intervalMs\``
|
|
52308
|
+
);
|
|
52309
|
+
}
|
|
52310
|
+
if (intervalMs <= 0) {
|
|
52311
|
+
throw new InvalidError(
|
|
52312
|
+
`${methodName}() expects \`intervalMs\` > 0, got ${intervalMs}`
|
|
52313
|
+
);
|
|
52314
|
+
}
|
|
52315
|
+
}
|
|
52316
|
+
};
|
|
49040
52317
|
async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
49041
52318
|
checkForRenamedParams(params, {
|
|
49042
52319
|
memory: "memoryMiB",
|
|
@@ -49216,9 +52493,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
49216
52493
|
schedulerPlacement,
|
|
49217
52494
|
verbose: params.verbose ?? false,
|
|
49218
52495
|
proxyId: params.proxy?.proxyId,
|
|
52496
|
+
readinessProbe: params.readinessProbe?.toProto(),
|
|
49219
52497
|
name: params.name,
|
|
49220
52498
|
experimentalOptions: protoExperimentalOptions,
|
|
49221
|
-
customDomain: params.customDomain
|
|
52499
|
+
customDomain: params.customDomain,
|
|
52500
|
+
includeOidcIdentityToken: params.includeOidcIdentityToken ?? false
|
|
49222
52501
|
}
|
|
49223
52502
|
});
|
|
49224
52503
|
}
|
|
@@ -49740,6 +53019,46 @@ var Sandbox2 = class _Sandbox {
|
|
|
49740
53019
|
}
|
|
49741
53020
|
}
|
|
49742
53021
|
}
|
|
53022
|
+
/**
|
|
53023
|
+
* Wait until the Sandbox readiness probe reports the Sandbox is ready.
|
|
53024
|
+
*
|
|
53025
|
+
* This method only works for Sandboxes configured with a readiness probe.
|
|
53026
|
+
*
|
|
53027
|
+
* @param timeoutMs - Maximum total time to wait, in milliseconds.
|
|
53028
|
+
* @returns A promise that resolves once the Sandbox is ready.
|
|
53029
|
+
* @throws {@link TimeoutError} If readiness is not reported before `timeoutMs`.
|
|
53030
|
+
*/
|
|
53031
|
+
async waitUntilReady(timeoutMs = 3e5) {
|
|
53032
|
+
this.#ensureAttached();
|
|
53033
|
+
if (timeoutMs <= 0) {
|
|
53034
|
+
throw new InvalidError(`timeoutMs must be positive, got ${timeoutMs}`);
|
|
53035
|
+
}
|
|
53036
|
+
const deadline = Date.now() + timeoutMs;
|
|
53037
|
+
while (true) {
|
|
53038
|
+
const remainingMs = deadline - Date.now();
|
|
53039
|
+
if (remainingMs <= 0) {
|
|
53040
|
+
throw new TimeoutError("Sandbox operation timed out");
|
|
53041
|
+
}
|
|
53042
|
+
const requestTimeoutMs = Math.min(
|
|
53043
|
+
remainingMs,
|
|
53044
|
+
5e4
|
|
53045
|
+
// Max request timeout for each gRPC call
|
|
53046
|
+
);
|
|
53047
|
+
try {
|
|
53048
|
+
const resp = await this.#client.cpClient.sandboxWaitUntilReady({
|
|
53049
|
+
sandboxId: this.sandboxId,
|
|
53050
|
+
timeout: requestTimeoutMs / 1e3
|
|
53051
|
+
});
|
|
53052
|
+
if (resp.readyAt > 0) {
|
|
53053
|
+
return;
|
|
53054
|
+
}
|
|
53055
|
+
} catch (err) {
|
|
53056
|
+
if (err instanceof import_nice_grpc9.ClientError && err.code === import_nice_grpc9.Status.DEADLINE_EXCEEDED)
|
|
53057
|
+
continue;
|
|
53058
|
+
throw err;
|
|
53059
|
+
}
|
|
53060
|
+
}
|
|
53061
|
+
}
|
|
49743
53062
|
/** Get {@link Tunnel} metadata for the Sandbox.
|
|
49744
53063
|
*
|
|
49745
53064
|
* Raises {@link SandboxTimeoutError} if the tunnels are not available after the timeout.
|
|
@@ -50285,7 +53604,7 @@ var AuthTokenManager = class {
|
|
|
50285
53604
|
|
|
50286
53605
|
// src/version.ts
|
|
50287
53606
|
function getSDKVersion() {
|
|
50288
|
-
return true ? "0.7.
|
|
53607
|
+
return true ? "0.7.4" : "0.0.0";
|
|
50289
53608
|
}
|
|
50290
53609
|
|
|
50291
53610
|
// src/logger.ts
|
|
@@ -50808,6 +54127,7 @@ var App2 = class {
|
|
|
50808
54127
|
InvalidError,
|
|
50809
54128
|
ModalClient,
|
|
50810
54129
|
NotFoundError,
|
|
54130
|
+
Probe,
|
|
50811
54131
|
Proxy,
|
|
50812
54132
|
ProxyService,
|
|
50813
54133
|
Queue,
|
|
@@ -50822,6 +54142,7 @@ var App2 = class {
|
|
|
50822
54142
|
SandboxTimeoutError,
|
|
50823
54143
|
Secret,
|
|
50824
54144
|
SecretService,
|
|
54145
|
+
TimeoutError,
|
|
50825
54146
|
Volume,
|
|
50826
54147
|
VolumeService,
|
|
50827
54148
|
checkForRenamedParams,
|