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.js
CHANGED
|
@@ -1877,6 +1877,36 @@ function endpointInputModalityToJSON(object) {
|
|
|
1877
1877
|
return "UNRECOGNIZED";
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
|
+
function endpointLifecycleStatusFromJSON(object) {
|
|
1881
|
+
switch (object) {
|
|
1882
|
+
case 0:
|
|
1883
|
+
case "ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED":
|
|
1884
|
+
return 0 /* ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED */;
|
|
1885
|
+
case 1:
|
|
1886
|
+
case "ENDPOINT_LIFECYCLE_STATUS_ACTIVE":
|
|
1887
|
+
return 1 /* ENDPOINT_LIFECYCLE_STATUS_ACTIVE */;
|
|
1888
|
+
case 2:
|
|
1889
|
+
case "ENDPOINT_LIFECYCLE_STATUS_STOPPED":
|
|
1890
|
+
return 2 /* ENDPOINT_LIFECYCLE_STATUS_STOPPED */;
|
|
1891
|
+
case -1:
|
|
1892
|
+
case "UNRECOGNIZED":
|
|
1893
|
+
default:
|
|
1894
|
+
return -1 /* UNRECOGNIZED */;
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
function endpointLifecycleStatusToJSON(object) {
|
|
1898
|
+
switch (object) {
|
|
1899
|
+
case 0 /* ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED */:
|
|
1900
|
+
return "ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED";
|
|
1901
|
+
case 1 /* ENDPOINT_LIFECYCLE_STATUS_ACTIVE */:
|
|
1902
|
+
return "ENDPOINT_LIFECYCLE_STATUS_ACTIVE";
|
|
1903
|
+
case 2 /* ENDPOINT_LIFECYCLE_STATUS_STOPPED */:
|
|
1904
|
+
return "ENDPOINT_LIFECYCLE_STATUS_STOPPED";
|
|
1905
|
+
case -1 /* UNRECOGNIZED */:
|
|
1906
|
+
default:
|
|
1907
|
+
return "UNRECOGNIZED";
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1880
1910
|
function endpointProvisioningStatusFromJSON(object) {
|
|
1881
1911
|
switch (object) {
|
|
1882
1912
|
case 0:
|
|
@@ -1894,6 +1924,12 @@ function endpointProvisioningStatusFromJSON(object) {
|
|
|
1894
1924
|
case 4:
|
|
1895
1925
|
case "ENDPOINT_PROVISIONING_STATUS_FAILED":
|
|
1896
1926
|
return 4 /* ENDPOINT_PROVISIONING_STATUS_FAILED */;
|
|
1927
|
+
case 5:
|
|
1928
|
+
case "ENDPOINT_PROVISIONING_STATUS_CANCELLING":
|
|
1929
|
+
return 5 /* ENDPOINT_PROVISIONING_STATUS_CANCELLING */;
|
|
1930
|
+
case 6:
|
|
1931
|
+
case "ENDPOINT_PROVISIONING_STATUS_CANCELLED":
|
|
1932
|
+
return 6 /* ENDPOINT_PROVISIONING_STATUS_CANCELLED */;
|
|
1897
1933
|
case -1:
|
|
1898
1934
|
case "UNRECOGNIZED":
|
|
1899
1935
|
default:
|
|
@@ -1912,6 +1948,10 @@ function endpointProvisioningStatusToJSON(object) {
|
|
|
1912
1948
|
return "ENDPOINT_PROVISIONING_STATUS_SUCCEEDED";
|
|
1913
1949
|
case 4 /* ENDPOINT_PROVISIONING_STATUS_FAILED */:
|
|
1914
1950
|
return "ENDPOINT_PROVISIONING_STATUS_FAILED";
|
|
1951
|
+
case 5 /* ENDPOINT_PROVISIONING_STATUS_CANCELLING */:
|
|
1952
|
+
return "ENDPOINT_PROVISIONING_STATUS_CANCELLING";
|
|
1953
|
+
case 6 /* ENDPOINT_PROVISIONING_STATUS_CANCELLED */:
|
|
1954
|
+
return "ENDPOINT_PROVISIONING_STATUS_CANCELLED";
|
|
1915
1955
|
case -1 /* UNRECOGNIZED */:
|
|
1916
1956
|
default:
|
|
1917
1957
|
return "UNRECOGNIZED";
|
|
@@ -7374,6 +7414,89 @@ var AppRollbackRequest = {
|
|
|
7374
7414
|
return message;
|
|
7375
7415
|
}
|
|
7376
7416
|
};
|
|
7417
|
+
function createBaseAppRollbackResponse() {
|
|
7418
|
+
return { url: "", serverWarnings: [], deployedAt: 0 };
|
|
7419
|
+
}
|
|
7420
|
+
var AppRollbackResponse = {
|
|
7421
|
+
encode(message, writer = new BinaryWriter()) {
|
|
7422
|
+
if (message.url !== "") {
|
|
7423
|
+
writer.uint32(10).string(message.url);
|
|
7424
|
+
}
|
|
7425
|
+
for (const v of message.serverWarnings) {
|
|
7426
|
+
Warning.encode(v, writer.uint32(26).fork()).join();
|
|
7427
|
+
}
|
|
7428
|
+
if (message.deployedAt !== 0) {
|
|
7429
|
+
writer.uint32(33).double(message.deployedAt);
|
|
7430
|
+
}
|
|
7431
|
+
return writer;
|
|
7432
|
+
},
|
|
7433
|
+
decode(input, length) {
|
|
7434
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7435
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7436
|
+
const message = createBaseAppRollbackResponse();
|
|
7437
|
+
while (reader.pos < end) {
|
|
7438
|
+
const tag = reader.uint32();
|
|
7439
|
+
switch (tag >>> 3) {
|
|
7440
|
+
case 1: {
|
|
7441
|
+
if (tag !== 10) {
|
|
7442
|
+
break;
|
|
7443
|
+
}
|
|
7444
|
+
message.url = reader.string();
|
|
7445
|
+
continue;
|
|
7446
|
+
}
|
|
7447
|
+
case 3: {
|
|
7448
|
+
if (tag !== 26) {
|
|
7449
|
+
break;
|
|
7450
|
+
}
|
|
7451
|
+
message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
|
|
7452
|
+
continue;
|
|
7453
|
+
}
|
|
7454
|
+
case 4: {
|
|
7455
|
+
if (tag !== 33) {
|
|
7456
|
+
break;
|
|
7457
|
+
}
|
|
7458
|
+
message.deployedAt = reader.double();
|
|
7459
|
+
continue;
|
|
7460
|
+
}
|
|
7461
|
+
}
|
|
7462
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7463
|
+
break;
|
|
7464
|
+
}
|
|
7465
|
+
reader.skip(tag & 7);
|
|
7466
|
+
}
|
|
7467
|
+
return message;
|
|
7468
|
+
},
|
|
7469
|
+
fromJSON(object) {
|
|
7470
|
+
return {
|
|
7471
|
+
url: isSet5(object.url) ? globalThis.String(object.url) : "",
|
|
7472
|
+
serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
|
|
7473
|
+
deployedAt: isSet5(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
|
|
7474
|
+
};
|
|
7475
|
+
},
|
|
7476
|
+
toJSON(message) {
|
|
7477
|
+
const obj = {};
|
|
7478
|
+
if (message.url !== "") {
|
|
7479
|
+
obj.url = message.url;
|
|
7480
|
+
}
|
|
7481
|
+
if (message.serverWarnings?.length) {
|
|
7482
|
+
obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
|
|
7483
|
+
}
|
|
7484
|
+
if (message.deployedAt !== 0) {
|
|
7485
|
+
obj.deployedAt = message.deployedAt;
|
|
7486
|
+
}
|
|
7487
|
+
return obj;
|
|
7488
|
+
},
|
|
7489
|
+
create(base) {
|
|
7490
|
+
return AppRollbackResponse.fromPartial(base ?? {});
|
|
7491
|
+
},
|
|
7492
|
+
fromPartial(object) {
|
|
7493
|
+
const message = createBaseAppRollbackResponse();
|
|
7494
|
+
message.url = object.url ?? "";
|
|
7495
|
+
message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
|
|
7496
|
+
message.deployedAt = object.deployedAt ?? 0;
|
|
7497
|
+
return message;
|
|
7498
|
+
}
|
|
7499
|
+
};
|
|
7377
7500
|
function createBaseAppRolloverRequest() {
|
|
7378
7501
|
return { appId: "" };
|
|
7379
7502
|
}
|
|
@@ -13433,6 +13556,108 @@ var CreationInfo = {
|
|
|
13433
13556
|
return message;
|
|
13434
13557
|
}
|
|
13435
13558
|
};
|
|
13559
|
+
function createBaseCurlAuthTokenRequest() {
|
|
13560
|
+
return { url: "" };
|
|
13561
|
+
}
|
|
13562
|
+
var CurlAuthTokenRequest = {
|
|
13563
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13564
|
+
if (message.url !== "") {
|
|
13565
|
+
writer.uint32(10).string(message.url);
|
|
13566
|
+
}
|
|
13567
|
+
return writer;
|
|
13568
|
+
},
|
|
13569
|
+
decode(input, length) {
|
|
13570
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13571
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13572
|
+
const message = createBaseCurlAuthTokenRequest();
|
|
13573
|
+
while (reader.pos < end) {
|
|
13574
|
+
const tag = reader.uint32();
|
|
13575
|
+
switch (tag >>> 3) {
|
|
13576
|
+
case 1: {
|
|
13577
|
+
if (tag !== 10) {
|
|
13578
|
+
break;
|
|
13579
|
+
}
|
|
13580
|
+
message.url = reader.string();
|
|
13581
|
+
continue;
|
|
13582
|
+
}
|
|
13583
|
+
}
|
|
13584
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13585
|
+
break;
|
|
13586
|
+
}
|
|
13587
|
+
reader.skip(tag & 7);
|
|
13588
|
+
}
|
|
13589
|
+
return message;
|
|
13590
|
+
},
|
|
13591
|
+
fromJSON(object) {
|
|
13592
|
+
return { url: isSet5(object.url) ? globalThis.String(object.url) : "" };
|
|
13593
|
+
},
|
|
13594
|
+
toJSON(message) {
|
|
13595
|
+
const obj = {};
|
|
13596
|
+
if (message.url !== "") {
|
|
13597
|
+
obj.url = message.url;
|
|
13598
|
+
}
|
|
13599
|
+
return obj;
|
|
13600
|
+
},
|
|
13601
|
+
create(base) {
|
|
13602
|
+
return CurlAuthTokenRequest.fromPartial(base ?? {});
|
|
13603
|
+
},
|
|
13604
|
+
fromPartial(object) {
|
|
13605
|
+
const message = createBaseCurlAuthTokenRequest();
|
|
13606
|
+
message.url = object.url ?? "";
|
|
13607
|
+
return message;
|
|
13608
|
+
}
|
|
13609
|
+
};
|
|
13610
|
+
function createBaseCurlAuthTokenResponse() {
|
|
13611
|
+
return { token: "" };
|
|
13612
|
+
}
|
|
13613
|
+
var CurlAuthTokenResponse = {
|
|
13614
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13615
|
+
if (message.token !== "") {
|
|
13616
|
+
writer.uint32(10).string(message.token);
|
|
13617
|
+
}
|
|
13618
|
+
return writer;
|
|
13619
|
+
},
|
|
13620
|
+
decode(input, length) {
|
|
13621
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13622
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13623
|
+
const message = createBaseCurlAuthTokenResponse();
|
|
13624
|
+
while (reader.pos < end) {
|
|
13625
|
+
const tag = reader.uint32();
|
|
13626
|
+
switch (tag >>> 3) {
|
|
13627
|
+
case 1: {
|
|
13628
|
+
if (tag !== 10) {
|
|
13629
|
+
break;
|
|
13630
|
+
}
|
|
13631
|
+
message.token = reader.string();
|
|
13632
|
+
continue;
|
|
13633
|
+
}
|
|
13634
|
+
}
|
|
13635
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13636
|
+
break;
|
|
13637
|
+
}
|
|
13638
|
+
reader.skip(tag & 7);
|
|
13639
|
+
}
|
|
13640
|
+
return message;
|
|
13641
|
+
},
|
|
13642
|
+
fromJSON(object) {
|
|
13643
|
+
return { token: isSet5(object.token) ? globalThis.String(object.token) : "" };
|
|
13644
|
+
},
|
|
13645
|
+
toJSON(message) {
|
|
13646
|
+
const obj = {};
|
|
13647
|
+
if (message.token !== "") {
|
|
13648
|
+
obj.token = message.token;
|
|
13649
|
+
}
|
|
13650
|
+
return obj;
|
|
13651
|
+
},
|
|
13652
|
+
create(base) {
|
|
13653
|
+
return CurlAuthTokenResponse.fromPartial(base ?? {});
|
|
13654
|
+
},
|
|
13655
|
+
fromPartial(object) {
|
|
13656
|
+
const message = createBaseCurlAuthTokenResponse();
|
|
13657
|
+
message.token = object.token ?? "";
|
|
13658
|
+
return message;
|
|
13659
|
+
}
|
|
13660
|
+
};
|
|
13436
13661
|
function createBaseCustomDomainConfig() {
|
|
13437
13662
|
return { name: "" };
|
|
13438
13663
|
}
|
|
@@ -15803,7 +16028,8 @@ function createBaseEndpointCreateRequest() {
|
|
|
15803
16028
|
model: void 0,
|
|
15804
16029
|
apiSurfaces: [],
|
|
15805
16030
|
inputModalities: [],
|
|
15806
|
-
environmentName: ""
|
|
16031
|
+
environmentName: "",
|
|
16032
|
+
unauthenticated: false
|
|
15807
16033
|
};
|
|
15808
16034
|
}
|
|
15809
16035
|
var EndpointCreateRequest = {
|
|
@@ -15836,6 +16062,9 @@ var EndpointCreateRequest = {
|
|
|
15836
16062
|
if (message.environmentName !== "") {
|
|
15837
16063
|
writer.uint32(66).string(message.environmentName);
|
|
15838
16064
|
}
|
|
16065
|
+
if (message.unauthenticated !== false) {
|
|
16066
|
+
writer.uint32(72).bool(message.unauthenticated);
|
|
16067
|
+
}
|
|
15839
16068
|
return writer;
|
|
15840
16069
|
},
|
|
15841
16070
|
decode(input, length) {
|
|
@@ -15915,6 +16144,13 @@ var EndpointCreateRequest = {
|
|
|
15915
16144
|
message.environmentName = reader.string();
|
|
15916
16145
|
continue;
|
|
15917
16146
|
}
|
|
16147
|
+
case 9: {
|
|
16148
|
+
if (tag !== 72) {
|
|
16149
|
+
break;
|
|
16150
|
+
}
|
|
16151
|
+
message.unauthenticated = reader.bool();
|
|
16152
|
+
continue;
|
|
16153
|
+
}
|
|
15918
16154
|
}
|
|
15919
16155
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15920
16156
|
break;
|
|
@@ -15932,7 +16168,8 @@ var EndpointCreateRequest = {
|
|
|
15932
16168
|
model: isSet5(object.model) ? EndpointModelSource.fromJSON(object.model) : void 0,
|
|
15933
16169
|
apiSurfaces: globalThis.Array.isArray(object?.apiSurfaces) ? object.apiSurfaces.map((e) => endpointApiSurfaceFromJSON(e)) : [],
|
|
15934
16170
|
inputModalities: globalThis.Array.isArray(object?.inputModalities) ? object.inputModalities.map((e) => endpointInputModalityFromJSON(e)) : [],
|
|
15935
|
-
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
16171
|
+
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
16172
|
+
unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false
|
|
15936
16173
|
};
|
|
15937
16174
|
},
|
|
15938
16175
|
toJSON(message) {
|
|
@@ -15961,6 +16198,9 @@ var EndpointCreateRequest = {
|
|
|
15961
16198
|
if (message.environmentName !== "") {
|
|
15962
16199
|
obj.environmentName = message.environmentName;
|
|
15963
16200
|
}
|
|
16201
|
+
if (message.unauthenticated !== false) {
|
|
16202
|
+
obj.unauthenticated = message.unauthenticated;
|
|
16203
|
+
}
|
|
15964
16204
|
return obj;
|
|
15965
16205
|
},
|
|
15966
16206
|
create(base) {
|
|
@@ -15976,11 +16216,12 @@ var EndpointCreateRequest = {
|
|
|
15976
16216
|
message.apiSurfaces = object.apiSurfaces?.map((e) => e) || [];
|
|
15977
16217
|
message.inputModalities = object.inputModalities?.map((e) => e) || [];
|
|
15978
16218
|
message.environmentName = object.environmentName ?? "";
|
|
16219
|
+
message.unauthenticated = object.unauthenticated ?? false;
|
|
15979
16220
|
return message;
|
|
15980
16221
|
}
|
|
15981
16222
|
};
|
|
15982
16223
|
function createBaseEndpointCreateResponse() {
|
|
15983
|
-
return { endpointId: "", endpointPageUrl: "" };
|
|
16224
|
+
return { endpointId: "", endpointPageUrl: "", name: "" };
|
|
15984
16225
|
}
|
|
15985
16226
|
var EndpointCreateResponse = {
|
|
15986
16227
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -15990,6 +16231,9 @@ var EndpointCreateResponse = {
|
|
|
15990
16231
|
if (message.endpointPageUrl !== "") {
|
|
15991
16232
|
writer.uint32(18).string(message.endpointPageUrl);
|
|
15992
16233
|
}
|
|
16234
|
+
if (message.name !== "") {
|
|
16235
|
+
writer.uint32(26).string(message.name);
|
|
16236
|
+
}
|
|
15993
16237
|
return writer;
|
|
15994
16238
|
},
|
|
15995
16239
|
decode(input, length) {
|
|
@@ -16013,6 +16257,13 @@ var EndpointCreateResponse = {
|
|
|
16013
16257
|
message.endpointPageUrl = reader.string();
|
|
16014
16258
|
continue;
|
|
16015
16259
|
}
|
|
16260
|
+
case 3: {
|
|
16261
|
+
if (tag !== 26) {
|
|
16262
|
+
break;
|
|
16263
|
+
}
|
|
16264
|
+
message.name = reader.string();
|
|
16265
|
+
continue;
|
|
16266
|
+
}
|
|
16016
16267
|
}
|
|
16017
16268
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16018
16269
|
break;
|
|
@@ -16024,7 +16275,8 @@ var EndpointCreateResponse = {
|
|
|
16024
16275
|
fromJSON(object) {
|
|
16025
16276
|
return {
|
|
16026
16277
|
endpointId: isSet5(object.endpointId) ? globalThis.String(object.endpointId) : "",
|
|
16027
|
-
endpointPageUrl: isSet5(object.endpointPageUrl) ? globalThis.String(object.endpointPageUrl) : ""
|
|
16278
|
+
endpointPageUrl: isSet5(object.endpointPageUrl) ? globalThis.String(object.endpointPageUrl) : "",
|
|
16279
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : ""
|
|
16028
16280
|
};
|
|
16029
16281
|
},
|
|
16030
16282
|
toJSON(message) {
|
|
@@ -16035,6 +16287,9 @@ var EndpointCreateResponse = {
|
|
|
16035
16287
|
if (message.endpointPageUrl !== "") {
|
|
16036
16288
|
obj.endpointPageUrl = message.endpointPageUrl;
|
|
16037
16289
|
}
|
|
16290
|
+
if (message.name !== "") {
|
|
16291
|
+
obj.name = message.name;
|
|
16292
|
+
}
|
|
16038
16293
|
return obj;
|
|
16039
16294
|
},
|
|
16040
16295
|
create(base) {
|
|
@@ -16044,6 +16299,7 @@ var EndpointCreateResponse = {
|
|
|
16044
16299
|
const message = createBaseEndpointCreateResponse();
|
|
16045
16300
|
message.endpointId = object.endpointId ?? "";
|
|
16046
16301
|
message.endpointPageUrl = object.endpointPageUrl ?? "";
|
|
16302
|
+
message.name = object.name ?? "";
|
|
16047
16303
|
return message;
|
|
16048
16304
|
}
|
|
16049
16305
|
};
|
|
@@ -16130,6 +16386,244 @@ var EndpointCustomModelSource = {
|
|
|
16130
16386
|
return message;
|
|
16131
16387
|
}
|
|
16132
16388
|
};
|
|
16389
|
+
function createBaseEndpointGetByNameRequest() {
|
|
16390
|
+
return { name: "", environmentName: "" };
|
|
16391
|
+
}
|
|
16392
|
+
var EndpointGetByNameRequest = {
|
|
16393
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16394
|
+
if (message.name !== "") {
|
|
16395
|
+
writer.uint32(10).string(message.name);
|
|
16396
|
+
}
|
|
16397
|
+
if (message.environmentName !== "") {
|
|
16398
|
+
writer.uint32(18).string(message.environmentName);
|
|
16399
|
+
}
|
|
16400
|
+
return writer;
|
|
16401
|
+
},
|
|
16402
|
+
decode(input, length) {
|
|
16403
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16404
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16405
|
+
const message = createBaseEndpointGetByNameRequest();
|
|
16406
|
+
while (reader.pos < end) {
|
|
16407
|
+
const tag = reader.uint32();
|
|
16408
|
+
switch (tag >>> 3) {
|
|
16409
|
+
case 1: {
|
|
16410
|
+
if (tag !== 10) {
|
|
16411
|
+
break;
|
|
16412
|
+
}
|
|
16413
|
+
message.name = reader.string();
|
|
16414
|
+
continue;
|
|
16415
|
+
}
|
|
16416
|
+
case 2: {
|
|
16417
|
+
if (tag !== 18) {
|
|
16418
|
+
break;
|
|
16419
|
+
}
|
|
16420
|
+
message.environmentName = reader.string();
|
|
16421
|
+
continue;
|
|
16422
|
+
}
|
|
16423
|
+
}
|
|
16424
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16425
|
+
break;
|
|
16426
|
+
}
|
|
16427
|
+
reader.skip(tag & 7);
|
|
16428
|
+
}
|
|
16429
|
+
return message;
|
|
16430
|
+
},
|
|
16431
|
+
fromJSON(object) {
|
|
16432
|
+
return {
|
|
16433
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : "",
|
|
16434
|
+
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
16435
|
+
};
|
|
16436
|
+
},
|
|
16437
|
+
toJSON(message) {
|
|
16438
|
+
const obj = {};
|
|
16439
|
+
if (message.name !== "") {
|
|
16440
|
+
obj.name = message.name;
|
|
16441
|
+
}
|
|
16442
|
+
if (message.environmentName !== "") {
|
|
16443
|
+
obj.environmentName = message.environmentName;
|
|
16444
|
+
}
|
|
16445
|
+
return obj;
|
|
16446
|
+
},
|
|
16447
|
+
create(base) {
|
|
16448
|
+
return EndpointGetByNameRequest.fromPartial(base ?? {});
|
|
16449
|
+
},
|
|
16450
|
+
fromPartial(object) {
|
|
16451
|
+
const message = createBaseEndpointGetByNameRequest();
|
|
16452
|
+
message.name = object.name ?? "";
|
|
16453
|
+
message.environmentName = object.environmentName ?? "";
|
|
16454
|
+
return message;
|
|
16455
|
+
}
|
|
16456
|
+
};
|
|
16457
|
+
function createBaseEndpointGetByNameResponse() {
|
|
16458
|
+
return { endpointId: "", environmentName: "" };
|
|
16459
|
+
}
|
|
16460
|
+
var EndpointGetByNameResponse = {
|
|
16461
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16462
|
+
if (message.endpointId !== "") {
|
|
16463
|
+
writer.uint32(10).string(message.endpointId);
|
|
16464
|
+
}
|
|
16465
|
+
if (message.environmentName !== "") {
|
|
16466
|
+
writer.uint32(18).string(message.environmentName);
|
|
16467
|
+
}
|
|
16468
|
+
return writer;
|
|
16469
|
+
},
|
|
16470
|
+
decode(input, length) {
|
|
16471
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16472
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16473
|
+
const message = createBaseEndpointGetByNameResponse();
|
|
16474
|
+
while (reader.pos < end) {
|
|
16475
|
+
const tag = reader.uint32();
|
|
16476
|
+
switch (tag >>> 3) {
|
|
16477
|
+
case 1: {
|
|
16478
|
+
if (tag !== 10) {
|
|
16479
|
+
break;
|
|
16480
|
+
}
|
|
16481
|
+
message.endpointId = reader.string();
|
|
16482
|
+
continue;
|
|
16483
|
+
}
|
|
16484
|
+
case 2: {
|
|
16485
|
+
if (tag !== 18) {
|
|
16486
|
+
break;
|
|
16487
|
+
}
|
|
16488
|
+
message.environmentName = reader.string();
|
|
16489
|
+
continue;
|
|
16490
|
+
}
|
|
16491
|
+
}
|
|
16492
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16493
|
+
break;
|
|
16494
|
+
}
|
|
16495
|
+
reader.skip(tag & 7);
|
|
16496
|
+
}
|
|
16497
|
+
return message;
|
|
16498
|
+
},
|
|
16499
|
+
fromJSON(object) {
|
|
16500
|
+
return {
|
|
16501
|
+
endpointId: isSet5(object.endpointId) ? globalThis.String(object.endpointId) : "",
|
|
16502
|
+
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
16503
|
+
};
|
|
16504
|
+
},
|
|
16505
|
+
toJSON(message) {
|
|
16506
|
+
const obj = {};
|
|
16507
|
+
if (message.endpointId !== "") {
|
|
16508
|
+
obj.endpointId = message.endpointId;
|
|
16509
|
+
}
|
|
16510
|
+
if (message.environmentName !== "") {
|
|
16511
|
+
obj.environmentName = message.environmentName;
|
|
16512
|
+
}
|
|
16513
|
+
return obj;
|
|
16514
|
+
},
|
|
16515
|
+
create(base) {
|
|
16516
|
+
return EndpointGetByNameResponse.fromPartial(base ?? {});
|
|
16517
|
+
},
|
|
16518
|
+
fromPartial(object) {
|
|
16519
|
+
const message = createBaseEndpointGetByNameResponse();
|
|
16520
|
+
message.endpointId = object.endpointId ?? "";
|
|
16521
|
+
message.environmentName = object.environmentName ?? "";
|
|
16522
|
+
return message;
|
|
16523
|
+
}
|
|
16524
|
+
};
|
|
16525
|
+
function createBaseEndpointGetLifecycleRequest() {
|
|
16526
|
+
return { endpointId: "" };
|
|
16527
|
+
}
|
|
16528
|
+
var EndpointGetLifecycleRequest = {
|
|
16529
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16530
|
+
if (message.endpointId !== "") {
|
|
16531
|
+
writer.uint32(10).string(message.endpointId);
|
|
16532
|
+
}
|
|
16533
|
+
return writer;
|
|
16534
|
+
},
|
|
16535
|
+
decode(input, length) {
|
|
16536
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16537
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16538
|
+
const message = createBaseEndpointGetLifecycleRequest();
|
|
16539
|
+
while (reader.pos < end) {
|
|
16540
|
+
const tag = reader.uint32();
|
|
16541
|
+
switch (tag >>> 3) {
|
|
16542
|
+
case 1: {
|
|
16543
|
+
if (tag !== 10) {
|
|
16544
|
+
break;
|
|
16545
|
+
}
|
|
16546
|
+
message.endpointId = reader.string();
|
|
16547
|
+
continue;
|
|
16548
|
+
}
|
|
16549
|
+
}
|
|
16550
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16551
|
+
break;
|
|
16552
|
+
}
|
|
16553
|
+
reader.skip(tag & 7);
|
|
16554
|
+
}
|
|
16555
|
+
return message;
|
|
16556
|
+
},
|
|
16557
|
+
fromJSON(object) {
|
|
16558
|
+
return { endpointId: isSet5(object.endpointId) ? globalThis.String(object.endpointId) : "" };
|
|
16559
|
+
},
|
|
16560
|
+
toJSON(message) {
|
|
16561
|
+
const obj = {};
|
|
16562
|
+
if (message.endpointId !== "") {
|
|
16563
|
+
obj.endpointId = message.endpointId;
|
|
16564
|
+
}
|
|
16565
|
+
return obj;
|
|
16566
|
+
},
|
|
16567
|
+
create(base) {
|
|
16568
|
+
return EndpointGetLifecycleRequest.fromPartial(base ?? {});
|
|
16569
|
+
},
|
|
16570
|
+
fromPartial(object) {
|
|
16571
|
+
const message = createBaseEndpointGetLifecycleRequest();
|
|
16572
|
+
message.endpointId = object.endpointId ?? "";
|
|
16573
|
+
return message;
|
|
16574
|
+
}
|
|
16575
|
+
};
|
|
16576
|
+
function createBaseEndpointGetLifecycleResponse() {
|
|
16577
|
+
return { lifecycle: void 0 };
|
|
16578
|
+
}
|
|
16579
|
+
var EndpointGetLifecycleResponse = {
|
|
16580
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16581
|
+
if (message.lifecycle !== void 0) {
|
|
16582
|
+
EndpointLifecycle.encode(message.lifecycle, writer.uint32(10).fork()).join();
|
|
16583
|
+
}
|
|
16584
|
+
return writer;
|
|
16585
|
+
},
|
|
16586
|
+
decode(input, length) {
|
|
16587
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16588
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16589
|
+
const message = createBaseEndpointGetLifecycleResponse();
|
|
16590
|
+
while (reader.pos < end) {
|
|
16591
|
+
const tag = reader.uint32();
|
|
16592
|
+
switch (tag >>> 3) {
|
|
16593
|
+
case 1: {
|
|
16594
|
+
if (tag !== 10) {
|
|
16595
|
+
break;
|
|
16596
|
+
}
|
|
16597
|
+
message.lifecycle = EndpointLifecycle.decode(reader, reader.uint32());
|
|
16598
|
+
continue;
|
|
16599
|
+
}
|
|
16600
|
+
}
|
|
16601
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16602
|
+
break;
|
|
16603
|
+
}
|
|
16604
|
+
reader.skip(tag & 7);
|
|
16605
|
+
}
|
|
16606
|
+
return message;
|
|
16607
|
+
},
|
|
16608
|
+
fromJSON(object) {
|
|
16609
|
+
return { lifecycle: isSet5(object.lifecycle) ? EndpointLifecycle.fromJSON(object.lifecycle) : void 0 };
|
|
16610
|
+
},
|
|
16611
|
+
toJSON(message) {
|
|
16612
|
+
const obj = {};
|
|
16613
|
+
if (message.lifecycle !== void 0) {
|
|
16614
|
+
obj.lifecycle = EndpointLifecycle.toJSON(message.lifecycle);
|
|
16615
|
+
}
|
|
16616
|
+
return obj;
|
|
16617
|
+
},
|
|
16618
|
+
create(base) {
|
|
16619
|
+
return EndpointGetLifecycleResponse.fromPartial(base ?? {});
|
|
16620
|
+
},
|
|
16621
|
+
fromPartial(object) {
|
|
16622
|
+
const message = createBaseEndpointGetLifecycleResponse();
|
|
16623
|
+
message.lifecycle = object.lifecycle !== void 0 && object.lifecycle !== null ? EndpointLifecycle.fromPartial(object.lifecycle) : void 0;
|
|
16624
|
+
return message;
|
|
16625
|
+
}
|
|
16626
|
+
};
|
|
16133
16627
|
function createBaseEndpointHuggingFaceModelSource() {
|
|
16134
16628
|
return { repoId: "", revision: "", huggingfaceToken: "" };
|
|
16135
16629
|
}
|
|
@@ -16213,6 +16707,134 @@ var EndpointHuggingFaceModelSource = {
|
|
|
16213
16707
|
return message;
|
|
16214
16708
|
}
|
|
16215
16709
|
};
|
|
16710
|
+
function createBaseEndpointLifecycle() {
|
|
16711
|
+
return { status: 0, createdAt: 0, createdBy: "", stoppedAt: 0, stoppedBy: "", environmentName: "" };
|
|
16712
|
+
}
|
|
16713
|
+
var EndpointLifecycle = {
|
|
16714
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16715
|
+
if (message.status !== 0) {
|
|
16716
|
+
writer.uint32(8).int32(message.status);
|
|
16717
|
+
}
|
|
16718
|
+
if (message.createdAt !== 0) {
|
|
16719
|
+
writer.uint32(17).double(message.createdAt);
|
|
16720
|
+
}
|
|
16721
|
+
if (message.createdBy !== "") {
|
|
16722
|
+
writer.uint32(26).string(message.createdBy);
|
|
16723
|
+
}
|
|
16724
|
+
if (message.stoppedAt !== 0) {
|
|
16725
|
+
writer.uint32(33).double(message.stoppedAt);
|
|
16726
|
+
}
|
|
16727
|
+
if (message.stoppedBy !== "") {
|
|
16728
|
+
writer.uint32(42).string(message.stoppedBy);
|
|
16729
|
+
}
|
|
16730
|
+
if (message.environmentName !== "") {
|
|
16731
|
+
writer.uint32(50).string(message.environmentName);
|
|
16732
|
+
}
|
|
16733
|
+
return writer;
|
|
16734
|
+
},
|
|
16735
|
+
decode(input, length) {
|
|
16736
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16737
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
16738
|
+
const message = createBaseEndpointLifecycle();
|
|
16739
|
+
while (reader.pos < end) {
|
|
16740
|
+
const tag = reader.uint32();
|
|
16741
|
+
switch (tag >>> 3) {
|
|
16742
|
+
case 1: {
|
|
16743
|
+
if (tag !== 8) {
|
|
16744
|
+
break;
|
|
16745
|
+
}
|
|
16746
|
+
message.status = reader.int32();
|
|
16747
|
+
continue;
|
|
16748
|
+
}
|
|
16749
|
+
case 2: {
|
|
16750
|
+
if (tag !== 17) {
|
|
16751
|
+
break;
|
|
16752
|
+
}
|
|
16753
|
+
message.createdAt = reader.double();
|
|
16754
|
+
continue;
|
|
16755
|
+
}
|
|
16756
|
+
case 3: {
|
|
16757
|
+
if (tag !== 26) {
|
|
16758
|
+
break;
|
|
16759
|
+
}
|
|
16760
|
+
message.createdBy = reader.string();
|
|
16761
|
+
continue;
|
|
16762
|
+
}
|
|
16763
|
+
case 4: {
|
|
16764
|
+
if (tag !== 33) {
|
|
16765
|
+
break;
|
|
16766
|
+
}
|
|
16767
|
+
message.stoppedAt = reader.double();
|
|
16768
|
+
continue;
|
|
16769
|
+
}
|
|
16770
|
+
case 5: {
|
|
16771
|
+
if (tag !== 42) {
|
|
16772
|
+
break;
|
|
16773
|
+
}
|
|
16774
|
+
message.stoppedBy = reader.string();
|
|
16775
|
+
continue;
|
|
16776
|
+
}
|
|
16777
|
+
case 6: {
|
|
16778
|
+
if (tag !== 50) {
|
|
16779
|
+
break;
|
|
16780
|
+
}
|
|
16781
|
+
message.environmentName = reader.string();
|
|
16782
|
+
continue;
|
|
16783
|
+
}
|
|
16784
|
+
}
|
|
16785
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16786
|
+
break;
|
|
16787
|
+
}
|
|
16788
|
+
reader.skip(tag & 7);
|
|
16789
|
+
}
|
|
16790
|
+
return message;
|
|
16791
|
+
},
|
|
16792
|
+
fromJSON(object) {
|
|
16793
|
+
return {
|
|
16794
|
+
status: isSet5(object.status) ? endpointLifecycleStatusFromJSON(object.status) : 0,
|
|
16795
|
+
createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
16796
|
+
createdBy: isSet5(object.createdBy) ? globalThis.String(object.createdBy) : "",
|
|
16797
|
+
stoppedAt: isSet5(object.stoppedAt) ? globalThis.Number(object.stoppedAt) : 0,
|
|
16798
|
+
stoppedBy: isSet5(object.stoppedBy) ? globalThis.String(object.stoppedBy) : "",
|
|
16799
|
+
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
16800
|
+
};
|
|
16801
|
+
},
|
|
16802
|
+
toJSON(message) {
|
|
16803
|
+
const obj = {};
|
|
16804
|
+
if (message.status !== 0) {
|
|
16805
|
+
obj.status = endpointLifecycleStatusToJSON(message.status);
|
|
16806
|
+
}
|
|
16807
|
+
if (message.createdAt !== 0) {
|
|
16808
|
+
obj.createdAt = message.createdAt;
|
|
16809
|
+
}
|
|
16810
|
+
if (message.createdBy !== "") {
|
|
16811
|
+
obj.createdBy = message.createdBy;
|
|
16812
|
+
}
|
|
16813
|
+
if (message.stoppedAt !== 0) {
|
|
16814
|
+
obj.stoppedAt = message.stoppedAt;
|
|
16815
|
+
}
|
|
16816
|
+
if (message.stoppedBy !== "") {
|
|
16817
|
+
obj.stoppedBy = message.stoppedBy;
|
|
16818
|
+
}
|
|
16819
|
+
if (message.environmentName !== "") {
|
|
16820
|
+
obj.environmentName = message.environmentName;
|
|
16821
|
+
}
|
|
16822
|
+
return obj;
|
|
16823
|
+
},
|
|
16824
|
+
create(base) {
|
|
16825
|
+
return EndpointLifecycle.fromPartial(base ?? {});
|
|
16826
|
+
},
|
|
16827
|
+
fromPartial(object) {
|
|
16828
|
+
const message = createBaseEndpointLifecycle();
|
|
16829
|
+
message.status = object.status ?? 0;
|
|
16830
|
+
message.createdAt = object.createdAt ?? 0;
|
|
16831
|
+
message.createdBy = object.createdBy ?? "";
|
|
16832
|
+
message.stoppedAt = object.stoppedAt ?? 0;
|
|
16833
|
+
message.stoppedBy = object.stoppedBy ?? "";
|
|
16834
|
+
message.environmentName = object.environmentName ?? "";
|
|
16835
|
+
return message;
|
|
16836
|
+
}
|
|
16837
|
+
};
|
|
16216
16838
|
function createBaseEndpointListItem() {
|
|
16217
16839
|
return {
|
|
16218
16840
|
endpointId: "",
|
|
@@ -16224,7 +16846,8 @@ function createBaseEndpointListItem() {
|
|
|
16224
16846
|
appState: 0,
|
|
16225
16847
|
functionId: "",
|
|
16226
16848
|
createdByAvatarUrl: "",
|
|
16227
|
-
provisioningStatus: 0
|
|
16849
|
+
provisioningStatus: 0,
|
|
16850
|
+
status: ""
|
|
16228
16851
|
};
|
|
16229
16852
|
}
|
|
16230
16853
|
var EndpointListItem = {
|
|
@@ -16259,6 +16882,9 @@ var EndpointListItem = {
|
|
|
16259
16882
|
if (message.provisioningStatus !== 0) {
|
|
16260
16883
|
writer.uint32(80).int32(message.provisioningStatus);
|
|
16261
16884
|
}
|
|
16885
|
+
if (message.status !== "") {
|
|
16886
|
+
writer.uint32(90).string(message.status);
|
|
16887
|
+
}
|
|
16262
16888
|
return writer;
|
|
16263
16889
|
},
|
|
16264
16890
|
decode(input, length) {
|
|
@@ -16338,6 +16964,13 @@ var EndpointListItem = {
|
|
|
16338
16964
|
message.provisioningStatus = reader.int32();
|
|
16339
16965
|
continue;
|
|
16340
16966
|
}
|
|
16967
|
+
case 11: {
|
|
16968
|
+
if (tag !== 90) {
|
|
16969
|
+
break;
|
|
16970
|
+
}
|
|
16971
|
+
message.status = reader.string();
|
|
16972
|
+
continue;
|
|
16973
|
+
}
|
|
16341
16974
|
}
|
|
16342
16975
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16343
16976
|
break;
|
|
@@ -16357,7 +16990,8 @@ var EndpointListItem = {
|
|
|
16357
16990
|
appState: isSet5(object.appState) ? appStateFromJSON(object.appState) : 0,
|
|
16358
16991
|
functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
16359
16992
|
createdByAvatarUrl: isSet5(object.createdByAvatarUrl) ? globalThis.String(object.createdByAvatarUrl) : "",
|
|
16360
|
-
provisioningStatus: isSet5(object.provisioningStatus) ? endpointProvisioningStatusFromJSON(object.provisioningStatus) : 0
|
|
16993
|
+
provisioningStatus: isSet5(object.provisioningStatus) ? endpointProvisioningStatusFromJSON(object.provisioningStatus) : 0,
|
|
16994
|
+
status: isSet5(object.status) ? globalThis.String(object.status) : ""
|
|
16361
16995
|
};
|
|
16362
16996
|
},
|
|
16363
16997
|
toJSON(message) {
|
|
@@ -16392,6 +17026,9 @@ var EndpointListItem = {
|
|
|
16392
17026
|
if (message.provisioningStatus !== 0) {
|
|
16393
17027
|
obj.provisioningStatus = endpointProvisioningStatusToJSON(message.provisioningStatus);
|
|
16394
17028
|
}
|
|
17029
|
+
if (message.status !== "") {
|
|
17030
|
+
obj.status = message.status;
|
|
17031
|
+
}
|
|
16395
17032
|
return obj;
|
|
16396
17033
|
},
|
|
16397
17034
|
create(base) {
|
|
@@ -16409,6 +17046,7 @@ var EndpointListItem = {
|
|
|
16409
17046
|
message.functionId = object.functionId ?? "";
|
|
16410
17047
|
message.createdByAvatarUrl = object.createdByAvatarUrl ?? "";
|
|
16411
17048
|
message.provisioningStatus = object.provisioningStatus ?? 0;
|
|
17049
|
+
message.status = object.status ?? "";
|
|
16412
17050
|
return message;
|
|
16413
17051
|
}
|
|
16414
17052
|
};
|
|
@@ -16991,6 +17629,155 @@ var EnvironmentDeleteRequest = {
|
|
|
16991
17629
|
return message;
|
|
16992
17630
|
}
|
|
16993
17631
|
};
|
|
17632
|
+
function createBaseEnvironmentGetBudgetRequest() {
|
|
17633
|
+
return { environmentId: "" };
|
|
17634
|
+
}
|
|
17635
|
+
var EnvironmentGetBudgetRequest = {
|
|
17636
|
+
encode(message, writer = new BinaryWriter()) {
|
|
17637
|
+
if (message.environmentId !== "") {
|
|
17638
|
+
writer.uint32(10).string(message.environmentId);
|
|
17639
|
+
}
|
|
17640
|
+
return writer;
|
|
17641
|
+
},
|
|
17642
|
+
decode(input, length) {
|
|
17643
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17644
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
17645
|
+
const message = createBaseEnvironmentGetBudgetRequest();
|
|
17646
|
+
while (reader.pos < end) {
|
|
17647
|
+
const tag = reader.uint32();
|
|
17648
|
+
switch (tag >>> 3) {
|
|
17649
|
+
case 1: {
|
|
17650
|
+
if (tag !== 10) {
|
|
17651
|
+
break;
|
|
17652
|
+
}
|
|
17653
|
+
message.environmentId = reader.string();
|
|
17654
|
+
continue;
|
|
17655
|
+
}
|
|
17656
|
+
}
|
|
17657
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17658
|
+
break;
|
|
17659
|
+
}
|
|
17660
|
+
reader.skip(tag & 7);
|
|
17661
|
+
}
|
|
17662
|
+
return message;
|
|
17663
|
+
},
|
|
17664
|
+
fromJSON(object) {
|
|
17665
|
+
return { environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : "" };
|
|
17666
|
+
},
|
|
17667
|
+
toJSON(message) {
|
|
17668
|
+
const obj = {};
|
|
17669
|
+
if (message.environmentId !== "") {
|
|
17670
|
+
obj.environmentId = message.environmentId;
|
|
17671
|
+
}
|
|
17672
|
+
return obj;
|
|
17673
|
+
},
|
|
17674
|
+
create(base) {
|
|
17675
|
+
return EnvironmentGetBudgetRequest.fromPartial(base ?? {});
|
|
17676
|
+
},
|
|
17677
|
+
fromPartial(object) {
|
|
17678
|
+
const message = createBaseEnvironmentGetBudgetRequest();
|
|
17679
|
+
message.environmentId = object.environmentId ?? "";
|
|
17680
|
+
return message;
|
|
17681
|
+
}
|
|
17682
|
+
};
|
|
17683
|
+
function createBaseEnvironmentGetBudgetResponse() {
|
|
17684
|
+
return { cycleBudgetDollars: void 0, effectiveCycleSpendLimit: 0, currentCycleUsage: 0, spendLimitReached: false };
|
|
17685
|
+
}
|
|
17686
|
+
var EnvironmentGetBudgetResponse = {
|
|
17687
|
+
encode(message, writer = new BinaryWriter()) {
|
|
17688
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
17689
|
+
writer.uint32(9).double(message.cycleBudgetDollars);
|
|
17690
|
+
}
|
|
17691
|
+
if (message.effectiveCycleSpendLimit !== 0) {
|
|
17692
|
+
writer.uint32(17).double(message.effectiveCycleSpendLimit);
|
|
17693
|
+
}
|
|
17694
|
+
if (message.currentCycleUsage !== 0) {
|
|
17695
|
+
writer.uint32(25).double(message.currentCycleUsage);
|
|
17696
|
+
}
|
|
17697
|
+
if (message.spendLimitReached !== false) {
|
|
17698
|
+
writer.uint32(32).bool(message.spendLimitReached);
|
|
17699
|
+
}
|
|
17700
|
+
return writer;
|
|
17701
|
+
},
|
|
17702
|
+
decode(input, length) {
|
|
17703
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17704
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
17705
|
+
const message = createBaseEnvironmentGetBudgetResponse();
|
|
17706
|
+
while (reader.pos < end) {
|
|
17707
|
+
const tag = reader.uint32();
|
|
17708
|
+
switch (tag >>> 3) {
|
|
17709
|
+
case 1: {
|
|
17710
|
+
if (tag !== 9) {
|
|
17711
|
+
break;
|
|
17712
|
+
}
|
|
17713
|
+
message.cycleBudgetDollars = reader.double();
|
|
17714
|
+
continue;
|
|
17715
|
+
}
|
|
17716
|
+
case 2: {
|
|
17717
|
+
if (tag !== 17) {
|
|
17718
|
+
break;
|
|
17719
|
+
}
|
|
17720
|
+
message.effectiveCycleSpendLimit = reader.double();
|
|
17721
|
+
continue;
|
|
17722
|
+
}
|
|
17723
|
+
case 3: {
|
|
17724
|
+
if (tag !== 25) {
|
|
17725
|
+
break;
|
|
17726
|
+
}
|
|
17727
|
+
message.currentCycleUsage = reader.double();
|
|
17728
|
+
continue;
|
|
17729
|
+
}
|
|
17730
|
+
case 4: {
|
|
17731
|
+
if (tag !== 32) {
|
|
17732
|
+
break;
|
|
17733
|
+
}
|
|
17734
|
+
message.spendLimitReached = reader.bool();
|
|
17735
|
+
continue;
|
|
17736
|
+
}
|
|
17737
|
+
}
|
|
17738
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17739
|
+
break;
|
|
17740
|
+
}
|
|
17741
|
+
reader.skip(tag & 7);
|
|
17742
|
+
}
|
|
17743
|
+
return message;
|
|
17744
|
+
},
|
|
17745
|
+
fromJSON(object) {
|
|
17746
|
+
return {
|
|
17747
|
+
cycleBudgetDollars: isSet5(object.cycleBudgetDollars) ? globalThis.Number(object.cycleBudgetDollars) : void 0,
|
|
17748
|
+
effectiveCycleSpendLimit: isSet5(object.effectiveCycleSpendLimit) ? globalThis.Number(object.effectiveCycleSpendLimit) : 0,
|
|
17749
|
+
currentCycleUsage: isSet5(object.currentCycleUsage) ? globalThis.Number(object.currentCycleUsage) : 0,
|
|
17750
|
+
spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false
|
|
17751
|
+
};
|
|
17752
|
+
},
|
|
17753
|
+
toJSON(message) {
|
|
17754
|
+
const obj = {};
|
|
17755
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
17756
|
+
obj.cycleBudgetDollars = message.cycleBudgetDollars;
|
|
17757
|
+
}
|
|
17758
|
+
if (message.effectiveCycleSpendLimit !== 0) {
|
|
17759
|
+
obj.effectiveCycleSpendLimit = message.effectiveCycleSpendLimit;
|
|
17760
|
+
}
|
|
17761
|
+
if (message.currentCycleUsage !== 0) {
|
|
17762
|
+
obj.currentCycleUsage = message.currentCycleUsage;
|
|
17763
|
+
}
|
|
17764
|
+
if (message.spendLimitReached !== false) {
|
|
17765
|
+
obj.spendLimitReached = message.spendLimitReached;
|
|
17766
|
+
}
|
|
17767
|
+
return obj;
|
|
17768
|
+
},
|
|
17769
|
+
create(base) {
|
|
17770
|
+
return EnvironmentGetBudgetResponse.fromPartial(base ?? {});
|
|
17771
|
+
},
|
|
17772
|
+
fromPartial(object) {
|
|
17773
|
+
const message = createBaseEnvironmentGetBudgetResponse();
|
|
17774
|
+
message.cycleBudgetDollars = object.cycleBudgetDollars ?? void 0;
|
|
17775
|
+
message.effectiveCycleSpendLimit = object.effectiveCycleSpendLimit ?? 0;
|
|
17776
|
+
message.currentCycleUsage = object.currentCycleUsage ?? 0;
|
|
17777
|
+
message.spendLimitReached = object.spendLimitReached ?? false;
|
|
17778
|
+
return message;
|
|
17779
|
+
}
|
|
17780
|
+
};
|
|
16994
17781
|
function createBaseEnvironmentGetManagedRequest() {
|
|
16995
17782
|
return { environmentId: "" };
|
|
16996
17783
|
}
|
|
@@ -17471,7 +18258,11 @@ function createBaseEnvironmentListItem() {
|
|
|
17471
18258
|
maxConcurrentTasks: void 0,
|
|
17472
18259
|
maxConcurrentGpus: void 0,
|
|
17473
18260
|
currentConcurrentTasks: 0,
|
|
17474
|
-
currentConcurrentGpus: 0
|
|
18261
|
+
currentConcurrentGpus: 0,
|
|
18262
|
+
cycleBudgetDollars: void 0,
|
|
18263
|
+
effectiveCycleSpendLimit: 0,
|
|
18264
|
+
currentCycleUsage: 0,
|
|
18265
|
+
spendLimitReached: false
|
|
17475
18266
|
};
|
|
17476
18267
|
}
|
|
17477
18268
|
var EnvironmentListItem = {
|
|
@@ -17506,6 +18297,18 @@ var EnvironmentListItem = {
|
|
|
17506
18297
|
if (message.currentConcurrentGpus !== 0) {
|
|
17507
18298
|
writer.uint32(80).int32(message.currentConcurrentGpus);
|
|
17508
18299
|
}
|
|
18300
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
18301
|
+
writer.uint32(89).double(message.cycleBudgetDollars);
|
|
18302
|
+
}
|
|
18303
|
+
if (message.effectiveCycleSpendLimit !== 0) {
|
|
18304
|
+
writer.uint32(97).double(message.effectiveCycleSpendLimit);
|
|
18305
|
+
}
|
|
18306
|
+
if (message.currentCycleUsage !== 0) {
|
|
18307
|
+
writer.uint32(105).double(message.currentCycleUsage);
|
|
18308
|
+
}
|
|
18309
|
+
if (message.spendLimitReached !== false) {
|
|
18310
|
+
writer.uint32(112).bool(message.spendLimitReached);
|
|
18311
|
+
}
|
|
17509
18312
|
return writer;
|
|
17510
18313
|
},
|
|
17511
18314
|
decode(input, length) {
|
|
@@ -17585,6 +18388,34 @@ var EnvironmentListItem = {
|
|
|
17585
18388
|
message.currentConcurrentGpus = reader.int32();
|
|
17586
18389
|
continue;
|
|
17587
18390
|
}
|
|
18391
|
+
case 11: {
|
|
18392
|
+
if (tag !== 89) {
|
|
18393
|
+
break;
|
|
18394
|
+
}
|
|
18395
|
+
message.cycleBudgetDollars = reader.double();
|
|
18396
|
+
continue;
|
|
18397
|
+
}
|
|
18398
|
+
case 12: {
|
|
18399
|
+
if (tag !== 97) {
|
|
18400
|
+
break;
|
|
18401
|
+
}
|
|
18402
|
+
message.effectiveCycleSpendLimit = reader.double();
|
|
18403
|
+
continue;
|
|
18404
|
+
}
|
|
18405
|
+
case 13: {
|
|
18406
|
+
if (tag !== 105) {
|
|
18407
|
+
break;
|
|
18408
|
+
}
|
|
18409
|
+
message.currentCycleUsage = reader.double();
|
|
18410
|
+
continue;
|
|
18411
|
+
}
|
|
18412
|
+
case 14: {
|
|
18413
|
+
if (tag !== 112) {
|
|
18414
|
+
break;
|
|
18415
|
+
}
|
|
18416
|
+
message.spendLimitReached = reader.bool();
|
|
18417
|
+
continue;
|
|
18418
|
+
}
|
|
17588
18419
|
}
|
|
17589
18420
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17590
18421
|
break;
|
|
@@ -17604,7 +18435,11 @@ var EnvironmentListItem = {
|
|
|
17604
18435
|
maxConcurrentTasks: isSet5(object.maxConcurrentTasks) ? globalThis.Number(object.maxConcurrentTasks) : void 0,
|
|
17605
18436
|
maxConcurrentGpus: isSet5(object.maxConcurrentGpus) ? globalThis.Number(object.maxConcurrentGpus) : void 0,
|
|
17606
18437
|
currentConcurrentTasks: isSet5(object.currentConcurrentTasks) ? globalThis.Number(object.currentConcurrentTasks) : 0,
|
|
17607
|
-
currentConcurrentGpus: isSet5(object.currentConcurrentGpus) ? globalThis.Number(object.currentConcurrentGpus) : 0
|
|
18438
|
+
currentConcurrentGpus: isSet5(object.currentConcurrentGpus) ? globalThis.Number(object.currentConcurrentGpus) : 0,
|
|
18439
|
+
cycleBudgetDollars: isSet5(object.cycleBudgetDollars) ? globalThis.Number(object.cycleBudgetDollars) : void 0,
|
|
18440
|
+
effectiveCycleSpendLimit: isSet5(object.effectiveCycleSpendLimit) ? globalThis.Number(object.effectiveCycleSpendLimit) : 0,
|
|
18441
|
+
currentCycleUsage: isSet5(object.currentCycleUsage) ? globalThis.Number(object.currentCycleUsage) : 0,
|
|
18442
|
+
spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false
|
|
17608
18443
|
};
|
|
17609
18444
|
},
|
|
17610
18445
|
toJSON(message) {
|
|
@@ -17639,6 +18474,18 @@ var EnvironmentListItem = {
|
|
|
17639
18474
|
if (message.currentConcurrentGpus !== 0) {
|
|
17640
18475
|
obj.currentConcurrentGpus = Math.round(message.currentConcurrentGpus);
|
|
17641
18476
|
}
|
|
18477
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
18478
|
+
obj.cycleBudgetDollars = message.cycleBudgetDollars;
|
|
18479
|
+
}
|
|
18480
|
+
if (message.effectiveCycleSpendLimit !== 0) {
|
|
18481
|
+
obj.effectiveCycleSpendLimit = message.effectiveCycleSpendLimit;
|
|
18482
|
+
}
|
|
18483
|
+
if (message.currentCycleUsage !== 0) {
|
|
18484
|
+
obj.currentCycleUsage = message.currentCycleUsage;
|
|
18485
|
+
}
|
|
18486
|
+
if (message.spendLimitReached !== false) {
|
|
18487
|
+
obj.spendLimitReached = message.spendLimitReached;
|
|
18488
|
+
}
|
|
17642
18489
|
return obj;
|
|
17643
18490
|
},
|
|
17644
18491
|
create(base) {
|
|
@@ -17656,6 +18503,10 @@ var EnvironmentListItem = {
|
|
|
17656
18503
|
message.maxConcurrentGpus = object.maxConcurrentGpus ?? void 0;
|
|
17657
18504
|
message.currentConcurrentTasks = object.currentConcurrentTasks ?? 0;
|
|
17658
18505
|
message.currentConcurrentGpus = object.currentConcurrentGpus ?? 0;
|
|
18506
|
+
message.cycleBudgetDollars = object.cycleBudgetDollars ?? void 0;
|
|
18507
|
+
message.effectiveCycleSpendLimit = object.effectiveCycleSpendLimit ?? 0;
|
|
18508
|
+
message.currentCycleUsage = object.currentCycleUsage ?? 0;
|
|
18509
|
+
message.spendLimitReached = object.spendLimitReached ?? false;
|
|
17659
18510
|
return message;
|
|
17660
18511
|
}
|
|
17661
18512
|
};
|
|
@@ -17878,6 +18729,89 @@ var EnvironmentRoleSetRequest = {
|
|
|
17878
18729
|
return message;
|
|
17879
18730
|
}
|
|
17880
18731
|
};
|
|
18732
|
+
function createBaseEnvironmentSetBudgetRequest() {
|
|
18733
|
+
return { environmentId: "", cycleBudgetDollars: void 0, clearBudget: false };
|
|
18734
|
+
}
|
|
18735
|
+
var EnvironmentSetBudgetRequest = {
|
|
18736
|
+
encode(message, writer = new BinaryWriter()) {
|
|
18737
|
+
if (message.environmentId !== "") {
|
|
18738
|
+
writer.uint32(10).string(message.environmentId);
|
|
18739
|
+
}
|
|
18740
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
18741
|
+
writer.uint32(17).double(message.cycleBudgetDollars);
|
|
18742
|
+
}
|
|
18743
|
+
if (message.clearBudget !== false) {
|
|
18744
|
+
writer.uint32(24).bool(message.clearBudget);
|
|
18745
|
+
}
|
|
18746
|
+
return writer;
|
|
18747
|
+
},
|
|
18748
|
+
decode(input, length) {
|
|
18749
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18750
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
18751
|
+
const message = createBaseEnvironmentSetBudgetRequest();
|
|
18752
|
+
while (reader.pos < end) {
|
|
18753
|
+
const tag = reader.uint32();
|
|
18754
|
+
switch (tag >>> 3) {
|
|
18755
|
+
case 1: {
|
|
18756
|
+
if (tag !== 10) {
|
|
18757
|
+
break;
|
|
18758
|
+
}
|
|
18759
|
+
message.environmentId = reader.string();
|
|
18760
|
+
continue;
|
|
18761
|
+
}
|
|
18762
|
+
case 2: {
|
|
18763
|
+
if (tag !== 17) {
|
|
18764
|
+
break;
|
|
18765
|
+
}
|
|
18766
|
+
message.cycleBudgetDollars = reader.double();
|
|
18767
|
+
continue;
|
|
18768
|
+
}
|
|
18769
|
+
case 3: {
|
|
18770
|
+
if (tag !== 24) {
|
|
18771
|
+
break;
|
|
18772
|
+
}
|
|
18773
|
+
message.clearBudget = reader.bool();
|
|
18774
|
+
continue;
|
|
18775
|
+
}
|
|
18776
|
+
}
|
|
18777
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18778
|
+
break;
|
|
18779
|
+
}
|
|
18780
|
+
reader.skip(tag & 7);
|
|
18781
|
+
}
|
|
18782
|
+
return message;
|
|
18783
|
+
},
|
|
18784
|
+
fromJSON(object) {
|
|
18785
|
+
return {
|
|
18786
|
+
environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : "",
|
|
18787
|
+
cycleBudgetDollars: isSet5(object.cycleBudgetDollars) ? globalThis.Number(object.cycleBudgetDollars) : void 0,
|
|
18788
|
+
clearBudget: isSet5(object.clearBudget) ? globalThis.Boolean(object.clearBudget) : false
|
|
18789
|
+
};
|
|
18790
|
+
},
|
|
18791
|
+
toJSON(message) {
|
|
18792
|
+
const obj = {};
|
|
18793
|
+
if (message.environmentId !== "") {
|
|
18794
|
+
obj.environmentId = message.environmentId;
|
|
18795
|
+
}
|
|
18796
|
+
if (message.cycleBudgetDollars !== void 0) {
|
|
18797
|
+
obj.cycleBudgetDollars = message.cycleBudgetDollars;
|
|
18798
|
+
}
|
|
18799
|
+
if (message.clearBudget !== false) {
|
|
18800
|
+
obj.clearBudget = message.clearBudget;
|
|
18801
|
+
}
|
|
18802
|
+
return obj;
|
|
18803
|
+
},
|
|
18804
|
+
create(base) {
|
|
18805
|
+
return EnvironmentSetBudgetRequest.fromPartial(base ?? {});
|
|
18806
|
+
},
|
|
18807
|
+
fromPartial(object) {
|
|
18808
|
+
const message = createBaseEnvironmentSetBudgetRequest();
|
|
18809
|
+
message.environmentId = object.environmentId ?? "";
|
|
18810
|
+
message.cycleBudgetDollars = object.cycleBudgetDollars ?? void 0;
|
|
18811
|
+
message.clearBudget = object.clearBudget ?? false;
|
|
18812
|
+
return message;
|
|
18813
|
+
}
|
|
18814
|
+
};
|
|
17881
18815
|
function createBaseEnvironmentSetManagedRequest() {
|
|
17882
18816
|
return { environmentId: "", managed: false };
|
|
17883
18817
|
}
|
|
@@ -27320,7 +28254,15 @@ var GenericResult = {
|
|
|
27320
28254
|
}
|
|
27321
28255
|
};
|
|
27322
28256
|
function createBaseHTTPConfig() {
|
|
27323
|
-
return {
|
|
28257
|
+
return {
|
|
28258
|
+
port: 0,
|
|
28259
|
+
proxyRegions: [],
|
|
28260
|
+
startupTimeout: 0,
|
|
28261
|
+
exitGracePeriod: 0,
|
|
28262
|
+
h2Enabled: false,
|
|
28263
|
+
targetConcurrency: 0,
|
|
28264
|
+
unauthenticated: false
|
|
28265
|
+
};
|
|
27324
28266
|
}
|
|
27325
28267
|
var HTTPConfig = {
|
|
27326
28268
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -27342,6 +28284,9 @@ var HTTPConfig = {
|
|
|
27342
28284
|
if (message.targetConcurrency !== 0) {
|
|
27343
28285
|
writer.uint32(48).uint32(message.targetConcurrency);
|
|
27344
28286
|
}
|
|
28287
|
+
if (message.unauthenticated !== false) {
|
|
28288
|
+
writer.uint32(56).bool(message.unauthenticated);
|
|
28289
|
+
}
|
|
27345
28290
|
return writer;
|
|
27346
28291
|
},
|
|
27347
28292
|
decode(input, length) {
|
|
@@ -27393,6 +28338,13 @@ var HTTPConfig = {
|
|
|
27393
28338
|
message.targetConcurrency = reader.uint32();
|
|
27394
28339
|
continue;
|
|
27395
28340
|
}
|
|
28341
|
+
case 7: {
|
|
28342
|
+
if (tag !== 56) {
|
|
28343
|
+
break;
|
|
28344
|
+
}
|
|
28345
|
+
message.unauthenticated = reader.bool();
|
|
28346
|
+
continue;
|
|
28347
|
+
}
|
|
27396
28348
|
}
|
|
27397
28349
|
if ((tag & 7) === 4 || tag === 0) {
|
|
27398
28350
|
break;
|
|
@@ -27408,7 +28360,8 @@ var HTTPConfig = {
|
|
|
27408
28360
|
startupTimeout: isSet5(object.startupTimeout) ? globalThis.Number(object.startupTimeout) : 0,
|
|
27409
28361
|
exitGracePeriod: isSet5(object.exitGracePeriod) ? globalThis.Number(object.exitGracePeriod) : 0,
|
|
27410
28362
|
h2Enabled: isSet5(object.h2Enabled) ? globalThis.Boolean(object.h2Enabled) : false,
|
|
27411
|
-
targetConcurrency: isSet5(object.targetConcurrency) ? globalThis.Number(object.targetConcurrency) : 0
|
|
28363
|
+
targetConcurrency: isSet5(object.targetConcurrency) ? globalThis.Number(object.targetConcurrency) : 0,
|
|
28364
|
+
unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false
|
|
27412
28365
|
};
|
|
27413
28366
|
},
|
|
27414
28367
|
toJSON(message) {
|
|
@@ -27431,6 +28384,9 @@ var HTTPConfig = {
|
|
|
27431
28384
|
if (message.targetConcurrency !== 0) {
|
|
27432
28385
|
obj.targetConcurrency = Math.round(message.targetConcurrency);
|
|
27433
28386
|
}
|
|
28387
|
+
if (message.unauthenticated !== false) {
|
|
28388
|
+
obj.unauthenticated = message.unauthenticated;
|
|
28389
|
+
}
|
|
27434
28390
|
return obj;
|
|
27435
28391
|
},
|
|
27436
28392
|
create(base) {
|
|
@@ -27444,6 +28400,7 @@ var HTTPConfig = {
|
|
|
27444
28400
|
message.exitGracePeriod = object.exitGracePeriod ?? 0;
|
|
27445
28401
|
message.h2Enabled = object.h2Enabled ?? false;
|
|
27446
28402
|
message.targetConcurrency = object.targetConcurrency ?? 0;
|
|
28403
|
+
message.unauthenticated = object.unauthenticated ?? false;
|
|
27447
28404
|
return message;
|
|
27448
28405
|
}
|
|
27449
28406
|
};
|
|
@@ -37217,7 +38174,7 @@ var SandboxCreateResponse = {
|
|
|
37217
38174
|
}
|
|
37218
38175
|
};
|
|
37219
38176
|
function createBaseSandboxCreateV2Request() {
|
|
37220
|
-
return { appId: "", definition: void 0 };
|
|
38177
|
+
return { appId: "", definition: void 0, ephemeralSecrets: void 0 };
|
|
37221
38178
|
}
|
|
37222
38179
|
var SandboxCreateV2Request = {
|
|
37223
38180
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -37227,6 +38184,9 @@ var SandboxCreateV2Request = {
|
|
|
37227
38184
|
if (message.definition !== void 0) {
|
|
37228
38185
|
Sandbox.encode(message.definition, writer.uint32(18).fork()).join();
|
|
37229
38186
|
}
|
|
38187
|
+
if (message.ephemeralSecrets !== void 0) {
|
|
38188
|
+
StringMap.encode(message.ephemeralSecrets, writer.uint32(26).fork()).join();
|
|
38189
|
+
}
|
|
37230
38190
|
return writer;
|
|
37231
38191
|
},
|
|
37232
38192
|
decode(input, length) {
|
|
@@ -37250,6 +38210,13 @@ var SandboxCreateV2Request = {
|
|
|
37250
38210
|
message.definition = Sandbox.decode(reader, reader.uint32());
|
|
37251
38211
|
continue;
|
|
37252
38212
|
}
|
|
38213
|
+
case 3: {
|
|
38214
|
+
if (tag !== 26) {
|
|
38215
|
+
break;
|
|
38216
|
+
}
|
|
38217
|
+
message.ephemeralSecrets = StringMap.decode(reader, reader.uint32());
|
|
38218
|
+
continue;
|
|
38219
|
+
}
|
|
37253
38220
|
}
|
|
37254
38221
|
if ((tag & 7) === 4 || tag === 0) {
|
|
37255
38222
|
break;
|
|
@@ -37261,7 +38228,8 @@ var SandboxCreateV2Request = {
|
|
|
37261
38228
|
fromJSON(object) {
|
|
37262
38229
|
return {
|
|
37263
38230
|
appId: isSet5(object.appId) ? globalThis.String(object.appId) : "",
|
|
37264
|
-
definition: isSet5(object.definition) ? Sandbox.fromJSON(object.definition) : void 0
|
|
38231
|
+
definition: isSet5(object.definition) ? Sandbox.fromJSON(object.definition) : void 0,
|
|
38232
|
+
ephemeralSecrets: isSet5(object.ephemeralSecrets) ? StringMap.fromJSON(object.ephemeralSecrets) : void 0
|
|
37265
38233
|
};
|
|
37266
38234
|
},
|
|
37267
38235
|
toJSON(message) {
|
|
@@ -37272,6 +38240,9 @@ var SandboxCreateV2Request = {
|
|
|
37272
38240
|
if (message.definition !== void 0) {
|
|
37273
38241
|
obj.definition = Sandbox.toJSON(message.definition);
|
|
37274
38242
|
}
|
|
38243
|
+
if (message.ephemeralSecrets !== void 0) {
|
|
38244
|
+
obj.ephemeralSecrets = StringMap.toJSON(message.ephemeralSecrets);
|
|
38245
|
+
}
|
|
37275
38246
|
return obj;
|
|
37276
38247
|
},
|
|
37277
38248
|
create(base) {
|
|
@@ -37281,6 +38252,7 @@ var SandboxCreateV2Request = {
|
|
|
37281
38252
|
const message = createBaseSandboxCreateV2Request();
|
|
37282
38253
|
message.appId = object.appId ?? "";
|
|
37283
38254
|
message.definition = object.definition !== void 0 && object.definition !== null ? Sandbox.fromPartial(object.definition) : void 0;
|
|
38255
|
+
message.ephemeralSecrets = object.ephemeralSecrets !== void 0 && object.ephemeralSecrets !== null ? StringMap.fromPartial(object.ephemeralSecrets) : void 0;
|
|
37284
38256
|
return message;
|
|
37285
38257
|
}
|
|
37286
38258
|
};
|
|
@@ -38650,7 +39622,14 @@ var SandboxListResponse = {
|
|
|
38650
39622
|
}
|
|
38651
39623
|
};
|
|
38652
39624
|
function createBaseSandboxRestoreRequest() {
|
|
38653
|
-
return {
|
|
39625
|
+
return {
|
|
39626
|
+
snapshotId: "",
|
|
39627
|
+
sandboxNameOverride: "",
|
|
39628
|
+
sandboxNameOverrideType: 0,
|
|
39629
|
+
workerId: "",
|
|
39630
|
+
replaceVolumeMounts: false,
|
|
39631
|
+
volumeMounts: []
|
|
39632
|
+
};
|
|
38654
39633
|
}
|
|
38655
39634
|
var SandboxRestoreRequest = {
|
|
38656
39635
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -38666,6 +39645,12 @@ var SandboxRestoreRequest = {
|
|
|
38666
39645
|
if (message.workerId !== "") {
|
|
38667
39646
|
writer.uint32(34).string(message.workerId);
|
|
38668
39647
|
}
|
|
39648
|
+
if (message.replaceVolumeMounts !== false) {
|
|
39649
|
+
writer.uint32(40).bool(message.replaceVolumeMounts);
|
|
39650
|
+
}
|
|
39651
|
+
for (const v of message.volumeMounts) {
|
|
39652
|
+
VolumeMount.encode(v, writer.uint32(50).fork()).join();
|
|
39653
|
+
}
|
|
38669
39654
|
return writer;
|
|
38670
39655
|
},
|
|
38671
39656
|
decode(input, length) {
|
|
@@ -38703,6 +39688,20 @@ var SandboxRestoreRequest = {
|
|
|
38703
39688
|
message.workerId = reader.string();
|
|
38704
39689
|
continue;
|
|
38705
39690
|
}
|
|
39691
|
+
case 5: {
|
|
39692
|
+
if (tag !== 40) {
|
|
39693
|
+
break;
|
|
39694
|
+
}
|
|
39695
|
+
message.replaceVolumeMounts = reader.bool();
|
|
39696
|
+
continue;
|
|
39697
|
+
}
|
|
39698
|
+
case 6: {
|
|
39699
|
+
if (tag !== 50) {
|
|
39700
|
+
break;
|
|
39701
|
+
}
|
|
39702
|
+
message.volumeMounts.push(VolumeMount.decode(reader, reader.uint32()));
|
|
39703
|
+
continue;
|
|
39704
|
+
}
|
|
38706
39705
|
}
|
|
38707
39706
|
if ((tag & 7) === 4 || tag === 0) {
|
|
38708
39707
|
break;
|
|
@@ -38716,7 +39715,9 @@ var SandboxRestoreRequest = {
|
|
|
38716
39715
|
snapshotId: isSet5(object.snapshotId) ? globalThis.String(object.snapshotId) : "",
|
|
38717
39716
|
sandboxNameOverride: isSet5(object.sandboxNameOverride) ? globalThis.String(object.sandboxNameOverride) : "",
|
|
38718
39717
|
sandboxNameOverrideType: isSet5(object.sandboxNameOverrideType) ? sandboxRestoreRequest_SandboxNameOverrideTypeFromJSON(object.sandboxNameOverrideType) : 0,
|
|
38719
|
-
workerId: isSet5(object.workerId) ? globalThis.String(object.workerId) : ""
|
|
39718
|
+
workerId: isSet5(object.workerId) ? globalThis.String(object.workerId) : "",
|
|
39719
|
+
replaceVolumeMounts: isSet5(object.replaceVolumeMounts) ? globalThis.Boolean(object.replaceVolumeMounts) : false,
|
|
39720
|
+
volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : []
|
|
38720
39721
|
};
|
|
38721
39722
|
},
|
|
38722
39723
|
toJSON(message) {
|
|
@@ -38735,6 +39736,12 @@ var SandboxRestoreRequest = {
|
|
|
38735
39736
|
if (message.workerId !== "") {
|
|
38736
39737
|
obj.workerId = message.workerId;
|
|
38737
39738
|
}
|
|
39739
|
+
if (message.replaceVolumeMounts !== false) {
|
|
39740
|
+
obj.replaceVolumeMounts = message.replaceVolumeMounts;
|
|
39741
|
+
}
|
|
39742
|
+
if (message.volumeMounts?.length) {
|
|
39743
|
+
obj.volumeMounts = message.volumeMounts.map((e) => VolumeMount.toJSON(e));
|
|
39744
|
+
}
|
|
38738
39745
|
return obj;
|
|
38739
39746
|
},
|
|
38740
39747
|
create(base) {
|
|
@@ -38746,6 +39753,8 @@ var SandboxRestoreRequest = {
|
|
|
38746
39753
|
message.sandboxNameOverride = object.sandboxNameOverride ?? "";
|
|
38747
39754
|
message.sandboxNameOverrideType = object.sandboxNameOverrideType ?? 0;
|
|
38748
39755
|
message.workerId = object.workerId ?? "";
|
|
39756
|
+
message.replaceVolumeMounts = object.replaceVolumeMounts ?? false;
|
|
39757
|
+
message.volumeMounts = object.volumeMounts?.map((e) => VolumeMount.fromPartial(e)) || [];
|
|
38749
39758
|
return message;
|
|
38750
39759
|
}
|
|
38751
39760
|
};
|
|
@@ -42928,7 +43937,7 @@ var SystemErrorMessage = {
|
|
|
42928
43937
|
}
|
|
42929
43938
|
};
|
|
42930
43939
|
function createBaseTaskClusterHelloRequest() {
|
|
42931
|
-
return { taskId: "", containerIp: "" };
|
|
43940
|
+
return { taskId: "", containerIp: "", imexHostIp: "" };
|
|
42932
43941
|
}
|
|
42933
43942
|
var TaskClusterHelloRequest = {
|
|
42934
43943
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -42938,6 +43947,9 @@ var TaskClusterHelloRequest = {
|
|
|
42938
43947
|
if (message.containerIp !== "") {
|
|
42939
43948
|
writer.uint32(18).string(message.containerIp);
|
|
42940
43949
|
}
|
|
43950
|
+
if (message.imexHostIp !== "") {
|
|
43951
|
+
writer.uint32(26).string(message.imexHostIp);
|
|
43952
|
+
}
|
|
42941
43953
|
return writer;
|
|
42942
43954
|
},
|
|
42943
43955
|
decode(input, length) {
|
|
@@ -42961,6 +43973,13 @@ var TaskClusterHelloRequest = {
|
|
|
42961
43973
|
message.containerIp = reader.string();
|
|
42962
43974
|
continue;
|
|
42963
43975
|
}
|
|
43976
|
+
case 3: {
|
|
43977
|
+
if (tag !== 26) {
|
|
43978
|
+
break;
|
|
43979
|
+
}
|
|
43980
|
+
message.imexHostIp = reader.string();
|
|
43981
|
+
continue;
|
|
43982
|
+
}
|
|
42964
43983
|
}
|
|
42965
43984
|
if ((tag & 7) === 4 || tag === 0) {
|
|
42966
43985
|
break;
|
|
@@ -42972,7 +43991,8 @@ var TaskClusterHelloRequest = {
|
|
|
42972
43991
|
fromJSON(object) {
|
|
42973
43992
|
return {
|
|
42974
43993
|
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
42975
|
-
containerIp: isSet5(object.containerIp) ? globalThis.String(object.containerIp) : ""
|
|
43994
|
+
containerIp: isSet5(object.containerIp) ? globalThis.String(object.containerIp) : "",
|
|
43995
|
+
imexHostIp: isSet5(object.imexHostIp) ? globalThis.String(object.imexHostIp) : ""
|
|
42976
43996
|
};
|
|
42977
43997
|
},
|
|
42978
43998
|
toJSON(message) {
|
|
@@ -42983,6 +44003,9 @@ var TaskClusterHelloRequest = {
|
|
|
42983
44003
|
if (message.containerIp !== "") {
|
|
42984
44004
|
obj.containerIp = message.containerIp;
|
|
42985
44005
|
}
|
|
44006
|
+
if (message.imexHostIp !== "") {
|
|
44007
|
+
obj.imexHostIp = message.imexHostIp;
|
|
44008
|
+
}
|
|
42986
44009
|
return obj;
|
|
42987
44010
|
},
|
|
42988
44011
|
create(base) {
|
|
@@ -42992,11 +44015,12 @@ var TaskClusterHelloRequest = {
|
|
|
42992
44015
|
const message = createBaseTaskClusterHelloRequest();
|
|
42993
44016
|
message.taskId = object.taskId ?? "";
|
|
42994
44017
|
message.containerIp = object.containerIp ?? "";
|
|
44018
|
+
message.imexHostIp = object.imexHostIp ?? "";
|
|
42995
44019
|
return message;
|
|
42996
44020
|
}
|
|
42997
44021
|
};
|
|
42998
44022
|
function createBaseTaskClusterHelloResponse() {
|
|
42999
|
-
return { clusterId: "", clusterRank: 0, containerIps: [], containerIpv4Ips: [] };
|
|
44023
|
+
return { clusterId: "", clusterRank: 0, containerIps: [], containerIpv4Ips: [], imexPeerIps: [] };
|
|
43000
44024
|
}
|
|
43001
44025
|
var TaskClusterHelloResponse = {
|
|
43002
44026
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -43012,6 +44036,9 @@ var TaskClusterHelloResponse = {
|
|
|
43012
44036
|
for (const v of message.containerIpv4Ips) {
|
|
43013
44037
|
writer.uint32(34).string(v);
|
|
43014
44038
|
}
|
|
44039
|
+
for (const v of message.imexPeerIps) {
|
|
44040
|
+
writer.uint32(42).string(v);
|
|
44041
|
+
}
|
|
43015
44042
|
return writer;
|
|
43016
44043
|
},
|
|
43017
44044
|
decode(input, length) {
|
|
@@ -43049,6 +44076,13 @@ var TaskClusterHelloResponse = {
|
|
|
43049
44076
|
message.containerIpv4Ips.push(reader.string());
|
|
43050
44077
|
continue;
|
|
43051
44078
|
}
|
|
44079
|
+
case 5: {
|
|
44080
|
+
if (tag !== 42) {
|
|
44081
|
+
break;
|
|
44082
|
+
}
|
|
44083
|
+
message.imexPeerIps.push(reader.string());
|
|
44084
|
+
continue;
|
|
44085
|
+
}
|
|
43052
44086
|
}
|
|
43053
44087
|
if ((tag & 7) === 4 || tag === 0) {
|
|
43054
44088
|
break;
|
|
@@ -43062,7 +44096,8 @@ var TaskClusterHelloResponse = {
|
|
|
43062
44096
|
clusterId: isSet5(object.clusterId) ? globalThis.String(object.clusterId) : "",
|
|
43063
44097
|
clusterRank: isSet5(object.clusterRank) ? globalThis.Number(object.clusterRank) : 0,
|
|
43064
44098
|
containerIps: globalThis.Array.isArray(object?.containerIps) ? object.containerIps.map((e) => globalThis.String(e)) : [],
|
|
43065
|
-
containerIpv4Ips: globalThis.Array.isArray(object?.containerIpv4Ips) ? object.containerIpv4Ips.map((e) => globalThis.String(e)) : []
|
|
44099
|
+
containerIpv4Ips: globalThis.Array.isArray(object?.containerIpv4Ips) ? object.containerIpv4Ips.map((e) => globalThis.String(e)) : [],
|
|
44100
|
+
imexPeerIps: globalThis.Array.isArray(object?.imexPeerIps) ? object.imexPeerIps.map((e) => globalThis.String(e)) : []
|
|
43066
44101
|
};
|
|
43067
44102
|
},
|
|
43068
44103
|
toJSON(message) {
|
|
@@ -43079,6 +44114,9 @@ var TaskClusterHelloResponse = {
|
|
|
43079
44114
|
if (message.containerIpv4Ips?.length) {
|
|
43080
44115
|
obj.containerIpv4Ips = message.containerIpv4Ips;
|
|
43081
44116
|
}
|
|
44117
|
+
if (message.imexPeerIps?.length) {
|
|
44118
|
+
obj.imexPeerIps = message.imexPeerIps;
|
|
44119
|
+
}
|
|
43082
44120
|
return obj;
|
|
43083
44121
|
},
|
|
43084
44122
|
create(base) {
|
|
@@ -43090,6 +44128,7 @@ var TaskClusterHelloResponse = {
|
|
|
43090
44128
|
message.clusterRank = object.clusterRank ?? 0;
|
|
43091
44129
|
message.containerIps = object.containerIps?.map((e) => e) || [];
|
|
43092
44130
|
message.containerIpv4Ips = object.containerIpv4Ips?.map((e) => e) || [];
|
|
44131
|
+
message.imexPeerIps = object.imexPeerIps?.map((e) => e) || [];
|
|
43093
44132
|
return message;
|
|
43094
44133
|
}
|
|
43095
44134
|
};
|
|
@@ -44650,6 +45689,125 @@ var TemplateListResponse_TemplateListItem = {
|
|
|
44650
45689
|
return message;
|
|
44651
45690
|
}
|
|
44652
45691
|
};
|
|
45692
|
+
function createBaseTokenCreateResponse() {
|
|
45693
|
+
return { tokenId: "", tokenSecret: "" };
|
|
45694
|
+
}
|
|
45695
|
+
var TokenCreateResponse = {
|
|
45696
|
+
encode(message, writer = new BinaryWriter()) {
|
|
45697
|
+
if (message.tokenId !== "") {
|
|
45698
|
+
writer.uint32(10).string(message.tokenId);
|
|
45699
|
+
}
|
|
45700
|
+
if (message.tokenSecret !== "") {
|
|
45701
|
+
writer.uint32(18).string(message.tokenSecret);
|
|
45702
|
+
}
|
|
45703
|
+
return writer;
|
|
45704
|
+
},
|
|
45705
|
+
decode(input, length) {
|
|
45706
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
45707
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
45708
|
+
const message = createBaseTokenCreateResponse();
|
|
45709
|
+
while (reader.pos < end) {
|
|
45710
|
+
const tag = reader.uint32();
|
|
45711
|
+
switch (tag >>> 3) {
|
|
45712
|
+
case 1: {
|
|
45713
|
+
if (tag !== 10) {
|
|
45714
|
+
break;
|
|
45715
|
+
}
|
|
45716
|
+
message.tokenId = reader.string();
|
|
45717
|
+
continue;
|
|
45718
|
+
}
|
|
45719
|
+
case 2: {
|
|
45720
|
+
if (tag !== 18) {
|
|
45721
|
+
break;
|
|
45722
|
+
}
|
|
45723
|
+
message.tokenSecret = reader.string();
|
|
45724
|
+
continue;
|
|
45725
|
+
}
|
|
45726
|
+
}
|
|
45727
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
45728
|
+
break;
|
|
45729
|
+
}
|
|
45730
|
+
reader.skip(tag & 7);
|
|
45731
|
+
}
|
|
45732
|
+
return message;
|
|
45733
|
+
},
|
|
45734
|
+
fromJSON(object) {
|
|
45735
|
+
return {
|
|
45736
|
+
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
45737
|
+
tokenSecret: isSet5(object.tokenSecret) ? globalThis.String(object.tokenSecret) : ""
|
|
45738
|
+
};
|
|
45739
|
+
},
|
|
45740
|
+
toJSON(message) {
|
|
45741
|
+
const obj = {};
|
|
45742
|
+
if (message.tokenId !== "") {
|
|
45743
|
+
obj.tokenId = message.tokenId;
|
|
45744
|
+
}
|
|
45745
|
+
if (message.tokenSecret !== "") {
|
|
45746
|
+
obj.tokenSecret = message.tokenSecret;
|
|
45747
|
+
}
|
|
45748
|
+
return obj;
|
|
45749
|
+
},
|
|
45750
|
+
create(base) {
|
|
45751
|
+
return TokenCreateResponse.fromPartial(base ?? {});
|
|
45752
|
+
},
|
|
45753
|
+
fromPartial(object) {
|
|
45754
|
+
const message = createBaseTokenCreateResponse();
|
|
45755
|
+
message.tokenId = object.tokenId ?? "";
|
|
45756
|
+
message.tokenSecret = object.tokenSecret ?? "";
|
|
45757
|
+
return message;
|
|
45758
|
+
}
|
|
45759
|
+
};
|
|
45760
|
+
function createBaseTokenDeleteRequest() {
|
|
45761
|
+
return { tokenId: "" };
|
|
45762
|
+
}
|
|
45763
|
+
var TokenDeleteRequest = {
|
|
45764
|
+
encode(message, writer = new BinaryWriter()) {
|
|
45765
|
+
if (message.tokenId !== "") {
|
|
45766
|
+
writer.uint32(18).string(message.tokenId);
|
|
45767
|
+
}
|
|
45768
|
+
return writer;
|
|
45769
|
+
},
|
|
45770
|
+
decode(input, length) {
|
|
45771
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
45772
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
45773
|
+
const message = createBaseTokenDeleteRequest();
|
|
45774
|
+
while (reader.pos < end) {
|
|
45775
|
+
const tag = reader.uint32();
|
|
45776
|
+
switch (tag >>> 3) {
|
|
45777
|
+
case 2: {
|
|
45778
|
+
if (tag !== 18) {
|
|
45779
|
+
break;
|
|
45780
|
+
}
|
|
45781
|
+
message.tokenId = reader.string();
|
|
45782
|
+
continue;
|
|
45783
|
+
}
|
|
45784
|
+
}
|
|
45785
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
45786
|
+
break;
|
|
45787
|
+
}
|
|
45788
|
+
reader.skip(tag & 7);
|
|
45789
|
+
}
|
|
45790
|
+
return message;
|
|
45791
|
+
},
|
|
45792
|
+
fromJSON(object) {
|
|
45793
|
+
return { tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "" };
|
|
45794
|
+
},
|
|
45795
|
+
toJSON(message) {
|
|
45796
|
+
const obj = {};
|
|
45797
|
+
if (message.tokenId !== "") {
|
|
45798
|
+
obj.tokenId = message.tokenId;
|
|
45799
|
+
}
|
|
45800
|
+
return obj;
|
|
45801
|
+
},
|
|
45802
|
+
create(base) {
|
|
45803
|
+
return TokenDeleteRequest.fromPartial(base ?? {});
|
|
45804
|
+
},
|
|
45805
|
+
fromPartial(object) {
|
|
45806
|
+
const message = createBaseTokenDeleteRequest();
|
|
45807
|
+
message.tokenId = object.tokenId ?? "";
|
|
45808
|
+
return message;
|
|
45809
|
+
}
|
|
45810
|
+
};
|
|
44653
45811
|
function createBaseTokenFlowCreateRequest() {
|
|
44654
45812
|
return { utmSource: "", localhostPort: 0, nextUrl: "" };
|
|
44655
45813
|
}
|
|
@@ -45732,13 +46890,16 @@ var UserIdentity = {
|
|
|
45732
46890
|
}
|
|
45733
46891
|
};
|
|
45734
46892
|
function createBaseVolumeCommitRequest() {
|
|
45735
|
-
return { volumeId: "" };
|
|
46893
|
+
return { volumeId: "", containerId: void 0 };
|
|
45736
46894
|
}
|
|
45737
46895
|
var VolumeCommitRequest = {
|
|
45738
46896
|
encode(message, writer = new BinaryWriter()) {
|
|
45739
46897
|
if (message.volumeId !== "") {
|
|
45740
46898
|
writer.uint32(10).string(message.volumeId);
|
|
45741
46899
|
}
|
|
46900
|
+
if (message.containerId !== void 0) {
|
|
46901
|
+
writer.uint32(18).string(message.containerId);
|
|
46902
|
+
}
|
|
45742
46903
|
return writer;
|
|
45743
46904
|
},
|
|
45744
46905
|
decode(input, length) {
|
|
@@ -45755,6 +46916,13 @@ var VolumeCommitRequest = {
|
|
|
45755
46916
|
message.volumeId = reader.string();
|
|
45756
46917
|
continue;
|
|
45757
46918
|
}
|
|
46919
|
+
case 2: {
|
|
46920
|
+
if (tag !== 18) {
|
|
46921
|
+
break;
|
|
46922
|
+
}
|
|
46923
|
+
message.containerId = reader.string();
|
|
46924
|
+
continue;
|
|
46925
|
+
}
|
|
45758
46926
|
}
|
|
45759
46927
|
if ((tag & 7) === 4 || tag === 0) {
|
|
45760
46928
|
break;
|
|
@@ -45764,13 +46932,19 @@ var VolumeCommitRequest = {
|
|
|
45764
46932
|
return message;
|
|
45765
46933
|
},
|
|
45766
46934
|
fromJSON(object) {
|
|
45767
|
-
return {
|
|
46935
|
+
return {
|
|
46936
|
+
volumeId: isSet5(object.volumeId) ? globalThis.String(object.volumeId) : "",
|
|
46937
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : void 0
|
|
46938
|
+
};
|
|
45768
46939
|
},
|
|
45769
46940
|
toJSON(message) {
|
|
45770
46941
|
const obj = {};
|
|
45771
46942
|
if (message.volumeId !== "") {
|
|
45772
46943
|
obj.volumeId = message.volumeId;
|
|
45773
46944
|
}
|
|
46945
|
+
if (message.containerId !== void 0) {
|
|
46946
|
+
obj.containerId = message.containerId;
|
|
46947
|
+
}
|
|
45774
46948
|
return obj;
|
|
45775
46949
|
},
|
|
45776
46950
|
create(base) {
|
|
@@ -45779,6 +46953,7 @@ var VolumeCommitRequest = {
|
|
|
45779
46953
|
fromPartial(object) {
|
|
45780
46954
|
const message = createBaseVolumeCommitRequest();
|
|
45781
46955
|
message.volumeId = object.volumeId ?? "";
|
|
46956
|
+
message.containerId = object.containerId ?? void 0;
|
|
45782
46957
|
return message;
|
|
45783
46958
|
}
|
|
45784
46959
|
};
|
|
@@ -48705,8 +49880,495 @@ var WebhookConfig = {
|
|
|
48705
49880
|
return message;
|
|
48706
49881
|
}
|
|
48707
49882
|
};
|
|
49883
|
+
function createBaseWebhookToken() {
|
|
49884
|
+
return { tokenId: "", createdAt: 0, scoped: false };
|
|
49885
|
+
}
|
|
49886
|
+
var WebhookToken = {
|
|
49887
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49888
|
+
if (message.tokenId !== "") {
|
|
49889
|
+
writer.uint32(10).string(message.tokenId);
|
|
49890
|
+
}
|
|
49891
|
+
if (message.createdAt !== 0) {
|
|
49892
|
+
writer.uint32(17).double(message.createdAt);
|
|
49893
|
+
}
|
|
49894
|
+
if (message.scoped !== false) {
|
|
49895
|
+
writer.uint32(24).bool(message.scoped);
|
|
49896
|
+
}
|
|
49897
|
+
return writer;
|
|
49898
|
+
},
|
|
49899
|
+
decode(input, length) {
|
|
49900
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49901
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49902
|
+
const message = createBaseWebhookToken();
|
|
49903
|
+
while (reader.pos < end) {
|
|
49904
|
+
const tag = reader.uint32();
|
|
49905
|
+
switch (tag >>> 3) {
|
|
49906
|
+
case 1: {
|
|
49907
|
+
if (tag !== 10) {
|
|
49908
|
+
break;
|
|
49909
|
+
}
|
|
49910
|
+
message.tokenId = reader.string();
|
|
49911
|
+
continue;
|
|
49912
|
+
}
|
|
49913
|
+
case 2: {
|
|
49914
|
+
if (tag !== 17) {
|
|
49915
|
+
break;
|
|
49916
|
+
}
|
|
49917
|
+
message.createdAt = reader.double();
|
|
49918
|
+
continue;
|
|
49919
|
+
}
|
|
49920
|
+
case 3: {
|
|
49921
|
+
if (tag !== 24) {
|
|
49922
|
+
break;
|
|
49923
|
+
}
|
|
49924
|
+
message.scoped = reader.bool();
|
|
49925
|
+
continue;
|
|
49926
|
+
}
|
|
49927
|
+
}
|
|
49928
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49929
|
+
break;
|
|
49930
|
+
}
|
|
49931
|
+
reader.skip(tag & 7);
|
|
49932
|
+
}
|
|
49933
|
+
return message;
|
|
49934
|
+
},
|
|
49935
|
+
fromJSON(object) {
|
|
49936
|
+
return {
|
|
49937
|
+
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
49938
|
+
createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
49939
|
+
scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false
|
|
49940
|
+
};
|
|
49941
|
+
},
|
|
49942
|
+
toJSON(message) {
|
|
49943
|
+
const obj = {};
|
|
49944
|
+
if (message.tokenId !== "") {
|
|
49945
|
+
obj.tokenId = message.tokenId;
|
|
49946
|
+
}
|
|
49947
|
+
if (message.createdAt !== 0) {
|
|
49948
|
+
obj.createdAt = message.createdAt;
|
|
49949
|
+
}
|
|
49950
|
+
if (message.scoped !== false) {
|
|
49951
|
+
obj.scoped = message.scoped;
|
|
49952
|
+
}
|
|
49953
|
+
return obj;
|
|
49954
|
+
},
|
|
49955
|
+
create(base) {
|
|
49956
|
+
return WebhookToken.fromPartial(base ?? {});
|
|
49957
|
+
},
|
|
49958
|
+
fromPartial(object) {
|
|
49959
|
+
const message = createBaseWebhookToken();
|
|
49960
|
+
message.tokenId = object.tokenId ?? "";
|
|
49961
|
+
message.createdAt = object.createdAt ?? 0;
|
|
49962
|
+
message.scoped = object.scoped ?? false;
|
|
49963
|
+
return message;
|
|
49964
|
+
}
|
|
49965
|
+
};
|
|
49966
|
+
function createBaseWebhookTokenCreateRequest() {
|
|
49967
|
+
return { scoped: false };
|
|
49968
|
+
}
|
|
49969
|
+
var WebhookTokenCreateRequest = {
|
|
49970
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49971
|
+
if (message.scoped !== false) {
|
|
49972
|
+
writer.uint32(8).bool(message.scoped);
|
|
49973
|
+
}
|
|
49974
|
+
return writer;
|
|
49975
|
+
},
|
|
49976
|
+
decode(input, length) {
|
|
49977
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49978
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49979
|
+
const message = createBaseWebhookTokenCreateRequest();
|
|
49980
|
+
while (reader.pos < end) {
|
|
49981
|
+
const tag = reader.uint32();
|
|
49982
|
+
switch (tag >>> 3) {
|
|
49983
|
+
case 1: {
|
|
49984
|
+
if (tag !== 8) {
|
|
49985
|
+
break;
|
|
49986
|
+
}
|
|
49987
|
+
message.scoped = reader.bool();
|
|
49988
|
+
continue;
|
|
49989
|
+
}
|
|
49990
|
+
}
|
|
49991
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49992
|
+
break;
|
|
49993
|
+
}
|
|
49994
|
+
reader.skip(tag & 7);
|
|
49995
|
+
}
|
|
49996
|
+
return message;
|
|
49997
|
+
},
|
|
49998
|
+
fromJSON(object) {
|
|
49999
|
+
return { scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false };
|
|
50000
|
+
},
|
|
50001
|
+
toJSON(message) {
|
|
50002
|
+
const obj = {};
|
|
50003
|
+
if (message.scoped !== false) {
|
|
50004
|
+
obj.scoped = message.scoped;
|
|
50005
|
+
}
|
|
50006
|
+
return obj;
|
|
50007
|
+
},
|
|
50008
|
+
create(base) {
|
|
50009
|
+
return WebhookTokenCreateRequest.fromPartial(base ?? {});
|
|
50010
|
+
},
|
|
50011
|
+
fromPartial(object) {
|
|
50012
|
+
const message = createBaseWebhookTokenCreateRequest();
|
|
50013
|
+
message.scoped = object.scoped ?? false;
|
|
50014
|
+
return message;
|
|
50015
|
+
}
|
|
50016
|
+
};
|
|
50017
|
+
function createBaseWebhookTokenEnvironmentAddRequest() {
|
|
50018
|
+
return { tokenId: "", environmentId: "" };
|
|
50019
|
+
}
|
|
50020
|
+
var WebhookTokenEnvironmentAddRequest = {
|
|
50021
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50022
|
+
if (message.tokenId !== "") {
|
|
50023
|
+
writer.uint32(10).string(message.tokenId);
|
|
50024
|
+
}
|
|
50025
|
+
if (message.environmentId !== "") {
|
|
50026
|
+
writer.uint32(18).string(message.environmentId);
|
|
50027
|
+
}
|
|
50028
|
+
return writer;
|
|
50029
|
+
},
|
|
50030
|
+
decode(input, length) {
|
|
50031
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50032
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50033
|
+
const message = createBaseWebhookTokenEnvironmentAddRequest();
|
|
50034
|
+
while (reader.pos < end) {
|
|
50035
|
+
const tag = reader.uint32();
|
|
50036
|
+
switch (tag >>> 3) {
|
|
50037
|
+
case 1: {
|
|
50038
|
+
if (tag !== 10) {
|
|
50039
|
+
break;
|
|
50040
|
+
}
|
|
50041
|
+
message.tokenId = reader.string();
|
|
50042
|
+
continue;
|
|
50043
|
+
}
|
|
50044
|
+
case 2: {
|
|
50045
|
+
if (tag !== 18) {
|
|
50046
|
+
break;
|
|
50047
|
+
}
|
|
50048
|
+
message.environmentId = reader.string();
|
|
50049
|
+
continue;
|
|
50050
|
+
}
|
|
50051
|
+
}
|
|
50052
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50053
|
+
break;
|
|
50054
|
+
}
|
|
50055
|
+
reader.skip(tag & 7);
|
|
50056
|
+
}
|
|
50057
|
+
return message;
|
|
50058
|
+
},
|
|
50059
|
+
fromJSON(object) {
|
|
50060
|
+
return {
|
|
50061
|
+
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
50062
|
+
environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : ""
|
|
50063
|
+
};
|
|
50064
|
+
},
|
|
50065
|
+
toJSON(message) {
|
|
50066
|
+
const obj = {};
|
|
50067
|
+
if (message.tokenId !== "") {
|
|
50068
|
+
obj.tokenId = message.tokenId;
|
|
50069
|
+
}
|
|
50070
|
+
if (message.environmentId !== "") {
|
|
50071
|
+
obj.environmentId = message.environmentId;
|
|
50072
|
+
}
|
|
50073
|
+
return obj;
|
|
50074
|
+
},
|
|
50075
|
+
create(base) {
|
|
50076
|
+
return WebhookTokenEnvironmentAddRequest.fromPartial(base ?? {});
|
|
50077
|
+
},
|
|
50078
|
+
fromPartial(object) {
|
|
50079
|
+
const message = createBaseWebhookTokenEnvironmentAddRequest();
|
|
50080
|
+
message.tokenId = object.tokenId ?? "";
|
|
50081
|
+
message.environmentId = object.environmentId ?? "";
|
|
50082
|
+
return message;
|
|
50083
|
+
}
|
|
50084
|
+
};
|
|
50085
|
+
function createBaseWebhookTokenEnvironmentListRequest() {
|
|
50086
|
+
return { tokenId: "" };
|
|
50087
|
+
}
|
|
50088
|
+
var WebhookTokenEnvironmentListRequest = {
|
|
50089
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50090
|
+
if (message.tokenId !== "") {
|
|
50091
|
+
writer.uint32(10).string(message.tokenId);
|
|
50092
|
+
}
|
|
50093
|
+
return writer;
|
|
50094
|
+
},
|
|
50095
|
+
decode(input, length) {
|
|
50096
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50097
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50098
|
+
const message = createBaseWebhookTokenEnvironmentListRequest();
|
|
50099
|
+
while (reader.pos < end) {
|
|
50100
|
+
const tag = reader.uint32();
|
|
50101
|
+
switch (tag >>> 3) {
|
|
50102
|
+
case 1: {
|
|
50103
|
+
if (tag !== 10) {
|
|
50104
|
+
break;
|
|
50105
|
+
}
|
|
50106
|
+
message.tokenId = reader.string();
|
|
50107
|
+
continue;
|
|
50108
|
+
}
|
|
50109
|
+
}
|
|
50110
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50111
|
+
break;
|
|
50112
|
+
}
|
|
50113
|
+
reader.skip(tag & 7);
|
|
50114
|
+
}
|
|
50115
|
+
return message;
|
|
50116
|
+
},
|
|
50117
|
+
fromJSON(object) {
|
|
50118
|
+
return { tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "" };
|
|
50119
|
+
},
|
|
50120
|
+
toJSON(message) {
|
|
50121
|
+
const obj = {};
|
|
50122
|
+
if (message.tokenId !== "") {
|
|
50123
|
+
obj.tokenId = message.tokenId;
|
|
50124
|
+
}
|
|
50125
|
+
return obj;
|
|
50126
|
+
},
|
|
50127
|
+
create(base) {
|
|
50128
|
+
return WebhookTokenEnvironmentListRequest.fromPartial(base ?? {});
|
|
50129
|
+
},
|
|
50130
|
+
fromPartial(object) {
|
|
50131
|
+
const message = createBaseWebhookTokenEnvironmentListRequest();
|
|
50132
|
+
message.tokenId = object.tokenId ?? "";
|
|
50133
|
+
return message;
|
|
50134
|
+
}
|
|
50135
|
+
};
|
|
50136
|
+
function createBaseWebhookTokenEnvironmentListResponse() {
|
|
50137
|
+
return { environmentIds: [] };
|
|
50138
|
+
}
|
|
50139
|
+
var WebhookTokenEnvironmentListResponse = {
|
|
50140
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50141
|
+
for (const v of message.environmentIds) {
|
|
50142
|
+
writer.uint32(10).string(v);
|
|
50143
|
+
}
|
|
50144
|
+
return writer;
|
|
50145
|
+
},
|
|
50146
|
+
decode(input, length) {
|
|
50147
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50148
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50149
|
+
const message = createBaseWebhookTokenEnvironmentListResponse();
|
|
50150
|
+
while (reader.pos < end) {
|
|
50151
|
+
const tag = reader.uint32();
|
|
50152
|
+
switch (tag >>> 3) {
|
|
50153
|
+
case 1: {
|
|
50154
|
+
if (tag !== 10) {
|
|
50155
|
+
break;
|
|
50156
|
+
}
|
|
50157
|
+
message.environmentIds.push(reader.string());
|
|
50158
|
+
continue;
|
|
50159
|
+
}
|
|
50160
|
+
}
|
|
50161
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50162
|
+
break;
|
|
50163
|
+
}
|
|
50164
|
+
reader.skip(tag & 7);
|
|
50165
|
+
}
|
|
50166
|
+
return message;
|
|
50167
|
+
},
|
|
50168
|
+
fromJSON(object) {
|
|
50169
|
+
return {
|
|
50170
|
+
environmentIds: globalThis.Array.isArray(object?.environmentIds) ? object.environmentIds.map((e) => globalThis.String(e)) : []
|
|
50171
|
+
};
|
|
50172
|
+
},
|
|
50173
|
+
toJSON(message) {
|
|
50174
|
+
const obj = {};
|
|
50175
|
+
if (message.environmentIds?.length) {
|
|
50176
|
+
obj.environmentIds = message.environmentIds;
|
|
50177
|
+
}
|
|
50178
|
+
return obj;
|
|
50179
|
+
},
|
|
50180
|
+
create(base) {
|
|
50181
|
+
return WebhookTokenEnvironmentListResponse.fromPartial(base ?? {});
|
|
50182
|
+
},
|
|
50183
|
+
fromPartial(object) {
|
|
50184
|
+
const message = createBaseWebhookTokenEnvironmentListResponse();
|
|
50185
|
+
message.environmentIds = object.environmentIds?.map((e) => e) || [];
|
|
50186
|
+
return message;
|
|
50187
|
+
}
|
|
50188
|
+
};
|
|
50189
|
+
function createBaseWebhookTokenEnvironmentRemoveRequest() {
|
|
50190
|
+
return { tokenId: "", environmentId: "" };
|
|
50191
|
+
}
|
|
50192
|
+
var WebhookTokenEnvironmentRemoveRequest = {
|
|
50193
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50194
|
+
if (message.tokenId !== "") {
|
|
50195
|
+
writer.uint32(10).string(message.tokenId);
|
|
50196
|
+
}
|
|
50197
|
+
if (message.environmentId !== "") {
|
|
50198
|
+
writer.uint32(18).string(message.environmentId);
|
|
50199
|
+
}
|
|
50200
|
+
return writer;
|
|
50201
|
+
},
|
|
50202
|
+
decode(input, length) {
|
|
50203
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50204
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50205
|
+
const message = createBaseWebhookTokenEnvironmentRemoveRequest();
|
|
50206
|
+
while (reader.pos < end) {
|
|
50207
|
+
const tag = reader.uint32();
|
|
50208
|
+
switch (tag >>> 3) {
|
|
50209
|
+
case 1: {
|
|
50210
|
+
if (tag !== 10) {
|
|
50211
|
+
break;
|
|
50212
|
+
}
|
|
50213
|
+
message.tokenId = reader.string();
|
|
50214
|
+
continue;
|
|
50215
|
+
}
|
|
50216
|
+
case 2: {
|
|
50217
|
+
if (tag !== 18) {
|
|
50218
|
+
break;
|
|
50219
|
+
}
|
|
50220
|
+
message.environmentId = reader.string();
|
|
50221
|
+
continue;
|
|
50222
|
+
}
|
|
50223
|
+
}
|
|
50224
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50225
|
+
break;
|
|
50226
|
+
}
|
|
50227
|
+
reader.skip(tag & 7);
|
|
50228
|
+
}
|
|
50229
|
+
return message;
|
|
50230
|
+
},
|
|
50231
|
+
fromJSON(object) {
|
|
50232
|
+
return {
|
|
50233
|
+
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
50234
|
+
environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : ""
|
|
50235
|
+
};
|
|
50236
|
+
},
|
|
50237
|
+
toJSON(message) {
|
|
50238
|
+
const obj = {};
|
|
50239
|
+
if (message.tokenId !== "") {
|
|
50240
|
+
obj.tokenId = message.tokenId;
|
|
50241
|
+
}
|
|
50242
|
+
if (message.environmentId !== "") {
|
|
50243
|
+
obj.environmentId = message.environmentId;
|
|
50244
|
+
}
|
|
50245
|
+
return obj;
|
|
50246
|
+
},
|
|
50247
|
+
create(base) {
|
|
50248
|
+
return WebhookTokenEnvironmentRemoveRequest.fromPartial(base ?? {});
|
|
50249
|
+
},
|
|
50250
|
+
fromPartial(object) {
|
|
50251
|
+
const message = createBaseWebhookTokenEnvironmentRemoveRequest();
|
|
50252
|
+
message.tokenId = object.tokenId ?? "";
|
|
50253
|
+
message.environmentId = object.environmentId ?? "";
|
|
50254
|
+
return message;
|
|
50255
|
+
}
|
|
50256
|
+
};
|
|
50257
|
+
function createBaseWebhookTokenListForEnvironmentRequest() {
|
|
50258
|
+
return { environmentName: "" };
|
|
50259
|
+
}
|
|
50260
|
+
var WebhookTokenListForEnvironmentRequest = {
|
|
50261
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50262
|
+
if (message.environmentName !== "") {
|
|
50263
|
+
writer.uint32(10).string(message.environmentName);
|
|
50264
|
+
}
|
|
50265
|
+
return writer;
|
|
50266
|
+
},
|
|
50267
|
+
decode(input, length) {
|
|
50268
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50269
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50270
|
+
const message = createBaseWebhookTokenListForEnvironmentRequest();
|
|
50271
|
+
while (reader.pos < end) {
|
|
50272
|
+
const tag = reader.uint32();
|
|
50273
|
+
switch (tag >>> 3) {
|
|
50274
|
+
case 1: {
|
|
50275
|
+
if (tag !== 10) {
|
|
50276
|
+
break;
|
|
50277
|
+
}
|
|
50278
|
+
message.environmentName = reader.string();
|
|
50279
|
+
continue;
|
|
50280
|
+
}
|
|
50281
|
+
}
|
|
50282
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50283
|
+
break;
|
|
50284
|
+
}
|
|
50285
|
+
reader.skip(tag & 7);
|
|
50286
|
+
}
|
|
50287
|
+
return message;
|
|
50288
|
+
},
|
|
50289
|
+
fromJSON(object) {
|
|
50290
|
+
return { environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "" };
|
|
50291
|
+
},
|
|
50292
|
+
toJSON(message) {
|
|
50293
|
+
const obj = {};
|
|
50294
|
+
if (message.environmentName !== "") {
|
|
50295
|
+
obj.environmentName = message.environmentName;
|
|
50296
|
+
}
|
|
50297
|
+
return obj;
|
|
50298
|
+
},
|
|
50299
|
+
create(base) {
|
|
50300
|
+
return WebhookTokenListForEnvironmentRequest.fromPartial(base ?? {});
|
|
50301
|
+
},
|
|
50302
|
+
fromPartial(object) {
|
|
50303
|
+
const message = createBaseWebhookTokenListForEnvironmentRequest();
|
|
50304
|
+
message.environmentName = object.environmentName ?? "";
|
|
50305
|
+
return message;
|
|
50306
|
+
}
|
|
50307
|
+
};
|
|
50308
|
+
function createBaseWebhookTokenListResponse() {
|
|
50309
|
+
return { tokens: [] };
|
|
50310
|
+
}
|
|
50311
|
+
var WebhookTokenListResponse = {
|
|
50312
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50313
|
+
for (const v of message.tokens) {
|
|
50314
|
+
WebhookToken.encode(v, writer.uint32(10).fork()).join();
|
|
50315
|
+
}
|
|
50316
|
+
return writer;
|
|
50317
|
+
},
|
|
50318
|
+
decode(input, length) {
|
|
50319
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50320
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50321
|
+
const message = createBaseWebhookTokenListResponse();
|
|
50322
|
+
while (reader.pos < end) {
|
|
50323
|
+
const tag = reader.uint32();
|
|
50324
|
+
switch (tag >>> 3) {
|
|
50325
|
+
case 1: {
|
|
50326
|
+
if (tag !== 10) {
|
|
50327
|
+
break;
|
|
50328
|
+
}
|
|
50329
|
+
message.tokens.push(WebhookToken.decode(reader, reader.uint32()));
|
|
50330
|
+
continue;
|
|
50331
|
+
}
|
|
50332
|
+
}
|
|
50333
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50334
|
+
break;
|
|
50335
|
+
}
|
|
50336
|
+
reader.skip(tag & 7);
|
|
50337
|
+
}
|
|
50338
|
+
return message;
|
|
50339
|
+
},
|
|
50340
|
+
fromJSON(object) {
|
|
50341
|
+
return {
|
|
50342
|
+
tokens: globalThis.Array.isArray(object?.tokens) ? object.tokens.map((e) => WebhookToken.fromJSON(e)) : []
|
|
50343
|
+
};
|
|
50344
|
+
},
|
|
50345
|
+
toJSON(message) {
|
|
50346
|
+
const obj = {};
|
|
50347
|
+
if (message.tokens?.length) {
|
|
50348
|
+
obj.tokens = message.tokens.map((e) => WebhookToken.toJSON(e));
|
|
50349
|
+
}
|
|
50350
|
+
return obj;
|
|
50351
|
+
},
|
|
50352
|
+
create(base) {
|
|
50353
|
+
return WebhookTokenListResponse.fromPartial(base ?? {});
|
|
50354
|
+
},
|
|
50355
|
+
fromPartial(object) {
|
|
50356
|
+
const message = createBaseWebhookTokenListResponse();
|
|
50357
|
+
message.tokens = object.tokens?.map((e) => WebhookToken.fromPartial(e)) || [];
|
|
50358
|
+
return message;
|
|
50359
|
+
}
|
|
50360
|
+
};
|
|
48708
50361
|
function createBaseWorkspaceBillingReportItem() {
|
|
48709
|
-
return {
|
|
50362
|
+
return {
|
|
50363
|
+
objectId: "",
|
|
50364
|
+
description: "",
|
|
50365
|
+
environmentName: "",
|
|
50366
|
+
interval: void 0,
|
|
50367
|
+
cost: "",
|
|
50368
|
+
tags: {},
|
|
50369
|
+
costByResourceFloat: {},
|
|
50370
|
+
costByResource: {}
|
|
50371
|
+
};
|
|
48710
50372
|
}
|
|
48711
50373
|
var WorkspaceBillingReportItem = {
|
|
48712
50374
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -48728,6 +50390,12 @@ var WorkspaceBillingReportItem = {
|
|
|
48728
50390
|
Object.entries(message.tags).forEach(([key, value]) => {
|
|
48729
50391
|
WorkspaceBillingReportItem_TagsEntry.encode({ key, value }, writer.uint32(50).fork()).join();
|
|
48730
50392
|
});
|
|
50393
|
+
Object.entries(message.costByResourceFloat).forEach(([key, value]) => {
|
|
50394
|
+
WorkspaceBillingReportItem_CostByResourceFloatEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
50395
|
+
});
|
|
50396
|
+
Object.entries(message.costByResource).forEach(([key, value]) => {
|
|
50397
|
+
WorkspaceBillingReportItem_CostByResourceEntry.encode({ key, value }, writer.uint32(66).fork()).join();
|
|
50398
|
+
});
|
|
48731
50399
|
return writer;
|
|
48732
50400
|
},
|
|
48733
50401
|
decode(input, length) {
|
|
@@ -48782,6 +50450,26 @@ var WorkspaceBillingReportItem = {
|
|
|
48782
50450
|
}
|
|
48783
50451
|
continue;
|
|
48784
50452
|
}
|
|
50453
|
+
case 7: {
|
|
50454
|
+
if (tag !== 58) {
|
|
50455
|
+
break;
|
|
50456
|
+
}
|
|
50457
|
+
const entry7 = WorkspaceBillingReportItem_CostByResourceFloatEntry.decode(reader, reader.uint32());
|
|
50458
|
+
if (entry7.value !== void 0) {
|
|
50459
|
+
message.costByResourceFloat[entry7.key] = entry7.value;
|
|
50460
|
+
}
|
|
50461
|
+
continue;
|
|
50462
|
+
}
|
|
50463
|
+
case 8: {
|
|
50464
|
+
if (tag !== 66) {
|
|
50465
|
+
break;
|
|
50466
|
+
}
|
|
50467
|
+
const entry8 = WorkspaceBillingReportItem_CostByResourceEntry.decode(reader, reader.uint32());
|
|
50468
|
+
if (entry8.value !== void 0) {
|
|
50469
|
+
message.costByResource[entry8.key] = entry8.value;
|
|
50470
|
+
}
|
|
50471
|
+
continue;
|
|
50472
|
+
}
|
|
48785
50473
|
}
|
|
48786
50474
|
if ((tag & 7) === 4 || tag === 0) {
|
|
48787
50475
|
break;
|
|
@@ -48800,6 +50488,14 @@ var WorkspaceBillingReportItem = {
|
|
|
48800
50488
|
tags: isObject2(object.tags) ? Object.entries(object.tags).reduce((acc, [key, value]) => {
|
|
48801
50489
|
acc[key] = String(value);
|
|
48802
50490
|
return acc;
|
|
50491
|
+
}, {}) : {},
|
|
50492
|
+
costByResourceFloat: isObject2(object.costByResourceFloat) ? Object.entries(object.costByResourceFloat).reduce((acc, [key, value]) => {
|
|
50493
|
+
acc[key] = Number(value);
|
|
50494
|
+
return acc;
|
|
50495
|
+
}, {}) : {},
|
|
50496
|
+
costByResource: isObject2(object.costByResource) ? Object.entries(object.costByResource).reduce((acc, [key, value]) => {
|
|
50497
|
+
acc[key] = String(value);
|
|
50498
|
+
return acc;
|
|
48803
50499
|
}, {}) : {}
|
|
48804
50500
|
};
|
|
48805
50501
|
},
|
|
@@ -48829,6 +50525,24 @@ var WorkspaceBillingReportItem = {
|
|
|
48829
50525
|
});
|
|
48830
50526
|
}
|
|
48831
50527
|
}
|
|
50528
|
+
if (message.costByResourceFloat) {
|
|
50529
|
+
const entries = Object.entries(message.costByResourceFloat);
|
|
50530
|
+
if (entries.length > 0) {
|
|
50531
|
+
obj.costByResourceFloat = {};
|
|
50532
|
+
entries.forEach(([k, v]) => {
|
|
50533
|
+
obj.costByResourceFloat[k] = v;
|
|
50534
|
+
});
|
|
50535
|
+
}
|
|
50536
|
+
}
|
|
50537
|
+
if (message.costByResource) {
|
|
50538
|
+
const entries = Object.entries(message.costByResource);
|
|
50539
|
+
if (entries.length > 0) {
|
|
50540
|
+
obj.costByResource = {};
|
|
50541
|
+
entries.forEach(([k, v]) => {
|
|
50542
|
+
obj.costByResource[k] = v;
|
|
50543
|
+
});
|
|
50544
|
+
}
|
|
50545
|
+
}
|
|
48832
50546
|
return obj;
|
|
48833
50547
|
},
|
|
48834
50548
|
create(base) {
|
|
@@ -48847,6 +50561,24 @@ var WorkspaceBillingReportItem = {
|
|
|
48847
50561
|
}
|
|
48848
50562
|
return acc;
|
|
48849
50563
|
}, {});
|
|
50564
|
+
message.costByResourceFloat = Object.entries(object.costByResourceFloat ?? {}).reduce(
|
|
50565
|
+
(acc, [key, value]) => {
|
|
50566
|
+
if (value !== void 0) {
|
|
50567
|
+
acc[key] = globalThis.Number(value);
|
|
50568
|
+
}
|
|
50569
|
+
return acc;
|
|
50570
|
+
},
|
|
50571
|
+
{}
|
|
50572
|
+
);
|
|
50573
|
+
message.costByResource = Object.entries(object.costByResource ?? {}).reduce(
|
|
50574
|
+
(acc, [key, value]) => {
|
|
50575
|
+
if (value !== void 0) {
|
|
50576
|
+
acc[key] = globalThis.String(value);
|
|
50577
|
+
}
|
|
50578
|
+
return acc;
|
|
50579
|
+
},
|
|
50580
|
+
{}
|
|
50581
|
+
);
|
|
48850
50582
|
return message;
|
|
48851
50583
|
}
|
|
48852
50584
|
};
|
|
@@ -48918,8 +50650,151 @@ var WorkspaceBillingReportItem_TagsEntry = {
|
|
|
48918
50650
|
return message;
|
|
48919
50651
|
}
|
|
48920
50652
|
};
|
|
50653
|
+
function createBaseWorkspaceBillingReportItem_CostByResourceFloatEntry() {
|
|
50654
|
+
return { key: "", value: 0 };
|
|
50655
|
+
}
|
|
50656
|
+
var WorkspaceBillingReportItem_CostByResourceFloatEntry = {
|
|
50657
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50658
|
+
if (message.key !== "") {
|
|
50659
|
+
writer.uint32(10).string(message.key);
|
|
50660
|
+
}
|
|
50661
|
+
if (message.value !== 0) {
|
|
50662
|
+
writer.uint32(17).double(message.value);
|
|
50663
|
+
}
|
|
50664
|
+
return writer;
|
|
50665
|
+
},
|
|
50666
|
+
decode(input, length) {
|
|
50667
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50668
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50669
|
+
const message = createBaseWorkspaceBillingReportItem_CostByResourceFloatEntry();
|
|
50670
|
+
while (reader.pos < end) {
|
|
50671
|
+
const tag = reader.uint32();
|
|
50672
|
+
switch (tag >>> 3) {
|
|
50673
|
+
case 1: {
|
|
50674
|
+
if (tag !== 10) {
|
|
50675
|
+
break;
|
|
50676
|
+
}
|
|
50677
|
+
message.key = reader.string();
|
|
50678
|
+
continue;
|
|
50679
|
+
}
|
|
50680
|
+
case 2: {
|
|
50681
|
+
if (tag !== 17) {
|
|
50682
|
+
break;
|
|
50683
|
+
}
|
|
50684
|
+
message.value = reader.double();
|
|
50685
|
+
continue;
|
|
50686
|
+
}
|
|
50687
|
+
}
|
|
50688
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50689
|
+
break;
|
|
50690
|
+
}
|
|
50691
|
+
reader.skip(tag & 7);
|
|
50692
|
+
}
|
|
50693
|
+
return message;
|
|
50694
|
+
},
|
|
50695
|
+
fromJSON(object) {
|
|
50696
|
+
return {
|
|
50697
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
50698
|
+
value: isSet5(object.value) ? globalThis.Number(object.value) : 0
|
|
50699
|
+
};
|
|
50700
|
+
},
|
|
50701
|
+
toJSON(message) {
|
|
50702
|
+
const obj = {};
|
|
50703
|
+
if (message.key !== "") {
|
|
50704
|
+
obj.key = message.key;
|
|
50705
|
+
}
|
|
50706
|
+
if (message.value !== 0) {
|
|
50707
|
+
obj.value = message.value;
|
|
50708
|
+
}
|
|
50709
|
+
return obj;
|
|
50710
|
+
},
|
|
50711
|
+
create(base) {
|
|
50712
|
+
return WorkspaceBillingReportItem_CostByResourceFloatEntry.fromPartial(base ?? {});
|
|
50713
|
+
},
|
|
50714
|
+
fromPartial(object) {
|
|
50715
|
+
const message = createBaseWorkspaceBillingReportItem_CostByResourceFloatEntry();
|
|
50716
|
+
message.key = object.key ?? "";
|
|
50717
|
+
message.value = object.value ?? 0;
|
|
50718
|
+
return message;
|
|
50719
|
+
}
|
|
50720
|
+
};
|
|
50721
|
+
function createBaseWorkspaceBillingReportItem_CostByResourceEntry() {
|
|
50722
|
+
return { key: "", value: "" };
|
|
50723
|
+
}
|
|
50724
|
+
var WorkspaceBillingReportItem_CostByResourceEntry = {
|
|
50725
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50726
|
+
if (message.key !== "") {
|
|
50727
|
+
writer.uint32(10).string(message.key);
|
|
50728
|
+
}
|
|
50729
|
+
if (message.value !== "") {
|
|
50730
|
+
writer.uint32(18).string(message.value);
|
|
50731
|
+
}
|
|
50732
|
+
return writer;
|
|
50733
|
+
},
|
|
50734
|
+
decode(input, length) {
|
|
50735
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50736
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50737
|
+
const message = createBaseWorkspaceBillingReportItem_CostByResourceEntry();
|
|
50738
|
+
while (reader.pos < end) {
|
|
50739
|
+
const tag = reader.uint32();
|
|
50740
|
+
switch (tag >>> 3) {
|
|
50741
|
+
case 1: {
|
|
50742
|
+
if (tag !== 10) {
|
|
50743
|
+
break;
|
|
50744
|
+
}
|
|
50745
|
+
message.key = reader.string();
|
|
50746
|
+
continue;
|
|
50747
|
+
}
|
|
50748
|
+
case 2: {
|
|
50749
|
+
if (tag !== 18) {
|
|
50750
|
+
break;
|
|
50751
|
+
}
|
|
50752
|
+
message.value = reader.string();
|
|
50753
|
+
continue;
|
|
50754
|
+
}
|
|
50755
|
+
}
|
|
50756
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50757
|
+
break;
|
|
50758
|
+
}
|
|
50759
|
+
reader.skip(tag & 7);
|
|
50760
|
+
}
|
|
50761
|
+
return message;
|
|
50762
|
+
},
|
|
50763
|
+
fromJSON(object) {
|
|
50764
|
+
return {
|
|
50765
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
50766
|
+
value: isSet5(object.value) ? globalThis.String(object.value) : ""
|
|
50767
|
+
};
|
|
50768
|
+
},
|
|
50769
|
+
toJSON(message) {
|
|
50770
|
+
const obj = {};
|
|
50771
|
+
if (message.key !== "") {
|
|
50772
|
+
obj.key = message.key;
|
|
50773
|
+
}
|
|
50774
|
+
if (message.value !== "") {
|
|
50775
|
+
obj.value = message.value;
|
|
50776
|
+
}
|
|
50777
|
+
return obj;
|
|
50778
|
+
},
|
|
50779
|
+
create(base) {
|
|
50780
|
+
return WorkspaceBillingReportItem_CostByResourceEntry.fromPartial(base ?? {});
|
|
50781
|
+
},
|
|
50782
|
+
fromPartial(object) {
|
|
50783
|
+
const message = createBaseWorkspaceBillingReportItem_CostByResourceEntry();
|
|
50784
|
+
message.key = object.key ?? "";
|
|
50785
|
+
message.value = object.value ?? "";
|
|
50786
|
+
return message;
|
|
50787
|
+
}
|
|
50788
|
+
};
|
|
48921
50789
|
function createBaseWorkspaceBillingReportRequest() {
|
|
48922
|
-
return {
|
|
50790
|
+
return {
|
|
50791
|
+
startTimestamp: void 0,
|
|
50792
|
+
endTimestamp: void 0,
|
|
50793
|
+
resolution: "",
|
|
50794
|
+
tagNames: [],
|
|
50795
|
+
environmentIds: [],
|
|
50796
|
+
appIds: []
|
|
50797
|
+
};
|
|
48923
50798
|
}
|
|
48924
50799
|
var WorkspaceBillingReportRequest = {
|
|
48925
50800
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -48935,6 +50810,12 @@ var WorkspaceBillingReportRequest = {
|
|
|
48935
50810
|
for (const v of message.tagNames) {
|
|
48936
50811
|
writer.uint32(34).string(v);
|
|
48937
50812
|
}
|
|
50813
|
+
for (const v of message.environmentIds) {
|
|
50814
|
+
writer.uint32(42).string(v);
|
|
50815
|
+
}
|
|
50816
|
+
for (const v of message.appIds) {
|
|
50817
|
+
writer.uint32(50).string(v);
|
|
50818
|
+
}
|
|
48938
50819
|
return writer;
|
|
48939
50820
|
},
|
|
48940
50821
|
decode(input, length) {
|
|
@@ -48972,6 +50853,20 @@ var WorkspaceBillingReportRequest = {
|
|
|
48972
50853
|
message.tagNames.push(reader.string());
|
|
48973
50854
|
continue;
|
|
48974
50855
|
}
|
|
50856
|
+
case 5: {
|
|
50857
|
+
if (tag !== 42) {
|
|
50858
|
+
break;
|
|
50859
|
+
}
|
|
50860
|
+
message.environmentIds.push(reader.string());
|
|
50861
|
+
continue;
|
|
50862
|
+
}
|
|
50863
|
+
case 6: {
|
|
50864
|
+
if (tag !== 50) {
|
|
50865
|
+
break;
|
|
50866
|
+
}
|
|
50867
|
+
message.appIds.push(reader.string());
|
|
50868
|
+
continue;
|
|
50869
|
+
}
|
|
48975
50870
|
}
|
|
48976
50871
|
if ((tag & 7) === 4 || tag === 0) {
|
|
48977
50872
|
break;
|
|
@@ -48985,7 +50880,9 @@ var WorkspaceBillingReportRequest = {
|
|
|
48985
50880
|
startTimestamp: isSet5(object.startTimestamp) ? fromJsonTimestamp(object.startTimestamp) : void 0,
|
|
48986
50881
|
endTimestamp: isSet5(object.endTimestamp) ? fromJsonTimestamp(object.endTimestamp) : void 0,
|
|
48987
50882
|
resolution: isSet5(object.resolution) ? globalThis.String(object.resolution) : "",
|
|
48988
|
-
tagNames: globalThis.Array.isArray(object?.tagNames) ? object.tagNames.map((e) => globalThis.String(e)) : []
|
|
50883
|
+
tagNames: globalThis.Array.isArray(object?.tagNames) ? object.tagNames.map((e) => globalThis.String(e)) : [],
|
|
50884
|
+
environmentIds: globalThis.Array.isArray(object?.environmentIds) ? object.environmentIds.map((e) => globalThis.String(e)) : [],
|
|
50885
|
+
appIds: globalThis.Array.isArray(object?.appIds) ? object.appIds.map((e) => globalThis.String(e)) : []
|
|
48989
50886
|
};
|
|
48990
50887
|
},
|
|
48991
50888
|
toJSON(message) {
|
|
@@ -49002,6 +50899,12 @@ var WorkspaceBillingReportRequest = {
|
|
|
49002
50899
|
if (message.tagNames?.length) {
|
|
49003
50900
|
obj.tagNames = message.tagNames;
|
|
49004
50901
|
}
|
|
50902
|
+
if (message.environmentIds?.length) {
|
|
50903
|
+
obj.environmentIds = message.environmentIds;
|
|
50904
|
+
}
|
|
50905
|
+
if (message.appIds?.length) {
|
|
50906
|
+
obj.appIds = message.appIds;
|
|
50907
|
+
}
|
|
49005
50908
|
return obj;
|
|
49006
50909
|
},
|
|
49007
50910
|
create(base) {
|
|
@@ -49013,6 +50916,8 @@ var WorkspaceBillingReportRequest = {
|
|
|
49013
50916
|
message.endTimestamp = object.endTimestamp ?? void 0;
|
|
49014
50917
|
message.resolution = object.resolution ?? "";
|
|
49015
50918
|
message.tagNames = object.tagNames?.map((e) => e) || [];
|
|
50919
|
+
message.environmentIds = object.environmentIds?.map((e) => e) || [];
|
|
50920
|
+
message.appIds = object.appIds?.map((e) => e) || [];
|
|
49016
50921
|
return message;
|
|
49017
50922
|
}
|
|
49018
50923
|
};
|
|
@@ -49599,7 +51504,7 @@ var ModalClientDefinition = {
|
|
|
49599
51504
|
name: "AppRollback",
|
|
49600
51505
|
requestType: AppRollbackRequest,
|
|
49601
51506
|
requestStream: false,
|
|
49602
|
-
responseType:
|
|
51507
|
+
responseType: AppRollbackResponse,
|
|
49603
51508
|
responseStream: false,
|
|
49604
51509
|
options: {}
|
|
49605
51510
|
},
|
|
@@ -49826,6 +51731,15 @@ var ModalClientDefinition = {
|
|
|
49826
51731
|
responseStream: false,
|
|
49827
51732
|
options: {}
|
|
49828
51733
|
},
|
|
51734
|
+
/** Curl */
|
|
51735
|
+
curlGetAuthToken: {
|
|
51736
|
+
name: "CurlGetAuthToken",
|
|
51737
|
+
requestType: CurlAuthTokenRequest,
|
|
51738
|
+
requestStream: false,
|
|
51739
|
+
responseType: CurlAuthTokenResponse,
|
|
51740
|
+
responseStream: false,
|
|
51741
|
+
options: {}
|
|
51742
|
+
},
|
|
49829
51743
|
/** Dicts */
|
|
49830
51744
|
dictClear: {
|
|
49831
51745
|
name: "DictClear",
|
|
@@ -49957,6 +51871,22 @@ var ModalClientDefinition = {
|
|
|
49957
51871
|
responseStream: false,
|
|
49958
51872
|
options: {}
|
|
49959
51873
|
},
|
|
51874
|
+
endpointGetByName: {
|
|
51875
|
+
name: "EndpointGetByName",
|
|
51876
|
+
requestType: EndpointGetByNameRequest,
|
|
51877
|
+
requestStream: false,
|
|
51878
|
+
responseType: EndpointGetByNameResponse,
|
|
51879
|
+
responseStream: false,
|
|
51880
|
+
options: {}
|
|
51881
|
+
},
|
|
51882
|
+
endpointGetLifecycle: {
|
|
51883
|
+
name: "EndpointGetLifecycle",
|
|
51884
|
+
requestType: EndpointGetLifecycleRequest,
|
|
51885
|
+
requestStream: false,
|
|
51886
|
+
responseType: EndpointGetLifecycleResponse,
|
|
51887
|
+
responseStream: false,
|
|
51888
|
+
options: {}
|
|
51889
|
+
},
|
|
49960
51890
|
endpointList: {
|
|
49961
51891
|
name: "EndpointList",
|
|
49962
51892
|
requestType: EndpointListRequest,
|
|
@@ -49990,6 +51920,14 @@ var ModalClientDefinition = {
|
|
|
49990
51920
|
responseStream: false,
|
|
49991
51921
|
options: {}
|
|
49992
51922
|
},
|
|
51923
|
+
environmentGetBudget: {
|
|
51924
|
+
name: "EnvironmentGetBudget",
|
|
51925
|
+
requestType: EnvironmentGetBudgetRequest,
|
|
51926
|
+
requestStream: false,
|
|
51927
|
+
responseType: EnvironmentGetBudgetResponse,
|
|
51928
|
+
responseStream: false,
|
|
51929
|
+
options: {}
|
|
51930
|
+
},
|
|
49993
51931
|
environmentGetManaged: {
|
|
49994
51932
|
name: "EnvironmentGetManaged",
|
|
49995
51933
|
requestType: EnvironmentGetManagedRequest,
|
|
@@ -50022,6 +51960,14 @@ var ModalClientDefinition = {
|
|
|
50022
51960
|
responseStream: false,
|
|
50023
51961
|
options: {}
|
|
50024
51962
|
},
|
|
51963
|
+
environmentSetBudget: {
|
|
51964
|
+
name: "EnvironmentSetBudget",
|
|
51965
|
+
requestType: EnvironmentSetBudgetRequest,
|
|
51966
|
+
requestStream: false,
|
|
51967
|
+
responseType: Empty,
|
|
51968
|
+
responseStream: false,
|
|
51969
|
+
options: {}
|
|
51970
|
+
},
|
|
50025
51971
|
environmentSetManaged: {
|
|
50026
51972
|
name: "EnvironmentSetManaged",
|
|
50027
51973
|
requestType: EnvironmentSetManagedRequest,
|
|
@@ -51108,6 +53054,63 @@ var ModalClientDefinition = {
|
|
|
51108
53054
|
responseStream: false,
|
|
51109
53055
|
options: {}
|
|
51110
53056
|
},
|
|
53057
|
+
/** Webhook tokens (proxy tokens) */
|
|
53058
|
+
webhookTokenCreate: {
|
|
53059
|
+
name: "WebhookTokenCreate",
|
|
53060
|
+
requestType: WebhookTokenCreateRequest,
|
|
53061
|
+
requestStream: false,
|
|
53062
|
+
responseType: TokenCreateResponse,
|
|
53063
|
+
responseStream: false,
|
|
53064
|
+
options: {}
|
|
53065
|
+
},
|
|
53066
|
+
webhookTokenDelete: {
|
|
53067
|
+
name: "WebhookTokenDelete",
|
|
53068
|
+
requestType: TokenDeleteRequest,
|
|
53069
|
+
requestStream: false,
|
|
53070
|
+
responseType: Empty,
|
|
53071
|
+
responseStream: false,
|
|
53072
|
+
options: {}
|
|
53073
|
+
},
|
|
53074
|
+
webhookTokenEnvironmentAdd: {
|
|
53075
|
+
name: "WebhookTokenEnvironmentAdd",
|
|
53076
|
+
requestType: WebhookTokenEnvironmentAddRequest,
|
|
53077
|
+
requestStream: false,
|
|
53078
|
+
responseType: Empty,
|
|
53079
|
+
responseStream: false,
|
|
53080
|
+
options: {}
|
|
53081
|
+
},
|
|
53082
|
+
webhookTokenEnvironmentList: {
|
|
53083
|
+
name: "WebhookTokenEnvironmentList",
|
|
53084
|
+
requestType: WebhookTokenEnvironmentListRequest,
|
|
53085
|
+
requestStream: false,
|
|
53086
|
+
responseType: WebhookTokenEnvironmentListResponse,
|
|
53087
|
+
responseStream: false,
|
|
53088
|
+
options: {}
|
|
53089
|
+
},
|
|
53090
|
+
webhookTokenEnvironmentRemove: {
|
|
53091
|
+
name: "WebhookTokenEnvironmentRemove",
|
|
53092
|
+
requestType: WebhookTokenEnvironmentRemoveRequest,
|
|
53093
|
+
requestStream: false,
|
|
53094
|
+
responseType: Empty,
|
|
53095
|
+
responseStream: false,
|
|
53096
|
+
options: {}
|
|
53097
|
+
},
|
|
53098
|
+
webhookTokenList: {
|
|
53099
|
+
name: "WebhookTokenList",
|
|
53100
|
+
requestType: Empty,
|
|
53101
|
+
requestStream: false,
|
|
53102
|
+
responseType: WebhookTokenListResponse,
|
|
53103
|
+
responseStream: false,
|
|
53104
|
+
options: {}
|
|
53105
|
+
},
|
|
53106
|
+
webhookTokenListForEnvironment: {
|
|
53107
|
+
name: "WebhookTokenListForEnvironment",
|
|
53108
|
+
requestType: WebhookTokenListForEnvironmentRequest,
|
|
53109
|
+
requestStream: false,
|
|
53110
|
+
responseType: WebhookTokenListResponse,
|
|
53111
|
+
responseStream: false,
|
|
53112
|
+
options: {}
|
|
53113
|
+
},
|
|
51111
53114
|
/** Workspaces */
|
|
51112
53115
|
workspaceBillingReport: {
|
|
51113
53116
|
name: "WorkspaceBillingReport",
|
|
@@ -54036,10 +56039,10 @@ var SandboxStdioReadV2Response = {
|
|
|
54036
56039
|
return message;
|
|
54037
56040
|
}
|
|
54038
56041
|
};
|
|
54039
|
-
function
|
|
56042
|
+
function createBaseSandboxWaitUntilReadyTcrRequest() {
|
|
54040
56043
|
return { taskId: "", timeout: 0 };
|
|
54041
56044
|
}
|
|
54042
|
-
var
|
|
56045
|
+
var SandboxWaitUntilReadyTcrRequest = {
|
|
54043
56046
|
encode(message, writer = new BinaryWriter()) {
|
|
54044
56047
|
if (message.taskId !== "") {
|
|
54045
56048
|
writer.uint32(10).string(message.taskId);
|
|
@@ -54052,7 +56055,7 @@ var SandboxWaitUntilReadyRequest2 = {
|
|
|
54052
56055
|
decode(input, length) {
|
|
54053
56056
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
54054
56057
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
54055
|
-
const message =
|
|
56058
|
+
const message = createBaseSandboxWaitUntilReadyTcrRequest();
|
|
54056
56059
|
while (reader.pos < end) {
|
|
54057
56060
|
const tag = reader.uint32();
|
|
54058
56061
|
switch (tag >>> 3) {
|
|
@@ -54095,19 +56098,19 @@ var SandboxWaitUntilReadyRequest2 = {
|
|
|
54095
56098
|
return obj;
|
|
54096
56099
|
},
|
|
54097
56100
|
create(base) {
|
|
54098
|
-
return
|
|
56101
|
+
return SandboxWaitUntilReadyTcrRequest.fromPartial(base ?? {});
|
|
54099
56102
|
},
|
|
54100
56103
|
fromPartial(object) {
|
|
54101
|
-
const message =
|
|
56104
|
+
const message = createBaseSandboxWaitUntilReadyTcrRequest();
|
|
54102
56105
|
message.taskId = object.taskId ?? "";
|
|
54103
56106
|
message.timeout = object.timeout ?? 0;
|
|
54104
56107
|
return message;
|
|
54105
56108
|
}
|
|
54106
56109
|
};
|
|
54107
|
-
function
|
|
56110
|
+
function createBaseSandboxWaitUntilReadyTcrResponse() {
|
|
54108
56111
|
return { readyAt: 0 };
|
|
54109
56112
|
}
|
|
54110
|
-
var
|
|
56113
|
+
var SandboxWaitUntilReadyTcrResponse = {
|
|
54111
56114
|
encode(message, writer = new BinaryWriter()) {
|
|
54112
56115
|
if (message.readyAt !== 0) {
|
|
54113
56116
|
writer.uint32(9).double(message.readyAt);
|
|
@@ -54117,7 +56120,7 @@ var SandboxWaitUntilReadyResponse2 = {
|
|
|
54117
56120
|
decode(input, length) {
|
|
54118
56121
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
54119
56122
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
54120
|
-
const message =
|
|
56123
|
+
const message = createBaseSandboxWaitUntilReadyTcrResponse();
|
|
54121
56124
|
while (reader.pos < end) {
|
|
54122
56125
|
const tag = reader.uint32();
|
|
54123
56126
|
switch (tag >>> 3) {
|
|
@@ -54147,16 +56150,25 @@ var SandboxWaitUntilReadyResponse2 = {
|
|
|
54147
56150
|
return obj;
|
|
54148
56151
|
},
|
|
54149
56152
|
create(base) {
|
|
54150
|
-
return
|
|
56153
|
+
return SandboxWaitUntilReadyTcrResponse.fromPartial(base ?? {});
|
|
54151
56154
|
},
|
|
54152
56155
|
fromPartial(object) {
|
|
54153
|
-
const message =
|
|
56156
|
+
const message = createBaseSandboxWaitUntilReadyTcrResponse();
|
|
54154
56157
|
message.readyAt = object.readyAt ?? 0;
|
|
54155
56158
|
return message;
|
|
54156
56159
|
}
|
|
54157
56160
|
};
|
|
54158
56161
|
function createBaseTaskContainerCreateRequest() {
|
|
54159
|
-
return {
|
|
56162
|
+
return {
|
|
56163
|
+
taskId: "",
|
|
56164
|
+
containerName: "",
|
|
56165
|
+
imageId: "",
|
|
56166
|
+
args: [],
|
|
56167
|
+
env: {},
|
|
56168
|
+
workdir: "",
|
|
56169
|
+
secretIds: [],
|
|
56170
|
+
volumeMounts: []
|
|
56171
|
+
};
|
|
54160
56172
|
}
|
|
54161
56173
|
var TaskContainerCreateRequest = {
|
|
54162
56174
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -54181,6 +56193,9 @@ var TaskContainerCreateRequest = {
|
|
|
54181
56193
|
for (const v of message.secretIds) {
|
|
54182
56194
|
writer.uint32(66).string(v);
|
|
54183
56195
|
}
|
|
56196
|
+
for (const v of message.volumeMounts) {
|
|
56197
|
+
VolumeMount.encode(v, writer.uint32(74).fork()).join();
|
|
56198
|
+
}
|
|
54184
56199
|
return writer;
|
|
54185
56200
|
},
|
|
54186
56201
|
decode(input, length) {
|
|
@@ -54242,6 +56257,13 @@ var TaskContainerCreateRequest = {
|
|
|
54242
56257
|
message.secretIds.push(reader.string());
|
|
54243
56258
|
continue;
|
|
54244
56259
|
}
|
|
56260
|
+
case 9: {
|
|
56261
|
+
if (tag !== 74) {
|
|
56262
|
+
break;
|
|
56263
|
+
}
|
|
56264
|
+
message.volumeMounts.push(VolumeMount.decode(reader, reader.uint32()));
|
|
56265
|
+
continue;
|
|
56266
|
+
}
|
|
54245
56267
|
}
|
|
54246
56268
|
if ((tag & 7) === 4 || tag === 0) {
|
|
54247
56269
|
break;
|
|
@@ -54261,7 +56283,8 @@ var TaskContainerCreateRequest = {
|
|
|
54261
56283
|
return acc;
|
|
54262
56284
|
}, {}) : {},
|
|
54263
56285
|
workdir: isSet6(object.workdir) ? globalThis.String(object.workdir) : "",
|
|
54264
|
-
secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : []
|
|
56286
|
+
secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : [],
|
|
56287
|
+
volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : []
|
|
54265
56288
|
};
|
|
54266
56289
|
},
|
|
54267
56290
|
toJSON(message) {
|
|
@@ -54293,6 +56316,9 @@ var TaskContainerCreateRequest = {
|
|
|
54293
56316
|
if (message.secretIds?.length) {
|
|
54294
56317
|
obj.secretIds = message.secretIds;
|
|
54295
56318
|
}
|
|
56319
|
+
if (message.volumeMounts?.length) {
|
|
56320
|
+
obj.volumeMounts = message.volumeMounts.map((e) => VolumeMount.toJSON(e));
|
|
56321
|
+
}
|
|
54296
56322
|
return obj;
|
|
54297
56323
|
},
|
|
54298
56324
|
create(base) {
|
|
@@ -54312,6 +56338,7 @@ var TaskContainerCreateRequest = {
|
|
|
54312
56338
|
}, {});
|
|
54313
56339
|
message.workdir = object.workdir ?? "";
|
|
54314
56340
|
message.secretIds = object.secretIds?.map((e) => e) || [];
|
|
56341
|
+
message.volumeMounts = object.volumeMounts?.map((e) => VolumeMount.fromPartial(e)) || [];
|
|
54315
56342
|
return message;
|
|
54316
56343
|
}
|
|
54317
56344
|
};
|
|
@@ -56389,6 +58416,111 @@ var TaskMountDirectoryRequest = {
|
|
|
56389
58416
|
return message;
|
|
56390
58417
|
}
|
|
56391
58418
|
};
|
|
58419
|
+
function createBaseTaskSetNetworkAccessRequest() {
|
|
58420
|
+
return { taskId: "", networkAccess: void 0 };
|
|
58421
|
+
}
|
|
58422
|
+
var TaskSetNetworkAccessRequest = {
|
|
58423
|
+
encode(message, writer = new BinaryWriter()) {
|
|
58424
|
+
if (message.taskId !== "") {
|
|
58425
|
+
writer.uint32(10).string(message.taskId);
|
|
58426
|
+
}
|
|
58427
|
+
if (message.networkAccess !== void 0) {
|
|
58428
|
+
NetworkAccess.encode(message.networkAccess, writer.uint32(18).fork()).join();
|
|
58429
|
+
}
|
|
58430
|
+
return writer;
|
|
58431
|
+
},
|
|
58432
|
+
decode(input, length) {
|
|
58433
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58434
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
58435
|
+
const message = createBaseTaskSetNetworkAccessRequest();
|
|
58436
|
+
while (reader.pos < end) {
|
|
58437
|
+
const tag = reader.uint32();
|
|
58438
|
+
switch (tag >>> 3) {
|
|
58439
|
+
case 1: {
|
|
58440
|
+
if (tag !== 10) {
|
|
58441
|
+
break;
|
|
58442
|
+
}
|
|
58443
|
+
message.taskId = reader.string();
|
|
58444
|
+
continue;
|
|
58445
|
+
}
|
|
58446
|
+
case 2: {
|
|
58447
|
+
if (tag !== 18) {
|
|
58448
|
+
break;
|
|
58449
|
+
}
|
|
58450
|
+
message.networkAccess = NetworkAccess.decode(reader, reader.uint32());
|
|
58451
|
+
continue;
|
|
58452
|
+
}
|
|
58453
|
+
}
|
|
58454
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58455
|
+
break;
|
|
58456
|
+
}
|
|
58457
|
+
reader.skip(tag & 7);
|
|
58458
|
+
}
|
|
58459
|
+
return message;
|
|
58460
|
+
},
|
|
58461
|
+
fromJSON(object) {
|
|
58462
|
+
return {
|
|
58463
|
+
taskId: isSet6(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
58464
|
+
networkAccess: isSet6(object.networkAccess) ? NetworkAccess.fromJSON(object.networkAccess) : void 0
|
|
58465
|
+
};
|
|
58466
|
+
},
|
|
58467
|
+
toJSON(message) {
|
|
58468
|
+
const obj = {};
|
|
58469
|
+
if (message.taskId !== "") {
|
|
58470
|
+
obj.taskId = message.taskId;
|
|
58471
|
+
}
|
|
58472
|
+
if (message.networkAccess !== void 0) {
|
|
58473
|
+
obj.networkAccess = NetworkAccess.toJSON(message.networkAccess);
|
|
58474
|
+
}
|
|
58475
|
+
return obj;
|
|
58476
|
+
},
|
|
58477
|
+
create(base) {
|
|
58478
|
+
return TaskSetNetworkAccessRequest.fromPartial(base ?? {});
|
|
58479
|
+
},
|
|
58480
|
+
fromPartial(object) {
|
|
58481
|
+
const message = createBaseTaskSetNetworkAccessRequest();
|
|
58482
|
+
message.taskId = object.taskId ?? "";
|
|
58483
|
+
message.networkAccess = object.networkAccess !== void 0 && object.networkAccess !== null ? NetworkAccess.fromPartial(object.networkAccess) : void 0;
|
|
58484
|
+
return message;
|
|
58485
|
+
}
|
|
58486
|
+
};
|
|
58487
|
+
function createBaseTaskSetNetworkAccessResponse() {
|
|
58488
|
+
return {};
|
|
58489
|
+
}
|
|
58490
|
+
var TaskSetNetworkAccessResponse = {
|
|
58491
|
+
encode(_, writer = new BinaryWriter()) {
|
|
58492
|
+
return writer;
|
|
58493
|
+
},
|
|
58494
|
+
decode(input, length) {
|
|
58495
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58496
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
58497
|
+
const message = createBaseTaskSetNetworkAccessResponse();
|
|
58498
|
+
while (reader.pos < end) {
|
|
58499
|
+
const tag = reader.uint32();
|
|
58500
|
+
switch (tag >>> 3) {
|
|
58501
|
+
}
|
|
58502
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58503
|
+
break;
|
|
58504
|
+
}
|
|
58505
|
+
reader.skip(tag & 7);
|
|
58506
|
+
}
|
|
58507
|
+
return message;
|
|
58508
|
+
},
|
|
58509
|
+
fromJSON(_) {
|
|
58510
|
+
return {};
|
|
58511
|
+
},
|
|
58512
|
+
toJSON(_) {
|
|
58513
|
+
const obj = {};
|
|
58514
|
+
return obj;
|
|
58515
|
+
},
|
|
58516
|
+
create(base) {
|
|
58517
|
+
return TaskSetNetworkAccessResponse.fromPartial(base ?? {});
|
|
58518
|
+
},
|
|
58519
|
+
fromPartial(_) {
|
|
58520
|
+
const message = createBaseTaskSetNetworkAccessResponse();
|
|
58521
|
+
return message;
|
|
58522
|
+
}
|
|
58523
|
+
};
|
|
56392
58524
|
function createBaseTaskSnapshotDirectoryRequest() {
|
|
56393
58525
|
return {
|
|
56394
58526
|
taskId: "",
|
|
@@ -56798,9 +58930,9 @@ var TaskCommandRouterDefinition = {
|
|
|
56798
58930
|
},
|
|
56799
58931
|
sandboxWaitUntilReady: {
|
|
56800
58932
|
name: "SandboxWaitUntilReady",
|
|
56801
|
-
requestType:
|
|
58933
|
+
requestType: SandboxWaitUntilReadyTcrRequest,
|
|
56802
58934
|
requestStream: false,
|
|
56803
|
-
responseType:
|
|
58935
|
+
responseType: SandboxWaitUntilReadyTcrResponse,
|
|
56804
58936
|
responseStream: false,
|
|
56805
58937
|
options: {}
|
|
56806
58938
|
},
|
|
@@ -56869,7 +59001,9 @@ var TaskCommandRouterDefinition = {
|
|
|
56869
59001
|
},
|
|
56870
59002
|
/**
|
|
56871
59003
|
* Get the current stdin write status for an exec'd command. Used to resume
|
|
56872
|
-
* a TaskExecStdinWriteStream after a stream failure.
|
|
59004
|
+
* a TaskExecStdinWriteStream after a stream failure. Evicts any in-flight
|
|
59005
|
+
* TaskExecStdinWriteStream for this exec, so it is not safe to call for
|
|
59006
|
+
* read-only observability.
|
|
56873
59007
|
*/
|
|
56874
59008
|
taskExecStdinStatus: {
|
|
56875
59009
|
name: "TaskExecStdinStatus",
|
|
@@ -56890,7 +59024,7 @@ var TaskCommandRouterDefinition = {
|
|
|
56890
59024
|
},
|
|
56891
59025
|
/**
|
|
56892
59026
|
* Stream stdin bytes to an exec'd command. First message carries the
|
|
56893
|
-
* start
|
|
59027
|
+
* start message (task_id, exec_id, offset); subsequent messages carry data.
|
|
56894
59028
|
*/
|
|
56895
59029
|
taskExecStdinWriteStream: {
|
|
56896
59030
|
name: "TaskExecStdinWriteStream",
|
|
@@ -56927,6 +59061,15 @@ var TaskCommandRouterDefinition = {
|
|
|
56927
59061
|
responseStream: false,
|
|
56928
59062
|
options: {}
|
|
56929
59063
|
},
|
|
59064
|
+
/** Replace the task's outbound network allowlist (domains + CIDRs). */
|
|
59065
|
+
taskSetNetworkAccess: {
|
|
59066
|
+
name: "TaskSetNetworkAccess",
|
|
59067
|
+
requestType: TaskSetNetworkAccessRequest,
|
|
59068
|
+
requestStream: false,
|
|
59069
|
+
responseType: TaskSetNetworkAccessResponse,
|
|
59070
|
+
responseStream: false,
|
|
59071
|
+
options: {}
|
|
59072
|
+
},
|
|
56930
59073
|
/** Snapshot a directory with a mounted image, including any local changes, into a new image. */
|
|
56931
59074
|
taskSnapshotDirectory: {
|
|
56932
59075
|
name: "TaskSnapshotDirectory",
|
|
@@ -57322,7 +59465,7 @@ var AuthTokenManager = class {
|
|
|
57322
59465
|
|
|
57323
59466
|
// src/version.ts
|
|
57324
59467
|
function getSDKVersion() {
|
|
57325
|
-
return true ? "0.8.
|
|
59468
|
+
return true ? "0.8.1" : "0.0.0";
|
|
57326
59469
|
}
|
|
57327
59470
|
|
|
57328
59471
|
// src/logger.ts
|
|
@@ -58218,6 +60361,33 @@ var TaskCommandRouterClientImpl = class _TaskCommandRouterClientImpl {
|
|
|
58218
60361
|
async unmountDirectory(request) {
|
|
58219
60362
|
await this.callUnary(() => this.stub.taskUnmountDirectory(request));
|
|
58220
60363
|
}
|
|
60364
|
+
async sandboxWaitUntilReady(taskId, timeoutMs) {
|
|
60365
|
+
const deadlineMs = Date.now() + timeoutMs;
|
|
60366
|
+
try {
|
|
60367
|
+
return await callWithRetriesOnTransientErrors(
|
|
60368
|
+
() => this.callWithAuthRetry(() => {
|
|
60369
|
+
const remainingMs = Math.max(1, deadlineMs - Date.now());
|
|
60370
|
+
const request = SandboxWaitUntilReadyTcrRequest.create({
|
|
60371
|
+
taskId,
|
|
60372
|
+
timeout: remainingMs / 1e3
|
|
60373
|
+
});
|
|
60374
|
+
return this.stub.sandboxWaitUntilReady(request, {
|
|
60375
|
+
timeoutMs: remainingMs
|
|
60376
|
+
});
|
|
60377
|
+
}),
|
|
60378
|
+
10,
|
|
60379
|
+
2,
|
|
60380
|
+
10,
|
|
60381
|
+
deadlineMs,
|
|
60382
|
+
() => this.closed
|
|
60383
|
+
);
|
|
60384
|
+
} catch (err) {
|
|
60385
|
+
if (err instanceof RetryDeadlineExceededError) {
|
|
60386
|
+
throw new TimeoutError("Timeout expired");
|
|
60387
|
+
}
|
|
60388
|
+
throw err;
|
|
60389
|
+
}
|
|
60390
|
+
}
|
|
58221
60391
|
async refreshJwt() {
|
|
58222
60392
|
let error;
|
|
58223
60393
|
this.jwtRefreshLock = this.jwtRefreshLock.then(async () => {
|
|
@@ -59313,6 +61483,8 @@ var SB_LOGS_INITIAL_DELAY_MS = 10;
|
|
|
59313
61483
|
var SB_LOGS_DELAY_FACTOR = 2;
|
|
59314
61484
|
var SB_LOGS_MAX_RETRIES = 10;
|
|
59315
61485
|
var TTL_NO_EXPIRY_SENTINEL = -1;
|
|
61486
|
+
var CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MIN_LENGTH = 16;
|
|
61487
|
+
var CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MAX_LENGTH = 512;
|
|
59316
61488
|
function resolveTtlSeconds(ttlMs) {
|
|
59317
61489
|
if (ttlMs === void 0) {
|
|
59318
61490
|
return 30 * 24 * 3600;
|
|
@@ -59328,6 +61500,20 @@ function resolveTtlSeconds(ttlMs) {
|
|
|
59328
61500
|
}
|
|
59329
61501
|
return ttlMs / 1e3;
|
|
59330
61502
|
}
|
|
61503
|
+
function validateExperimentalEncryptionKey(key) {
|
|
61504
|
+
if (key === void 0) {
|
|
61505
|
+
return void 0;
|
|
61506
|
+
}
|
|
61507
|
+
if (!(key instanceof Uint8Array)) {
|
|
61508
|
+
throw new TypeError("experimentalEncryptionKey must be a Uint8Array");
|
|
61509
|
+
}
|
|
61510
|
+
if (key.length < CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MIN_LENGTH || key.length > CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MAX_LENGTH) {
|
|
61511
|
+
throw new InvalidError(
|
|
61512
|
+
`experimentalEncryptionKey must be between ${CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MIN_LENGTH} and ${CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MAX_LENGTH} bytes, got ${key.length} bytes`
|
|
61513
|
+
);
|
|
61514
|
+
}
|
|
61515
|
+
return key;
|
|
61516
|
+
}
|
|
59331
61517
|
var V1_SANDBOX_ID_ALPHABET = new Set(
|
|
59332
61518
|
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
|
59333
61519
|
);
|
|
@@ -59492,6 +61678,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
59492
61678
|
const secretIds = (params.secrets || []).map((secret) => secret.secretId);
|
|
59493
61679
|
let networkAccess;
|
|
59494
61680
|
if (params.blockNetwork) {
|
|
61681
|
+
if (params.i6pn) {
|
|
61682
|
+
throw new InvalidError(
|
|
61683
|
+
"blockNetwork disables all networking, including i6pn. To keep i6pn while blocking public egress, use an empty outbound allowlist (outboundCidrAllowlist: []) instead."
|
|
61684
|
+
);
|
|
61685
|
+
}
|
|
59495
61686
|
if (params.outboundCidrAllowlist) {
|
|
59496
61687
|
throw new Error(
|
|
59497
61688
|
"outboundCidrAllowlist cannot be used when blockNetwork is enabled"
|
|
@@ -59581,7 +61772,7 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
59581
61772
|
`experimental option '${name}' must be a boolean, got ${value}`
|
|
59582
61773
|
);
|
|
59583
61774
|
}
|
|
59584
|
-
acc[name] =
|
|
61775
|
+
acc[name] = String(value);
|
|
59585
61776
|
return acc;
|
|
59586
61777
|
},
|
|
59587
61778
|
{}
|
|
@@ -59618,10 +61809,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
59618
61809
|
proxyId: params.proxy?.proxyId,
|
|
59619
61810
|
readinessProbe: params.readinessProbe?.toProto(),
|
|
59620
61811
|
name: params.name,
|
|
59621
|
-
|
|
61812
|
+
experimentalOptionsV2: protoExperimentalOptions,
|
|
59622
61813
|
customDomain: params.customDomain,
|
|
59623
61814
|
includeOidcIdentityToken: params.includeOidcIdentityToken ?? false,
|
|
59624
|
-
inboundCidrAllowlist: params.inboundCidrAllowlist ?? []
|
|
61815
|
+
inboundCidrAllowlist: params.inboundCidrAllowlist ?? [],
|
|
61816
|
+
i6pnEnabled: params.i6pn ?? false
|
|
59625
61817
|
}
|
|
59626
61818
|
});
|
|
59627
61819
|
}
|
|
@@ -59635,26 +61827,6 @@ async function buildSandboxCreateV2RequestProto(appId, imageId, params = {}) {
|
|
|
59635
61827
|
if (params.customDomain) {
|
|
59636
61828
|
throw new Error("custom domains are not supported by experimentalCreate");
|
|
59637
61829
|
}
|
|
59638
|
-
if (params.proxy) {
|
|
59639
|
-
throw new Error("proxies are not supported by experimentalCreate");
|
|
59640
|
-
}
|
|
59641
|
-
if (params.readinessProbe) {
|
|
59642
|
-
throw new Error("readiness probes are not supported by experimentalCreate");
|
|
59643
|
-
}
|
|
59644
|
-
if (params.includeOidcIdentityToken) {
|
|
59645
|
-
throw new Error(
|
|
59646
|
-
"includeOidcIdentityToken is not supported by experimentalCreate"
|
|
59647
|
-
);
|
|
59648
|
-
}
|
|
59649
|
-
if (params.cloudBucketMounts) {
|
|
59650
|
-
for (const [mountPath, cbm] of Object.entries(params.cloudBucketMounts)) {
|
|
59651
|
-
if (cbm.oidcAuthRoleArn) {
|
|
59652
|
-
throw new Error(
|
|
59653
|
-
`CloudBucketMount with oidcAuthRoleArn is not supported by experimentalCreate (at mount path "${mountPath}")`
|
|
59654
|
-
);
|
|
59655
|
-
}
|
|
59656
|
-
}
|
|
59657
|
-
}
|
|
59658
61830
|
const req = await buildSandboxCreateRequestProto(appId, imageId, params);
|
|
59659
61831
|
return SandboxCreateV2Request.create({
|
|
59660
61832
|
appId: req.appId,
|
|
@@ -59708,12 +61880,11 @@ var SandboxService = class {
|
|
|
59708
61880
|
*
|
|
59709
61881
|
* Supported features include exec, encrypted tunnels, wait/poll/terminate,
|
|
59710
61882
|
* CPU and memory configuration, region placement, volumes, cloud bucket
|
|
59711
|
-
* mounts (with static credentials via {@link Secret}),
|
|
59712
|
-
* snapshots.
|
|
61883
|
+
* mounts (with static credentials via {@link Secret} or `oidcAuthRoleArn`),
|
|
61884
|
+
* OIDC identity tokens, {@link Proxy proxies}, and filesystem snapshots.
|
|
59713
61885
|
*
|
|
59714
|
-
* Features like tags, memory snapshots, GPUs, custom domains
|
|
59715
|
-
*
|
|
59716
|
-
* proxies, and readiness probes are not supported.
|
|
61886
|
+
* Features like tags, memory snapshots, GPUs, and custom domains are not
|
|
61887
|
+
* supported.
|
|
59717
61888
|
*
|
|
59718
61889
|
* V2 sandboxes created with this method are not currently returned by
|
|
59719
61890
|
* {@link SandboxService#list client.sandboxes.list()} and cannot be looked up
|
|
@@ -59954,6 +62125,27 @@ function buildTaskExecStartRequestProto(taskId, execId, command, params, contain
|
|
|
59954
62125
|
containerId: containerId ?? ""
|
|
59955
62126
|
});
|
|
59956
62127
|
}
|
|
62128
|
+
function buildTaskMountDirectoryRequestProto(taskId, path2, imageId, params) {
|
|
62129
|
+
return TaskMountDirectoryRequest.create({
|
|
62130
|
+
taskId,
|
|
62131
|
+
path: new TextEncoder().encode(path2),
|
|
62132
|
+
imageId,
|
|
62133
|
+
customerSuppliedEncryptionKey: validateExperimentalEncryptionKey(
|
|
62134
|
+
params?.experimentalEncryptionKey
|
|
62135
|
+
)
|
|
62136
|
+
});
|
|
62137
|
+
}
|
|
62138
|
+
function buildTaskSnapshotDirectoryRequestProto(taskId, path2, snapshotId, ttlSeconds, params) {
|
|
62139
|
+
return TaskSnapshotDirectoryRequest.create({
|
|
62140
|
+
taskId,
|
|
62141
|
+
path: new TextEncoder().encode(path2),
|
|
62142
|
+
snapshotId,
|
|
62143
|
+
ttlSeconds,
|
|
62144
|
+
customerSuppliedEncryptionKey: validateExperimentalEncryptionKey(
|
|
62145
|
+
params?.experimentalEncryptionKey
|
|
62146
|
+
)
|
|
62147
|
+
});
|
|
62148
|
+
}
|
|
59957
62149
|
var Sandbox2 = class _Sandbox {
|
|
59958
62150
|
#client;
|
|
59959
62151
|
sandboxId;
|
|
@@ -60245,9 +62437,16 @@ var Sandbox2 = class _Sandbox {
|
|
|
60245
62437
|
async createConnectToken(params) {
|
|
60246
62438
|
this.#ensureAttached();
|
|
60247
62439
|
this.#ensureV1("createConnectToken");
|
|
62440
|
+
const port = params?.port ?? 8080;
|
|
62441
|
+
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
62442
|
+
throw new InvalidError(
|
|
62443
|
+
`createConnectToken() expects \`port\` in [1, 65535], got ${port}`
|
|
62444
|
+
);
|
|
62445
|
+
}
|
|
60248
62446
|
const resp = await this.#client.cpClient.sandboxCreateConnectToken({
|
|
60249
62447
|
sandboxId: this.sandboxId,
|
|
60250
|
-
userMetadata: params?.userMetadata
|
|
62448
|
+
userMetadata: params?.userMetadata,
|
|
62449
|
+
port
|
|
60251
62450
|
});
|
|
60252
62451
|
return { url: resp.url, token: resp.token };
|
|
60253
62452
|
}
|
|
@@ -60302,35 +62501,11 @@ var Sandbox2 = class _Sandbox {
|
|
|
60302
62501
|
*/
|
|
60303
62502
|
async waitUntilReady(timeoutMs = 3e5) {
|
|
60304
62503
|
this.#ensureAttached();
|
|
60305
|
-
this.#ensureV1("waitUntilReady");
|
|
60306
62504
|
if (timeoutMs <= 0) {
|
|
60307
62505
|
throw new InvalidError(`timeoutMs must be positive, got ${timeoutMs}`);
|
|
60308
62506
|
}
|
|
60309
|
-
const
|
|
60310
|
-
|
|
60311
|
-
const remainingMs = deadline - Date.now();
|
|
60312
|
-
if (remainingMs <= 0) {
|
|
60313
|
-
throw new TimeoutError("Sandbox operation timed out");
|
|
60314
|
-
}
|
|
60315
|
-
const requestTimeoutMs = Math.min(
|
|
60316
|
-
remainingMs,
|
|
60317
|
-
5e4
|
|
60318
|
-
// Max request timeout for each gRPC call
|
|
60319
|
-
);
|
|
60320
|
-
try {
|
|
60321
|
-
const resp = await this.#client.cpClient.sandboxWaitUntilReady({
|
|
60322
|
-
sandboxId: this.sandboxId,
|
|
60323
|
-
timeout: requestTimeoutMs / 1e3
|
|
60324
|
-
});
|
|
60325
|
-
if (resp.readyAt > 0) {
|
|
60326
|
-
return;
|
|
60327
|
-
}
|
|
60328
|
-
} catch (err) {
|
|
60329
|
-
if (err instanceof ClientError14 && err.code === Status14.DEADLINE_EXCEEDED)
|
|
60330
|
-
continue;
|
|
60331
|
-
throw err;
|
|
60332
|
-
}
|
|
60333
|
-
}
|
|
62507
|
+
const [taskId, commandRouterClient] = await this.#getCommandRouter();
|
|
62508
|
+
await commandRouterClient.sandboxWaitUntilReady(taskId, timeoutMs);
|
|
60334
62509
|
}
|
|
60335
62510
|
/** Get {@link Tunnel} metadata for the Sandbox.
|
|
60336
62511
|
*
|
|
@@ -60393,8 +62568,9 @@ var Sandbox2 = class _Sandbox {
|
|
|
60393
62568
|
*
|
|
60394
62569
|
* @param path - The path where the directory should be mounted
|
|
60395
62570
|
* @param image - Optional {@link Image} to mount. If undefined, mounts an empty directory.
|
|
62571
|
+
* @param params - Optional parameters; see {@link SandboxMountImageParams}.
|
|
60396
62572
|
*/
|
|
60397
|
-
async mountImage(path2, image) {
|
|
62573
|
+
async mountImage(path2, image, params) {
|
|
60398
62574
|
this.#ensureAttached();
|
|
60399
62575
|
const [taskId, commandRouterClient] = await this.#getCommandRouter();
|
|
60400
62576
|
if (image && !image.imageId) {
|
|
@@ -60402,13 +62578,13 @@ var Sandbox2 = class _Sandbox {
|
|
|
60402
62578
|
"Image must be built before mounting. Call `image.build(app)` first."
|
|
60403
62579
|
);
|
|
60404
62580
|
}
|
|
60405
|
-
const pathBytes = new TextEncoder().encode(path2);
|
|
60406
62581
|
const imageId = image?.imageId ?? "";
|
|
60407
|
-
const request =
|
|
62582
|
+
const request = buildTaskMountDirectoryRequestProto(
|
|
60408
62583
|
taskId,
|
|
60409
|
-
|
|
60410
|
-
imageId
|
|
60411
|
-
|
|
62584
|
+
path2,
|
|
62585
|
+
imageId,
|
|
62586
|
+
params
|
|
62587
|
+
);
|
|
60412
62588
|
await commandRouterClient.mountDirectory(request);
|
|
60413
62589
|
}
|
|
60414
62590
|
/**
|
|
@@ -60446,13 +62622,13 @@ var Sandbox2 = class _Sandbox {
|
|
|
60446
62622
|
const wireTtlSeconds = resolveTtlSeconds(params?.ttlMs);
|
|
60447
62623
|
const timeoutMs = params?.timeoutMs || 55e3;
|
|
60448
62624
|
const [taskId, commandRouterClient] = await this.#getCommandRouter();
|
|
60449
|
-
const
|
|
60450
|
-
const request = TaskSnapshotDirectoryRequest.create({
|
|
62625
|
+
const request = buildTaskSnapshotDirectoryRequestProto(
|
|
60451
62626
|
taskId,
|
|
60452
|
-
|
|
60453
|
-
|
|
60454
|
-
|
|
60455
|
-
|
|
62627
|
+
path2,
|
|
62628
|
+
uuidv42(),
|
|
62629
|
+
wireTtlSeconds,
|
|
62630
|
+
params
|
|
62631
|
+
);
|
|
60456
62632
|
const response = await commandRouterClient.snapshotDirectory(request, {
|
|
60457
62633
|
timeoutMs
|
|
60458
62634
|
});
|