modal 0.11.1-dev.1 → 0.11.1-dev.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 +262 -19
- package/dist/index.d.cts +30 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +262 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7564,7 +7564,16 @@ var AppListResponse = {
|
|
|
7564
7564
|
}
|
|
7565
7565
|
};
|
|
7566
7566
|
function createBaseAppListResponse_AppListItem() {
|
|
7567
|
-
return {
|
|
7567
|
+
return {
|
|
7568
|
+
appId: "",
|
|
7569
|
+
description: "",
|
|
7570
|
+
state: 0,
|
|
7571
|
+
createdAt: 0,
|
|
7572
|
+
stoppedAt: 0,
|
|
7573
|
+
nRunningTasks: 0,
|
|
7574
|
+
name: "",
|
|
7575
|
+
metadata: void 0
|
|
7576
|
+
};
|
|
7568
7577
|
}
|
|
7569
7578
|
var AppListResponse_AppListItem = {
|
|
7570
7579
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -7589,6 +7598,9 @@ var AppListResponse_AppListItem = {
|
|
|
7589
7598
|
if (message.name !== "") {
|
|
7590
7599
|
writer.uint32(82).string(message.name);
|
|
7591
7600
|
}
|
|
7601
|
+
if (message.metadata !== void 0) {
|
|
7602
|
+
AppHandleMetadata.encode(message.metadata, writer.uint32(90).fork()).join();
|
|
7603
|
+
}
|
|
7592
7604
|
return writer;
|
|
7593
7605
|
},
|
|
7594
7606
|
decode(input, length) {
|
|
@@ -7647,6 +7659,13 @@ var AppListResponse_AppListItem = {
|
|
|
7647
7659
|
message.name = reader.string();
|
|
7648
7660
|
continue;
|
|
7649
7661
|
}
|
|
7662
|
+
case 11: {
|
|
7663
|
+
if (tag !== 90) {
|
|
7664
|
+
break;
|
|
7665
|
+
}
|
|
7666
|
+
message.metadata = AppHandleMetadata.decode(reader, reader.uint32());
|
|
7667
|
+
continue;
|
|
7668
|
+
}
|
|
7650
7669
|
}
|
|
7651
7670
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7652
7671
|
break;
|
|
@@ -7663,7 +7682,8 @@ var AppListResponse_AppListItem = {
|
|
|
7663
7682
|
createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
7664
7683
|
stoppedAt: isSet5(object.stoppedAt) ? globalThis.Number(object.stoppedAt) : 0,
|
|
7665
7684
|
nRunningTasks: isSet5(object.nRunningTasks) ? globalThis.Number(object.nRunningTasks) : 0,
|
|
7666
|
-
name: isSet5(object.name) ? globalThis.String(object.name) : ""
|
|
7685
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : "",
|
|
7686
|
+
metadata: isSet5(object.metadata) ? AppHandleMetadata.fromJSON(object.metadata) : void 0
|
|
7667
7687
|
};
|
|
7668
7688
|
},
|
|
7669
7689
|
toJSON(message) {
|
|
@@ -7689,6 +7709,9 @@ var AppListResponse_AppListItem = {
|
|
|
7689
7709
|
if (message.name !== "") {
|
|
7690
7710
|
obj.name = message.name;
|
|
7691
7711
|
}
|
|
7712
|
+
if (message.metadata !== void 0) {
|
|
7713
|
+
obj.metadata = AppHandleMetadata.toJSON(message.metadata);
|
|
7714
|
+
}
|
|
7692
7715
|
return obj;
|
|
7693
7716
|
},
|
|
7694
7717
|
create(base) {
|
|
@@ -7703,6 +7726,7 @@ var AppListResponse_AppListItem = {
|
|
|
7703
7726
|
message.stoppedAt = object.stoppedAt ?? 0;
|
|
7704
7727
|
message.nRunningTasks = object.nRunningTasks ?? 0;
|
|
7705
7728
|
message.name = object.name ?? "";
|
|
7729
|
+
message.metadata = object.metadata !== void 0 && object.metadata !== null ? AppHandleMetadata.fromPartial(object.metadata) : void 0;
|
|
7706
7730
|
return message;
|
|
7707
7731
|
}
|
|
7708
7732
|
};
|
|
@@ -21177,7 +21201,8 @@ function createBaseEnvironmentListItem() {
|
|
|
21177
21201
|
spendLimitReached: false,
|
|
21178
21202
|
environmentType: 0,
|
|
21179
21203
|
defaultMemberRole: void 0,
|
|
21180
|
-
blockUnauthenticatedResources: void 0
|
|
21204
|
+
blockUnauthenticatedResources: void 0,
|
|
21205
|
+
effectiveRole: void 0
|
|
21181
21206
|
};
|
|
21182
21207
|
}
|
|
21183
21208
|
var EnvironmentListItem = {
|
|
@@ -21233,6 +21258,9 @@ var EnvironmentListItem = {
|
|
|
21233
21258
|
if (message.blockUnauthenticatedResources !== void 0) {
|
|
21234
21259
|
writer.uint32(136).bool(message.blockUnauthenticatedResources);
|
|
21235
21260
|
}
|
|
21261
|
+
if (message.effectiveRole !== void 0) {
|
|
21262
|
+
writer.uint32(144).int32(message.effectiveRole);
|
|
21263
|
+
}
|
|
21236
21264
|
return writer;
|
|
21237
21265
|
},
|
|
21238
21266
|
decode(input, length) {
|
|
@@ -21361,6 +21389,13 @@ var EnvironmentListItem = {
|
|
|
21361
21389
|
message.blockUnauthenticatedResources = reader.bool();
|
|
21362
21390
|
continue;
|
|
21363
21391
|
}
|
|
21392
|
+
case 18: {
|
|
21393
|
+
if (tag !== 144) {
|
|
21394
|
+
break;
|
|
21395
|
+
}
|
|
21396
|
+
message.effectiveRole = reader.int32();
|
|
21397
|
+
continue;
|
|
21398
|
+
}
|
|
21364
21399
|
}
|
|
21365
21400
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21366
21401
|
break;
|
|
@@ -21387,7 +21422,8 @@ var EnvironmentListItem = {
|
|
|
21387
21422
|
spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false,
|
|
21388
21423
|
environmentType: isSet5(object.environmentType) ? environmentTypeFromJSON(object.environmentType) : 0,
|
|
21389
21424
|
defaultMemberRole: isSet5(object.defaultMemberRole) ? environmentRoleFromJSON(object.defaultMemberRole) : void 0,
|
|
21390
|
-
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? globalThis.Boolean(object.blockUnauthenticatedResources) : void 0
|
|
21425
|
+
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? globalThis.Boolean(object.blockUnauthenticatedResources) : void 0,
|
|
21426
|
+
effectiveRole: isSet5(object.effectiveRole) ? environmentRoleFromJSON(object.effectiveRole) : void 0
|
|
21391
21427
|
};
|
|
21392
21428
|
},
|
|
21393
21429
|
toJSON(message) {
|
|
@@ -21443,6 +21479,9 @@ var EnvironmentListItem = {
|
|
|
21443
21479
|
if (message.blockUnauthenticatedResources !== void 0) {
|
|
21444
21480
|
obj.blockUnauthenticatedResources = message.blockUnauthenticatedResources;
|
|
21445
21481
|
}
|
|
21482
|
+
if (message.effectiveRole !== void 0) {
|
|
21483
|
+
obj.effectiveRole = environmentRoleToJSON(message.effectiveRole);
|
|
21484
|
+
}
|
|
21446
21485
|
return obj;
|
|
21447
21486
|
},
|
|
21448
21487
|
create(base) {
|
|
@@ -21467,6 +21506,7 @@ var EnvironmentListItem = {
|
|
|
21467
21506
|
message.environmentType = object.environmentType ?? 0;
|
|
21468
21507
|
message.defaultMemberRole = object.defaultMemberRole ?? void 0;
|
|
21469
21508
|
message.blockUnauthenticatedResources = object.blockUnauthenticatedResources ?? void 0;
|
|
21509
|
+
message.effectiveRole = object.effectiveRole ?? void 0;
|
|
21470
21510
|
return message;
|
|
21471
21511
|
}
|
|
21472
21512
|
};
|
|
@@ -29245,7 +29285,8 @@ function createBaseFunctionGetTimeRangeStatsResponse() {
|
|
|
29245
29285
|
containerErrorCount: 0,
|
|
29246
29286
|
containerCreatingAtEndCount: 0,
|
|
29247
29287
|
containerPercentileStats: {},
|
|
29248
|
-
variantCount: 0
|
|
29288
|
+
variantCount: 0,
|
|
29289
|
+
containerTotalCount: 0
|
|
29249
29290
|
};
|
|
29250
29291
|
}
|
|
29251
29292
|
var FunctionGetTimeRangeStatsResponse = {
|
|
@@ -29292,6 +29333,9 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29292
29333
|
if (message.variantCount !== 0) {
|
|
29293
29334
|
writer.uint32(96).uint32(message.variantCount);
|
|
29294
29335
|
}
|
|
29336
|
+
if (message.containerTotalCount !== 0) {
|
|
29337
|
+
writer.uint32(104).uint64(message.containerTotalCount);
|
|
29338
|
+
}
|
|
29295
29339
|
return writer;
|
|
29296
29340
|
},
|
|
29297
29341
|
decode(input, length) {
|
|
@@ -29394,6 +29438,13 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29394
29438
|
message.variantCount = reader.uint32();
|
|
29395
29439
|
continue;
|
|
29396
29440
|
}
|
|
29441
|
+
case 13: {
|
|
29442
|
+
if (tag !== 104) {
|
|
29443
|
+
break;
|
|
29444
|
+
}
|
|
29445
|
+
message.containerTotalCount = longToNumber2(reader.uint64());
|
|
29446
|
+
continue;
|
|
29447
|
+
}
|
|
29397
29448
|
}
|
|
29398
29449
|
if ((tag & 7) === 4 || tag === 0) {
|
|
29399
29450
|
break;
|
|
@@ -29427,7 +29478,8 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29427
29478
|
},
|
|
29428
29479
|
{}
|
|
29429
29480
|
) : {},
|
|
29430
|
-
variantCount: isSet5(object.variantCount) ? globalThis.Number(object.variantCount) : 0
|
|
29481
|
+
variantCount: isSet5(object.variantCount) ? globalThis.Number(object.variantCount) : 0,
|
|
29482
|
+
containerTotalCount: isSet5(object.containerTotalCount) ? globalThis.Number(object.containerTotalCount) : 0
|
|
29431
29483
|
};
|
|
29432
29484
|
},
|
|
29433
29485
|
toJSON(message) {
|
|
@@ -29480,6 +29532,9 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29480
29532
|
if (message.variantCount !== 0) {
|
|
29481
29533
|
obj.variantCount = Math.round(message.variantCount);
|
|
29482
29534
|
}
|
|
29535
|
+
if (message.containerTotalCount !== 0) {
|
|
29536
|
+
obj.containerTotalCount = Math.round(message.containerTotalCount);
|
|
29537
|
+
}
|
|
29483
29538
|
return obj;
|
|
29484
29539
|
},
|
|
29485
29540
|
create(base) {
|
|
@@ -29509,6 +29564,7 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29509
29564
|
return acc;
|
|
29510
29565
|
}, {});
|
|
29511
29566
|
message.variantCount = object.variantCount ?? 0;
|
|
29567
|
+
message.containerTotalCount = object.containerTotalCount ?? 0;
|
|
29512
29568
|
return message;
|
|
29513
29569
|
}
|
|
29514
29570
|
};
|
|
@@ -43437,7 +43493,8 @@ function createBaseSandboxContainerCreateV2Request() {
|
|
|
43437
43493
|
containerName: "",
|
|
43438
43494
|
definition: void 0,
|
|
43439
43495
|
ephemeralSecrets: void 0,
|
|
43440
|
-
cloudBucketMountCredentials: {}
|
|
43496
|
+
cloudBucketMountCredentials: {},
|
|
43497
|
+
secretSources: []
|
|
43441
43498
|
};
|
|
43442
43499
|
}
|
|
43443
43500
|
var SandboxContainerCreateV2Request = {
|
|
@@ -43460,6 +43517,9 @@ var SandboxContainerCreateV2Request = {
|
|
|
43460
43517
|
writer.uint32(42).fork()
|
|
43461
43518
|
).join();
|
|
43462
43519
|
});
|
|
43520
|
+
for (const v of message.secretSources) {
|
|
43521
|
+
SecretSource.encode(v, writer.uint32(50).fork()).join();
|
|
43522
|
+
}
|
|
43463
43523
|
return writer;
|
|
43464
43524
|
},
|
|
43465
43525
|
decode(input, length) {
|
|
@@ -43510,6 +43570,13 @@ var SandboxContainerCreateV2Request = {
|
|
|
43510
43570
|
}
|
|
43511
43571
|
continue;
|
|
43512
43572
|
}
|
|
43573
|
+
case 6: {
|
|
43574
|
+
if (tag !== 50) {
|
|
43575
|
+
break;
|
|
43576
|
+
}
|
|
43577
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
43578
|
+
continue;
|
|
43579
|
+
}
|
|
43513
43580
|
}
|
|
43514
43581
|
if ((tag & 7) === 4 || tag === 0) {
|
|
43515
43582
|
break;
|
|
@@ -43530,7 +43597,8 @@ var SandboxContainerCreateV2Request = {
|
|
|
43530
43597
|
return acc;
|
|
43531
43598
|
},
|
|
43532
43599
|
{}
|
|
43533
|
-
) : {}
|
|
43600
|
+
) : {},
|
|
43601
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
43534
43602
|
};
|
|
43535
43603
|
},
|
|
43536
43604
|
toJSON(message) {
|
|
@@ -43556,6 +43624,9 @@ var SandboxContainerCreateV2Request = {
|
|
|
43556
43624
|
});
|
|
43557
43625
|
}
|
|
43558
43626
|
}
|
|
43627
|
+
if (message.secretSources?.length) {
|
|
43628
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
43629
|
+
}
|
|
43559
43630
|
return obj;
|
|
43560
43631
|
},
|
|
43561
43632
|
create(base) {
|
|
@@ -43573,6 +43644,7 @@ var SandboxContainerCreateV2Request = {
|
|
|
43573
43644
|
}
|
|
43574
43645
|
return acc;
|
|
43575
43646
|
}, {});
|
|
43647
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
43576
43648
|
return message;
|
|
43577
43649
|
}
|
|
43578
43650
|
};
|
|
@@ -44030,7 +44102,14 @@ var SandboxCreateResponse = {
|
|
|
44030
44102
|
}
|
|
44031
44103
|
};
|
|
44032
44104
|
function createBaseSandboxCreateV2Request() {
|
|
44033
|
-
return {
|
|
44105
|
+
return {
|
|
44106
|
+
appId: "",
|
|
44107
|
+
definition: void 0,
|
|
44108
|
+
ephemeralSecrets: void 0,
|
|
44109
|
+
tags: [],
|
|
44110
|
+
cloudBucketMountCredentials: {},
|
|
44111
|
+
secretSources: []
|
|
44112
|
+
};
|
|
44034
44113
|
}
|
|
44035
44114
|
var SandboxCreateV2Request = {
|
|
44036
44115
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -44052,6 +44131,9 @@ var SandboxCreateV2Request = {
|
|
|
44052
44131
|
writer.uint32(42).fork()
|
|
44053
44132
|
).join();
|
|
44054
44133
|
});
|
|
44134
|
+
for (const v of message.secretSources) {
|
|
44135
|
+
SecretSource.encode(v, writer.uint32(50).fork()).join();
|
|
44136
|
+
}
|
|
44055
44137
|
return writer;
|
|
44056
44138
|
},
|
|
44057
44139
|
decode(input, length) {
|
|
@@ -44099,6 +44181,13 @@ var SandboxCreateV2Request = {
|
|
|
44099
44181
|
}
|
|
44100
44182
|
continue;
|
|
44101
44183
|
}
|
|
44184
|
+
case 6: {
|
|
44185
|
+
if (tag !== 50) {
|
|
44186
|
+
break;
|
|
44187
|
+
}
|
|
44188
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
44189
|
+
continue;
|
|
44190
|
+
}
|
|
44102
44191
|
}
|
|
44103
44192
|
if ((tag & 7) === 4 || tag === 0) {
|
|
44104
44193
|
break;
|
|
@@ -44119,7 +44208,8 @@ var SandboxCreateV2Request = {
|
|
|
44119
44208
|
return acc;
|
|
44120
44209
|
},
|
|
44121
44210
|
{}
|
|
44122
|
-
) : {}
|
|
44211
|
+
) : {},
|
|
44212
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
44123
44213
|
};
|
|
44124
44214
|
},
|
|
44125
44215
|
toJSON(message) {
|
|
@@ -44145,6 +44235,9 @@ var SandboxCreateV2Request = {
|
|
|
44145
44235
|
});
|
|
44146
44236
|
}
|
|
44147
44237
|
}
|
|
44238
|
+
if (message.secretSources?.length) {
|
|
44239
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
44240
|
+
}
|
|
44148
44241
|
return obj;
|
|
44149
44242
|
},
|
|
44150
44243
|
create(base) {
|
|
@@ -44162,6 +44255,7 @@ var SandboxCreateV2Request = {
|
|
|
44162
44255
|
}
|
|
44163
44256
|
return acc;
|
|
44164
44257
|
}, {});
|
|
44258
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
44165
44259
|
return message;
|
|
44166
44260
|
}
|
|
44167
44261
|
};
|
|
@@ -44234,7 +44328,14 @@ var SandboxCreateV2Request_CloudBucketMountCredentialsEntry = {
|
|
|
44234
44328
|
}
|
|
44235
44329
|
};
|
|
44236
44330
|
function createBaseSandboxCreateV2Response() {
|
|
44237
|
-
return {
|
|
44331
|
+
return {
|
|
44332
|
+
sandboxId: "",
|
|
44333
|
+
tunnels: [],
|
|
44334
|
+
taskId: "",
|
|
44335
|
+
metadata: void 0,
|
|
44336
|
+
commandRouterAccess: void 0,
|
|
44337
|
+
sandboxToken: ""
|
|
44338
|
+
};
|
|
44238
44339
|
}
|
|
44239
44340
|
var SandboxCreateV2Response = {
|
|
44240
44341
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -44253,6 +44354,9 @@ var SandboxCreateV2Response = {
|
|
|
44253
44354
|
if (message.commandRouterAccess !== void 0) {
|
|
44254
44355
|
CommandRouterAccess.encode(message.commandRouterAccess, writer.uint32(42).fork()).join();
|
|
44255
44356
|
}
|
|
44357
|
+
if (message.sandboxToken !== "") {
|
|
44358
|
+
writer.uint32(50).string(message.sandboxToken);
|
|
44359
|
+
}
|
|
44256
44360
|
return writer;
|
|
44257
44361
|
},
|
|
44258
44362
|
decode(input, length) {
|
|
@@ -44297,6 +44401,13 @@ var SandboxCreateV2Response = {
|
|
|
44297
44401
|
message.commandRouterAccess = CommandRouterAccess.decode(reader, reader.uint32());
|
|
44298
44402
|
continue;
|
|
44299
44403
|
}
|
|
44404
|
+
case 6: {
|
|
44405
|
+
if (tag !== 50) {
|
|
44406
|
+
break;
|
|
44407
|
+
}
|
|
44408
|
+
message.sandboxToken = reader.string();
|
|
44409
|
+
continue;
|
|
44410
|
+
}
|
|
44300
44411
|
}
|
|
44301
44412
|
if ((tag & 7) === 4 || tag === 0) {
|
|
44302
44413
|
break;
|
|
@@ -44311,7 +44422,8 @@ var SandboxCreateV2Response = {
|
|
|
44311
44422
|
tunnels: globalThis.Array.isArray(object?.tunnels) ? object.tunnels.map((e) => TunnelData.fromJSON(e)) : [],
|
|
44312
44423
|
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
44313
44424
|
metadata: isSet5(object.metadata) ? SandboxHandleMetadata.fromJSON(object.metadata) : void 0,
|
|
44314
|
-
commandRouterAccess: isSet5(object.commandRouterAccess) ? CommandRouterAccess.fromJSON(object.commandRouterAccess) : void 0
|
|
44425
|
+
commandRouterAccess: isSet5(object.commandRouterAccess) ? CommandRouterAccess.fromJSON(object.commandRouterAccess) : void 0,
|
|
44426
|
+
sandboxToken: isSet5(object.sandboxToken) ? globalThis.String(object.sandboxToken) : ""
|
|
44315
44427
|
};
|
|
44316
44428
|
},
|
|
44317
44429
|
toJSON(message) {
|
|
@@ -44331,6 +44443,9 @@ var SandboxCreateV2Response = {
|
|
|
44331
44443
|
if (message.commandRouterAccess !== void 0) {
|
|
44332
44444
|
obj.commandRouterAccess = CommandRouterAccess.toJSON(message.commandRouterAccess);
|
|
44333
44445
|
}
|
|
44446
|
+
if (message.sandboxToken !== "") {
|
|
44447
|
+
obj.sandboxToken = message.sandboxToken;
|
|
44448
|
+
}
|
|
44334
44449
|
return obj;
|
|
44335
44450
|
},
|
|
44336
44451
|
create(base) {
|
|
@@ -44343,6 +44458,7 @@ var SandboxCreateV2Response = {
|
|
|
44343
44458
|
message.taskId = object.taskId ?? "";
|
|
44344
44459
|
message.metadata = object.metadata !== void 0 && object.metadata !== null ? SandboxHandleMetadata.fromPartial(object.metadata) : void 0;
|
|
44345
44460
|
message.commandRouterAccess = object.commandRouterAccess !== void 0 && object.commandRouterAccess !== null ? CommandRouterAccess.fromPartial(object.commandRouterAccess) : void 0;
|
|
44461
|
+
message.sandboxToken = object.sandboxToken ?? "";
|
|
44346
44462
|
return message;
|
|
44347
44463
|
}
|
|
44348
44464
|
};
|
|
@@ -49153,6 +49269,74 @@ var SecretMetadata = {
|
|
|
49153
49269
|
return message;
|
|
49154
49270
|
}
|
|
49155
49271
|
};
|
|
49272
|
+
function createBaseSecretSource() {
|
|
49273
|
+
return { secretId: void 0, env: void 0 };
|
|
49274
|
+
}
|
|
49275
|
+
var SecretSource = {
|
|
49276
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49277
|
+
if (message.secretId !== void 0) {
|
|
49278
|
+
writer.uint32(10).string(message.secretId);
|
|
49279
|
+
}
|
|
49280
|
+
if (message.env !== void 0) {
|
|
49281
|
+
StringMap.encode(message.env, writer.uint32(18).fork()).join();
|
|
49282
|
+
}
|
|
49283
|
+
return writer;
|
|
49284
|
+
},
|
|
49285
|
+
decode(input, length) {
|
|
49286
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49287
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49288
|
+
const message = createBaseSecretSource();
|
|
49289
|
+
while (reader.pos < end) {
|
|
49290
|
+
const tag = reader.uint32();
|
|
49291
|
+
switch (tag >>> 3) {
|
|
49292
|
+
case 1: {
|
|
49293
|
+
if (tag !== 10) {
|
|
49294
|
+
break;
|
|
49295
|
+
}
|
|
49296
|
+
message.secretId = reader.string();
|
|
49297
|
+
continue;
|
|
49298
|
+
}
|
|
49299
|
+
case 2: {
|
|
49300
|
+
if (tag !== 18) {
|
|
49301
|
+
break;
|
|
49302
|
+
}
|
|
49303
|
+
message.env = StringMap.decode(reader, reader.uint32());
|
|
49304
|
+
continue;
|
|
49305
|
+
}
|
|
49306
|
+
}
|
|
49307
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49308
|
+
break;
|
|
49309
|
+
}
|
|
49310
|
+
reader.skip(tag & 7);
|
|
49311
|
+
}
|
|
49312
|
+
return message;
|
|
49313
|
+
},
|
|
49314
|
+
fromJSON(object) {
|
|
49315
|
+
return {
|
|
49316
|
+
secretId: isSet5(object.secretId) ? globalThis.String(object.secretId) : void 0,
|
|
49317
|
+
env: isSet5(object.env) ? StringMap.fromJSON(object.env) : void 0
|
|
49318
|
+
};
|
|
49319
|
+
},
|
|
49320
|
+
toJSON(message) {
|
|
49321
|
+
const obj = {};
|
|
49322
|
+
if (message.secretId !== void 0) {
|
|
49323
|
+
obj.secretId = message.secretId;
|
|
49324
|
+
}
|
|
49325
|
+
if (message.env !== void 0) {
|
|
49326
|
+
obj.env = StringMap.toJSON(message.env);
|
|
49327
|
+
}
|
|
49328
|
+
return obj;
|
|
49329
|
+
},
|
|
49330
|
+
create(base) {
|
|
49331
|
+
return SecretSource.fromPartial(base ?? {});
|
|
49332
|
+
},
|
|
49333
|
+
fromPartial(object) {
|
|
49334
|
+
const message = createBaseSecretSource();
|
|
49335
|
+
message.secretId = object.secretId ?? void 0;
|
|
49336
|
+
message.env = object.env !== void 0 && object.env !== null ? StringMap.fromPartial(object.env) : void 0;
|
|
49337
|
+
return message;
|
|
49338
|
+
}
|
|
49339
|
+
};
|
|
49156
49340
|
function createBaseSecretUpdateRequest() {
|
|
49157
49341
|
return { secretId: "", updates: [] };
|
|
49158
49342
|
}
|
|
@@ -49399,7 +49583,8 @@ function createBaseServerGetTimeRangeStatsResponse() {
|
|
|
49399
49583
|
inference: void 0,
|
|
49400
49584
|
containerStartedCount: 0,
|
|
49401
49585
|
containerErrorCount: 0,
|
|
49402
|
-
containerCreatingAtEndCount: 0
|
|
49586
|
+
containerCreatingAtEndCount: 0,
|
|
49587
|
+
containerTotalCount: 0
|
|
49403
49588
|
};
|
|
49404
49589
|
}
|
|
49405
49590
|
var ServerGetTimeRangeStatsResponse = {
|
|
@@ -49443,6 +49628,9 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49443
49628
|
if (message.containerCreatingAtEndCount !== 0) {
|
|
49444
49629
|
writer.uint32(88).uint64(message.containerCreatingAtEndCount);
|
|
49445
49630
|
}
|
|
49631
|
+
if (message.containerTotalCount !== 0) {
|
|
49632
|
+
writer.uint32(96).uint64(message.containerTotalCount);
|
|
49633
|
+
}
|
|
49446
49634
|
return writer;
|
|
49447
49635
|
},
|
|
49448
49636
|
decode(input, length) {
|
|
@@ -49537,6 +49725,13 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49537
49725
|
message.containerCreatingAtEndCount = longToNumber2(reader.uint64());
|
|
49538
49726
|
continue;
|
|
49539
49727
|
}
|
|
49728
|
+
case 12: {
|
|
49729
|
+
if (tag !== 96) {
|
|
49730
|
+
break;
|
|
49731
|
+
}
|
|
49732
|
+
message.containerTotalCount = longToNumber2(reader.uint64());
|
|
49733
|
+
continue;
|
|
49734
|
+
}
|
|
49540
49735
|
}
|
|
49541
49736
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49542
49737
|
break;
|
|
@@ -49571,7 +49766,8 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49571
49766
|
inference: isSet5(object.inference) ? ServerGetTimeRangeStatsResponse_ServerInferenceStats.fromJSON(object.inference) : void 0,
|
|
49572
49767
|
containerStartedCount: isSet5(object.containerStartedCount) ? globalThis.Number(object.containerStartedCount) : 0,
|
|
49573
49768
|
containerErrorCount: isSet5(object.containerErrorCount) ? globalThis.Number(object.containerErrorCount) : 0,
|
|
49574
|
-
containerCreatingAtEndCount: isSet5(object.containerCreatingAtEndCount) ? globalThis.Number(object.containerCreatingAtEndCount) : 0
|
|
49769
|
+
containerCreatingAtEndCount: isSet5(object.containerCreatingAtEndCount) ? globalThis.Number(object.containerCreatingAtEndCount) : 0,
|
|
49770
|
+
containerTotalCount: isSet5(object.containerTotalCount) ? globalThis.Number(object.containerTotalCount) : 0
|
|
49575
49771
|
};
|
|
49576
49772
|
},
|
|
49577
49773
|
toJSON(message) {
|
|
@@ -49623,6 +49819,9 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49623
49819
|
if (message.containerCreatingAtEndCount !== 0) {
|
|
49624
49820
|
obj.containerCreatingAtEndCount = Math.round(message.containerCreatingAtEndCount);
|
|
49625
49821
|
}
|
|
49822
|
+
if (message.containerTotalCount !== 0) {
|
|
49823
|
+
obj.containerTotalCount = Math.round(message.containerTotalCount);
|
|
49824
|
+
}
|
|
49626
49825
|
return obj;
|
|
49627
49826
|
},
|
|
49628
49827
|
create(base) {
|
|
@@ -49653,6 +49852,7 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49653
49852
|
message.containerStartedCount = object.containerStartedCount ?? 0;
|
|
49654
49853
|
message.containerErrorCount = object.containerErrorCount ?? 0;
|
|
49655
49854
|
message.containerCreatingAtEndCount = object.containerCreatingAtEndCount ?? 0;
|
|
49855
|
+
message.containerTotalCount = object.containerTotalCount ?? 0;
|
|
49656
49856
|
return message;
|
|
49657
49857
|
}
|
|
49658
49858
|
};
|
|
@@ -65750,7 +65950,8 @@ function createBaseTaskContainerCreateRequest() {
|
|
|
65750
65950
|
volumeMounts: [],
|
|
65751
65951
|
networkAccess: void 0,
|
|
65752
65952
|
ptyInfo: void 0,
|
|
65753
|
-
memoryReserveConsumeMib: void 0
|
|
65953
|
+
memoryReserveConsumeMib: void 0,
|
|
65954
|
+
secretSources: []
|
|
65754
65955
|
};
|
|
65755
65956
|
}
|
|
65756
65957
|
var TaskContainerCreateRequest = {
|
|
@@ -65788,6 +65989,9 @@ var TaskContainerCreateRequest = {
|
|
|
65788
65989
|
if (message.memoryReserveConsumeMib !== void 0) {
|
|
65789
65990
|
writer.uint32(96).uint32(message.memoryReserveConsumeMib);
|
|
65790
65991
|
}
|
|
65992
|
+
for (const v of message.secretSources) {
|
|
65993
|
+
SecretSource.encode(v, writer.uint32(106).fork()).join();
|
|
65994
|
+
}
|
|
65791
65995
|
return writer;
|
|
65792
65996
|
},
|
|
65793
65997
|
decode(input, length) {
|
|
@@ -65877,6 +66081,13 @@ var TaskContainerCreateRequest = {
|
|
|
65877
66081
|
message.memoryReserveConsumeMib = reader.uint32();
|
|
65878
66082
|
continue;
|
|
65879
66083
|
}
|
|
66084
|
+
case 13: {
|
|
66085
|
+
if (tag !== 106) {
|
|
66086
|
+
break;
|
|
66087
|
+
}
|
|
66088
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
66089
|
+
continue;
|
|
66090
|
+
}
|
|
65880
66091
|
}
|
|
65881
66092
|
if ((tag & 7) === 4 || tag === 0) {
|
|
65882
66093
|
break;
|
|
@@ -65900,7 +66111,8 @@ var TaskContainerCreateRequest = {
|
|
|
65900
66111
|
volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : [],
|
|
65901
66112
|
networkAccess: isSet6(object.networkAccess) ? NetworkAccess.fromJSON(object.networkAccess) : void 0,
|
|
65902
66113
|
ptyInfo: isSet6(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
|
|
65903
|
-
memoryReserveConsumeMib: isSet6(object.memoryReserveConsumeMib) ? globalThis.Number(object.memoryReserveConsumeMib) : void 0
|
|
66114
|
+
memoryReserveConsumeMib: isSet6(object.memoryReserveConsumeMib) ? globalThis.Number(object.memoryReserveConsumeMib) : void 0,
|
|
66115
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
65904
66116
|
};
|
|
65905
66117
|
},
|
|
65906
66118
|
toJSON(message) {
|
|
@@ -65944,6 +66156,9 @@ var TaskContainerCreateRequest = {
|
|
|
65944
66156
|
if (message.memoryReserveConsumeMib !== void 0) {
|
|
65945
66157
|
obj.memoryReserveConsumeMib = Math.round(message.memoryReserveConsumeMib);
|
|
65946
66158
|
}
|
|
66159
|
+
if (message.secretSources?.length) {
|
|
66160
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
66161
|
+
}
|
|
65947
66162
|
return obj;
|
|
65948
66163
|
},
|
|
65949
66164
|
create(base) {
|
|
@@ -65967,6 +66182,7 @@ var TaskContainerCreateRequest = {
|
|
|
65967
66182
|
message.networkAccess = object.networkAccess !== void 0 && object.networkAccess !== null ? NetworkAccess.fromPartial(object.networkAccess) : void 0;
|
|
65968
66183
|
message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
|
|
65969
66184
|
message.memoryReserveConsumeMib = object.memoryReserveConsumeMib ?? void 0;
|
|
66185
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
65970
66186
|
return message;
|
|
65971
66187
|
}
|
|
65972
66188
|
};
|
|
@@ -66847,7 +67063,8 @@ function createBaseTaskExecStartRequest() {
|
|
|
66847
67063
|
ptyInfo: void 0,
|
|
66848
67064
|
runtimeDebug: false,
|
|
66849
67065
|
containerId: "",
|
|
66850
|
-
env: {}
|
|
67066
|
+
env: {},
|
|
67067
|
+
secretSources: []
|
|
66851
67068
|
};
|
|
66852
67069
|
}
|
|
66853
67070
|
var TaskExecStartRequest = {
|
|
@@ -66888,6 +67105,9 @@ var TaskExecStartRequest = {
|
|
|
66888
67105
|
Object.entries(message.env).forEach(([key, value]) => {
|
|
66889
67106
|
TaskExecStartRequest_EnvEntry.encode({ key, value }, writer.uint32(98).fork()).join();
|
|
66890
67107
|
});
|
|
67108
|
+
for (const v of message.secretSources) {
|
|
67109
|
+
SecretSource.encode(v, writer.uint32(106).fork()).join();
|
|
67110
|
+
}
|
|
66891
67111
|
return writer;
|
|
66892
67112
|
},
|
|
66893
67113
|
decode(input, length) {
|
|
@@ -66984,6 +67204,13 @@ var TaskExecStartRequest = {
|
|
|
66984
67204
|
}
|
|
66985
67205
|
continue;
|
|
66986
67206
|
}
|
|
67207
|
+
case 13: {
|
|
67208
|
+
if (tag !== 106) {
|
|
67209
|
+
break;
|
|
67210
|
+
}
|
|
67211
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
67212
|
+
continue;
|
|
67213
|
+
}
|
|
66987
67214
|
}
|
|
66988
67215
|
if ((tag & 7) === 4 || tag === 0) {
|
|
66989
67216
|
break;
|
|
@@ -67008,7 +67235,8 @@ var TaskExecStartRequest = {
|
|
|
67008
67235
|
env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
|
|
67009
67236
|
acc[key] = String(value);
|
|
67010
67237
|
return acc;
|
|
67011
|
-
}, {}) : {}
|
|
67238
|
+
}, {}) : {},
|
|
67239
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
67012
67240
|
};
|
|
67013
67241
|
},
|
|
67014
67242
|
toJSON(message) {
|
|
@@ -67055,6 +67283,9 @@ var TaskExecStartRequest = {
|
|
|
67055
67283
|
});
|
|
67056
67284
|
}
|
|
67057
67285
|
}
|
|
67286
|
+
if (message.secretSources?.length) {
|
|
67287
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
67288
|
+
}
|
|
67058
67289
|
return obj;
|
|
67059
67290
|
},
|
|
67060
67291
|
create(base) {
|
|
@@ -67079,6 +67310,7 @@ var TaskExecStartRequest = {
|
|
|
67079
67310
|
}
|
|
67080
67311
|
return acc;
|
|
67081
67312
|
}, {});
|
|
67313
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
67082
67314
|
return message;
|
|
67083
67315
|
}
|
|
67084
67316
|
};
|
|
@@ -71455,6 +71687,16 @@ var SidecarService = class {
|
|
|
71455
71687
|
);
|
|
71456
71688
|
}
|
|
71457
71689
|
}
|
|
71690
|
+
if (params?.proxy) {
|
|
71691
|
+
if (getSandboxVersion(this.#access.sandboxId) !== "V2" /* V2 */) {
|
|
71692
|
+
throw new InvalidError("proxy is not supported for GPU Sandboxes");
|
|
71693
|
+
}
|
|
71694
|
+
if (!viaControlPlane) {
|
|
71695
|
+
throw new InvalidError(
|
|
71696
|
+
`proxy is not supported when ${CONTROL_PLANE_SIDECAR_CREATE_ENV_VAR}=0 is set; unset it to use a proxy`
|
|
71697
|
+
);
|
|
71698
|
+
}
|
|
71699
|
+
}
|
|
71458
71700
|
validateEnvVarKeys(params?.env ?? {});
|
|
71459
71701
|
const [envDict, resolvableSecrets] = splitEnvDictAndResolvableSecrets(
|
|
71460
71702
|
params?.secrets ?? []
|
|
@@ -71493,6 +71735,7 @@ var SidecarService = class {
|
|
|
71493
71735
|
cloudBucketMounts,
|
|
71494
71736
|
networkAccess,
|
|
71495
71737
|
includeOidcIdentityToken: params?.includeOidcIdentityToken ?? false,
|
|
71738
|
+
proxyId: params?.proxy?.proxyId,
|
|
71496
71739
|
ptyInfo,
|
|
71497
71740
|
resources: params?.experimentalMemoryReserveConsumeMiB !== void 0 ? Resources.create({
|
|
71498
71741
|
memoryMb: params.experimentalMemoryReserveConsumeMiB
|
|
@@ -74251,7 +74494,7 @@ var AuthTokenManager = class {
|
|
|
74251
74494
|
};
|
|
74252
74495
|
|
|
74253
74496
|
// src/version.ts
|
|
74254
|
-
var SDK_VERSION = "0.11.1-dev.
|
|
74497
|
+
var SDK_VERSION = "0.11.1-dev.3";
|
|
74255
74498
|
function getSDKVersion() {
|
|
74256
74499
|
return SDK_VERSION;
|
|
74257
74500
|
}
|