modal 0.8.0 → 0.8.1
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/README.md +1 -0
- package/dist/index.cjs +2284 -108
- package/dist/index.d.cts +282 -9
- package/dist/index.d.ts +282 -9
- package/dist/index.js +2284 -108
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1962,6 +1962,36 @@ function endpointInputModalityToJSON(object) {
|
|
|
1962
1962
|
return "UNRECOGNIZED";
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
|
+
function endpointLifecycleStatusFromJSON(object) {
|
|
1966
|
+
switch (object) {
|
|
1967
|
+
case 0:
|
|
1968
|
+
case "ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED":
|
|
1969
|
+
return 0 /* ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED */;
|
|
1970
|
+
case 1:
|
|
1971
|
+
case "ENDPOINT_LIFECYCLE_STATUS_ACTIVE":
|
|
1972
|
+
return 1 /* ENDPOINT_LIFECYCLE_STATUS_ACTIVE */;
|
|
1973
|
+
case 2:
|
|
1974
|
+
case "ENDPOINT_LIFECYCLE_STATUS_STOPPED":
|
|
1975
|
+
return 2 /* ENDPOINT_LIFECYCLE_STATUS_STOPPED */;
|
|
1976
|
+
case -1:
|
|
1977
|
+
case "UNRECOGNIZED":
|
|
1978
|
+
default:
|
|
1979
|
+
return -1 /* UNRECOGNIZED */;
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
function endpointLifecycleStatusToJSON(object) {
|
|
1983
|
+
switch (object) {
|
|
1984
|
+
case 0 /* ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED */:
|
|
1985
|
+
return "ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED";
|
|
1986
|
+
case 1 /* ENDPOINT_LIFECYCLE_STATUS_ACTIVE */:
|
|
1987
|
+
return "ENDPOINT_LIFECYCLE_STATUS_ACTIVE";
|
|
1988
|
+
case 2 /* ENDPOINT_LIFECYCLE_STATUS_STOPPED */:
|
|
1989
|
+
return "ENDPOINT_LIFECYCLE_STATUS_STOPPED";
|
|
1990
|
+
case -1 /* UNRECOGNIZED */:
|
|
1991
|
+
default:
|
|
1992
|
+
return "UNRECOGNIZED";
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1965
1995
|
function endpointProvisioningStatusFromJSON(object) {
|
|
1966
1996
|
switch (object) {
|
|
1967
1997
|
case 0:
|
|
@@ -1979,6 +2009,12 @@ function endpointProvisioningStatusFromJSON(object) {
|
|
|
1979
2009
|
case 4:
|
|
1980
2010
|
case "ENDPOINT_PROVISIONING_STATUS_FAILED":
|
|
1981
2011
|
return 4 /* ENDPOINT_PROVISIONING_STATUS_FAILED */;
|
|
2012
|
+
case 5:
|
|
2013
|
+
case "ENDPOINT_PROVISIONING_STATUS_CANCELLING":
|
|
2014
|
+
return 5 /* ENDPOINT_PROVISIONING_STATUS_CANCELLING */;
|
|
2015
|
+
case 6:
|
|
2016
|
+
case "ENDPOINT_PROVISIONING_STATUS_CANCELLED":
|
|
2017
|
+
return 6 /* ENDPOINT_PROVISIONING_STATUS_CANCELLED */;
|
|
1982
2018
|
case -1:
|
|
1983
2019
|
case "UNRECOGNIZED":
|
|
1984
2020
|
default:
|
|
@@ -1997,6 +2033,10 @@ function endpointProvisioningStatusToJSON(object) {
|
|
|
1997
2033
|
return "ENDPOINT_PROVISIONING_STATUS_SUCCEEDED";
|
|
1998
2034
|
case 4 /* ENDPOINT_PROVISIONING_STATUS_FAILED */:
|
|
1999
2035
|
return "ENDPOINT_PROVISIONING_STATUS_FAILED";
|
|
2036
|
+
case 5 /* ENDPOINT_PROVISIONING_STATUS_CANCELLING */:
|
|
2037
|
+
return "ENDPOINT_PROVISIONING_STATUS_CANCELLING";
|
|
2038
|
+
case 6 /* ENDPOINT_PROVISIONING_STATUS_CANCELLED */:
|
|
2039
|
+
return "ENDPOINT_PROVISIONING_STATUS_CANCELLED";
|
|
2000
2040
|
case -1 /* UNRECOGNIZED */:
|
|
2001
2041
|
default:
|
|
2002
2042
|
return "UNRECOGNIZED";
|
|
@@ -7459,6 +7499,89 @@ var AppRollbackRequest = {
|
|
|
7459
7499
|
return message;
|
|
7460
7500
|
}
|
|
7461
7501
|
};
|
|
7502
|
+
function createBaseAppRollbackResponse() {
|
|
7503
|
+
return { url: "", serverWarnings: [], deployedAt: 0 };
|
|
7504
|
+
}
|
|
7505
|
+
var AppRollbackResponse = {
|
|
7506
|
+
encode(message, writer = new BinaryWriter()) {
|
|
7507
|
+
if (message.url !== "") {
|
|
7508
|
+
writer.uint32(10).string(message.url);
|
|
7509
|
+
}
|
|
7510
|
+
for (const v of message.serverWarnings) {
|
|
7511
|
+
Warning.encode(v, writer.uint32(26).fork()).join();
|
|
7512
|
+
}
|
|
7513
|
+
if (message.deployedAt !== 0) {
|
|
7514
|
+
writer.uint32(33).double(message.deployedAt);
|
|
7515
|
+
}
|
|
7516
|
+
return writer;
|
|
7517
|
+
},
|
|
7518
|
+
decode(input, length) {
|
|
7519
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7520
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7521
|
+
const message = createBaseAppRollbackResponse();
|
|
7522
|
+
while (reader.pos < end) {
|
|
7523
|
+
const tag = reader.uint32();
|
|
7524
|
+
switch (tag >>> 3) {
|
|
7525
|
+
case 1: {
|
|
7526
|
+
if (tag !== 10) {
|
|
7527
|
+
break;
|
|
7528
|
+
}
|
|
7529
|
+
message.url = reader.string();
|
|
7530
|
+
continue;
|
|
7531
|
+
}
|
|
7532
|
+
case 3: {
|
|
7533
|
+
if (tag !== 26) {
|
|
7534
|
+
break;
|
|
7535
|
+
}
|
|
7536
|
+
message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
|
|
7537
|
+
continue;
|
|
7538
|
+
}
|
|
7539
|
+
case 4: {
|
|
7540
|
+
if (tag !== 33) {
|
|
7541
|
+
break;
|
|
7542
|
+
}
|
|
7543
|
+
message.deployedAt = reader.double();
|
|
7544
|
+
continue;
|
|
7545
|
+
}
|
|
7546
|
+
}
|
|
7547
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7548
|
+
break;
|
|
7549
|
+
}
|
|
7550
|
+
reader.skip(tag & 7);
|
|
7551
|
+
}
|
|
7552
|
+
return message;
|
|
7553
|
+
},
|
|
7554
|
+
fromJSON(object) {
|
|
7555
|
+
return {
|
|
7556
|
+
url: isSet5(object.url) ? globalThis.String(object.url) : "",
|
|
7557
|
+
serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
|
|
7558
|
+
deployedAt: isSet5(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
|
|
7559
|
+
};
|
|
7560
|
+
},
|
|
7561
|
+
toJSON(message) {
|
|
7562
|
+
const obj = {};
|
|
7563
|
+
if (message.url !== "") {
|
|
7564
|
+
obj.url = message.url;
|
|
7565
|
+
}
|
|
7566
|
+
if (message.serverWarnings?.length) {
|
|
7567
|
+
obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
|
|
7568
|
+
}
|
|
7569
|
+
if (message.deployedAt !== 0) {
|
|
7570
|
+
obj.deployedAt = message.deployedAt;
|
|
7571
|
+
}
|
|
7572
|
+
return obj;
|
|
7573
|
+
},
|
|
7574
|
+
create(base) {
|
|
7575
|
+
return AppRollbackResponse.fromPartial(base ?? {});
|
|
7576
|
+
},
|
|
7577
|
+
fromPartial(object) {
|
|
7578
|
+
const message = createBaseAppRollbackResponse();
|
|
7579
|
+
message.url = object.url ?? "";
|
|
7580
|
+
message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
|
|
7581
|
+
message.deployedAt = object.deployedAt ?? 0;
|
|
7582
|
+
return message;
|
|
7583
|
+
}
|
|
7584
|
+
};
|
|
7462
7585
|
function createBaseAppRolloverRequest() {
|
|
7463
7586
|
return { appId: "" };
|
|
7464
7587
|
}
|
|
@@ -13518,6 +13641,108 @@ var CreationInfo = {
|
|
|
13518
13641
|
return message;
|
|
13519
13642
|
}
|
|
13520
13643
|
};
|
|
13644
|
+
function createBaseCurlAuthTokenRequest() {
|
|
13645
|
+
return { url: "" };
|
|
13646
|
+
}
|
|
13647
|
+
var CurlAuthTokenRequest = {
|
|
13648
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13649
|
+
if (message.url !== "") {
|
|
13650
|
+
writer.uint32(10).string(message.url);
|
|
13651
|
+
}
|
|
13652
|
+
return writer;
|
|
13653
|
+
},
|
|
13654
|
+
decode(input, length) {
|
|
13655
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13656
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13657
|
+
const message = createBaseCurlAuthTokenRequest();
|
|
13658
|
+
while (reader.pos < end) {
|
|
13659
|
+
const tag = reader.uint32();
|
|
13660
|
+
switch (tag >>> 3) {
|
|
13661
|
+
case 1: {
|
|
13662
|
+
if (tag !== 10) {
|
|
13663
|
+
break;
|
|
13664
|
+
}
|
|
13665
|
+
message.url = reader.string();
|
|
13666
|
+
continue;
|
|
13667
|
+
}
|
|
13668
|
+
}
|
|
13669
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13670
|
+
break;
|
|
13671
|
+
}
|
|
13672
|
+
reader.skip(tag & 7);
|
|
13673
|
+
}
|
|
13674
|
+
return message;
|
|
13675
|
+
},
|
|
13676
|
+
fromJSON(object) {
|
|
13677
|
+
return { url: isSet5(object.url) ? globalThis.String(object.url) : "" };
|
|
13678
|
+
},
|
|
13679
|
+
toJSON(message) {
|
|
13680
|
+
const obj = {};
|
|
13681
|
+
if (message.url !== "") {
|
|
13682
|
+
obj.url = message.url;
|
|
13683
|
+
}
|
|
13684
|
+
return obj;
|
|
13685
|
+
},
|
|
13686
|
+
create(base) {
|
|
13687
|
+
return CurlAuthTokenRequest.fromPartial(base ?? {});
|
|
13688
|
+
},
|
|
13689
|
+
fromPartial(object) {
|
|
13690
|
+
const message = createBaseCurlAuthTokenRequest();
|
|
13691
|
+
message.url = object.url ?? "";
|
|
13692
|
+
return message;
|
|
13693
|
+
}
|
|
13694
|
+
};
|
|
13695
|
+
function createBaseCurlAuthTokenResponse() {
|
|
13696
|
+
return { token: "" };
|
|
13697
|
+
}
|
|
13698
|
+
var CurlAuthTokenResponse = {
|
|
13699
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13700
|
+
if (message.token !== "") {
|
|
13701
|
+
writer.uint32(10).string(message.token);
|
|
13702
|
+
}
|
|
13703
|
+
return writer;
|
|
13704
|
+
},
|
|
13705
|
+
decode(input, length) {
|
|
13706
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13707
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13708
|
+
const message = createBaseCurlAuthTokenResponse();
|
|
13709
|
+
while (reader.pos < end) {
|
|
13710
|
+
const tag = reader.uint32();
|
|
13711
|
+
switch (tag >>> 3) {
|
|
13712
|
+
case 1: {
|
|
13713
|
+
if (tag !== 10) {
|
|
13714
|
+
break;
|
|
13715
|
+
}
|
|
13716
|
+
message.token = reader.string();
|
|
13717
|
+
continue;
|
|
13718
|
+
}
|
|
13719
|
+
}
|
|
13720
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13721
|
+
break;
|
|
13722
|
+
}
|
|
13723
|
+
reader.skip(tag & 7);
|
|
13724
|
+
}
|
|
13725
|
+
return message;
|
|
13726
|
+
},
|
|
13727
|
+
fromJSON(object) {
|
|
13728
|
+
return { token: isSet5(object.token) ? globalThis.String(object.token) : "" };
|
|
13729
|
+
},
|
|
13730
|
+
toJSON(message) {
|
|
13731
|
+
const obj = {};
|
|
13732
|
+
if (message.token !== "") {
|
|
13733
|
+
obj.token = message.token;
|
|
13734
|
+
}
|
|
13735
|
+
return obj;
|
|
13736
|
+
},
|
|
13737
|
+
create(base) {
|
|
13738
|
+
return CurlAuthTokenResponse.fromPartial(base ?? {});
|
|
13739
|
+
},
|
|
13740
|
+
fromPartial(object) {
|
|
13741
|
+
const message = createBaseCurlAuthTokenResponse();
|
|
13742
|
+
message.token = object.token ?? "";
|
|
13743
|
+
return message;
|
|
13744
|
+
}
|
|
13745
|
+
};
|
|
13521
13746
|
function createBaseCustomDomainConfig() {
|
|
13522
13747
|
return { name: "" };
|
|
13523
13748
|
}
|
|
@@ -15888,7 +16113,8 @@ function createBaseEndpointCreateRequest() {
|
|
|
15888
16113
|
model: void 0,
|
|
15889
16114
|
apiSurfaces: [],
|
|
15890
16115
|
inputModalities: [],
|
|
15891
|
-
environmentName: ""
|
|
16116
|
+
environmentName: "",
|
|
16117
|
+
unauthenticated: false
|
|
15892
16118
|
};
|
|
15893
16119
|
}
|
|
15894
16120
|
var EndpointCreateRequest = {
|
|
@@ -15921,6 +16147,9 @@ var EndpointCreateRequest = {
|
|
|
15921
16147
|
if (message.environmentName !== "") {
|
|
15922
16148
|
writer.uint32(66).string(message.environmentName);
|
|
15923
16149
|
}
|
|
16150
|
+
if (message.unauthenticated !== false) {
|
|
16151
|
+
writer.uint32(72).bool(message.unauthenticated);
|
|
16152
|
+
}
|
|
15924
16153
|
return writer;
|
|
15925
16154
|
},
|
|
15926
16155
|
decode(input, length) {
|
|
@@ -16000,6 +16229,13 @@ var EndpointCreateRequest = {
|
|
|
16000
16229
|
message.environmentName = reader.string();
|
|
16001
16230
|
continue;
|
|
16002
16231
|
}
|
|
16232
|
+
case 9: {
|
|
16233
|
+
if (tag !== 72) {
|
|
16234
|
+
break;
|
|
16235
|
+
}
|
|
16236
|
+
message.unauthenticated = reader.bool();
|
|
16237
|
+
continue;
|
|
16238
|
+
}
|
|
16003
16239
|
}
|
|
16004
16240
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16005
16241
|
break;
|
|
@@ -16017,7 +16253,8 @@ var EndpointCreateRequest = {
|
|
|
16017
16253
|
model: isSet5(object.model) ? EndpointModelSource.fromJSON(object.model) : void 0,
|
|
16018
16254
|
apiSurfaces: globalThis.Array.isArray(object?.apiSurfaces) ? object.apiSurfaces.map((e) => endpointApiSurfaceFromJSON(e)) : [],
|
|
16019
16255
|
inputModalities: globalThis.Array.isArray(object?.inputModalities) ? object.inputModalities.map((e) => endpointInputModalityFromJSON(e)) : [],
|
|
16020
|
-
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
16256
|
+
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
16257
|
+
unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false
|
|
16021
16258
|
};
|
|
16022
16259
|
},
|
|
16023
16260
|
toJSON(message) {
|
|
@@ -16046,6 +16283,9 @@ var EndpointCreateRequest = {
|
|
|
16046
16283
|
if (message.environmentName !== "") {
|
|
16047
16284
|
obj.environmentName = message.environmentName;
|
|
16048
16285
|
}
|
|
16286
|
+
if (message.unauthenticated !== false) {
|
|
16287
|
+
obj.unauthenticated = message.unauthenticated;
|
|
16288
|
+
}
|
|
16049
16289
|
return obj;
|
|
16050
16290
|
},
|
|
16051
16291
|
create(base) {
|
|
@@ -16061,11 +16301,12 @@ var EndpointCreateRequest = {
|
|
|
16061
16301
|
message.apiSurfaces = object.apiSurfaces?.map((e) => e) || [];
|
|
16062
16302
|
message.inputModalities = object.inputModalities?.map((e) => e) || [];
|
|
16063
16303
|
message.environmentName = object.environmentName ?? "";
|
|
16304
|
+
message.unauthenticated = object.unauthenticated ?? false;
|
|
16064
16305
|
return message;
|
|
16065
16306
|
}
|
|
16066
16307
|
};
|
|
16067
16308
|
function createBaseEndpointCreateResponse() {
|
|
16068
|
-
return { endpointId: "", endpointPageUrl: "" };
|
|
16309
|
+
return { endpointId: "", endpointPageUrl: "", name: "" };
|
|
16069
16310
|
}
|
|
16070
16311
|
var EndpointCreateResponse = {
|
|
16071
16312
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -16075,6 +16316,9 @@ var EndpointCreateResponse = {
|
|
|
16075
16316
|
if (message.endpointPageUrl !== "") {
|
|
16076
16317
|
writer.uint32(18).string(message.endpointPageUrl);
|
|
16077
16318
|
}
|
|
16319
|
+
if (message.name !== "") {
|
|
16320
|
+
writer.uint32(26).string(message.name);
|
|
16321
|
+
}
|
|
16078
16322
|
return writer;
|
|
16079
16323
|
},
|
|
16080
16324
|
decode(input, length) {
|
|
@@ -16098,6 +16342,13 @@ var EndpointCreateResponse = {
|
|
|
16098
16342
|
message.endpointPageUrl = reader.string();
|
|
16099
16343
|
continue;
|
|
16100
16344
|
}
|
|
16345
|
+
case 3: {
|
|
16346
|
+
if (tag !== 26) {
|
|
16347
|
+
break;
|
|
16348
|
+
}
|
|
16349
|
+
message.name = reader.string();
|
|
16350
|
+
continue;
|
|
16351
|
+
}
|
|
16101
16352
|
}
|
|
16102
16353
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16103
16354
|
break;
|
|
@@ -16109,7 +16360,8 @@ var EndpointCreateResponse = {
|
|
|
16109
16360
|
fromJSON(object) {
|
|
16110
16361
|
return {
|
|
16111
16362
|
endpointId: isSet5(object.endpointId) ? globalThis.String(object.endpointId) : "",
|
|
16112
|
-
endpointPageUrl: isSet5(object.endpointPageUrl) ? globalThis.String(object.endpointPageUrl) : ""
|
|
16363
|
+
endpointPageUrl: isSet5(object.endpointPageUrl) ? globalThis.String(object.endpointPageUrl) : "",
|
|
16364
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : ""
|
|
16113
16365
|
};
|
|
16114
16366
|
},
|
|
16115
16367
|
toJSON(message) {
|
|
@@ -16120,6 +16372,9 @@ var EndpointCreateResponse = {
|
|
|
16120
16372
|
if (message.endpointPageUrl !== "") {
|
|
16121
16373
|
obj.endpointPageUrl = message.endpointPageUrl;
|
|
16122
16374
|
}
|
|
16375
|
+
if (message.name !== "") {
|
|
16376
|
+
obj.name = message.name;
|
|
16377
|
+
}
|
|
16123
16378
|
return obj;
|
|
16124
16379
|
},
|
|
16125
16380
|
create(base) {
|
|
@@ -16129,6 +16384,7 @@ var EndpointCreateResponse = {
|
|
|
16129
16384
|
const message = createBaseEndpointCreateResponse();
|
|
16130
16385
|
message.endpointId = object.endpointId ?? "";
|
|
16131
16386
|
message.endpointPageUrl = object.endpointPageUrl ?? "";
|
|
16387
|
+
message.name = object.name ?? "";
|
|
16132
16388
|
return message;
|
|
16133
16389
|
}
|
|
16134
16390
|
};
|
|
@@ -16215,6 +16471,244 @@ var EndpointCustomModelSource = {
|
|
|
16215
16471
|
return message;
|
|
16216
16472
|
}
|
|
16217
16473
|
};
|
|
16474
|
+
function createBaseEndpointGetByNameRequest() {
|
|
16475
|
+
return { name: "", environmentName: "" };
|
|
16476
|
+
}
|
|
16477
|
+
var EndpointGetByNameRequest = {
|
|
16478
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16479
|
+
if (message.name !== "") {
|
|
16480
|
+
writer.uint32(10).string(message.name);
|
|
16481
|
+
}
|
|
16482
|
+
if (message.environmentName !== "") {
|
|
16483
|
+
writer.uint32(18).string(message.environmentName);
|
|
16484
|
+
}
|
|
16485
|
+
return writer;
|
|
16486
|
+
},
|
|
16487
|
+
decode(input, length) {
|
|
16488
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16489
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16490
|
+
const message = createBaseEndpointGetByNameRequest();
|
|
16491
|
+
while (reader.pos < end) {
|
|
16492
|
+
const tag = reader.uint32();
|
|
16493
|
+
switch (tag >>> 3) {
|
|
16494
|
+
case 1: {
|
|
16495
|
+
if (tag !== 10) {
|
|
16496
|
+
break;
|
|
16497
|
+
}
|
|
16498
|
+
message.name = reader.string();
|
|
16499
|
+
continue;
|
|
16500
|
+
}
|
|
16501
|
+
case 2: {
|
|
16502
|
+
if (tag !== 18) {
|
|
16503
|
+
break;
|
|
16504
|
+
}
|
|
16505
|
+
message.environmentName = reader.string();
|
|
16506
|
+
continue;
|
|
16507
|
+
}
|
|
16508
|
+
}
|
|
16509
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16510
|
+
break;
|
|
16511
|
+
}
|
|
16512
|
+
reader.skip(tag & 7);
|
|
16513
|
+
}
|
|
16514
|
+
return message;
|
|
16515
|
+
},
|
|
16516
|
+
fromJSON(object) {
|
|
16517
|
+
return {
|
|
16518
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : "",
|
|
16519
|
+
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
16520
|
+
};
|
|
16521
|
+
},
|
|
16522
|
+
toJSON(message) {
|
|
16523
|
+
const obj = {};
|
|
16524
|
+
if (message.name !== "") {
|
|
16525
|
+
obj.name = message.name;
|
|
16526
|
+
}
|
|
16527
|
+
if (message.environmentName !== "") {
|
|
16528
|
+
obj.environmentName = message.environmentName;
|
|
16529
|
+
}
|
|
16530
|
+
return obj;
|
|
16531
|
+
},
|
|
16532
|
+
create(base) {
|
|
16533
|
+
return EndpointGetByNameRequest.fromPartial(base ?? {});
|
|
16534
|
+
},
|
|
16535
|
+
fromPartial(object) {
|
|
16536
|
+
const message = createBaseEndpointGetByNameRequest();
|
|
16537
|
+
message.name = object.name ?? "";
|
|
16538
|
+
message.environmentName = object.environmentName ?? "";
|
|
16539
|
+
return message;
|
|
16540
|
+
}
|
|
16541
|
+
};
|
|
16542
|
+
function createBaseEndpointGetByNameResponse() {
|
|
16543
|
+
return { endpointId: "", environmentName: "" };
|
|
16544
|
+
}
|
|
16545
|
+
var EndpointGetByNameResponse = {
|
|
16546
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16547
|
+
if (message.endpointId !== "") {
|
|
16548
|
+
writer.uint32(10).string(message.endpointId);
|
|
16549
|
+
}
|
|
16550
|
+
if (message.environmentName !== "") {
|
|
16551
|
+
writer.uint32(18).string(message.environmentName);
|
|
16552
|
+
}
|
|
16553
|
+
return writer;
|
|
16554
|
+
},
|
|
16555
|
+
decode(input, length) {
|
|
16556
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16557
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16558
|
+
const message = createBaseEndpointGetByNameResponse();
|
|
16559
|
+
while (reader.pos < end) {
|
|
16560
|
+
const tag = reader.uint32();
|
|
16561
|
+
switch (tag >>> 3) {
|
|
16562
|
+
case 1: {
|
|
16563
|
+
if (tag !== 10) {
|
|
16564
|
+
break;
|
|
16565
|
+
}
|
|
16566
|
+
message.endpointId = reader.string();
|
|
16567
|
+
continue;
|
|
16568
|
+
}
|
|
16569
|
+
case 2: {
|
|
16570
|
+
if (tag !== 18) {
|
|
16571
|
+
break;
|
|
16572
|
+
}
|
|
16573
|
+
message.environmentName = reader.string();
|
|
16574
|
+
continue;
|
|
16575
|
+
}
|
|
16576
|
+
}
|
|
16577
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16578
|
+
break;
|
|
16579
|
+
}
|
|
16580
|
+
reader.skip(tag & 7);
|
|
16581
|
+
}
|
|
16582
|
+
return message;
|
|
16583
|
+
},
|
|
16584
|
+
fromJSON(object) {
|
|
16585
|
+
return {
|
|
16586
|
+
endpointId: isSet5(object.endpointId) ? globalThis.String(object.endpointId) : "",
|
|
16587
|
+
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
16588
|
+
};
|
|
16589
|
+
},
|
|
16590
|
+
toJSON(message) {
|
|
16591
|
+
const obj = {};
|
|
16592
|
+
if (message.endpointId !== "") {
|
|
16593
|
+
obj.endpointId = message.endpointId;
|
|
16594
|
+
}
|
|
16595
|
+
if (message.environmentName !== "") {
|
|
16596
|
+
obj.environmentName = message.environmentName;
|
|
16597
|
+
}
|
|
16598
|
+
return obj;
|
|
16599
|
+
},
|
|
16600
|
+
create(base) {
|
|
16601
|
+
return EndpointGetByNameResponse.fromPartial(base ?? {});
|
|
16602
|
+
},
|
|
16603
|
+
fromPartial(object) {
|
|
16604
|
+
const message = createBaseEndpointGetByNameResponse();
|
|
16605
|
+
message.endpointId = object.endpointId ?? "";
|
|
16606
|
+
message.environmentName = object.environmentName ?? "";
|
|
16607
|
+
return message;
|
|
16608
|
+
}
|
|
16609
|
+
};
|
|
16610
|
+
function createBaseEndpointGetLifecycleRequest() {
|
|
16611
|
+
return { endpointId: "" };
|
|
16612
|
+
}
|
|
16613
|
+
var EndpointGetLifecycleRequest = {
|
|
16614
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16615
|
+
if (message.endpointId !== "") {
|
|
16616
|
+
writer.uint32(10).string(message.endpointId);
|
|
16617
|
+
}
|
|
16618
|
+
return writer;
|
|
16619
|
+
},
|
|
16620
|
+
decode(input, length) {
|
|
16621
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16622
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16623
|
+
const message = createBaseEndpointGetLifecycleRequest();
|
|
16624
|
+
while (reader.pos < end) {
|
|
16625
|
+
const tag = reader.uint32();
|
|
16626
|
+
switch (tag >>> 3) {
|
|
16627
|
+
case 1: {
|
|
16628
|
+
if (tag !== 10) {
|
|
16629
|
+
break;
|
|
16630
|
+
}
|
|
16631
|
+
message.endpointId = reader.string();
|
|
16632
|
+
continue;
|
|
16633
|
+
}
|
|
16634
|
+
}
|
|
16635
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16636
|
+
break;
|
|
16637
|
+
}
|
|
16638
|
+
reader.skip(tag & 7);
|
|
16639
|
+
}
|
|
16640
|
+
return message;
|
|
16641
|
+
},
|
|
16642
|
+
fromJSON(object) {
|
|
16643
|
+
return { endpointId: isSet5(object.endpointId) ? globalThis.String(object.endpointId) : "" };
|
|
16644
|
+
},
|
|
16645
|
+
toJSON(message) {
|
|
16646
|
+
const obj = {};
|
|
16647
|
+
if (message.endpointId !== "") {
|
|
16648
|
+
obj.endpointId = message.endpointId;
|
|
16649
|
+
}
|
|
16650
|
+
return obj;
|
|
16651
|
+
},
|
|
16652
|
+
create(base) {
|
|
16653
|
+
return EndpointGetLifecycleRequest.fromPartial(base ?? {});
|
|
16654
|
+
},
|
|
16655
|
+
fromPartial(object) {
|
|
16656
|
+
const message = createBaseEndpointGetLifecycleRequest();
|
|
16657
|
+
message.endpointId = object.endpointId ?? "";
|
|
16658
|
+
return message;
|
|
16659
|
+
}
|
|
16660
|
+
};
|
|
16661
|
+
function createBaseEndpointGetLifecycleResponse() {
|
|
16662
|
+
return { lifecycle: void 0 };
|
|
16663
|
+
}
|
|
16664
|
+
var EndpointGetLifecycleResponse = {
|
|
16665
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16666
|
+
if (message.lifecycle !== void 0) {
|
|
16667
|
+
EndpointLifecycle.encode(message.lifecycle, writer.uint32(10).fork()).join();
|
|
16668
|
+
}
|
|
16669
|
+
return writer;
|
|
16670
|
+
},
|
|
16671
|
+
decode(input, length) {
|
|
16672
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16673
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16674
|
+
const message = createBaseEndpointGetLifecycleResponse();
|
|
16675
|
+
while (reader.pos < end) {
|
|
16676
|
+
const tag = reader.uint32();
|
|
16677
|
+
switch (tag >>> 3) {
|
|
16678
|
+
case 1: {
|
|
16679
|
+
if (tag !== 10) {
|
|
16680
|
+
break;
|
|
16681
|
+
}
|
|
16682
|
+
message.lifecycle = EndpointLifecycle.decode(reader, reader.uint32());
|
|
16683
|
+
continue;
|
|
16684
|
+
}
|
|
16685
|
+
}
|
|
16686
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16687
|
+
break;
|
|
16688
|
+
}
|
|
16689
|
+
reader.skip(tag & 7);
|
|
16690
|
+
}
|
|
16691
|
+
return message;
|
|
16692
|
+
},
|
|
16693
|
+
fromJSON(object) {
|
|
16694
|
+
return { lifecycle: isSet5(object.lifecycle) ? EndpointLifecycle.fromJSON(object.lifecycle) : void 0 };
|
|
16695
|
+
},
|
|
16696
|
+
toJSON(message) {
|
|
16697
|
+
const obj = {};
|
|
16698
|
+
if (message.lifecycle !== void 0) {
|
|
16699
|
+
obj.lifecycle = EndpointLifecycle.toJSON(message.lifecycle);
|
|
16700
|
+
}
|
|
16701
|
+
return obj;
|
|
16702
|
+
},
|
|
16703
|
+
create(base) {
|
|
16704
|
+
return EndpointGetLifecycleResponse.fromPartial(base ?? {});
|
|
16705
|
+
},
|
|
16706
|
+
fromPartial(object) {
|
|
16707
|
+
const message = createBaseEndpointGetLifecycleResponse();
|
|
16708
|
+
message.lifecycle = object.lifecycle !== void 0 && object.lifecycle !== null ? EndpointLifecycle.fromPartial(object.lifecycle) : void 0;
|
|
16709
|
+
return message;
|
|
16710
|
+
}
|
|
16711
|
+
};
|
|
16218
16712
|
function createBaseEndpointHuggingFaceModelSource() {
|
|
16219
16713
|
return { repoId: "", revision: "", huggingfaceToken: "" };
|
|
16220
16714
|
}
|
|
@@ -16298,6 +16792,134 @@ var EndpointHuggingFaceModelSource = {
|
|
|
16298
16792
|
return message;
|
|
16299
16793
|
}
|
|
16300
16794
|
};
|
|
16795
|
+
function createBaseEndpointLifecycle() {
|
|
16796
|
+
return { status: 0, createdAt: 0, createdBy: "", stoppedAt: 0, stoppedBy: "", environmentName: "" };
|
|
16797
|
+
}
|
|
16798
|
+
var EndpointLifecycle = {
|
|
16799
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16800
|
+
if (message.status !== 0) {
|
|
16801
|
+
writer.uint32(8).int32(message.status);
|
|
16802
|
+
}
|
|
16803
|
+
if (message.createdAt !== 0) {
|
|
16804
|
+
writer.uint32(17).double(message.createdAt);
|
|
16805
|
+
}
|
|
16806
|
+
if (message.createdBy !== "") {
|
|
16807
|
+
writer.uint32(26).string(message.createdBy);
|
|
16808
|
+
}
|
|
16809
|
+
if (message.stoppedAt !== 0) {
|
|
16810
|
+
writer.uint32(33).double(message.stoppedAt);
|
|
16811
|
+
}
|
|
16812
|
+
if (message.stoppedBy !== "") {
|
|
16813
|
+
writer.uint32(42).string(message.stoppedBy);
|
|
16814
|
+
}
|
|
16815
|
+
if (message.environmentName !== "") {
|
|
16816
|
+
writer.uint32(50).string(message.environmentName);
|
|
16817
|
+
}
|
|
16818
|
+
return writer;
|
|
16819
|
+
},
|
|
16820
|
+
decode(input, length) {
|
|
16821
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16822
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16823
|
+
const message = createBaseEndpointLifecycle();
|
|
16824
|
+
while (reader.pos < end) {
|
|
16825
|
+
const tag = reader.uint32();
|
|
16826
|
+
switch (tag >>> 3) {
|
|
16827
|
+
case 1: {
|
|
16828
|
+
if (tag !== 8) {
|
|
16829
|
+
break;
|
|
16830
|
+
}
|
|
16831
|
+
message.status = reader.int32();
|
|
16832
|
+
continue;
|
|
16833
|
+
}
|
|
16834
|
+
case 2: {
|
|
16835
|
+
if (tag !== 17) {
|
|
16836
|
+
break;
|
|
16837
|
+
}
|
|
16838
|
+
message.createdAt = reader.double();
|
|
16839
|
+
continue;
|
|
16840
|
+
}
|
|
16841
|
+
case 3: {
|
|
16842
|
+
if (tag !== 26) {
|
|
16843
|
+
break;
|
|
16844
|
+
}
|
|
16845
|
+
message.createdBy = reader.string();
|
|
16846
|
+
continue;
|
|
16847
|
+
}
|
|
16848
|
+
case 4: {
|
|
16849
|
+
if (tag !== 33) {
|
|
16850
|
+
break;
|
|
16851
|
+
}
|
|
16852
|
+
message.stoppedAt = reader.double();
|
|
16853
|
+
continue;
|
|
16854
|
+
}
|
|
16855
|
+
case 5: {
|
|
16856
|
+
if (tag !== 42) {
|
|
16857
|
+
break;
|
|
16858
|
+
}
|
|
16859
|
+
message.stoppedBy = reader.string();
|
|
16860
|
+
continue;
|
|
16861
|
+
}
|
|
16862
|
+
case 6: {
|
|
16863
|
+
if (tag !== 50) {
|
|
16864
|
+
break;
|
|
16865
|
+
}
|
|
16866
|
+
message.environmentName = reader.string();
|
|
16867
|
+
continue;
|
|
16868
|
+
}
|
|
16869
|
+
}
|
|
16870
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16871
|
+
break;
|
|
16872
|
+
}
|
|
16873
|
+
reader.skip(tag & 7);
|
|
16874
|
+
}
|
|
16875
|
+
return message;
|
|
16876
|
+
},
|
|
16877
|
+
fromJSON(object) {
|
|
16878
|
+
return {
|
|
16879
|
+
status: isSet5(object.status) ? endpointLifecycleStatusFromJSON(object.status) : 0,
|
|
16880
|
+
createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
16881
|
+
createdBy: isSet5(object.createdBy) ? globalThis.String(object.createdBy) : "",
|
|
16882
|
+
stoppedAt: isSet5(object.stoppedAt) ? globalThis.Number(object.stoppedAt) : 0,
|
|
16883
|
+
stoppedBy: isSet5(object.stoppedBy) ? globalThis.String(object.stoppedBy) : "",
|
|
16884
|
+
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
16885
|
+
};
|
|
16886
|
+
},
|
|
16887
|
+
toJSON(message) {
|
|
16888
|
+
const obj = {};
|
|
16889
|
+
if (message.status !== 0) {
|
|
16890
|
+
obj.status = endpointLifecycleStatusToJSON(message.status);
|
|
16891
|
+
}
|
|
16892
|
+
if (message.createdAt !== 0) {
|
|
16893
|
+
obj.createdAt = message.createdAt;
|
|
16894
|
+
}
|
|
16895
|
+
if (message.createdBy !== "") {
|
|
16896
|
+
obj.createdBy = message.createdBy;
|
|
16897
|
+
}
|
|
16898
|
+
if (message.stoppedAt !== 0) {
|
|
16899
|
+
obj.stoppedAt = message.stoppedAt;
|
|
16900
|
+
}
|
|
16901
|
+
if (message.stoppedBy !== "") {
|
|
16902
|
+
obj.stoppedBy = message.stoppedBy;
|
|
16903
|
+
}
|
|
16904
|
+
if (message.environmentName !== "") {
|
|
16905
|
+
obj.environmentName = message.environmentName;
|
|
16906
|
+
}
|
|
16907
|
+
return obj;
|
|
16908
|
+
},
|
|
16909
|
+
create(base) {
|
|
16910
|
+
return EndpointLifecycle.fromPartial(base ?? {});
|
|
16911
|
+
},
|
|
16912
|
+
fromPartial(object) {
|
|
16913
|
+
const message = createBaseEndpointLifecycle();
|
|
16914
|
+
message.status = object.status ?? 0;
|
|
16915
|
+
message.createdAt = object.createdAt ?? 0;
|
|
16916
|
+
message.createdBy = object.createdBy ?? "";
|
|
16917
|
+
message.stoppedAt = object.stoppedAt ?? 0;
|
|
16918
|
+
message.stoppedBy = object.stoppedBy ?? "";
|
|
16919
|
+
message.environmentName = object.environmentName ?? "";
|
|
16920
|
+
return message;
|
|
16921
|
+
}
|
|
16922
|
+
};
|
|
16301
16923
|
function createBaseEndpointListItem() {
|
|
16302
16924
|
return {
|
|
16303
16925
|
endpointId: "",
|
|
@@ -16309,7 +16931,8 @@ function createBaseEndpointListItem() {
|
|
|
16309
16931
|
appState: 0,
|
|
16310
16932
|
functionId: "",
|
|
16311
16933
|
createdByAvatarUrl: "",
|
|
16312
|
-
provisioningStatus: 0
|
|
16934
|
+
provisioningStatus: 0,
|
|
16935
|
+
status: ""
|
|
16313
16936
|
};
|
|
16314
16937
|
}
|
|
16315
16938
|
var EndpointListItem = {
|
|
@@ -16344,6 +16967,9 @@ var EndpointListItem = {
|
|
|
16344
16967
|
if (message.provisioningStatus !== 0) {
|
|
16345
16968
|
writer.uint32(80).int32(message.provisioningStatus);
|
|
16346
16969
|
}
|
|
16970
|
+
if (message.status !== "") {
|
|
16971
|
+
writer.uint32(90).string(message.status);
|
|
16972
|
+
}
|
|
16347
16973
|
return writer;
|
|
16348
16974
|
},
|
|
16349
16975
|
decode(input, length) {
|
|
@@ -16423,6 +17049,13 @@ var EndpointListItem = {
|
|
|
16423
17049
|
message.provisioningStatus = reader.int32();
|
|
16424
17050
|
continue;
|
|
16425
17051
|
}
|
|
17052
|
+
case 11: {
|
|
17053
|
+
if (tag !== 90) {
|
|
17054
|
+
break;
|
|
17055
|
+
}
|
|
17056
|
+
message.status = reader.string();
|
|
17057
|
+
continue;
|
|
17058
|
+
}
|
|
16426
17059
|
}
|
|
16427
17060
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16428
17061
|
break;
|
|
@@ -16442,7 +17075,8 @@ var EndpointListItem = {
|
|
|
16442
17075
|
appState: isSet5(object.appState) ? appStateFromJSON(object.appState) : 0,
|
|
16443
17076
|
functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
16444
17077
|
createdByAvatarUrl: isSet5(object.createdByAvatarUrl) ? globalThis.String(object.createdByAvatarUrl) : "",
|
|
16445
|
-
provisioningStatus: isSet5(object.provisioningStatus) ? endpointProvisioningStatusFromJSON(object.provisioningStatus) : 0
|
|
17078
|
+
provisioningStatus: isSet5(object.provisioningStatus) ? endpointProvisioningStatusFromJSON(object.provisioningStatus) : 0,
|
|
17079
|
+
status: isSet5(object.status) ? globalThis.String(object.status) : ""
|
|
16446
17080
|
};
|
|
16447
17081
|
},
|
|
16448
17082
|
toJSON(message) {
|
|
@@ -16477,6 +17111,9 @@ var EndpointListItem = {
|
|
|
16477
17111
|
if (message.provisioningStatus !== 0) {
|
|
16478
17112
|
obj.provisioningStatus = endpointProvisioningStatusToJSON(message.provisioningStatus);
|
|
16479
17113
|
}
|
|
17114
|
+
if (message.status !== "") {
|
|
17115
|
+
obj.status = message.status;
|
|
17116
|
+
}
|
|
16480
17117
|
return obj;
|
|
16481
17118
|
},
|
|
16482
17119
|
create(base) {
|
|
@@ -16494,6 +17131,7 @@ var EndpointListItem = {
|
|
|
16494
17131
|
message.functionId = object.functionId ?? "";
|
|
16495
17132
|
message.createdByAvatarUrl = object.createdByAvatarUrl ?? "";
|
|
16496
17133
|
message.provisioningStatus = object.provisioningStatus ?? 0;
|
|
17134
|
+
message.status = object.status ?? "";
|
|
16497
17135
|
return message;
|
|
16498
17136
|
}
|
|
16499
17137
|
};
|
|
@@ -17076,6 +17714,155 @@ var EnvironmentDeleteRequest = {
|
|
|
17076
17714
|
return message;
|
|
17077
17715
|
}
|
|
17078
17716
|
};
|
|
17717
|
+
function createBaseEnvironmentGetBudgetRequest() {
|
|
17718
|
+
return { environmentId: "" };
|
|
17719
|
+
}
|
|
17720
|
+
var EnvironmentGetBudgetRequest = {
|
|
17721
|
+
encode(message, writer = new BinaryWriter()) {
|
|
17722
|
+
if (message.environmentId !== "") {
|
|
17723
|
+
writer.uint32(10).string(message.environmentId);
|
|
17724
|
+
}
|
|
17725
|
+
return writer;
|
|
17726
|
+
},
|
|
17727
|
+
decode(input, length) {
|
|
17728
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17729
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
17730
|
+
const message = createBaseEnvironmentGetBudgetRequest();
|
|
17731
|
+
while (reader.pos < end) {
|
|
17732
|
+
const tag = reader.uint32();
|
|
17733
|
+
switch (tag >>> 3) {
|
|
17734
|
+
case 1: {
|
|
17735
|
+
if (tag !== 10) {
|
|
17736
|
+
break;
|
|
17737
|
+
}
|
|
17738
|
+
message.environmentId = reader.string();
|
|
17739
|
+
continue;
|
|
17740
|
+
}
|
|
17741
|
+
}
|
|
17742
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17743
|
+
break;
|
|
17744
|
+
}
|
|
17745
|
+
reader.skip(tag & 7);
|
|
17746
|
+
}
|
|
17747
|
+
return message;
|
|
17748
|
+
},
|
|
17749
|
+
fromJSON(object) {
|
|
17750
|
+
return { environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : "" };
|
|
17751
|
+
},
|
|
17752
|
+
toJSON(message) {
|
|
17753
|
+
const obj = {};
|
|
17754
|
+
if (message.environmentId !== "") {
|
|
17755
|
+
obj.environmentId = message.environmentId;
|
|
17756
|
+
}
|
|
17757
|
+
return obj;
|
|
17758
|
+
},
|
|
17759
|
+
create(base) {
|
|
17760
|
+
return EnvironmentGetBudgetRequest.fromPartial(base ?? {});
|
|
17761
|
+
},
|
|
17762
|
+
fromPartial(object) {
|
|
17763
|
+
const message = createBaseEnvironmentGetBudgetRequest();
|
|
17764
|
+
message.environmentId = object.environmentId ?? "";
|
|
17765
|
+
return message;
|
|
17766
|
+
}
|
|
17767
|
+
};
|
|
17768
|
+
function createBaseEnvironmentGetBudgetResponse() {
|
|
17769
|
+
return { cycleBudgetDollars: void 0, effectiveCycleSpendLimit: 0, currentCycleUsage: 0, spendLimitReached: false };
|
|
17770
|
+
}
|
|
17771
|
+
var EnvironmentGetBudgetResponse = {
|
|
17772
|
+
encode(message, writer = new BinaryWriter()) {
|
|
17773
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
17774
|
+
writer.uint32(9).double(message.cycleBudgetDollars);
|
|
17775
|
+
}
|
|
17776
|
+
if (message.effectiveCycleSpendLimit !== 0) {
|
|
17777
|
+
writer.uint32(17).double(message.effectiveCycleSpendLimit);
|
|
17778
|
+
}
|
|
17779
|
+
if (message.currentCycleUsage !== 0) {
|
|
17780
|
+
writer.uint32(25).double(message.currentCycleUsage);
|
|
17781
|
+
}
|
|
17782
|
+
if (message.spendLimitReached !== false) {
|
|
17783
|
+
writer.uint32(32).bool(message.spendLimitReached);
|
|
17784
|
+
}
|
|
17785
|
+
return writer;
|
|
17786
|
+
},
|
|
17787
|
+
decode(input, length) {
|
|
17788
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17789
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
17790
|
+
const message = createBaseEnvironmentGetBudgetResponse();
|
|
17791
|
+
while (reader.pos < end) {
|
|
17792
|
+
const tag = reader.uint32();
|
|
17793
|
+
switch (tag >>> 3) {
|
|
17794
|
+
case 1: {
|
|
17795
|
+
if (tag !== 9) {
|
|
17796
|
+
break;
|
|
17797
|
+
}
|
|
17798
|
+
message.cycleBudgetDollars = reader.double();
|
|
17799
|
+
continue;
|
|
17800
|
+
}
|
|
17801
|
+
case 2: {
|
|
17802
|
+
if (tag !== 17) {
|
|
17803
|
+
break;
|
|
17804
|
+
}
|
|
17805
|
+
message.effectiveCycleSpendLimit = reader.double();
|
|
17806
|
+
continue;
|
|
17807
|
+
}
|
|
17808
|
+
case 3: {
|
|
17809
|
+
if (tag !== 25) {
|
|
17810
|
+
break;
|
|
17811
|
+
}
|
|
17812
|
+
message.currentCycleUsage = reader.double();
|
|
17813
|
+
continue;
|
|
17814
|
+
}
|
|
17815
|
+
case 4: {
|
|
17816
|
+
if (tag !== 32) {
|
|
17817
|
+
break;
|
|
17818
|
+
}
|
|
17819
|
+
message.spendLimitReached = reader.bool();
|
|
17820
|
+
continue;
|
|
17821
|
+
}
|
|
17822
|
+
}
|
|
17823
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17824
|
+
break;
|
|
17825
|
+
}
|
|
17826
|
+
reader.skip(tag & 7);
|
|
17827
|
+
}
|
|
17828
|
+
return message;
|
|
17829
|
+
},
|
|
17830
|
+
fromJSON(object) {
|
|
17831
|
+
return {
|
|
17832
|
+
cycleBudgetDollars: isSet5(object.cycleBudgetDollars) ? globalThis.Number(object.cycleBudgetDollars) : void 0,
|
|
17833
|
+
effectiveCycleSpendLimit: isSet5(object.effectiveCycleSpendLimit) ? globalThis.Number(object.effectiveCycleSpendLimit) : 0,
|
|
17834
|
+
currentCycleUsage: isSet5(object.currentCycleUsage) ? globalThis.Number(object.currentCycleUsage) : 0,
|
|
17835
|
+
spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false
|
|
17836
|
+
};
|
|
17837
|
+
},
|
|
17838
|
+
toJSON(message) {
|
|
17839
|
+
const obj = {};
|
|
17840
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
17841
|
+
obj.cycleBudgetDollars = message.cycleBudgetDollars;
|
|
17842
|
+
}
|
|
17843
|
+
if (message.effectiveCycleSpendLimit !== 0) {
|
|
17844
|
+
obj.effectiveCycleSpendLimit = message.effectiveCycleSpendLimit;
|
|
17845
|
+
}
|
|
17846
|
+
if (message.currentCycleUsage !== 0) {
|
|
17847
|
+
obj.currentCycleUsage = message.currentCycleUsage;
|
|
17848
|
+
}
|
|
17849
|
+
if (message.spendLimitReached !== false) {
|
|
17850
|
+
obj.spendLimitReached = message.spendLimitReached;
|
|
17851
|
+
}
|
|
17852
|
+
return obj;
|
|
17853
|
+
},
|
|
17854
|
+
create(base) {
|
|
17855
|
+
return EnvironmentGetBudgetResponse.fromPartial(base ?? {});
|
|
17856
|
+
},
|
|
17857
|
+
fromPartial(object) {
|
|
17858
|
+
const message = createBaseEnvironmentGetBudgetResponse();
|
|
17859
|
+
message.cycleBudgetDollars = object.cycleBudgetDollars ?? void 0;
|
|
17860
|
+
message.effectiveCycleSpendLimit = object.effectiveCycleSpendLimit ?? 0;
|
|
17861
|
+
message.currentCycleUsage = object.currentCycleUsage ?? 0;
|
|
17862
|
+
message.spendLimitReached = object.spendLimitReached ?? false;
|
|
17863
|
+
return message;
|
|
17864
|
+
}
|
|
17865
|
+
};
|
|
17079
17866
|
function createBaseEnvironmentGetManagedRequest() {
|
|
17080
17867
|
return { environmentId: "" };
|
|
17081
17868
|
}
|
|
@@ -17556,7 +18343,11 @@ function createBaseEnvironmentListItem() {
|
|
|
17556
18343
|
maxConcurrentTasks: void 0,
|
|
17557
18344
|
maxConcurrentGpus: void 0,
|
|
17558
18345
|
currentConcurrentTasks: 0,
|
|
17559
|
-
currentConcurrentGpus: 0
|
|
18346
|
+
currentConcurrentGpus: 0,
|
|
18347
|
+
cycleBudgetDollars: void 0,
|
|
18348
|
+
effectiveCycleSpendLimit: 0,
|
|
18349
|
+
currentCycleUsage: 0,
|
|
18350
|
+
spendLimitReached: false
|
|
17560
18351
|
};
|
|
17561
18352
|
}
|
|
17562
18353
|
var EnvironmentListItem = {
|
|
@@ -17591,6 +18382,18 @@ var EnvironmentListItem = {
|
|
|
17591
18382
|
if (message.currentConcurrentGpus !== 0) {
|
|
17592
18383
|
writer.uint32(80).int32(message.currentConcurrentGpus);
|
|
17593
18384
|
}
|
|
18385
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
18386
|
+
writer.uint32(89).double(message.cycleBudgetDollars);
|
|
18387
|
+
}
|
|
18388
|
+
if (message.effectiveCycleSpendLimit !== 0) {
|
|
18389
|
+
writer.uint32(97).double(message.effectiveCycleSpendLimit);
|
|
18390
|
+
}
|
|
18391
|
+
if (message.currentCycleUsage !== 0) {
|
|
18392
|
+
writer.uint32(105).double(message.currentCycleUsage);
|
|
18393
|
+
}
|
|
18394
|
+
if (message.spendLimitReached !== false) {
|
|
18395
|
+
writer.uint32(112).bool(message.spendLimitReached);
|
|
18396
|
+
}
|
|
17594
18397
|
return writer;
|
|
17595
18398
|
},
|
|
17596
18399
|
decode(input, length) {
|
|
@@ -17670,6 +18473,34 @@ var EnvironmentListItem = {
|
|
|
17670
18473
|
message.currentConcurrentGpus = reader.int32();
|
|
17671
18474
|
continue;
|
|
17672
18475
|
}
|
|
18476
|
+
case 11: {
|
|
18477
|
+
if (tag !== 89) {
|
|
18478
|
+
break;
|
|
18479
|
+
}
|
|
18480
|
+
message.cycleBudgetDollars = reader.double();
|
|
18481
|
+
continue;
|
|
18482
|
+
}
|
|
18483
|
+
case 12: {
|
|
18484
|
+
if (tag !== 97) {
|
|
18485
|
+
break;
|
|
18486
|
+
}
|
|
18487
|
+
message.effectiveCycleSpendLimit = reader.double();
|
|
18488
|
+
continue;
|
|
18489
|
+
}
|
|
18490
|
+
case 13: {
|
|
18491
|
+
if (tag !== 105) {
|
|
18492
|
+
break;
|
|
18493
|
+
}
|
|
18494
|
+
message.currentCycleUsage = reader.double();
|
|
18495
|
+
continue;
|
|
18496
|
+
}
|
|
18497
|
+
case 14: {
|
|
18498
|
+
if (tag !== 112) {
|
|
18499
|
+
break;
|
|
18500
|
+
}
|
|
18501
|
+
message.spendLimitReached = reader.bool();
|
|
18502
|
+
continue;
|
|
18503
|
+
}
|
|
17673
18504
|
}
|
|
17674
18505
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17675
18506
|
break;
|
|
@@ -17689,7 +18520,11 @@ var EnvironmentListItem = {
|
|
|
17689
18520
|
maxConcurrentTasks: isSet5(object.maxConcurrentTasks) ? globalThis.Number(object.maxConcurrentTasks) : void 0,
|
|
17690
18521
|
maxConcurrentGpus: isSet5(object.maxConcurrentGpus) ? globalThis.Number(object.maxConcurrentGpus) : void 0,
|
|
17691
18522
|
currentConcurrentTasks: isSet5(object.currentConcurrentTasks) ? globalThis.Number(object.currentConcurrentTasks) : 0,
|
|
17692
|
-
currentConcurrentGpus: isSet5(object.currentConcurrentGpus) ? globalThis.Number(object.currentConcurrentGpus) : 0
|
|
18523
|
+
currentConcurrentGpus: isSet5(object.currentConcurrentGpus) ? globalThis.Number(object.currentConcurrentGpus) : 0,
|
|
18524
|
+
cycleBudgetDollars: isSet5(object.cycleBudgetDollars) ? globalThis.Number(object.cycleBudgetDollars) : void 0,
|
|
18525
|
+
effectiveCycleSpendLimit: isSet5(object.effectiveCycleSpendLimit) ? globalThis.Number(object.effectiveCycleSpendLimit) : 0,
|
|
18526
|
+
currentCycleUsage: isSet5(object.currentCycleUsage) ? globalThis.Number(object.currentCycleUsage) : 0,
|
|
18527
|
+
spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false
|
|
17693
18528
|
};
|
|
17694
18529
|
},
|
|
17695
18530
|
toJSON(message) {
|
|
@@ -17724,6 +18559,18 @@ var EnvironmentListItem = {
|
|
|
17724
18559
|
if (message.currentConcurrentGpus !== 0) {
|
|
17725
18560
|
obj.currentConcurrentGpus = Math.round(message.currentConcurrentGpus);
|
|
17726
18561
|
}
|
|
18562
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
18563
|
+
obj.cycleBudgetDollars = message.cycleBudgetDollars;
|
|
18564
|
+
}
|
|
18565
|
+
if (message.effectiveCycleSpendLimit !== 0) {
|
|
18566
|
+
obj.effectiveCycleSpendLimit = message.effectiveCycleSpendLimit;
|
|
18567
|
+
}
|
|
18568
|
+
if (message.currentCycleUsage !== 0) {
|
|
18569
|
+
obj.currentCycleUsage = message.currentCycleUsage;
|
|
18570
|
+
}
|
|
18571
|
+
if (message.spendLimitReached !== false) {
|
|
18572
|
+
obj.spendLimitReached = message.spendLimitReached;
|
|
18573
|
+
}
|
|
17727
18574
|
return obj;
|
|
17728
18575
|
},
|
|
17729
18576
|
create(base) {
|
|
@@ -17741,6 +18588,10 @@ var EnvironmentListItem = {
|
|
|
17741
18588
|
message.maxConcurrentGpus = object.maxConcurrentGpus ?? void 0;
|
|
17742
18589
|
message.currentConcurrentTasks = object.currentConcurrentTasks ?? 0;
|
|
17743
18590
|
message.currentConcurrentGpus = object.currentConcurrentGpus ?? 0;
|
|
18591
|
+
message.cycleBudgetDollars = object.cycleBudgetDollars ?? void 0;
|
|
18592
|
+
message.effectiveCycleSpendLimit = object.effectiveCycleSpendLimit ?? 0;
|
|
18593
|
+
message.currentCycleUsage = object.currentCycleUsage ?? 0;
|
|
18594
|
+
message.spendLimitReached = object.spendLimitReached ?? false;
|
|
17744
18595
|
return message;
|
|
17745
18596
|
}
|
|
17746
18597
|
};
|
|
@@ -17963,6 +18814,89 @@ var EnvironmentRoleSetRequest = {
|
|
|
17963
18814
|
return message;
|
|
17964
18815
|
}
|
|
17965
18816
|
};
|
|
18817
|
+
function createBaseEnvironmentSetBudgetRequest() {
|
|
18818
|
+
return { environmentId: "", cycleBudgetDollars: void 0, clearBudget: false };
|
|
18819
|
+
}
|
|
18820
|
+
var EnvironmentSetBudgetRequest = {
|
|
18821
|
+
encode(message, writer = new BinaryWriter()) {
|
|
18822
|
+
if (message.environmentId !== "") {
|
|
18823
|
+
writer.uint32(10).string(message.environmentId);
|
|
18824
|
+
}
|
|
18825
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
18826
|
+
writer.uint32(17).double(message.cycleBudgetDollars);
|
|
18827
|
+
}
|
|
18828
|
+
if (message.clearBudget !== false) {
|
|
18829
|
+
writer.uint32(24).bool(message.clearBudget);
|
|
18830
|
+
}
|
|
18831
|
+
return writer;
|
|
18832
|
+
},
|
|
18833
|
+
decode(input, length) {
|
|
18834
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18835
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
18836
|
+
const message = createBaseEnvironmentSetBudgetRequest();
|
|
18837
|
+
while (reader.pos < end) {
|
|
18838
|
+
const tag = reader.uint32();
|
|
18839
|
+
switch (tag >>> 3) {
|
|
18840
|
+
case 1: {
|
|
18841
|
+
if (tag !== 10) {
|
|
18842
|
+
break;
|
|
18843
|
+
}
|
|
18844
|
+
message.environmentId = reader.string();
|
|
18845
|
+
continue;
|
|
18846
|
+
}
|
|
18847
|
+
case 2: {
|
|
18848
|
+
if (tag !== 17) {
|
|
18849
|
+
break;
|
|
18850
|
+
}
|
|
18851
|
+
message.cycleBudgetDollars = reader.double();
|
|
18852
|
+
continue;
|
|
18853
|
+
}
|
|
18854
|
+
case 3: {
|
|
18855
|
+
if (tag !== 24) {
|
|
18856
|
+
break;
|
|
18857
|
+
}
|
|
18858
|
+
message.clearBudget = reader.bool();
|
|
18859
|
+
continue;
|
|
18860
|
+
}
|
|
18861
|
+
}
|
|
18862
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18863
|
+
break;
|
|
18864
|
+
}
|
|
18865
|
+
reader.skip(tag & 7);
|
|
18866
|
+
}
|
|
18867
|
+
return message;
|
|
18868
|
+
},
|
|
18869
|
+
fromJSON(object) {
|
|
18870
|
+
return {
|
|
18871
|
+
environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : "",
|
|
18872
|
+
cycleBudgetDollars: isSet5(object.cycleBudgetDollars) ? globalThis.Number(object.cycleBudgetDollars) : void 0,
|
|
18873
|
+
clearBudget: isSet5(object.clearBudget) ? globalThis.Boolean(object.clearBudget) : false
|
|
18874
|
+
};
|
|
18875
|
+
},
|
|
18876
|
+
toJSON(message) {
|
|
18877
|
+
const obj = {};
|
|
18878
|
+
if (message.environmentId !== "") {
|
|
18879
|
+
obj.environmentId = message.environmentId;
|
|
18880
|
+
}
|
|
18881
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
18882
|
+
obj.cycleBudgetDollars = message.cycleBudgetDollars;
|
|
18883
|
+
}
|
|
18884
|
+
if (message.clearBudget !== false) {
|
|
18885
|
+
obj.clearBudget = message.clearBudget;
|
|
18886
|
+
}
|
|
18887
|
+
return obj;
|
|
18888
|
+
},
|
|
18889
|
+
create(base) {
|
|
18890
|
+
return EnvironmentSetBudgetRequest.fromPartial(base ?? {});
|
|
18891
|
+
},
|
|
18892
|
+
fromPartial(object) {
|
|
18893
|
+
const message = createBaseEnvironmentSetBudgetRequest();
|
|
18894
|
+
message.environmentId = object.environmentId ?? "";
|
|
18895
|
+
message.cycleBudgetDollars = object.cycleBudgetDollars ?? void 0;
|
|
18896
|
+
message.clearBudget = object.clearBudget ?? false;
|
|
18897
|
+
return message;
|
|
18898
|
+
}
|
|
18899
|
+
};
|
|
17966
18900
|
function createBaseEnvironmentSetManagedRequest() {
|
|
17967
18901
|
return { environmentId: "", managed: false };
|
|
17968
18902
|
}
|
|
@@ -27405,7 +28339,15 @@ var GenericResult = {
|
|
|
27405
28339
|
}
|
|
27406
28340
|
};
|
|
27407
28341
|
function createBaseHTTPConfig() {
|
|
27408
|
-
return {
|
|
28342
|
+
return {
|
|
28343
|
+
port: 0,
|
|
28344
|
+
proxyRegions: [],
|
|
28345
|
+
startupTimeout: 0,
|
|
28346
|
+
exitGracePeriod: 0,
|
|
28347
|
+
h2Enabled: false,
|
|
28348
|
+
targetConcurrency: 0,
|
|
28349
|
+
unauthenticated: false
|
|
28350
|
+
};
|
|
27409
28351
|
}
|
|
27410
28352
|
var HTTPConfig = {
|
|
27411
28353
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -27427,6 +28369,9 @@ var HTTPConfig = {
|
|
|
27427
28369
|
if (message.targetConcurrency !== 0) {
|
|
27428
28370
|
writer.uint32(48).uint32(message.targetConcurrency);
|
|
27429
28371
|
}
|
|
28372
|
+
if (message.unauthenticated !== false) {
|
|
28373
|
+
writer.uint32(56).bool(message.unauthenticated);
|
|
28374
|
+
}
|
|
27430
28375
|
return writer;
|
|
27431
28376
|
},
|
|
27432
28377
|
decode(input, length) {
|
|
@@ -27478,6 +28423,13 @@ var HTTPConfig = {
|
|
|
27478
28423
|
message.targetConcurrency = reader.uint32();
|
|
27479
28424
|
continue;
|
|
27480
28425
|
}
|
|
28426
|
+
case 7: {
|
|
28427
|
+
if (tag !== 56) {
|
|
28428
|
+
break;
|
|
28429
|
+
}
|
|
28430
|
+
message.unauthenticated = reader.bool();
|
|
28431
|
+
continue;
|
|
28432
|
+
}
|
|
27481
28433
|
}
|
|
27482
28434
|
if ((tag & 7) === 4 || tag === 0) {
|
|
27483
28435
|
break;
|
|
@@ -27493,7 +28445,8 @@ var HTTPConfig = {
|
|
|
27493
28445
|
startupTimeout: isSet5(object.startupTimeout) ? globalThis.Number(object.startupTimeout) : 0,
|
|
27494
28446
|
exitGracePeriod: isSet5(object.exitGracePeriod) ? globalThis.Number(object.exitGracePeriod) : 0,
|
|
27495
28447
|
h2Enabled: isSet5(object.h2Enabled) ? globalThis.Boolean(object.h2Enabled) : false,
|
|
27496
|
-
targetConcurrency: isSet5(object.targetConcurrency) ? globalThis.Number(object.targetConcurrency) : 0
|
|
28448
|
+
targetConcurrency: isSet5(object.targetConcurrency) ? globalThis.Number(object.targetConcurrency) : 0,
|
|
28449
|
+
unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false
|
|
27497
28450
|
};
|
|
27498
28451
|
},
|
|
27499
28452
|
toJSON(message) {
|
|
@@ -27516,6 +28469,9 @@ var HTTPConfig = {
|
|
|
27516
28469
|
if (message.targetConcurrency !== 0) {
|
|
27517
28470
|
obj.targetConcurrency = Math.round(message.targetConcurrency);
|
|
27518
28471
|
}
|
|
28472
|
+
if (message.unauthenticated !== false) {
|
|
28473
|
+
obj.unauthenticated = message.unauthenticated;
|
|
28474
|
+
}
|
|
27519
28475
|
return obj;
|
|
27520
28476
|
},
|
|
27521
28477
|
create(base) {
|
|
@@ -27529,6 +28485,7 @@ var HTTPConfig = {
|
|
|
27529
28485
|
message.exitGracePeriod = object.exitGracePeriod ?? 0;
|
|
27530
28486
|
message.h2Enabled = object.h2Enabled ?? false;
|
|
27531
28487
|
message.targetConcurrency = object.targetConcurrency ?? 0;
|
|
28488
|
+
message.unauthenticated = object.unauthenticated ?? false;
|
|
27532
28489
|
return message;
|
|
27533
28490
|
}
|
|
27534
28491
|
};
|
|
@@ -37302,7 +38259,7 @@ var SandboxCreateResponse = {
|
|
|
37302
38259
|
}
|
|
37303
38260
|
};
|
|
37304
38261
|
function createBaseSandboxCreateV2Request() {
|
|
37305
|
-
return { appId: "", definition: void 0 };
|
|
38262
|
+
return { appId: "", definition: void 0, ephemeralSecrets: void 0 };
|
|
37306
38263
|
}
|
|
37307
38264
|
var SandboxCreateV2Request = {
|
|
37308
38265
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -37312,6 +38269,9 @@ var SandboxCreateV2Request = {
|
|
|
37312
38269
|
if (message.definition !== void 0) {
|
|
37313
38270
|
Sandbox.encode(message.definition, writer.uint32(18).fork()).join();
|
|
37314
38271
|
}
|
|
38272
|
+
if (message.ephemeralSecrets !== void 0) {
|
|
38273
|
+
StringMap.encode(message.ephemeralSecrets, writer.uint32(26).fork()).join();
|
|
38274
|
+
}
|
|
37315
38275
|
return writer;
|
|
37316
38276
|
},
|
|
37317
38277
|
decode(input, length) {
|
|
@@ -37335,6 +38295,13 @@ var SandboxCreateV2Request = {
|
|
|
37335
38295
|
message.definition = Sandbox.decode(reader, reader.uint32());
|
|
37336
38296
|
continue;
|
|
37337
38297
|
}
|
|
38298
|
+
case 3: {
|
|
38299
|
+
if (tag !== 26) {
|
|
38300
|
+
break;
|
|
38301
|
+
}
|
|
38302
|
+
message.ephemeralSecrets = StringMap.decode(reader, reader.uint32());
|
|
38303
|
+
continue;
|
|
38304
|
+
}
|
|
37338
38305
|
}
|
|
37339
38306
|
if ((tag & 7) === 4 || tag === 0) {
|
|
37340
38307
|
break;
|
|
@@ -37346,7 +38313,8 @@ var SandboxCreateV2Request = {
|
|
|
37346
38313
|
fromJSON(object) {
|
|
37347
38314
|
return {
|
|
37348
38315
|
appId: isSet5(object.appId) ? globalThis.String(object.appId) : "",
|
|
37349
|
-
definition: isSet5(object.definition) ? Sandbox.fromJSON(object.definition) : void 0
|
|
38316
|
+
definition: isSet5(object.definition) ? Sandbox.fromJSON(object.definition) : void 0,
|
|
38317
|
+
ephemeralSecrets: isSet5(object.ephemeralSecrets) ? StringMap.fromJSON(object.ephemeralSecrets) : void 0
|
|
37350
38318
|
};
|
|
37351
38319
|
},
|
|
37352
38320
|
toJSON(message) {
|
|
@@ -37357,6 +38325,9 @@ var SandboxCreateV2Request = {
|
|
|
37357
38325
|
if (message.definition !== void 0) {
|
|
37358
38326
|
obj.definition = Sandbox.toJSON(message.definition);
|
|
37359
38327
|
}
|
|
38328
|
+
if (message.ephemeralSecrets !== void 0) {
|
|
38329
|
+
obj.ephemeralSecrets = StringMap.toJSON(message.ephemeralSecrets);
|
|
38330
|
+
}
|
|
37360
38331
|
return obj;
|
|
37361
38332
|
},
|
|
37362
38333
|
create(base) {
|
|
@@ -37366,6 +38337,7 @@ var SandboxCreateV2Request = {
|
|
|
37366
38337
|
const message = createBaseSandboxCreateV2Request();
|
|
37367
38338
|
message.appId = object.appId ?? "";
|
|
37368
38339
|
message.definition = object.definition !== void 0 && object.definition !== null ? Sandbox.fromPartial(object.definition) : void 0;
|
|
38340
|
+
message.ephemeralSecrets = object.ephemeralSecrets !== void 0 && object.ephemeralSecrets !== null ? StringMap.fromPartial(object.ephemeralSecrets) : void 0;
|
|
37369
38341
|
return message;
|
|
37370
38342
|
}
|
|
37371
38343
|
};
|
|
@@ -38735,7 +39707,14 @@ var SandboxListResponse = {
|
|
|
38735
39707
|
}
|
|
38736
39708
|
};
|
|
38737
39709
|
function createBaseSandboxRestoreRequest() {
|
|
38738
|
-
return {
|
|
39710
|
+
return {
|
|
39711
|
+
snapshotId: "",
|
|
39712
|
+
sandboxNameOverride: "",
|
|
39713
|
+
sandboxNameOverrideType: 0,
|
|
39714
|
+
workerId: "",
|
|
39715
|
+
replaceVolumeMounts: false,
|
|
39716
|
+
volumeMounts: []
|
|
39717
|
+
};
|
|
38739
39718
|
}
|
|
38740
39719
|
var SandboxRestoreRequest = {
|
|
38741
39720
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -38751,6 +39730,12 @@ var SandboxRestoreRequest = {
|
|
|
38751
39730
|
if (message.workerId !== "") {
|
|
38752
39731
|
writer.uint32(34).string(message.workerId);
|
|
38753
39732
|
}
|
|
39733
|
+
if (message.replaceVolumeMounts !== false) {
|
|
39734
|
+
writer.uint32(40).bool(message.replaceVolumeMounts);
|
|
39735
|
+
}
|
|
39736
|
+
for (const v of message.volumeMounts) {
|
|
39737
|
+
VolumeMount.encode(v, writer.uint32(50).fork()).join();
|
|
39738
|
+
}
|
|
38754
39739
|
return writer;
|
|
38755
39740
|
},
|
|
38756
39741
|
decode(input, length) {
|
|
@@ -38788,6 +39773,20 @@ var SandboxRestoreRequest = {
|
|
|
38788
39773
|
message.workerId = reader.string();
|
|
38789
39774
|
continue;
|
|
38790
39775
|
}
|
|
39776
|
+
case 5: {
|
|
39777
|
+
if (tag !== 40) {
|
|
39778
|
+
break;
|
|
39779
|
+
}
|
|
39780
|
+
message.replaceVolumeMounts = reader.bool();
|
|
39781
|
+
continue;
|
|
39782
|
+
}
|
|
39783
|
+
case 6: {
|
|
39784
|
+
if (tag !== 50) {
|
|
39785
|
+
break;
|
|
39786
|
+
}
|
|
39787
|
+
message.volumeMounts.push(VolumeMount.decode(reader, reader.uint32()));
|
|
39788
|
+
continue;
|
|
39789
|
+
}
|
|
38791
39790
|
}
|
|
38792
39791
|
if ((tag & 7) === 4 || tag === 0) {
|
|
38793
39792
|
break;
|
|
@@ -38801,7 +39800,9 @@ var SandboxRestoreRequest = {
|
|
|
38801
39800
|
snapshotId: isSet5(object.snapshotId) ? globalThis.String(object.snapshotId) : "",
|
|
38802
39801
|
sandboxNameOverride: isSet5(object.sandboxNameOverride) ? globalThis.String(object.sandboxNameOverride) : "",
|
|
38803
39802
|
sandboxNameOverrideType: isSet5(object.sandboxNameOverrideType) ? sandboxRestoreRequest_SandboxNameOverrideTypeFromJSON(object.sandboxNameOverrideType) : 0,
|
|
38804
|
-
workerId: isSet5(object.workerId) ? globalThis.String(object.workerId) : ""
|
|
39803
|
+
workerId: isSet5(object.workerId) ? globalThis.String(object.workerId) : "",
|
|
39804
|
+
replaceVolumeMounts: isSet5(object.replaceVolumeMounts) ? globalThis.Boolean(object.replaceVolumeMounts) : false,
|
|
39805
|
+
volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : []
|
|
38805
39806
|
};
|
|
38806
39807
|
},
|
|
38807
39808
|
toJSON(message) {
|
|
@@ -38820,6 +39821,12 @@ var SandboxRestoreRequest = {
|
|
|
38820
39821
|
if (message.workerId !== "") {
|
|
38821
39822
|
obj.workerId = message.workerId;
|
|
38822
39823
|
}
|
|
39824
|
+
if (message.replaceVolumeMounts !== false) {
|
|
39825
|
+
obj.replaceVolumeMounts = message.replaceVolumeMounts;
|
|
39826
|
+
}
|
|
39827
|
+
if (message.volumeMounts?.length) {
|
|
39828
|
+
obj.volumeMounts = message.volumeMounts.map((e) => VolumeMount.toJSON(e));
|
|
39829
|
+
}
|
|
38823
39830
|
return obj;
|
|
38824
39831
|
},
|
|
38825
39832
|
create(base) {
|
|
@@ -38831,6 +39838,8 @@ var SandboxRestoreRequest = {
|
|
|
38831
39838
|
message.sandboxNameOverride = object.sandboxNameOverride ?? "";
|
|
38832
39839
|
message.sandboxNameOverrideType = object.sandboxNameOverrideType ?? 0;
|
|
38833
39840
|
message.workerId = object.workerId ?? "";
|
|
39841
|
+
message.replaceVolumeMounts = object.replaceVolumeMounts ?? false;
|
|
39842
|
+
message.volumeMounts = object.volumeMounts?.map((e) => VolumeMount.fromPartial(e)) || [];
|
|
38834
39843
|
return message;
|
|
38835
39844
|
}
|
|
38836
39845
|
};
|
|
@@ -43013,7 +44022,7 @@ var SystemErrorMessage = {
|
|
|
43013
44022
|
}
|
|
43014
44023
|
};
|
|
43015
44024
|
function createBaseTaskClusterHelloRequest() {
|
|
43016
|
-
return { taskId: "", containerIp: "" };
|
|
44025
|
+
return { taskId: "", containerIp: "", imexHostIp: "" };
|
|
43017
44026
|
}
|
|
43018
44027
|
var TaskClusterHelloRequest = {
|
|
43019
44028
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -43023,6 +44032,9 @@ var TaskClusterHelloRequest = {
|
|
|
43023
44032
|
if (message.containerIp !== "") {
|
|
43024
44033
|
writer.uint32(18).string(message.containerIp);
|
|
43025
44034
|
}
|
|
44035
|
+
if (message.imexHostIp !== "") {
|
|
44036
|
+
writer.uint32(26).string(message.imexHostIp);
|
|
44037
|
+
}
|
|
43026
44038
|
return writer;
|
|
43027
44039
|
},
|
|
43028
44040
|
decode(input, length) {
|
|
@@ -43046,6 +44058,13 @@ var TaskClusterHelloRequest = {
|
|
|
43046
44058
|
message.containerIp = reader.string();
|
|
43047
44059
|
continue;
|
|
43048
44060
|
}
|
|
44061
|
+
case 3: {
|
|
44062
|
+
if (tag !== 26) {
|
|
44063
|
+
break;
|
|
44064
|
+
}
|
|
44065
|
+
message.imexHostIp = reader.string();
|
|
44066
|
+
continue;
|
|
44067
|
+
}
|
|
43049
44068
|
}
|
|
43050
44069
|
if ((tag & 7) === 4 || tag === 0) {
|
|
43051
44070
|
break;
|
|
@@ -43057,7 +44076,8 @@ var TaskClusterHelloRequest = {
|
|
|
43057
44076
|
fromJSON(object) {
|
|
43058
44077
|
return {
|
|
43059
44078
|
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
43060
|
-
containerIp: isSet5(object.containerIp) ? globalThis.String(object.containerIp) : ""
|
|
44079
|
+
containerIp: isSet5(object.containerIp) ? globalThis.String(object.containerIp) : "",
|
|
44080
|
+
imexHostIp: isSet5(object.imexHostIp) ? globalThis.String(object.imexHostIp) : ""
|
|
43061
44081
|
};
|
|
43062
44082
|
},
|
|
43063
44083
|
toJSON(message) {
|
|
@@ -43068,6 +44088,9 @@ var TaskClusterHelloRequest = {
|
|
|
43068
44088
|
if (message.containerIp !== "") {
|
|
43069
44089
|
obj.containerIp = message.containerIp;
|
|
43070
44090
|
}
|
|
44091
|
+
if (message.imexHostIp !== "") {
|
|
44092
|
+
obj.imexHostIp = message.imexHostIp;
|
|
44093
|
+
}
|
|
43071
44094
|
return obj;
|
|
43072
44095
|
},
|
|
43073
44096
|
create(base) {
|
|
@@ -43077,11 +44100,12 @@ var TaskClusterHelloRequest = {
|
|
|
43077
44100
|
const message = createBaseTaskClusterHelloRequest();
|
|
43078
44101
|
message.taskId = object.taskId ?? "";
|
|
43079
44102
|
message.containerIp = object.containerIp ?? "";
|
|
44103
|
+
message.imexHostIp = object.imexHostIp ?? "";
|
|
43080
44104
|
return message;
|
|
43081
44105
|
}
|
|
43082
44106
|
};
|
|
43083
44107
|
function createBaseTaskClusterHelloResponse() {
|
|
43084
|
-
return { clusterId: "", clusterRank: 0, containerIps: [], containerIpv4Ips: [] };
|
|
44108
|
+
return { clusterId: "", clusterRank: 0, containerIps: [], containerIpv4Ips: [], imexPeerIps: [] };
|
|
43085
44109
|
}
|
|
43086
44110
|
var TaskClusterHelloResponse = {
|
|
43087
44111
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -43097,6 +44121,9 @@ var TaskClusterHelloResponse = {
|
|
|
43097
44121
|
for (const v of message.containerIpv4Ips) {
|
|
43098
44122
|
writer.uint32(34).string(v);
|
|
43099
44123
|
}
|
|
44124
|
+
for (const v of message.imexPeerIps) {
|
|
44125
|
+
writer.uint32(42).string(v);
|
|
44126
|
+
}
|
|
43100
44127
|
return writer;
|
|
43101
44128
|
},
|
|
43102
44129
|
decode(input, length) {
|
|
@@ -43134,6 +44161,13 @@ var TaskClusterHelloResponse = {
|
|
|
43134
44161
|
message.containerIpv4Ips.push(reader.string());
|
|
43135
44162
|
continue;
|
|
43136
44163
|
}
|
|
44164
|
+
case 5: {
|
|
44165
|
+
if (tag !== 42) {
|
|
44166
|
+
break;
|
|
44167
|
+
}
|
|
44168
|
+
message.imexPeerIps.push(reader.string());
|
|
44169
|
+
continue;
|
|
44170
|
+
}
|
|
43137
44171
|
}
|
|
43138
44172
|
if ((tag & 7) === 4 || tag === 0) {
|
|
43139
44173
|
break;
|
|
@@ -43147,7 +44181,8 @@ var TaskClusterHelloResponse = {
|
|
|
43147
44181
|
clusterId: isSet5(object.clusterId) ? globalThis.String(object.clusterId) : "",
|
|
43148
44182
|
clusterRank: isSet5(object.clusterRank) ? globalThis.Number(object.clusterRank) : 0,
|
|
43149
44183
|
containerIps: globalThis.Array.isArray(object?.containerIps) ? object.containerIps.map((e) => globalThis.String(e)) : [],
|
|
43150
|
-
containerIpv4Ips: globalThis.Array.isArray(object?.containerIpv4Ips) ? object.containerIpv4Ips.map((e) => globalThis.String(e)) : []
|
|
44184
|
+
containerIpv4Ips: globalThis.Array.isArray(object?.containerIpv4Ips) ? object.containerIpv4Ips.map((e) => globalThis.String(e)) : [],
|
|
44185
|
+
imexPeerIps: globalThis.Array.isArray(object?.imexPeerIps) ? object.imexPeerIps.map((e) => globalThis.String(e)) : []
|
|
43151
44186
|
};
|
|
43152
44187
|
},
|
|
43153
44188
|
toJSON(message) {
|
|
@@ -43164,6 +44199,9 @@ var TaskClusterHelloResponse = {
|
|
|
43164
44199
|
if (message.containerIpv4Ips?.length) {
|
|
43165
44200
|
obj.containerIpv4Ips = message.containerIpv4Ips;
|
|
43166
44201
|
}
|
|
44202
|
+
if (message.imexPeerIps?.length) {
|
|
44203
|
+
obj.imexPeerIps = message.imexPeerIps;
|
|
44204
|
+
}
|
|
43167
44205
|
return obj;
|
|
43168
44206
|
},
|
|
43169
44207
|
create(base) {
|
|
@@ -43175,6 +44213,7 @@ var TaskClusterHelloResponse = {
|
|
|
43175
44213
|
message.clusterRank = object.clusterRank ?? 0;
|
|
43176
44214
|
message.containerIps = object.containerIps?.map((e) => e) || [];
|
|
43177
44215
|
message.containerIpv4Ips = object.containerIpv4Ips?.map((e) => e) || [];
|
|
44216
|
+
message.imexPeerIps = object.imexPeerIps?.map((e) => e) || [];
|
|
43178
44217
|
return message;
|
|
43179
44218
|
}
|
|
43180
44219
|
};
|
|
@@ -44735,6 +45774,125 @@ var TemplateListResponse_TemplateListItem = {
|
|
|
44735
45774
|
return message;
|
|
44736
45775
|
}
|
|
44737
45776
|
};
|
|
45777
|
+
function createBaseTokenCreateResponse() {
|
|
45778
|
+
return { tokenId: "", tokenSecret: "" };
|
|
45779
|
+
}
|
|
45780
|
+
var TokenCreateResponse = {
|
|
45781
|
+
encode(message, writer = new BinaryWriter()) {
|
|
45782
|
+
if (message.tokenId !== "") {
|
|
45783
|
+
writer.uint32(10).string(message.tokenId);
|
|
45784
|
+
}
|
|
45785
|
+
if (message.tokenSecret !== "") {
|
|
45786
|
+
writer.uint32(18).string(message.tokenSecret);
|
|
45787
|
+
}
|
|
45788
|
+
return writer;
|
|
45789
|
+
},
|
|
45790
|
+
decode(input, length) {
|
|
45791
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
45792
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
45793
|
+
const message = createBaseTokenCreateResponse();
|
|
45794
|
+
while (reader.pos < end) {
|
|
45795
|
+
const tag = reader.uint32();
|
|
45796
|
+
switch (tag >>> 3) {
|
|
45797
|
+
case 1: {
|
|
45798
|
+
if (tag !== 10) {
|
|
45799
|
+
break;
|
|
45800
|
+
}
|
|
45801
|
+
message.tokenId = reader.string();
|
|
45802
|
+
continue;
|
|
45803
|
+
}
|
|
45804
|
+
case 2: {
|
|
45805
|
+
if (tag !== 18) {
|
|
45806
|
+
break;
|
|
45807
|
+
}
|
|
45808
|
+
message.tokenSecret = reader.string();
|
|
45809
|
+
continue;
|
|
45810
|
+
}
|
|
45811
|
+
}
|
|
45812
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
45813
|
+
break;
|
|
45814
|
+
}
|
|
45815
|
+
reader.skip(tag & 7);
|
|
45816
|
+
}
|
|
45817
|
+
return message;
|
|
45818
|
+
},
|
|
45819
|
+
fromJSON(object) {
|
|
45820
|
+
return {
|
|
45821
|
+
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
45822
|
+
tokenSecret: isSet5(object.tokenSecret) ? globalThis.String(object.tokenSecret) : ""
|
|
45823
|
+
};
|
|
45824
|
+
},
|
|
45825
|
+
toJSON(message) {
|
|
45826
|
+
const obj = {};
|
|
45827
|
+
if (message.tokenId !== "") {
|
|
45828
|
+
obj.tokenId = message.tokenId;
|
|
45829
|
+
}
|
|
45830
|
+
if (message.tokenSecret !== "") {
|
|
45831
|
+
obj.tokenSecret = message.tokenSecret;
|
|
45832
|
+
}
|
|
45833
|
+
return obj;
|
|
45834
|
+
},
|
|
45835
|
+
create(base) {
|
|
45836
|
+
return TokenCreateResponse.fromPartial(base ?? {});
|
|
45837
|
+
},
|
|
45838
|
+
fromPartial(object) {
|
|
45839
|
+
const message = createBaseTokenCreateResponse();
|
|
45840
|
+
message.tokenId = object.tokenId ?? "";
|
|
45841
|
+
message.tokenSecret = object.tokenSecret ?? "";
|
|
45842
|
+
return message;
|
|
45843
|
+
}
|
|
45844
|
+
};
|
|
45845
|
+
function createBaseTokenDeleteRequest() {
|
|
45846
|
+
return { tokenId: "" };
|
|
45847
|
+
}
|
|
45848
|
+
var TokenDeleteRequest = {
|
|
45849
|
+
encode(message, writer = new BinaryWriter()) {
|
|
45850
|
+
if (message.tokenId !== "") {
|
|
45851
|
+
writer.uint32(18).string(message.tokenId);
|
|
45852
|
+
}
|
|
45853
|
+
return writer;
|
|
45854
|
+
},
|
|
45855
|
+
decode(input, length) {
|
|
45856
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
45857
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
45858
|
+
const message = createBaseTokenDeleteRequest();
|
|
45859
|
+
while (reader.pos < end) {
|
|
45860
|
+
const tag = reader.uint32();
|
|
45861
|
+
switch (tag >>> 3) {
|
|
45862
|
+
case 2: {
|
|
45863
|
+
if (tag !== 18) {
|
|
45864
|
+
break;
|
|
45865
|
+
}
|
|
45866
|
+
message.tokenId = reader.string();
|
|
45867
|
+
continue;
|
|
45868
|
+
}
|
|
45869
|
+
}
|
|
45870
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
45871
|
+
break;
|
|
45872
|
+
}
|
|
45873
|
+
reader.skip(tag & 7);
|
|
45874
|
+
}
|
|
45875
|
+
return message;
|
|
45876
|
+
},
|
|
45877
|
+
fromJSON(object) {
|
|
45878
|
+
return { tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "" };
|
|
45879
|
+
},
|
|
45880
|
+
toJSON(message) {
|
|
45881
|
+
const obj = {};
|
|
45882
|
+
if (message.tokenId !== "") {
|
|
45883
|
+
obj.tokenId = message.tokenId;
|
|
45884
|
+
}
|
|
45885
|
+
return obj;
|
|
45886
|
+
},
|
|
45887
|
+
create(base) {
|
|
45888
|
+
return TokenDeleteRequest.fromPartial(base ?? {});
|
|
45889
|
+
},
|
|
45890
|
+
fromPartial(object) {
|
|
45891
|
+
const message = createBaseTokenDeleteRequest();
|
|
45892
|
+
message.tokenId = object.tokenId ?? "";
|
|
45893
|
+
return message;
|
|
45894
|
+
}
|
|
45895
|
+
};
|
|
44738
45896
|
function createBaseTokenFlowCreateRequest() {
|
|
44739
45897
|
return { utmSource: "", localhostPort: 0, nextUrl: "" };
|
|
44740
45898
|
}
|
|
@@ -45817,13 +46975,16 @@ var UserIdentity = {
|
|
|
45817
46975
|
}
|
|
45818
46976
|
};
|
|
45819
46977
|
function createBaseVolumeCommitRequest() {
|
|
45820
|
-
return { volumeId: "" };
|
|
46978
|
+
return { volumeId: "", containerId: void 0 };
|
|
45821
46979
|
}
|
|
45822
46980
|
var VolumeCommitRequest = {
|
|
45823
46981
|
encode(message, writer = new BinaryWriter()) {
|
|
45824
46982
|
if (message.volumeId !== "") {
|
|
45825
46983
|
writer.uint32(10).string(message.volumeId);
|
|
45826
46984
|
}
|
|
46985
|
+
if (message.containerId !== void 0) {
|
|
46986
|
+
writer.uint32(18).string(message.containerId);
|
|
46987
|
+
}
|
|
45827
46988
|
return writer;
|
|
45828
46989
|
},
|
|
45829
46990
|
decode(input, length) {
|
|
@@ -45840,6 +47001,13 @@ var VolumeCommitRequest = {
|
|
|
45840
47001
|
message.volumeId = reader.string();
|
|
45841
47002
|
continue;
|
|
45842
47003
|
}
|
|
47004
|
+
case 2: {
|
|
47005
|
+
if (tag !== 18) {
|
|
47006
|
+
break;
|
|
47007
|
+
}
|
|
47008
|
+
message.containerId = reader.string();
|
|
47009
|
+
continue;
|
|
47010
|
+
}
|
|
45843
47011
|
}
|
|
45844
47012
|
if ((tag & 7) === 4 || tag === 0) {
|
|
45845
47013
|
break;
|
|
@@ -45849,13 +47017,19 @@ var VolumeCommitRequest = {
|
|
|
45849
47017
|
return message;
|
|
45850
47018
|
},
|
|
45851
47019
|
fromJSON(object) {
|
|
45852
|
-
return {
|
|
47020
|
+
return {
|
|
47021
|
+
volumeId: isSet5(object.volumeId) ? globalThis.String(object.volumeId) : "",
|
|
47022
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : void 0
|
|
47023
|
+
};
|
|
45853
47024
|
},
|
|
45854
47025
|
toJSON(message) {
|
|
45855
47026
|
const obj = {};
|
|
45856
47027
|
if (message.volumeId !== "") {
|
|
45857
47028
|
obj.volumeId = message.volumeId;
|
|
45858
47029
|
}
|
|
47030
|
+
if (message.containerId !== void 0) {
|
|
47031
|
+
obj.containerId = message.containerId;
|
|
47032
|
+
}
|
|
45859
47033
|
return obj;
|
|
45860
47034
|
},
|
|
45861
47035
|
create(base) {
|
|
@@ -45864,6 +47038,7 @@ var VolumeCommitRequest = {
|
|
|
45864
47038
|
fromPartial(object) {
|
|
45865
47039
|
const message = createBaseVolumeCommitRequest();
|
|
45866
47040
|
message.volumeId = object.volumeId ?? "";
|
|
47041
|
+
message.containerId = object.containerId ?? void 0;
|
|
45867
47042
|
return message;
|
|
45868
47043
|
}
|
|
45869
47044
|
};
|
|
@@ -48790,8 +49965,495 @@ var WebhookConfig = {
|
|
|
48790
49965
|
return message;
|
|
48791
49966
|
}
|
|
48792
49967
|
};
|
|
49968
|
+
function createBaseWebhookToken() {
|
|
49969
|
+
return { tokenId: "", createdAt: 0, scoped: false };
|
|
49970
|
+
}
|
|
49971
|
+
var WebhookToken = {
|
|
49972
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49973
|
+
if (message.tokenId !== "") {
|
|
49974
|
+
writer.uint32(10).string(message.tokenId);
|
|
49975
|
+
}
|
|
49976
|
+
if (message.createdAt !== 0) {
|
|
49977
|
+
writer.uint32(17).double(message.createdAt);
|
|
49978
|
+
}
|
|
49979
|
+
if (message.scoped !== false) {
|
|
49980
|
+
writer.uint32(24).bool(message.scoped);
|
|
49981
|
+
}
|
|
49982
|
+
return writer;
|
|
49983
|
+
},
|
|
49984
|
+
decode(input, length) {
|
|
49985
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49986
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49987
|
+
const message = createBaseWebhookToken();
|
|
49988
|
+
while (reader.pos < end) {
|
|
49989
|
+
const tag = reader.uint32();
|
|
49990
|
+
switch (tag >>> 3) {
|
|
49991
|
+
case 1: {
|
|
49992
|
+
if (tag !== 10) {
|
|
49993
|
+
break;
|
|
49994
|
+
}
|
|
49995
|
+
message.tokenId = reader.string();
|
|
49996
|
+
continue;
|
|
49997
|
+
}
|
|
49998
|
+
case 2: {
|
|
49999
|
+
if (tag !== 17) {
|
|
50000
|
+
break;
|
|
50001
|
+
}
|
|
50002
|
+
message.createdAt = reader.double();
|
|
50003
|
+
continue;
|
|
50004
|
+
}
|
|
50005
|
+
case 3: {
|
|
50006
|
+
if (tag !== 24) {
|
|
50007
|
+
break;
|
|
50008
|
+
}
|
|
50009
|
+
message.scoped = reader.bool();
|
|
50010
|
+
continue;
|
|
50011
|
+
}
|
|
50012
|
+
}
|
|
50013
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50014
|
+
break;
|
|
50015
|
+
}
|
|
50016
|
+
reader.skip(tag & 7);
|
|
50017
|
+
}
|
|
50018
|
+
return message;
|
|
50019
|
+
},
|
|
50020
|
+
fromJSON(object) {
|
|
50021
|
+
return {
|
|
50022
|
+
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
50023
|
+
createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
50024
|
+
scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false
|
|
50025
|
+
};
|
|
50026
|
+
},
|
|
50027
|
+
toJSON(message) {
|
|
50028
|
+
const obj = {};
|
|
50029
|
+
if (message.tokenId !== "") {
|
|
50030
|
+
obj.tokenId = message.tokenId;
|
|
50031
|
+
}
|
|
50032
|
+
if (message.createdAt !== 0) {
|
|
50033
|
+
obj.createdAt = message.createdAt;
|
|
50034
|
+
}
|
|
50035
|
+
if (message.scoped !== false) {
|
|
50036
|
+
obj.scoped = message.scoped;
|
|
50037
|
+
}
|
|
50038
|
+
return obj;
|
|
50039
|
+
},
|
|
50040
|
+
create(base) {
|
|
50041
|
+
return WebhookToken.fromPartial(base ?? {});
|
|
50042
|
+
},
|
|
50043
|
+
fromPartial(object) {
|
|
50044
|
+
const message = createBaseWebhookToken();
|
|
50045
|
+
message.tokenId = object.tokenId ?? "";
|
|
50046
|
+
message.createdAt = object.createdAt ?? 0;
|
|
50047
|
+
message.scoped = object.scoped ?? false;
|
|
50048
|
+
return message;
|
|
50049
|
+
}
|
|
50050
|
+
};
|
|
50051
|
+
function createBaseWebhookTokenCreateRequest() {
|
|
50052
|
+
return { scoped: false };
|
|
50053
|
+
}
|
|
50054
|
+
var WebhookTokenCreateRequest = {
|
|
50055
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50056
|
+
if (message.scoped !== false) {
|
|
50057
|
+
writer.uint32(8).bool(message.scoped);
|
|
50058
|
+
}
|
|
50059
|
+
return writer;
|
|
50060
|
+
},
|
|
50061
|
+
decode(input, length) {
|
|
50062
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50063
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50064
|
+
const message = createBaseWebhookTokenCreateRequest();
|
|
50065
|
+
while (reader.pos < end) {
|
|
50066
|
+
const tag = reader.uint32();
|
|
50067
|
+
switch (tag >>> 3) {
|
|
50068
|
+
case 1: {
|
|
50069
|
+
if (tag !== 8) {
|
|
50070
|
+
break;
|
|
50071
|
+
}
|
|
50072
|
+
message.scoped = reader.bool();
|
|
50073
|
+
continue;
|
|
50074
|
+
}
|
|
50075
|
+
}
|
|
50076
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50077
|
+
break;
|
|
50078
|
+
}
|
|
50079
|
+
reader.skip(tag & 7);
|
|
50080
|
+
}
|
|
50081
|
+
return message;
|
|
50082
|
+
},
|
|
50083
|
+
fromJSON(object) {
|
|
50084
|
+
return { scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false };
|
|
50085
|
+
},
|
|
50086
|
+
toJSON(message) {
|
|
50087
|
+
const obj = {};
|
|
50088
|
+
if (message.scoped !== false) {
|
|
50089
|
+
obj.scoped = message.scoped;
|
|
50090
|
+
}
|
|
50091
|
+
return obj;
|
|
50092
|
+
},
|
|
50093
|
+
create(base) {
|
|
50094
|
+
return WebhookTokenCreateRequest.fromPartial(base ?? {});
|
|
50095
|
+
},
|
|
50096
|
+
fromPartial(object) {
|
|
50097
|
+
const message = createBaseWebhookTokenCreateRequest();
|
|
50098
|
+
message.scoped = object.scoped ?? false;
|
|
50099
|
+
return message;
|
|
50100
|
+
}
|
|
50101
|
+
};
|
|
50102
|
+
function createBaseWebhookTokenEnvironmentAddRequest() {
|
|
50103
|
+
return { tokenId: "", environmentId: "" };
|
|
50104
|
+
}
|
|
50105
|
+
var WebhookTokenEnvironmentAddRequest = {
|
|
50106
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50107
|
+
if (message.tokenId !== "") {
|
|
50108
|
+
writer.uint32(10).string(message.tokenId);
|
|
50109
|
+
}
|
|
50110
|
+
if (message.environmentId !== "") {
|
|
50111
|
+
writer.uint32(18).string(message.environmentId);
|
|
50112
|
+
}
|
|
50113
|
+
return writer;
|
|
50114
|
+
},
|
|
50115
|
+
decode(input, length) {
|
|
50116
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50117
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50118
|
+
const message = createBaseWebhookTokenEnvironmentAddRequest();
|
|
50119
|
+
while (reader.pos < end) {
|
|
50120
|
+
const tag = reader.uint32();
|
|
50121
|
+
switch (tag >>> 3) {
|
|
50122
|
+
case 1: {
|
|
50123
|
+
if (tag !== 10) {
|
|
50124
|
+
break;
|
|
50125
|
+
}
|
|
50126
|
+
message.tokenId = reader.string();
|
|
50127
|
+
continue;
|
|
50128
|
+
}
|
|
50129
|
+
case 2: {
|
|
50130
|
+
if (tag !== 18) {
|
|
50131
|
+
break;
|
|
50132
|
+
}
|
|
50133
|
+
message.environmentId = reader.string();
|
|
50134
|
+
continue;
|
|
50135
|
+
}
|
|
50136
|
+
}
|
|
50137
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50138
|
+
break;
|
|
50139
|
+
}
|
|
50140
|
+
reader.skip(tag & 7);
|
|
50141
|
+
}
|
|
50142
|
+
return message;
|
|
50143
|
+
},
|
|
50144
|
+
fromJSON(object) {
|
|
50145
|
+
return {
|
|
50146
|
+
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
50147
|
+
environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : ""
|
|
50148
|
+
};
|
|
50149
|
+
},
|
|
50150
|
+
toJSON(message) {
|
|
50151
|
+
const obj = {};
|
|
50152
|
+
if (message.tokenId !== "") {
|
|
50153
|
+
obj.tokenId = message.tokenId;
|
|
50154
|
+
}
|
|
50155
|
+
if (message.environmentId !== "") {
|
|
50156
|
+
obj.environmentId = message.environmentId;
|
|
50157
|
+
}
|
|
50158
|
+
return obj;
|
|
50159
|
+
},
|
|
50160
|
+
create(base) {
|
|
50161
|
+
return WebhookTokenEnvironmentAddRequest.fromPartial(base ?? {});
|
|
50162
|
+
},
|
|
50163
|
+
fromPartial(object) {
|
|
50164
|
+
const message = createBaseWebhookTokenEnvironmentAddRequest();
|
|
50165
|
+
message.tokenId = object.tokenId ?? "";
|
|
50166
|
+
message.environmentId = object.environmentId ?? "";
|
|
50167
|
+
return message;
|
|
50168
|
+
}
|
|
50169
|
+
};
|
|
50170
|
+
function createBaseWebhookTokenEnvironmentListRequest() {
|
|
50171
|
+
return { tokenId: "" };
|
|
50172
|
+
}
|
|
50173
|
+
var WebhookTokenEnvironmentListRequest = {
|
|
50174
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50175
|
+
if (message.tokenId !== "") {
|
|
50176
|
+
writer.uint32(10).string(message.tokenId);
|
|
50177
|
+
}
|
|
50178
|
+
return writer;
|
|
50179
|
+
},
|
|
50180
|
+
decode(input, length) {
|
|
50181
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50182
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50183
|
+
const message = createBaseWebhookTokenEnvironmentListRequest();
|
|
50184
|
+
while (reader.pos < end) {
|
|
50185
|
+
const tag = reader.uint32();
|
|
50186
|
+
switch (tag >>> 3) {
|
|
50187
|
+
case 1: {
|
|
50188
|
+
if (tag !== 10) {
|
|
50189
|
+
break;
|
|
50190
|
+
}
|
|
50191
|
+
message.tokenId = reader.string();
|
|
50192
|
+
continue;
|
|
50193
|
+
}
|
|
50194
|
+
}
|
|
50195
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50196
|
+
break;
|
|
50197
|
+
}
|
|
50198
|
+
reader.skip(tag & 7);
|
|
50199
|
+
}
|
|
50200
|
+
return message;
|
|
50201
|
+
},
|
|
50202
|
+
fromJSON(object) {
|
|
50203
|
+
return { tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "" };
|
|
50204
|
+
},
|
|
50205
|
+
toJSON(message) {
|
|
50206
|
+
const obj = {};
|
|
50207
|
+
if (message.tokenId !== "") {
|
|
50208
|
+
obj.tokenId = message.tokenId;
|
|
50209
|
+
}
|
|
50210
|
+
return obj;
|
|
50211
|
+
},
|
|
50212
|
+
create(base) {
|
|
50213
|
+
return WebhookTokenEnvironmentListRequest.fromPartial(base ?? {});
|
|
50214
|
+
},
|
|
50215
|
+
fromPartial(object) {
|
|
50216
|
+
const message = createBaseWebhookTokenEnvironmentListRequest();
|
|
50217
|
+
message.tokenId = object.tokenId ?? "";
|
|
50218
|
+
return message;
|
|
50219
|
+
}
|
|
50220
|
+
};
|
|
50221
|
+
function createBaseWebhookTokenEnvironmentListResponse() {
|
|
50222
|
+
return { environmentIds: [] };
|
|
50223
|
+
}
|
|
50224
|
+
var WebhookTokenEnvironmentListResponse = {
|
|
50225
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50226
|
+
for (const v of message.environmentIds) {
|
|
50227
|
+
writer.uint32(10).string(v);
|
|
50228
|
+
}
|
|
50229
|
+
return writer;
|
|
50230
|
+
},
|
|
50231
|
+
decode(input, length) {
|
|
50232
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50233
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50234
|
+
const message = createBaseWebhookTokenEnvironmentListResponse();
|
|
50235
|
+
while (reader.pos < end) {
|
|
50236
|
+
const tag = reader.uint32();
|
|
50237
|
+
switch (tag >>> 3) {
|
|
50238
|
+
case 1: {
|
|
50239
|
+
if (tag !== 10) {
|
|
50240
|
+
break;
|
|
50241
|
+
}
|
|
50242
|
+
message.environmentIds.push(reader.string());
|
|
50243
|
+
continue;
|
|
50244
|
+
}
|
|
50245
|
+
}
|
|
50246
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50247
|
+
break;
|
|
50248
|
+
}
|
|
50249
|
+
reader.skip(tag & 7);
|
|
50250
|
+
}
|
|
50251
|
+
return message;
|
|
50252
|
+
},
|
|
50253
|
+
fromJSON(object) {
|
|
50254
|
+
return {
|
|
50255
|
+
environmentIds: globalThis.Array.isArray(object?.environmentIds) ? object.environmentIds.map((e) => globalThis.String(e)) : []
|
|
50256
|
+
};
|
|
50257
|
+
},
|
|
50258
|
+
toJSON(message) {
|
|
50259
|
+
const obj = {};
|
|
50260
|
+
if (message.environmentIds?.length) {
|
|
50261
|
+
obj.environmentIds = message.environmentIds;
|
|
50262
|
+
}
|
|
50263
|
+
return obj;
|
|
50264
|
+
},
|
|
50265
|
+
create(base) {
|
|
50266
|
+
return WebhookTokenEnvironmentListResponse.fromPartial(base ?? {});
|
|
50267
|
+
},
|
|
50268
|
+
fromPartial(object) {
|
|
50269
|
+
const message = createBaseWebhookTokenEnvironmentListResponse();
|
|
50270
|
+
message.environmentIds = object.environmentIds?.map((e) => e) || [];
|
|
50271
|
+
return message;
|
|
50272
|
+
}
|
|
50273
|
+
};
|
|
50274
|
+
function createBaseWebhookTokenEnvironmentRemoveRequest() {
|
|
50275
|
+
return { tokenId: "", environmentId: "" };
|
|
50276
|
+
}
|
|
50277
|
+
var WebhookTokenEnvironmentRemoveRequest = {
|
|
50278
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50279
|
+
if (message.tokenId !== "") {
|
|
50280
|
+
writer.uint32(10).string(message.tokenId);
|
|
50281
|
+
}
|
|
50282
|
+
if (message.environmentId !== "") {
|
|
50283
|
+
writer.uint32(18).string(message.environmentId);
|
|
50284
|
+
}
|
|
50285
|
+
return writer;
|
|
50286
|
+
},
|
|
50287
|
+
decode(input, length) {
|
|
50288
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50289
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50290
|
+
const message = createBaseWebhookTokenEnvironmentRemoveRequest();
|
|
50291
|
+
while (reader.pos < end) {
|
|
50292
|
+
const tag = reader.uint32();
|
|
50293
|
+
switch (tag >>> 3) {
|
|
50294
|
+
case 1: {
|
|
50295
|
+
if (tag !== 10) {
|
|
50296
|
+
break;
|
|
50297
|
+
}
|
|
50298
|
+
message.tokenId = reader.string();
|
|
50299
|
+
continue;
|
|
50300
|
+
}
|
|
50301
|
+
case 2: {
|
|
50302
|
+
if (tag !== 18) {
|
|
50303
|
+
break;
|
|
50304
|
+
}
|
|
50305
|
+
message.environmentId = reader.string();
|
|
50306
|
+
continue;
|
|
50307
|
+
}
|
|
50308
|
+
}
|
|
50309
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50310
|
+
break;
|
|
50311
|
+
}
|
|
50312
|
+
reader.skip(tag & 7);
|
|
50313
|
+
}
|
|
50314
|
+
return message;
|
|
50315
|
+
},
|
|
50316
|
+
fromJSON(object) {
|
|
50317
|
+
return {
|
|
50318
|
+
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
50319
|
+
environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : ""
|
|
50320
|
+
};
|
|
50321
|
+
},
|
|
50322
|
+
toJSON(message) {
|
|
50323
|
+
const obj = {};
|
|
50324
|
+
if (message.tokenId !== "") {
|
|
50325
|
+
obj.tokenId = message.tokenId;
|
|
50326
|
+
}
|
|
50327
|
+
if (message.environmentId !== "") {
|
|
50328
|
+
obj.environmentId = message.environmentId;
|
|
50329
|
+
}
|
|
50330
|
+
return obj;
|
|
50331
|
+
},
|
|
50332
|
+
create(base) {
|
|
50333
|
+
return WebhookTokenEnvironmentRemoveRequest.fromPartial(base ?? {});
|
|
50334
|
+
},
|
|
50335
|
+
fromPartial(object) {
|
|
50336
|
+
const message = createBaseWebhookTokenEnvironmentRemoveRequest();
|
|
50337
|
+
message.tokenId = object.tokenId ?? "";
|
|
50338
|
+
message.environmentId = object.environmentId ?? "";
|
|
50339
|
+
return message;
|
|
50340
|
+
}
|
|
50341
|
+
};
|
|
50342
|
+
function createBaseWebhookTokenListForEnvironmentRequest() {
|
|
50343
|
+
return { environmentName: "" };
|
|
50344
|
+
}
|
|
50345
|
+
var WebhookTokenListForEnvironmentRequest = {
|
|
50346
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50347
|
+
if (message.environmentName !== "") {
|
|
50348
|
+
writer.uint32(10).string(message.environmentName);
|
|
50349
|
+
}
|
|
50350
|
+
return writer;
|
|
50351
|
+
},
|
|
50352
|
+
decode(input, length) {
|
|
50353
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50354
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50355
|
+
const message = createBaseWebhookTokenListForEnvironmentRequest();
|
|
50356
|
+
while (reader.pos < end) {
|
|
50357
|
+
const tag = reader.uint32();
|
|
50358
|
+
switch (tag >>> 3) {
|
|
50359
|
+
case 1: {
|
|
50360
|
+
if (tag !== 10) {
|
|
50361
|
+
break;
|
|
50362
|
+
}
|
|
50363
|
+
message.environmentName = reader.string();
|
|
50364
|
+
continue;
|
|
50365
|
+
}
|
|
50366
|
+
}
|
|
50367
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50368
|
+
break;
|
|
50369
|
+
}
|
|
50370
|
+
reader.skip(tag & 7);
|
|
50371
|
+
}
|
|
50372
|
+
return message;
|
|
50373
|
+
},
|
|
50374
|
+
fromJSON(object) {
|
|
50375
|
+
return { environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "" };
|
|
50376
|
+
},
|
|
50377
|
+
toJSON(message) {
|
|
50378
|
+
const obj = {};
|
|
50379
|
+
if (message.environmentName !== "") {
|
|
50380
|
+
obj.environmentName = message.environmentName;
|
|
50381
|
+
}
|
|
50382
|
+
return obj;
|
|
50383
|
+
},
|
|
50384
|
+
create(base) {
|
|
50385
|
+
return WebhookTokenListForEnvironmentRequest.fromPartial(base ?? {});
|
|
50386
|
+
},
|
|
50387
|
+
fromPartial(object) {
|
|
50388
|
+
const message = createBaseWebhookTokenListForEnvironmentRequest();
|
|
50389
|
+
message.environmentName = object.environmentName ?? "";
|
|
50390
|
+
return message;
|
|
50391
|
+
}
|
|
50392
|
+
};
|
|
50393
|
+
function createBaseWebhookTokenListResponse() {
|
|
50394
|
+
return { tokens: [] };
|
|
50395
|
+
}
|
|
50396
|
+
var WebhookTokenListResponse = {
|
|
50397
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50398
|
+
for (const v of message.tokens) {
|
|
50399
|
+
WebhookToken.encode(v, writer.uint32(10).fork()).join();
|
|
50400
|
+
}
|
|
50401
|
+
return writer;
|
|
50402
|
+
},
|
|
50403
|
+
decode(input, length) {
|
|
50404
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50405
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50406
|
+
const message = createBaseWebhookTokenListResponse();
|
|
50407
|
+
while (reader.pos < end) {
|
|
50408
|
+
const tag = reader.uint32();
|
|
50409
|
+
switch (tag >>> 3) {
|
|
50410
|
+
case 1: {
|
|
50411
|
+
if (tag !== 10) {
|
|
50412
|
+
break;
|
|
50413
|
+
}
|
|
50414
|
+
message.tokens.push(WebhookToken.decode(reader, reader.uint32()));
|
|
50415
|
+
continue;
|
|
50416
|
+
}
|
|
50417
|
+
}
|
|
50418
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50419
|
+
break;
|
|
50420
|
+
}
|
|
50421
|
+
reader.skip(tag & 7);
|
|
50422
|
+
}
|
|
50423
|
+
return message;
|
|
50424
|
+
},
|
|
50425
|
+
fromJSON(object) {
|
|
50426
|
+
return {
|
|
50427
|
+
tokens: globalThis.Array.isArray(object?.tokens) ? object.tokens.map((e) => WebhookToken.fromJSON(e)) : []
|
|
50428
|
+
};
|
|
50429
|
+
},
|
|
50430
|
+
toJSON(message) {
|
|
50431
|
+
const obj = {};
|
|
50432
|
+
if (message.tokens?.length) {
|
|
50433
|
+
obj.tokens = message.tokens.map((e) => WebhookToken.toJSON(e));
|
|
50434
|
+
}
|
|
50435
|
+
return obj;
|
|
50436
|
+
},
|
|
50437
|
+
create(base) {
|
|
50438
|
+
return WebhookTokenListResponse.fromPartial(base ?? {});
|
|
50439
|
+
},
|
|
50440
|
+
fromPartial(object) {
|
|
50441
|
+
const message = createBaseWebhookTokenListResponse();
|
|
50442
|
+
message.tokens = object.tokens?.map((e) => WebhookToken.fromPartial(e)) || [];
|
|
50443
|
+
return message;
|
|
50444
|
+
}
|
|
50445
|
+
};
|
|
48793
50446
|
function createBaseWorkspaceBillingReportItem() {
|
|
48794
|
-
return {
|
|
50447
|
+
return {
|
|
50448
|
+
objectId: "",
|
|
50449
|
+
description: "",
|
|
50450
|
+
environmentName: "",
|
|
50451
|
+
interval: void 0,
|
|
50452
|
+
cost: "",
|
|
50453
|
+
tags: {},
|
|
50454
|
+
costByResourceFloat: {},
|
|
50455
|
+
costByResource: {}
|
|
50456
|
+
};
|
|
48795
50457
|
}
|
|
48796
50458
|
var WorkspaceBillingReportItem = {
|
|
48797
50459
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -48813,6 +50475,12 @@ var WorkspaceBillingReportItem = {
|
|
|
48813
50475
|
Object.entries(message.tags).forEach(([key, value]) => {
|
|
48814
50476
|
WorkspaceBillingReportItem_TagsEntry.encode({ key, value }, writer.uint32(50).fork()).join();
|
|
48815
50477
|
});
|
|
50478
|
+
Object.entries(message.costByResourceFloat).forEach(([key, value]) => {
|
|
50479
|
+
WorkspaceBillingReportItem_CostByResourceFloatEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
50480
|
+
});
|
|
50481
|
+
Object.entries(message.costByResource).forEach(([key, value]) => {
|
|
50482
|
+
WorkspaceBillingReportItem_CostByResourceEntry.encode({ key, value }, writer.uint32(66).fork()).join();
|
|
50483
|
+
});
|
|
48816
50484
|
return writer;
|
|
48817
50485
|
},
|
|
48818
50486
|
decode(input, length) {
|
|
@@ -48867,6 +50535,26 @@ var WorkspaceBillingReportItem = {
|
|
|
48867
50535
|
}
|
|
48868
50536
|
continue;
|
|
48869
50537
|
}
|
|
50538
|
+
case 7: {
|
|
50539
|
+
if (tag !== 58) {
|
|
50540
|
+
break;
|
|
50541
|
+
}
|
|
50542
|
+
const entry7 = WorkspaceBillingReportItem_CostByResourceFloatEntry.decode(reader, reader.uint32());
|
|
50543
|
+
if (entry7.value !== void 0) {
|
|
50544
|
+
message.costByResourceFloat[entry7.key] = entry7.value;
|
|
50545
|
+
}
|
|
50546
|
+
continue;
|
|
50547
|
+
}
|
|
50548
|
+
case 8: {
|
|
50549
|
+
if (tag !== 66) {
|
|
50550
|
+
break;
|
|
50551
|
+
}
|
|
50552
|
+
const entry8 = WorkspaceBillingReportItem_CostByResourceEntry.decode(reader, reader.uint32());
|
|
50553
|
+
if (entry8.value !== void 0) {
|
|
50554
|
+
message.costByResource[entry8.key] = entry8.value;
|
|
50555
|
+
}
|
|
50556
|
+
continue;
|
|
50557
|
+
}
|
|
48870
50558
|
}
|
|
48871
50559
|
if ((tag & 7) === 4 || tag === 0) {
|
|
48872
50560
|
break;
|
|
@@ -48885,6 +50573,14 @@ var WorkspaceBillingReportItem = {
|
|
|
48885
50573
|
tags: isObject2(object.tags) ? Object.entries(object.tags).reduce((acc, [key, value]) => {
|
|
48886
50574
|
acc[key] = String(value);
|
|
48887
50575
|
return acc;
|
|
50576
|
+
}, {}) : {},
|
|
50577
|
+
costByResourceFloat: isObject2(object.costByResourceFloat) ? Object.entries(object.costByResourceFloat).reduce((acc, [key, value]) => {
|
|
50578
|
+
acc[key] = Number(value);
|
|
50579
|
+
return acc;
|
|
50580
|
+
}, {}) : {},
|
|
50581
|
+
costByResource: isObject2(object.costByResource) ? Object.entries(object.costByResource).reduce((acc, [key, value]) => {
|
|
50582
|
+
acc[key] = String(value);
|
|
50583
|
+
return acc;
|
|
48888
50584
|
}, {}) : {}
|
|
48889
50585
|
};
|
|
48890
50586
|
},
|
|
@@ -48914,6 +50610,24 @@ var WorkspaceBillingReportItem = {
|
|
|
48914
50610
|
});
|
|
48915
50611
|
}
|
|
48916
50612
|
}
|
|
50613
|
+
if (message.costByResourceFloat) {
|
|
50614
|
+
const entries = Object.entries(message.costByResourceFloat);
|
|
50615
|
+
if (entries.length > 0) {
|
|
50616
|
+
obj.costByResourceFloat = {};
|
|
50617
|
+
entries.forEach(([k, v]) => {
|
|
50618
|
+
obj.costByResourceFloat[k] = v;
|
|
50619
|
+
});
|
|
50620
|
+
}
|
|
50621
|
+
}
|
|
50622
|
+
if (message.costByResource) {
|
|
50623
|
+
const entries = Object.entries(message.costByResource);
|
|
50624
|
+
if (entries.length > 0) {
|
|
50625
|
+
obj.costByResource = {};
|
|
50626
|
+
entries.forEach(([k, v]) => {
|
|
50627
|
+
obj.costByResource[k] = v;
|
|
50628
|
+
});
|
|
50629
|
+
}
|
|
50630
|
+
}
|
|
48917
50631
|
return obj;
|
|
48918
50632
|
},
|
|
48919
50633
|
create(base) {
|
|
@@ -48932,6 +50646,24 @@ var WorkspaceBillingReportItem = {
|
|
|
48932
50646
|
}
|
|
48933
50647
|
return acc;
|
|
48934
50648
|
}, {});
|
|
50649
|
+
message.costByResourceFloat = Object.entries(object.costByResourceFloat ?? {}).reduce(
|
|
50650
|
+
(acc, [key, value]) => {
|
|
50651
|
+
if (value !== void 0) {
|
|
50652
|
+
acc[key] = globalThis.Number(value);
|
|
50653
|
+
}
|
|
50654
|
+
return acc;
|
|
50655
|
+
},
|
|
50656
|
+
{}
|
|
50657
|
+
);
|
|
50658
|
+
message.costByResource = Object.entries(object.costByResource ?? {}).reduce(
|
|
50659
|
+
(acc, [key, value]) => {
|
|
50660
|
+
if (value !== void 0) {
|
|
50661
|
+
acc[key] = globalThis.String(value);
|
|
50662
|
+
}
|
|
50663
|
+
return acc;
|
|
50664
|
+
},
|
|
50665
|
+
{}
|
|
50666
|
+
);
|
|
48935
50667
|
return message;
|
|
48936
50668
|
}
|
|
48937
50669
|
};
|
|
@@ -49003,8 +50735,151 @@ var WorkspaceBillingReportItem_TagsEntry = {
|
|
|
49003
50735
|
return message;
|
|
49004
50736
|
}
|
|
49005
50737
|
};
|
|
50738
|
+
function createBaseWorkspaceBillingReportItem_CostByResourceFloatEntry() {
|
|
50739
|
+
return { key: "", value: 0 };
|
|
50740
|
+
}
|
|
50741
|
+
var WorkspaceBillingReportItem_CostByResourceFloatEntry = {
|
|
50742
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50743
|
+
if (message.key !== "") {
|
|
50744
|
+
writer.uint32(10).string(message.key);
|
|
50745
|
+
}
|
|
50746
|
+
if (message.value !== 0) {
|
|
50747
|
+
writer.uint32(17).double(message.value);
|
|
50748
|
+
}
|
|
50749
|
+
return writer;
|
|
50750
|
+
},
|
|
50751
|
+
decode(input, length) {
|
|
50752
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50753
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50754
|
+
const message = createBaseWorkspaceBillingReportItem_CostByResourceFloatEntry();
|
|
50755
|
+
while (reader.pos < end) {
|
|
50756
|
+
const tag = reader.uint32();
|
|
50757
|
+
switch (tag >>> 3) {
|
|
50758
|
+
case 1: {
|
|
50759
|
+
if (tag !== 10) {
|
|
50760
|
+
break;
|
|
50761
|
+
}
|
|
50762
|
+
message.key = reader.string();
|
|
50763
|
+
continue;
|
|
50764
|
+
}
|
|
50765
|
+
case 2: {
|
|
50766
|
+
if (tag !== 17) {
|
|
50767
|
+
break;
|
|
50768
|
+
}
|
|
50769
|
+
message.value = reader.double();
|
|
50770
|
+
continue;
|
|
50771
|
+
}
|
|
50772
|
+
}
|
|
50773
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50774
|
+
break;
|
|
50775
|
+
}
|
|
50776
|
+
reader.skip(tag & 7);
|
|
50777
|
+
}
|
|
50778
|
+
return message;
|
|
50779
|
+
},
|
|
50780
|
+
fromJSON(object) {
|
|
50781
|
+
return {
|
|
50782
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
50783
|
+
value: isSet5(object.value) ? globalThis.Number(object.value) : 0
|
|
50784
|
+
};
|
|
50785
|
+
},
|
|
50786
|
+
toJSON(message) {
|
|
50787
|
+
const obj = {};
|
|
50788
|
+
if (message.key !== "") {
|
|
50789
|
+
obj.key = message.key;
|
|
50790
|
+
}
|
|
50791
|
+
if (message.value !== 0) {
|
|
50792
|
+
obj.value = message.value;
|
|
50793
|
+
}
|
|
50794
|
+
return obj;
|
|
50795
|
+
},
|
|
50796
|
+
create(base) {
|
|
50797
|
+
return WorkspaceBillingReportItem_CostByResourceFloatEntry.fromPartial(base ?? {});
|
|
50798
|
+
},
|
|
50799
|
+
fromPartial(object) {
|
|
50800
|
+
const message = createBaseWorkspaceBillingReportItem_CostByResourceFloatEntry();
|
|
50801
|
+
message.key = object.key ?? "";
|
|
50802
|
+
message.value = object.value ?? 0;
|
|
50803
|
+
return message;
|
|
50804
|
+
}
|
|
50805
|
+
};
|
|
50806
|
+
function createBaseWorkspaceBillingReportItem_CostByResourceEntry() {
|
|
50807
|
+
return { key: "", value: "" };
|
|
50808
|
+
}
|
|
50809
|
+
var WorkspaceBillingReportItem_CostByResourceEntry = {
|
|
50810
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50811
|
+
if (message.key !== "") {
|
|
50812
|
+
writer.uint32(10).string(message.key);
|
|
50813
|
+
}
|
|
50814
|
+
if (message.value !== "") {
|
|
50815
|
+
writer.uint32(18).string(message.value);
|
|
50816
|
+
}
|
|
50817
|
+
return writer;
|
|
50818
|
+
},
|
|
50819
|
+
decode(input, length) {
|
|
50820
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50821
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50822
|
+
const message = createBaseWorkspaceBillingReportItem_CostByResourceEntry();
|
|
50823
|
+
while (reader.pos < end) {
|
|
50824
|
+
const tag = reader.uint32();
|
|
50825
|
+
switch (tag >>> 3) {
|
|
50826
|
+
case 1: {
|
|
50827
|
+
if (tag !== 10) {
|
|
50828
|
+
break;
|
|
50829
|
+
}
|
|
50830
|
+
message.key = reader.string();
|
|
50831
|
+
continue;
|
|
50832
|
+
}
|
|
50833
|
+
case 2: {
|
|
50834
|
+
if (tag !== 18) {
|
|
50835
|
+
break;
|
|
50836
|
+
}
|
|
50837
|
+
message.value = reader.string();
|
|
50838
|
+
continue;
|
|
50839
|
+
}
|
|
50840
|
+
}
|
|
50841
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50842
|
+
break;
|
|
50843
|
+
}
|
|
50844
|
+
reader.skip(tag & 7);
|
|
50845
|
+
}
|
|
50846
|
+
return message;
|
|
50847
|
+
},
|
|
50848
|
+
fromJSON(object) {
|
|
50849
|
+
return {
|
|
50850
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
50851
|
+
value: isSet5(object.value) ? globalThis.String(object.value) : ""
|
|
50852
|
+
};
|
|
50853
|
+
},
|
|
50854
|
+
toJSON(message) {
|
|
50855
|
+
const obj = {};
|
|
50856
|
+
if (message.key !== "") {
|
|
50857
|
+
obj.key = message.key;
|
|
50858
|
+
}
|
|
50859
|
+
if (message.value !== "") {
|
|
50860
|
+
obj.value = message.value;
|
|
50861
|
+
}
|
|
50862
|
+
return obj;
|
|
50863
|
+
},
|
|
50864
|
+
create(base) {
|
|
50865
|
+
return WorkspaceBillingReportItem_CostByResourceEntry.fromPartial(base ?? {});
|
|
50866
|
+
},
|
|
50867
|
+
fromPartial(object) {
|
|
50868
|
+
const message = createBaseWorkspaceBillingReportItem_CostByResourceEntry();
|
|
50869
|
+
message.key = object.key ?? "";
|
|
50870
|
+
message.value = object.value ?? "";
|
|
50871
|
+
return message;
|
|
50872
|
+
}
|
|
50873
|
+
};
|
|
49006
50874
|
function createBaseWorkspaceBillingReportRequest() {
|
|
49007
|
-
return {
|
|
50875
|
+
return {
|
|
50876
|
+
startTimestamp: void 0,
|
|
50877
|
+
endTimestamp: void 0,
|
|
50878
|
+
resolution: "",
|
|
50879
|
+
tagNames: [],
|
|
50880
|
+
environmentIds: [],
|
|
50881
|
+
appIds: []
|
|
50882
|
+
};
|
|
49008
50883
|
}
|
|
49009
50884
|
var WorkspaceBillingReportRequest = {
|
|
49010
50885
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -49020,6 +50895,12 @@ var WorkspaceBillingReportRequest = {
|
|
|
49020
50895
|
for (const v of message.tagNames) {
|
|
49021
50896
|
writer.uint32(34).string(v);
|
|
49022
50897
|
}
|
|
50898
|
+
for (const v of message.environmentIds) {
|
|
50899
|
+
writer.uint32(42).string(v);
|
|
50900
|
+
}
|
|
50901
|
+
for (const v of message.appIds) {
|
|
50902
|
+
writer.uint32(50).string(v);
|
|
50903
|
+
}
|
|
49023
50904
|
return writer;
|
|
49024
50905
|
},
|
|
49025
50906
|
decode(input, length) {
|
|
@@ -49057,6 +50938,20 @@ var WorkspaceBillingReportRequest = {
|
|
|
49057
50938
|
message.tagNames.push(reader.string());
|
|
49058
50939
|
continue;
|
|
49059
50940
|
}
|
|
50941
|
+
case 5: {
|
|
50942
|
+
if (tag !== 42) {
|
|
50943
|
+
break;
|
|
50944
|
+
}
|
|
50945
|
+
message.environmentIds.push(reader.string());
|
|
50946
|
+
continue;
|
|
50947
|
+
}
|
|
50948
|
+
case 6: {
|
|
50949
|
+
if (tag !== 50) {
|
|
50950
|
+
break;
|
|
50951
|
+
}
|
|
50952
|
+
message.appIds.push(reader.string());
|
|
50953
|
+
continue;
|
|
50954
|
+
}
|
|
49060
50955
|
}
|
|
49061
50956
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49062
50957
|
break;
|
|
@@ -49070,7 +50965,9 @@ var WorkspaceBillingReportRequest = {
|
|
|
49070
50965
|
startTimestamp: isSet5(object.startTimestamp) ? fromJsonTimestamp(object.startTimestamp) : void 0,
|
|
49071
50966
|
endTimestamp: isSet5(object.endTimestamp) ? fromJsonTimestamp(object.endTimestamp) : void 0,
|
|
49072
50967
|
resolution: isSet5(object.resolution) ? globalThis.String(object.resolution) : "",
|
|
49073
|
-
tagNames: globalThis.Array.isArray(object?.tagNames) ? object.tagNames.map((e) => globalThis.String(e)) : []
|
|
50968
|
+
tagNames: globalThis.Array.isArray(object?.tagNames) ? object.tagNames.map((e) => globalThis.String(e)) : [],
|
|
50969
|
+
environmentIds: globalThis.Array.isArray(object?.environmentIds) ? object.environmentIds.map((e) => globalThis.String(e)) : [],
|
|
50970
|
+
appIds: globalThis.Array.isArray(object?.appIds) ? object.appIds.map((e) => globalThis.String(e)) : []
|
|
49074
50971
|
};
|
|
49075
50972
|
},
|
|
49076
50973
|
toJSON(message) {
|
|
@@ -49087,6 +50984,12 @@ var WorkspaceBillingReportRequest = {
|
|
|
49087
50984
|
if (message.tagNames?.length) {
|
|
49088
50985
|
obj.tagNames = message.tagNames;
|
|
49089
50986
|
}
|
|
50987
|
+
if (message.environmentIds?.length) {
|
|
50988
|
+
obj.environmentIds = message.environmentIds;
|
|
50989
|
+
}
|
|
50990
|
+
if (message.appIds?.length) {
|
|
50991
|
+
obj.appIds = message.appIds;
|
|
50992
|
+
}
|
|
49090
50993
|
return obj;
|
|
49091
50994
|
},
|
|
49092
50995
|
create(base) {
|
|
@@ -49098,6 +51001,8 @@ var WorkspaceBillingReportRequest = {
|
|
|
49098
51001
|
message.endTimestamp = object.endTimestamp ?? void 0;
|
|
49099
51002
|
message.resolution = object.resolution ?? "";
|
|
49100
51003
|
message.tagNames = object.tagNames?.map((e) => e) || [];
|
|
51004
|
+
message.environmentIds = object.environmentIds?.map((e) => e) || [];
|
|
51005
|
+
message.appIds = object.appIds?.map((e) => e) || [];
|
|
49101
51006
|
return message;
|
|
49102
51007
|
}
|
|
49103
51008
|
};
|
|
@@ -49684,7 +51589,7 @@ var ModalClientDefinition = {
|
|
|
49684
51589
|
name: "AppRollback",
|
|
49685
51590
|
requestType: AppRollbackRequest,
|
|
49686
51591
|
requestStream: false,
|
|
49687
|
-
responseType:
|
|
51592
|
+
responseType: AppRollbackResponse,
|
|
49688
51593
|
responseStream: false,
|
|
49689
51594
|
options: {}
|
|
49690
51595
|
},
|
|
@@ -49911,6 +51816,15 @@ var ModalClientDefinition = {
|
|
|
49911
51816
|
responseStream: false,
|
|
49912
51817
|
options: {}
|
|
49913
51818
|
},
|
|
51819
|
+
/** Curl */
|
|
51820
|
+
curlGetAuthToken: {
|
|
51821
|
+
name: "CurlGetAuthToken",
|
|
51822
|
+
requestType: CurlAuthTokenRequest,
|
|
51823
|
+
requestStream: false,
|
|
51824
|
+
responseType: CurlAuthTokenResponse,
|
|
51825
|
+
responseStream: false,
|
|
51826
|
+
options: {}
|
|
51827
|
+
},
|
|
49914
51828
|
/** Dicts */
|
|
49915
51829
|
dictClear: {
|
|
49916
51830
|
name: "DictClear",
|
|
@@ -50042,6 +51956,22 @@ var ModalClientDefinition = {
|
|
|
50042
51956
|
responseStream: false,
|
|
50043
51957
|
options: {}
|
|
50044
51958
|
},
|
|
51959
|
+
endpointGetByName: {
|
|
51960
|
+
name: "EndpointGetByName",
|
|
51961
|
+
requestType: EndpointGetByNameRequest,
|
|
51962
|
+
requestStream: false,
|
|
51963
|
+
responseType: EndpointGetByNameResponse,
|
|
51964
|
+
responseStream: false,
|
|
51965
|
+
options: {}
|
|
51966
|
+
},
|
|
51967
|
+
endpointGetLifecycle: {
|
|
51968
|
+
name: "EndpointGetLifecycle",
|
|
51969
|
+
requestType: EndpointGetLifecycleRequest,
|
|
51970
|
+
requestStream: false,
|
|
51971
|
+
responseType: EndpointGetLifecycleResponse,
|
|
51972
|
+
responseStream: false,
|
|
51973
|
+
options: {}
|
|
51974
|
+
},
|
|
50045
51975
|
endpointList: {
|
|
50046
51976
|
name: "EndpointList",
|
|
50047
51977
|
requestType: EndpointListRequest,
|
|
@@ -50075,6 +52005,14 @@ var ModalClientDefinition = {
|
|
|
50075
52005
|
responseStream: false,
|
|
50076
52006
|
options: {}
|
|
50077
52007
|
},
|
|
52008
|
+
environmentGetBudget: {
|
|
52009
|
+
name: "EnvironmentGetBudget",
|
|
52010
|
+
requestType: EnvironmentGetBudgetRequest,
|
|
52011
|
+
requestStream: false,
|
|
52012
|
+
responseType: EnvironmentGetBudgetResponse,
|
|
52013
|
+
responseStream: false,
|
|
52014
|
+
options: {}
|
|
52015
|
+
},
|
|
50078
52016
|
environmentGetManaged: {
|
|
50079
52017
|
name: "EnvironmentGetManaged",
|
|
50080
52018
|
requestType: EnvironmentGetManagedRequest,
|
|
@@ -50107,6 +52045,14 @@ var ModalClientDefinition = {
|
|
|
50107
52045
|
responseStream: false,
|
|
50108
52046
|
options: {}
|
|
50109
52047
|
},
|
|
52048
|
+
environmentSetBudget: {
|
|
52049
|
+
name: "EnvironmentSetBudget",
|
|
52050
|
+
requestType: EnvironmentSetBudgetRequest,
|
|
52051
|
+
requestStream: false,
|
|
52052
|
+
responseType: Empty,
|
|
52053
|
+
responseStream: false,
|
|
52054
|
+
options: {}
|
|
52055
|
+
},
|
|
50110
52056
|
environmentSetManaged: {
|
|
50111
52057
|
name: "EnvironmentSetManaged",
|
|
50112
52058
|
requestType: EnvironmentSetManagedRequest,
|
|
@@ -51193,6 +53139,63 @@ var ModalClientDefinition = {
|
|
|
51193
53139
|
responseStream: false,
|
|
51194
53140
|
options: {}
|
|
51195
53141
|
},
|
|
53142
|
+
/** Webhook tokens (proxy tokens) */
|
|
53143
|
+
webhookTokenCreate: {
|
|
53144
|
+
name: "WebhookTokenCreate",
|
|
53145
|
+
requestType: WebhookTokenCreateRequest,
|
|
53146
|
+
requestStream: false,
|
|
53147
|
+
responseType: TokenCreateResponse,
|
|
53148
|
+
responseStream: false,
|
|
53149
|
+
options: {}
|
|
53150
|
+
},
|
|
53151
|
+
webhookTokenDelete: {
|
|
53152
|
+
name: "WebhookTokenDelete",
|
|
53153
|
+
requestType: TokenDeleteRequest,
|
|
53154
|
+
requestStream: false,
|
|
53155
|
+
responseType: Empty,
|
|
53156
|
+
responseStream: false,
|
|
53157
|
+
options: {}
|
|
53158
|
+
},
|
|
53159
|
+
webhookTokenEnvironmentAdd: {
|
|
53160
|
+
name: "WebhookTokenEnvironmentAdd",
|
|
53161
|
+
requestType: WebhookTokenEnvironmentAddRequest,
|
|
53162
|
+
requestStream: false,
|
|
53163
|
+
responseType: Empty,
|
|
53164
|
+
responseStream: false,
|
|
53165
|
+
options: {}
|
|
53166
|
+
},
|
|
53167
|
+
webhookTokenEnvironmentList: {
|
|
53168
|
+
name: "WebhookTokenEnvironmentList",
|
|
53169
|
+
requestType: WebhookTokenEnvironmentListRequest,
|
|
53170
|
+
requestStream: false,
|
|
53171
|
+
responseType: WebhookTokenEnvironmentListResponse,
|
|
53172
|
+
responseStream: false,
|
|
53173
|
+
options: {}
|
|
53174
|
+
},
|
|
53175
|
+
webhookTokenEnvironmentRemove: {
|
|
53176
|
+
name: "WebhookTokenEnvironmentRemove",
|
|
53177
|
+
requestType: WebhookTokenEnvironmentRemoveRequest,
|
|
53178
|
+
requestStream: false,
|
|
53179
|
+
responseType: Empty,
|
|
53180
|
+
responseStream: false,
|
|
53181
|
+
options: {}
|
|
53182
|
+
},
|
|
53183
|
+
webhookTokenList: {
|
|
53184
|
+
name: "WebhookTokenList",
|
|
53185
|
+
requestType: Empty,
|
|
53186
|
+
requestStream: false,
|
|
53187
|
+
responseType: WebhookTokenListResponse,
|
|
53188
|
+
responseStream: false,
|
|
53189
|
+
options: {}
|
|
53190
|
+
},
|
|
53191
|
+
webhookTokenListForEnvironment: {
|
|
53192
|
+
name: "WebhookTokenListForEnvironment",
|
|
53193
|
+
requestType: WebhookTokenListForEnvironmentRequest,
|
|
53194
|
+
requestStream: false,
|
|
53195
|
+
responseType: WebhookTokenListResponse,
|
|
53196
|
+
responseStream: false,
|
|
53197
|
+
options: {}
|
|
53198
|
+
},
|
|
51196
53199
|
/** Workspaces */
|
|
51197
53200
|
workspaceBillingReport: {
|
|
51198
53201
|
name: "WorkspaceBillingReport",
|
|
@@ -54121,10 +56124,10 @@ var SandboxStdioReadV2Response = {
|
|
|
54121
56124
|
return message;
|
|
54122
56125
|
}
|
|
54123
56126
|
};
|
|
54124
|
-
function
|
|
56127
|
+
function createBaseSandboxWaitUntilReadyTcrRequest() {
|
|
54125
56128
|
return { taskId: "", timeout: 0 };
|
|
54126
56129
|
}
|
|
54127
|
-
var
|
|
56130
|
+
var SandboxWaitUntilReadyTcrRequest = {
|
|
54128
56131
|
encode(message, writer = new BinaryWriter()) {
|
|
54129
56132
|
if (message.taskId !== "") {
|
|
54130
56133
|
writer.uint32(10).string(message.taskId);
|
|
@@ -54137,7 +56140,7 @@ var SandboxWaitUntilReadyRequest2 = {
|
|
|
54137
56140
|
decode(input, length) {
|
|
54138
56141
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
54139
56142
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
54140
|
-
const message =
|
|
56143
|
+
const message = createBaseSandboxWaitUntilReadyTcrRequest();
|
|
54141
56144
|
while (reader.pos < end) {
|
|
54142
56145
|
const tag = reader.uint32();
|
|
54143
56146
|
switch (tag >>> 3) {
|
|
@@ -54180,19 +56183,19 @@ var SandboxWaitUntilReadyRequest2 = {
|
|
|
54180
56183
|
return obj;
|
|
54181
56184
|
},
|
|
54182
56185
|
create(base) {
|
|
54183
|
-
return
|
|
56186
|
+
return SandboxWaitUntilReadyTcrRequest.fromPartial(base ?? {});
|
|
54184
56187
|
},
|
|
54185
56188
|
fromPartial(object) {
|
|
54186
|
-
const message =
|
|
56189
|
+
const message = createBaseSandboxWaitUntilReadyTcrRequest();
|
|
54187
56190
|
message.taskId = object.taskId ?? "";
|
|
54188
56191
|
message.timeout = object.timeout ?? 0;
|
|
54189
56192
|
return message;
|
|
54190
56193
|
}
|
|
54191
56194
|
};
|
|
54192
|
-
function
|
|
56195
|
+
function createBaseSandboxWaitUntilReadyTcrResponse() {
|
|
54193
56196
|
return { readyAt: 0 };
|
|
54194
56197
|
}
|
|
54195
|
-
var
|
|
56198
|
+
var SandboxWaitUntilReadyTcrResponse = {
|
|
54196
56199
|
encode(message, writer = new BinaryWriter()) {
|
|
54197
56200
|
if (message.readyAt !== 0) {
|
|
54198
56201
|
writer.uint32(9).double(message.readyAt);
|
|
@@ -54202,7 +56205,7 @@ var SandboxWaitUntilReadyResponse2 = {
|
|
|
54202
56205
|
decode(input, length) {
|
|
54203
56206
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
54204
56207
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
54205
|
-
const message =
|
|
56208
|
+
const message = createBaseSandboxWaitUntilReadyTcrResponse();
|
|
54206
56209
|
while (reader.pos < end) {
|
|
54207
56210
|
const tag = reader.uint32();
|
|
54208
56211
|
switch (tag >>> 3) {
|
|
@@ -54232,16 +56235,25 @@ var SandboxWaitUntilReadyResponse2 = {
|
|
|
54232
56235
|
return obj;
|
|
54233
56236
|
},
|
|
54234
56237
|
create(base) {
|
|
54235
|
-
return
|
|
56238
|
+
return SandboxWaitUntilReadyTcrResponse.fromPartial(base ?? {});
|
|
54236
56239
|
},
|
|
54237
56240
|
fromPartial(object) {
|
|
54238
|
-
const message =
|
|
56241
|
+
const message = createBaseSandboxWaitUntilReadyTcrResponse();
|
|
54239
56242
|
message.readyAt = object.readyAt ?? 0;
|
|
54240
56243
|
return message;
|
|
54241
56244
|
}
|
|
54242
56245
|
};
|
|
54243
56246
|
function createBaseTaskContainerCreateRequest() {
|
|
54244
|
-
return {
|
|
56247
|
+
return {
|
|
56248
|
+
taskId: "",
|
|
56249
|
+
containerName: "",
|
|
56250
|
+
imageId: "",
|
|
56251
|
+
args: [],
|
|
56252
|
+
env: {},
|
|
56253
|
+
workdir: "",
|
|
56254
|
+
secretIds: [],
|
|
56255
|
+
volumeMounts: []
|
|
56256
|
+
};
|
|
54245
56257
|
}
|
|
54246
56258
|
var TaskContainerCreateRequest = {
|
|
54247
56259
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -54266,6 +56278,9 @@ var TaskContainerCreateRequest = {
|
|
|
54266
56278
|
for (const v of message.secretIds) {
|
|
54267
56279
|
writer.uint32(66).string(v);
|
|
54268
56280
|
}
|
|
56281
|
+
for (const v of message.volumeMounts) {
|
|
56282
|
+
VolumeMount.encode(v, writer.uint32(74).fork()).join();
|
|
56283
|
+
}
|
|
54269
56284
|
return writer;
|
|
54270
56285
|
},
|
|
54271
56286
|
decode(input, length) {
|
|
@@ -54327,6 +56342,13 @@ var TaskContainerCreateRequest = {
|
|
|
54327
56342
|
message.secretIds.push(reader.string());
|
|
54328
56343
|
continue;
|
|
54329
56344
|
}
|
|
56345
|
+
case 9: {
|
|
56346
|
+
if (tag !== 74) {
|
|
56347
|
+
break;
|
|
56348
|
+
}
|
|
56349
|
+
message.volumeMounts.push(VolumeMount.decode(reader, reader.uint32()));
|
|
56350
|
+
continue;
|
|
56351
|
+
}
|
|
54330
56352
|
}
|
|
54331
56353
|
if ((tag & 7) === 4 || tag === 0) {
|
|
54332
56354
|
break;
|
|
@@ -54346,7 +56368,8 @@ var TaskContainerCreateRequest = {
|
|
|
54346
56368
|
return acc;
|
|
54347
56369
|
}, {}) : {},
|
|
54348
56370
|
workdir: isSet6(object.workdir) ? globalThis.String(object.workdir) : "",
|
|
54349
|
-
secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : []
|
|
56371
|
+
secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : [],
|
|
56372
|
+
volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : []
|
|
54350
56373
|
};
|
|
54351
56374
|
},
|
|
54352
56375
|
toJSON(message) {
|
|
@@ -54378,6 +56401,9 @@ var TaskContainerCreateRequest = {
|
|
|
54378
56401
|
if (message.secretIds?.length) {
|
|
54379
56402
|
obj.secretIds = message.secretIds;
|
|
54380
56403
|
}
|
|
56404
|
+
if (message.volumeMounts?.length) {
|
|
56405
|
+
obj.volumeMounts = message.volumeMounts.map((e) => VolumeMount.toJSON(e));
|
|
56406
|
+
}
|
|
54381
56407
|
return obj;
|
|
54382
56408
|
},
|
|
54383
56409
|
create(base) {
|
|
@@ -54397,6 +56423,7 @@ var TaskContainerCreateRequest = {
|
|
|
54397
56423
|
}, {});
|
|
54398
56424
|
message.workdir = object.workdir ?? "";
|
|
54399
56425
|
message.secretIds = object.secretIds?.map((e) => e) || [];
|
|
56426
|
+
message.volumeMounts = object.volumeMounts?.map((e) => VolumeMount.fromPartial(e)) || [];
|
|
54400
56427
|
return message;
|
|
54401
56428
|
}
|
|
54402
56429
|
};
|
|
@@ -56474,6 +58501,111 @@ var TaskMountDirectoryRequest = {
|
|
|
56474
58501
|
return message;
|
|
56475
58502
|
}
|
|
56476
58503
|
};
|
|
58504
|
+
function createBaseTaskSetNetworkAccessRequest() {
|
|
58505
|
+
return { taskId: "", networkAccess: void 0 };
|
|
58506
|
+
}
|
|
58507
|
+
var TaskSetNetworkAccessRequest = {
|
|
58508
|
+
encode(message, writer = new BinaryWriter()) {
|
|
58509
|
+
if (message.taskId !== "") {
|
|
58510
|
+
writer.uint32(10).string(message.taskId);
|
|
58511
|
+
}
|
|
58512
|
+
if (message.networkAccess !== void 0) {
|
|
58513
|
+
NetworkAccess.encode(message.networkAccess, writer.uint32(18).fork()).join();
|
|
58514
|
+
}
|
|
58515
|
+
return writer;
|
|
58516
|
+
},
|
|
58517
|
+
decode(input, length) {
|
|
58518
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58519
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
58520
|
+
const message = createBaseTaskSetNetworkAccessRequest();
|
|
58521
|
+
while (reader.pos < end) {
|
|
58522
|
+
const tag = reader.uint32();
|
|
58523
|
+
switch (tag >>> 3) {
|
|
58524
|
+
case 1: {
|
|
58525
|
+
if (tag !== 10) {
|
|
58526
|
+
break;
|
|
58527
|
+
}
|
|
58528
|
+
message.taskId = reader.string();
|
|
58529
|
+
continue;
|
|
58530
|
+
}
|
|
58531
|
+
case 2: {
|
|
58532
|
+
if (tag !== 18) {
|
|
58533
|
+
break;
|
|
58534
|
+
}
|
|
58535
|
+
message.networkAccess = NetworkAccess.decode(reader, reader.uint32());
|
|
58536
|
+
continue;
|
|
58537
|
+
}
|
|
58538
|
+
}
|
|
58539
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58540
|
+
break;
|
|
58541
|
+
}
|
|
58542
|
+
reader.skip(tag & 7);
|
|
58543
|
+
}
|
|
58544
|
+
return message;
|
|
58545
|
+
},
|
|
58546
|
+
fromJSON(object) {
|
|
58547
|
+
return {
|
|
58548
|
+
taskId: isSet6(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
58549
|
+
networkAccess: isSet6(object.networkAccess) ? NetworkAccess.fromJSON(object.networkAccess) : void 0
|
|
58550
|
+
};
|
|
58551
|
+
},
|
|
58552
|
+
toJSON(message) {
|
|
58553
|
+
const obj = {};
|
|
58554
|
+
if (message.taskId !== "") {
|
|
58555
|
+
obj.taskId = message.taskId;
|
|
58556
|
+
}
|
|
58557
|
+
if (message.networkAccess !== void 0) {
|
|
58558
|
+
obj.networkAccess = NetworkAccess.toJSON(message.networkAccess);
|
|
58559
|
+
}
|
|
58560
|
+
return obj;
|
|
58561
|
+
},
|
|
58562
|
+
create(base) {
|
|
58563
|
+
return TaskSetNetworkAccessRequest.fromPartial(base ?? {});
|
|
58564
|
+
},
|
|
58565
|
+
fromPartial(object) {
|
|
58566
|
+
const message = createBaseTaskSetNetworkAccessRequest();
|
|
58567
|
+
message.taskId = object.taskId ?? "";
|
|
58568
|
+
message.networkAccess = object.networkAccess !== void 0 && object.networkAccess !== null ? NetworkAccess.fromPartial(object.networkAccess) : void 0;
|
|
58569
|
+
return message;
|
|
58570
|
+
}
|
|
58571
|
+
};
|
|
58572
|
+
function createBaseTaskSetNetworkAccessResponse() {
|
|
58573
|
+
return {};
|
|
58574
|
+
}
|
|
58575
|
+
var TaskSetNetworkAccessResponse = {
|
|
58576
|
+
encode(_, writer = new BinaryWriter()) {
|
|
58577
|
+
return writer;
|
|
58578
|
+
},
|
|
58579
|
+
decode(input, length) {
|
|
58580
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58581
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
58582
|
+
const message = createBaseTaskSetNetworkAccessResponse();
|
|
58583
|
+
while (reader.pos < end) {
|
|
58584
|
+
const tag = reader.uint32();
|
|
58585
|
+
switch (tag >>> 3) {
|
|
58586
|
+
}
|
|
58587
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58588
|
+
break;
|
|
58589
|
+
}
|
|
58590
|
+
reader.skip(tag & 7);
|
|
58591
|
+
}
|
|
58592
|
+
return message;
|
|
58593
|
+
},
|
|
58594
|
+
fromJSON(_) {
|
|
58595
|
+
return {};
|
|
58596
|
+
},
|
|
58597
|
+
toJSON(_) {
|
|
58598
|
+
const obj = {};
|
|
58599
|
+
return obj;
|
|
58600
|
+
},
|
|
58601
|
+
create(base) {
|
|
58602
|
+
return TaskSetNetworkAccessResponse.fromPartial(base ?? {});
|
|
58603
|
+
},
|
|
58604
|
+
fromPartial(_) {
|
|
58605
|
+
const message = createBaseTaskSetNetworkAccessResponse();
|
|
58606
|
+
return message;
|
|
58607
|
+
}
|
|
58608
|
+
};
|
|
56477
58609
|
function createBaseTaskSnapshotDirectoryRequest() {
|
|
56478
58610
|
return {
|
|
56479
58611
|
taskId: "",
|
|
@@ -56883,9 +59015,9 @@ var TaskCommandRouterDefinition = {
|
|
|
56883
59015
|
},
|
|
56884
59016
|
sandboxWaitUntilReady: {
|
|
56885
59017
|
name: "SandboxWaitUntilReady",
|
|
56886
|
-
requestType:
|
|
59018
|
+
requestType: SandboxWaitUntilReadyTcrRequest,
|
|
56887
59019
|
requestStream: false,
|
|
56888
|
-
responseType:
|
|
59020
|
+
responseType: SandboxWaitUntilReadyTcrResponse,
|
|
56889
59021
|
responseStream: false,
|
|
56890
59022
|
options: {}
|
|
56891
59023
|
},
|
|
@@ -56954,7 +59086,9 @@ var TaskCommandRouterDefinition = {
|
|
|
56954
59086
|
},
|
|
56955
59087
|
/**
|
|
56956
59088
|
* Get the current stdin write status for an exec'd command. Used to resume
|
|
56957
|
-
* a TaskExecStdinWriteStream after a stream failure.
|
|
59089
|
+
* a TaskExecStdinWriteStream after a stream failure. Evicts any in-flight
|
|
59090
|
+
* TaskExecStdinWriteStream for this exec, so it is not safe to call for
|
|
59091
|
+
* read-only observability.
|
|
56958
59092
|
*/
|
|
56959
59093
|
taskExecStdinStatus: {
|
|
56960
59094
|
name: "TaskExecStdinStatus",
|
|
@@ -56975,7 +59109,7 @@ var TaskCommandRouterDefinition = {
|
|
|
56975
59109
|
},
|
|
56976
59110
|
/**
|
|
56977
59111
|
* Stream stdin bytes to an exec'd command. First message carries the
|
|
56978
|
-
* start
|
|
59112
|
+
* start message (task_id, exec_id, offset); subsequent messages carry data.
|
|
56979
59113
|
*/
|
|
56980
59114
|
taskExecStdinWriteStream: {
|
|
56981
59115
|
name: "TaskExecStdinWriteStream",
|
|
@@ -57012,6 +59146,15 @@ var TaskCommandRouterDefinition = {
|
|
|
57012
59146
|
responseStream: false,
|
|
57013
59147
|
options: {}
|
|
57014
59148
|
},
|
|
59149
|
+
/** Replace the task's outbound network allowlist (domains + CIDRs). */
|
|
59150
|
+
taskSetNetworkAccess: {
|
|
59151
|
+
name: "TaskSetNetworkAccess",
|
|
59152
|
+
requestType: TaskSetNetworkAccessRequest,
|
|
59153
|
+
requestStream: false,
|
|
59154
|
+
responseType: TaskSetNetworkAccessResponse,
|
|
59155
|
+
responseStream: false,
|
|
59156
|
+
options: {}
|
|
59157
|
+
},
|
|
57015
59158
|
/** Snapshot a directory with a mounted image, including any local changes, into a new image. */
|
|
57016
59159
|
taskSnapshotDirectory: {
|
|
57017
59160
|
name: "TaskSnapshotDirectory",
|
|
@@ -57394,7 +59537,7 @@ var AuthTokenManager = class {
|
|
|
57394
59537
|
|
|
57395
59538
|
// src/version.ts
|
|
57396
59539
|
function getSDKVersion() {
|
|
57397
|
-
return true ? "0.8.
|
|
59540
|
+
return true ? "0.8.1" : "0.0.0";
|
|
57398
59541
|
}
|
|
57399
59542
|
|
|
57400
59543
|
// src/logger.ts
|
|
@@ -58290,6 +60433,33 @@ var TaskCommandRouterClientImpl = class _TaskCommandRouterClientImpl {
|
|
|
58290
60433
|
async unmountDirectory(request) {
|
|
58291
60434
|
await this.callUnary(() => this.stub.taskUnmountDirectory(request));
|
|
58292
60435
|
}
|
|
60436
|
+
async sandboxWaitUntilReady(taskId, timeoutMs) {
|
|
60437
|
+
const deadlineMs = Date.now() + timeoutMs;
|
|
60438
|
+
try {
|
|
60439
|
+
return await callWithRetriesOnTransientErrors(
|
|
60440
|
+
() => this.callWithAuthRetry(() => {
|
|
60441
|
+
const remainingMs = Math.max(1, deadlineMs - Date.now());
|
|
60442
|
+
const request = SandboxWaitUntilReadyTcrRequest.create({
|
|
60443
|
+
taskId,
|
|
60444
|
+
timeout: remainingMs / 1e3
|
|
60445
|
+
});
|
|
60446
|
+
return this.stub.sandboxWaitUntilReady(request, {
|
|
60447
|
+
timeoutMs: remainingMs
|
|
60448
|
+
});
|
|
60449
|
+
}),
|
|
60450
|
+
10,
|
|
60451
|
+
2,
|
|
60452
|
+
10,
|
|
60453
|
+
deadlineMs,
|
|
60454
|
+
() => this.closed
|
|
60455
|
+
);
|
|
60456
|
+
} catch (err) {
|
|
60457
|
+
if (err instanceof RetryDeadlineExceededError) {
|
|
60458
|
+
throw new TimeoutError("Timeout expired");
|
|
60459
|
+
}
|
|
60460
|
+
throw err;
|
|
60461
|
+
}
|
|
60462
|
+
}
|
|
58293
60463
|
async refreshJwt() {
|
|
58294
60464
|
let error;
|
|
58295
60465
|
this.jwtRefreshLock = this.jwtRefreshLock.then(async () => {
|
|
@@ -59385,6 +61555,8 @@ var SB_LOGS_INITIAL_DELAY_MS = 10;
|
|
|
59385
61555
|
var SB_LOGS_DELAY_FACTOR = 2;
|
|
59386
61556
|
var SB_LOGS_MAX_RETRIES = 10;
|
|
59387
61557
|
var TTL_NO_EXPIRY_SENTINEL = -1;
|
|
61558
|
+
var CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MIN_LENGTH = 16;
|
|
61559
|
+
var CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MAX_LENGTH = 512;
|
|
59388
61560
|
function resolveTtlSeconds(ttlMs) {
|
|
59389
61561
|
if (ttlMs === void 0) {
|
|
59390
61562
|
return 30 * 24 * 3600;
|
|
@@ -59400,6 +61572,20 @@ function resolveTtlSeconds(ttlMs) {
|
|
|
59400
61572
|
}
|
|
59401
61573
|
return ttlMs / 1e3;
|
|
59402
61574
|
}
|
|
61575
|
+
function validateExperimentalEncryptionKey(key) {
|
|
61576
|
+
if (key === void 0) {
|
|
61577
|
+
return void 0;
|
|
61578
|
+
}
|
|
61579
|
+
if (!(key instanceof Uint8Array)) {
|
|
61580
|
+
throw new TypeError("experimentalEncryptionKey must be a Uint8Array");
|
|
61581
|
+
}
|
|
61582
|
+
if (key.length < CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MIN_LENGTH || key.length > CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MAX_LENGTH) {
|
|
61583
|
+
throw new InvalidError(
|
|
61584
|
+
`experimentalEncryptionKey must be between ${CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MIN_LENGTH} and ${CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MAX_LENGTH} bytes, got ${key.length} bytes`
|
|
61585
|
+
);
|
|
61586
|
+
}
|
|
61587
|
+
return key;
|
|
61588
|
+
}
|
|
59403
61589
|
var V1_SANDBOX_ID_ALPHABET = new Set(
|
|
59404
61590
|
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
|
59405
61591
|
);
|
|
@@ -59564,6 +61750,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
59564
61750
|
const secretIds = (params.secrets || []).map((secret) => secret.secretId);
|
|
59565
61751
|
let networkAccess;
|
|
59566
61752
|
if (params.blockNetwork) {
|
|
61753
|
+
if (params.i6pn) {
|
|
61754
|
+
throw new InvalidError(
|
|
61755
|
+
"blockNetwork disables all networking, including i6pn. To keep i6pn while blocking public egress, use an empty outbound allowlist (outboundCidrAllowlist: []) instead."
|
|
61756
|
+
);
|
|
61757
|
+
}
|
|
59567
61758
|
if (params.outboundCidrAllowlist) {
|
|
59568
61759
|
throw new Error(
|
|
59569
61760
|
"outboundCidrAllowlist cannot be used when blockNetwork is enabled"
|
|
@@ -59653,7 +61844,7 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
59653
61844
|
`experimental option '${name}' must be a boolean, got ${value}`
|
|
59654
61845
|
);
|
|
59655
61846
|
}
|
|
59656
|
-
acc[name] =
|
|
61847
|
+
acc[name] = String(value);
|
|
59657
61848
|
return acc;
|
|
59658
61849
|
},
|
|
59659
61850
|
{}
|
|
@@ -59690,10 +61881,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
59690
61881
|
proxyId: params.proxy?.proxyId,
|
|
59691
61882
|
readinessProbe: params.readinessProbe?.toProto(),
|
|
59692
61883
|
name: params.name,
|
|
59693
|
-
|
|
61884
|
+
experimentalOptionsV2: protoExperimentalOptions,
|
|
59694
61885
|
customDomain: params.customDomain,
|
|
59695
61886
|
includeOidcIdentityToken: params.includeOidcIdentityToken ?? false,
|
|
59696
|
-
inboundCidrAllowlist: params.inboundCidrAllowlist ?? []
|
|
61887
|
+
inboundCidrAllowlist: params.inboundCidrAllowlist ?? [],
|
|
61888
|
+
i6pnEnabled: params.i6pn ?? false
|
|
59697
61889
|
}
|
|
59698
61890
|
});
|
|
59699
61891
|
}
|
|
@@ -59707,26 +61899,6 @@ async function buildSandboxCreateV2RequestProto(appId, imageId, params = {}) {
|
|
|
59707
61899
|
if (params.customDomain) {
|
|
59708
61900
|
throw new Error("custom domains are not supported by experimentalCreate");
|
|
59709
61901
|
}
|
|
59710
|
-
if (params.proxy) {
|
|
59711
|
-
throw new Error("proxies are not supported by experimentalCreate");
|
|
59712
|
-
}
|
|
59713
|
-
if (params.readinessProbe) {
|
|
59714
|
-
throw new Error("readiness probes are not supported by experimentalCreate");
|
|
59715
|
-
}
|
|
59716
|
-
if (params.includeOidcIdentityToken) {
|
|
59717
|
-
throw new Error(
|
|
59718
|
-
"includeOidcIdentityToken is not supported by experimentalCreate"
|
|
59719
|
-
);
|
|
59720
|
-
}
|
|
59721
|
-
if (params.cloudBucketMounts) {
|
|
59722
|
-
for (const [mountPath, cbm] of Object.entries(params.cloudBucketMounts)) {
|
|
59723
|
-
if (cbm.oidcAuthRoleArn) {
|
|
59724
|
-
throw new Error(
|
|
59725
|
-
`CloudBucketMount with oidcAuthRoleArn is not supported by experimentalCreate (at mount path "${mountPath}")`
|
|
59726
|
-
);
|
|
59727
|
-
}
|
|
59728
|
-
}
|
|
59729
|
-
}
|
|
59730
61902
|
const req = await buildSandboxCreateRequestProto(appId, imageId, params);
|
|
59731
61903
|
return SandboxCreateV2Request.create({
|
|
59732
61904
|
appId: req.appId,
|
|
@@ -59780,12 +61952,11 @@ var SandboxService = class {
|
|
|
59780
61952
|
*
|
|
59781
61953
|
* Supported features include exec, encrypted tunnels, wait/poll/terminate,
|
|
59782
61954
|
* CPU and memory configuration, region placement, volumes, cloud bucket
|
|
59783
|
-
* mounts (with static credentials via {@link Secret}),
|
|
59784
|
-
* snapshots.
|
|
61955
|
+
* mounts (with static credentials via {@link Secret} or `oidcAuthRoleArn`),
|
|
61956
|
+
* OIDC identity tokens, {@link Proxy proxies}, and filesystem snapshots.
|
|
59785
61957
|
*
|
|
59786
|
-
* Features like tags, memory snapshots, GPUs, custom domains
|
|
59787
|
-
*
|
|
59788
|
-
* proxies, and readiness probes are not supported.
|
|
61958
|
+
* Features like tags, memory snapshots, GPUs, and custom domains are not
|
|
61959
|
+
* supported.
|
|
59789
61960
|
*
|
|
59790
61961
|
* V2 sandboxes created with this method are not currently returned by
|
|
59791
61962
|
* {@link SandboxService#list client.sandboxes.list()} and cannot be looked up
|
|
@@ -60026,6 +62197,27 @@ function buildTaskExecStartRequestProto(taskId, execId, command, params, contain
|
|
|
60026
62197
|
containerId: containerId ?? ""
|
|
60027
62198
|
});
|
|
60028
62199
|
}
|
|
62200
|
+
function buildTaskMountDirectoryRequestProto(taskId, path2, imageId, params) {
|
|
62201
|
+
return TaskMountDirectoryRequest.create({
|
|
62202
|
+
taskId,
|
|
62203
|
+
path: new TextEncoder().encode(path2),
|
|
62204
|
+
imageId,
|
|
62205
|
+
customerSuppliedEncryptionKey: validateExperimentalEncryptionKey(
|
|
62206
|
+
params?.experimentalEncryptionKey
|
|
62207
|
+
)
|
|
62208
|
+
});
|
|
62209
|
+
}
|
|
62210
|
+
function buildTaskSnapshotDirectoryRequestProto(taskId, path2, snapshotId, ttlSeconds, params) {
|
|
62211
|
+
return TaskSnapshotDirectoryRequest.create({
|
|
62212
|
+
taskId,
|
|
62213
|
+
path: new TextEncoder().encode(path2),
|
|
62214
|
+
snapshotId,
|
|
62215
|
+
ttlSeconds,
|
|
62216
|
+
customerSuppliedEncryptionKey: validateExperimentalEncryptionKey(
|
|
62217
|
+
params?.experimentalEncryptionKey
|
|
62218
|
+
)
|
|
62219
|
+
});
|
|
62220
|
+
}
|
|
60029
62221
|
var Sandbox2 = class _Sandbox {
|
|
60030
62222
|
#client;
|
|
60031
62223
|
sandboxId;
|
|
@@ -60317,9 +62509,16 @@ var Sandbox2 = class _Sandbox {
|
|
|
60317
62509
|
async createConnectToken(params) {
|
|
60318
62510
|
this.#ensureAttached();
|
|
60319
62511
|
this.#ensureV1("createConnectToken");
|
|
62512
|
+
const port = params?.port ?? 8080;
|
|
62513
|
+
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
62514
|
+
throw new InvalidError(
|
|
62515
|
+
`createConnectToken() expects \`port\` in [1, 65535], got ${port}`
|
|
62516
|
+
);
|
|
62517
|
+
}
|
|
60320
62518
|
const resp = await this.#client.cpClient.sandboxCreateConnectToken({
|
|
60321
62519
|
sandboxId: this.sandboxId,
|
|
60322
|
-
userMetadata: params?.userMetadata
|
|
62520
|
+
userMetadata: params?.userMetadata,
|
|
62521
|
+
port
|
|
60323
62522
|
});
|
|
60324
62523
|
return { url: resp.url, token: resp.token };
|
|
60325
62524
|
}
|
|
@@ -60374,35 +62573,11 @@ var Sandbox2 = class _Sandbox {
|
|
|
60374
62573
|
*/
|
|
60375
62574
|
async waitUntilReady(timeoutMs = 3e5) {
|
|
60376
62575
|
this.#ensureAttached();
|
|
60377
|
-
this.#ensureV1("waitUntilReady");
|
|
60378
62576
|
if (timeoutMs <= 0) {
|
|
60379
62577
|
throw new InvalidError(`timeoutMs must be positive, got ${timeoutMs}`);
|
|
60380
62578
|
}
|
|
60381
|
-
const
|
|
60382
|
-
|
|
60383
|
-
const remainingMs = deadline - Date.now();
|
|
60384
|
-
if (remainingMs <= 0) {
|
|
60385
|
-
throw new TimeoutError("Sandbox operation timed out");
|
|
60386
|
-
}
|
|
60387
|
-
const requestTimeoutMs = Math.min(
|
|
60388
|
-
remainingMs,
|
|
60389
|
-
5e4
|
|
60390
|
-
// Max request timeout for each gRPC call
|
|
60391
|
-
);
|
|
60392
|
-
try {
|
|
60393
|
-
const resp = await this.#client.cpClient.sandboxWaitUntilReady({
|
|
60394
|
-
sandboxId: this.sandboxId,
|
|
60395
|
-
timeout: requestTimeoutMs / 1e3
|
|
60396
|
-
});
|
|
60397
|
-
if (resp.readyAt > 0) {
|
|
60398
|
-
return;
|
|
60399
|
-
}
|
|
60400
|
-
} catch (err) {
|
|
60401
|
-
if (err instanceof import_nice_grpc15.ClientError && err.code === import_nice_grpc15.Status.DEADLINE_EXCEEDED)
|
|
60402
|
-
continue;
|
|
60403
|
-
throw err;
|
|
60404
|
-
}
|
|
60405
|
-
}
|
|
62579
|
+
const [taskId, commandRouterClient] = await this.#getCommandRouter();
|
|
62580
|
+
await commandRouterClient.sandboxWaitUntilReady(taskId, timeoutMs);
|
|
60406
62581
|
}
|
|
60407
62582
|
/** Get {@link Tunnel} metadata for the Sandbox.
|
|
60408
62583
|
*
|
|
@@ -60465,8 +62640,9 @@ var Sandbox2 = class _Sandbox {
|
|
|
60465
62640
|
*
|
|
60466
62641
|
* @param path - The path where the directory should be mounted
|
|
60467
62642
|
* @param image - Optional {@link Image} to mount. If undefined, mounts an empty directory.
|
|
62643
|
+
* @param params - Optional parameters; see {@link SandboxMountImageParams}.
|
|
60468
62644
|
*/
|
|
60469
|
-
async mountImage(path2, image) {
|
|
62645
|
+
async mountImage(path2, image, params) {
|
|
60470
62646
|
this.#ensureAttached();
|
|
60471
62647
|
const [taskId, commandRouterClient] = await this.#getCommandRouter();
|
|
60472
62648
|
if (image && !image.imageId) {
|
|
@@ -60474,13 +62650,13 @@ var Sandbox2 = class _Sandbox {
|
|
|
60474
62650
|
"Image must be built before mounting. Call `image.build(app)` first."
|
|
60475
62651
|
);
|
|
60476
62652
|
}
|
|
60477
|
-
const pathBytes = new TextEncoder().encode(path2);
|
|
60478
62653
|
const imageId = image?.imageId ?? "";
|
|
60479
|
-
const request =
|
|
62654
|
+
const request = buildTaskMountDirectoryRequestProto(
|
|
60480
62655
|
taskId,
|
|
60481
|
-
|
|
60482
|
-
imageId
|
|
60483
|
-
|
|
62656
|
+
path2,
|
|
62657
|
+
imageId,
|
|
62658
|
+
params
|
|
62659
|
+
);
|
|
60484
62660
|
await commandRouterClient.mountDirectory(request);
|
|
60485
62661
|
}
|
|
60486
62662
|
/**
|
|
@@ -60518,13 +62694,13 @@ var Sandbox2 = class _Sandbox {
|
|
|
60518
62694
|
const wireTtlSeconds = resolveTtlSeconds(params?.ttlMs);
|
|
60519
62695
|
const timeoutMs = params?.timeoutMs || 55e3;
|
|
60520
62696
|
const [taskId, commandRouterClient] = await this.#getCommandRouter();
|
|
60521
|
-
const
|
|
60522
|
-
const request = TaskSnapshotDirectoryRequest.create({
|
|
62697
|
+
const request = buildTaskSnapshotDirectoryRequestProto(
|
|
60523
62698
|
taskId,
|
|
60524
|
-
|
|
60525
|
-
|
|
60526
|
-
|
|
60527
|
-
|
|
62699
|
+
path2,
|
|
62700
|
+
(0, import_uuid2.v4)(),
|
|
62701
|
+
wireTtlSeconds,
|
|
62702
|
+
params
|
|
62703
|
+
);
|
|
60528
62704
|
const response = await commandRouterClient.snapshotDirectory(request, {
|
|
60529
62705
|
timeoutMs
|
|
60530
62706
|
});
|