modal 0.7.3-dev.1 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3084,6 +3084,371 @@ var AppClientDisconnectRequest = {
3084
3084
  return message;
3085
3085
  }
3086
3086
  };
3087
+ function createBaseAppCountLogsRequest() {
3088
+ return {
3089
+ appId: "",
3090
+ taskId: "",
3091
+ functionId: "",
3092
+ functionCallId: "",
3093
+ sandboxId: "",
3094
+ searchText: "",
3095
+ since: void 0,
3096
+ until: void 0,
3097
+ bucketSecs: 0,
3098
+ source: 0
3099
+ };
3100
+ }
3101
+ var AppCountLogsRequest = {
3102
+ encode(message, writer = new BinaryWriter()) {
3103
+ if (message.appId !== "") {
3104
+ writer.uint32(10).string(message.appId);
3105
+ }
3106
+ if (message.taskId !== "") {
3107
+ writer.uint32(18).string(message.taskId);
3108
+ }
3109
+ if (message.functionId !== "") {
3110
+ writer.uint32(26).string(message.functionId);
3111
+ }
3112
+ if (message.functionCallId !== "") {
3113
+ writer.uint32(34).string(message.functionCallId);
3114
+ }
3115
+ if (message.sandboxId !== "") {
3116
+ writer.uint32(42).string(message.sandboxId);
3117
+ }
3118
+ if (message.searchText !== "") {
3119
+ writer.uint32(50).string(message.searchText);
3120
+ }
3121
+ if (message.since !== void 0) {
3122
+ Timestamp.encode(toTimestamp(message.since), writer.uint32(58).fork()).join();
3123
+ }
3124
+ if (message.until !== void 0) {
3125
+ Timestamp.encode(toTimestamp(message.until), writer.uint32(66).fork()).join();
3126
+ }
3127
+ if (message.bucketSecs !== 0) {
3128
+ writer.uint32(72).uint32(message.bucketSecs);
3129
+ }
3130
+ if (message.source !== 0) {
3131
+ writer.uint32(80).int32(message.source);
3132
+ }
3133
+ return writer;
3134
+ },
3135
+ decode(input, length) {
3136
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3137
+ let end = length === void 0 ? reader.len : reader.pos + length;
3138
+ const message = createBaseAppCountLogsRequest();
3139
+ while (reader.pos < end) {
3140
+ const tag = reader.uint32();
3141
+ switch (tag >>> 3) {
3142
+ case 1: {
3143
+ if (tag !== 10) {
3144
+ break;
3145
+ }
3146
+ message.appId = reader.string();
3147
+ continue;
3148
+ }
3149
+ case 2: {
3150
+ if (tag !== 18) {
3151
+ break;
3152
+ }
3153
+ message.taskId = reader.string();
3154
+ continue;
3155
+ }
3156
+ case 3: {
3157
+ if (tag !== 26) {
3158
+ break;
3159
+ }
3160
+ message.functionId = reader.string();
3161
+ continue;
3162
+ }
3163
+ case 4: {
3164
+ if (tag !== 34) {
3165
+ break;
3166
+ }
3167
+ message.functionCallId = reader.string();
3168
+ continue;
3169
+ }
3170
+ case 5: {
3171
+ if (tag !== 42) {
3172
+ break;
3173
+ }
3174
+ message.sandboxId = reader.string();
3175
+ continue;
3176
+ }
3177
+ case 6: {
3178
+ if (tag !== 50) {
3179
+ break;
3180
+ }
3181
+ message.searchText = reader.string();
3182
+ continue;
3183
+ }
3184
+ case 7: {
3185
+ if (tag !== 58) {
3186
+ break;
3187
+ }
3188
+ message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3189
+ continue;
3190
+ }
3191
+ case 8: {
3192
+ if (tag !== 66) {
3193
+ break;
3194
+ }
3195
+ message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3196
+ continue;
3197
+ }
3198
+ case 9: {
3199
+ if (tag !== 72) {
3200
+ break;
3201
+ }
3202
+ message.bucketSecs = reader.uint32();
3203
+ continue;
3204
+ }
3205
+ case 10: {
3206
+ if (tag !== 80) {
3207
+ break;
3208
+ }
3209
+ message.source = reader.int32();
3210
+ continue;
3211
+ }
3212
+ }
3213
+ if ((tag & 7) === 4 || tag === 0) {
3214
+ break;
3215
+ }
3216
+ reader.skip(tag & 7);
3217
+ }
3218
+ return message;
3219
+ },
3220
+ fromJSON(object) {
3221
+ return {
3222
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
3223
+ taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
3224
+ functionId: isSet4(object.functionId) ? globalThis.String(object.functionId) : "",
3225
+ functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
3226
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
3227
+ searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : "",
3228
+ since: isSet4(object.since) ? fromJsonTimestamp(object.since) : void 0,
3229
+ until: isSet4(object.until) ? fromJsonTimestamp(object.until) : void 0,
3230
+ bucketSecs: isSet4(object.bucketSecs) ? globalThis.Number(object.bucketSecs) : 0,
3231
+ source: isSet4(object.source) ? fileDescriptorFromJSON(object.source) : 0
3232
+ };
3233
+ },
3234
+ toJSON(message) {
3235
+ const obj = {};
3236
+ if (message.appId !== "") {
3237
+ obj.appId = message.appId;
3238
+ }
3239
+ if (message.taskId !== "") {
3240
+ obj.taskId = message.taskId;
3241
+ }
3242
+ if (message.functionId !== "") {
3243
+ obj.functionId = message.functionId;
3244
+ }
3245
+ if (message.functionCallId !== "") {
3246
+ obj.functionCallId = message.functionCallId;
3247
+ }
3248
+ if (message.sandboxId !== "") {
3249
+ obj.sandboxId = message.sandboxId;
3250
+ }
3251
+ if (message.searchText !== "") {
3252
+ obj.searchText = message.searchText;
3253
+ }
3254
+ if (message.since !== void 0) {
3255
+ obj.since = message.since.toISOString();
3256
+ }
3257
+ if (message.until !== void 0) {
3258
+ obj.until = message.until.toISOString();
3259
+ }
3260
+ if (message.bucketSecs !== 0) {
3261
+ obj.bucketSecs = Math.round(message.bucketSecs);
3262
+ }
3263
+ if (message.source !== 0) {
3264
+ obj.source = fileDescriptorToJSON(message.source);
3265
+ }
3266
+ return obj;
3267
+ },
3268
+ create(base) {
3269
+ return AppCountLogsRequest.fromPartial(base ?? {});
3270
+ },
3271
+ fromPartial(object) {
3272
+ const message = createBaseAppCountLogsRequest();
3273
+ message.appId = object.appId ?? "";
3274
+ message.taskId = object.taskId ?? "";
3275
+ message.functionId = object.functionId ?? "";
3276
+ message.functionCallId = object.functionCallId ?? "";
3277
+ message.sandboxId = object.sandboxId ?? "";
3278
+ message.searchText = object.searchText ?? "";
3279
+ message.since = object.since ?? void 0;
3280
+ message.until = object.until ?? void 0;
3281
+ message.bucketSecs = object.bucketSecs ?? 0;
3282
+ message.source = object.source ?? 0;
3283
+ return message;
3284
+ }
3285
+ };
3286
+ function createBaseAppCountLogsResponse() {
3287
+ return { appId: "", buckets: [] };
3288
+ }
3289
+ var AppCountLogsResponse = {
3290
+ encode(message, writer = new BinaryWriter()) {
3291
+ if (message.appId !== "") {
3292
+ writer.uint32(10).string(message.appId);
3293
+ }
3294
+ for (const v of message.buckets) {
3295
+ AppCountLogsResponse_LogBucket.encode(v, writer.uint32(18).fork()).join();
3296
+ }
3297
+ return writer;
3298
+ },
3299
+ decode(input, length) {
3300
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3301
+ let end = length === void 0 ? reader.len : reader.pos + length;
3302
+ const message = createBaseAppCountLogsResponse();
3303
+ while (reader.pos < end) {
3304
+ const tag = reader.uint32();
3305
+ switch (tag >>> 3) {
3306
+ case 1: {
3307
+ if (tag !== 10) {
3308
+ break;
3309
+ }
3310
+ message.appId = reader.string();
3311
+ continue;
3312
+ }
3313
+ case 2: {
3314
+ if (tag !== 18) {
3315
+ break;
3316
+ }
3317
+ message.buckets.push(AppCountLogsResponse_LogBucket.decode(reader, reader.uint32()));
3318
+ continue;
3319
+ }
3320
+ }
3321
+ if ((tag & 7) === 4 || tag === 0) {
3322
+ break;
3323
+ }
3324
+ reader.skip(tag & 7);
3325
+ }
3326
+ return message;
3327
+ },
3328
+ fromJSON(object) {
3329
+ return {
3330
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
3331
+ buckets: globalThis.Array.isArray(object?.buckets) ? object.buckets.map((e) => AppCountLogsResponse_LogBucket.fromJSON(e)) : []
3332
+ };
3333
+ },
3334
+ toJSON(message) {
3335
+ const obj = {};
3336
+ if (message.appId !== "") {
3337
+ obj.appId = message.appId;
3338
+ }
3339
+ if (message.buckets?.length) {
3340
+ obj.buckets = message.buckets.map((e) => AppCountLogsResponse_LogBucket.toJSON(e));
3341
+ }
3342
+ return obj;
3343
+ },
3344
+ create(base) {
3345
+ return AppCountLogsResponse.fromPartial(base ?? {});
3346
+ },
3347
+ fromPartial(object) {
3348
+ const message = createBaseAppCountLogsResponse();
3349
+ message.appId = object.appId ?? "";
3350
+ message.buckets = object.buckets?.map((e) => AppCountLogsResponse_LogBucket.fromPartial(e)) || [];
3351
+ return message;
3352
+ }
3353
+ };
3354
+ function createBaseAppCountLogsResponse_LogBucket() {
3355
+ return { bucketStartAt: void 0, stdoutLogs: 0, stderrLogs: 0, systemLogs: 0 };
3356
+ }
3357
+ var AppCountLogsResponse_LogBucket = {
3358
+ encode(message, writer = new BinaryWriter()) {
3359
+ if (message.bucketStartAt !== void 0) {
3360
+ Timestamp.encode(toTimestamp(message.bucketStartAt), writer.uint32(10).fork()).join();
3361
+ }
3362
+ if (message.stdoutLogs !== 0) {
3363
+ writer.uint32(16).uint64(message.stdoutLogs);
3364
+ }
3365
+ if (message.stderrLogs !== 0) {
3366
+ writer.uint32(24).uint64(message.stderrLogs);
3367
+ }
3368
+ if (message.systemLogs !== 0) {
3369
+ writer.uint32(32).uint64(message.systemLogs);
3370
+ }
3371
+ return writer;
3372
+ },
3373
+ decode(input, length) {
3374
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3375
+ let end = length === void 0 ? reader.len : reader.pos + length;
3376
+ const message = createBaseAppCountLogsResponse_LogBucket();
3377
+ while (reader.pos < end) {
3378
+ const tag = reader.uint32();
3379
+ switch (tag >>> 3) {
3380
+ case 1: {
3381
+ if (tag !== 10) {
3382
+ break;
3383
+ }
3384
+ message.bucketStartAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3385
+ continue;
3386
+ }
3387
+ case 2: {
3388
+ if (tag !== 16) {
3389
+ break;
3390
+ }
3391
+ message.stdoutLogs = longToNumber2(reader.uint64());
3392
+ continue;
3393
+ }
3394
+ case 3: {
3395
+ if (tag !== 24) {
3396
+ break;
3397
+ }
3398
+ message.stderrLogs = longToNumber2(reader.uint64());
3399
+ continue;
3400
+ }
3401
+ case 4: {
3402
+ if (tag !== 32) {
3403
+ break;
3404
+ }
3405
+ message.systemLogs = longToNumber2(reader.uint64());
3406
+ continue;
3407
+ }
3408
+ }
3409
+ if ((tag & 7) === 4 || tag === 0) {
3410
+ break;
3411
+ }
3412
+ reader.skip(tag & 7);
3413
+ }
3414
+ return message;
3415
+ },
3416
+ fromJSON(object) {
3417
+ return {
3418
+ bucketStartAt: isSet4(object.bucketStartAt) ? fromJsonTimestamp(object.bucketStartAt) : void 0,
3419
+ stdoutLogs: isSet4(object.stdoutLogs) ? globalThis.Number(object.stdoutLogs) : 0,
3420
+ stderrLogs: isSet4(object.stderrLogs) ? globalThis.Number(object.stderrLogs) : 0,
3421
+ systemLogs: isSet4(object.systemLogs) ? globalThis.Number(object.systemLogs) : 0
3422
+ };
3423
+ },
3424
+ toJSON(message) {
3425
+ const obj = {};
3426
+ if (message.bucketStartAt !== void 0) {
3427
+ obj.bucketStartAt = message.bucketStartAt.toISOString();
3428
+ }
3429
+ if (message.stdoutLogs !== 0) {
3430
+ obj.stdoutLogs = Math.round(message.stdoutLogs);
3431
+ }
3432
+ if (message.stderrLogs !== 0) {
3433
+ obj.stderrLogs = Math.round(message.stderrLogs);
3434
+ }
3435
+ if (message.systemLogs !== 0) {
3436
+ obj.systemLogs = Math.round(message.systemLogs);
3437
+ }
3438
+ return obj;
3439
+ },
3440
+ create(base) {
3441
+ return AppCountLogsResponse_LogBucket.fromPartial(base ?? {});
3442
+ },
3443
+ fromPartial(object) {
3444
+ const message = createBaseAppCountLogsResponse_LogBucket();
3445
+ message.bucketStartAt = object.bucketStartAt ?? void 0;
3446
+ message.stdoutLogs = object.stdoutLogs ?? 0;
3447
+ message.stderrLogs = object.stderrLogs ?? 0;
3448
+ message.systemLogs = object.systemLogs ?? 0;
3449
+ return message;
3450
+ }
3451
+ };
3087
3452
  function createBaseAppCreateRequest() {
3088
3453
  return { clientId: "", description: "", environmentName: "", appState: 0, tags: {} };
3089
3454
  }
@@ -3832,6 +4197,258 @@ var AppDeploymentHistoryResponse = {
3832
4197
  return message;
3833
4198
  }
3834
4199
  };
4200
+ function createBaseAppFetchLogsRequest() {
4201
+ return {
4202
+ appId: "",
4203
+ since: void 0,
4204
+ until: void 0,
4205
+ limit: 0,
4206
+ source: 0,
4207
+ functionId: "",
4208
+ functionCallId: "",
4209
+ taskId: "",
4210
+ sandboxId: "",
4211
+ searchText: ""
4212
+ };
4213
+ }
4214
+ var AppFetchLogsRequest = {
4215
+ encode(message, writer = new BinaryWriter()) {
4216
+ if (message.appId !== "") {
4217
+ writer.uint32(10).string(message.appId);
4218
+ }
4219
+ if (message.since !== void 0) {
4220
+ Timestamp.encode(toTimestamp(message.since), writer.uint32(18).fork()).join();
4221
+ }
4222
+ if (message.until !== void 0) {
4223
+ Timestamp.encode(toTimestamp(message.until), writer.uint32(26).fork()).join();
4224
+ }
4225
+ if (message.limit !== 0) {
4226
+ writer.uint32(32).uint32(message.limit);
4227
+ }
4228
+ if (message.source !== 0) {
4229
+ writer.uint32(40).int32(message.source);
4230
+ }
4231
+ if (message.functionId !== "") {
4232
+ writer.uint32(50).string(message.functionId);
4233
+ }
4234
+ if (message.functionCallId !== "") {
4235
+ writer.uint32(58).string(message.functionCallId);
4236
+ }
4237
+ if (message.taskId !== "") {
4238
+ writer.uint32(66).string(message.taskId);
4239
+ }
4240
+ if (message.sandboxId !== "") {
4241
+ writer.uint32(74).string(message.sandboxId);
4242
+ }
4243
+ if (message.searchText !== "") {
4244
+ writer.uint32(82).string(message.searchText);
4245
+ }
4246
+ return writer;
4247
+ },
4248
+ decode(input, length) {
4249
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4250
+ let end = length === void 0 ? reader.len : reader.pos + length;
4251
+ const message = createBaseAppFetchLogsRequest();
4252
+ while (reader.pos < end) {
4253
+ const tag = reader.uint32();
4254
+ switch (tag >>> 3) {
4255
+ case 1: {
4256
+ if (tag !== 10) {
4257
+ break;
4258
+ }
4259
+ message.appId = reader.string();
4260
+ continue;
4261
+ }
4262
+ case 2: {
4263
+ if (tag !== 18) {
4264
+ break;
4265
+ }
4266
+ message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4267
+ continue;
4268
+ }
4269
+ case 3: {
4270
+ if (tag !== 26) {
4271
+ break;
4272
+ }
4273
+ message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4274
+ continue;
4275
+ }
4276
+ case 4: {
4277
+ if (tag !== 32) {
4278
+ break;
4279
+ }
4280
+ message.limit = reader.uint32();
4281
+ continue;
4282
+ }
4283
+ case 5: {
4284
+ if (tag !== 40) {
4285
+ break;
4286
+ }
4287
+ message.source = reader.int32();
4288
+ continue;
4289
+ }
4290
+ case 6: {
4291
+ if (tag !== 50) {
4292
+ break;
4293
+ }
4294
+ message.functionId = reader.string();
4295
+ continue;
4296
+ }
4297
+ case 7: {
4298
+ if (tag !== 58) {
4299
+ break;
4300
+ }
4301
+ message.functionCallId = reader.string();
4302
+ continue;
4303
+ }
4304
+ case 8: {
4305
+ if (tag !== 66) {
4306
+ break;
4307
+ }
4308
+ message.taskId = reader.string();
4309
+ continue;
4310
+ }
4311
+ case 9: {
4312
+ if (tag !== 74) {
4313
+ break;
4314
+ }
4315
+ message.sandboxId = reader.string();
4316
+ continue;
4317
+ }
4318
+ case 10: {
4319
+ if (tag !== 82) {
4320
+ break;
4321
+ }
4322
+ message.searchText = reader.string();
4323
+ continue;
4324
+ }
4325
+ }
4326
+ if ((tag & 7) === 4 || tag === 0) {
4327
+ break;
4328
+ }
4329
+ reader.skip(tag & 7);
4330
+ }
4331
+ return message;
4332
+ },
4333
+ fromJSON(object) {
4334
+ return {
4335
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
4336
+ since: isSet4(object.since) ? fromJsonTimestamp(object.since) : void 0,
4337
+ until: isSet4(object.until) ? fromJsonTimestamp(object.until) : void 0,
4338
+ limit: isSet4(object.limit) ? globalThis.Number(object.limit) : 0,
4339
+ source: isSet4(object.source) ? fileDescriptorFromJSON(object.source) : 0,
4340
+ functionId: isSet4(object.functionId) ? globalThis.String(object.functionId) : "",
4341
+ functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
4342
+ taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
4343
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
4344
+ searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : ""
4345
+ };
4346
+ },
4347
+ toJSON(message) {
4348
+ const obj = {};
4349
+ if (message.appId !== "") {
4350
+ obj.appId = message.appId;
4351
+ }
4352
+ if (message.since !== void 0) {
4353
+ obj.since = message.since.toISOString();
4354
+ }
4355
+ if (message.until !== void 0) {
4356
+ obj.until = message.until.toISOString();
4357
+ }
4358
+ if (message.limit !== 0) {
4359
+ obj.limit = Math.round(message.limit);
4360
+ }
4361
+ if (message.source !== 0) {
4362
+ obj.source = fileDescriptorToJSON(message.source);
4363
+ }
4364
+ if (message.functionId !== "") {
4365
+ obj.functionId = message.functionId;
4366
+ }
4367
+ if (message.functionCallId !== "") {
4368
+ obj.functionCallId = message.functionCallId;
4369
+ }
4370
+ if (message.taskId !== "") {
4371
+ obj.taskId = message.taskId;
4372
+ }
4373
+ if (message.sandboxId !== "") {
4374
+ obj.sandboxId = message.sandboxId;
4375
+ }
4376
+ if (message.searchText !== "") {
4377
+ obj.searchText = message.searchText;
4378
+ }
4379
+ return obj;
4380
+ },
4381
+ create(base) {
4382
+ return AppFetchLogsRequest.fromPartial(base ?? {});
4383
+ },
4384
+ fromPartial(object) {
4385
+ const message = createBaseAppFetchLogsRequest();
4386
+ message.appId = object.appId ?? "";
4387
+ message.since = object.since ?? void 0;
4388
+ message.until = object.until ?? void 0;
4389
+ message.limit = object.limit ?? 0;
4390
+ message.source = object.source ?? 0;
4391
+ message.functionId = object.functionId ?? "";
4392
+ message.functionCallId = object.functionCallId ?? "";
4393
+ message.taskId = object.taskId ?? "";
4394
+ message.sandboxId = object.sandboxId ?? "";
4395
+ message.searchText = object.searchText ?? "";
4396
+ return message;
4397
+ }
4398
+ };
4399
+ function createBaseAppFetchLogsResponse() {
4400
+ return { batches: [] };
4401
+ }
4402
+ var AppFetchLogsResponse = {
4403
+ encode(message, writer = new BinaryWriter()) {
4404
+ for (const v of message.batches) {
4405
+ TaskLogsBatch.encode(v, writer.uint32(10).fork()).join();
4406
+ }
4407
+ return writer;
4408
+ },
4409
+ decode(input, length) {
4410
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4411
+ let end = length === void 0 ? reader.len : reader.pos + length;
4412
+ const message = createBaseAppFetchLogsResponse();
4413
+ while (reader.pos < end) {
4414
+ const tag = reader.uint32();
4415
+ switch (tag >>> 3) {
4416
+ case 1: {
4417
+ if (tag !== 10) {
4418
+ break;
4419
+ }
4420
+ message.batches.push(TaskLogsBatch.decode(reader, reader.uint32()));
4421
+ continue;
4422
+ }
4423
+ }
4424
+ if ((tag & 7) === 4 || tag === 0) {
4425
+ break;
4426
+ }
4427
+ reader.skip(tag & 7);
4428
+ }
4429
+ return message;
4430
+ },
4431
+ fromJSON(object) {
4432
+ return {
4433
+ batches: globalThis.Array.isArray(object?.batches) ? object.batches.map((e) => TaskLogsBatch.fromJSON(e)) : []
4434
+ };
4435
+ },
4436
+ toJSON(message) {
4437
+ const obj = {};
4438
+ if (message.batches?.length) {
4439
+ obj.batches = message.batches.map((e) => TaskLogsBatch.toJSON(e));
4440
+ }
4441
+ return obj;
4442
+ },
4443
+ create(base) {
4444
+ return AppFetchLogsResponse.fromPartial(base ?? {});
4445
+ },
4446
+ fromPartial(object) {
4447
+ const message = createBaseAppFetchLogsResponse();
4448
+ message.batches = object.batches?.map((e) => TaskLogsBatch.fromPartial(e)) || [];
4449
+ return message;
4450
+ }
4451
+ };
3835
4452
  function createBaseAppGetByDeploymentNameRequest() {
3836
4453
  return { name: "", environmentName: "" };
3837
4454
  }
@@ -6014,7 +6631,7 @@ var AppPublishRequest_TagsEntry = {
6014
6631
  }
6015
6632
  };
6016
6633
  function createBaseAppPublishResponse() {
6017
- return { url: "", serverWarnings: [] };
6634
+ return { url: "", serverWarnings: [], deployedAt: 0 };
6018
6635
  }
6019
6636
  var AppPublishResponse = {
6020
6637
  encode(message, writer = new BinaryWriter()) {
@@ -6024,6 +6641,9 @@ var AppPublishResponse = {
6024
6641
  for (const v of message.serverWarnings) {
6025
6642
  Warning.encode(v, writer.uint32(26).fork()).join();
6026
6643
  }
6644
+ if (message.deployedAt !== 0) {
6645
+ writer.uint32(33).double(message.deployedAt);
6646
+ }
6027
6647
  return writer;
6028
6648
  },
6029
6649
  decode(input, length) {
@@ -6047,6 +6667,13 @@ var AppPublishResponse = {
6047
6667
  message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
6048
6668
  continue;
6049
6669
  }
6670
+ case 4: {
6671
+ if (tag !== 33) {
6672
+ break;
6673
+ }
6674
+ message.deployedAt = reader.double();
6675
+ continue;
6676
+ }
6050
6677
  }
6051
6678
  if ((tag & 7) === 4 || tag === 0) {
6052
6679
  break;
@@ -6058,7 +6685,8 @@ var AppPublishResponse = {
6058
6685
  fromJSON(object) {
6059
6686
  return {
6060
6687
  url: isSet4(object.url) ? globalThis.String(object.url) : "",
6061
- serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : []
6688
+ serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
6689
+ deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
6062
6690
  };
6063
6691
  },
6064
6692
  toJSON(message) {
@@ -6069,6 +6697,9 @@ var AppPublishResponse = {
6069
6697
  if (message.serverWarnings?.length) {
6070
6698
  obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
6071
6699
  }
6700
+ if (message.deployedAt !== 0) {
6701
+ obj.deployedAt = message.deployedAt;
6702
+ }
6072
6703
  return obj;
6073
6704
  },
6074
6705
  create(base) {
@@ -6078,6 +6709,7 @@ var AppPublishResponse = {
6078
6709
  const message = createBaseAppPublishResponse();
6079
6710
  message.url = object.url ?? "";
6080
6711
  message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
6712
+ message.deployedAt = object.deployedAt ?? 0;
6081
6713
  return message;
6082
6714
  }
6083
6715
  };
@@ -32635,6 +33267,142 @@ var SandboxCreateResponse = {
32635
33267
  return message;
32636
33268
  }
32637
33269
  };
33270
+ function createBaseSandboxCreateV2Request() {
33271
+ return { appId: "", definition: void 0 };
33272
+ }
33273
+ var SandboxCreateV2Request = {
33274
+ encode(message, writer = new BinaryWriter()) {
33275
+ if (message.appId !== "") {
33276
+ writer.uint32(10).string(message.appId);
33277
+ }
33278
+ if (message.definition !== void 0) {
33279
+ Sandbox.encode(message.definition, writer.uint32(18).fork()).join();
33280
+ }
33281
+ return writer;
33282
+ },
33283
+ decode(input, length) {
33284
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33285
+ let end = length === void 0 ? reader.len : reader.pos + length;
33286
+ const message = createBaseSandboxCreateV2Request();
33287
+ while (reader.pos < end) {
33288
+ const tag = reader.uint32();
33289
+ switch (tag >>> 3) {
33290
+ case 1: {
33291
+ if (tag !== 10) {
33292
+ break;
33293
+ }
33294
+ message.appId = reader.string();
33295
+ continue;
33296
+ }
33297
+ case 2: {
33298
+ if (tag !== 18) {
33299
+ break;
33300
+ }
33301
+ message.definition = Sandbox.decode(reader, reader.uint32());
33302
+ continue;
33303
+ }
33304
+ }
33305
+ if ((tag & 7) === 4 || tag === 0) {
33306
+ break;
33307
+ }
33308
+ reader.skip(tag & 7);
33309
+ }
33310
+ return message;
33311
+ },
33312
+ fromJSON(object) {
33313
+ return {
33314
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
33315
+ definition: isSet4(object.definition) ? Sandbox.fromJSON(object.definition) : void 0
33316
+ };
33317
+ },
33318
+ toJSON(message) {
33319
+ const obj = {};
33320
+ if (message.appId !== "") {
33321
+ obj.appId = message.appId;
33322
+ }
33323
+ if (message.definition !== void 0) {
33324
+ obj.definition = Sandbox.toJSON(message.definition);
33325
+ }
33326
+ return obj;
33327
+ },
33328
+ create(base) {
33329
+ return SandboxCreateV2Request.fromPartial(base ?? {});
33330
+ },
33331
+ fromPartial(object) {
33332
+ const message = createBaseSandboxCreateV2Request();
33333
+ message.appId = object.appId ?? "";
33334
+ message.definition = object.definition !== void 0 && object.definition !== null ? Sandbox.fromPartial(object.definition) : void 0;
33335
+ return message;
33336
+ }
33337
+ };
33338
+ function createBaseSandboxCreateV2Response() {
33339
+ return { sandboxId: "", tunnels: [] };
33340
+ }
33341
+ var SandboxCreateV2Response = {
33342
+ encode(message, writer = new BinaryWriter()) {
33343
+ if (message.sandboxId !== "") {
33344
+ writer.uint32(10).string(message.sandboxId);
33345
+ }
33346
+ for (const v of message.tunnels) {
33347
+ TunnelData.encode(v, writer.uint32(18).fork()).join();
33348
+ }
33349
+ return writer;
33350
+ },
33351
+ decode(input, length) {
33352
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33353
+ let end = length === void 0 ? reader.len : reader.pos + length;
33354
+ const message = createBaseSandboxCreateV2Response();
33355
+ while (reader.pos < end) {
33356
+ const tag = reader.uint32();
33357
+ switch (tag >>> 3) {
33358
+ case 1: {
33359
+ if (tag !== 10) {
33360
+ break;
33361
+ }
33362
+ message.sandboxId = reader.string();
33363
+ continue;
33364
+ }
33365
+ case 2: {
33366
+ if (tag !== 18) {
33367
+ break;
33368
+ }
33369
+ message.tunnels.push(TunnelData.decode(reader, reader.uint32()));
33370
+ continue;
33371
+ }
33372
+ }
33373
+ if ((tag & 7) === 4 || tag === 0) {
33374
+ break;
33375
+ }
33376
+ reader.skip(tag & 7);
33377
+ }
33378
+ return message;
33379
+ },
33380
+ fromJSON(object) {
33381
+ return {
33382
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
33383
+ tunnels: globalThis.Array.isArray(object?.tunnels) ? object.tunnels.map((e) => TunnelData.fromJSON(e)) : []
33384
+ };
33385
+ },
33386
+ toJSON(message) {
33387
+ const obj = {};
33388
+ if (message.sandboxId !== "") {
33389
+ obj.sandboxId = message.sandboxId;
33390
+ }
33391
+ if (message.tunnels?.length) {
33392
+ obj.tunnels = message.tunnels.map((e) => TunnelData.toJSON(e));
33393
+ }
33394
+ return obj;
33395
+ },
33396
+ create(base) {
33397
+ return SandboxCreateV2Response.fromPartial(base ?? {});
33398
+ },
33399
+ fromPartial(object) {
33400
+ const message = createBaseSandboxCreateV2Response();
33401
+ message.sandboxId = object.sandboxId ?? "";
33402
+ message.tunnels = object.tunnels?.map((e) => TunnelData.fromPartial(e)) || [];
33403
+ return message;
33404
+ }
33405
+ };
32638
33406
  function createBaseSandboxGetFromNameRequest() {
32639
33407
  return { sandboxName: "", environmentName: "", appName: "" };
32640
33408
  }
@@ -38059,13 +38827,16 @@ var TaskInfo = {
38059
38827
  }
38060
38828
  };
38061
38829
  function createBaseTaskListRequest() {
38062
- return { environmentName: "" };
38830
+ return { environmentName: "", appId: "" };
38063
38831
  }
38064
38832
  var TaskListRequest = {
38065
38833
  encode(message, writer = new BinaryWriter()) {
38066
38834
  if (message.environmentName !== "") {
38067
38835
  writer.uint32(10).string(message.environmentName);
38068
38836
  }
38837
+ if (message.appId !== "") {
38838
+ writer.uint32(18).string(message.appId);
38839
+ }
38069
38840
  return writer;
38070
38841
  },
38071
38842
  decode(input, length) {
@@ -38082,6 +38853,13 @@ var TaskListRequest = {
38082
38853
  message.environmentName = reader.string();
38083
38854
  continue;
38084
38855
  }
38856
+ case 2: {
38857
+ if (tag !== 18) {
38858
+ break;
38859
+ }
38860
+ message.appId = reader.string();
38861
+ continue;
38862
+ }
38085
38863
  }
38086
38864
  if ((tag & 7) === 4 || tag === 0) {
38087
38865
  break;
@@ -38091,13 +38869,19 @@ var TaskListRequest = {
38091
38869
  return message;
38092
38870
  },
38093
38871
  fromJSON(object) {
38094
- return { environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "" };
38872
+ return {
38873
+ environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
38874
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : ""
38875
+ };
38095
38876
  },
38096
38877
  toJSON(message) {
38097
38878
  const obj = {};
38098
38879
  if (message.environmentName !== "") {
38099
38880
  obj.environmentName = message.environmentName;
38100
38881
  }
38882
+ if (message.appId !== "") {
38883
+ obj.appId = message.appId;
38884
+ }
38101
38885
  return obj;
38102
38886
  },
38103
38887
  create(base) {
@@ -38106,6 +38890,7 @@ var TaskListRequest = {
38106
38890
  fromPartial(object) {
38107
38891
  const message = createBaseTaskListRequest();
38108
38892
  message.environmentName = object.environmentName ?? "";
38893
+ message.appId = object.appId ?? "";
38109
38894
  return message;
38110
38895
  }
38111
38896
  };
@@ -38694,7 +39479,7 @@ var TaskResultRequest = {
38694
39479
  }
38695
39480
  };
38696
39481
  function createBaseTaskStats() {
38697
- return { taskId: "", appId: "", appDescription: "", startedAt: 0 };
39482
+ return { taskId: "", appId: "", appDescription: "", startedAt: 0, enqueuedAt: 0 };
38698
39483
  }
38699
39484
  var TaskStats = {
38700
39485
  encode(message, writer = new BinaryWriter()) {
@@ -38710,6 +39495,9 @@ var TaskStats = {
38710
39495
  if (message.startedAt !== 0) {
38711
39496
  writer.uint32(33).double(message.startedAt);
38712
39497
  }
39498
+ if (message.enqueuedAt !== 0) {
39499
+ writer.uint32(41).double(message.enqueuedAt);
39500
+ }
38713
39501
  return writer;
38714
39502
  },
38715
39503
  decode(input, length) {
@@ -38747,6 +39535,13 @@ var TaskStats = {
38747
39535
  message.startedAt = reader.double();
38748
39536
  continue;
38749
39537
  }
39538
+ case 5: {
39539
+ if (tag !== 41) {
39540
+ break;
39541
+ }
39542
+ message.enqueuedAt = reader.double();
39543
+ continue;
39544
+ }
38750
39545
  }
38751
39546
  if ((tag & 7) === 4 || tag === 0) {
38752
39547
  break;
@@ -38760,7 +39555,8 @@ var TaskStats = {
38760
39555
  taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
38761
39556
  appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
38762
39557
  appDescription: isSet4(object.appDescription) ? globalThis.String(object.appDescription) : "",
38763
- startedAt: isSet4(object.startedAt) ? globalThis.Number(object.startedAt) : 0
39558
+ startedAt: isSet4(object.startedAt) ? globalThis.Number(object.startedAt) : 0,
39559
+ enqueuedAt: isSet4(object.enqueuedAt) ? globalThis.Number(object.enqueuedAt) : 0
38764
39560
  };
38765
39561
  },
38766
39562
  toJSON(message) {
@@ -38777,6 +39573,9 @@ var TaskStats = {
38777
39573
  if (message.startedAt !== 0) {
38778
39574
  obj.startedAt = message.startedAt;
38779
39575
  }
39576
+ if (message.enqueuedAt !== 0) {
39577
+ obj.enqueuedAt = message.enqueuedAt;
39578
+ }
38780
39579
  return obj;
38781
39580
  },
38782
39581
  create(base) {
@@ -38788,6 +39587,7 @@ var TaskStats = {
38788
39587
  message.appId = object.appId ?? "";
38789
39588
  message.appDescription = object.appDescription ?? "";
38790
39589
  message.startedAt = object.startedAt ?? 0;
39590
+ message.enqueuedAt = object.enqueuedAt ?? 0;
38791
39591
  return message;
38792
39592
  }
38793
39593
  };
@@ -43438,6 +44238,14 @@ var ModalClientDefinition = {
43438
44238
  responseStream: false,
43439
44239
  options: {}
43440
44240
  },
44241
+ appCountLogs: {
44242
+ name: "AppCountLogs",
44243
+ requestType: AppCountLogsRequest,
44244
+ requestStream: false,
44245
+ responseType: AppCountLogsResponse,
44246
+ responseStream: false,
44247
+ options: {}
44248
+ },
43441
44249
  appCreate: {
43442
44250
  name: "AppCreate",
43443
44251
  requestType: AppCreateRequest,
@@ -43462,6 +44270,14 @@ var ModalClientDefinition = {
43462
44270
  responseStream: false,
43463
44271
  options: {}
43464
44272
  },
44273
+ appFetchLogs: {
44274
+ name: "AppFetchLogs",
44275
+ requestType: AppFetchLogsRequest,
44276
+ requestStream: false,
44277
+ responseType: AppFetchLogsResponse,
44278
+ responseStream: false,
44279
+ options: {}
44280
+ },
43465
44281
  appGetByDeploymentName: {
43466
44282
  name: "AppGetByDeploymentName",
43467
44283
  requestType: AppGetByDeploymentNameRequest,
@@ -44397,6 +45213,14 @@ var ModalClientDefinition = {
44397
45213
  responseStream: false,
44398
45214
  options: {}
44399
45215
  },
45216
+ sandboxCreateV2: {
45217
+ name: "SandboxCreateV2",
45218
+ requestType: SandboxCreateV2Request,
45219
+ requestStream: false,
45220
+ responseType: SandboxCreateV2Response,
45221
+ responseStream: false,
45222
+ options: {}
45223
+ },
44400
45224
  sandboxGetFromName: {
44401
45225
  name: "SandboxGetFromName",
44402
45226
  requestType: SandboxGetFromNameRequest,
@@ -50285,7 +51109,7 @@ var AuthTokenManager = class {
50285
51109
 
50286
51110
  // src/version.ts
50287
51111
  function getSDKVersion() {
50288
- return true ? "0.7.3-dev.1" : "0.0.0";
51112
+ return true ? "0.7.3" : "0.0.0";
50289
51113
  }
50290
51114
 
50291
51115
  // src/logger.ts