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.cjs
CHANGED
|
@@ -7659,7 +7659,16 @@ var AppListResponse = {
|
|
|
7659
7659
|
}
|
|
7660
7660
|
};
|
|
7661
7661
|
function createBaseAppListResponse_AppListItem() {
|
|
7662
|
-
return {
|
|
7662
|
+
return {
|
|
7663
|
+
appId: "",
|
|
7664
|
+
description: "",
|
|
7665
|
+
state: 0,
|
|
7666
|
+
createdAt: 0,
|
|
7667
|
+
stoppedAt: 0,
|
|
7668
|
+
nRunningTasks: 0,
|
|
7669
|
+
name: "",
|
|
7670
|
+
metadata: void 0
|
|
7671
|
+
};
|
|
7663
7672
|
}
|
|
7664
7673
|
var AppListResponse_AppListItem = {
|
|
7665
7674
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -7684,6 +7693,9 @@ var AppListResponse_AppListItem = {
|
|
|
7684
7693
|
if (message.name !== "") {
|
|
7685
7694
|
writer.uint32(82).string(message.name);
|
|
7686
7695
|
}
|
|
7696
|
+
if (message.metadata !== void 0) {
|
|
7697
|
+
AppHandleMetadata.encode(message.metadata, writer.uint32(90).fork()).join();
|
|
7698
|
+
}
|
|
7687
7699
|
return writer;
|
|
7688
7700
|
},
|
|
7689
7701
|
decode(input, length) {
|
|
@@ -7742,6 +7754,13 @@ var AppListResponse_AppListItem = {
|
|
|
7742
7754
|
message.name = reader.string();
|
|
7743
7755
|
continue;
|
|
7744
7756
|
}
|
|
7757
|
+
case 11: {
|
|
7758
|
+
if (tag !== 90) {
|
|
7759
|
+
break;
|
|
7760
|
+
}
|
|
7761
|
+
message.metadata = AppHandleMetadata.decode(reader, reader.uint32());
|
|
7762
|
+
continue;
|
|
7763
|
+
}
|
|
7745
7764
|
}
|
|
7746
7765
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7747
7766
|
break;
|
|
@@ -7758,7 +7777,8 @@ var AppListResponse_AppListItem = {
|
|
|
7758
7777
|
createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
7759
7778
|
stoppedAt: isSet5(object.stoppedAt) ? globalThis.Number(object.stoppedAt) : 0,
|
|
7760
7779
|
nRunningTasks: isSet5(object.nRunningTasks) ? globalThis.Number(object.nRunningTasks) : 0,
|
|
7761
|
-
name: isSet5(object.name) ? globalThis.String(object.name) : ""
|
|
7780
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : "",
|
|
7781
|
+
metadata: isSet5(object.metadata) ? AppHandleMetadata.fromJSON(object.metadata) : void 0
|
|
7762
7782
|
};
|
|
7763
7783
|
},
|
|
7764
7784
|
toJSON(message) {
|
|
@@ -7784,6 +7804,9 @@ var AppListResponse_AppListItem = {
|
|
|
7784
7804
|
if (message.name !== "") {
|
|
7785
7805
|
obj.name = message.name;
|
|
7786
7806
|
}
|
|
7807
|
+
if (message.metadata !== void 0) {
|
|
7808
|
+
obj.metadata = AppHandleMetadata.toJSON(message.metadata);
|
|
7809
|
+
}
|
|
7787
7810
|
return obj;
|
|
7788
7811
|
},
|
|
7789
7812
|
create(base) {
|
|
@@ -7798,6 +7821,7 @@ var AppListResponse_AppListItem = {
|
|
|
7798
7821
|
message.stoppedAt = object.stoppedAt ?? 0;
|
|
7799
7822
|
message.nRunningTasks = object.nRunningTasks ?? 0;
|
|
7800
7823
|
message.name = object.name ?? "";
|
|
7824
|
+
message.metadata = object.metadata !== void 0 && object.metadata !== null ? AppHandleMetadata.fromPartial(object.metadata) : void 0;
|
|
7801
7825
|
return message;
|
|
7802
7826
|
}
|
|
7803
7827
|
};
|
|
@@ -21272,7 +21296,8 @@ function createBaseEnvironmentListItem() {
|
|
|
21272
21296
|
spendLimitReached: false,
|
|
21273
21297
|
environmentType: 0,
|
|
21274
21298
|
defaultMemberRole: void 0,
|
|
21275
|
-
blockUnauthenticatedResources: void 0
|
|
21299
|
+
blockUnauthenticatedResources: void 0,
|
|
21300
|
+
effectiveRole: void 0
|
|
21276
21301
|
};
|
|
21277
21302
|
}
|
|
21278
21303
|
var EnvironmentListItem = {
|
|
@@ -21328,6 +21353,9 @@ var EnvironmentListItem = {
|
|
|
21328
21353
|
if (message.blockUnauthenticatedResources !== void 0) {
|
|
21329
21354
|
writer.uint32(136).bool(message.blockUnauthenticatedResources);
|
|
21330
21355
|
}
|
|
21356
|
+
if (message.effectiveRole !== void 0) {
|
|
21357
|
+
writer.uint32(144).int32(message.effectiveRole);
|
|
21358
|
+
}
|
|
21331
21359
|
return writer;
|
|
21332
21360
|
},
|
|
21333
21361
|
decode(input, length) {
|
|
@@ -21456,6 +21484,13 @@ var EnvironmentListItem = {
|
|
|
21456
21484
|
message.blockUnauthenticatedResources = reader.bool();
|
|
21457
21485
|
continue;
|
|
21458
21486
|
}
|
|
21487
|
+
case 18: {
|
|
21488
|
+
if (tag !== 144) {
|
|
21489
|
+
break;
|
|
21490
|
+
}
|
|
21491
|
+
message.effectiveRole = reader.int32();
|
|
21492
|
+
continue;
|
|
21493
|
+
}
|
|
21459
21494
|
}
|
|
21460
21495
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21461
21496
|
break;
|
|
@@ -21482,7 +21517,8 @@ var EnvironmentListItem = {
|
|
|
21482
21517
|
spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false,
|
|
21483
21518
|
environmentType: isSet5(object.environmentType) ? environmentTypeFromJSON(object.environmentType) : 0,
|
|
21484
21519
|
defaultMemberRole: isSet5(object.defaultMemberRole) ? environmentRoleFromJSON(object.defaultMemberRole) : void 0,
|
|
21485
|
-
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? globalThis.Boolean(object.blockUnauthenticatedResources) : void 0
|
|
21520
|
+
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? globalThis.Boolean(object.blockUnauthenticatedResources) : void 0,
|
|
21521
|
+
effectiveRole: isSet5(object.effectiveRole) ? environmentRoleFromJSON(object.effectiveRole) : void 0
|
|
21486
21522
|
};
|
|
21487
21523
|
},
|
|
21488
21524
|
toJSON(message) {
|
|
@@ -21538,6 +21574,9 @@ var EnvironmentListItem = {
|
|
|
21538
21574
|
if (message.blockUnauthenticatedResources !== void 0) {
|
|
21539
21575
|
obj.blockUnauthenticatedResources = message.blockUnauthenticatedResources;
|
|
21540
21576
|
}
|
|
21577
|
+
if (message.effectiveRole !== void 0) {
|
|
21578
|
+
obj.effectiveRole = environmentRoleToJSON(message.effectiveRole);
|
|
21579
|
+
}
|
|
21541
21580
|
return obj;
|
|
21542
21581
|
},
|
|
21543
21582
|
create(base) {
|
|
@@ -21562,6 +21601,7 @@ var EnvironmentListItem = {
|
|
|
21562
21601
|
message.environmentType = object.environmentType ?? 0;
|
|
21563
21602
|
message.defaultMemberRole = object.defaultMemberRole ?? void 0;
|
|
21564
21603
|
message.blockUnauthenticatedResources = object.blockUnauthenticatedResources ?? void 0;
|
|
21604
|
+
message.effectiveRole = object.effectiveRole ?? void 0;
|
|
21565
21605
|
return message;
|
|
21566
21606
|
}
|
|
21567
21607
|
};
|
|
@@ -29340,7 +29380,8 @@ function createBaseFunctionGetTimeRangeStatsResponse() {
|
|
|
29340
29380
|
containerErrorCount: 0,
|
|
29341
29381
|
containerCreatingAtEndCount: 0,
|
|
29342
29382
|
containerPercentileStats: {},
|
|
29343
|
-
variantCount: 0
|
|
29383
|
+
variantCount: 0,
|
|
29384
|
+
containerTotalCount: 0
|
|
29344
29385
|
};
|
|
29345
29386
|
}
|
|
29346
29387
|
var FunctionGetTimeRangeStatsResponse = {
|
|
@@ -29387,6 +29428,9 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29387
29428
|
if (message.variantCount !== 0) {
|
|
29388
29429
|
writer.uint32(96).uint32(message.variantCount);
|
|
29389
29430
|
}
|
|
29431
|
+
if (message.containerTotalCount !== 0) {
|
|
29432
|
+
writer.uint32(104).uint64(message.containerTotalCount);
|
|
29433
|
+
}
|
|
29390
29434
|
return writer;
|
|
29391
29435
|
},
|
|
29392
29436
|
decode(input, length) {
|
|
@@ -29489,6 +29533,13 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29489
29533
|
message.variantCount = reader.uint32();
|
|
29490
29534
|
continue;
|
|
29491
29535
|
}
|
|
29536
|
+
case 13: {
|
|
29537
|
+
if (tag !== 104) {
|
|
29538
|
+
break;
|
|
29539
|
+
}
|
|
29540
|
+
message.containerTotalCount = longToNumber2(reader.uint64());
|
|
29541
|
+
continue;
|
|
29542
|
+
}
|
|
29492
29543
|
}
|
|
29493
29544
|
if ((tag & 7) === 4 || tag === 0) {
|
|
29494
29545
|
break;
|
|
@@ -29522,7 +29573,8 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29522
29573
|
},
|
|
29523
29574
|
{}
|
|
29524
29575
|
) : {},
|
|
29525
|
-
variantCount: isSet5(object.variantCount) ? globalThis.Number(object.variantCount) : 0
|
|
29576
|
+
variantCount: isSet5(object.variantCount) ? globalThis.Number(object.variantCount) : 0,
|
|
29577
|
+
containerTotalCount: isSet5(object.containerTotalCount) ? globalThis.Number(object.containerTotalCount) : 0
|
|
29526
29578
|
};
|
|
29527
29579
|
},
|
|
29528
29580
|
toJSON(message) {
|
|
@@ -29575,6 +29627,9 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29575
29627
|
if (message.variantCount !== 0) {
|
|
29576
29628
|
obj.variantCount = Math.round(message.variantCount);
|
|
29577
29629
|
}
|
|
29630
|
+
if (message.containerTotalCount !== 0) {
|
|
29631
|
+
obj.containerTotalCount = Math.round(message.containerTotalCount);
|
|
29632
|
+
}
|
|
29578
29633
|
return obj;
|
|
29579
29634
|
},
|
|
29580
29635
|
create(base) {
|
|
@@ -29604,6 +29659,7 @@ var FunctionGetTimeRangeStatsResponse = {
|
|
|
29604
29659
|
return acc;
|
|
29605
29660
|
}, {});
|
|
29606
29661
|
message.variantCount = object.variantCount ?? 0;
|
|
29662
|
+
message.containerTotalCount = object.containerTotalCount ?? 0;
|
|
29607
29663
|
return message;
|
|
29608
29664
|
}
|
|
29609
29665
|
};
|
|
@@ -43532,7 +43588,8 @@ function createBaseSandboxContainerCreateV2Request() {
|
|
|
43532
43588
|
containerName: "",
|
|
43533
43589
|
definition: void 0,
|
|
43534
43590
|
ephemeralSecrets: void 0,
|
|
43535
|
-
cloudBucketMountCredentials: {}
|
|
43591
|
+
cloudBucketMountCredentials: {},
|
|
43592
|
+
secretSources: []
|
|
43536
43593
|
};
|
|
43537
43594
|
}
|
|
43538
43595
|
var SandboxContainerCreateV2Request = {
|
|
@@ -43555,6 +43612,9 @@ var SandboxContainerCreateV2Request = {
|
|
|
43555
43612
|
writer.uint32(42).fork()
|
|
43556
43613
|
).join();
|
|
43557
43614
|
});
|
|
43615
|
+
for (const v of message.secretSources) {
|
|
43616
|
+
SecretSource.encode(v, writer.uint32(50).fork()).join();
|
|
43617
|
+
}
|
|
43558
43618
|
return writer;
|
|
43559
43619
|
},
|
|
43560
43620
|
decode(input, length) {
|
|
@@ -43605,6 +43665,13 @@ var SandboxContainerCreateV2Request = {
|
|
|
43605
43665
|
}
|
|
43606
43666
|
continue;
|
|
43607
43667
|
}
|
|
43668
|
+
case 6: {
|
|
43669
|
+
if (tag !== 50) {
|
|
43670
|
+
break;
|
|
43671
|
+
}
|
|
43672
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
43673
|
+
continue;
|
|
43674
|
+
}
|
|
43608
43675
|
}
|
|
43609
43676
|
if ((tag & 7) === 4 || tag === 0) {
|
|
43610
43677
|
break;
|
|
@@ -43625,7 +43692,8 @@ var SandboxContainerCreateV2Request = {
|
|
|
43625
43692
|
return acc;
|
|
43626
43693
|
},
|
|
43627
43694
|
{}
|
|
43628
|
-
) : {}
|
|
43695
|
+
) : {},
|
|
43696
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
43629
43697
|
};
|
|
43630
43698
|
},
|
|
43631
43699
|
toJSON(message) {
|
|
@@ -43651,6 +43719,9 @@ var SandboxContainerCreateV2Request = {
|
|
|
43651
43719
|
});
|
|
43652
43720
|
}
|
|
43653
43721
|
}
|
|
43722
|
+
if (message.secretSources?.length) {
|
|
43723
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
43724
|
+
}
|
|
43654
43725
|
return obj;
|
|
43655
43726
|
},
|
|
43656
43727
|
create(base) {
|
|
@@ -43668,6 +43739,7 @@ var SandboxContainerCreateV2Request = {
|
|
|
43668
43739
|
}
|
|
43669
43740
|
return acc;
|
|
43670
43741
|
}, {});
|
|
43742
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
43671
43743
|
return message;
|
|
43672
43744
|
}
|
|
43673
43745
|
};
|
|
@@ -44125,7 +44197,14 @@ var SandboxCreateResponse = {
|
|
|
44125
44197
|
}
|
|
44126
44198
|
};
|
|
44127
44199
|
function createBaseSandboxCreateV2Request() {
|
|
44128
|
-
return {
|
|
44200
|
+
return {
|
|
44201
|
+
appId: "",
|
|
44202
|
+
definition: void 0,
|
|
44203
|
+
ephemeralSecrets: void 0,
|
|
44204
|
+
tags: [],
|
|
44205
|
+
cloudBucketMountCredentials: {},
|
|
44206
|
+
secretSources: []
|
|
44207
|
+
};
|
|
44129
44208
|
}
|
|
44130
44209
|
var SandboxCreateV2Request = {
|
|
44131
44210
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -44147,6 +44226,9 @@ var SandboxCreateV2Request = {
|
|
|
44147
44226
|
writer.uint32(42).fork()
|
|
44148
44227
|
).join();
|
|
44149
44228
|
});
|
|
44229
|
+
for (const v of message.secretSources) {
|
|
44230
|
+
SecretSource.encode(v, writer.uint32(50).fork()).join();
|
|
44231
|
+
}
|
|
44150
44232
|
return writer;
|
|
44151
44233
|
},
|
|
44152
44234
|
decode(input, length) {
|
|
@@ -44194,6 +44276,13 @@ var SandboxCreateV2Request = {
|
|
|
44194
44276
|
}
|
|
44195
44277
|
continue;
|
|
44196
44278
|
}
|
|
44279
|
+
case 6: {
|
|
44280
|
+
if (tag !== 50) {
|
|
44281
|
+
break;
|
|
44282
|
+
}
|
|
44283
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
44284
|
+
continue;
|
|
44285
|
+
}
|
|
44197
44286
|
}
|
|
44198
44287
|
if ((tag & 7) === 4 || tag === 0) {
|
|
44199
44288
|
break;
|
|
@@ -44214,7 +44303,8 @@ var SandboxCreateV2Request = {
|
|
|
44214
44303
|
return acc;
|
|
44215
44304
|
},
|
|
44216
44305
|
{}
|
|
44217
|
-
) : {}
|
|
44306
|
+
) : {},
|
|
44307
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
44218
44308
|
};
|
|
44219
44309
|
},
|
|
44220
44310
|
toJSON(message) {
|
|
@@ -44240,6 +44330,9 @@ var SandboxCreateV2Request = {
|
|
|
44240
44330
|
});
|
|
44241
44331
|
}
|
|
44242
44332
|
}
|
|
44333
|
+
if (message.secretSources?.length) {
|
|
44334
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
44335
|
+
}
|
|
44243
44336
|
return obj;
|
|
44244
44337
|
},
|
|
44245
44338
|
create(base) {
|
|
@@ -44257,6 +44350,7 @@ var SandboxCreateV2Request = {
|
|
|
44257
44350
|
}
|
|
44258
44351
|
return acc;
|
|
44259
44352
|
}, {});
|
|
44353
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
44260
44354
|
return message;
|
|
44261
44355
|
}
|
|
44262
44356
|
};
|
|
@@ -44329,7 +44423,14 @@ var SandboxCreateV2Request_CloudBucketMountCredentialsEntry = {
|
|
|
44329
44423
|
}
|
|
44330
44424
|
};
|
|
44331
44425
|
function createBaseSandboxCreateV2Response() {
|
|
44332
|
-
return {
|
|
44426
|
+
return {
|
|
44427
|
+
sandboxId: "",
|
|
44428
|
+
tunnels: [],
|
|
44429
|
+
taskId: "",
|
|
44430
|
+
metadata: void 0,
|
|
44431
|
+
commandRouterAccess: void 0,
|
|
44432
|
+
sandboxToken: ""
|
|
44433
|
+
};
|
|
44333
44434
|
}
|
|
44334
44435
|
var SandboxCreateV2Response = {
|
|
44335
44436
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -44348,6 +44449,9 @@ var SandboxCreateV2Response = {
|
|
|
44348
44449
|
if (message.commandRouterAccess !== void 0) {
|
|
44349
44450
|
CommandRouterAccess.encode(message.commandRouterAccess, writer.uint32(42).fork()).join();
|
|
44350
44451
|
}
|
|
44452
|
+
if (message.sandboxToken !== "") {
|
|
44453
|
+
writer.uint32(50).string(message.sandboxToken);
|
|
44454
|
+
}
|
|
44351
44455
|
return writer;
|
|
44352
44456
|
},
|
|
44353
44457
|
decode(input, length) {
|
|
@@ -44392,6 +44496,13 @@ var SandboxCreateV2Response = {
|
|
|
44392
44496
|
message.commandRouterAccess = CommandRouterAccess.decode(reader, reader.uint32());
|
|
44393
44497
|
continue;
|
|
44394
44498
|
}
|
|
44499
|
+
case 6: {
|
|
44500
|
+
if (tag !== 50) {
|
|
44501
|
+
break;
|
|
44502
|
+
}
|
|
44503
|
+
message.sandboxToken = reader.string();
|
|
44504
|
+
continue;
|
|
44505
|
+
}
|
|
44395
44506
|
}
|
|
44396
44507
|
if ((tag & 7) === 4 || tag === 0) {
|
|
44397
44508
|
break;
|
|
@@ -44406,7 +44517,8 @@ var SandboxCreateV2Response = {
|
|
|
44406
44517
|
tunnels: globalThis.Array.isArray(object?.tunnels) ? object.tunnels.map((e) => TunnelData.fromJSON(e)) : [],
|
|
44407
44518
|
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
44408
44519
|
metadata: isSet5(object.metadata) ? SandboxHandleMetadata.fromJSON(object.metadata) : void 0,
|
|
44409
|
-
commandRouterAccess: isSet5(object.commandRouterAccess) ? CommandRouterAccess.fromJSON(object.commandRouterAccess) : void 0
|
|
44520
|
+
commandRouterAccess: isSet5(object.commandRouterAccess) ? CommandRouterAccess.fromJSON(object.commandRouterAccess) : void 0,
|
|
44521
|
+
sandboxToken: isSet5(object.sandboxToken) ? globalThis.String(object.sandboxToken) : ""
|
|
44410
44522
|
};
|
|
44411
44523
|
},
|
|
44412
44524
|
toJSON(message) {
|
|
@@ -44426,6 +44538,9 @@ var SandboxCreateV2Response = {
|
|
|
44426
44538
|
if (message.commandRouterAccess !== void 0) {
|
|
44427
44539
|
obj.commandRouterAccess = CommandRouterAccess.toJSON(message.commandRouterAccess);
|
|
44428
44540
|
}
|
|
44541
|
+
if (message.sandboxToken !== "") {
|
|
44542
|
+
obj.sandboxToken = message.sandboxToken;
|
|
44543
|
+
}
|
|
44429
44544
|
return obj;
|
|
44430
44545
|
},
|
|
44431
44546
|
create(base) {
|
|
@@ -44438,6 +44553,7 @@ var SandboxCreateV2Response = {
|
|
|
44438
44553
|
message.taskId = object.taskId ?? "";
|
|
44439
44554
|
message.metadata = object.metadata !== void 0 && object.metadata !== null ? SandboxHandleMetadata.fromPartial(object.metadata) : void 0;
|
|
44440
44555
|
message.commandRouterAccess = object.commandRouterAccess !== void 0 && object.commandRouterAccess !== null ? CommandRouterAccess.fromPartial(object.commandRouterAccess) : void 0;
|
|
44556
|
+
message.sandboxToken = object.sandboxToken ?? "";
|
|
44441
44557
|
return message;
|
|
44442
44558
|
}
|
|
44443
44559
|
};
|
|
@@ -49248,6 +49364,74 @@ var SecretMetadata = {
|
|
|
49248
49364
|
return message;
|
|
49249
49365
|
}
|
|
49250
49366
|
};
|
|
49367
|
+
function createBaseSecretSource() {
|
|
49368
|
+
return { secretId: void 0, env: void 0 };
|
|
49369
|
+
}
|
|
49370
|
+
var SecretSource = {
|
|
49371
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49372
|
+
if (message.secretId !== void 0) {
|
|
49373
|
+
writer.uint32(10).string(message.secretId);
|
|
49374
|
+
}
|
|
49375
|
+
if (message.env !== void 0) {
|
|
49376
|
+
StringMap.encode(message.env, writer.uint32(18).fork()).join();
|
|
49377
|
+
}
|
|
49378
|
+
return writer;
|
|
49379
|
+
},
|
|
49380
|
+
decode(input, length) {
|
|
49381
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49382
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49383
|
+
const message = createBaseSecretSource();
|
|
49384
|
+
while (reader.pos < end) {
|
|
49385
|
+
const tag = reader.uint32();
|
|
49386
|
+
switch (tag >>> 3) {
|
|
49387
|
+
case 1: {
|
|
49388
|
+
if (tag !== 10) {
|
|
49389
|
+
break;
|
|
49390
|
+
}
|
|
49391
|
+
message.secretId = reader.string();
|
|
49392
|
+
continue;
|
|
49393
|
+
}
|
|
49394
|
+
case 2: {
|
|
49395
|
+
if (tag !== 18) {
|
|
49396
|
+
break;
|
|
49397
|
+
}
|
|
49398
|
+
message.env = StringMap.decode(reader, reader.uint32());
|
|
49399
|
+
continue;
|
|
49400
|
+
}
|
|
49401
|
+
}
|
|
49402
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49403
|
+
break;
|
|
49404
|
+
}
|
|
49405
|
+
reader.skip(tag & 7);
|
|
49406
|
+
}
|
|
49407
|
+
return message;
|
|
49408
|
+
},
|
|
49409
|
+
fromJSON(object) {
|
|
49410
|
+
return {
|
|
49411
|
+
secretId: isSet5(object.secretId) ? globalThis.String(object.secretId) : void 0,
|
|
49412
|
+
env: isSet5(object.env) ? StringMap.fromJSON(object.env) : void 0
|
|
49413
|
+
};
|
|
49414
|
+
},
|
|
49415
|
+
toJSON(message) {
|
|
49416
|
+
const obj = {};
|
|
49417
|
+
if (message.secretId !== void 0) {
|
|
49418
|
+
obj.secretId = message.secretId;
|
|
49419
|
+
}
|
|
49420
|
+
if (message.env !== void 0) {
|
|
49421
|
+
obj.env = StringMap.toJSON(message.env);
|
|
49422
|
+
}
|
|
49423
|
+
return obj;
|
|
49424
|
+
},
|
|
49425
|
+
create(base) {
|
|
49426
|
+
return SecretSource.fromPartial(base ?? {});
|
|
49427
|
+
},
|
|
49428
|
+
fromPartial(object) {
|
|
49429
|
+
const message = createBaseSecretSource();
|
|
49430
|
+
message.secretId = object.secretId ?? void 0;
|
|
49431
|
+
message.env = object.env !== void 0 && object.env !== null ? StringMap.fromPartial(object.env) : void 0;
|
|
49432
|
+
return message;
|
|
49433
|
+
}
|
|
49434
|
+
};
|
|
49251
49435
|
function createBaseSecretUpdateRequest() {
|
|
49252
49436
|
return { secretId: "", updates: [] };
|
|
49253
49437
|
}
|
|
@@ -49494,7 +49678,8 @@ function createBaseServerGetTimeRangeStatsResponse() {
|
|
|
49494
49678
|
inference: void 0,
|
|
49495
49679
|
containerStartedCount: 0,
|
|
49496
49680
|
containerErrorCount: 0,
|
|
49497
|
-
containerCreatingAtEndCount: 0
|
|
49681
|
+
containerCreatingAtEndCount: 0,
|
|
49682
|
+
containerTotalCount: 0
|
|
49498
49683
|
};
|
|
49499
49684
|
}
|
|
49500
49685
|
var ServerGetTimeRangeStatsResponse = {
|
|
@@ -49538,6 +49723,9 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49538
49723
|
if (message.containerCreatingAtEndCount !== 0) {
|
|
49539
49724
|
writer.uint32(88).uint64(message.containerCreatingAtEndCount);
|
|
49540
49725
|
}
|
|
49726
|
+
if (message.containerTotalCount !== 0) {
|
|
49727
|
+
writer.uint32(96).uint64(message.containerTotalCount);
|
|
49728
|
+
}
|
|
49541
49729
|
return writer;
|
|
49542
49730
|
},
|
|
49543
49731
|
decode(input, length) {
|
|
@@ -49632,6 +49820,13 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49632
49820
|
message.containerCreatingAtEndCount = longToNumber2(reader.uint64());
|
|
49633
49821
|
continue;
|
|
49634
49822
|
}
|
|
49823
|
+
case 12: {
|
|
49824
|
+
if (tag !== 96) {
|
|
49825
|
+
break;
|
|
49826
|
+
}
|
|
49827
|
+
message.containerTotalCount = longToNumber2(reader.uint64());
|
|
49828
|
+
continue;
|
|
49829
|
+
}
|
|
49635
49830
|
}
|
|
49636
49831
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49637
49832
|
break;
|
|
@@ -49666,7 +49861,8 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49666
49861
|
inference: isSet5(object.inference) ? ServerGetTimeRangeStatsResponse_ServerInferenceStats.fromJSON(object.inference) : void 0,
|
|
49667
49862
|
containerStartedCount: isSet5(object.containerStartedCount) ? globalThis.Number(object.containerStartedCount) : 0,
|
|
49668
49863
|
containerErrorCount: isSet5(object.containerErrorCount) ? globalThis.Number(object.containerErrorCount) : 0,
|
|
49669
|
-
containerCreatingAtEndCount: isSet5(object.containerCreatingAtEndCount) ? globalThis.Number(object.containerCreatingAtEndCount) : 0
|
|
49864
|
+
containerCreatingAtEndCount: isSet5(object.containerCreatingAtEndCount) ? globalThis.Number(object.containerCreatingAtEndCount) : 0,
|
|
49865
|
+
containerTotalCount: isSet5(object.containerTotalCount) ? globalThis.Number(object.containerTotalCount) : 0
|
|
49670
49866
|
};
|
|
49671
49867
|
},
|
|
49672
49868
|
toJSON(message) {
|
|
@@ -49718,6 +49914,9 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49718
49914
|
if (message.containerCreatingAtEndCount !== 0) {
|
|
49719
49915
|
obj.containerCreatingAtEndCount = Math.round(message.containerCreatingAtEndCount);
|
|
49720
49916
|
}
|
|
49917
|
+
if (message.containerTotalCount !== 0) {
|
|
49918
|
+
obj.containerTotalCount = Math.round(message.containerTotalCount);
|
|
49919
|
+
}
|
|
49721
49920
|
return obj;
|
|
49722
49921
|
},
|
|
49723
49922
|
create(base) {
|
|
@@ -49748,6 +49947,7 @@ var ServerGetTimeRangeStatsResponse = {
|
|
|
49748
49947
|
message.containerStartedCount = object.containerStartedCount ?? 0;
|
|
49749
49948
|
message.containerErrorCount = object.containerErrorCount ?? 0;
|
|
49750
49949
|
message.containerCreatingAtEndCount = object.containerCreatingAtEndCount ?? 0;
|
|
49950
|
+
message.containerTotalCount = object.containerTotalCount ?? 0;
|
|
49751
49951
|
return message;
|
|
49752
49952
|
}
|
|
49753
49953
|
};
|
|
@@ -65839,7 +66039,8 @@ function createBaseTaskContainerCreateRequest() {
|
|
|
65839
66039
|
volumeMounts: [],
|
|
65840
66040
|
networkAccess: void 0,
|
|
65841
66041
|
ptyInfo: void 0,
|
|
65842
|
-
memoryReserveConsumeMib: void 0
|
|
66042
|
+
memoryReserveConsumeMib: void 0,
|
|
66043
|
+
secretSources: []
|
|
65843
66044
|
};
|
|
65844
66045
|
}
|
|
65845
66046
|
var TaskContainerCreateRequest = {
|
|
@@ -65877,6 +66078,9 @@ var TaskContainerCreateRequest = {
|
|
|
65877
66078
|
if (message.memoryReserveConsumeMib !== void 0) {
|
|
65878
66079
|
writer.uint32(96).uint32(message.memoryReserveConsumeMib);
|
|
65879
66080
|
}
|
|
66081
|
+
for (const v of message.secretSources) {
|
|
66082
|
+
SecretSource.encode(v, writer.uint32(106).fork()).join();
|
|
66083
|
+
}
|
|
65880
66084
|
return writer;
|
|
65881
66085
|
},
|
|
65882
66086
|
decode(input, length) {
|
|
@@ -65966,6 +66170,13 @@ var TaskContainerCreateRequest = {
|
|
|
65966
66170
|
message.memoryReserveConsumeMib = reader.uint32();
|
|
65967
66171
|
continue;
|
|
65968
66172
|
}
|
|
66173
|
+
case 13: {
|
|
66174
|
+
if (tag !== 106) {
|
|
66175
|
+
break;
|
|
66176
|
+
}
|
|
66177
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
66178
|
+
continue;
|
|
66179
|
+
}
|
|
65969
66180
|
}
|
|
65970
66181
|
if ((tag & 7) === 4 || tag === 0) {
|
|
65971
66182
|
break;
|
|
@@ -65989,7 +66200,8 @@ var TaskContainerCreateRequest = {
|
|
|
65989
66200
|
volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : [],
|
|
65990
66201
|
networkAccess: isSet6(object.networkAccess) ? NetworkAccess.fromJSON(object.networkAccess) : void 0,
|
|
65991
66202
|
ptyInfo: isSet6(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
|
|
65992
|
-
memoryReserveConsumeMib: isSet6(object.memoryReserveConsumeMib) ? globalThis.Number(object.memoryReserveConsumeMib) : void 0
|
|
66203
|
+
memoryReserveConsumeMib: isSet6(object.memoryReserveConsumeMib) ? globalThis.Number(object.memoryReserveConsumeMib) : void 0,
|
|
66204
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
65993
66205
|
};
|
|
65994
66206
|
},
|
|
65995
66207
|
toJSON(message) {
|
|
@@ -66033,6 +66245,9 @@ var TaskContainerCreateRequest = {
|
|
|
66033
66245
|
if (message.memoryReserveConsumeMib !== void 0) {
|
|
66034
66246
|
obj.memoryReserveConsumeMib = Math.round(message.memoryReserveConsumeMib);
|
|
66035
66247
|
}
|
|
66248
|
+
if (message.secretSources?.length) {
|
|
66249
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
66250
|
+
}
|
|
66036
66251
|
return obj;
|
|
66037
66252
|
},
|
|
66038
66253
|
create(base) {
|
|
@@ -66056,6 +66271,7 @@ var TaskContainerCreateRequest = {
|
|
|
66056
66271
|
message.networkAccess = object.networkAccess !== void 0 && object.networkAccess !== null ? NetworkAccess.fromPartial(object.networkAccess) : void 0;
|
|
66057
66272
|
message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
|
|
66058
66273
|
message.memoryReserveConsumeMib = object.memoryReserveConsumeMib ?? void 0;
|
|
66274
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
66059
66275
|
return message;
|
|
66060
66276
|
}
|
|
66061
66277
|
};
|
|
@@ -66936,7 +67152,8 @@ function createBaseTaskExecStartRequest() {
|
|
|
66936
67152
|
ptyInfo: void 0,
|
|
66937
67153
|
runtimeDebug: false,
|
|
66938
67154
|
containerId: "",
|
|
66939
|
-
env: {}
|
|
67155
|
+
env: {},
|
|
67156
|
+
secretSources: []
|
|
66940
67157
|
};
|
|
66941
67158
|
}
|
|
66942
67159
|
var TaskExecStartRequest = {
|
|
@@ -66977,6 +67194,9 @@ var TaskExecStartRequest = {
|
|
|
66977
67194
|
Object.entries(message.env).forEach(([key, value]) => {
|
|
66978
67195
|
TaskExecStartRequest_EnvEntry.encode({ key, value }, writer.uint32(98).fork()).join();
|
|
66979
67196
|
});
|
|
67197
|
+
for (const v of message.secretSources) {
|
|
67198
|
+
SecretSource.encode(v, writer.uint32(106).fork()).join();
|
|
67199
|
+
}
|
|
66980
67200
|
return writer;
|
|
66981
67201
|
},
|
|
66982
67202
|
decode(input, length) {
|
|
@@ -67073,6 +67293,13 @@ var TaskExecStartRequest = {
|
|
|
67073
67293
|
}
|
|
67074
67294
|
continue;
|
|
67075
67295
|
}
|
|
67296
|
+
case 13: {
|
|
67297
|
+
if (tag !== 106) {
|
|
67298
|
+
break;
|
|
67299
|
+
}
|
|
67300
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
67301
|
+
continue;
|
|
67302
|
+
}
|
|
67076
67303
|
}
|
|
67077
67304
|
if ((tag & 7) === 4 || tag === 0) {
|
|
67078
67305
|
break;
|
|
@@ -67097,7 +67324,8 @@ var TaskExecStartRequest = {
|
|
|
67097
67324
|
env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
|
|
67098
67325
|
acc[key] = String(value);
|
|
67099
67326
|
return acc;
|
|
67100
|
-
}, {}) : {}
|
|
67327
|
+
}, {}) : {},
|
|
67328
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
67101
67329
|
};
|
|
67102
67330
|
},
|
|
67103
67331
|
toJSON(message) {
|
|
@@ -67144,6 +67372,9 @@ var TaskExecStartRequest = {
|
|
|
67144
67372
|
});
|
|
67145
67373
|
}
|
|
67146
67374
|
}
|
|
67375
|
+
if (message.secretSources?.length) {
|
|
67376
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
67377
|
+
}
|
|
67147
67378
|
return obj;
|
|
67148
67379
|
},
|
|
67149
67380
|
create(base) {
|
|
@@ -67168,6 +67399,7 @@ var TaskExecStartRequest = {
|
|
|
67168
67399
|
}
|
|
67169
67400
|
return acc;
|
|
67170
67401
|
}, {});
|
|
67402
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
67171
67403
|
return message;
|
|
67172
67404
|
}
|
|
67173
67405
|
};
|
|
@@ -71537,6 +71769,16 @@ var SidecarService = class {
|
|
|
71537
71769
|
);
|
|
71538
71770
|
}
|
|
71539
71771
|
}
|
|
71772
|
+
if (params?.proxy) {
|
|
71773
|
+
if (getSandboxVersion(this.#access.sandboxId) !== "V2" /* V2 */) {
|
|
71774
|
+
throw new InvalidError("proxy is not supported for GPU Sandboxes");
|
|
71775
|
+
}
|
|
71776
|
+
if (!viaControlPlane) {
|
|
71777
|
+
throw new InvalidError(
|
|
71778
|
+
`proxy is not supported when ${CONTROL_PLANE_SIDECAR_CREATE_ENV_VAR}=0 is set; unset it to use a proxy`
|
|
71779
|
+
);
|
|
71780
|
+
}
|
|
71781
|
+
}
|
|
71540
71782
|
validateEnvVarKeys(params?.env ?? {});
|
|
71541
71783
|
const [envDict, resolvableSecrets] = splitEnvDictAndResolvableSecrets(
|
|
71542
71784
|
params?.secrets ?? []
|
|
@@ -71575,6 +71817,7 @@ var SidecarService = class {
|
|
|
71575
71817
|
cloudBucketMounts,
|
|
71576
71818
|
networkAccess,
|
|
71577
71819
|
includeOidcIdentityToken: params?.includeOidcIdentityToken ?? false,
|
|
71820
|
+
proxyId: params?.proxy?.proxyId,
|
|
71578
71821
|
ptyInfo,
|
|
71579
71822
|
resources: params?.experimentalMemoryReserveConsumeMiB !== void 0 ? Resources.create({
|
|
71580
71823
|
memoryMb: params.experimentalMemoryReserveConsumeMiB
|
|
@@ -74333,7 +74576,7 @@ var AuthTokenManager = class {
|
|
|
74333
74576
|
};
|
|
74334
74577
|
|
|
74335
74578
|
// src/version.ts
|
|
74336
|
-
var SDK_VERSION = "0.11.1-dev.
|
|
74579
|
+
var SDK_VERSION = "0.11.1-dev.3";
|
|
74337
74580
|
function getSDKVersion() {
|
|
74338
74581
|
return SDK_VERSION;
|
|
74339
74582
|
}
|