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.js CHANGED
@@ -3009,6 +3009,371 @@ var AppClientDisconnectRequest = {
3009
3009
  return message;
3010
3010
  }
3011
3011
  };
3012
+ function createBaseAppCountLogsRequest() {
3013
+ return {
3014
+ appId: "",
3015
+ taskId: "",
3016
+ functionId: "",
3017
+ functionCallId: "",
3018
+ sandboxId: "",
3019
+ searchText: "",
3020
+ since: void 0,
3021
+ until: void 0,
3022
+ bucketSecs: 0,
3023
+ source: 0
3024
+ };
3025
+ }
3026
+ var AppCountLogsRequest = {
3027
+ encode(message, writer = new BinaryWriter()) {
3028
+ if (message.appId !== "") {
3029
+ writer.uint32(10).string(message.appId);
3030
+ }
3031
+ if (message.taskId !== "") {
3032
+ writer.uint32(18).string(message.taskId);
3033
+ }
3034
+ if (message.functionId !== "") {
3035
+ writer.uint32(26).string(message.functionId);
3036
+ }
3037
+ if (message.functionCallId !== "") {
3038
+ writer.uint32(34).string(message.functionCallId);
3039
+ }
3040
+ if (message.sandboxId !== "") {
3041
+ writer.uint32(42).string(message.sandboxId);
3042
+ }
3043
+ if (message.searchText !== "") {
3044
+ writer.uint32(50).string(message.searchText);
3045
+ }
3046
+ if (message.since !== void 0) {
3047
+ Timestamp.encode(toTimestamp(message.since), writer.uint32(58).fork()).join();
3048
+ }
3049
+ if (message.until !== void 0) {
3050
+ Timestamp.encode(toTimestamp(message.until), writer.uint32(66).fork()).join();
3051
+ }
3052
+ if (message.bucketSecs !== 0) {
3053
+ writer.uint32(72).uint32(message.bucketSecs);
3054
+ }
3055
+ if (message.source !== 0) {
3056
+ writer.uint32(80).int32(message.source);
3057
+ }
3058
+ return writer;
3059
+ },
3060
+ decode(input, length) {
3061
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3062
+ let end = length === void 0 ? reader.len : reader.pos + length;
3063
+ const message = createBaseAppCountLogsRequest();
3064
+ while (reader.pos < end) {
3065
+ const tag = reader.uint32();
3066
+ switch (tag >>> 3) {
3067
+ case 1: {
3068
+ if (tag !== 10) {
3069
+ break;
3070
+ }
3071
+ message.appId = reader.string();
3072
+ continue;
3073
+ }
3074
+ case 2: {
3075
+ if (tag !== 18) {
3076
+ break;
3077
+ }
3078
+ message.taskId = reader.string();
3079
+ continue;
3080
+ }
3081
+ case 3: {
3082
+ if (tag !== 26) {
3083
+ break;
3084
+ }
3085
+ message.functionId = reader.string();
3086
+ continue;
3087
+ }
3088
+ case 4: {
3089
+ if (tag !== 34) {
3090
+ break;
3091
+ }
3092
+ message.functionCallId = reader.string();
3093
+ continue;
3094
+ }
3095
+ case 5: {
3096
+ if (tag !== 42) {
3097
+ break;
3098
+ }
3099
+ message.sandboxId = reader.string();
3100
+ continue;
3101
+ }
3102
+ case 6: {
3103
+ if (tag !== 50) {
3104
+ break;
3105
+ }
3106
+ message.searchText = reader.string();
3107
+ continue;
3108
+ }
3109
+ case 7: {
3110
+ if (tag !== 58) {
3111
+ break;
3112
+ }
3113
+ message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3114
+ continue;
3115
+ }
3116
+ case 8: {
3117
+ if (tag !== 66) {
3118
+ break;
3119
+ }
3120
+ message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3121
+ continue;
3122
+ }
3123
+ case 9: {
3124
+ if (tag !== 72) {
3125
+ break;
3126
+ }
3127
+ message.bucketSecs = reader.uint32();
3128
+ continue;
3129
+ }
3130
+ case 10: {
3131
+ if (tag !== 80) {
3132
+ break;
3133
+ }
3134
+ message.source = reader.int32();
3135
+ continue;
3136
+ }
3137
+ }
3138
+ if ((tag & 7) === 4 || tag === 0) {
3139
+ break;
3140
+ }
3141
+ reader.skip(tag & 7);
3142
+ }
3143
+ return message;
3144
+ },
3145
+ fromJSON(object) {
3146
+ return {
3147
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
3148
+ taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
3149
+ functionId: isSet4(object.functionId) ? globalThis.String(object.functionId) : "",
3150
+ functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
3151
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
3152
+ searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : "",
3153
+ since: isSet4(object.since) ? fromJsonTimestamp(object.since) : void 0,
3154
+ until: isSet4(object.until) ? fromJsonTimestamp(object.until) : void 0,
3155
+ bucketSecs: isSet4(object.bucketSecs) ? globalThis.Number(object.bucketSecs) : 0,
3156
+ source: isSet4(object.source) ? fileDescriptorFromJSON(object.source) : 0
3157
+ };
3158
+ },
3159
+ toJSON(message) {
3160
+ const obj = {};
3161
+ if (message.appId !== "") {
3162
+ obj.appId = message.appId;
3163
+ }
3164
+ if (message.taskId !== "") {
3165
+ obj.taskId = message.taskId;
3166
+ }
3167
+ if (message.functionId !== "") {
3168
+ obj.functionId = message.functionId;
3169
+ }
3170
+ if (message.functionCallId !== "") {
3171
+ obj.functionCallId = message.functionCallId;
3172
+ }
3173
+ if (message.sandboxId !== "") {
3174
+ obj.sandboxId = message.sandboxId;
3175
+ }
3176
+ if (message.searchText !== "") {
3177
+ obj.searchText = message.searchText;
3178
+ }
3179
+ if (message.since !== void 0) {
3180
+ obj.since = message.since.toISOString();
3181
+ }
3182
+ if (message.until !== void 0) {
3183
+ obj.until = message.until.toISOString();
3184
+ }
3185
+ if (message.bucketSecs !== 0) {
3186
+ obj.bucketSecs = Math.round(message.bucketSecs);
3187
+ }
3188
+ if (message.source !== 0) {
3189
+ obj.source = fileDescriptorToJSON(message.source);
3190
+ }
3191
+ return obj;
3192
+ },
3193
+ create(base) {
3194
+ return AppCountLogsRequest.fromPartial(base ?? {});
3195
+ },
3196
+ fromPartial(object) {
3197
+ const message = createBaseAppCountLogsRequest();
3198
+ message.appId = object.appId ?? "";
3199
+ message.taskId = object.taskId ?? "";
3200
+ message.functionId = object.functionId ?? "";
3201
+ message.functionCallId = object.functionCallId ?? "";
3202
+ message.sandboxId = object.sandboxId ?? "";
3203
+ message.searchText = object.searchText ?? "";
3204
+ message.since = object.since ?? void 0;
3205
+ message.until = object.until ?? void 0;
3206
+ message.bucketSecs = object.bucketSecs ?? 0;
3207
+ message.source = object.source ?? 0;
3208
+ return message;
3209
+ }
3210
+ };
3211
+ function createBaseAppCountLogsResponse() {
3212
+ return { appId: "", buckets: [] };
3213
+ }
3214
+ var AppCountLogsResponse = {
3215
+ encode(message, writer = new BinaryWriter()) {
3216
+ if (message.appId !== "") {
3217
+ writer.uint32(10).string(message.appId);
3218
+ }
3219
+ for (const v of message.buckets) {
3220
+ AppCountLogsResponse_LogBucket.encode(v, writer.uint32(18).fork()).join();
3221
+ }
3222
+ return writer;
3223
+ },
3224
+ decode(input, length) {
3225
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3226
+ let end = length === void 0 ? reader.len : reader.pos + length;
3227
+ const message = createBaseAppCountLogsResponse();
3228
+ while (reader.pos < end) {
3229
+ const tag = reader.uint32();
3230
+ switch (tag >>> 3) {
3231
+ case 1: {
3232
+ if (tag !== 10) {
3233
+ break;
3234
+ }
3235
+ message.appId = reader.string();
3236
+ continue;
3237
+ }
3238
+ case 2: {
3239
+ if (tag !== 18) {
3240
+ break;
3241
+ }
3242
+ message.buckets.push(AppCountLogsResponse_LogBucket.decode(reader, reader.uint32()));
3243
+ continue;
3244
+ }
3245
+ }
3246
+ if ((tag & 7) === 4 || tag === 0) {
3247
+ break;
3248
+ }
3249
+ reader.skip(tag & 7);
3250
+ }
3251
+ return message;
3252
+ },
3253
+ fromJSON(object) {
3254
+ return {
3255
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
3256
+ buckets: globalThis.Array.isArray(object?.buckets) ? object.buckets.map((e) => AppCountLogsResponse_LogBucket.fromJSON(e)) : []
3257
+ };
3258
+ },
3259
+ toJSON(message) {
3260
+ const obj = {};
3261
+ if (message.appId !== "") {
3262
+ obj.appId = message.appId;
3263
+ }
3264
+ if (message.buckets?.length) {
3265
+ obj.buckets = message.buckets.map((e) => AppCountLogsResponse_LogBucket.toJSON(e));
3266
+ }
3267
+ return obj;
3268
+ },
3269
+ create(base) {
3270
+ return AppCountLogsResponse.fromPartial(base ?? {});
3271
+ },
3272
+ fromPartial(object) {
3273
+ const message = createBaseAppCountLogsResponse();
3274
+ message.appId = object.appId ?? "";
3275
+ message.buckets = object.buckets?.map((e) => AppCountLogsResponse_LogBucket.fromPartial(e)) || [];
3276
+ return message;
3277
+ }
3278
+ };
3279
+ function createBaseAppCountLogsResponse_LogBucket() {
3280
+ return { bucketStartAt: void 0, stdoutLogs: 0, stderrLogs: 0, systemLogs: 0 };
3281
+ }
3282
+ var AppCountLogsResponse_LogBucket = {
3283
+ encode(message, writer = new BinaryWriter()) {
3284
+ if (message.bucketStartAt !== void 0) {
3285
+ Timestamp.encode(toTimestamp(message.bucketStartAt), writer.uint32(10).fork()).join();
3286
+ }
3287
+ if (message.stdoutLogs !== 0) {
3288
+ writer.uint32(16).uint64(message.stdoutLogs);
3289
+ }
3290
+ if (message.stderrLogs !== 0) {
3291
+ writer.uint32(24).uint64(message.stderrLogs);
3292
+ }
3293
+ if (message.systemLogs !== 0) {
3294
+ writer.uint32(32).uint64(message.systemLogs);
3295
+ }
3296
+ return writer;
3297
+ },
3298
+ decode(input, length) {
3299
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3300
+ let end = length === void 0 ? reader.len : reader.pos + length;
3301
+ const message = createBaseAppCountLogsResponse_LogBucket();
3302
+ while (reader.pos < end) {
3303
+ const tag = reader.uint32();
3304
+ switch (tag >>> 3) {
3305
+ case 1: {
3306
+ if (tag !== 10) {
3307
+ break;
3308
+ }
3309
+ message.bucketStartAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3310
+ continue;
3311
+ }
3312
+ case 2: {
3313
+ if (tag !== 16) {
3314
+ break;
3315
+ }
3316
+ message.stdoutLogs = longToNumber2(reader.uint64());
3317
+ continue;
3318
+ }
3319
+ case 3: {
3320
+ if (tag !== 24) {
3321
+ break;
3322
+ }
3323
+ message.stderrLogs = longToNumber2(reader.uint64());
3324
+ continue;
3325
+ }
3326
+ case 4: {
3327
+ if (tag !== 32) {
3328
+ break;
3329
+ }
3330
+ message.systemLogs = longToNumber2(reader.uint64());
3331
+ continue;
3332
+ }
3333
+ }
3334
+ if ((tag & 7) === 4 || tag === 0) {
3335
+ break;
3336
+ }
3337
+ reader.skip(tag & 7);
3338
+ }
3339
+ return message;
3340
+ },
3341
+ fromJSON(object) {
3342
+ return {
3343
+ bucketStartAt: isSet4(object.bucketStartAt) ? fromJsonTimestamp(object.bucketStartAt) : void 0,
3344
+ stdoutLogs: isSet4(object.stdoutLogs) ? globalThis.Number(object.stdoutLogs) : 0,
3345
+ stderrLogs: isSet4(object.stderrLogs) ? globalThis.Number(object.stderrLogs) : 0,
3346
+ systemLogs: isSet4(object.systemLogs) ? globalThis.Number(object.systemLogs) : 0
3347
+ };
3348
+ },
3349
+ toJSON(message) {
3350
+ const obj = {};
3351
+ if (message.bucketStartAt !== void 0) {
3352
+ obj.bucketStartAt = message.bucketStartAt.toISOString();
3353
+ }
3354
+ if (message.stdoutLogs !== 0) {
3355
+ obj.stdoutLogs = Math.round(message.stdoutLogs);
3356
+ }
3357
+ if (message.stderrLogs !== 0) {
3358
+ obj.stderrLogs = Math.round(message.stderrLogs);
3359
+ }
3360
+ if (message.systemLogs !== 0) {
3361
+ obj.systemLogs = Math.round(message.systemLogs);
3362
+ }
3363
+ return obj;
3364
+ },
3365
+ create(base) {
3366
+ return AppCountLogsResponse_LogBucket.fromPartial(base ?? {});
3367
+ },
3368
+ fromPartial(object) {
3369
+ const message = createBaseAppCountLogsResponse_LogBucket();
3370
+ message.bucketStartAt = object.bucketStartAt ?? void 0;
3371
+ message.stdoutLogs = object.stdoutLogs ?? 0;
3372
+ message.stderrLogs = object.stderrLogs ?? 0;
3373
+ message.systemLogs = object.systemLogs ?? 0;
3374
+ return message;
3375
+ }
3376
+ };
3012
3377
  function createBaseAppCreateRequest() {
3013
3378
  return { clientId: "", description: "", environmentName: "", appState: 0, tags: {} };
3014
3379
  }
@@ -3757,6 +4122,258 @@ var AppDeploymentHistoryResponse = {
3757
4122
  return message;
3758
4123
  }
3759
4124
  };
4125
+ function createBaseAppFetchLogsRequest() {
4126
+ return {
4127
+ appId: "",
4128
+ since: void 0,
4129
+ until: void 0,
4130
+ limit: 0,
4131
+ source: 0,
4132
+ functionId: "",
4133
+ functionCallId: "",
4134
+ taskId: "",
4135
+ sandboxId: "",
4136
+ searchText: ""
4137
+ };
4138
+ }
4139
+ var AppFetchLogsRequest = {
4140
+ encode(message, writer = new BinaryWriter()) {
4141
+ if (message.appId !== "") {
4142
+ writer.uint32(10).string(message.appId);
4143
+ }
4144
+ if (message.since !== void 0) {
4145
+ Timestamp.encode(toTimestamp(message.since), writer.uint32(18).fork()).join();
4146
+ }
4147
+ if (message.until !== void 0) {
4148
+ Timestamp.encode(toTimestamp(message.until), writer.uint32(26).fork()).join();
4149
+ }
4150
+ if (message.limit !== 0) {
4151
+ writer.uint32(32).uint32(message.limit);
4152
+ }
4153
+ if (message.source !== 0) {
4154
+ writer.uint32(40).int32(message.source);
4155
+ }
4156
+ if (message.functionId !== "") {
4157
+ writer.uint32(50).string(message.functionId);
4158
+ }
4159
+ if (message.functionCallId !== "") {
4160
+ writer.uint32(58).string(message.functionCallId);
4161
+ }
4162
+ if (message.taskId !== "") {
4163
+ writer.uint32(66).string(message.taskId);
4164
+ }
4165
+ if (message.sandboxId !== "") {
4166
+ writer.uint32(74).string(message.sandboxId);
4167
+ }
4168
+ if (message.searchText !== "") {
4169
+ writer.uint32(82).string(message.searchText);
4170
+ }
4171
+ return writer;
4172
+ },
4173
+ decode(input, length) {
4174
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4175
+ let end = length === void 0 ? reader.len : reader.pos + length;
4176
+ const message = createBaseAppFetchLogsRequest();
4177
+ while (reader.pos < end) {
4178
+ const tag = reader.uint32();
4179
+ switch (tag >>> 3) {
4180
+ case 1: {
4181
+ if (tag !== 10) {
4182
+ break;
4183
+ }
4184
+ message.appId = reader.string();
4185
+ continue;
4186
+ }
4187
+ case 2: {
4188
+ if (tag !== 18) {
4189
+ break;
4190
+ }
4191
+ message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4192
+ continue;
4193
+ }
4194
+ case 3: {
4195
+ if (tag !== 26) {
4196
+ break;
4197
+ }
4198
+ message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4199
+ continue;
4200
+ }
4201
+ case 4: {
4202
+ if (tag !== 32) {
4203
+ break;
4204
+ }
4205
+ message.limit = reader.uint32();
4206
+ continue;
4207
+ }
4208
+ case 5: {
4209
+ if (tag !== 40) {
4210
+ break;
4211
+ }
4212
+ message.source = reader.int32();
4213
+ continue;
4214
+ }
4215
+ case 6: {
4216
+ if (tag !== 50) {
4217
+ break;
4218
+ }
4219
+ message.functionId = reader.string();
4220
+ continue;
4221
+ }
4222
+ case 7: {
4223
+ if (tag !== 58) {
4224
+ break;
4225
+ }
4226
+ message.functionCallId = reader.string();
4227
+ continue;
4228
+ }
4229
+ case 8: {
4230
+ if (tag !== 66) {
4231
+ break;
4232
+ }
4233
+ message.taskId = reader.string();
4234
+ continue;
4235
+ }
4236
+ case 9: {
4237
+ if (tag !== 74) {
4238
+ break;
4239
+ }
4240
+ message.sandboxId = reader.string();
4241
+ continue;
4242
+ }
4243
+ case 10: {
4244
+ if (tag !== 82) {
4245
+ break;
4246
+ }
4247
+ message.searchText = reader.string();
4248
+ continue;
4249
+ }
4250
+ }
4251
+ if ((tag & 7) === 4 || tag === 0) {
4252
+ break;
4253
+ }
4254
+ reader.skip(tag & 7);
4255
+ }
4256
+ return message;
4257
+ },
4258
+ fromJSON(object) {
4259
+ return {
4260
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
4261
+ since: isSet4(object.since) ? fromJsonTimestamp(object.since) : void 0,
4262
+ until: isSet4(object.until) ? fromJsonTimestamp(object.until) : void 0,
4263
+ limit: isSet4(object.limit) ? globalThis.Number(object.limit) : 0,
4264
+ source: isSet4(object.source) ? fileDescriptorFromJSON(object.source) : 0,
4265
+ functionId: isSet4(object.functionId) ? globalThis.String(object.functionId) : "",
4266
+ functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
4267
+ taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
4268
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
4269
+ searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : ""
4270
+ };
4271
+ },
4272
+ toJSON(message) {
4273
+ const obj = {};
4274
+ if (message.appId !== "") {
4275
+ obj.appId = message.appId;
4276
+ }
4277
+ if (message.since !== void 0) {
4278
+ obj.since = message.since.toISOString();
4279
+ }
4280
+ if (message.until !== void 0) {
4281
+ obj.until = message.until.toISOString();
4282
+ }
4283
+ if (message.limit !== 0) {
4284
+ obj.limit = Math.round(message.limit);
4285
+ }
4286
+ if (message.source !== 0) {
4287
+ obj.source = fileDescriptorToJSON(message.source);
4288
+ }
4289
+ if (message.functionId !== "") {
4290
+ obj.functionId = message.functionId;
4291
+ }
4292
+ if (message.functionCallId !== "") {
4293
+ obj.functionCallId = message.functionCallId;
4294
+ }
4295
+ if (message.taskId !== "") {
4296
+ obj.taskId = message.taskId;
4297
+ }
4298
+ if (message.sandboxId !== "") {
4299
+ obj.sandboxId = message.sandboxId;
4300
+ }
4301
+ if (message.searchText !== "") {
4302
+ obj.searchText = message.searchText;
4303
+ }
4304
+ return obj;
4305
+ },
4306
+ create(base) {
4307
+ return AppFetchLogsRequest.fromPartial(base ?? {});
4308
+ },
4309
+ fromPartial(object) {
4310
+ const message = createBaseAppFetchLogsRequest();
4311
+ message.appId = object.appId ?? "";
4312
+ message.since = object.since ?? void 0;
4313
+ message.until = object.until ?? void 0;
4314
+ message.limit = object.limit ?? 0;
4315
+ message.source = object.source ?? 0;
4316
+ message.functionId = object.functionId ?? "";
4317
+ message.functionCallId = object.functionCallId ?? "";
4318
+ message.taskId = object.taskId ?? "";
4319
+ message.sandboxId = object.sandboxId ?? "";
4320
+ message.searchText = object.searchText ?? "";
4321
+ return message;
4322
+ }
4323
+ };
4324
+ function createBaseAppFetchLogsResponse() {
4325
+ return { batches: [] };
4326
+ }
4327
+ var AppFetchLogsResponse = {
4328
+ encode(message, writer = new BinaryWriter()) {
4329
+ for (const v of message.batches) {
4330
+ TaskLogsBatch.encode(v, writer.uint32(10).fork()).join();
4331
+ }
4332
+ return writer;
4333
+ },
4334
+ decode(input, length) {
4335
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4336
+ let end = length === void 0 ? reader.len : reader.pos + length;
4337
+ const message = createBaseAppFetchLogsResponse();
4338
+ while (reader.pos < end) {
4339
+ const tag = reader.uint32();
4340
+ switch (tag >>> 3) {
4341
+ case 1: {
4342
+ if (tag !== 10) {
4343
+ break;
4344
+ }
4345
+ message.batches.push(TaskLogsBatch.decode(reader, reader.uint32()));
4346
+ continue;
4347
+ }
4348
+ }
4349
+ if ((tag & 7) === 4 || tag === 0) {
4350
+ break;
4351
+ }
4352
+ reader.skip(tag & 7);
4353
+ }
4354
+ return message;
4355
+ },
4356
+ fromJSON(object) {
4357
+ return {
4358
+ batches: globalThis.Array.isArray(object?.batches) ? object.batches.map((e) => TaskLogsBatch.fromJSON(e)) : []
4359
+ };
4360
+ },
4361
+ toJSON(message) {
4362
+ const obj = {};
4363
+ if (message.batches?.length) {
4364
+ obj.batches = message.batches.map((e) => TaskLogsBatch.toJSON(e));
4365
+ }
4366
+ return obj;
4367
+ },
4368
+ create(base) {
4369
+ return AppFetchLogsResponse.fromPartial(base ?? {});
4370
+ },
4371
+ fromPartial(object) {
4372
+ const message = createBaseAppFetchLogsResponse();
4373
+ message.batches = object.batches?.map((e) => TaskLogsBatch.fromPartial(e)) || [];
4374
+ return message;
4375
+ }
4376
+ };
3760
4377
  function createBaseAppGetByDeploymentNameRequest() {
3761
4378
  return { name: "", environmentName: "" };
3762
4379
  }
@@ -3978,6 +4595,108 @@ var AppGetLayoutResponse = {
3978
4595
  return message;
3979
4596
  }
3980
4597
  };
4598
+ function createBaseAppGetLifecycleRequest() {
4599
+ return { appId: "" };
4600
+ }
4601
+ var AppGetLifecycleRequest = {
4602
+ encode(message, writer = new BinaryWriter()) {
4603
+ if (message.appId !== "") {
4604
+ writer.uint32(10).string(message.appId);
4605
+ }
4606
+ return writer;
4607
+ },
4608
+ decode(input, length) {
4609
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4610
+ let end = length === void 0 ? reader.len : reader.pos + length;
4611
+ const message = createBaseAppGetLifecycleRequest();
4612
+ while (reader.pos < end) {
4613
+ const tag = reader.uint32();
4614
+ switch (tag >>> 3) {
4615
+ case 1: {
4616
+ if (tag !== 10) {
4617
+ break;
4618
+ }
4619
+ message.appId = reader.string();
4620
+ continue;
4621
+ }
4622
+ }
4623
+ if ((tag & 7) === 4 || tag === 0) {
4624
+ break;
4625
+ }
4626
+ reader.skip(tag & 7);
4627
+ }
4628
+ return message;
4629
+ },
4630
+ fromJSON(object) {
4631
+ return { appId: isSet4(object.appId) ? globalThis.String(object.appId) : "" };
4632
+ },
4633
+ toJSON(message) {
4634
+ const obj = {};
4635
+ if (message.appId !== "") {
4636
+ obj.appId = message.appId;
4637
+ }
4638
+ return obj;
4639
+ },
4640
+ create(base) {
4641
+ return AppGetLifecycleRequest.fromPartial(base ?? {});
4642
+ },
4643
+ fromPartial(object) {
4644
+ const message = createBaseAppGetLifecycleRequest();
4645
+ message.appId = object.appId ?? "";
4646
+ return message;
4647
+ }
4648
+ };
4649
+ function createBaseAppGetLifecycleResponse() {
4650
+ return { lifecycle: void 0 };
4651
+ }
4652
+ var AppGetLifecycleResponse = {
4653
+ encode(message, writer = new BinaryWriter()) {
4654
+ if (message.lifecycle !== void 0) {
4655
+ AppLifecycle.encode(message.lifecycle, writer.uint32(10).fork()).join();
4656
+ }
4657
+ return writer;
4658
+ },
4659
+ decode(input, length) {
4660
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4661
+ let end = length === void 0 ? reader.len : reader.pos + length;
4662
+ const message = createBaseAppGetLifecycleResponse();
4663
+ while (reader.pos < end) {
4664
+ const tag = reader.uint32();
4665
+ switch (tag >>> 3) {
4666
+ case 1: {
4667
+ if (tag !== 10) {
4668
+ break;
4669
+ }
4670
+ message.lifecycle = AppLifecycle.decode(reader, reader.uint32());
4671
+ continue;
4672
+ }
4673
+ }
4674
+ if ((tag & 7) === 4 || tag === 0) {
4675
+ break;
4676
+ }
4677
+ reader.skip(tag & 7);
4678
+ }
4679
+ return message;
4680
+ },
4681
+ fromJSON(object) {
4682
+ return { lifecycle: isSet4(object.lifecycle) ? AppLifecycle.fromJSON(object.lifecycle) : void 0 };
4683
+ },
4684
+ toJSON(message) {
4685
+ const obj = {};
4686
+ if (message.lifecycle !== void 0) {
4687
+ obj.lifecycle = AppLifecycle.toJSON(message.lifecycle);
4688
+ }
4689
+ return obj;
4690
+ },
4691
+ create(base) {
4692
+ return AppGetLifecycleResponse.fromPartial(base ?? {});
4693
+ },
4694
+ fromPartial(object) {
4695
+ const message = createBaseAppGetLifecycleResponse();
4696
+ message.lifecycle = object.lifecycle !== void 0 && object.lifecycle !== null ? AppLifecycle.fromPartial(object.lifecycle) : void 0;
4697
+ return message;
4698
+ }
4699
+ };
3981
4700
  function createBaseAppGetLogsRequest() {
3982
4701
  return {
3983
4702
  appId: "",
@@ -3989,7 +4708,8 @@ function createBaseAppGetLogsRequest() {
3989
4708
  taskId: "",
3990
4709
  functionCallId: "",
3991
4710
  fileDescriptor: 0,
3992
- sandboxId: ""
4711
+ sandboxId: "",
4712
+ searchText: ""
3993
4713
  };
3994
4714
  }
3995
4715
  var AppGetLogsRequest = {
@@ -4024,6 +4744,9 @@ var AppGetLogsRequest = {
4024
4744
  if (message.sandboxId !== "") {
4025
4745
  writer.uint32(82).string(message.sandboxId);
4026
4746
  }
4747
+ if (message.searchText !== "") {
4748
+ writer.uint32(98).string(message.searchText);
4749
+ }
4027
4750
  return writer;
4028
4751
  },
4029
4752
  decode(input, length) {
@@ -4103,6 +4826,13 @@ var AppGetLogsRequest = {
4103
4826
  message.sandboxId = reader.string();
4104
4827
  continue;
4105
4828
  }
4829
+ case 12: {
4830
+ if (tag !== 98) {
4831
+ break;
4832
+ }
4833
+ message.searchText = reader.string();
4834
+ continue;
4835
+ }
4106
4836
  }
4107
4837
  if ((tag & 7) === 4 || tag === 0) {
4108
4838
  break;
@@ -4122,7 +4852,8 @@ var AppGetLogsRequest = {
4122
4852
  taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
4123
4853
  functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
4124
4854
  fileDescriptor: isSet4(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
4125
- sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
4855
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
4856
+ searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : ""
4126
4857
  };
4127
4858
  },
4128
4859
  toJSON(message) {
@@ -4157,6 +4888,9 @@ var AppGetLogsRequest = {
4157
4888
  if (message.sandboxId !== "") {
4158
4889
  obj.sandboxId = message.sandboxId;
4159
4890
  }
4891
+ if (message.searchText !== "") {
4892
+ obj.searchText = message.searchText;
4893
+ }
4160
4894
  return obj;
4161
4895
  },
4162
4896
  create(base) {
@@ -4174,6 +4908,7 @@ var AppGetLogsRequest = {
4174
4908
  message.functionCallId = object.functionCallId ?? "";
4175
4909
  message.fileDescriptor = object.fileDescriptor ?? 0;
4176
4910
  message.sandboxId = object.sandboxId ?? "";
4911
+ message.searchText = object.searchText ?? "";
4177
4912
  return message;
4178
4913
  }
4179
4914
  };
@@ -5011,6 +5746,173 @@ var AppLayout_ClassIdsEntry = {
5011
5746
  return message;
5012
5747
  }
5013
5748
  };
5749
+ function createBaseAppLifecycle() {
5750
+ return {
5751
+ appState: 0,
5752
+ createdAt: 0,
5753
+ createdBy: "",
5754
+ deployedAt: 0,
5755
+ deployedBy: "",
5756
+ version: 0,
5757
+ stoppedAt: 0,
5758
+ stoppedBy: ""
5759
+ };
5760
+ }
5761
+ var AppLifecycle = {
5762
+ encode(message, writer = new BinaryWriter()) {
5763
+ if (message.appState !== 0) {
5764
+ writer.uint32(8).int32(message.appState);
5765
+ }
5766
+ if (message.createdAt !== 0) {
5767
+ writer.uint32(17).double(message.createdAt);
5768
+ }
5769
+ if (message.createdBy !== "") {
5770
+ writer.uint32(26).string(message.createdBy);
5771
+ }
5772
+ if (message.deployedAt !== 0) {
5773
+ writer.uint32(33).double(message.deployedAt);
5774
+ }
5775
+ if (message.deployedBy !== "") {
5776
+ writer.uint32(42).string(message.deployedBy);
5777
+ }
5778
+ if (message.version !== 0) {
5779
+ writer.uint32(48).int32(message.version);
5780
+ }
5781
+ if (message.stoppedAt !== 0) {
5782
+ writer.uint32(57).double(message.stoppedAt);
5783
+ }
5784
+ if (message.stoppedBy !== "") {
5785
+ writer.uint32(66).string(message.stoppedBy);
5786
+ }
5787
+ return writer;
5788
+ },
5789
+ decode(input, length) {
5790
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5791
+ let end = length === void 0 ? reader.len : reader.pos + length;
5792
+ const message = createBaseAppLifecycle();
5793
+ while (reader.pos < end) {
5794
+ const tag = reader.uint32();
5795
+ switch (tag >>> 3) {
5796
+ case 1: {
5797
+ if (tag !== 8) {
5798
+ break;
5799
+ }
5800
+ message.appState = reader.int32();
5801
+ continue;
5802
+ }
5803
+ case 2: {
5804
+ if (tag !== 17) {
5805
+ break;
5806
+ }
5807
+ message.createdAt = reader.double();
5808
+ continue;
5809
+ }
5810
+ case 3: {
5811
+ if (tag !== 26) {
5812
+ break;
5813
+ }
5814
+ message.createdBy = reader.string();
5815
+ continue;
5816
+ }
5817
+ case 4: {
5818
+ if (tag !== 33) {
5819
+ break;
5820
+ }
5821
+ message.deployedAt = reader.double();
5822
+ continue;
5823
+ }
5824
+ case 5: {
5825
+ if (tag !== 42) {
5826
+ break;
5827
+ }
5828
+ message.deployedBy = reader.string();
5829
+ continue;
5830
+ }
5831
+ case 6: {
5832
+ if (tag !== 48) {
5833
+ break;
5834
+ }
5835
+ message.version = reader.int32();
5836
+ continue;
5837
+ }
5838
+ case 7: {
5839
+ if (tag !== 57) {
5840
+ break;
5841
+ }
5842
+ message.stoppedAt = reader.double();
5843
+ continue;
5844
+ }
5845
+ case 8: {
5846
+ if (tag !== 66) {
5847
+ break;
5848
+ }
5849
+ message.stoppedBy = reader.string();
5850
+ continue;
5851
+ }
5852
+ }
5853
+ if ((tag & 7) === 4 || tag === 0) {
5854
+ break;
5855
+ }
5856
+ reader.skip(tag & 7);
5857
+ }
5858
+ return message;
5859
+ },
5860
+ fromJSON(object) {
5861
+ return {
5862
+ appState: isSet4(object.appState) ? appStateFromJSON(object.appState) : 0,
5863
+ createdAt: isSet4(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
5864
+ createdBy: isSet4(object.createdBy) ? globalThis.String(object.createdBy) : "",
5865
+ deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0,
5866
+ deployedBy: isSet4(object.deployedBy) ? globalThis.String(object.deployedBy) : "",
5867
+ version: isSet4(object.version) ? globalThis.Number(object.version) : 0,
5868
+ stoppedAt: isSet4(object.stoppedAt) ? globalThis.Number(object.stoppedAt) : 0,
5869
+ stoppedBy: isSet4(object.stoppedBy) ? globalThis.String(object.stoppedBy) : ""
5870
+ };
5871
+ },
5872
+ toJSON(message) {
5873
+ const obj = {};
5874
+ if (message.appState !== 0) {
5875
+ obj.appState = appStateToJSON(message.appState);
5876
+ }
5877
+ if (message.createdAt !== 0) {
5878
+ obj.createdAt = message.createdAt;
5879
+ }
5880
+ if (message.createdBy !== "") {
5881
+ obj.createdBy = message.createdBy;
5882
+ }
5883
+ if (message.deployedAt !== 0) {
5884
+ obj.deployedAt = message.deployedAt;
5885
+ }
5886
+ if (message.deployedBy !== "") {
5887
+ obj.deployedBy = message.deployedBy;
5888
+ }
5889
+ if (message.version !== 0) {
5890
+ obj.version = Math.round(message.version);
5891
+ }
5892
+ if (message.stoppedAt !== 0) {
5893
+ obj.stoppedAt = message.stoppedAt;
5894
+ }
5895
+ if (message.stoppedBy !== "") {
5896
+ obj.stoppedBy = message.stoppedBy;
5897
+ }
5898
+ return obj;
5899
+ },
5900
+ create(base) {
5901
+ return AppLifecycle.fromPartial(base ?? {});
5902
+ },
5903
+ fromPartial(object) {
5904
+ const message = createBaseAppLifecycle();
5905
+ message.appState = object.appState ?? 0;
5906
+ message.createdAt = object.createdAt ?? 0;
5907
+ message.createdBy = object.createdBy ?? "";
5908
+ message.deployedAt = object.deployedAt ?? 0;
5909
+ message.deployedBy = object.deployedBy ?? "";
5910
+ message.version = object.version ?? 0;
5911
+ message.stoppedAt = object.stoppedAt ?? 0;
5912
+ message.stoppedBy = object.stoppedBy ?? "";
5913
+ return message;
5914
+ }
5915
+ };
5014
5916
  function createBaseAppListRequest() {
5015
5917
  return { environmentName: "" };
5016
5918
  }
@@ -5939,7 +6841,7 @@ var AppPublishRequest_TagsEntry = {
5939
6841
  }
5940
6842
  };
5941
6843
  function createBaseAppPublishResponse() {
5942
- return { url: "", serverWarnings: [] };
6844
+ return { url: "", serverWarnings: [], deployedAt: 0 };
5943
6845
  }
5944
6846
  var AppPublishResponse = {
5945
6847
  encode(message, writer = new BinaryWriter()) {
@@ -5949,6 +6851,9 @@ var AppPublishResponse = {
5949
6851
  for (const v of message.serverWarnings) {
5950
6852
  Warning.encode(v, writer.uint32(26).fork()).join();
5951
6853
  }
6854
+ if (message.deployedAt !== 0) {
6855
+ writer.uint32(33).double(message.deployedAt);
6856
+ }
5952
6857
  return writer;
5953
6858
  },
5954
6859
  decode(input, length) {
@@ -5972,6 +6877,13 @@ var AppPublishResponse = {
5972
6877
  message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
5973
6878
  continue;
5974
6879
  }
6880
+ case 4: {
6881
+ if (tag !== 33) {
6882
+ break;
6883
+ }
6884
+ message.deployedAt = reader.double();
6885
+ continue;
6886
+ }
5975
6887
  }
5976
6888
  if ((tag & 7) === 4 || tag === 0) {
5977
6889
  break;
@@ -5983,7 +6895,8 @@ var AppPublishResponse = {
5983
6895
  fromJSON(object) {
5984
6896
  return {
5985
6897
  url: isSet4(object.url) ? globalThis.String(object.url) : "",
5986
- serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : []
6898
+ serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
6899
+ deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
5987
6900
  };
5988
6901
  },
5989
6902
  toJSON(message) {
@@ -5994,6 +6907,9 @@ var AppPublishResponse = {
5994
6907
  if (message.serverWarnings?.length) {
5995
6908
  obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
5996
6909
  }
6910
+ if (message.deployedAt !== 0) {
6911
+ obj.deployedAt = message.deployedAt;
6912
+ }
5997
6913
  return obj;
5998
6914
  },
5999
6915
  create(base) {
@@ -6003,6 +6919,7 @@ var AppPublishResponse = {
6003
6919
  const message = createBaseAppPublishResponse();
6004
6920
  message.url = object.url ?? "";
6005
6921
  message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
6922
+ message.deployedAt = object.deployedAt ?? 0;
6006
6923
  return message;
6007
6924
  }
6008
6925
  };
@@ -6074,6 +6991,140 @@ var AppRollbackRequest = {
6074
6991
  return message;
6075
6992
  }
6076
6993
  };
6994
+ function createBaseAppRolloverRequest() {
6995
+ return { appId: "" };
6996
+ }
6997
+ var AppRolloverRequest = {
6998
+ encode(message, writer = new BinaryWriter()) {
6999
+ if (message.appId !== "") {
7000
+ writer.uint32(10).string(message.appId);
7001
+ }
7002
+ return writer;
7003
+ },
7004
+ decode(input, length) {
7005
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7006
+ let end = length === void 0 ? reader.len : reader.pos + length;
7007
+ const message = createBaseAppRolloverRequest();
7008
+ while (reader.pos < end) {
7009
+ const tag = reader.uint32();
7010
+ switch (tag >>> 3) {
7011
+ case 1: {
7012
+ if (tag !== 10) {
7013
+ break;
7014
+ }
7015
+ message.appId = reader.string();
7016
+ continue;
7017
+ }
7018
+ }
7019
+ if ((tag & 7) === 4 || tag === 0) {
7020
+ break;
7021
+ }
7022
+ reader.skip(tag & 7);
7023
+ }
7024
+ return message;
7025
+ },
7026
+ fromJSON(object) {
7027
+ return { appId: isSet4(object.appId) ? globalThis.String(object.appId) : "" };
7028
+ },
7029
+ toJSON(message) {
7030
+ const obj = {};
7031
+ if (message.appId !== "") {
7032
+ obj.appId = message.appId;
7033
+ }
7034
+ return obj;
7035
+ },
7036
+ create(base) {
7037
+ return AppRolloverRequest.fromPartial(base ?? {});
7038
+ },
7039
+ fromPartial(object) {
7040
+ const message = createBaseAppRolloverRequest();
7041
+ message.appId = object.appId ?? "";
7042
+ return message;
7043
+ }
7044
+ };
7045
+ function createBaseAppRolloverResponse() {
7046
+ return { url: "", serverWarnings: [], deployedAt: 0 };
7047
+ }
7048
+ var AppRolloverResponse = {
7049
+ encode(message, writer = new BinaryWriter()) {
7050
+ if (message.url !== "") {
7051
+ writer.uint32(10).string(message.url);
7052
+ }
7053
+ for (const v of message.serverWarnings) {
7054
+ Warning.encode(v, writer.uint32(26).fork()).join();
7055
+ }
7056
+ if (message.deployedAt !== 0) {
7057
+ writer.uint32(33).double(message.deployedAt);
7058
+ }
7059
+ return writer;
7060
+ },
7061
+ decode(input, length) {
7062
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7063
+ let end = length === void 0 ? reader.len : reader.pos + length;
7064
+ const message = createBaseAppRolloverResponse();
7065
+ while (reader.pos < end) {
7066
+ const tag = reader.uint32();
7067
+ switch (tag >>> 3) {
7068
+ case 1: {
7069
+ if (tag !== 10) {
7070
+ break;
7071
+ }
7072
+ message.url = reader.string();
7073
+ continue;
7074
+ }
7075
+ case 3: {
7076
+ if (tag !== 26) {
7077
+ break;
7078
+ }
7079
+ message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
7080
+ continue;
7081
+ }
7082
+ case 4: {
7083
+ if (tag !== 33) {
7084
+ break;
7085
+ }
7086
+ message.deployedAt = reader.double();
7087
+ continue;
7088
+ }
7089
+ }
7090
+ if ((tag & 7) === 4 || tag === 0) {
7091
+ break;
7092
+ }
7093
+ reader.skip(tag & 7);
7094
+ }
7095
+ return message;
7096
+ },
7097
+ fromJSON(object) {
7098
+ return {
7099
+ url: isSet4(object.url) ? globalThis.String(object.url) : "",
7100
+ serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
7101
+ deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
7102
+ };
7103
+ },
7104
+ toJSON(message) {
7105
+ const obj = {};
7106
+ if (message.url !== "") {
7107
+ obj.url = message.url;
7108
+ }
7109
+ if (message.serverWarnings?.length) {
7110
+ obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
7111
+ }
7112
+ if (message.deployedAt !== 0) {
7113
+ obj.deployedAt = message.deployedAt;
7114
+ }
7115
+ return obj;
7116
+ },
7117
+ create(base) {
7118
+ return AppRolloverResponse.fromPartial(base ?? {});
7119
+ },
7120
+ fromPartial(object) {
7121
+ const message = createBaseAppRolloverResponse();
7122
+ message.url = object.url ?? "";
7123
+ message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
7124
+ message.deployedAt = object.deployedAt ?? 0;
7125
+ return message;
7126
+ }
7127
+ };
6077
7128
  function createBaseAppSetObjectsRequest() {
6078
7129
  return { appId: "", indexedObjectIds: {}, clientId: "", unindexedObjectIds: [], newAppState: 0 };
6079
7130
  }
@@ -28522,6 +29573,140 @@ var PortSpecs = {
28522
29573
  return message;
28523
29574
  }
28524
29575
  };
29576
+ function createBaseProbe() {
29577
+ return { tcpPort: void 0, execCommand: void 0, intervalMs: void 0 };
29578
+ }
29579
+ var Probe = {
29580
+ encode(message, writer = new BinaryWriter()) {
29581
+ if (message.tcpPort !== void 0) {
29582
+ writer.uint32(8).uint32(message.tcpPort);
29583
+ }
29584
+ if (message.execCommand !== void 0) {
29585
+ Probe_ExecCommand.encode(message.execCommand, writer.uint32(18).fork()).join();
29586
+ }
29587
+ if (message.intervalMs !== void 0) {
29588
+ writer.uint32(24).uint32(message.intervalMs);
29589
+ }
29590
+ return writer;
29591
+ },
29592
+ decode(input, length) {
29593
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
29594
+ let end = length === void 0 ? reader.len : reader.pos + length;
29595
+ const message = createBaseProbe();
29596
+ while (reader.pos < end) {
29597
+ const tag = reader.uint32();
29598
+ switch (tag >>> 3) {
29599
+ case 1: {
29600
+ if (tag !== 8) {
29601
+ break;
29602
+ }
29603
+ message.tcpPort = reader.uint32();
29604
+ continue;
29605
+ }
29606
+ case 2: {
29607
+ if (tag !== 18) {
29608
+ break;
29609
+ }
29610
+ message.execCommand = Probe_ExecCommand.decode(reader, reader.uint32());
29611
+ continue;
29612
+ }
29613
+ case 3: {
29614
+ if (tag !== 24) {
29615
+ break;
29616
+ }
29617
+ message.intervalMs = reader.uint32();
29618
+ continue;
29619
+ }
29620
+ }
29621
+ if ((tag & 7) === 4 || tag === 0) {
29622
+ break;
29623
+ }
29624
+ reader.skip(tag & 7);
29625
+ }
29626
+ return message;
29627
+ },
29628
+ fromJSON(object) {
29629
+ return {
29630
+ tcpPort: isSet4(object.tcpPort) ? globalThis.Number(object.tcpPort) : void 0,
29631
+ execCommand: isSet4(object.execCommand) ? Probe_ExecCommand.fromJSON(object.execCommand) : void 0,
29632
+ intervalMs: isSet4(object.intervalMs) ? globalThis.Number(object.intervalMs) : void 0
29633
+ };
29634
+ },
29635
+ toJSON(message) {
29636
+ const obj = {};
29637
+ if (message.tcpPort !== void 0) {
29638
+ obj.tcpPort = Math.round(message.tcpPort);
29639
+ }
29640
+ if (message.execCommand !== void 0) {
29641
+ obj.execCommand = Probe_ExecCommand.toJSON(message.execCommand);
29642
+ }
29643
+ if (message.intervalMs !== void 0) {
29644
+ obj.intervalMs = Math.round(message.intervalMs);
29645
+ }
29646
+ return obj;
29647
+ },
29648
+ create(base) {
29649
+ return Probe.fromPartial(base ?? {});
29650
+ },
29651
+ fromPartial(object) {
29652
+ const message = createBaseProbe();
29653
+ message.tcpPort = object.tcpPort ?? void 0;
29654
+ message.execCommand = object.execCommand !== void 0 && object.execCommand !== null ? Probe_ExecCommand.fromPartial(object.execCommand) : void 0;
29655
+ message.intervalMs = object.intervalMs ?? void 0;
29656
+ return message;
29657
+ }
29658
+ };
29659
+ function createBaseProbe_ExecCommand() {
29660
+ return { argv: [] };
29661
+ }
29662
+ var Probe_ExecCommand = {
29663
+ encode(message, writer = new BinaryWriter()) {
29664
+ for (const v of message.argv) {
29665
+ writer.uint32(10).string(v);
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_ExecCommand();
29673
+ while (reader.pos < end) {
29674
+ const tag = reader.uint32();
29675
+ switch (tag >>> 3) {
29676
+ case 1: {
29677
+ if (tag !== 10) {
29678
+ break;
29679
+ }
29680
+ message.argv.push(reader.string());
29681
+ continue;
29682
+ }
29683
+ }
29684
+ if ((tag & 7) === 4 || tag === 0) {
29685
+ break;
29686
+ }
29687
+ reader.skip(tag & 7);
29688
+ }
29689
+ return message;
29690
+ },
29691
+ fromJSON(object) {
29692
+ return { argv: globalThis.Array.isArray(object?.argv) ? object.argv.map((e) => globalThis.String(e)) : [] };
29693
+ },
29694
+ toJSON(message) {
29695
+ const obj = {};
29696
+ if (message.argv?.length) {
29697
+ obj.argv = message.argv;
29698
+ }
29699
+ return obj;
29700
+ },
29701
+ create(base) {
29702
+ return Probe_ExecCommand.fromPartial(base ?? {});
29703
+ },
29704
+ fromPartial(object) {
29705
+ const message = createBaseProbe_ExecCommand();
29706
+ message.argv = object.argv?.map((e) => e) || [];
29707
+ return message;
29708
+ }
29709
+ };
28525
29710
  function createBaseProxy() {
28526
29711
  return { name: "", createdAt: 0, environmentName: "", proxyIps: [], proxyId: "", region: "" };
28527
29712
  }
@@ -31639,7 +32824,8 @@ function createBaseSandbox() {
31639
32824
  directSandboxCommandsEnabled: false,
31640
32825
  RestoreInstanceType: "",
31641
32826
  customDomain: "",
31642
- includeOidcIdentityToken: false
32827
+ includeOidcIdentityToken: false,
32828
+ readinessProbe: void 0
31643
32829
  };
31644
32830
  }
31645
32831
  var Sandbox = {
@@ -31749,6 +32935,9 @@ var Sandbox = {
31749
32935
  if (message.includeOidcIdentityToken !== false) {
31750
32936
  writer.uint32(296).bool(message.includeOidcIdentityToken);
31751
32937
  }
32938
+ if (message.readinessProbe !== void 0) {
32939
+ Probe.encode(message.readinessProbe, writer.uint32(306).fork()).join();
32940
+ }
31752
32941
  return writer;
31753
32942
  },
31754
32943
  decode(input, length) {
@@ -32006,6 +33195,13 @@ var Sandbox = {
32006
33195
  message.includeOidcIdentityToken = reader.bool();
32007
33196
  continue;
32008
33197
  }
33198
+ case 38: {
33199
+ if (tag !== 306) {
33200
+ break;
33201
+ }
33202
+ message.readinessProbe = Probe.decode(reader, reader.uint32());
33203
+ continue;
33204
+ }
32009
33205
  }
32010
33206
  if ((tag & 7) === 4 || tag === 0) {
32011
33207
  break;
@@ -32053,7 +33249,8 @@ var Sandbox = {
32053
33249
  directSandboxCommandsEnabled: isSet4(object.directSandboxCommandsEnabled) ? globalThis.Boolean(object.directSandboxCommandsEnabled) : false,
32054
33250
  RestoreInstanceType: isSet4(object.RestoreInstanceType) ? globalThis.String(object.RestoreInstanceType) : "",
32055
33251
  customDomain: isSet4(object.customDomain) ? globalThis.String(object.customDomain) : "",
32056
- includeOidcIdentityToken: isSet4(object.includeOidcIdentityToken) ? globalThis.Boolean(object.includeOidcIdentityToken) : false
33252
+ includeOidcIdentityToken: isSet4(object.includeOidcIdentityToken) ? globalThis.Boolean(object.includeOidcIdentityToken) : false,
33253
+ readinessProbe: isSet4(object.readinessProbe) ? Probe.fromJSON(object.readinessProbe) : void 0
32057
33254
  };
32058
33255
  },
32059
33256
  toJSON(message) {
@@ -32169,6 +33366,9 @@ var Sandbox = {
32169
33366
  if (message.includeOidcIdentityToken !== false) {
32170
33367
  obj.includeOidcIdentityToken = message.includeOidcIdentityToken;
32171
33368
  }
33369
+ if (message.readinessProbe !== void 0) {
33370
+ obj.readinessProbe = Probe.toJSON(message.readinessProbe);
33371
+ }
32172
33372
  return obj;
32173
33373
  },
32174
33374
  create(base) {
@@ -32219,6 +33419,7 @@ var Sandbox = {
32219
33419
  message.RestoreInstanceType = object.RestoreInstanceType ?? "";
32220
33420
  message.customDomain = object.customDomain ?? "";
32221
33421
  message.includeOidcIdentityToken = object.includeOidcIdentityToken ?? false;
33422
+ message.readinessProbe = object.readinessProbe !== void 0 && object.readinessProbe !== null ? Probe.fromPartial(object.readinessProbe) : void 0;
32222
33423
  return message;
32223
33424
  }
32224
33425
  };
@@ -32560,6 +33761,276 @@ var SandboxCreateResponse = {
32560
33761
  return message;
32561
33762
  }
32562
33763
  };
33764
+ function createBaseSandboxCreateV2Request() {
33765
+ return { appId: "", definition: void 0 };
33766
+ }
33767
+ var SandboxCreateV2Request = {
33768
+ encode(message, writer = new BinaryWriter()) {
33769
+ if (message.appId !== "") {
33770
+ writer.uint32(10).string(message.appId);
33771
+ }
33772
+ if (message.definition !== void 0) {
33773
+ Sandbox.encode(message.definition, writer.uint32(18).fork()).join();
33774
+ }
33775
+ return writer;
33776
+ },
33777
+ decode(input, length) {
33778
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33779
+ let end = length === void 0 ? reader.len : reader.pos + length;
33780
+ const message = createBaseSandboxCreateV2Request();
33781
+ while (reader.pos < end) {
33782
+ const tag = reader.uint32();
33783
+ switch (tag >>> 3) {
33784
+ case 1: {
33785
+ if (tag !== 10) {
33786
+ break;
33787
+ }
33788
+ message.appId = reader.string();
33789
+ continue;
33790
+ }
33791
+ case 2: {
33792
+ if (tag !== 18) {
33793
+ break;
33794
+ }
33795
+ message.definition = Sandbox.decode(reader, reader.uint32());
33796
+ continue;
33797
+ }
33798
+ }
33799
+ if ((tag & 7) === 4 || tag === 0) {
33800
+ break;
33801
+ }
33802
+ reader.skip(tag & 7);
33803
+ }
33804
+ return message;
33805
+ },
33806
+ fromJSON(object) {
33807
+ return {
33808
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
33809
+ definition: isSet4(object.definition) ? Sandbox.fromJSON(object.definition) : void 0
33810
+ };
33811
+ },
33812
+ toJSON(message) {
33813
+ const obj = {};
33814
+ if (message.appId !== "") {
33815
+ obj.appId = message.appId;
33816
+ }
33817
+ if (message.definition !== void 0) {
33818
+ obj.definition = Sandbox.toJSON(message.definition);
33819
+ }
33820
+ return obj;
33821
+ },
33822
+ create(base) {
33823
+ return SandboxCreateV2Request.fromPartial(base ?? {});
33824
+ },
33825
+ fromPartial(object) {
33826
+ const message = createBaseSandboxCreateV2Request();
33827
+ message.appId = object.appId ?? "";
33828
+ message.definition = object.definition !== void 0 && object.definition !== null ? Sandbox.fromPartial(object.definition) : void 0;
33829
+ return message;
33830
+ }
33831
+ };
33832
+ function createBaseSandboxCreateV2Response() {
33833
+ return { sandboxId: "", tunnels: [], taskId: "" };
33834
+ }
33835
+ var SandboxCreateV2Response = {
33836
+ encode(message, writer = new BinaryWriter()) {
33837
+ if (message.sandboxId !== "") {
33838
+ writer.uint32(10).string(message.sandboxId);
33839
+ }
33840
+ for (const v of message.tunnels) {
33841
+ TunnelData.encode(v, writer.uint32(18).fork()).join();
33842
+ }
33843
+ if (message.taskId !== "") {
33844
+ writer.uint32(26).string(message.taskId);
33845
+ }
33846
+ return writer;
33847
+ },
33848
+ decode(input, length) {
33849
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33850
+ let end = length === void 0 ? reader.len : reader.pos + length;
33851
+ const message = createBaseSandboxCreateV2Response();
33852
+ while (reader.pos < end) {
33853
+ const tag = reader.uint32();
33854
+ switch (tag >>> 3) {
33855
+ case 1: {
33856
+ if (tag !== 10) {
33857
+ break;
33858
+ }
33859
+ message.sandboxId = reader.string();
33860
+ continue;
33861
+ }
33862
+ case 2: {
33863
+ if (tag !== 18) {
33864
+ break;
33865
+ }
33866
+ message.tunnels.push(TunnelData.decode(reader, reader.uint32()));
33867
+ continue;
33868
+ }
33869
+ case 3: {
33870
+ if (tag !== 26) {
33871
+ break;
33872
+ }
33873
+ message.taskId = reader.string();
33874
+ continue;
33875
+ }
33876
+ }
33877
+ if ((tag & 7) === 4 || tag === 0) {
33878
+ break;
33879
+ }
33880
+ reader.skip(tag & 7);
33881
+ }
33882
+ return message;
33883
+ },
33884
+ fromJSON(object) {
33885
+ return {
33886
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
33887
+ tunnels: globalThis.Array.isArray(object?.tunnels) ? object.tunnels.map((e) => TunnelData.fromJSON(e)) : [],
33888
+ taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : ""
33889
+ };
33890
+ },
33891
+ toJSON(message) {
33892
+ const obj = {};
33893
+ if (message.sandboxId !== "") {
33894
+ obj.sandboxId = message.sandboxId;
33895
+ }
33896
+ if (message.tunnels?.length) {
33897
+ obj.tunnels = message.tunnels.map((e) => TunnelData.toJSON(e));
33898
+ }
33899
+ if (message.taskId !== "") {
33900
+ obj.taskId = message.taskId;
33901
+ }
33902
+ return obj;
33903
+ },
33904
+ create(base) {
33905
+ return SandboxCreateV2Response.fromPartial(base ?? {});
33906
+ },
33907
+ fromPartial(object) {
33908
+ const message = createBaseSandboxCreateV2Response();
33909
+ message.sandboxId = object.sandboxId ?? "";
33910
+ message.tunnels = object.tunnels?.map((e) => TunnelData.fromPartial(e)) || [];
33911
+ message.taskId = object.taskId ?? "";
33912
+ return message;
33913
+ }
33914
+ };
33915
+ function createBaseSandboxGetCommandRouterAccessRequest() {
33916
+ return { sandboxId: "" };
33917
+ }
33918
+ var SandboxGetCommandRouterAccessRequest = {
33919
+ encode(message, writer = new BinaryWriter()) {
33920
+ if (message.sandboxId !== "") {
33921
+ writer.uint32(10).string(message.sandboxId);
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 = createBaseSandboxGetCommandRouterAccessRequest();
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
+ }
33940
+ if ((tag & 7) === 4 || tag === 0) {
33941
+ break;
33942
+ }
33943
+ reader.skip(tag & 7);
33944
+ }
33945
+ return message;
33946
+ },
33947
+ fromJSON(object) {
33948
+ return { sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "" };
33949
+ },
33950
+ toJSON(message) {
33951
+ const obj = {};
33952
+ if (message.sandboxId !== "") {
33953
+ obj.sandboxId = message.sandboxId;
33954
+ }
33955
+ return obj;
33956
+ },
33957
+ create(base) {
33958
+ return SandboxGetCommandRouterAccessRequest.fromPartial(base ?? {});
33959
+ },
33960
+ fromPartial(object) {
33961
+ const message = createBaseSandboxGetCommandRouterAccessRequest();
33962
+ message.sandboxId = object.sandboxId ?? "";
33963
+ return message;
33964
+ }
33965
+ };
33966
+ function createBaseSandboxGetCommandRouterAccessResponse() {
33967
+ return { jwt: "", url: "" };
33968
+ }
33969
+ var SandboxGetCommandRouterAccessResponse = {
33970
+ encode(message, writer = new BinaryWriter()) {
33971
+ if (message.jwt !== "") {
33972
+ writer.uint32(10).string(message.jwt);
33973
+ }
33974
+ if (message.url !== "") {
33975
+ writer.uint32(18).string(message.url);
33976
+ }
33977
+ return writer;
33978
+ },
33979
+ decode(input, length) {
33980
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33981
+ let end = length === void 0 ? reader.len : reader.pos + length;
33982
+ const message = createBaseSandboxGetCommandRouterAccessResponse();
33983
+ while (reader.pos < end) {
33984
+ const tag = reader.uint32();
33985
+ switch (tag >>> 3) {
33986
+ case 1: {
33987
+ if (tag !== 10) {
33988
+ break;
33989
+ }
33990
+ message.jwt = reader.string();
33991
+ continue;
33992
+ }
33993
+ case 2: {
33994
+ if (tag !== 18) {
33995
+ break;
33996
+ }
33997
+ message.url = reader.string();
33998
+ continue;
33999
+ }
34000
+ }
34001
+ if ((tag & 7) === 4 || tag === 0) {
34002
+ break;
34003
+ }
34004
+ reader.skip(tag & 7);
34005
+ }
34006
+ return message;
34007
+ },
34008
+ fromJSON(object) {
34009
+ return {
34010
+ jwt: isSet4(object.jwt) ? globalThis.String(object.jwt) : "",
34011
+ url: isSet4(object.url) ? globalThis.String(object.url) : ""
34012
+ };
34013
+ },
34014
+ toJSON(message) {
34015
+ const obj = {};
34016
+ if (message.jwt !== "") {
34017
+ obj.jwt = message.jwt;
34018
+ }
34019
+ if (message.url !== "") {
34020
+ obj.url = message.url;
34021
+ }
34022
+ return obj;
34023
+ },
34024
+ create(base) {
34025
+ return SandboxGetCommandRouterAccessResponse.fromPartial(base ?? {});
34026
+ },
34027
+ fromPartial(object) {
34028
+ const message = createBaseSandboxGetCommandRouterAccessResponse();
34029
+ message.jwt = object.jwt ?? "";
34030
+ message.url = object.url ?? "";
34031
+ return message;
34032
+ }
34033
+ };
32563
34034
  function createBaseSandboxGetFromNameRequest() {
32564
34035
  return { sandboxName: "", environmentName: "", appName: "" };
32565
34036
  }
@@ -33291,7 +34762,8 @@ function createBaseSandboxInfo() {
33291
34762
  resourceInfo: void 0,
33292
34763
  regions: [],
33293
34764
  timeoutSecs: 0,
33294
- idleTimeoutSecs: void 0
34765
+ idleTimeoutSecs: void 0,
34766
+ readyAt: void 0
33295
34767
  };
33296
34768
  }
33297
34769
  var SandboxInfo = {
@@ -33329,6 +34801,9 @@ var SandboxInfo = {
33329
34801
  if (message.idleTimeoutSecs !== void 0) {
33330
34802
  writer.uint32(96).uint32(message.idleTimeoutSecs);
33331
34803
  }
34804
+ if (message.readyAt !== void 0) {
34805
+ writer.uint32(105).double(message.readyAt);
34806
+ }
33332
34807
  return writer;
33333
34808
  },
33334
34809
  decode(input, length) {
@@ -33415,6 +34890,13 @@ var SandboxInfo = {
33415
34890
  message.idleTimeoutSecs = reader.uint32();
33416
34891
  continue;
33417
34892
  }
34893
+ case 13: {
34894
+ if (tag !== 105) {
34895
+ break;
34896
+ }
34897
+ message.readyAt = reader.double();
34898
+ continue;
34899
+ }
33418
34900
  }
33419
34901
  if ((tag & 7) === 4 || tag === 0) {
33420
34902
  break;
@@ -33435,7 +34917,8 @@ var SandboxInfo = {
33435
34917
  resourceInfo: isSet4(object.resourceInfo) ? ResourceInfo.fromJSON(object.resourceInfo) : void 0,
33436
34918
  regions: globalThis.Array.isArray(object?.regions) ? object.regions.map((e) => globalThis.String(e)) : [],
33437
34919
  timeoutSecs: isSet4(object.timeoutSecs) ? globalThis.Number(object.timeoutSecs) : 0,
33438
- idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0
34920
+ idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0,
34921
+ readyAt: isSet4(object.readyAt) ? globalThis.Number(object.readyAt) : void 0
33439
34922
  };
33440
34923
  },
33441
34924
  toJSON(message) {
@@ -33473,6 +34956,9 @@ var SandboxInfo = {
33473
34956
  if (message.idleTimeoutSecs !== void 0) {
33474
34957
  obj.idleTimeoutSecs = Math.round(message.idleTimeoutSecs);
33475
34958
  }
34959
+ if (message.readyAt !== void 0) {
34960
+ obj.readyAt = message.readyAt;
34961
+ }
33476
34962
  return obj;
33477
34963
  },
33478
34964
  create(base) {
@@ -33491,6 +34977,7 @@ var SandboxInfo = {
33491
34977
  message.regions = object.regions?.map((e) => e) || [];
33492
34978
  message.timeoutSecs = object.timeoutSecs ?? 0;
33493
34979
  message.idleTimeoutSecs = object.idleTimeoutSecs ?? void 0;
34980
+ message.readyAt = object.readyAt ?? void 0;
33494
34981
  return message;
33495
34982
  }
33496
34983
  };
@@ -35049,6 +36536,125 @@ var SandboxWaitResponse = {
35049
36536
  return message;
35050
36537
  }
35051
36538
  };
36539
+ function createBaseSandboxWaitUntilReadyRequest() {
36540
+ return { sandboxId: "", timeout: 0 };
36541
+ }
36542
+ var SandboxWaitUntilReadyRequest = {
36543
+ encode(message, writer = new BinaryWriter()) {
36544
+ if (message.sandboxId !== "") {
36545
+ writer.uint32(10).string(message.sandboxId);
36546
+ }
36547
+ if (message.timeout !== 0) {
36548
+ writer.uint32(21).float(message.timeout);
36549
+ }
36550
+ return writer;
36551
+ },
36552
+ decode(input, length) {
36553
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36554
+ let end = length === void 0 ? reader.len : reader.pos + length;
36555
+ const message = createBaseSandboxWaitUntilReadyRequest();
36556
+ while (reader.pos < end) {
36557
+ const tag = reader.uint32();
36558
+ switch (tag >>> 3) {
36559
+ case 1: {
36560
+ if (tag !== 10) {
36561
+ break;
36562
+ }
36563
+ message.sandboxId = reader.string();
36564
+ continue;
36565
+ }
36566
+ case 2: {
36567
+ if (tag !== 21) {
36568
+ break;
36569
+ }
36570
+ message.timeout = reader.float();
36571
+ continue;
36572
+ }
36573
+ }
36574
+ if ((tag & 7) === 4 || tag === 0) {
36575
+ break;
36576
+ }
36577
+ reader.skip(tag & 7);
36578
+ }
36579
+ return message;
36580
+ },
36581
+ fromJSON(object) {
36582
+ return {
36583
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
36584
+ timeout: isSet4(object.timeout) ? globalThis.Number(object.timeout) : 0
36585
+ };
36586
+ },
36587
+ toJSON(message) {
36588
+ const obj = {};
36589
+ if (message.sandboxId !== "") {
36590
+ obj.sandboxId = message.sandboxId;
36591
+ }
36592
+ if (message.timeout !== 0) {
36593
+ obj.timeout = message.timeout;
36594
+ }
36595
+ return obj;
36596
+ },
36597
+ create(base) {
36598
+ return SandboxWaitUntilReadyRequest.fromPartial(base ?? {});
36599
+ },
36600
+ fromPartial(object) {
36601
+ const message = createBaseSandboxWaitUntilReadyRequest();
36602
+ message.sandboxId = object.sandboxId ?? "";
36603
+ message.timeout = object.timeout ?? 0;
36604
+ return message;
36605
+ }
36606
+ };
36607
+ function createBaseSandboxWaitUntilReadyResponse() {
36608
+ return { readyAt: 0 };
36609
+ }
36610
+ var SandboxWaitUntilReadyResponse = {
36611
+ encode(message, writer = new BinaryWriter()) {
36612
+ if (message.readyAt !== 0) {
36613
+ writer.uint32(9).double(message.readyAt);
36614
+ }
36615
+ return writer;
36616
+ },
36617
+ decode(input, length) {
36618
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36619
+ let end = length === void 0 ? reader.len : reader.pos + length;
36620
+ const message = createBaseSandboxWaitUntilReadyResponse();
36621
+ while (reader.pos < end) {
36622
+ const tag = reader.uint32();
36623
+ switch (tag >>> 3) {
36624
+ case 1: {
36625
+ if (tag !== 9) {
36626
+ break;
36627
+ }
36628
+ message.readyAt = reader.double();
36629
+ continue;
36630
+ }
36631
+ }
36632
+ if ((tag & 7) === 4 || tag === 0) {
36633
+ break;
36634
+ }
36635
+ reader.skip(tag & 7);
36636
+ }
36637
+ return message;
36638
+ },
36639
+ fromJSON(object) {
36640
+ return { readyAt: isSet4(object.readyAt) ? globalThis.Number(object.readyAt) : 0 };
36641
+ },
36642
+ toJSON(message) {
36643
+ const obj = {};
36644
+ if (message.readyAt !== 0) {
36645
+ obj.readyAt = message.readyAt;
36646
+ }
36647
+ return obj;
36648
+ },
36649
+ create(base) {
36650
+ return SandboxWaitUntilReadyResponse.fromPartial(base ?? {});
36651
+ },
36652
+ fromPartial(object) {
36653
+ const message = createBaseSandboxWaitUntilReadyResponse();
36654
+ message.readyAt = object.readyAt ?? 0;
36655
+ return message;
36656
+ }
36657
+ };
35052
36658
  function createBaseSchedule() {
35053
36659
  return { cron: void 0, period: void 0 };
35054
36660
  }
@@ -37800,6 +39406,125 @@ var TaskGetCommandRouterAccessResponse = {
37800
39406
  return message;
37801
39407
  }
37802
39408
  };
39409
+ function createBaseTaskGetInfoRequest() {
39410
+ return { taskId: "" };
39411
+ }
39412
+ var TaskGetInfoRequest = {
39413
+ encode(message, writer = new BinaryWriter()) {
39414
+ if (message.taskId !== "") {
39415
+ writer.uint32(10).string(message.taskId);
39416
+ }
39417
+ return writer;
39418
+ },
39419
+ decode(input, length) {
39420
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
39421
+ let end = length === void 0 ? reader.len : reader.pos + length;
39422
+ const message = createBaseTaskGetInfoRequest();
39423
+ while (reader.pos < end) {
39424
+ const tag = reader.uint32();
39425
+ switch (tag >>> 3) {
39426
+ case 1: {
39427
+ if (tag !== 10) {
39428
+ break;
39429
+ }
39430
+ message.taskId = reader.string();
39431
+ continue;
39432
+ }
39433
+ }
39434
+ if ((tag & 7) === 4 || tag === 0) {
39435
+ break;
39436
+ }
39437
+ reader.skip(tag & 7);
39438
+ }
39439
+ return message;
39440
+ },
39441
+ fromJSON(object) {
39442
+ return { taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "" };
39443
+ },
39444
+ toJSON(message) {
39445
+ const obj = {};
39446
+ if (message.taskId !== "") {
39447
+ obj.taskId = message.taskId;
39448
+ }
39449
+ return obj;
39450
+ },
39451
+ create(base) {
39452
+ return TaskGetInfoRequest.fromPartial(base ?? {});
39453
+ },
39454
+ fromPartial(object) {
39455
+ const message = createBaseTaskGetInfoRequest();
39456
+ message.taskId = object.taskId ?? "";
39457
+ return message;
39458
+ }
39459
+ };
39460
+ function createBaseTaskGetInfoResponse() {
39461
+ return { appId: "", info: void 0 };
39462
+ }
39463
+ var TaskGetInfoResponse = {
39464
+ encode(message, writer = new BinaryWriter()) {
39465
+ if (message.appId !== "") {
39466
+ writer.uint32(10).string(message.appId);
39467
+ }
39468
+ if (message.info !== void 0) {
39469
+ TaskInfo.encode(message.info, writer.uint32(18).fork()).join();
39470
+ }
39471
+ return writer;
39472
+ },
39473
+ decode(input, length) {
39474
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
39475
+ let end = length === void 0 ? reader.len : reader.pos + length;
39476
+ const message = createBaseTaskGetInfoResponse();
39477
+ while (reader.pos < end) {
39478
+ const tag = reader.uint32();
39479
+ switch (tag >>> 3) {
39480
+ case 1: {
39481
+ if (tag !== 10) {
39482
+ break;
39483
+ }
39484
+ message.appId = reader.string();
39485
+ continue;
39486
+ }
39487
+ case 2: {
39488
+ if (tag !== 18) {
39489
+ break;
39490
+ }
39491
+ message.info = TaskInfo.decode(reader, reader.uint32());
39492
+ continue;
39493
+ }
39494
+ }
39495
+ if ((tag & 7) === 4 || tag === 0) {
39496
+ break;
39497
+ }
39498
+ reader.skip(tag & 7);
39499
+ }
39500
+ return message;
39501
+ },
39502
+ fromJSON(object) {
39503
+ return {
39504
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
39505
+ info: isSet4(object.info) ? TaskInfo.fromJSON(object.info) : void 0
39506
+ };
39507
+ },
39508
+ toJSON(message) {
39509
+ const obj = {};
39510
+ if (message.appId !== "") {
39511
+ obj.appId = message.appId;
39512
+ }
39513
+ if (message.info !== void 0) {
39514
+ obj.info = TaskInfo.toJSON(message.info);
39515
+ }
39516
+ return obj;
39517
+ },
39518
+ create(base) {
39519
+ return TaskGetInfoResponse.fromPartial(base ?? {});
39520
+ },
39521
+ fromPartial(object) {
39522
+ const message = createBaseTaskGetInfoResponse();
39523
+ message.appId = object.appId ?? "";
39524
+ message.info = object.info !== void 0 && object.info !== null ? TaskInfo.fromPartial(object.info) : void 0;
39525
+ return message;
39526
+ }
39527
+ };
37803
39528
  function createBaseTaskInfo() {
37804
39529
  return {
37805
39530
  id: "",
@@ -37984,13 +39709,16 @@ var TaskInfo = {
37984
39709
  }
37985
39710
  };
37986
39711
  function createBaseTaskListRequest() {
37987
- return { environmentName: "" };
39712
+ return { environmentName: "", appId: "" };
37988
39713
  }
37989
39714
  var TaskListRequest = {
37990
39715
  encode(message, writer = new BinaryWriter()) {
37991
39716
  if (message.environmentName !== "") {
37992
39717
  writer.uint32(10).string(message.environmentName);
37993
39718
  }
39719
+ if (message.appId !== "") {
39720
+ writer.uint32(18).string(message.appId);
39721
+ }
37994
39722
  return writer;
37995
39723
  },
37996
39724
  decode(input, length) {
@@ -38007,6 +39735,13 @@ var TaskListRequest = {
38007
39735
  message.environmentName = reader.string();
38008
39736
  continue;
38009
39737
  }
39738
+ case 2: {
39739
+ if (tag !== 18) {
39740
+ break;
39741
+ }
39742
+ message.appId = reader.string();
39743
+ continue;
39744
+ }
38010
39745
  }
38011
39746
  if ((tag & 7) === 4 || tag === 0) {
38012
39747
  break;
@@ -38016,13 +39751,19 @@ var TaskListRequest = {
38016
39751
  return message;
38017
39752
  },
38018
39753
  fromJSON(object) {
38019
- return { environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "" };
39754
+ return {
39755
+ environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
39756
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : ""
39757
+ };
38020
39758
  },
38021
39759
  toJSON(message) {
38022
39760
  const obj = {};
38023
39761
  if (message.environmentName !== "") {
38024
39762
  obj.environmentName = message.environmentName;
38025
39763
  }
39764
+ if (message.appId !== "") {
39765
+ obj.appId = message.appId;
39766
+ }
38026
39767
  return obj;
38027
39768
  },
38028
39769
  create(base) {
@@ -38031,6 +39772,7 @@ var TaskListRequest = {
38031
39772
  fromPartial(object) {
38032
39773
  const message = createBaseTaskListRequest();
38033
39774
  message.environmentName = object.environmentName ?? "";
39775
+ message.appId = object.appId ?? "";
38034
39776
  return message;
38035
39777
  }
38036
39778
  };
@@ -38096,7 +39838,9 @@ function createBaseTaskLogs() {
38096
39838
  taskProgress: void 0,
38097
39839
  functionCallId: "",
38098
39840
  inputId: "",
38099
- timestampNs: 0
39841
+ timestampNs: 0,
39842
+ containerId: "",
39843
+ containerName: ""
38100
39844
  };
38101
39845
  }
38102
39846
  var TaskLogs = {
@@ -38125,6 +39869,12 @@ var TaskLogs = {
38125
39869
  if (message.timestampNs !== 0) {
38126
39870
  writer.uint32(96).uint64(message.timestampNs);
38127
39871
  }
39872
+ if (message.containerId !== "") {
39873
+ writer.uint32(106).string(message.containerId);
39874
+ }
39875
+ if (message.containerName !== "") {
39876
+ writer.uint32(114).string(message.containerName);
39877
+ }
38128
39878
  return writer;
38129
39879
  },
38130
39880
  decode(input, length) {
@@ -38190,6 +39940,20 @@ var TaskLogs = {
38190
39940
  message.timestampNs = longToNumber2(reader.uint64());
38191
39941
  continue;
38192
39942
  }
39943
+ case 13: {
39944
+ if (tag !== 106) {
39945
+ break;
39946
+ }
39947
+ message.containerId = reader.string();
39948
+ continue;
39949
+ }
39950
+ case 14: {
39951
+ if (tag !== 114) {
39952
+ break;
39953
+ }
39954
+ message.containerName = reader.string();
39955
+ continue;
39956
+ }
38193
39957
  }
38194
39958
  if ((tag & 7) === 4 || tag === 0) {
38195
39959
  break;
@@ -38207,7 +39971,9 @@ var TaskLogs = {
38207
39971
  taskProgress: isSet4(object.taskProgress) ? TaskProgress.fromJSON(object.taskProgress) : void 0,
38208
39972
  functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
38209
39973
  inputId: isSet4(object.inputId) ? globalThis.String(object.inputId) : "",
38210
- timestampNs: isSet4(object.timestampNs) ? globalThis.Number(object.timestampNs) : 0
39974
+ timestampNs: isSet4(object.timestampNs) ? globalThis.Number(object.timestampNs) : 0,
39975
+ containerId: isSet4(object.containerId) ? globalThis.String(object.containerId) : "",
39976
+ containerName: isSet4(object.containerName) ? globalThis.String(object.containerName) : ""
38211
39977
  };
38212
39978
  },
38213
39979
  toJSON(message) {
@@ -38236,6 +40002,12 @@ var TaskLogs = {
38236
40002
  if (message.timestampNs !== 0) {
38237
40003
  obj.timestampNs = Math.round(message.timestampNs);
38238
40004
  }
40005
+ if (message.containerId !== "") {
40006
+ obj.containerId = message.containerId;
40007
+ }
40008
+ if (message.containerName !== "") {
40009
+ obj.containerName = message.containerName;
40010
+ }
38239
40011
  return obj;
38240
40012
  },
38241
40013
  create(base) {
@@ -38251,6 +40023,8 @@ var TaskLogs = {
38251
40023
  message.functionCallId = object.functionCallId ?? "";
38252
40024
  message.inputId = object.inputId ?? "";
38253
40025
  message.timestampNs = object.timestampNs ?? 0;
40026
+ message.containerId = object.containerId ?? "";
40027
+ message.containerName = object.containerName ?? "";
38254
40028
  return message;
38255
40029
  }
38256
40030
  };
@@ -38619,7 +40393,7 @@ var TaskResultRequest = {
38619
40393
  }
38620
40394
  };
38621
40395
  function createBaseTaskStats() {
38622
- return { taskId: "", appId: "", appDescription: "", startedAt: 0 };
40396
+ return { taskId: "", appId: "", appDescription: "", startedAt: 0, enqueuedAt: 0 };
38623
40397
  }
38624
40398
  var TaskStats = {
38625
40399
  encode(message, writer = new BinaryWriter()) {
@@ -38635,6 +40409,9 @@ var TaskStats = {
38635
40409
  if (message.startedAt !== 0) {
38636
40410
  writer.uint32(33).double(message.startedAt);
38637
40411
  }
40412
+ if (message.enqueuedAt !== 0) {
40413
+ writer.uint32(41).double(message.enqueuedAt);
40414
+ }
38638
40415
  return writer;
38639
40416
  },
38640
40417
  decode(input, length) {
@@ -38672,6 +40449,13 @@ var TaskStats = {
38672
40449
  message.startedAt = reader.double();
38673
40450
  continue;
38674
40451
  }
40452
+ case 5: {
40453
+ if (tag !== 41) {
40454
+ break;
40455
+ }
40456
+ message.enqueuedAt = reader.double();
40457
+ continue;
40458
+ }
38675
40459
  }
38676
40460
  if ((tag & 7) === 4 || tag === 0) {
38677
40461
  break;
@@ -38685,7 +40469,8 @@ var TaskStats = {
38685
40469
  taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
38686
40470
  appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
38687
40471
  appDescription: isSet4(object.appDescription) ? globalThis.String(object.appDescription) : "",
38688
- startedAt: isSet4(object.startedAt) ? globalThis.Number(object.startedAt) : 0
40472
+ startedAt: isSet4(object.startedAt) ? globalThis.Number(object.startedAt) : 0,
40473
+ enqueuedAt: isSet4(object.enqueuedAt) ? globalThis.Number(object.enqueuedAt) : 0
38689
40474
  };
38690
40475
  },
38691
40476
  toJSON(message) {
@@ -38702,6 +40487,9 @@ var TaskStats = {
38702
40487
  if (message.startedAt !== 0) {
38703
40488
  obj.startedAt = message.startedAt;
38704
40489
  }
40490
+ if (message.enqueuedAt !== 0) {
40491
+ obj.enqueuedAt = message.enqueuedAt;
40492
+ }
38705
40493
  return obj;
38706
40494
  },
38707
40495
  create(base) {
@@ -38713,6 +40501,7 @@ var TaskStats = {
38713
40501
  message.appId = object.appId ?? "";
38714
40502
  message.appDescription = object.appDescription ?? "";
38715
40503
  message.startedAt = object.startedAt ?? 0;
40504
+ message.enqueuedAt = object.enqueuedAt ?? 0;
38716
40505
  return message;
38717
40506
  }
38718
40507
  };
@@ -38829,6 +40618,179 @@ var TaskTemplate = {
38829
40618
  return message;
38830
40619
  }
38831
40620
  };
40621
+ function createBaseTemplateListRequest() {
40622
+ return {};
40623
+ }
40624
+ var TemplateListRequest = {
40625
+ encode(_, writer = new BinaryWriter()) {
40626
+ return writer;
40627
+ },
40628
+ decode(input, length) {
40629
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
40630
+ let end = length === void 0 ? reader.len : reader.pos + length;
40631
+ const message = createBaseTemplateListRequest();
40632
+ while (reader.pos < end) {
40633
+ const tag = reader.uint32();
40634
+ switch (tag >>> 3) {
40635
+ }
40636
+ if ((tag & 7) === 4 || tag === 0) {
40637
+ break;
40638
+ }
40639
+ reader.skip(tag & 7);
40640
+ }
40641
+ return message;
40642
+ },
40643
+ fromJSON(_) {
40644
+ return {};
40645
+ },
40646
+ toJSON(_) {
40647
+ const obj = {};
40648
+ return obj;
40649
+ },
40650
+ create(base) {
40651
+ return TemplateListRequest.fromPartial(base ?? {});
40652
+ },
40653
+ fromPartial(_) {
40654
+ const message = createBaseTemplateListRequest();
40655
+ return message;
40656
+ }
40657
+ };
40658
+ function createBaseTemplateListResponse() {
40659
+ return { items: [] };
40660
+ }
40661
+ var TemplateListResponse = {
40662
+ encode(message, writer = new BinaryWriter()) {
40663
+ for (const v of message.items) {
40664
+ TemplateListResponse_TemplateListItem.encode(v, writer.uint32(10).fork()).join();
40665
+ }
40666
+ return writer;
40667
+ },
40668
+ decode(input, length) {
40669
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
40670
+ let end = length === void 0 ? reader.len : reader.pos + length;
40671
+ const message = createBaseTemplateListResponse();
40672
+ while (reader.pos < end) {
40673
+ const tag = reader.uint32();
40674
+ switch (tag >>> 3) {
40675
+ case 1: {
40676
+ if (tag !== 10) {
40677
+ break;
40678
+ }
40679
+ message.items.push(TemplateListResponse_TemplateListItem.decode(reader, reader.uint32()));
40680
+ continue;
40681
+ }
40682
+ }
40683
+ if ((tag & 7) === 4 || tag === 0) {
40684
+ break;
40685
+ }
40686
+ reader.skip(tag & 7);
40687
+ }
40688
+ return message;
40689
+ },
40690
+ fromJSON(object) {
40691
+ return {
40692
+ items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => TemplateListResponse_TemplateListItem.fromJSON(e)) : []
40693
+ };
40694
+ },
40695
+ toJSON(message) {
40696
+ const obj = {};
40697
+ if (message.items?.length) {
40698
+ obj.items = message.items.map((e) => TemplateListResponse_TemplateListItem.toJSON(e));
40699
+ }
40700
+ return obj;
40701
+ },
40702
+ create(base) {
40703
+ return TemplateListResponse.fromPartial(base ?? {});
40704
+ },
40705
+ fromPartial(object) {
40706
+ const message = createBaseTemplateListResponse();
40707
+ message.items = object.items?.map((e) => TemplateListResponse_TemplateListItem.fromPartial(e)) || [];
40708
+ return message;
40709
+ }
40710
+ };
40711
+ function createBaseTemplateListResponse_TemplateListItem() {
40712
+ return { name: "", repo: "", ref: "" };
40713
+ }
40714
+ var TemplateListResponse_TemplateListItem = {
40715
+ encode(message, writer = new BinaryWriter()) {
40716
+ if (message.name !== "") {
40717
+ writer.uint32(10).string(message.name);
40718
+ }
40719
+ if (message.repo !== "") {
40720
+ writer.uint32(18).string(message.repo);
40721
+ }
40722
+ if (message.ref !== "") {
40723
+ writer.uint32(26).string(message.ref);
40724
+ }
40725
+ return writer;
40726
+ },
40727
+ decode(input, length) {
40728
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
40729
+ let end = length === void 0 ? reader.len : reader.pos + length;
40730
+ const message = createBaseTemplateListResponse_TemplateListItem();
40731
+ while (reader.pos < end) {
40732
+ const tag = reader.uint32();
40733
+ switch (tag >>> 3) {
40734
+ case 1: {
40735
+ if (tag !== 10) {
40736
+ break;
40737
+ }
40738
+ message.name = reader.string();
40739
+ continue;
40740
+ }
40741
+ case 2: {
40742
+ if (tag !== 18) {
40743
+ break;
40744
+ }
40745
+ message.repo = reader.string();
40746
+ continue;
40747
+ }
40748
+ case 3: {
40749
+ if (tag !== 26) {
40750
+ break;
40751
+ }
40752
+ message.ref = reader.string();
40753
+ continue;
40754
+ }
40755
+ }
40756
+ if ((tag & 7) === 4 || tag === 0) {
40757
+ break;
40758
+ }
40759
+ reader.skip(tag & 7);
40760
+ }
40761
+ return message;
40762
+ },
40763
+ fromJSON(object) {
40764
+ return {
40765
+ name: isSet4(object.name) ? globalThis.String(object.name) : "",
40766
+ repo: isSet4(object.repo) ? globalThis.String(object.repo) : "",
40767
+ ref: isSet4(object.ref) ? globalThis.String(object.ref) : ""
40768
+ };
40769
+ },
40770
+ toJSON(message) {
40771
+ const obj = {};
40772
+ if (message.name !== "") {
40773
+ obj.name = message.name;
40774
+ }
40775
+ if (message.repo !== "") {
40776
+ obj.repo = message.repo;
40777
+ }
40778
+ if (message.ref !== "") {
40779
+ obj.ref = message.ref;
40780
+ }
40781
+ return obj;
40782
+ },
40783
+ create(base) {
40784
+ return TemplateListResponse_TemplateListItem.fromPartial(base ?? {});
40785
+ },
40786
+ fromPartial(object) {
40787
+ const message = createBaseTemplateListResponse_TemplateListItem();
40788
+ message.name = object.name ?? "";
40789
+ message.repo = object.repo ?? "";
40790
+ message.ref = object.ref ?? "";
40791
+ return message;
40792
+ }
40793
+ };
38832
40794
  function createBaseTokenFlowCreateRequest() {
38833
40795
  return { utmSource: "", localhostPort: 0, nextUrl: "" };
38834
40796
  }
@@ -43363,6 +45325,14 @@ var ModalClientDefinition = {
43363
45325
  responseStream: false,
43364
45326
  options: {}
43365
45327
  },
45328
+ appCountLogs: {
45329
+ name: "AppCountLogs",
45330
+ requestType: AppCountLogsRequest,
45331
+ requestStream: false,
45332
+ responseType: AppCountLogsResponse,
45333
+ responseStream: false,
45334
+ options: {}
45335
+ },
43366
45336
  appCreate: {
43367
45337
  name: "AppCreate",
43368
45338
  requestType: AppCreateRequest,
@@ -43387,6 +45357,14 @@ var ModalClientDefinition = {
43387
45357
  responseStream: false,
43388
45358
  options: {}
43389
45359
  },
45360
+ appFetchLogs: {
45361
+ name: "AppFetchLogs",
45362
+ requestType: AppFetchLogsRequest,
45363
+ requestStream: false,
45364
+ responseType: AppFetchLogsResponse,
45365
+ responseStream: false,
45366
+ options: {}
45367
+ },
43390
45368
  appGetByDeploymentName: {
43391
45369
  name: "AppGetByDeploymentName",
43392
45370
  requestType: AppGetByDeploymentNameRequest,
@@ -43403,6 +45381,14 @@ var ModalClientDefinition = {
43403
45381
  responseStream: false,
43404
45382
  options: {}
43405
45383
  },
45384
+ appGetLifecycle: {
45385
+ name: "AppGetLifecycle",
45386
+ requestType: AppGetLifecycleRequest,
45387
+ requestStream: false,
45388
+ responseType: AppGetLifecycleResponse,
45389
+ responseStream: false,
45390
+ options: {}
45391
+ },
43406
45392
  appGetLogs: {
43407
45393
  name: "AppGetLogs",
43408
45394
  requestType: AppGetLogsRequest,
@@ -43475,6 +45461,14 @@ var ModalClientDefinition = {
43475
45461
  responseStream: false,
43476
45462
  options: {}
43477
45463
  },
45464
+ appRollover: {
45465
+ name: "AppRollover",
45466
+ requestType: AppRolloverRequest,
45467
+ requestStream: false,
45468
+ responseType: AppRolloverResponse,
45469
+ responseStream: false,
45470
+ options: {}
45471
+ },
43478
45472
  appSetObjects: {
43479
45473
  name: "AppSetObjects",
43480
45474
  requestType: AppSetObjectsRequest,
@@ -44322,6 +46316,22 @@ var ModalClientDefinition = {
44322
46316
  responseStream: false,
44323
46317
  options: {}
44324
46318
  },
46319
+ sandboxCreateV2: {
46320
+ name: "SandboxCreateV2",
46321
+ requestType: SandboxCreateV2Request,
46322
+ requestStream: false,
46323
+ responseType: SandboxCreateV2Response,
46324
+ responseStream: false,
46325
+ options: {}
46326
+ },
46327
+ sandboxGetCommandRouterAccess: {
46328
+ name: "SandboxGetCommandRouterAccess",
46329
+ requestType: SandboxGetCommandRouterAccessRequest,
46330
+ requestStream: false,
46331
+ responseType: SandboxGetCommandRouterAccessResponse,
46332
+ responseStream: false,
46333
+ options: {}
46334
+ },
44325
46335
  sandboxGetFromName: {
44326
46336
  name: "SandboxGetFromName",
44327
46337
  requestType: SandboxGetFromNameRequest,
@@ -44355,6 +46365,14 @@ var ModalClientDefinition = {
44355
46365
  responseStream: false,
44356
46366
  options: {}
44357
46367
  },
46368
+ sandboxGetTaskIdV2: {
46369
+ name: "SandboxGetTaskIdV2",
46370
+ requestType: SandboxGetTaskIdRequest,
46371
+ requestStream: false,
46372
+ responseType: SandboxGetTaskIdResponse,
46373
+ responseStream: false,
46374
+ options: {}
46375
+ },
44358
46376
  sandboxGetTunnels: {
44359
46377
  name: "SandboxGetTunnels",
44360
46378
  requestType: SandboxGetTunnelsRequest,
@@ -44363,6 +46381,14 @@ var ModalClientDefinition = {
44363
46381
  responseStream: false,
44364
46382
  options: {}
44365
46383
  },
46384
+ sandboxGetTunnelsV2: {
46385
+ name: "SandboxGetTunnelsV2",
46386
+ requestType: SandboxGetTunnelsRequest,
46387
+ requestStream: false,
46388
+ responseType: SandboxGetTunnelsResponse,
46389
+ responseStream: false,
46390
+ options: {}
46391
+ },
44366
46392
  sandboxList: {
44367
46393
  name: "SandboxList",
44368
46394
  requestType: SandboxListRequest,
@@ -44459,6 +46485,14 @@ var ModalClientDefinition = {
44459
46485
  responseStream: false,
44460
46486
  options: {}
44461
46487
  },
46488
+ sandboxTerminateV2: {
46489
+ name: "SandboxTerminateV2",
46490
+ requestType: SandboxTerminateRequest,
46491
+ requestStream: false,
46492
+ responseType: SandboxTerminateResponse,
46493
+ responseStream: false,
46494
+ options: {}
46495
+ },
44462
46496
  sandboxWait: {
44463
46497
  name: "SandboxWait",
44464
46498
  requestType: SandboxWaitRequest,
@@ -44467,6 +46501,22 @@ var ModalClientDefinition = {
44467
46501
  responseStream: false,
44468
46502
  options: {}
44469
46503
  },
46504
+ sandboxWaitUntilReady: {
46505
+ name: "SandboxWaitUntilReady",
46506
+ requestType: SandboxWaitUntilReadyRequest,
46507
+ requestStream: false,
46508
+ responseType: SandboxWaitUntilReadyResponse,
46509
+ responseStream: false,
46510
+ options: {}
46511
+ },
46512
+ sandboxWaitV2: {
46513
+ name: "SandboxWaitV2",
46514
+ requestType: SandboxWaitRequest,
46515
+ requestStream: false,
46516
+ responseType: SandboxWaitResponse,
46517
+ responseStream: false,
46518
+ options: {}
46519
+ },
44470
46520
  /** Secrets */
44471
46521
  secretDelete: {
44472
46522
  name: "SecretDelete",
@@ -44598,6 +46648,14 @@ var ModalClientDefinition = {
44598
46648
  responseStream: false,
44599
46649
  options: {}
44600
46650
  },
46651
+ taskGetInfo: {
46652
+ name: "TaskGetInfo",
46653
+ requestType: TaskGetInfoRequest,
46654
+ requestStream: false,
46655
+ responseType: TaskGetInfoResponse,
46656
+ responseStream: false,
46657
+ options: {}
46658
+ },
44601
46659
  taskList: {
44602
46660
  name: "TaskList",
44603
46661
  requestType: TaskListRequest,
@@ -44614,6 +46672,15 @@ var ModalClientDefinition = {
44614
46672
  responseStream: false,
44615
46673
  options: {}
44616
46674
  },
46675
+ /** Templates */
46676
+ templateList: {
46677
+ name: "TemplateList",
46678
+ requestType: TemplateListRequest,
46679
+ requestStream: false,
46680
+ responseType: TemplateListResponse,
46681
+ responseStream: false,
46682
+ options: {}
46683
+ },
44617
46684
  /** Tokens (web auth flow) */
44618
46685
  tokenFlowCreate: {
44619
46686
  name: "TokenFlowCreate",
@@ -44984,6 +47051,12 @@ var CloudBucketMount2 = class {
44984
47051
  import { ClientError as ClientError3, Status as Status3 } from "nice-grpc";
44985
47052
 
44986
47053
  // src/errors.ts
47054
+ var TimeoutError = class extends Error {
47055
+ constructor(message = "Operation timed out") {
47056
+ super(message);
47057
+ this.name = "TimeoutError";
47058
+ }
47059
+ };
44987
47060
  var FunctionTimeoutError = class extends Error {
44988
47061
  constructor(message) {
44989
47062
  super(message);
@@ -47189,23 +49262,38 @@ function taskExecStdoutConfigToJSON(object) {
47189
49262
  return "UNRECOGNIZED";
47190
49263
  }
47191
49264
  }
47192
- function createBaseTaskExecPollRequest() {
47193
- return { taskId: "", execId: "" };
49265
+ function createBaseTaskContainerCreateRequest() {
49266
+ return { taskId: "", containerName: "", imageId: "", args: [], env: {}, workdir: "", secretIds: [] };
47194
49267
  }
47195
- var TaskExecPollRequest = {
49268
+ var TaskContainerCreateRequest = {
47196
49269
  encode(message, writer = new BinaryWriter()) {
47197
49270
  if (message.taskId !== "") {
47198
49271
  writer.uint32(10).string(message.taskId);
47199
49272
  }
47200
- if (message.execId !== "") {
47201
- writer.uint32(18).string(message.execId);
49273
+ if (message.containerName !== "") {
49274
+ writer.uint32(18).string(message.containerName);
49275
+ }
49276
+ if (message.imageId !== "") {
49277
+ writer.uint32(26).string(message.imageId);
49278
+ }
49279
+ for (const v of message.args) {
49280
+ writer.uint32(42).string(v);
49281
+ }
49282
+ Object.entries(message.env).forEach(([key, value]) => {
49283
+ TaskContainerCreateRequest_EnvEntry.encode({ key, value }, writer.uint32(50).fork()).join();
49284
+ });
49285
+ if (message.workdir !== "") {
49286
+ writer.uint32(58).string(message.workdir);
49287
+ }
49288
+ for (const v of message.secretIds) {
49289
+ writer.uint32(66).string(v);
47202
49290
  }
47203
49291
  return writer;
47204
49292
  },
47205
49293
  decode(input, length) {
47206
49294
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
47207
49295
  let end = length === void 0 ? reader.len : reader.pos + length;
47208
- const message = createBaseTaskExecPollRequest();
49296
+ const message = createBaseTaskContainerCreateRequest();
47209
49297
  while (reader.pos < end) {
47210
49298
  const tag = reader.uint32();
47211
49299
  switch (tag >>> 3) {
@@ -47220,7 +49308,45 @@ var TaskExecPollRequest = {
47220
49308
  if (tag !== 18) {
47221
49309
  break;
47222
49310
  }
47223
- message.execId = reader.string();
49311
+ message.containerName = reader.string();
49312
+ continue;
49313
+ }
49314
+ case 3: {
49315
+ if (tag !== 26) {
49316
+ break;
49317
+ }
49318
+ message.imageId = reader.string();
49319
+ continue;
49320
+ }
49321
+ case 5: {
49322
+ if (tag !== 42) {
49323
+ break;
49324
+ }
49325
+ message.args.push(reader.string());
49326
+ continue;
49327
+ }
49328
+ case 6: {
49329
+ if (tag !== 50) {
49330
+ break;
49331
+ }
49332
+ const entry6 = TaskContainerCreateRequest_EnvEntry.decode(reader, reader.uint32());
49333
+ if (entry6.value !== void 0) {
49334
+ message.env[entry6.key] = entry6.value;
49335
+ }
49336
+ continue;
49337
+ }
49338
+ case 7: {
49339
+ if (tag !== 58) {
49340
+ break;
49341
+ }
49342
+ message.workdir = reader.string();
49343
+ continue;
49344
+ }
49345
+ case 8: {
49346
+ if (tag !== 66) {
49347
+ break;
49348
+ }
49349
+ message.secretIds.push(reader.string());
47224
49350
  continue;
47225
49351
  }
47226
49352
  }
@@ -47234,7 +49360,15 @@ var TaskExecPollRequest = {
47234
49360
  fromJSON(object) {
47235
49361
  return {
47236
49362
  taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
47237
- execId: isSet5(object.execId) ? globalThis.String(object.execId) : ""
49363
+ containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
49364
+ imageId: isSet5(object.imageId) ? globalThis.String(object.imageId) : "",
49365
+ args: globalThis.Array.isArray(object?.args) ? object.args.map((e) => globalThis.String(e)) : [],
49366
+ env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
49367
+ acc[key] = String(value);
49368
+ return acc;
49369
+ }, {}) : {},
49370
+ workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : "",
49371
+ secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : []
47238
49372
  };
47239
49373
  },
47240
49374
  toJSON(message) {
@@ -47242,53 +49376,84 @@ var TaskExecPollRequest = {
47242
49376
  if (message.taskId !== "") {
47243
49377
  obj.taskId = message.taskId;
47244
49378
  }
47245
- if (message.execId !== "") {
47246
- obj.execId = message.execId;
49379
+ if (message.containerName !== "") {
49380
+ obj.containerName = message.containerName;
49381
+ }
49382
+ if (message.imageId !== "") {
49383
+ obj.imageId = message.imageId;
49384
+ }
49385
+ if (message.args?.length) {
49386
+ obj.args = message.args;
49387
+ }
49388
+ if (message.env) {
49389
+ const entries = Object.entries(message.env);
49390
+ if (entries.length > 0) {
49391
+ obj.env = {};
49392
+ entries.forEach(([k, v]) => {
49393
+ obj.env[k] = v;
49394
+ });
49395
+ }
49396
+ }
49397
+ if (message.workdir !== "") {
49398
+ obj.workdir = message.workdir;
49399
+ }
49400
+ if (message.secretIds?.length) {
49401
+ obj.secretIds = message.secretIds;
47247
49402
  }
47248
49403
  return obj;
47249
49404
  },
47250
49405
  create(base) {
47251
- return TaskExecPollRequest.fromPartial(base ?? {});
49406
+ return TaskContainerCreateRequest.fromPartial(base ?? {});
47252
49407
  },
47253
49408
  fromPartial(object) {
47254
- const message = createBaseTaskExecPollRequest();
49409
+ const message = createBaseTaskContainerCreateRequest();
47255
49410
  message.taskId = object.taskId ?? "";
47256
- message.execId = object.execId ?? "";
49411
+ message.containerName = object.containerName ?? "";
49412
+ message.imageId = object.imageId ?? "";
49413
+ message.args = object.args?.map((e) => e) || [];
49414
+ message.env = Object.entries(object.env ?? {}).reduce((acc, [key, value]) => {
49415
+ if (value !== void 0) {
49416
+ acc[key] = globalThis.String(value);
49417
+ }
49418
+ return acc;
49419
+ }, {});
49420
+ message.workdir = object.workdir ?? "";
49421
+ message.secretIds = object.secretIds?.map((e) => e) || [];
47257
49422
  return message;
47258
49423
  }
47259
49424
  };
47260
- function createBaseTaskExecPollResponse() {
47261
- return { code: void 0, signal: void 0 };
49425
+ function createBaseTaskContainerCreateRequest_EnvEntry() {
49426
+ return { key: "", value: "" };
47262
49427
  }
47263
- var TaskExecPollResponse = {
49428
+ var TaskContainerCreateRequest_EnvEntry = {
47264
49429
  encode(message, writer = new BinaryWriter()) {
47265
- if (message.code !== void 0) {
47266
- writer.uint32(8).int32(message.code);
49430
+ if (message.key !== "") {
49431
+ writer.uint32(10).string(message.key);
47267
49432
  }
47268
- if (message.signal !== void 0) {
47269
- writer.uint32(16).int32(message.signal);
49433
+ if (message.value !== "") {
49434
+ writer.uint32(18).string(message.value);
47270
49435
  }
47271
49436
  return writer;
47272
49437
  },
47273
49438
  decode(input, length) {
47274
49439
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
47275
49440
  let end = length === void 0 ? reader.len : reader.pos + length;
47276
- const message = createBaseTaskExecPollResponse();
49441
+ const message = createBaseTaskContainerCreateRequest_EnvEntry();
47277
49442
  while (reader.pos < end) {
47278
49443
  const tag = reader.uint32();
47279
49444
  switch (tag >>> 3) {
47280
49445
  case 1: {
47281
- if (tag !== 8) {
49446
+ if (tag !== 10) {
47282
49447
  break;
47283
49448
  }
47284
- message.code = reader.int32();
49449
+ message.key = reader.string();
47285
49450
  continue;
47286
49451
  }
47287
49452
  case 2: {
47288
- if (tag !== 16) {
49453
+ if (tag !== 18) {
47289
49454
  break;
47290
49455
  }
47291
- message.signal = reader.int32();
49456
+ message.value = reader.string();
47292
49457
  continue;
47293
49458
  }
47294
49459
  }
@@ -47301,82 +49466,47 @@ var TaskExecPollResponse = {
47301
49466
  },
47302
49467
  fromJSON(object) {
47303
49468
  return {
47304
- code: isSet5(object.code) ? globalThis.Number(object.code) : void 0,
47305
- signal: isSet5(object.signal) ? globalThis.Number(object.signal) : void 0
49469
+ key: isSet5(object.key) ? globalThis.String(object.key) : "",
49470
+ value: isSet5(object.value) ? globalThis.String(object.value) : ""
47306
49471
  };
47307
49472
  },
47308
49473
  toJSON(message) {
47309
49474
  const obj = {};
47310
- if (message.code !== void 0) {
47311
- obj.code = Math.round(message.code);
49475
+ if (message.key !== "") {
49476
+ obj.key = message.key;
47312
49477
  }
47313
- if (message.signal !== void 0) {
47314
- obj.signal = Math.round(message.signal);
49478
+ if (message.value !== "") {
49479
+ obj.value = message.value;
47315
49480
  }
47316
49481
  return obj;
47317
49482
  },
47318
49483
  create(base) {
47319
- return TaskExecPollResponse.fromPartial(base ?? {});
49484
+ return TaskContainerCreateRequest_EnvEntry.fromPartial(base ?? {});
47320
49485
  },
47321
49486
  fromPartial(object) {
47322
- const message = createBaseTaskExecPollResponse();
47323
- message.code = object.code ?? void 0;
47324
- message.signal = object.signal ?? void 0;
49487
+ const message = createBaseTaskContainerCreateRequest_EnvEntry();
49488
+ message.key = object.key ?? "";
49489
+ message.value = object.value ?? "";
47325
49490
  return message;
47326
49491
  }
47327
49492
  };
47328
- function createBaseTaskExecStartRequest() {
47329
- return {
47330
- taskId: "",
47331
- execId: "",
47332
- commandArgs: [],
47333
- stdoutConfig: 0,
47334
- stderrConfig: 0,
47335
- timeoutSecs: void 0,
47336
- workdir: void 0,
47337
- secretIds: [],
47338
- ptyInfo: void 0,
47339
- runtimeDebug: false
47340
- };
49493
+ function createBaseTaskContainerCreateResponse() {
49494
+ return { containerId: "", containerName: "" };
47341
49495
  }
47342
- var TaskExecStartRequest = {
49496
+ var TaskContainerCreateResponse = {
47343
49497
  encode(message, writer = new BinaryWriter()) {
47344
- if (message.taskId !== "") {
47345
- writer.uint32(10).string(message.taskId);
47346
- }
47347
- if (message.execId !== "") {
47348
- writer.uint32(18).string(message.execId);
47349
- }
47350
- for (const v of message.commandArgs) {
47351
- writer.uint32(26).string(v);
47352
- }
47353
- if (message.stdoutConfig !== 0) {
47354
- writer.uint32(32).int32(message.stdoutConfig);
47355
- }
47356
- if (message.stderrConfig !== 0) {
47357
- writer.uint32(40).int32(message.stderrConfig);
47358
- }
47359
- if (message.timeoutSecs !== void 0) {
47360
- writer.uint32(48).uint32(message.timeoutSecs);
47361
- }
47362
- if (message.workdir !== void 0) {
47363
- writer.uint32(58).string(message.workdir);
47364
- }
47365
- for (const v of message.secretIds) {
47366
- writer.uint32(66).string(v);
47367
- }
47368
- if (message.ptyInfo !== void 0) {
47369
- PTYInfo.encode(message.ptyInfo, writer.uint32(74).fork()).join();
49498
+ if (message.containerId !== "") {
49499
+ writer.uint32(10).string(message.containerId);
47370
49500
  }
47371
- if (message.runtimeDebug !== false) {
47372
- writer.uint32(80).bool(message.runtimeDebug);
49501
+ if (message.containerName !== "") {
49502
+ writer.uint32(18).string(message.containerName);
47373
49503
  }
47374
49504
  return writer;
47375
49505
  },
47376
49506
  decode(input, length) {
47377
49507
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
47378
49508
  let end = length === void 0 ? reader.len : reader.pos + length;
47379
- const message = createBaseTaskExecStartRequest();
49509
+ const message = createBaseTaskContainerCreateResponse();
47380
49510
  while (reader.pos < end) {
47381
49511
  const tag = reader.uint32();
47382
49512
  switch (tag >>> 3) {
@@ -47384,70 +49514,92 @@ var TaskExecStartRequest = {
47384
49514
  if (tag !== 10) {
47385
49515
  break;
47386
49516
  }
47387
- message.taskId = reader.string();
49517
+ message.containerId = reader.string();
47388
49518
  continue;
47389
49519
  }
47390
49520
  case 2: {
47391
49521
  if (tag !== 18) {
47392
49522
  break;
47393
49523
  }
47394
- message.execId = reader.string();
47395
- continue;
47396
- }
47397
- case 3: {
47398
- if (tag !== 26) {
47399
- break;
47400
- }
47401
- message.commandArgs.push(reader.string());
47402
- continue;
47403
- }
47404
- case 4: {
47405
- if (tag !== 32) {
47406
- break;
47407
- }
47408
- message.stdoutConfig = reader.int32();
47409
- continue;
47410
- }
47411
- case 5: {
47412
- if (tag !== 40) {
47413
- break;
47414
- }
47415
- message.stderrConfig = reader.int32();
47416
- continue;
47417
- }
47418
- case 6: {
47419
- if (tag !== 48) {
47420
- break;
47421
- }
47422
- message.timeoutSecs = reader.uint32();
47423
- continue;
47424
- }
47425
- case 7: {
47426
- if (tag !== 58) {
47427
- break;
47428
- }
47429
- message.workdir = reader.string();
49524
+ message.containerName = reader.string();
47430
49525
  continue;
47431
49526
  }
47432
- case 8: {
47433
- if (tag !== 66) {
49527
+ }
49528
+ if ((tag & 7) === 4 || tag === 0) {
49529
+ break;
49530
+ }
49531
+ reader.skip(tag & 7);
49532
+ }
49533
+ return message;
49534
+ },
49535
+ fromJSON(object) {
49536
+ return {
49537
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
49538
+ containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : ""
49539
+ };
49540
+ },
49541
+ toJSON(message) {
49542
+ const obj = {};
49543
+ if (message.containerId !== "") {
49544
+ obj.containerId = message.containerId;
49545
+ }
49546
+ if (message.containerName !== "") {
49547
+ obj.containerName = message.containerName;
49548
+ }
49549
+ return obj;
49550
+ },
49551
+ create(base) {
49552
+ return TaskContainerCreateResponse.fromPartial(base ?? {});
49553
+ },
49554
+ fromPartial(object) {
49555
+ const message = createBaseTaskContainerCreateResponse();
49556
+ message.containerId = object.containerId ?? "";
49557
+ message.containerName = object.containerName ?? "";
49558
+ return message;
49559
+ }
49560
+ };
49561
+ function createBaseTaskContainerGetRequest() {
49562
+ return { taskId: "", containerName: "", includeTerminated: false };
49563
+ }
49564
+ var TaskContainerGetRequest = {
49565
+ encode(message, writer = new BinaryWriter()) {
49566
+ if (message.taskId !== "") {
49567
+ writer.uint32(10).string(message.taskId);
49568
+ }
49569
+ if (message.containerName !== "") {
49570
+ writer.uint32(18).string(message.containerName);
49571
+ }
49572
+ if (message.includeTerminated !== false) {
49573
+ writer.uint32(24).bool(message.includeTerminated);
49574
+ }
49575
+ return writer;
49576
+ },
49577
+ decode(input, length) {
49578
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49579
+ let end = length === void 0 ? reader.len : reader.pos + length;
49580
+ const message = createBaseTaskContainerGetRequest();
49581
+ while (reader.pos < end) {
49582
+ const tag = reader.uint32();
49583
+ switch (tag >>> 3) {
49584
+ case 1: {
49585
+ if (tag !== 10) {
47434
49586
  break;
47435
49587
  }
47436
- message.secretIds.push(reader.string());
49588
+ message.taskId = reader.string();
47437
49589
  continue;
47438
49590
  }
47439
- case 9: {
47440
- if (tag !== 74) {
49591
+ case 2: {
49592
+ if (tag !== 18) {
47441
49593
  break;
47442
49594
  }
47443
- message.ptyInfo = PTYInfo.decode(reader, reader.uint32());
49595
+ message.containerName = reader.string();
47444
49596
  continue;
47445
49597
  }
47446
- case 10: {
47447
- if (tag !== 80) {
49598
+ case 3: {
49599
+ if (tag !== 24) {
47448
49600
  break;
47449
49601
  }
47450
- message.runtimeDebug = reader.bool();
49602
+ message.includeTerminated = reader.bool();
47451
49603
  continue;
47452
49604
  }
47453
49605
  }
@@ -47461,15 +49613,8 @@ var TaskExecStartRequest = {
47461
49613
  fromJSON(object) {
47462
49614
  return {
47463
49615
  taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
47464
- execId: isSet5(object.execId) ? globalThis.String(object.execId) : "",
47465
- commandArgs: globalThis.Array.isArray(object?.commandArgs) ? object.commandArgs.map((e) => globalThis.String(e)) : [],
47466
- stdoutConfig: isSet5(object.stdoutConfig) ? taskExecStdoutConfigFromJSON(object.stdoutConfig) : 0,
47467
- stderrConfig: isSet5(object.stderrConfig) ? taskExecStderrConfigFromJSON(object.stderrConfig) : 0,
47468
- timeoutSecs: isSet5(object.timeoutSecs) ? globalThis.Number(object.timeoutSecs) : void 0,
47469
- workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : void 0,
47470
- secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : [],
47471
- ptyInfo: isSet5(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
47472
- runtimeDebug: isSet5(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false
49616
+ containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
49617
+ includeTerminated: isSet5(object.includeTerminated) ? globalThis.Boolean(object.includeTerminated) : false
47473
49618
  };
47474
49619
  },
47475
49620
  toJSON(message) {
@@ -47477,71 +49622,1004 @@ var TaskExecStartRequest = {
47477
49622
  if (message.taskId !== "") {
47478
49623
  obj.taskId = message.taskId;
47479
49624
  }
47480
- if (message.execId !== "") {
47481
- obj.execId = message.execId;
47482
- }
47483
- if (message.commandArgs?.length) {
47484
- obj.commandArgs = message.commandArgs;
47485
- }
47486
- if (message.stdoutConfig !== 0) {
47487
- obj.stdoutConfig = taskExecStdoutConfigToJSON(message.stdoutConfig);
47488
- }
47489
- if (message.stderrConfig !== 0) {
47490
- obj.stderrConfig = taskExecStderrConfigToJSON(message.stderrConfig);
47491
- }
47492
- if (message.timeoutSecs !== void 0) {
47493
- obj.timeoutSecs = Math.round(message.timeoutSecs);
47494
- }
47495
- if (message.workdir !== void 0) {
47496
- obj.workdir = message.workdir;
47497
- }
47498
- if (message.secretIds?.length) {
47499
- obj.secretIds = message.secretIds;
47500
- }
47501
- if (message.ptyInfo !== void 0) {
47502
- obj.ptyInfo = PTYInfo.toJSON(message.ptyInfo);
49625
+ if (message.containerName !== "") {
49626
+ obj.containerName = message.containerName;
47503
49627
  }
47504
- if (message.runtimeDebug !== false) {
47505
- obj.runtimeDebug = message.runtimeDebug;
49628
+ if (message.includeTerminated !== false) {
49629
+ obj.includeTerminated = message.includeTerminated;
47506
49630
  }
47507
49631
  return obj;
47508
49632
  },
47509
49633
  create(base) {
47510
- return TaskExecStartRequest.fromPartial(base ?? {});
49634
+ return TaskContainerGetRequest.fromPartial(base ?? {});
47511
49635
  },
47512
49636
  fromPartial(object) {
47513
- const message = createBaseTaskExecStartRequest();
49637
+ const message = createBaseTaskContainerGetRequest();
47514
49638
  message.taskId = object.taskId ?? "";
47515
- message.execId = object.execId ?? "";
47516
- message.commandArgs = object.commandArgs?.map((e) => e) || [];
47517
- message.stdoutConfig = object.stdoutConfig ?? 0;
47518
- message.stderrConfig = object.stderrConfig ?? 0;
47519
- message.timeoutSecs = object.timeoutSecs ?? void 0;
47520
- message.workdir = object.workdir ?? void 0;
47521
- message.secretIds = object.secretIds?.map((e) => e) || [];
47522
- message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
47523
- message.runtimeDebug = object.runtimeDebug ?? false;
49639
+ message.containerName = object.containerName ?? "";
49640
+ message.includeTerminated = object.includeTerminated ?? false;
47524
49641
  return message;
47525
49642
  }
47526
49643
  };
47527
- function createBaseTaskExecStartResponse() {
47528
- return {};
49644
+ function createBaseTaskContainerGetResponse() {
49645
+ return { container: void 0 };
47529
49646
  }
47530
- var TaskExecStartResponse = {
47531
- encode(_, writer = new BinaryWriter()) {
49647
+ var TaskContainerGetResponse = {
49648
+ encode(message, writer = new BinaryWriter()) {
49649
+ if (message.container !== void 0) {
49650
+ TaskContainerInfo.encode(message.container, writer.uint32(10).fork()).join();
49651
+ }
47532
49652
  return writer;
47533
49653
  },
47534
49654
  decode(input, length) {
47535
49655
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
47536
49656
  let end = length === void 0 ? reader.len : reader.pos + length;
47537
- const message = createBaseTaskExecStartResponse();
49657
+ const message = createBaseTaskContainerGetResponse();
47538
49658
  while (reader.pos < end) {
47539
49659
  const tag = reader.uint32();
47540
49660
  switch (tag >>> 3) {
47541
- }
47542
- if ((tag & 7) === 4 || tag === 0) {
47543
- break;
47544
- }
49661
+ case 1: {
49662
+ if (tag !== 10) {
49663
+ break;
49664
+ }
49665
+ message.container = TaskContainerInfo.decode(reader, reader.uint32());
49666
+ continue;
49667
+ }
49668
+ }
49669
+ if ((tag & 7) === 4 || tag === 0) {
49670
+ break;
49671
+ }
49672
+ reader.skip(tag & 7);
49673
+ }
49674
+ return message;
49675
+ },
49676
+ fromJSON(object) {
49677
+ return { container: isSet5(object.container) ? TaskContainerInfo.fromJSON(object.container) : void 0 };
49678
+ },
49679
+ toJSON(message) {
49680
+ const obj = {};
49681
+ if (message.container !== void 0) {
49682
+ obj.container = TaskContainerInfo.toJSON(message.container);
49683
+ }
49684
+ return obj;
49685
+ },
49686
+ create(base) {
49687
+ return TaskContainerGetResponse.fromPartial(base ?? {});
49688
+ },
49689
+ fromPartial(object) {
49690
+ const message = createBaseTaskContainerGetResponse();
49691
+ message.container = object.container !== void 0 && object.container !== null ? TaskContainerInfo.fromPartial(object.container) : void 0;
49692
+ return message;
49693
+ }
49694
+ };
49695
+ function createBaseTaskContainerInfo() {
49696
+ return { containerId: "", containerName: "", status: "", result: void 0 };
49697
+ }
49698
+ var TaskContainerInfo = {
49699
+ encode(message, writer = new BinaryWriter()) {
49700
+ if (message.containerId !== "") {
49701
+ writer.uint32(10).string(message.containerId);
49702
+ }
49703
+ if (message.containerName !== "") {
49704
+ writer.uint32(18).string(message.containerName);
49705
+ }
49706
+ if (message.status !== "") {
49707
+ writer.uint32(26).string(message.status);
49708
+ }
49709
+ if (message.result !== void 0) {
49710
+ GenericResult.encode(message.result, writer.uint32(34).fork()).join();
49711
+ }
49712
+ return writer;
49713
+ },
49714
+ decode(input, length) {
49715
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49716
+ let end = length === void 0 ? reader.len : reader.pos + length;
49717
+ const message = createBaseTaskContainerInfo();
49718
+ while (reader.pos < end) {
49719
+ const tag = reader.uint32();
49720
+ switch (tag >>> 3) {
49721
+ case 1: {
49722
+ if (tag !== 10) {
49723
+ break;
49724
+ }
49725
+ message.containerId = reader.string();
49726
+ continue;
49727
+ }
49728
+ case 2: {
49729
+ if (tag !== 18) {
49730
+ break;
49731
+ }
49732
+ message.containerName = reader.string();
49733
+ continue;
49734
+ }
49735
+ case 3: {
49736
+ if (tag !== 26) {
49737
+ break;
49738
+ }
49739
+ message.status = reader.string();
49740
+ continue;
49741
+ }
49742
+ case 4: {
49743
+ if (tag !== 34) {
49744
+ break;
49745
+ }
49746
+ message.result = GenericResult.decode(reader, reader.uint32());
49747
+ continue;
49748
+ }
49749
+ }
49750
+ if ((tag & 7) === 4 || tag === 0) {
49751
+ break;
49752
+ }
49753
+ reader.skip(tag & 7);
49754
+ }
49755
+ return message;
49756
+ },
49757
+ fromJSON(object) {
49758
+ return {
49759
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
49760
+ containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
49761
+ status: isSet5(object.status) ? globalThis.String(object.status) : "",
49762
+ result: isSet5(object.result) ? GenericResult.fromJSON(object.result) : void 0
49763
+ };
49764
+ },
49765
+ toJSON(message) {
49766
+ const obj = {};
49767
+ if (message.containerId !== "") {
49768
+ obj.containerId = message.containerId;
49769
+ }
49770
+ if (message.containerName !== "") {
49771
+ obj.containerName = message.containerName;
49772
+ }
49773
+ if (message.status !== "") {
49774
+ obj.status = message.status;
49775
+ }
49776
+ if (message.result !== void 0) {
49777
+ obj.result = GenericResult.toJSON(message.result);
49778
+ }
49779
+ return obj;
49780
+ },
49781
+ create(base) {
49782
+ return TaskContainerInfo.fromPartial(base ?? {});
49783
+ },
49784
+ fromPartial(object) {
49785
+ const message = createBaseTaskContainerInfo();
49786
+ message.containerId = object.containerId ?? "";
49787
+ message.containerName = object.containerName ?? "";
49788
+ message.status = object.status ?? "";
49789
+ message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
49790
+ return message;
49791
+ }
49792
+ };
49793
+ function createBaseTaskContainerListRequest() {
49794
+ return { taskId: "", includeTerminated: false };
49795
+ }
49796
+ var TaskContainerListRequest = {
49797
+ encode(message, writer = new BinaryWriter()) {
49798
+ if (message.taskId !== "") {
49799
+ writer.uint32(10).string(message.taskId);
49800
+ }
49801
+ if (message.includeTerminated !== false) {
49802
+ writer.uint32(16).bool(message.includeTerminated);
49803
+ }
49804
+ return writer;
49805
+ },
49806
+ decode(input, length) {
49807
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49808
+ let end = length === void 0 ? reader.len : reader.pos + length;
49809
+ const message = createBaseTaskContainerListRequest();
49810
+ while (reader.pos < end) {
49811
+ const tag = reader.uint32();
49812
+ switch (tag >>> 3) {
49813
+ case 1: {
49814
+ if (tag !== 10) {
49815
+ break;
49816
+ }
49817
+ message.taskId = reader.string();
49818
+ continue;
49819
+ }
49820
+ case 2: {
49821
+ if (tag !== 16) {
49822
+ break;
49823
+ }
49824
+ message.includeTerminated = reader.bool();
49825
+ continue;
49826
+ }
49827
+ }
49828
+ if ((tag & 7) === 4 || tag === 0) {
49829
+ break;
49830
+ }
49831
+ reader.skip(tag & 7);
49832
+ }
49833
+ return message;
49834
+ },
49835
+ fromJSON(object) {
49836
+ return {
49837
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
49838
+ includeTerminated: isSet5(object.includeTerminated) ? globalThis.Boolean(object.includeTerminated) : false
49839
+ };
49840
+ },
49841
+ toJSON(message) {
49842
+ const obj = {};
49843
+ if (message.taskId !== "") {
49844
+ obj.taskId = message.taskId;
49845
+ }
49846
+ if (message.includeTerminated !== false) {
49847
+ obj.includeTerminated = message.includeTerminated;
49848
+ }
49849
+ return obj;
49850
+ },
49851
+ create(base) {
49852
+ return TaskContainerListRequest.fromPartial(base ?? {});
49853
+ },
49854
+ fromPartial(object) {
49855
+ const message = createBaseTaskContainerListRequest();
49856
+ message.taskId = object.taskId ?? "";
49857
+ message.includeTerminated = object.includeTerminated ?? false;
49858
+ return message;
49859
+ }
49860
+ };
49861
+ function createBaseTaskContainerListResponse() {
49862
+ return { containers: [] };
49863
+ }
49864
+ var TaskContainerListResponse = {
49865
+ encode(message, writer = new BinaryWriter()) {
49866
+ for (const v of message.containers) {
49867
+ TaskContainerInfo.encode(v, writer.uint32(10).fork()).join();
49868
+ }
49869
+ return writer;
49870
+ },
49871
+ decode(input, length) {
49872
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49873
+ let end = length === void 0 ? reader.len : reader.pos + length;
49874
+ const message = createBaseTaskContainerListResponse();
49875
+ while (reader.pos < end) {
49876
+ const tag = reader.uint32();
49877
+ switch (tag >>> 3) {
49878
+ case 1: {
49879
+ if (tag !== 10) {
49880
+ break;
49881
+ }
49882
+ message.containers.push(TaskContainerInfo.decode(reader, reader.uint32()));
49883
+ continue;
49884
+ }
49885
+ }
49886
+ if ((tag & 7) === 4 || tag === 0) {
49887
+ break;
49888
+ }
49889
+ reader.skip(tag & 7);
49890
+ }
49891
+ return message;
49892
+ },
49893
+ fromJSON(object) {
49894
+ return {
49895
+ containers: globalThis.Array.isArray(object?.containers) ? object.containers.map((e) => TaskContainerInfo.fromJSON(e)) : []
49896
+ };
49897
+ },
49898
+ toJSON(message) {
49899
+ const obj = {};
49900
+ if (message.containers?.length) {
49901
+ obj.containers = message.containers.map((e) => TaskContainerInfo.toJSON(e));
49902
+ }
49903
+ return obj;
49904
+ },
49905
+ create(base) {
49906
+ return TaskContainerListResponse.fromPartial(base ?? {});
49907
+ },
49908
+ fromPartial(object) {
49909
+ const message = createBaseTaskContainerListResponse();
49910
+ message.containers = object.containers?.map((e) => TaskContainerInfo.fromPartial(e)) || [];
49911
+ return message;
49912
+ }
49913
+ };
49914
+ function createBaseTaskContainerTerminateRequest() {
49915
+ return { taskId: "", containerId: "" };
49916
+ }
49917
+ var TaskContainerTerminateRequest = {
49918
+ encode(message, writer = new BinaryWriter()) {
49919
+ if (message.taskId !== "") {
49920
+ writer.uint32(10).string(message.taskId);
49921
+ }
49922
+ if (message.containerId !== "") {
49923
+ writer.uint32(18).string(message.containerId);
49924
+ }
49925
+ return writer;
49926
+ },
49927
+ decode(input, length) {
49928
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49929
+ let end = length === void 0 ? reader.len : reader.pos + length;
49930
+ const message = createBaseTaskContainerTerminateRequest();
49931
+ while (reader.pos < end) {
49932
+ const tag = reader.uint32();
49933
+ switch (tag >>> 3) {
49934
+ case 1: {
49935
+ if (tag !== 10) {
49936
+ break;
49937
+ }
49938
+ message.taskId = reader.string();
49939
+ continue;
49940
+ }
49941
+ case 2: {
49942
+ if (tag !== 18) {
49943
+ break;
49944
+ }
49945
+ message.containerId = reader.string();
49946
+ continue;
49947
+ }
49948
+ }
49949
+ if ((tag & 7) === 4 || tag === 0) {
49950
+ break;
49951
+ }
49952
+ reader.skip(tag & 7);
49953
+ }
49954
+ return message;
49955
+ },
49956
+ fromJSON(object) {
49957
+ return {
49958
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
49959
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : ""
49960
+ };
49961
+ },
49962
+ toJSON(message) {
49963
+ const obj = {};
49964
+ if (message.taskId !== "") {
49965
+ obj.taskId = message.taskId;
49966
+ }
49967
+ if (message.containerId !== "") {
49968
+ obj.containerId = message.containerId;
49969
+ }
49970
+ return obj;
49971
+ },
49972
+ create(base) {
49973
+ return TaskContainerTerminateRequest.fromPartial(base ?? {});
49974
+ },
49975
+ fromPartial(object) {
49976
+ const message = createBaseTaskContainerTerminateRequest();
49977
+ message.taskId = object.taskId ?? "";
49978
+ message.containerId = object.containerId ?? "";
49979
+ return message;
49980
+ }
49981
+ };
49982
+ function createBaseTaskContainerTerminateResponse() {
49983
+ return {};
49984
+ }
49985
+ var TaskContainerTerminateResponse = {
49986
+ encode(_, writer = new BinaryWriter()) {
49987
+ return writer;
49988
+ },
49989
+ decode(input, length) {
49990
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49991
+ let end = length === void 0 ? reader.len : reader.pos + length;
49992
+ const message = createBaseTaskContainerTerminateResponse();
49993
+ while (reader.pos < end) {
49994
+ const tag = reader.uint32();
49995
+ switch (tag >>> 3) {
49996
+ }
49997
+ if ((tag & 7) === 4 || tag === 0) {
49998
+ break;
49999
+ }
50000
+ reader.skip(tag & 7);
50001
+ }
50002
+ return message;
50003
+ },
50004
+ fromJSON(_) {
50005
+ return {};
50006
+ },
50007
+ toJSON(_) {
50008
+ const obj = {};
50009
+ return obj;
50010
+ },
50011
+ create(base) {
50012
+ return TaskContainerTerminateResponse.fromPartial(base ?? {});
50013
+ },
50014
+ fromPartial(_) {
50015
+ const message = createBaseTaskContainerTerminateResponse();
50016
+ return message;
50017
+ }
50018
+ };
50019
+ function createBaseTaskContainerWaitRequest() {
50020
+ return { taskId: "", containerId: "", timeout: 0 };
50021
+ }
50022
+ var TaskContainerWaitRequest = {
50023
+ encode(message, writer = new BinaryWriter()) {
50024
+ if (message.taskId !== "") {
50025
+ writer.uint32(10).string(message.taskId);
50026
+ }
50027
+ if (message.containerId !== "") {
50028
+ writer.uint32(18).string(message.containerId);
50029
+ }
50030
+ if (message.timeout !== 0) {
50031
+ writer.uint32(29).float(message.timeout);
50032
+ }
50033
+ return writer;
50034
+ },
50035
+ decode(input, length) {
50036
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50037
+ let end = length === void 0 ? reader.len : reader.pos + length;
50038
+ const message = createBaseTaskContainerWaitRequest();
50039
+ while (reader.pos < end) {
50040
+ const tag = reader.uint32();
50041
+ switch (tag >>> 3) {
50042
+ case 1: {
50043
+ if (tag !== 10) {
50044
+ break;
50045
+ }
50046
+ message.taskId = reader.string();
50047
+ continue;
50048
+ }
50049
+ case 2: {
50050
+ if (tag !== 18) {
50051
+ break;
50052
+ }
50053
+ message.containerId = reader.string();
50054
+ continue;
50055
+ }
50056
+ case 3: {
50057
+ if (tag !== 29) {
50058
+ break;
50059
+ }
50060
+ message.timeout = reader.float();
50061
+ continue;
50062
+ }
50063
+ }
50064
+ if ((tag & 7) === 4 || tag === 0) {
50065
+ break;
50066
+ }
50067
+ reader.skip(tag & 7);
50068
+ }
50069
+ return message;
50070
+ },
50071
+ fromJSON(object) {
50072
+ return {
50073
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
50074
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
50075
+ timeout: isSet5(object.timeout) ? globalThis.Number(object.timeout) : 0
50076
+ };
50077
+ },
50078
+ toJSON(message) {
50079
+ const obj = {};
50080
+ if (message.taskId !== "") {
50081
+ obj.taskId = message.taskId;
50082
+ }
50083
+ if (message.containerId !== "") {
50084
+ obj.containerId = message.containerId;
50085
+ }
50086
+ if (message.timeout !== 0) {
50087
+ obj.timeout = message.timeout;
50088
+ }
50089
+ return obj;
50090
+ },
50091
+ create(base) {
50092
+ return TaskContainerWaitRequest.fromPartial(base ?? {});
50093
+ },
50094
+ fromPartial(object) {
50095
+ const message = createBaseTaskContainerWaitRequest();
50096
+ message.taskId = object.taskId ?? "";
50097
+ message.containerId = object.containerId ?? "";
50098
+ message.timeout = object.timeout ?? 0;
50099
+ return message;
50100
+ }
50101
+ };
50102
+ function createBaseTaskContainerWaitResponse() {
50103
+ return { result: void 0 };
50104
+ }
50105
+ var TaskContainerWaitResponse = {
50106
+ encode(message, writer = new BinaryWriter()) {
50107
+ if (message.result !== void 0) {
50108
+ GenericResult.encode(message.result, writer.uint32(10).fork()).join();
50109
+ }
50110
+ return writer;
50111
+ },
50112
+ decode(input, length) {
50113
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50114
+ let end = length === void 0 ? reader.len : reader.pos + length;
50115
+ const message = createBaseTaskContainerWaitResponse();
50116
+ while (reader.pos < end) {
50117
+ const tag = reader.uint32();
50118
+ switch (tag >>> 3) {
50119
+ case 1: {
50120
+ if (tag !== 10) {
50121
+ break;
50122
+ }
50123
+ message.result = GenericResult.decode(reader, reader.uint32());
50124
+ continue;
50125
+ }
50126
+ }
50127
+ if ((tag & 7) === 4 || tag === 0) {
50128
+ break;
50129
+ }
50130
+ reader.skip(tag & 7);
50131
+ }
50132
+ return message;
50133
+ },
50134
+ fromJSON(object) {
50135
+ return { result: isSet5(object.result) ? GenericResult.fromJSON(object.result) : void 0 };
50136
+ },
50137
+ toJSON(message) {
50138
+ const obj = {};
50139
+ if (message.result !== void 0) {
50140
+ obj.result = GenericResult.toJSON(message.result);
50141
+ }
50142
+ return obj;
50143
+ },
50144
+ create(base) {
50145
+ return TaskContainerWaitResponse.fromPartial(base ?? {});
50146
+ },
50147
+ fromPartial(object) {
50148
+ const message = createBaseTaskContainerWaitResponse();
50149
+ message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
50150
+ return message;
50151
+ }
50152
+ };
50153
+ function createBaseTaskExecPollRequest() {
50154
+ return { taskId: "", execId: "" };
50155
+ }
50156
+ var TaskExecPollRequest = {
50157
+ encode(message, writer = new BinaryWriter()) {
50158
+ if (message.taskId !== "") {
50159
+ writer.uint32(10).string(message.taskId);
50160
+ }
50161
+ if (message.execId !== "") {
50162
+ writer.uint32(18).string(message.execId);
50163
+ }
50164
+ return writer;
50165
+ },
50166
+ decode(input, length) {
50167
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50168
+ let end = length === void 0 ? reader.len : reader.pos + length;
50169
+ const message = createBaseTaskExecPollRequest();
50170
+ while (reader.pos < end) {
50171
+ const tag = reader.uint32();
50172
+ switch (tag >>> 3) {
50173
+ case 1: {
50174
+ if (tag !== 10) {
50175
+ break;
50176
+ }
50177
+ message.taskId = reader.string();
50178
+ continue;
50179
+ }
50180
+ case 2: {
50181
+ if (tag !== 18) {
50182
+ break;
50183
+ }
50184
+ message.execId = reader.string();
50185
+ continue;
50186
+ }
50187
+ }
50188
+ if ((tag & 7) === 4 || tag === 0) {
50189
+ break;
50190
+ }
50191
+ reader.skip(tag & 7);
50192
+ }
50193
+ return message;
50194
+ },
50195
+ fromJSON(object) {
50196
+ return {
50197
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
50198
+ execId: isSet5(object.execId) ? globalThis.String(object.execId) : ""
50199
+ };
50200
+ },
50201
+ toJSON(message) {
50202
+ const obj = {};
50203
+ if (message.taskId !== "") {
50204
+ obj.taskId = message.taskId;
50205
+ }
50206
+ if (message.execId !== "") {
50207
+ obj.execId = message.execId;
50208
+ }
50209
+ return obj;
50210
+ },
50211
+ create(base) {
50212
+ return TaskExecPollRequest.fromPartial(base ?? {});
50213
+ },
50214
+ fromPartial(object) {
50215
+ const message = createBaseTaskExecPollRequest();
50216
+ message.taskId = object.taskId ?? "";
50217
+ message.execId = object.execId ?? "";
50218
+ return message;
50219
+ }
50220
+ };
50221
+ function createBaseTaskExecPollResponse() {
50222
+ return { code: void 0, signal: void 0 };
50223
+ }
50224
+ var TaskExecPollResponse = {
50225
+ encode(message, writer = new BinaryWriter()) {
50226
+ if (message.code !== void 0) {
50227
+ writer.uint32(8).int32(message.code);
50228
+ }
50229
+ if (message.signal !== void 0) {
50230
+ writer.uint32(16).int32(message.signal);
50231
+ }
50232
+ return writer;
50233
+ },
50234
+ decode(input, length) {
50235
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50236
+ let end = length === void 0 ? reader.len : reader.pos + length;
50237
+ const message = createBaseTaskExecPollResponse();
50238
+ while (reader.pos < end) {
50239
+ const tag = reader.uint32();
50240
+ switch (tag >>> 3) {
50241
+ case 1: {
50242
+ if (tag !== 8) {
50243
+ break;
50244
+ }
50245
+ message.code = reader.int32();
50246
+ continue;
50247
+ }
50248
+ case 2: {
50249
+ if (tag !== 16) {
50250
+ break;
50251
+ }
50252
+ message.signal = reader.int32();
50253
+ continue;
50254
+ }
50255
+ }
50256
+ if ((tag & 7) === 4 || tag === 0) {
50257
+ break;
50258
+ }
50259
+ reader.skip(tag & 7);
50260
+ }
50261
+ return message;
50262
+ },
50263
+ fromJSON(object) {
50264
+ return {
50265
+ code: isSet5(object.code) ? globalThis.Number(object.code) : void 0,
50266
+ signal: isSet5(object.signal) ? globalThis.Number(object.signal) : void 0
50267
+ };
50268
+ },
50269
+ toJSON(message) {
50270
+ const obj = {};
50271
+ if (message.code !== void 0) {
50272
+ obj.code = Math.round(message.code);
50273
+ }
50274
+ if (message.signal !== void 0) {
50275
+ obj.signal = Math.round(message.signal);
50276
+ }
50277
+ return obj;
50278
+ },
50279
+ create(base) {
50280
+ return TaskExecPollResponse.fromPartial(base ?? {});
50281
+ },
50282
+ fromPartial(object) {
50283
+ const message = createBaseTaskExecPollResponse();
50284
+ message.code = object.code ?? void 0;
50285
+ message.signal = object.signal ?? void 0;
50286
+ return message;
50287
+ }
50288
+ };
50289
+ function createBaseTaskExecStartRequest() {
50290
+ return {
50291
+ taskId: "",
50292
+ execId: "",
50293
+ commandArgs: [],
50294
+ stdoutConfig: 0,
50295
+ stderrConfig: 0,
50296
+ timeoutSecs: void 0,
50297
+ workdir: void 0,
50298
+ secretIds: [],
50299
+ ptyInfo: void 0,
50300
+ runtimeDebug: false,
50301
+ containerId: "",
50302
+ env: {}
50303
+ };
50304
+ }
50305
+ var TaskExecStartRequest = {
50306
+ encode(message, writer = new BinaryWriter()) {
50307
+ if (message.taskId !== "") {
50308
+ writer.uint32(10).string(message.taskId);
50309
+ }
50310
+ if (message.execId !== "") {
50311
+ writer.uint32(18).string(message.execId);
50312
+ }
50313
+ for (const v of message.commandArgs) {
50314
+ writer.uint32(26).string(v);
50315
+ }
50316
+ if (message.stdoutConfig !== 0) {
50317
+ writer.uint32(32).int32(message.stdoutConfig);
50318
+ }
50319
+ if (message.stderrConfig !== 0) {
50320
+ writer.uint32(40).int32(message.stderrConfig);
50321
+ }
50322
+ if (message.timeoutSecs !== void 0) {
50323
+ writer.uint32(48).uint32(message.timeoutSecs);
50324
+ }
50325
+ if (message.workdir !== void 0) {
50326
+ writer.uint32(58).string(message.workdir);
50327
+ }
50328
+ for (const v of message.secretIds) {
50329
+ writer.uint32(66).string(v);
50330
+ }
50331
+ if (message.ptyInfo !== void 0) {
50332
+ PTYInfo.encode(message.ptyInfo, writer.uint32(74).fork()).join();
50333
+ }
50334
+ if (message.runtimeDebug !== false) {
50335
+ writer.uint32(80).bool(message.runtimeDebug);
50336
+ }
50337
+ if (message.containerId !== "") {
50338
+ writer.uint32(90).string(message.containerId);
50339
+ }
50340
+ Object.entries(message.env).forEach(([key, value]) => {
50341
+ TaskExecStartRequest_EnvEntry.encode({ key, value }, writer.uint32(98).fork()).join();
50342
+ });
50343
+ return writer;
50344
+ },
50345
+ decode(input, length) {
50346
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50347
+ let end = length === void 0 ? reader.len : reader.pos + length;
50348
+ const message = createBaseTaskExecStartRequest();
50349
+ while (reader.pos < end) {
50350
+ const tag = reader.uint32();
50351
+ switch (tag >>> 3) {
50352
+ case 1: {
50353
+ if (tag !== 10) {
50354
+ break;
50355
+ }
50356
+ message.taskId = reader.string();
50357
+ continue;
50358
+ }
50359
+ case 2: {
50360
+ if (tag !== 18) {
50361
+ break;
50362
+ }
50363
+ message.execId = reader.string();
50364
+ continue;
50365
+ }
50366
+ case 3: {
50367
+ if (tag !== 26) {
50368
+ break;
50369
+ }
50370
+ message.commandArgs.push(reader.string());
50371
+ continue;
50372
+ }
50373
+ case 4: {
50374
+ if (tag !== 32) {
50375
+ break;
50376
+ }
50377
+ message.stdoutConfig = reader.int32();
50378
+ continue;
50379
+ }
50380
+ case 5: {
50381
+ if (tag !== 40) {
50382
+ break;
50383
+ }
50384
+ message.stderrConfig = reader.int32();
50385
+ continue;
50386
+ }
50387
+ case 6: {
50388
+ if (tag !== 48) {
50389
+ break;
50390
+ }
50391
+ message.timeoutSecs = reader.uint32();
50392
+ continue;
50393
+ }
50394
+ case 7: {
50395
+ if (tag !== 58) {
50396
+ break;
50397
+ }
50398
+ message.workdir = reader.string();
50399
+ continue;
50400
+ }
50401
+ case 8: {
50402
+ if (tag !== 66) {
50403
+ break;
50404
+ }
50405
+ message.secretIds.push(reader.string());
50406
+ continue;
50407
+ }
50408
+ case 9: {
50409
+ if (tag !== 74) {
50410
+ break;
50411
+ }
50412
+ message.ptyInfo = PTYInfo.decode(reader, reader.uint32());
50413
+ continue;
50414
+ }
50415
+ case 10: {
50416
+ if (tag !== 80) {
50417
+ break;
50418
+ }
50419
+ message.runtimeDebug = reader.bool();
50420
+ continue;
50421
+ }
50422
+ case 11: {
50423
+ if (tag !== 90) {
50424
+ break;
50425
+ }
50426
+ message.containerId = reader.string();
50427
+ continue;
50428
+ }
50429
+ case 12: {
50430
+ if (tag !== 98) {
50431
+ break;
50432
+ }
50433
+ const entry12 = TaskExecStartRequest_EnvEntry.decode(reader, reader.uint32());
50434
+ if (entry12.value !== void 0) {
50435
+ message.env[entry12.key] = entry12.value;
50436
+ }
50437
+ continue;
50438
+ }
50439
+ }
50440
+ if ((tag & 7) === 4 || tag === 0) {
50441
+ break;
50442
+ }
50443
+ reader.skip(tag & 7);
50444
+ }
50445
+ return message;
50446
+ },
50447
+ fromJSON(object) {
50448
+ return {
50449
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
50450
+ execId: isSet5(object.execId) ? globalThis.String(object.execId) : "",
50451
+ commandArgs: globalThis.Array.isArray(object?.commandArgs) ? object.commandArgs.map((e) => globalThis.String(e)) : [],
50452
+ stdoutConfig: isSet5(object.stdoutConfig) ? taskExecStdoutConfigFromJSON(object.stdoutConfig) : 0,
50453
+ stderrConfig: isSet5(object.stderrConfig) ? taskExecStderrConfigFromJSON(object.stderrConfig) : 0,
50454
+ timeoutSecs: isSet5(object.timeoutSecs) ? globalThis.Number(object.timeoutSecs) : void 0,
50455
+ workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : void 0,
50456
+ secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : [],
50457
+ ptyInfo: isSet5(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
50458
+ runtimeDebug: isSet5(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false,
50459
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
50460
+ env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
50461
+ acc[key] = String(value);
50462
+ return acc;
50463
+ }, {}) : {}
50464
+ };
50465
+ },
50466
+ toJSON(message) {
50467
+ const obj = {};
50468
+ if (message.taskId !== "") {
50469
+ obj.taskId = message.taskId;
50470
+ }
50471
+ if (message.execId !== "") {
50472
+ obj.execId = message.execId;
50473
+ }
50474
+ if (message.commandArgs?.length) {
50475
+ obj.commandArgs = message.commandArgs;
50476
+ }
50477
+ if (message.stdoutConfig !== 0) {
50478
+ obj.stdoutConfig = taskExecStdoutConfigToJSON(message.stdoutConfig);
50479
+ }
50480
+ if (message.stderrConfig !== 0) {
50481
+ obj.stderrConfig = taskExecStderrConfigToJSON(message.stderrConfig);
50482
+ }
50483
+ if (message.timeoutSecs !== void 0) {
50484
+ obj.timeoutSecs = Math.round(message.timeoutSecs);
50485
+ }
50486
+ if (message.workdir !== void 0) {
50487
+ obj.workdir = message.workdir;
50488
+ }
50489
+ if (message.secretIds?.length) {
50490
+ obj.secretIds = message.secretIds;
50491
+ }
50492
+ if (message.ptyInfo !== void 0) {
50493
+ obj.ptyInfo = PTYInfo.toJSON(message.ptyInfo);
50494
+ }
50495
+ if (message.runtimeDebug !== false) {
50496
+ obj.runtimeDebug = message.runtimeDebug;
50497
+ }
50498
+ if (message.containerId !== "") {
50499
+ obj.containerId = message.containerId;
50500
+ }
50501
+ if (message.env) {
50502
+ const entries = Object.entries(message.env);
50503
+ if (entries.length > 0) {
50504
+ obj.env = {};
50505
+ entries.forEach(([k, v]) => {
50506
+ obj.env[k] = v;
50507
+ });
50508
+ }
50509
+ }
50510
+ return obj;
50511
+ },
50512
+ create(base) {
50513
+ return TaskExecStartRequest.fromPartial(base ?? {});
50514
+ },
50515
+ fromPartial(object) {
50516
+ const message = createBaseTaskExecStartRequest();
50517
+ message.taskId = object.taskId ?? "";
50518
+ message.execId = object.execId ?? "";
50519
+ message.commandArgs = object.commandArgs?.map((e) => e) || [];
50520
+ message.stdoutConfig = object.stdoutConfig ?? 0;
50521
+ message.stderrConfig = object.stderrConfig ?? 0;
50522
+ message.timeoutSecs = object.timeoutSecs ?? void 0;
50523
+ message.workdir = object.workdir ?? void 0;
50524
+ message.secretIds = object.secretIds?.map((e) => e) || [];
50525
+ message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
50526
+ message.runtimeDebug = object.runtimeDebug ?? false;
50527
+ message.containerId = object.containerId ?? "";
50528
+ message.env = Object.entries(object.env ?? {}).reduce((acc, [key, value]) => {
50529
+ if (value !== void 0) {
50530
+ acc[key] = globalThis.String(value);
50531
+ }
50532
+ return acc;
50533
+ }, {});
50534
+ return message;
50535
+ }
50536
+ };
50537
+ function createBaseTaskExecStartRequest_EnvEntry() {
50538
+ return { key: "", value: "" };
50539
+ }
50540
+ var TaskExecStartRequest_EnvEntry = {
50541
+ encode(message, writer = new BinaryWriter()) {
50542
+ if (message.key !== "") {
50543
+ writer.uint32(10).string(message.key);
50544
+ }
50545
+ if (message.value !== "") {
50546
+ writer.uint32(18).string(message.value);
50547
+ }
50548
+ return writer;
50549
+ },
50550
+ decode(input, length) {
50551
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50552
+ let end = length === void 0 ? reader.len : reader.pos + length;
50553
+ const message = createBaseTaskExecStartRequest_EnvEntry();
50554
+ while (reader.pos < end) {
50555
+ const tag = reader.uint32();
50556
+ switch (tag >>> 3) {
50557
+ case 1: {
50558
+ if (tag !== 10) {
50559
+ break;
50560
+ }
50561
+ message.key = reader.string();
50562
+ continue;
50563
+ }
50564
+ case 2: {
50565
+ if (tag !== 18) {
50566
+ break;
50567
+ }
50568
+ message.value = reader.string();
50569
+ continue;
50570
+ }
50571
+ }
50572
+ if ((tag & 7) === 4 || tag === 0) {
50573
+ break;
50574
+ }
50575
+ reader.skip(tag & 7);
50576
+ }
50577
+ return message;
50578
+ },
50579
+ fromJSON(object) {
50580
+ return {
50581
+ key: isSet5(object.key) ? globalThis.String(object.key) : "",
50582
+ value: isSet5(object.value) ? globalThis.String(object.value) : ""
50583
+ };
50584
+ },
50585
+ toJSON(message) {
50586
+ const obj = {};
50587
+ if (message.key !== "") {
50588
+ obj.key = message.key;
50589
+ }
50590
+ if (message.value !== "") {
50591
+ obj.value = message.value;
50592
+ }
50593
+ return obj;
50594
+ },
50595
+ create(base) {
50596
+ return TaskExecStartRequest_EnvEntry.fromPartial(base ?? {});
50597
+ },
50598
+ fromPartial(object) {
50599
+ const message = createBaseTaskExecStartRequest_EnvEntry();
50600
+ message.key = object.key ?? "";
50601
+ message.value = object.value ?? "";
50602
+ return message;
50603
+ }
50604
+ };
50605
+ function createBaseTaskExecStartResponse() {
50606
+ return {};
50607
+ }
50608
+ var TaskExecStartResponse = {
50609
+ encode(_, writer = new BinaryWriter()) {
50610
+ return writer;
50611
+ },
50612
+ decode(input, length) {
50613
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50614
+ let end = length === void 0 ? reader.len : reader.pos + length;
50615
+ const message = createBaseTaskExecStartResponse();
50616
+ while (reader.pos < end) {
50617
+ const tag = reader.uint32();
50618
+ switch (tag >>> 3) {
50619
+ }
50620
+ if ((tag & 7) === 4 || tag === 0) {
50621
+ break;
50622
+ }
47545
50623
  reader.skip(tag & 7);
47546
50624
  }
47547
50625
  return message;
@@ -48198,10 +51276,123 @@ var TaskSnapshotDirectoryResponse = {
48198
51276
  return message;
48199
51277
  }
48200
51278
  };
51279
+ function createBaseTaskUnmountDirectoryRequest() {
51280
+ return { taskId: "", path: new Uint8Array(0) };
51281
+ }
51282
+ var TaskUnmountDirectoryRequest = {
51283
+ encode(message, writer = new BinaryWriter()) {
51284
+ if (message.taskId !== "") {
51285
+ writer.uint32(10).string(message.taskId);
51286
+ }
51287
+ if (message.path.length !== 0) {
51288
+ writer.uint32(18).bytes(message.path);
51289
+ }
51290
+ return writer;
51291
+ },
51292
+ decode(input, length) {
51293
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51294
+ let end = length === void 0 ? reader.len : reader.pos + length;
51295
+ const message = createBaseTaskUnmountDirectoryRequest();
51296
+ while (reader.pos < end) {
51297
+ const tag = reader.uint32();
51298
+ switch (tag >>> 3) {
51299
+ case 1: {
51300
+ if (tag !== 10) {
51301
+ break;
51302
+ }
51303
+ message.taskId = reader.string();
51304
+ continue;
51305
+ }
51306
+ case 2: {
51307
+ if (tag !== 18) {
51308
+ break;
51309
+ }
51310
+ message.path = reader.bytes();
51311
+ continue;
51312
+ }
51313
+ }
51314
+ if ((tag & 7) === 4 || tag === 0) {
51315
+ break;
51316
+ }
51317
+ reader.skip(tag & 7);
51318
+ }
51319
+ return message;
51320
+ },
51321
+ fromJSON(object) {
51322
+ return {
51323
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
51324
+ path: isSet5(object.path) ? bytesFromBase642(object.path) : new Uint8Array(0)
51325
+ };
51326
+ },
51327
+ toJSON(message) {
51328
+ const obj = {};
51329
+ if (message.taskId !== "") {
51330
+ obj.taskId = message.taskId;
51331
+ }
51332
+ if (message.path.length !== 0) {
51333
+ obj.path = base64FromBytes2(message.path);
51334
+ }
51335
+ return obj;
51336
+ },
51337
+ create(base) {
51338
+ return TaskUnmountDirectoryRequest.fromPartial(base ?? {});
51339
+ },
51340
+ fromPartial(object) {
51341
+ const message = createBaseTaskUnmountDirectoryRequest();
51342
+ message.taskId = object.taskId ?? "";
51343
+ message.path = object.path ?? new Uint8Array(0);
51344
+ return message;
51345
+ }
51346
+ };
48201
51347
  var TaskCommandRouterDefinition = {
48202
51348
  name: "TaskCommandRouter",
48203
51349
  fullName: "modal.task_command_router.TaskCommandRouter",
48204
51350
  methods: {
51351
+ /** Create an additional container for a task. */
51352
+ taskContainerCreate: {
51353
+ name: "TaskContainerCreate",
51354
+ requestType: TaskContainerCreateRequest,
51355
+ requestStream: false,
51356
+ responseType: TaskContainerCreateResponse,
51357
+ responseStream: false,
51358
+ options: {}
51359
+ },
51360
+ /** Get the latest container associated with a logical name. */
51361
+ taskContainerGet: {
51362
+ name: "TaskContainerGet",
51363
+ requestType: TaskContainerGetRequest,
51364
+ requestStream: false,
51365
+ responseType: TaskContainerGetResponse,
51366
+ responseStream: false,
51367
+ options: {}
51368
+ },
51369
+ /** List containers associated with the task. */
51370
+ taskContainerList: {
51371
+ name: "TaskContainerList",
51372
+ requestType: TaskContainerListRequest,
51373
+ requestStream: false,
51374
+ responseType: TaskContainerListResponse,
51375
+ responseStream: false,
51376
+ options: {}
51377
+ },
51378
+ /** Terminate or release a tracked container. */
51379
+ taskContainerTerminate: {
51380
+ name: "TaskContainerTerminate",
51381
+ requestType: TaskContainerTerminateRequest,
51382
+ requestStream: false,
51383
+ responseType: TaskContainerTerminateResponse,
51384
+ responseStream: false,
51385
+ options: {}
51386
+ },
51387
+ /** Wait for a tracked container to reach a terminal result. */
51388
+ taskContainerWait: {
51389
+ name: "TaskContainerWait",
51390
+ requestType: TaskContainerWaitRequest,
51391
+ requestStream: false,
51392
+ responseType: TaskContainerWaitResponse,
51393
+ responseStream: false,
51394
+ options: {}
51395
+ },
48205
51396
  /** Poll for the exit status of an exec'd command. */
48206
51397
  taskExecPoll: {
48207
51398
  name: "TaskExecPoll",
@@ -48264,6 +51455,15 @@ var TaskCommandRouterDefinition = {
48264
51455
  responseType: TaskSnapshotDirectoryResponse,
48265
51456
  responseStream: false,
48266
51457
  options: {}
51458
+ },
51459
+ /** Unmount an image previously mounted at a directory in the container. */
51460
+ taskUnmountDirectory: {
51461
+ name: "TaskUnmountDirectory",
51462
+ requestType: TaskUnmountDirectoryRequest,
51463
+ requestStream: false,
51464
+ responseType: Empty,
51465
+ responseStream: false,
51466
+ options: {}
48267
51467
  }
48268
51468
  }
48269
51469
  };
@@ -48300,6 +51500,9 @@ function longToNumber3(int64) {
48300
51500
  }
48301
51501
  return num;
48302
51502
  }
51503
+ function isObject3(value) {
51504
+ return typeof value === "object" && value !== null;
51505
+ }
48303
51506
  function isSet5(value) {
48304
51507
  return value !== null && value !== void 0;
48305
51508
  }
@@ -48975,6 +52178,78 @@ function streamConsumingIter(iterable, onCancel) {
48975
52178
  var SB_LOGS_INITIAL_DELAY_MS = 10;
48976
52179
  var SB_LOGS_DELAY_FACTOR = 2;
48977
52180
  var SB_LOGS_MAX_RETRIES = 10;
52181
+ var Probe2 = class _Probe {
52182
+ #tcpPort;
52183
+ #execArgv;
52184
+ #intervalMs;
52185
+ constructor(params) {
52186
+ const { tcpPort, execArgv, intervalMs } = params;
52187
+ if (tcpPort === void 0 === (execArgv === void 0)) {
52188
+ throw new InvalidError(
52189
+ "Probe must be created with Probe.withTcp(...) or Probe.withExec(...)"
52190
+ );
52191
+ }
52192
+ this.#tcpPort = tcpPort;
52193
+ this.#execArgv = execArgv;
52194
+ this.#intervalMs = intervalMs;
52195
+ }
52196
+ static withTcp(port, params = { intervalMs: 100 }) {
52197
+ if (!Number.isInteger(port)) {
52198
+ throw new InvalidError("Probe.withTcp() expects an integer `port`");
52199
+ }
52200
+ if (port <= 0 || port > 65535) {
52201
+ throw new InvalidError(
52202
+ `Probe.withTcp() expects \`port\` in [1, 65535], got ${port}`
52203
+ );
52204
+ }
52205
+ const { intervalMs } = params;
52206
+ _Probe.#validateIntervalMs("Probe.withTcp", intervalMs);
52207
+ return new _Probe({ tcpPort: port, intervalMs });
52208
+ }
52209
+ static withExec(argv, params = { intervalMs: 100 }) {
52210
+ if (!Array.isArray(argv) || argv.length === 0) {
52211
+ throw new InvalidError("Probe.withExec() requires at least one argument");
52212
+ }
52213
+ if (!argv.every((arg) => typeof arg === "string")) {
52214
+ throw new InvalidError(
52215
+ "Probe.withExec() expects all arguments to be strings"
52216
+ );
52217
+ }
52218
+ const { intervalMs } = params;
52219
+ _Probe.#validateIntervalMs("Probe.withExec", intervalMs);
52220
+ return new _Probe({ execArgv: [...argv], intervalMs });
52221
+ }
52222
+ /** @ignore */
52223
+ toProto() {
52224
+ if (this.#tcpPort !== void 0) {
52225
+ return Probe.create({
52226
+ tcpPort: this.#tcpPort,
52227
+ intervalMs: this.#intervalMs
52228
+ });
52229
+ }
52230
+ if (this.#execArgv !== void 0) {
52231
+ return Probe.create({
52232
+ execCommand: { argv: this.#execArgv },
52233
+ intervalMs: this.#intervalMs
52234
+ });
52235
+ }
52236
+ throw new InvalidError(
52237
+ "Probe must be created with Probe.withTcp(...) or Probe.withExec(...)"
52238
+ );
52239
+ }
52240
+ static #validateIntervalMs(methodName, intervalMs) {
52241
+ if (!Number.isInteger(intervalMs)) {
52242
+ throw new InvalidError(
52243
+ `${methodName}() expects an integer \`intervalMs\``
52244
+ );
52245
+ }
52246
+ if (intervalMs <= 0) {
52247
+ throw new InvalidError(
52248
+ `${methodName}() expects \`intervalMs\` > 0, got ${intervalMs}`
52249
+ );
52250
+ }
52251
+ }
52252
+ };
48978
52253
  async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
48979
52254
  checkForRenamedParams(params, {
48980
52255
  memory: "memoryMiB",
@@ -49154,9 +52429,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
49154
52429
  schedulerPlacement,
49155
52430
  verbose: params.verbose ?? false,
49156
52431
  proxyId: params.proxy?.proxyId,
52432
+ readinessProbe: params.readinessProbe?.toProto(),
49157
52433
  name: params.name,
49158
52434
  experimentalOptions: protoExperimentalOptions,
49159
- customDomain: params.customDomain
52435
+ customDomain: params.customDomain,
52436
+ includeOidcIdentityToken: params.includeOidcIdentityToken ?? false
49160
52437
  }
49161
52438
  });
49162
52439
  }
@@ -49678,6 +52955,46 @@ var Sandbox2 = class _Sandbox {
49678
52955
  }
49679
52956
  }
49680
52957
  }
52958
+ /**
52959
+ * Wait until the Sandbox readiness probe reports the Sandbox is ready.
52960
+ *
52961
+ * This method only works for Sandboxes configured with a readiness probe.
52962
+ *
52963
+ * @param timeoutMs - Maximum total time to wait, in milliseconds.
52964
+ * @returns A promise that resolves once the Sandbox is ready.
52965
+ * @throws {@link TimeoutError} If readiness is not reported before `timeoutMs`.
52966
+ */
52967
+ async waitUntilReady(timeoutMs = 3e5) {
52968
+ this.#ensureAttached();
52969
+ if (timeoutMs <= 0) {
52970
+ throw new InvalidError(`timeoutMs must be positive, got ${timeoutMs}`);
52971
+ }
52972
+ const deadline = Date.now() + timeoutMs;
52973
+ while (true) {
52974
+ const remainingMs = deadline - Date.now();
52975
+ if (remainingMs <= 0) {
52976
+ throw new TimeoutError("Sandbox operation timed out");
52977
+ }
52978
+ const requestTimeoutMs = Math.min(
52979
+ remainingMs,
52980
+ 5e4
52981
+ // Max request timeout for each gRPC call
52982
+ );
52983
+ try {
52984
+ const resp = await this.#client.cpClient.sandboxWaitUntilReady({
52985
+ sandboxId: this.sandboxId,
52986
+ timeout: requestTimeoutMs / 1e3
52987
+ });
52988
+ if (resp.readyAt > 0) {
52989
+ return;
52990
+ }
52991
+ } catch (err) {
52992
+ if (err instanceof ClientError8 && err.code === Status8.DEADLINE_EXCEEDED)
52993
+ continue;
52994
+ throw err;
52995
+ }
52996
+ }
52997
+ }
49681
52998
  /** Get {@link Tunnel} metadata for the Sandbox.
49682
52999
  *
49683
53000
  * Raises {@link SandboxTimeoutError} if the tunnels are not available after the timeout.
@@ -50223,7 +53540,7 @@ var AuthTokenManager = class {
50223
53540
 
50224
53541
  // src/version.ts
50225
53542
  function getSDKVersion() {
50226
- return true ? "0.7.3-dev.1" : "0.0.0";
53543
+ return true ? "0.7.4" : "0.0.0";
50227
53544
  }
50228
53545
 
50229
53546
  // src/logger.ts
@@ -50745,6 +54062,7 @@ export {
50745
54062
  InvalidError,
50746
54063
  ModalClient2 as ModalClient,
50747
54064
  NotFoundError,
54065
+ Probe2 as Probe,
50748
54066
  Proxy3 as Proxy,
50749
54067
  ProxyService,
50750
54068
  Queue,
@@ -50759,6 +54077,7 @@ export {
50759
54077
  SandboxTimeoutError,
50760
54078
  Secret,
50761
54079
  SecretService,
54080
+ TimeoutError,
50762
54081
  Volume,
50763
54082
  VolumeService,
50764
54083
  checkForRenamedParams,