modal 0.11.1-dev.1 → 0.11.1-dev.2
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 +165 -11
- package/dist/index.d.cts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +165 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21272,7 +21272,8 @@ function createBaseEnvironmentListItem() {
|
|
|
21272
21272
|
spendLimitReached: false,
|
|
21273
21273
|
environmentType: 0,
|
|
21274
21274
|
defaultMemberRole: void 0,
|
|
21275
|
-
blockUnauthenticatedResources: void 0
|
|
21275
|
+
blockUnauthenticatedResources: void 0,
|
|
21276
|
+
effectiveRole: void 0
|
|
21276
21277
|
};
|
|
21277
21278
|
}
|
|
21278
21279
|
var EnvironmentListItem = {
|
|
@@ -21328,6 +21329,9 @@ var EnvironmentListItem = {
|
|
|
21328
21329
|
if (message.blockUnauthenticatedResources !== void 0) {
|
|
21329
21330
|
writer.uint32(136).bool(message.blockUnauthenticatedResources);
|
|
21330
21331
|
}
|
|
21332
|
+
if (message.effectiveRole !== void 0) {
|
|
21333
|
+
writer.uint32(144).int32(message.effectiveRole);
|
|
21334
|
+
}
|
|
21331
21335
|
return writer;
|
|
21332
21336
|
},
|
|
21333
21337
|
decode(input, length) {
|
|
@@ -21456,6 +21460,13 @@ var EnvironmentListItem = {
|
|
|
21456
21460
|
message.blockUnauthenticatedResources = reader.bool();
|
|
21457
21461
|
continue;
|
|
21458
21462
|
}
|
|
21463
|
+
case 18: {
|
|
21464
|
+
if (tag !== 144) {
|
|
21465
|
+
break;
|
|
21466
|
+
}
|
|
21467
|
+
message.effectiveRole = reader.int32();
|
|
21468
|
+
continue;
|
|
21469
|
+
}
|
|
21459
21470
|
}
|
|
21460
21471
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21461
21472
|
break;
|
|
@@ -21482,7 +21493,8 @@ var EnvironmentListItem = {
|
|
|
21482
21493
|
spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false,
|
|
21483
21494
|
environmentType: isSet5(object.environmentType) ? environmentTypeFromJSON(object.environmentType) : 0,
|
|
21484
21495
|
defaultMemberRole: isSet5(object.defaultMemberRole) ? environmentRoleFromJSON(object.defaultMemberRole) : void 0,
|
|
21485
|
-
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? globalThis.Boolean(object.blockUnauthenticatedResources) : void 0
|
|
21496
|
+
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? globalThis.Boolean(object.blockUnauthenticatedResources) : void 0,
|
|
21497
|
+
effectiveRole: isSet5(object.effectiveRole) ? environmentRoleFromJSON(object.effectiveRole) : void 0
|
|
21486
21498
|
};
|
|
21487
21499
|
},
|
|
21488
21500
|
toJSON(message) {
|
|
@@ -21538,6 +21550,9 @@ var EnvironmentListItem = {
|
|
|
21538
21550
|
if (message.blockUnauthenticatedResources !== void 0) {
|
|
21539
21551
|
obj.blockUnauthenticatedResources = message.blockUnauthenticatedResources;
|
|
21540
21552
|
}
|
|
21553
|
+
if (message.effectiveRole !== void 0) {
|
|
21554
|
+
obj.effectiveRole = environmentRoleToJSON(message.effectiveRole);
|
|
21555
|
+
}
|
|
21541
21556
|
return obj;
|
|
21542
21557
|
},
|
|
21543
21558
|
create(base) {
|
|
@@ -21562,6 +21577,7 @@ var EnvironmentListItem = {
|
|
|
21562
21577
|
message.environmentType = object.environmentType ?? 0;
|
|
21563
21578
|
message.defaultMemberRole = object.defaultMemberRole ?? void 0;
|
|
21564
21579
|
message.blockUnauthenticatedResources = object.blockUnauthenticatedResources ?? void 0;
|
|
21580
|
+
message.effectiveRole = object.effectiveRole ?? void 0;
|
|
21565
21581
|
return message;
|
|
21566
21582
|
}
|
|
21567
21583
|
};
|
|
@@ -43532,7 +43548,8 @@ function createBaseSandboxContainerCreateV2Request() {
|
|
|
43532
43548
|
containerName: "",
|
|
43533
43549
|
definition: void 0,
|
|
43534
43550
|
ephemeralSecrets: void 0,
|
|
43535
|
-
cloudBucketMountCredentials: {}
|
|
43551
|
+
cloudBucketMountCredentials: {},
|
|
43552
|
+
secretSources: []
|
|
43536
43553
|
};
|
|
43537
43554
|
}
|
|
43538
43555
|
var SandboxContainerCreateV2Request = {
|
|
@@ -43555,6 +43572,9 @@ var SandboxContainerCreateV2Request = {
|
|
|
43555
43572
|
writer.uint32(42).fork()
|
|
43556
43573
|
).join();
|
|
43557
43574
|
});
|
|
43575
|
+
for (const v of message.secretSources) {
|
|
43576
|
+
SecretSource.encode(v, writer.uint32(50).fork()).join();
|
|
43577
|
+
}
|
|
43558
43578
|
return writer;
|
|
43559
43579
|
},
|
|
43560
43580
|
decode(input, length) {
|
|
@@ -43605,6 +43625,13 @@ var SandboxContainerCreateV2Request = {
|
|
|
43605
43625
|
}
|
|
43606
43626
|
continue;
|
|
43607
43627
|
}
|
|
43628
|
+
case 6: {
|
|
43629
|
+
if (tag !== 50) {
|
|
43630
|
+
break;
|
|
43631
|
+
}
|
|
43632
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
43633
|
+
continue;
|
|
43634
|
+
}
|
|
43608
43635
|
}
|
|
43609
43636
|
if ((tag & 7) === 4 || tag === 0) {
|
|
43610
43637
|
break;
|
|
@@ -43625,7 +43652,8 @@ var SandboxContainerCreateV2Request = {
|
|
|
43625
43652
|
return acc;
|
|
43626
43653
|
},
|
|
43627
43654
|
{}
|
|
43628
|
-
) : {}
|
|
43655
|
+
) : {},
|
|
43656
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
43629
43657
|
};
|
|
43630
43658
|
},
|
|
43631
43659
|
toJSON(message) {
|
|
@@ -43651,6 +43679,9 @@ var SandboxContainerCreateV2Request = {
|
|
|
43651
43679
|
});
|
|
43652
43680
|
}
|
|
43653
43681
|
}
|
|
43682
|
+
if (message.secretSources?.length) {
|
|
43683
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
43684
|
+
}
|
|
43654
43685
|
return obj;
|
|
43655
43686
|
},
|
|
43656
43687
|
create(base) {
|
|
@@ -43668,6 +43699,7 @@ var SandboxContainerCreateV2Request = {
|
|
|
43668
43699
|
}
|
|
43669
43700
|
return acc;
|
|
43670
43701
|
}, {});
|
|
43702
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
43671
43703
|
return message;
|
|
43672
43704
|
}
|
|
43673
43705
|
};
|
|
@@ -44125,7 +44157,14 @@ var SandboxCreateResponse = {
|
|
|
44125
44157
|
}
|
|
44126
44158
|
};
|
|
44127
44159
|
function createBaseSandboxCreateV2Request() {
|
|
44128
|
-
return {
|
|
44160
|
+
return {
|
|
44161
|
+
appId: "",
|
|
44162
|
+
definition: void 0,
|
|
44163
|
+
ephemeralSecrets: void 0,
|
|
44164
|
+
tags: [],
|
|
44165
|
+
cloudBucketMountCredentials: {},
|
|
44166
|
+
secretSources: []
|
|
44167
|
+
};
|
|
44129
44168
|
}
|
|
44130
44169
|
var SandboxCreateV2Request = {
|
|
44131
44170
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -44147,6 +44186,9 @@ var SandboxCreateV2Request = {
|
|
|
44147
44186
|
writer.uint32(42).fork()
|
|
44148
44187
|
).join();
|
|
44149
44188
|
});
|
|
44189
|
+
for (const v of message.secretSources) {
|
|
44190
|
+
SecretSource.encode(v, writer.uint32(50).fork()).join();
|
|
44191
|
+
}
|
|
44150
44192
|
return writer;
|
|
44151
44193
|
},
|
|
44152
44194
|
decode(input, length) {
|
|
@@ -44194,6 +44236,13 @@ var SandboxCreateV2Request = {
|
|
|
44194
44236
|
}
|
|
44195
44237
|
continue;
|
|
44196
44238
|
}
|
|
44239
|
+
case 6: {
|
|
44240
|
+
if (tag !== 50) {
|
|
44241
|
+
break;
|
|
44242
|
+
}
|
|
44243
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
44244
|
+
continue;
|
|
44245
|
+
}
|
|
44197
44246
|
}
|
|
44198
44247
|
if ((tag & 7) === 4 || tag === 0) {
|
|
44199
44248
|
break;
|
|
@@ -44214,7 +44263,8 @@ var SandboxCreateV2Request = {
|
|
|
44214
44263
|
return acc;
|
|
44215
44264
|
},
|
|
44216
44265
|
{}
|
|
44217
|
-
) : {}
|
|
44266
|
+
) : {},
|
|
44267
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
44218
44268
|
};
|
|
44219
44269
|
},
|
|
44220
44270
|
toJSON(message) {
|
|
@@ -44240,6 +44290,9 @@ var SandboxCreateV2Request = {
|
|
|
44240
44290
|
});
|
|
44241
44291
|
}
|
|
44242
44292
|
}
|
|
44293
|
+
if (message.secretSources?.length) {
|
|
44294
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
44295
|
+
}
|
|
44243
44296
|
return obj;
|
|
44244
44297
|
},
|
|
44245
44298
|
create(base) {
|
|
@@ -44257,6 +44310,7 @@ var SandboxCreateV2Request = {
|
|
|
44257
44310
|
}
|
|
44258
44311
|
return acc;
|
|
44259
44312
|
}, {});
|
|
44313
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
44260
44314
|
return message;
|
|
44261
44315
|
}
|
|
44262
44316
|
};
|
|
@@ -49248,6 +49302,74 @@ var SecretMetadata = {
|
|
|
49248
49302
|
return message;
|
|
49249
49303
|
}
|
|
49250
49304
|
};
|
|
49305
|
+
function createBaseSecretSource() {
|
|
49306
|
+
return { secretId: void 0, env: void 0 };
|
|
49307
|
+
}
|
|
49308
|
+
var SecretSource = {
|
|
49309
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49310
|
+
if (message.secretId !== void 0) {
|
|
49311
|
+
writer.uint32(10).string(message.secretId);
|
|
49312
|
+
}
|
|
49313
|
+
if (message.env !== void 0) {
|
|
49314
|
+
StringMap.encode(message.env, writer.uint32(18).fork()).join();
|
|
49315
|
+
}
|
|
49316
|
+
return writer;
|
|
49317
|
+
},
|
|
49318
|
+
decode(input, length) {
|
|
49319
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49320
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49321
|
+
const message = createBaseSecretSource();
|
|
49322
|
+
while (reader.pos < end) {
|
|
49323
|
+
const tag = reader.uint32();
|
|
49324
|
+
switch (tag >>> 3) {
|
|
49325
|
+
case 1: {
|
|
49326
|
+
if (tag !== 10) {
|
|
49327
|
+
break;
|
|
49328
|
+
}
|
|
49329
|
+
message.secretId = reader.string();
|
|
49330
|
+
continue;
|
|
49331
|
+
}
|
|
49332
|
+
case 2: {
|
|
49333
|
+
if (tag !== 18) {
|
|
49334
|
+
break;
|
|
49335
|
+
}
|
|
49336
|
+
message.env = StringMap.decode(reader, reader.uint32());
|
|
49337
|
+
continue;
|
|
49338
|
+
}
|
|
49339
|
+
}
|
|
49340
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49341
|
+
break;
|
|
49342
|
+
}
|
|
49343
|
+
reader.skip(tag & 7);
|
|
49344
|
+
}
|
|
49345
|
+
return message;
|
|
49346
|
+
},
|
|
49347
|
+
fromJSON(object) {
|
|
49348
|
+
return {
|
|
49349
|
+
secretId: isSet5(object.secretId) ? globalThis.String(object.secretId) : void 0,
|
|
49350
|
+
env: isSet5(object.env) ? StringMap.fromJSON(object.env) : void 0
|
|
49351
|
+
};
|
|
49352
|
+
},
|
|
49353
|
+
toJSON(message) {
|
|
49354
|
+
const obj = {};
|
|
49355
|
+
if (message.secretId !== void 0) {
|
|
49356
|
+
obj.secretId = message.secretId;
|
|
49357
|
+
}
|
|
49358
|
+
if (message.env !== void 0) {
|
|
49359
|
+
obj.env = StringMap.toJSON(message.env);
|
|
49360
|
+
}
|
|
49361
|
+
return obj;
|
|
49362
|
+
},
|
|
49363
|
+
create(base) {
|
|
49364
|
+
return SecretSource.fromPartial(base ?? {});
|
|
49365
|
+
},
|
|
49366
|
+
fromPartial(object) {
|
|
49367
|
+
const message = createBaseSecretSource();
|
|
49368
|
+
message.secretId = object.secretId ?? void 0;
|
|
49369
|
+
message.env = object.env !== void 0 && object.env !== null ? StringMap.fromPartial(object.env) : void 0;
|
|
49370
|
+
return message;
|
|
49371
|
+
}
|
|
49372
|
+
};
|
|
49251
49373
|
function createBaseSecretUpdateRequest() {
|
|
49252
49374
|
return { secretId: "", updates: [] };
|
|
49253
49375
|
}
|
|
@@ -65839,7 +65961,8 @@ function createBaseTaskContainerCreateRequest() {
|
|
|
65839
65961
|
volumeMounts: [],
|
|
65840
65962
|
networkAccess: void 0,
|
|
65841
65963
|
ptyInfo: void 0,
|
|
65842
|
-
memoryReserveConsumeMib: void 0
|
|
65964
|
+
memoryReserveConsumeMib: void 0,
|
|
65965
|
+
secretSources: []
|
|
65843
65966
|
};
|
|
65844
65967
|
}
|
|
65845
65968
|
var TaskContainerCreateRequest = {
|
|
@@ -65877,6 +66000,9 @@ var TaskContainerCreateRequest = {
|
|
|
65877
66000
|
if (message.memoryReserveConsumeMib !== void 0) {
|
|
65878
66001
|
writer.uint32(96).uint32(message.memoryReserveConsumeMib);
|
|
65879
66002
|
}
|
|
66003
|
+
for (const v of message.secretSources) {
|
|
66004
|
+
SecretSource.encode(v, writer.uint32(106).fork()).join();
|
|
66005
|
+
}
|
|
65880
66006
|
return writer;
|
|
65881
66007
|
},
|
|
65882
66008
|
decode(input, length) {
|
|
@@ -65966,6 +66092,13 @@ var TaskContainerCreateRequest = {
|
|
|
65966
66092
|
message.memoryReserveConsumeMib = reader.uint32();
|
|
65967
66093
|
continue;
|
|
65968
66094
|
}
|
|
66095
|
+
case 13: {
|
|
66096
|
+
if (tag !== 106) {
|
|
66097
|
+
break;
|
|
66098
|
+
}
|
|
66099
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
66100
|
+
continue;
|
|
66101
|
+
}
|
|
65969
66102
|
}
|
|
65970
66103
|
if ((tag & 7) === 4 || tag === 0) {
|
|
65971
66104
|
break;
|
|
@@ -65989,7 +66122,8 @@ var TaskContainerCreateRequest = {
|
|
|
65989
66122
|
volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : [],
|
|
65990
66123
|
networkAccess: isSet6(object.networkAccess) ? NetworkAccess.fromJSON(object.networkAccess) : void 0,
|
|
65991
66124
|
ptyInfo: isSet6(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
|
|
65992
|
-
memoryReserveConsumeMib: isSet6(object.memoryReserveConsumeMib) ? globalThis.Number(object.memoryReserveConsumeMib) : void 0
|
|
66125
|
+
memoryReserveConsumeMib: isSet6(object.memoryReserveConsumeMib) ? globalThis.Number(object.memoryReserveConsumeMib) : void 0,
|
|
66126
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
65993
66127
|
};
|
|
65994
66128
|
},
|
|
65995
66129
|
toJSON(message) {
|
|
@@ -66033,6 +66167,9 @@ var TaskContainerCreateRequest = {
|
|
|
66033
66167
|
if (message.memoryReserveConsumeMib !== void 0) {
|
|
66034
66168
|
obj.memoryReserveConsumeMib = Math.round(message.memoryReserveConsumeMib);
|
|
66035
66169
|
}
|
|
66170
|
+
if (message.secretSources?.length) {
|
|
66171
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
66172
|
+
}
|
|
66036
66173
|
return obj;
|
|
66037
66174
|
},
|
|
66038
66175
|
create(base) {
|
|
@@ -66056,6 +66193,7 @@ var TaskContainerCreateRequest = {
|
|
|
66056
66193
|
message.networkAccess = object.networkAccess !== void 0 && object.networkAccess !== null ? NetworkAccess.fromPartial(object.networkAccess) : void 0;
|
|
66057
66194
|
message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
|
|
66058
66195
|
message.memoryReserveConsumeMib = object.memoryReserveConsumeMib ?? void 0;
|
|
66196
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
66059
66197
|
return message;
|
|
66060
66198
|
}
|
|
66061
66199
|
};
|
|
@@ -66936,7 +67074,8 @@ function createBaseTaskExecStartRequest() {
|
|
|
66936
67074
|
ptyInfo: void 0,
|
|
66937
67075
|
runtimeDebug: false,
|
|
66938
67076
|
containerId: "",
|
|
66939
|
-
env: {}
|
|
67077
|
+
env: {},
|
|
67078
|
+
secretSources: []
|
|
66940
67079
|
};
|
|
66941
67080
|
}
|
|
66942
67081
|
var TaskExecStartRequest = {
|
|
@@ -66977,6 +67116,9 @@ var TaskExecStartRequest = {
|
|
|
66977
67116
|
Object.entries(message.env).forEach(([key, value]) => {
|
|
66978
67117
|
TaskExecStartRequest_EnvEntry.encode({ key, value }, writer.uint32(98).fork()).join();
|
|
66979
67118
|
});
|
|
67119
|
+
for (const v of message.secretSources) {
|
|
67120
|
+
SecretSource.encode(v, writer.uint32(106).fork()).join();
|
|
67121
|
+
}
|
|
66980
67122
|
return writer;
|
|
66981
67123
|
},
|
|
66982
67124
|
decode(input, length) {
|
|
@@ -67073,6 +67215,13 @@ var TaskExecStartRequest = {
|
|
|
67073
67215
|
}
|
|
67074
67216
|
continue;
|
|
67075
67217
|
}
|
|
67218
|
+
case 13: {
|
|
67219
|
+
if (tag !== 106) {
|
|
67220
|
+
break;
|
|
67221
|
+
}
|
|
67222
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
67223
|
+
continue;
|
|
67224
|
+
}
|
|
67076
67225
|
}
|
|
67077
67226
|
if ((tag & 7) === 4 || tag === 0) {
|
|
67078
67227
|
break;
|
|
@@ -67097,7 +67246,8 @@ var TaskExecStartRequest = {
|
|
|
67097
67246
|
env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
|
|
67098
67247
|
acc[key] = String(value);
|
|
67099
67248
|
return acc;
|
|
67100
|
-
}, {}) : {}
|
|
67249
|
+
}, {}) : {},
|
|
67250
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
67101
67251
|
};
|
|
67102
67252
|
},
|
|
67103
67253
|
toJSON(message) {
|
|
@@ -67144,6 +67294,9 @@ var TaskExecStartRequest = {
|
|
|
67144
67294
|
});
|
|
67145
67295
|
}
|
|
67146
67296
|
}
|
|
67297
|
+
if (message.secretSources?.length) {
|
|
67298
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
67299
|
+
}
|
|
67147
67300
|
return obj;
|
|
67148
67301
|
},
|
|
67149
67302
|
create(base) {
|
|
@@ -67168,6 +67321,7 @@ var TaskExecStartRequest = {
|
|
|
67168
67321
|
}
|
|
67169
67322
|
return acc;
|
|
67170
67323
|
}, {});
|
|
67324
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
67171
67325
|
return message;
|
|
67172
67326
|
}
|
|
67173
67327
|
};
|
|
@@ -74333,7 +74487,7 @@ var AuthTokenManager = class {
|
|
|
74333
74487
|
};
|
|
74334
74488
|
|
|
74335
74489
|
// src/version.ts
|
|
74336
|
-
var SDK_VERSION = "0.11.1-dev.
|
|
74490
|
+
var SDK_VERSION = "0.11.1-dev.2";
|
|
74337
74491
|
function getSDKVersion() {
|
|
74338
74492
|
return SDK_VERSION;
|
|
74339
74493
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1883,6 +1883,7 @@ interface EnvironmentListItem {
|
|
|
1883
1883
|
environmentType: EnvironmentType;
|
|
1884
1884
|
defaultMemberRole?: EnvironmentRole | undefined;
|
|
1885
1885
|
blockUnauthenticatedResources?: boolean | undefined;
|
|
1886
|
+
effectiveRole?: EnvironmentRole | undefined;
|
|
1886
1887
|
}
|
|
1887
1888
|
declare const EnvironmentListItem: MessageFns$1<EnvironmentListItem>;
|
|
1888
1889
|
interface EnvironmentListResponse {
|
|
@@ -3758,6 +3759,8 @@ interface SandboxContainerCreateV2Request {
|
|
|
3758
3759
|
cloudBucketMountCredentials: {
|
|
3759
3760
|
[key: string]: StringMap;
|
|
3760
3761
|
};
|
|
3762
|
+
/** Applied in order. Cannot be combined with ephemeral_secrets. If definition.secret_ids is set, it must match the secret_id entries here. */
|
|
3763
|
+
secretSources: SecretSource[];
|
|
3761
3764
|
}
|
|
3762
3765
|
declare const SandboxContainerCreateV2Request: MessageFns$1<SandboxContainerCreateV2Request>;
|
|
3763
3766
|
interface SandboxContainerCreateV2Response {
|
|
@@ -3798,6 +3801,8 @@ interface SandboxCreateV2Request {
|
|
|
3798
3801
|
cloudBucketMountCredentials: {
|
|
3799
3802
|
[key: string]: StringMap;
|
|
3800
3803
|
};
|
|
3804
|
+
/** Applied in order. Cannot be combined with ephemeral_secrets. If definition.secret_ids is set, it must match the secret_id entries here. */
|
|
3805
|
+
secretSources: SecretSource[];
|
|
3801
3806
|
}
|
|
3802
3807
|
declare const SandboxCreateV2Request: MessageFns$1<SandboxCreateV2Request>;
|
|
3803
3808
|
interface SandboxCreateV2Response {
|
|
@@ -4181,6 +4186,14 @@ interface SecretMetadata {
|
|
|
4181
4186
|
environmentName: string;
|
|
4182
4187
|
}
|
|
4183
4188
|
declare const SecretMetadata: MessageFns$1<SecretMetadata>;
|
|
4189
|
+
/** One source of environment variables for a Sandbox container or exec. */
|
|
4190
|
+
interface SecretSource {
|
|
4191
|
+
/** Server-side Secret, resolved on the worker. */
|
|
4192
|
+
secretId?: string | undefined;
|
|
4193
|
+
/** Plaintext values sent directly to the worker. Must not be persisted. */
|
|
4194
|
+
env?: StringMap | undefined;
|
|
4195
|
+
}
|
|
4196
|
+
declare const SecretSource: MessageFns$1<SecretSource>;
|
|
4184
4197
|
interface SecretUpdateRequest {
|
|
4185
4198
|
secretId: string;
|
|
4186
4199
|
updates: SecretUpdateRequest_Update[];
|
|
@@ -8296,6 +8309,8 @@ interface TaskContainerCreateRequest {
|
|
|
8296
8309
|
* consumes whatever is left of it. Ignored without a reserve.
|
|
8297
8310
|
*/
|
|
8298
8311
|
memoryReserveConsumeMib?: number | undefined;
|
|
8312
|
+
/** Applied in order. Cannot be combined with secret_ids or env. */
|
|
8313
|
+
secretSources: SecretSource[];
|
|
8299
8314
|
}
|
|
8300
8315
|
declare const TaskContainerCreateRequest: MessageFns<TaskContainerCreateRequest>;
|
|
8301
8316
|
interface TaskContainerCreateResponse {
|
|
@@ -8396,6 +8411,8 @@ interface TaskExecStartRequest {
|
|
|
8396
8411
|
env: {
|
|
8397
8412
|
[key: string]: string;
|
|
8398
8413
|
};
|
|
8414
|
+
/** Applied in order. Cannot be combined with secret_ids or env. */
|
|
8415
|
+
secretSources: SecretSource[];
|
|
8399
8416
|
}
|
|
8400
8417
|
declare const TaskExecStartRequest: MessageFns<TaskExecStartRequest>;
|
|
8401
8418
|
interface TaskExecStartResponse {
|
package/dist/index.d.ts
CHANGED
|
@@ -1883,6 +1883,7 @@ interface EnvironmentListItem {
|
|
|
1883
1883
|
environmentType: EnvironmentType;
|
|
1884
1884
|
defaultMemberRole?: EnvironmentRole | undefined;
|
|
1885
1885
|
blockUnauthenticatedResources?: boolean | undefined;
|
|
1886
|
+
effectiveRole?: EnvironmentRole | undefined;
|
|
1886
1887
|
}
|
|
1887
1888
|
declare const EnvironmentListItem: MessageFns$1<EnvironmentListItem>;
|
|
1888
1889
|
interface EnvironmentListResponse {
|
|
@@ -3758,6 +3759,8 @@ interface SandboxContainerCreateV2Request {
|
|
|
3758
3759
|
cloudBucketMountCredentials: {
|
|
3759
3760
|
[key: string]: StringMap;
|
|
3760
3761
|
};
|
|
3762
|
+
/** Applied in order. Cannot be combined with ephemeral_secrets. If definition.secret_ids is set, it must match the secret_id entries here. */
|
|
3763
|
+
secretSources: SecretSource[];
|
|
3761
3764
|
}
|
|
3762
3765
|
declare const SandboxContainerCreateV2Request: MessageFns$1<SandboxContainerCreateV2Request>;
|
|
3763
3766
|
interface SandboxContainerCreateV2Response {
|
|
@@ -3798,6 +3801,8 @@ interface SandboxCreateV2Request {
|
|
|
3798
3801
|
cloudBucketMountCredentials: {
|
|
3799
3802
|
[key: string]: StringMap;
|
|
3800
3803
|
};
|
|
3804
|
+
/** Applied in order. Cannot be combined with ephemeral_secrets. If definition.secret_ids is set, it must match the secret_id entries here. */
|
|
3805
|
+
secretSources: SecretSource[];
|
|
3801
3806
|
}
|
|
3802
3807
|
declare const SandboxCreateV2Request: MessageFns$1<SandboxCreateV2Request>;
|
|
3803
3808
|
interface SandboxCreateV2Response {
|
|
@@ -4181,6 +4186,14 @@ interface SecretMetadata {
|
|
|
4181
4186
|
environmentName: string;
|
|
4182
4187
|
}
|
|
4183
4188
|
declare const SecretMetadata: MessageFns$1<SecretMetadata>;
|
|
4189
|
+
/** One source of environment variables for a Sandbox container or exec. */
|
|
4190
|
+
interface SecretSource {
|
|
4191
|
+
/** Server-side Secret, resolved on the worker. */
|
|
4192
|
+
secretId?: string | undefined;
|
|
4193
|
+
/** Plaintext values sent directly to the worker. Must not be persisted. */
|
|
4194
|
+
env?: StringMap | undefined;
|
|
4195
|
+
}
|
|
4196
|
+
declare const SecretSource: MessageFns$1<SecretSource>;
|
|
4184
4197
|
interface SecretUpdateRequest {
|
|
4185
4198
|
secretId: string;
|
|
4186
4199
|
updates: SecretUpdateRequest_Update[];
|
|
@@ -8296,6 +8309,8 @@ interface TaskContainerCreateRequest {
|
|
|
8296
8309
|
* consumes whatever is left of it. Ignored without a reserve.
|
|
8297
8310
|
*/
|
|
8298
8311
|
memoryReserveConsumeMib?: number | undefined;
|
|
8312
|
+
/** Applied in order. Cannot be combined with secret_ids or env. */
|
|
8313
|
+
secretSources: SecretSource[];
|
|
8299
8314
|
}
|
|
8300
8315
|
declare const TaskContainerCreateRequest: MessageFns<TaskContainerCreateRequest>;
|
|
8301
8316
|
interface TaskContainerCreateResponse {
|
|
@@ -8396,6 +8411,8 @@ interface TaskExecStartRequest {
|
|
|
8396
8411
|
env: {
|
|
8397
8412
|
[key: string]: string;
|
|
8398
8413
|
};
|
|
8414
|
+
/** Applied in order. Cannot be combined with secret_ids or env. */
|
|
8415
|
+
secretSources: SecretSource[];
|
|
8399
8416
|
}
|
|
8400
8417
|
declare const TaskExecStartRequest: MessageFns<TaskExecStartRequest>;
|
|
8401
8418
|
interface TaskExecStartResponse {
|
package/dist/index.js
CHANGED
|
@@ -21177,7 +21177,8 @@ function createBaseEnvironmentListItem() {
|
|
|
21177
21177
|
spendLimitReached: false,
|
|
21178
21178
|
environmentType: 0,
|
|
21179
21179
|
defaultMemberRole: void 0,
|
|
21180
|
-
blockUnauthenticatedResources: void 0
|
|
21180
|
+
blockUnauthenticatedResources: void 0,
|
|
21181
|
+
effectiveRole: void 0
|
|
21181
21182
|
};
|
|
21182
21183
|
}
|
|
21183
21184
|
var EnvironmentListItem = {
|
|
@@ -21233,6 +21234,9 @@ var EnvironmentListItem = {
|
|
|
21233
21234
|
if (message.blockUnauthenticatedResources !== void 0) {
|
|
21234
21235
|
writer.uint32(136).bool(message.blockUnauthenticatedResources);
|
|
21235
21236
|
}
|
|
21237
|
+
if (message.effectiveRole !== void 0) {
|
|
21238
|
+
writer.uint32(144).int32(message.effectiveRole);
|
|
21239
|
+
}
|
|
21236
21240
|
return writer;
|
|
21237
21241
|
},
|
|
21238
21242
|
decode(input, length) {
|
|
@@ -21361,6 +21365,13 @@ var EnvironmentListItem = {
|
|
|
21361
21365
|
message.blockUnauthenticatedResources = reader.bool();
|
|
21362
21366
|
continue;
|
|
21363
21367
|
}
|
|
21368
|
+
case 18: {
|
|
21369
|
+
if (tag !== 144) {
|
|
21370
|
+
break;
|
|
21371
|
+
}
|
|
21372
|
+
message.effectiveRole = reader.int32();
|
|
21373
|
+
continue;
|
|
21374
|
+
}
|
|
21364
21375
|
}
|
|
21365
21376
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21366
21377
|
break;
|
|
@@ -21387,7 +21398,8 @@ var EnvironmentListItem = {
|
|
|
21387
21398
|
spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false,
|
|
21388
21399
|
environmentType: isSet5(object.environmentType) ? environmentTypeFromJSON(object.environmentType) : 0,
|
|
21389
21400
|
defaultMemberRole: isSet5(object.defaultMemberRole) ? environmentRoleFromJSON(object.defaultMemberRole) : void 0,
|
|
21390
|
-
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? globalThis.Boolean(object.blockUnauthenticatedResources) : void 0
|
|
21401
|
+
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? globalThis.Boolean(object.blockUnauthenticatedResources) : void 0,
|
|
21402
|
+
effectiveRole: isSet5(object.effectiveRole) ? environmentRoleFromJSON(object.effectiveRole) : void 0
|
|
21391
21403
|
};
|
|
21392
21404
|
},
|
|
21393
21405
|
toJSON(message) {
|
|
@@ -21443,6 +21455,9 @@ var EnvironmentListItem = {
|
|
|
21443
21455
|
if (message.blockUnauthenticatedResources !== void 0) {
|
|
21444
21456
|
obj.blockUnauthenticatedResources = message.blockUnauthenticatedResources;
|
|
21445
21457
|
}
|
|
21458
|
+
if (message.effectiveRole !== void 0) {
|
|
21459
|
+
obj.effectiveRole = environmentRoleToJSON(message.effectiveRole);
|
|
21460
|
+
}
|
|
21446
21461
|
return obj;
|
|
21447
21462
|
},
|
|
21448
21463
|
create(base) {
|
|
@@ -21467,6 +21482,7 @@ var EnvironmentListItem = {
|
|
|
21467
21482
|
message.environmentType = object.environmentType ?? 0;
|
|
21468
21483
|
message.defaultMemberRole = object.defaultMemberRole ?? void 0;
|
|
21469
21484
|
message.blockUnauthenticatedResources = object.blockUnauthenticatedResources ?? void 0;
|
|
21485
|
+
message.effectiveRole = object.effectiveRole ?? void 0;
|
|
21470
21486
|
return message;
|
|
21471
21487
|
}
|
|
21472
21488
|
};
|
|
@@ -43437,7 +43453,8 @@ function createBaseSandboxContainerCreateV2Request() {
|
|
|
43437
43453
|
containerName: "",
|
|
43438
43454
|
definition: void 0,
|
|
43439
43455
|
ephemeralSecrets: void 0,
|
|
43440
|
-
cloudBucketMountCredentials: {}
|
|
43456
|
+
cloudBucketMountCredentials: {},
|
|
43457
|
+
secretSources: []
|
|
43441
43458
|
};
|
|
43442
43459
|
}
|
|
43443
43460
|
var SandboxContainerCreateV2Request = {
|
|
@@ -43460,6 +43477,9 @@ var SandboxContainerCreateV2Request = {
|
|
|
43460
43477
|
writer.uint32(42).fork()
|
|
43461
43478
|
).join();
|
|
43462
43479
|
});
|
|
43480
|
+
for (const v of message.secretSources) {
|
|
43481
|
+
SecretSource.encode(v, writer.uint32(50).fork()).join();
|
|
43482
|
+
}
|
|
43463
43483
|
return writer;
|
|
43464
43484
|
},
|
|
43465
43485
|
decode(input, length) {
|
|
@@ -43510,6 +43530,13 @@ var SandboxContainerCreateV2Request = {
|
|
|
43510
43530
|
}
|
|
43511
43531
|
continue;
|
|
43512
43532
|
}
|
|
43533
|
+
case 6: {
|
|
43534
|
+
if (tag !== 50) {
|
|
43535
|
+
break;
|
|
43536
|
+
}
|
|
43537
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
43538
|
+
continue;
|
|
43539
|
+
}
|
|
43513
43540
|
}
|
|
43514
43541
|
if ((tag & 7) === 4 || tag === 0) {
|
|
43515
43542
|
break;
|
|
@@ -43530,7 +43557,8 @@ var SandboxContainerCreateV2Request = {
|
|
|
43530
43557
|
return acc;
|
|
43531
43558
|
},
|
|
43532
43559
|
{}
|
|
43533
|
-
) : {}
|
|
43560
|
+
) : {},
|
|
43561
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
43534
43562
|
};
|
|
43535
43563
|
},
|
|
43536
43564
|
toJSON(message) {
|
|
@@ -43556,6 +43584,9 @@ var SandboxContainerCreateV2Request = {
|
|
|
43556
43584
|
});
|
|
43557
43585
|
}
|
|
43558
43586
|
}
|
|
43587
|
+
if (message.secretSources?.length) {
|
|
43588
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
43589
|
+
}
|
|
43559
43590
|
return obj;
|
|
43560
43591
|
},
|
|
43561
43592
|
create(base) {
|
|
@@ -43573,6 +43604,7 @@ var SandboxContainerCreateV2Request = {
|
|
|
43573
43604
|
}
|
|
43574
43605
|
return acc;
|
|
43575
43606
|
}, {});
|
|
43607
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
43576
43608
|
return message;
|
|
43577
43609
|
}
|
|
43578
43610
|
};
|
|
@@ -44030,7 +44062,14 @@ var SandboxCreateResponse = {
|
|
|
44030
44062
|
}
|
|
44031
44063
|
};
|
|
44032
44064
|
function createBaseSandboxCreateV2Request() {
|
|
44033
|
-
return {
|
|
44065
|
+
return {
|
|
44066
|
+
appId: "",
|
|
44067
|
+
definition: void 0,
|
|
44068
|
+
ephemeralSecrets: void 0,
|
|
44069
|
+
tags: [],
|
|
44070
|
+
cloudBucketMountCredentials: {},
|
|
44071
|
+
secretSources: []
|
|
44072
|
+
};
|
|
44034
44073
|
}
|
|
44035
44074
|
var SandboxCreateV2Request = {
|
|
44036
44075
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -44052,6 +44091,9 @@ var SandboxCreateV2Request = {
|
|
|
44052
44091
|
writer.uint32(42).fork()
|
|
44053
44092
|
).join();
|
|
44054
44093
|
});
|
|
44094
|
+
for (const v of message.secretSources) {
|
|
44095
|
+
SecretSource.encode(v, writer.uint32(50).fork()).join();
|
|
44096
|
+
}
|
|
44055
44097
|
return writer;
|
|
44056
44098
|
},
|
|
44057
44099
|
decode(input, length) {
|
|
@@ -44099,6 +44141,13 @@ var SandboxCreateV2Request = {
|
|
|
44099
44141
|
}
|
|
44100
44142
|
continue;
|
|
44101
44143
|
}
|
|
44144
|
+
case 6: {
|
|
44145
|
+
if (tag !== 50) {
|
|
44146
|
+
break;
|
|
44147
|
+
}
|
|
44148
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
44149
|
+
continue;
|
|
44150
|
+
}
|
|
44102
44151
|
}
|
|
44103
44152
|
if ((tag & 7) === 4 || tag === 0) {
|
|
44104
44153
|
break;
|
|
@@ -44119,7 +44168,8 @@ var SandboxCreateV2Request = {
|
|
|
44119
44168
|
return acc;
|
|
44120
44169
|
},
|
|
44121
44170
|
{}
|
|
44122
|
-
) : {}
|
|
44171
|
+
) : {},
|
|
44172
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
44123
44173
|
};
|
|
44124
44174
|
},
|
|
44125
44175
|
toJSON(message) {
|
|
@@ -44145,6 +44195,9 @@ var SandboxCreateV2Request = {
|
|
|
44145
44195
|
});
|
|
44146
44196
|
}
|
|
44147
44197
|
}
|
|
44198
|
+
if (message.secretSources?.length) {
|
|
44199
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
44200
|
+
}
|
|
44148
44201
|
return obj;
|
|
44149
44202
|
},
|
|
44150
44203
|
create(base) {
|
|
@@ -44162,6 +44215,7 @@ var SandboxCreateV2Request = {
|
|
|
44162
44215
|
}
|
|
44163
44216
|
return acc;
|
|
44164
44217
|
}, {});
|
|
44218
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
44165
44219
|
return message;
|
|
44166
44220
|
}
|
|
44167
44221
|
};
|
|
@@ -49153,6 +49207,74 @@ var SecretMetadata = {
|
|
|
49153
49207
|
return message;
|
|
49154
49208
|
}
|
|
49155
49209
|
};
|
|
49210
|
+
function createBaseSecretSource() {
|
|
49211
|
+
return { secretId: void 0, env: void 0 };
|
|
49212
|
+
}
|
|
49213
|
+
var SecretSource = {
|
|
49214
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49215
|
+
if (message.secretId !== void 0) {
|
|
49216
|
+
writer.uint32(10).string(message.secretId);
|
|
49217
|
+
}
|
|
49218
|
+
if (message.env !== void 0) {
|
|
49219
|
+
StringMap.encode(message.env, writer.uint32(18).fork()).join();
|
|
49220
|
+
}
|
|
49221
|
+
return writer;
|
|
49222
|
+
},
|
|
49223
|
+
decode(input, length) {
|
|
49224
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49225
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49226
|
+
const message = createBaseSecretSource();
|
|
49227
|
+
while (reader.pos < end) {
|
|
49228
|
+
const tag = reader.uint32();
|
|
49229
|
+
switch (tag >>> 3) {
|
|
49230
|
+
case 1: {
|
|
49231
|
+
if (tag !== 10) {
|
|
49232
|
+
break;
|
|
49233
|
+
}
|
|
49234
|
+
message.secretId = reader.string();
|
|
49235
|
+
continue;
|
|
49236
|
+
}
|
|
49237
|
+
case 2: {
|
|
49238
|
+
if (tag !== 18) {
|
|
49239
|
+
break;
|
|
49240
|
+
}
|
|
49241
|
+
message.env = StringMap.decode(reader, reader.uint32());
|
|
49242
|
+
continue;
|
|
49243
|
+
}
|
|
49244
|
+
}
|
|
49245
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49246
|
+
break;
|
|
49247
|
+
}
|
|
49248
|
+
reader.skip(tag & 7);
|
|
49249
|
+
}
|
|
49250
|
+
return message;
|
|
49251
|
+
},
|
|
49252
|
+
fromJSON(object) {
|
|
49253
|
+
return {
|
|
49254
|
+
secretId: isSet5(object.secretId) ? globalThis.String(object.secretId) : void 0,
|
|
49255
|
+
env: isSet5(object.env) ? StringMap.fromJSON(object.env) : void 0
|
|
49256
|
+
};
|
|
49257
|
+
},
|
|
49258
|
+
toJSON(message) {
|
|
49259
|
+
const obj = {};
|
|
49260
|
+
if (message.secretId !== void 0) {
|
|
49261
|
+
obj.secretId = message.secretId;
|
|
49262
|
+
}
|
|
49263
|
+
if (message.env !== void 0) {
|
|
49264
|
+
obj.env = StringMap.toJSON(message.env);
|
|
49265
|
+
}
|
|
49266
|
+
return obj;
|
|
49267
|
+
},
|
|
49268
|
+
create(base) {
|
|
49269
|
+
return SecretSource.fromPartial(base ?? {});
|
|
49270
|
+
},
|
|
49271
|
+
fromPartial(object) {
|
|
49272
|
+
const message = createBaseSecretSource();
|
|
49273
|
+
message.secretId = object.secretId ?? void 0;
|
|
49274
|
+
message.env = object.env !== void 0 && object.env !== null ? StringMap.fromPartial(object.env) : void 0;
|
|
49275
|
+
return message;
|
|
49276
|
+
}
|
|
49277
|
+
};
|
|
49156
49278
|
function createBaseSecretUpdateRequest() {
|
|
49157
49279
|
return { secretId: "", updates: [] };
|
|
49158
49280
|
}
|
|
@@ -65750,7 +65872,8 @@ function createBaseTaskContainerCreateRequest() {
|
|
|
65750
65872
|
volumeMounts: [],
|
|
65751
65873
|
networkAccess: void 0,
|
|
65752
65874
|
ptyInfo: void 0,
|
|
65753
|
-
memoryReserveConsumeMib: void 0
|
|
65875
|
+
memoryReserveConsumeMib: void 0,
|
|
65876
|
+
secretSources: []
|
|
65754
65877
|
};
|
|
65755
65878
|
}
|
|
65756
65879
|
var TaskContainerCreateRequest = {
|
|
@@ -65788,6 +65911,9 @@ var TaskContainerCreateRequest = {
|
|
|
65788
65911
|
if (message.memoryReserveConsumeMib !== void 0) {
|
|
65789
65912
|
writer.uint32(96).uint32(message.memoryReserveConsumeMib);
|
|
65790
65913
|
}
|
|
65914
|
+
for (const v of message.secretSources) {
|
|
65915
|
+
SecretSource.encode(v, writer.uint32(106).fork()).join();
|
|
65916
|
+
}
|
|
65791
65917
|
return writer;
|
|
65792
65918
|
},
|
|
65793
65919
|
decode(input, length) {
|
|
@@ -65877,6 +66003,13 @@ var TaskContainerCreateRequest = {
|
|
|
65877
66003
|
message.memoryReserveConsumeMib = reader.uint32();
|
|
65878
66004
|
continue;
|
|
65879
66005
|
}
|
|
66006
|
+
case 13: {
|
|
66007
|
+
if (tag !== 106) {
|
|
66008
|
+
break;
|
|
66009
|
+
}
|
|
66010
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
66011
|
+
continue;
|
|
66012
|
+
}
|
|
65880
66013
|
}
|
|
65881
66014
|
if ((tag & 7) === 4 || tag === 0) {
|
|
65882
66015
|
break;
|
|
@@ -65900,7 +66033,8 @@ var TaskContainerCreateRequest = {
|
|
|
65900
66033
|
volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : [],
|
|
65901
66034
|
networkAccess: isSet6(object.networkAccess) ? NetworkAccess.fromJSON(object.networkAccess) : void 0,
|
|
65902
66035
|
ptyInfo: isSet6(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
|
|
65903
|
-
memoryReserveConsumeMib: isSet6(object.memoryReserveConsumeMib) ? globalThis.Number(object.memoryReserveConsumeMib) : void 0
|
|
66036
|
+
memoryReserveConsumeMib: isSet6(object.memoryReserveConsumeMib) ? globalThis.Number(object.memoryReserveConsumeMib) : void 0,
|
|
66037
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
65904
66038
|
};
|
|
65905
66039
|
},
|
|
65906
66040
|
toJSON(message) {
|
|
@@ -65944,6 +66078,9 @@ var TaskContainerCreateRequest = {
|
|
|
65944
66078
|
if (message.memoryReserveConsumeMib !== void 0) {
|
|
65945
66079
|
obj.memoryReserveConsumeMib = Math.round(message.memoryReserveConsumeMib);
|
|
65946
66080
|
}
|
|
66081
|
+
if (message.secretSources?.length) {
|
|
66082
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
66083
|
+
}
|
|
65947
66084
|
return obj;
|
|
65948
66085
|
},
|
|
65949
66086
|
create(base) {
|
|
@@ -65967,6 +66104,7 @@ var TaskContainerCreateRequest = {
|
|
|
65967
66104
|
message.networkAccess = object.networkAccess !== void 0 && object.networkAccess !== null ? NetworkAccess.fromPartial(object.networkAccess) : void 0;
|
|
65968
66105
|
message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
|
|
65969
66106
|
message.memoryReserveConsumeMib = object.memoryReserveConsumeMib ?? void 0;
|
|
66107
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
65970
66108
|
return message;
|
|
65971
66109
|
}
|
|
65972
66110
|
};
|
|
@@ -66847,7 +66985,8 @@ function createBaseTaskExecStartRequest() {
|
|
|
66847
66985
|
ptyInfo: void 0,
|
|
66848
66986
|
runtimeDebug: false,
|
|
66849
66987
|
containerId: "",
|
|
66850
|
-
env: {}
|
|
66988
|
+
env: {},
|
|
66989
|
+
secretSources: []
|
|
66851
66990
|
};
|
|
66852
66991
|
}
|
|
66853
66992
|
var TaskExecStartRequest = {
|
|
@@ -66888,6 +67027,9 @@ var TaskExecStartRequest = {
|
|
|
66888
67027
|
Object.entries(message.env).forEach(([key, value]) => {
|
|
66889
67028
|
TaskExecStartRequest_EnvEntry.encode({ key, value }, writer.uint32(98).fork()).join();
|
|
66890
67029
|
});
|
|
67030
|
+
for (const v of message.secretSources) {
|
|
67031
|
+
SecretSource.encode(v, writer.uint32(106).fork()).join();
|
|
67032
|
+
}
|
|
66891
67033
|
return writer;
|
|
66892
67034
|
},
|
|
66893
67035
|
decode(input, length) {
|
|
@@ -66984,6 +67126,13 @@ var TaskExecStartRequest = {
|
|
|
66984
67126
|
}
|
|
66985
67127
|
continue;
|
|
66986
67128
|
}
|
|
67129
|
+
case 13: {
|
|
67130
|
+
if (tag !== 106) {
|
|
67131
|
+
break;
|
|
67132
|
+
}
|
|
67133
|
+
message.secretSources.push(SecretSource.decode(reader, reader.uint32()));
|
|
67134
|
+
continue;
|
|
67135
|
+
}
|
|
66987
67136
|
}
|
|
66988
67137
|
if ((tag & 7) === 4 || tag === 0) {
|
|
66989
67138
|
break;
|
|
@@ -67008,7 +67157,8 @@ var TaskExecStartRequest = {
|
|
|
67008
67157
|
env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
|
|
67009
67158
|
acc[key] = String(value);
|
|
67010
67159
|
return acc;
|
|
67011
|
-
}, {}) : {}
|
|
67160
|
+
}, {}) : {},
|
|
67161
|
+
secretSources: globalThis.Array.isArray(object?.secretSources) ? object.secretSources.map((e) => SecretSource.fromJSON(e)) : []
|
|
67012
67162
|
};
|
|
67013
67163
|
},
|
|
67014
67164
|
toJSON(message) {
|
|
@@ -67055,6 +67205,9 @@ var TaskExecStartRequest = {
|
|
|
67055
67205
|
});
|
|
67056
67206
|
}
|
|
67057
67207
|
}
|
|
67208
|
+
if (message.secretSources?.length) {
|
|
67209
|
+
obj.secretSources = message.secretSources.map((e) => SecretSource.toJSON(e));
|
|
67210
|
+
}
|
|
67058
67211
|
return obj;
|
|
67059
67212
|
},
|
|
67060
67213
|
create(base) {
|
|
@@ -67079,6 +67232,7 @@ var TaskExecStartRequest = {
|
|
|
67079
67232
|
}
|
|
67080
67233
|
return acc;
|
|
67081
67234
|
}, {});
|
|
67235
|
+
message.secretSources = object.secretSources?.map((e) => SecretSource.fromPartial(e)) || [];
|
|
67082
67236
|
return message;
|
|
67083
67237
|
}
|
|
67084
67238
|
};
|
|
@@ -74251,7 +74405,7 @@ var AuthTokenManager = class {
|
|
|
74251
74405
|
};
|
|
74252
74406
|
|
|
74253
74407
|
// src/version.ts
|
|
74254
|
-
var SDK_VERSION = "0.11.1-dev.
|
|
74408
|
+
var SDK_VERSION = "0.11.1-dev.2";
|
|
74255
74409
|
function getSDKVersion() {
|
|
74256
74410
|
return SDK_VERSION;
|
|
74257
74411
|
}
|