@alienplatform/sdk 1.11.2 → 1.12.0
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/.turbo/turbo-build.log +18 -44
- package/dist/bearerTokenAuthenticationPolicy.js +40 -40
- package/dist/{serde.js → checksum.js} +1103 -469
- package/dist/dist-cjs.js +15256 -1
- package/dist/dist.js +36 -23
- package/dist/es5.js +107 -11
- package/dist/esm.js +4803 -4946
- package/dist/esm2.js +298 -236
- package/dist/event-streams.js +571 -4
- package/dist/generated/artifact_registry.d.ts +14 -14
- package/dist/generated/artifact_registry.d.ts.map +1 -1
- package/dist/generated/build.d.ts +6 -6
- package/dist/generated/build.d.ts.map +1 -1
- package/dist/generated/container.d.ts +6 -6
- package/dist/generated/container.d.ts.map +1 -1
- package/dist/generated/control.d.ts +8 -8
- package/dist/generated/control.d.ts.map +1 -1
- package/dist/generated/kv.d.ts +10 -10
- package/dist/generated/kv.d.ts.map +1 -1
- package/dist/generated/queue.d.ts +6 -6
- package/dist/generated/queue.d.ts.map +1 -1
- package/dist/generated/service_account.d.ts +4 -4
- package/dist/generated/service_account.d.ts.map +1 -1
- package/dist/generated/storage.d.ts +28 -28
- package/dist/generated/storage.d.ts.map +1 -1
- package/dist/generated/vault.d.ts +6 -6
- package/dist/generated/vault.d.ts.map +1 -1
- package/dist/generated/wait_until.d.ts +8 -8
- package/dist/generated/wait_until.d.ts.map +1 -1
- package/dist/generated/worker.d.ts +4 -4
- package/dist/generated/worker.d.ts.map +1 -1
- package/dist/index.js +311 -278
- package/dist/open.js +2 -1
- package/dist/rolldown-runtime.js +9 -2
- package/dist/src.js +10240 -10043
- package/dist/src2.js +15 -13
- package/package.json +4 -4
- package/src/generated/artifact_registry.ts +125 -35
- package/src/generated/build.ts +67 -19
- package/src/generated/container.ts +28 -10
- package/src/generated/control.ts +130 -34
- package/src/generated/google/protobuf/duration.ts +1 -1
- package/src/generated/google/protobuf/timestamp.ts +1 -1
- package/src/generated/kv.ts +53 -21
- package/src/generated/queue.ts +37 -13
- package/src/generated/service_account.ts +64 -16
- package/src/generated/storage.ts +189 -61
- package/src/generated/vault.ts +37 -13
- package/src/generated/wait_until.ts +68 -20
- package/src/generated/worker.ts +29 -11
- package/dist/client.js +0 -2376
- package/dist/dist-cjs2.js +0 -718
- package/dist/dist-cjs3.js +0 -2486
- package/dist/dist-cjs4.js +0 -171
- package/dist/dist-cjs5.js +0 -429
- package/dist/dist-cjs6.js +0 -60
- package/dist/dist-cjs7.js +0 -978
- package/dist/dist-cjs8.js +0 -86
- package/dist/dist-cjs9.js +0 -319
- package/dist/package.js +0 -4
- package/dist/protocols.js +0 -954
- package/dist/protocols2.js +0 -5565
- package/dist/signin.js +0 -723
- package/dist/sso-oidc.js +0 -940
- package/dist/sts.js +0 -1329
- package/dist/tslib.es6.js +0 -543
package/dist/src2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as require_descriptor$2, c as require_index_minimal, d as require_package$4, i as require_api, l as require_umd, n as require_type, o as require_descriptor$1, r as require_source_context, s as require_protobufjs, t as require_src$9, u as require_lodash_camelcase } from "./src.js";
|
|
3
3
|
import { n as require_ecdsa_sig_formatter, r as require_safe_buffer, t as require_jws } from "./jws.js";
|
|
4
4
|
import { t as require_dist } from "./dist2.js";
|
|
5
5
|
import crypto$1 from "crypto";
|
|
@@ -40180,7 +40180,7 @@ var require_url_state_machine = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
40180
40180
|
function isC0ControlPercentEncode(c) {
|
|
40181
40181
|
return c <= 31 || c > 126;
|
|
40182
40182
|
}
|
|
40183
|
-
const extraPathPercentEncodeSet = new Set([
|
|
40183
|
+
const extraPathPercentEncodeSet = /* @__PURE__ */ new Set([
|
|
40184
40184
|
32,
|
|
40185
40185
|
34,
|
|
40186
40186
|
35,
|
|
@@ -40194,7 +40194,7 @@ var require_url_state_machine = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
40194
40194
|
function isPathPercentEncode(c) {
|
|
40195
40195
|
return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c);
|
|
40196
40196
|
}
|
|
40197
|
-
const extraUserinfoPercentEncodeSet = new Set([
|
|
40197
|
+
const extraUserinfoPercentEncodeSet = /* @__PURE__ */ new Set([
|
|
40198
40198
|
47,
|
|
40199
40199
|
58,
|
|
40200
40200
|
59,
|
|
@@ -40720,7 +40720,7 @@ var require_url_state_machine = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
40720
40720
|
}
|
|
40721
40721
|
return true;
|
|
40722
40722
|
};
|
|
40723
|
-
const fileOtherwiseCodePoints = new Set([
|
|
40723
|
+
const fileOtherwiseCodePoints = /* @__PURE__ */ new Set([
|
|
40724
40724
|
47,
|
|
40725
40725
|
92,
|
|
40726
40726
|
63,
|
|
@@ -42812,7 +42812,7 @@ function rng() {
|
|
|
42812
42812
|
}
|
|
42813
42813
|
var rnds8Pool, poolPtr;
|
|
42814
42814
|
var init_rng = __esmMin((() => {
|
|
42815
|
-
rnds8Pool = new Uint8Array(256);
|
|
42815
|
+
rnds8Pool = /* @__PURE__ */ new Uint8Array(256);
|
|
42816
42816
|
poolPtr = rnds8Pool.length;
|
|
42817
42817
|
}));
|
|
42818
42818
|
//#endregion
|
|
@@ -42902,7 +42902,7 @@ var init_v1 = __esmMin((() => {
|
|
|
42902
42902
|
function parse(uuid) {
|
|
42903
42903
|
if (!validate(uuid)) throw TypeError("Invalid UUID");
|
|
42904
42904
|
let v;
|
|
42905
|
-
const arr = new Uint8Array(16);
|
|
42905
|
+
const arr = /* @__PURE__ */ new Uint8Array(16);
|
|
42906
42906
|
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
42907
42907
|
arr[1] = v >>> 16 & 255;
|
|
42908
42908
|
arr[2] = v >>> 8 & 255;
|
|
@@ -43713,7 +43713,7 @@ var require_bignumber = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
43713
43713
|
for (; i < k;) {
|
|
43714
43714
|
v = a[i] * 131072 + (a[i + 1] >>> 11);
|
|
43715
43715
|
if (v >= 9e15) {
|
|
43716
|
-
b = crypto.getRandomValues(new Uint32Array(2));
|
|
43716
|
+
b = crypto.getRandomValues(/* @__PURE__ */ new Uint32Array(2));
|
|
43717
43717
|
a[i] = b[0];
|
|
43718
43718
|
a[i + 1] = b[1];
|
|
43719
43719
|
} else {
|
|
@@ -45367,7 +45367,8 @@ var require_logging_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
45367
45367
|
severity,
|
|
45368
45368
|
message: util$1.format(...args)
|
|
45369
45369
|
}, fields);
|
|
45370
|
-
|
|
45370
|
+
const jsonString = JSON.stringify(json);
|
|
45371
|
+
debugLogger(fields, jsonString);
|
|
45371
45372
|
};
|
|
45372
45373
|
}
|
|
45373
45374
|
setFilters() {
|
|
@@ -50603,10 +50604,11 @@ var require_downscopedclient = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50603
50604
|
*/
|
|
50604
50605
|
async refreshAccessTokenAsync() {
|
|
50605
50606
|
var _a;
|
|
50607
|
+
const subjectToken = (await this.authClient.getAccessToken()).token;
|
|
50606
50608
|
const stsCredentialsOptions = {
|
|
50607
50609
|
grantType: STS_GRANT_TYPE,
|
|
50608
50610
|
requestedTokenType: STS_REQUEST_TOKEN_TYPE,
|
|
50609
|
-
subjectToken
|
|
50611
|
+
subjectToken,
|
|
50610
50612
|
subjectTokenType: STS_SUBJECT_TOKEN_TYPE
|
|
50611
50613
|
};
|
|
50612
50614
|
const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, void 0, this.credentialAccessBoundary);
|
|
@@ -51450,7 +51452,7 @@ var require_status$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
51450
51452
|
Status[Status["DATA_LOSS"] = 15] = "DATA_LOSS";
|
|
51451
51453
|
Status[Status["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED";
|
|
51452
51454
|
})(Status || (exports.Status = Status = {}));
|
|
51453
|
-
exports.HttpCodeToRpcCodeMap = new Map([
|
|
51455
|
+
exports.HttpCodeToRpcCodeMap = /* @__PURE__ */ new Map([
|
|
51454
51456
|
[400, Status.INVALID_ARGUMENT],
|
|
51455
51457
|
[401, Status.UNAUTHENTICATED],
|
|
51456
51458
|
[403, Status.PERMISSION_DENIED],
|
|
@@ -52475,7 +52477,7 @@ var require_grpc = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
52475
52477
|
};
|
|
52476
52478
|
}));
|
|
52477
52479
|
//#endregion
|
|
52478
|
-
//#region ../../node_modules/.pnpm/protobufjs@7.5
|
|
52480
|
+
//#region ../../node_modules/.pnpm/protobufjs@7.6.5/node_modules/protobufjs/minimal.js
|
|
52479
52481
|
var require_minimal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
52480
52482
|
module.exports = require_index_minimal();
|
|
52481
52483
|
}));
|
|
@@ -61377,7 +61379,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61377
61379
|
return fullyQualifiedTypeName;
|
|
61378
61380
|
}
|
|
61379
61381
|
exports.getFullyQualifiedTypeName = getFullyQualifiedTypeName;
|
|
61380
|
-
exports.wrapperTypes = new Set([
|
|
61382
|
+
exports.wrapperTypes = /* @__PURE__ */ new Set([
|
|
61381
61383
|
".google.protobuf.DoubleValue",
|
|
61382
61384
|
".google.protobuf.FloatValue",
|
|
61383
61385
|
".google.protobuf.Int64Value",
|
|
@@ -61644,7 +61646,7 @@ var require_any = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61644
61646
|
exports.googleProtobufAnyFromProto3JSON = exports.googleProtobufAnyToProto3JSON = void 0;
|
|
61645
61647
|
const fromproto3json_1 = require_fromproto3json();
|
|
61646
61648
|
const toproto3json_1 = require_toproto3json();
|
|
61647
|
-
const specialJSON = new Set([
|
|
61649
|
+
const specialJSON = /* @__PURE__ */ new Set([
|
|
61648
61650
|
"google.protobuf.Any",
|
|
61649
61651
|
"google.protobuf.Duration",
|
|
61650
61652
|
"google.protobuf.FieldMask",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@bufbuild/protobuf": "^2.5.3",
|
|
50
|
-
"@grpc/grpc-js": "^1.
|
|
50
|
+
"@grpc/grpc-js": "^1.14.4",
|
|
51
51
|
"long": "^5.3.2",
|
|
52
52
|
"nice-grpc": "^2.1.11",
|
|
53
53
|
"nice-grpc-common": "^2.0.2",
|
|
54
|
-
"protobufjs": "^7.5
|
|
54
|
+
"protobufjs": "^7.6.5",
|
|
55
55
|
"ts-pattern": "^5.7.1",
|
|
56
56
|
"zod": "4.3.2",
|
|
57
|
-
"@alienplatform/core": "^1.
|
|
57
|
+
"@alienplatform/core": "^1.12.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@aws-sdk/client-secrets-manager": "^3.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.12.0
|
|
4
4
|
// protoc v7.34.1
|
|
5
5
|
// source: artifact_registry.proto
|
|
6
6
|
|
|
@@ -322,8 +322,16 @@ export const CreateRepositoryRequest: MessageFns<CreateRepositoryRequest> = {
|
|
|
322
322
|
|
|
323
323
|
fromJSON(object: any): CreateRepositoryRequest {
|
|
324
324
|
return {
|
|
325
|
-
bindingName: isSet(object.bindingName)
|
|
326
|
-
|
|
325
|
+
bindingName: isSet(object.bindingName)
|
|
326
|
+
? globalThis.String(object.bindingName)
|
|
327
|
+
: isSet(object.binding_name)
|
|
328
|
+
? globalThis.String(object.binding_name)
|
|
329
|
+
: "",
|
|
330
|
+
repoName: isSet(object.repoName)
|
|
331
|
+
? globalThis.String(object.repoName)
|
|
332
|
+
: isSet(object.repo_name)
|
|
333
|
+
? globalThis.String(object.repo_name)
|
|
334
|
+
: "",
|
|
327
335
|
};
|
|
328
336
|
},
|
|
329
337
|
|
|
@@ -458,8 +466,16 @@ export const GetRepositoryRequest: MessageFns<GetRepositoryRequest> = {
|
|
|
458
466
|
|
|
459
467
|
fromJSON(object: any): GetRepositoryRequest {
|
|
460
468
|
return {
|
|
461
|
-
bindingName: isSet(object.bindingName)
|
|
462
|
-
|
|
469
|
+
bindingName: isSet(object.bindingName)
|
|
470
|
+
? globalThis.String(object.bindingName)
|
|
471
|
+
: isSet(object.binding_name)
|
|
472
|
+
? globalThis.String(object.binding_name)
|
|
473
|
+
: "",
|
|
474
|
+
repoId: isSet(object.repoId)
|
|
475
|
+
? globalThis.String(object.repoId)
|
|
476
|
+
: isSet(object.repo_id)
|
|
477
|
+
? globalThis.String(object.repo_id)
|
|
478
|
+
: "",
|
|
463
479
|
};
|
|
464
480
|
},
|
|
465
481
|
|
|
@@ -605,8 +621,16 @@ export const AddCrossAccountAccessRequest: MessageFns<AddCrossAccountAccessReque
|
|
|
605
621
|
|
|
606
622
|
fromJSON(object: any): AddCrossAccountAccessRequest {
|
|
607
623
|
return {
|
|
608
|
-
bindingName: isSet(object.bindingName)
|
|
609
|
-
|
|
624
|
+
bindingName: isSet(object.bindingName)
|
|
625
|
+
? globalThis.String(object.bindingName)
|
|
626
|
+
: isSet(object.binding_name)
|
|
627
|
+
? globalThis.String(object.binding_name)
|
|
628
|
+
: "",
|
|
629
|
+
repoId: isSet(object.repoId)
|
|
630
|
+
? globalThis.String(object.repoId)
|
|
631
|
+
: isSet(object.repo_id)
|
|
632
|
+
? globalThis.String(object.repo_id)
|
|
633
|
+
: "",
|
|
610
634
|
access: isSet(object.access) ? CrossAccountAccess.fromJSON(object.access) : undefined,
|
|
611
635
|
};
|
|
612
636
|
},
|
|
@@ -742,8 +766,16 @@ export const RemoveCrossAccountAccessRequest: MessageFns<RemoveCrossAccountAcces
|
|
|
742
766
|
|
|
743
767
|
fromJSON(object: any): RemoveCrossAccountAccessRequest {
|
|
744
768
|
return {
|
|
745
|
-
bindingName: isSet(object.bindingName)
|
|
746
|
-
|
|
769
|
+
bindingName: isSet(object.bindingName)
|
|
770
|
+
? globalThis.String(object.bindingName)
|
|
771
|
+
: isSet(object.binding_name)
|
|
772
|
+
? globalThis.String(object.binding_name)
|
|
773
|
+
: "",
|
|
774
|
+
repoId: isSet(object.repoId)
|
|
775
|
+
? globalThis.String(object.repoId)
|
|
776
|
+
: isSet(object.repo_id)
|
|
777
|
+
? globalThis.String(object.repo_id)
|
|
778
|
+
: "",
|
|
747
779
|
access: isSet(object.access) ? CrossAccountAccess.fromJSON(object.access) : undefined,
|
|
748
780
|
};
|
|
749
781
|
},
|
|
@@ -868,8 +900,16 @@ export const GetCrossAccountAccessRequest: MessageFns<GetCrossAccountAccessReque
|
|
|
868
900
|
|
|
869
901
|
fromJSON(object: any): GetCrossAccountAccessRequest {
|
|
870
902
|
return {
|
|
871
|
-
bindingName: isSet(object.bindingName)
|
|
872
|
-
|
|
903
|
+
bindingName: isSet(object.bindingName)
|
|
904
|
+
? globalThis.String(object.bindingName)
|
|
905
|
+
: isSet(object.binding_name)
|
|
906
|
+
? globalThis.String(object.binding_name)
|
|
907
|
+
: "",
|
|
908
|
+
repoId: isSet(object.repoId)
|
|
909
|
+
? globalThis.String(object.repoId)
|
|
910
|
+
: isSet(object.repo_id)
|
|
911
|
+
? globalThis.String(object.repo_id)
|
|
912
|
+
: "",
|
|
873
913
|
};
|
|
874
914
|
},
|
|
875
915
|
|
|
@@ -1028,10 +1068,22 @@ export const GenerateCredentialsRequest: MessageFns<GenerateCredentialsRequest>
|
|
|
1028
1068
|
|
|
1029
1069
|
fromJSON(object: any): GenerateCredentialsRequest {
|
|
1030
1070
|
return {
|
|
1031
|
-
bindingName: isSet(object.bindingName)
|
|
1032
|
-
|
|
1071
|
+
bindingName: isSet(object.bindingName)
|
|
1072
|
+
? globalThis.String(object.bindingName)
|
|
1073
|
+
: isSet(object.binding_name)
|
|
1074
|
+
? globalThis.String(object.binding_name)
|
|
1075
|
+
: "",
|
|
1076
|
+
repoId: isSet(object.repoId)
|
|
1077
|
+
? globalThis.String(object.repoId)
|
|
1078
|
+
: isSet(object.repo_id)
|
|
1079
|
+
? globalThis.String(object.repo_id)
|
|
1080
|
+
: "",
|
|
1033
1081
|
permissions: isSet(object.permissions) ? artifactRegistryPermissionsFromJSON(object.permissions) : 0,
|
|
1034
|
-
ttlSeconds: isSet(object.ttlSeconds)
|
|
1082
|
+
ttlSeconds: isSet(object.ttlSeconds)
|
|
1083
|
+
? globalThis.Number(object.ttlSeconds)
|
|
1084
|
+
: isSet(object.ttl_seconds)
|
|
1085
|
+
? globalThis.Number(object.ttl_seconds)
|
|
1086
|
+
: undefined,
|
|
1035
1087
|
};
|
|
1036
1088
|
},
|
|
1037
1089
|
|
|
@@ -1174,8 +1226,16 @@ export const DeleteRepositoryRequest: MessageFns<DeleteRepositoryRequest> = {
|
|
|
1174
1226
|
|
|
1175
1227
|
fromJSON(object: any): DeleteRepositoryRequest {
|
|
1176
1228
|
return {
|
|
1177
|
-
bindingName: isSet(object.bindingName)
|
|
1178
|
-
|
|
1229
|
+
bindingName: isSet(object.bindingName)
|
|
1230
|
+
? globalThis.String(object.bindingName)
|
|
1231
|
+
: isSet(object.binding_name)
|
|
1232
|
+
? globalThis.String(object.binding_name)
|
|
1233
|
+
: "",
|
|
1234
|
+
repoId: isSet(object.repoId)
|
|
1235
|
+
? globalThis.String(object.repoId)
|
|
1236
|
+
: isSet(object.repo_id)
|
|
1237
|
+
? globalThis.String(object.repo_id)
|
|
1238
|
+
: "",
|
|
1179
1239
|
};
|
|
1180
1240
|
},
|
|
1181
1241
|
|
|
@@ -1329,11 +1389,19 @@ export const AwsCrossAccountAccess: MessageFns<AwsCrossAccountAccess> = {
|
|
|
1329
1389
|
return {
|
|
1330
1390
|
accountIds: globalThis.Array.isArray(object?.accountIds)
|
|
1331
1391
|
? object.accountIds.map((e: any) => globalThis.String(e))
|
|
1392
|
+
: globalThis.Array.isArray(object?.account_ids)
|
|
1393
|
+
? object.account_ids.map((e: any) => globalThis.String(e))
|
|
1332
1394
|
: [],
|
|
1333
1395
|
allowedServiceTypes: globalThis.Array.isArray(object?.allowedServiceTypes)
|
|
1334
1396
|
? object.allowedServiceTypes.map((e: any) => computeServiceTypeFromJSON(e))
|
|
1397
|
+
: globalThis.Array.isArray(object?.allowed_service_types)
|
|
1398
|
+
? object.allowed_service_types.map((e: any) => computeServiceTypeFromJSON(e))
|
|
1399
|
+
: [],
|
|
1400
|
+
roleArns: globalThis.Array.isArray(object?.roleArns)
|
|
1401
|
+
? object.roleArns.map((e: any) => globalThis.String(e))
|
|
1402
|
+
: globalThis.Array.isArray(object?.role_arns)
|
|
1403
|
+
? object.role_arns.map((e: any) => globalThis.String(e))
|
|
1335
1404
|
: [],
|
|
1336
|
-
roleArns: globalThis.Array.isArray(object?.roleArns) ? object.roleArns.map((e: any) => globalThis.String(e)) : [],
|
|
1337
1405
|
regions: globalThis.Array.isArray(object?.regions) ? object.regions.map((e: any) => globalThis.String(e)) : [],
|
|
1338
1406
|
};
|
|
1339
1407
|
},
|
|
@@ -1442,12 +1510,18 @@ export const GcpCrossAccountAccess: MessageFns<GcpCrossAccountAccess> = {
|
|
|
1442
1510
|
return {
|
|
1443
1511
|
projectNumbers: globalThis.Array.isArray(object?.projectNumbers)
|
|
1444
1512
|
? object.projectNumbers.map((e: any) => globalThis.String(e))
|
|
1513
|
+
: globalThis.Array.isArray(object?.project_numbers)
|
|
1514
|
+
? object.project_numbers.map((e: any) => globalThis.String(e))
|
|
1445
1515
|
: [],
|
|
1446
1516
|
allowedServiceTypes: globalThis.Array.isArray(object?.allowedServiceTypes)
|
|
1447
1517
|
? object.allowedServiceTypes.map((e: any) => computeServiceTypeFromJSON(e))
|
|
1518
|
+
: globalThis.Array.isArray(object?.allowed_service_types)
|
|
1519
|
+
? object.allowed_service_types.map((e: any) => computeServiceTypeFromJSON(e))
|
|
1448
1520
|
: [],
|
|
1449
1521
|
serviceAccountEmails: globalThis.Array.isArray(object?.serviceAccountEmails)
|
|
1450
1522
|
? object.serviceAccountEmails.map((e: any) => globalThis.String(e))
|
|
1523
|
+
: globalThis.Array.isArray(object?.service_account_emails)
|
|
1524
|
+
? object.service_account_emails.map((e: any) => globalThis.String(e))
|
|
1451
1525
|
: [],
|
|
1452
1526
|
};
|
|
1453
1527
|
},
|
|
@@ -1608,7 +1682,11 @@ export const CrossAccountPermissions: MessageFns<CrossAccountPermissions> = {
|
|
|
1608
1682
|
fromJSON(object: any): CrossAccountPermissions {
|
|
1609
1683
|
return {
|
|
1610
1684
|
access: isSet(object.access) ? CrossAccountAccess.fromJSON(object.access) : undefined,
|
|
1611
|
-
lastUpdated: isSet(object.lastUpdated)
|
|
1685
|
+
lastUpdated: isSet(object.lastUpdated)
|
|
1686
|
+
? globalThis.String(object.lastUpdated)
|
|
1687
|
+
: isSet(object.last_updated)
|
|
1688
|
+
? globalThis.String(object.last_updated)
|
|
1689
|
+
: undefined,
|
|
1612
1690
|
};
|
|
1613
1691
|
},
|
|
1614
1692
|
|
|
@@ -1698,7 +1776,11 @@ export const RepositoryResult: MessageFns<RepositoryResult> = {
|
|
|
1698
1776
|
return {
|
|
1699
1777
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1700
1778
|
uri: isSet(object.uri) ? globalThis.String(object.uri) : undefined,
|
|
1701
|
-
createdAt: isSet(object.createdAt)
|
|
1779
|
+
createdAt: isSet(object.createdAt)
|
|
1780
|
+
? globalThis.String(object.createdAt)
|
|
1781
|
+
: isSet(object.created_at)
|
|
1782
|
+
? globalThis.String(object.created_at)
|
|
1783
|
+
: undefined,
|
|
1702
1784
|
};
|
|
1703
1785
|
},
|
|
1704
1786
|
|
|
@@ -1801,8 +1883,16 @@ export const Credentials: MessageFns<Credentials> = {
|
|
|
1801
1883
|
return {
|
|
1802
1884
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
1803
1885
|
password: isSet(object.password) ? globalThis.String(object.password) : "",
|
|
1804
|
-
expiresAt: isSet(object.expiresAt)
|
|
1805
|
-
|
|
1886
|
+
expiresAt: isSet(object.expiresAt)
|
|
1887
|
+
? globalThis.String(object.expiresAt)
|
|
1888
|
+
: isSet(object.expires_at)
|
|
1889
|
+
? globalThis.String(object.expires_at)
|
|
1890
|
+
: undefined,
|
|
1891
|
+
authMethod: isSet(object.authMethod)
|
|
1892
|
+
? authMethodFromJSON(object.authMethod)
|
|
1893
|
+
: isSet(object.auth_method)
|
|
1894
|
+
? authMethodFromJSON(object.auth_method)
|
|
1895
|
+
: 0,
|
|
1806
1896
|
};
|
|
1807
1897
|
},
|
|
1808
1898
|
|
|
@@ -1845,63 +1935,63 @@ export const ArtifactRegistryServiceDefinition = {
|
|
|
1845
1935
|
/** Create a repository within the artifact registry */
|
|
1846
1936
|
createRepository: {
|
|
1847
1937
|
name: "CreateRepository",
|
|
1848
|
-
requestType: CreateRepositoryRequest,
|
|
1938
|
+
requestType: CreateRepositoryRequest as typeof CreateRepositoryRequest,
|
|
1849
1939
|
requestStream: false,
|
|
1850
|
-
responseType: CreateRepositoryResponse,
|
|
1940
|
+
responseType: CreateRepositoryResponse as typeof CreateRepositoryResponse,
|
|
1851
1941
|
responseStream: false,
|
|
1852
1942
|
options: {},
|
|
1853
1943
|
},
|
|
1854
1944
|
/** Get repository details including name, URI, and creation time */
|
|
1855
1945
|
getRepository: {
|
|
1856
1946
|
name: "GetRepository",
|
|
1857
|
-
requestType: GetRepositoryRequest,
|
|
1947
|
+
requestType: GetRepositoryRequest as typeof GetRepositoryRequest,
|
|
1858
1948
|
requestStream: false,
|
|
1859
|
-
responseType: GetRepositoryResponse,
|
|
1949
|
+
responseType: GetRepositoryResponse as typeof GetRepositoryResponse,
|
|
1860
1950
|
responseStream: false,
|
|
1861
1951
|
options: {},
|
|
1862
1952
|
},
|
|
1863
1953
|
/** Add cross-account access permissions for a repository */
|
|
1864
1954
|
addCrossAccountAccess: {
|
|
1865
1955
|
name: "AddCrossAccountAccess",
|
|
1866
|
-
requestType: AddCrossAccountAccessRequest,
|
|
1956
|
+
requestType: AddCrossAccountAccessRequest as typeof AddCrossAccountAccessRequest,
|
|
1867
1957
|
requestStream: false,
|
|
1868
|
-
responseType: AddCrossAccountAccessResponse,
|
|
1958
|
+
responseType: AddCrossAccountAccessResponse as typeof AddCrossAccountAccessResponse,
|
|
1869
1959
|
responseStream: false,
|
|
1870
1960
|
options: {},
|
|
1871
1961
|
},
|
|
1872
1962
|
/** Remove cross-account access permissions for a repository */
|
|
1873
1963
|
removeCrossAccountAccess: {
|
|
1874
1964
|
name: "RemoveCrossAccountAccess",
|
|
1875
|
-
requestType: RemoveCrossAccountAccessRequest,
|
|
1965
|
+
requestType: RemoveCrossAccountAccessRequest as typeof RemoveCrossAccountAccessRequest,
|
|
1876
1966
|
requestStream: false,
|
|
1877
|
-
responseType: RemoveCrossAccountAccessResponse,
|
|
1967
|
+
responseType: RemoveCrossAccountAccessResponse as typeof RemoveCrossAccountAccessResponse,
|
|
1878
1968
|
responseStream: false,
|
|
1879
1969
|
options: {},
|
|
1880
1970
|
},
|
|
1881
1971
|
/** Get the current cross-account access permissions for a repository */
|
|
1882
1972
|
getCrossAccountAccess: {
|
|
1883
1973
|
name: "GetCrossAccountAccess",
|
|
1884
|
-
requestType: GetCrossAccountAccessRequest,
|
|
1974
|
+
requestType: GetCrossAccountAccessRequest as typeof GetCrossAccountAccessRequest,
|
|
1885
1975
|
requestStream: false,
|
|
1886
|
-
responseType: GetCrossAccountAccessResponse,
|
|
1976
|
+
responseType: GetCrossAccountAccessResponse as typeof GetCrossAccountAccessResponse,
|
|
1887
1977
|
responseStream: false,
|
|
1888
1978
|
options: {},
|
|
1889
1979
|
},
|
|
1890
1980
|
/** Generate credentials for accessing a repository */
|
|
1891
1981
|
generateCredentials: {
|
|
1892
1982
|
name: "GenerateCredentials",
|
|
1893
|
-
requestType: GenerateCredentialsRequest,
|
|
1983
|
+
requestType: GenerateCredentialsRequest as typeof GenerateCredentialsRequest,
|
|
1894
1984
|
requestStream: false,
|
|
1895
|
-
responseType: GenerateCredentialsResponse,
|
|
1985
|
+
responseType: GenerateCredentialsResponse as typeof GenerateCredentialsResponse,
|
|
1896
1986
|
responseStream: false,
|
|
1897
1987
|
options: {},
|
|
1898
1988
|
},
|
|
1899
1989
|
/** Delete a repository and all contained images */
|
|
1900
1990
|
deleteRepository: {
|
|
1901
1991
|
name: "DeleteRepository",
|
|
1902
|
-
requestType: DeleteRepositoryRequest,
|
|
1992
|
+
requestType: DeleteRepositoryRequest as typeof DeleteRepositoryRequest,
|
|
1903
1993
|
requestStream: false,
|
|
1904
|
-
responseType: DeleteRepositoryResponse,
|
|
1994
|
+
responseType: DeleteRepositoryResponse as typeof DeleteRepositoryResponse,
|
|
1905
1995
|
responseStream: false,
|
|
1906
1996
|
options: {},
|
|
1907
1997
|
},
|
package/src/generated/build.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.12.0
|
|
4
4
|
// protoc v7.34.1
|
|
5
5
|
// source: build.proto
|
|
6
6
|
|
|
@@ -267,7 +267,11 @@ export const StartBuildRequest: MessageFns<StartBuildRequest> = {
|
|
|
267
267
|
|
|
268
268
|
fromJSON(object: any): StartBuildRequest {
|
|
269
269
|
return {
|
|
270
|
-
bindingName: isSet(object.bindingName)
|
|
270
|
+
bindingName: isSet(object.bindingName)
|
|
271
|
+
? globalThis.String(object.bindingName)
|
|
272
|
+
: isSet(object.binding_name)
|
|
273
|
+
? globalThis.String(object.binding_name)
|
|
274
|
+
: "",
|
|
271
275
|
config: isSet(object.config) ? BuildConfig.fromJSON(object.config) : undefined,
|
|
272
276
|
};
|
|
273
277
|
},
|
|
@@ -405,8 +409,16 @@ export const GetBuildStatusRequest: MessageFns<GetBuildStatusRequest> = {
|
|
|
405
409
|
|
|
406
410
|
fromJSON(object: any): GetBuildStatusRequest {
|
|
407
411
|
return {
|
|
408
|
-
bindingName: isSet(object.bindingName)
|
|
409
|
-
|
|
412
|
+
bindingName: isSet(object.bindingName)
|
|
413
|
+
? globalThis.String(object.bindingName)
|
|
414
|
+
: isSet(object.binding_name)
|
|
415
|
+
? globalThis.String(object.binding_name)
|
|
416
|
+
: "",
|
|
417
|
+
buildId: isSet(object.buildId)
|
|
418
|
+
? globalThis.String(object.buildId)
|
|
419
|
+
: isSet(object.build_id)
|
|
420
|
+
? globalThis.String(object.build_id)
|
|
421
|
+
: "",
|
|
410
422
|
};
|
|
411
423
|
},
|
|
412
424
|
|
|
@@ -541,8 +553,16 @@ export const StopBuildRequest: MessageFns<StopBuildRequest> = {
|
|
|
541
553
|
|
|
542
554
|
fromJSON(object: any): StopBuildRequest {
|
|
543
555
|
return {
|
|
544
|
-
bindingName: isSet(object.bindingName)
|
|
545
|
-
|
|
556
|
+
bindingName: isSet(object.bindingName)
|
|
557
|
+
? globalThis.String(object.bindingName)
|
|
558
|
+
: isSet(object.binding_name)
|
|
559
|
+
? globalThis.String(object.binding_name)
|
|
560
|
+
: "",
|
|
561
|
+
buildId: isSet(object.buildId)
|
|
562
|
+
? globalThis.String(object.buildId)
|
|
563
|
+
: isSet(object.build_id)
|
|
564
|
+
? globalThis.String(object.build_id)
|
|
565
|
+
: "",
|
|
546
566
|
};
|
|
547
567
|
},
|
|
548
568
|
|
|
@@ -706,8 +726,16 @@ export const BuildConfig: MessageFns<BuildConfig> = {
|
|
|
706
726
|
{},
|
|
707
727
|
)
|
|
708
728
|
: {},
|
|
709
|
-
computeType: isSet(object.computeType)
|
|
710
|
-
|
|
729
|
+
computeType: isSet(object.computeType)
|
|
730
|
+
? computeTypeFromJSON(object.computeType)
|
|
731
|
+
: isSet(object.compute_type)
|
|
732
|
+
? computeTypeFromJSON(object.compute_type)
|
|
733
|
+
: 0,
|
|
734
|
+
timeoutSeconds: isSet(object.timeoutSeconds)
|
|
735
|
+
? globalThis.Number(object.timeoutSeconds)
|
|
736
|
+
: isSet(object.timeout_seconds)
|
|
737
|
+
? globalThis.Number(object.timeout_seconds)
|
|
738
|
+
: undefined,
|
|
711
739
|
monitoring: isSet(object.monitoring) ? MonitoringConfig.fromJSON(object.monitoring) : undefined,
|
|
712
740
|
};
|
|
713
741
|
},
|
|
@@ -933,9 +961,21 @@ export const MonitoringConfig: MessageFns<MonitoringConfig> = {
|
|
|
933
961
|
{},
|
|
934
962
|
)
|
|
935
963
|
: {},
|
|
936
|
-
logsUri: isSet(object.logsUri)
|
|
937
|
-
|
|
938
|
-
|
|
964
|
+
logsUri: isSet(object.logsUri)
|
|
965
|
+
? globalThis.String(object.logsUri)
|
|
966
|
+
: isSet(object.logs_uri)
|
|
967
|
+
? globalThis.String(object.logs_uri)
|
|
968
|
+
: "",
|
|
969
|
+
tlsEnabled: isSet(object.tlsEnabled)
|
|
970
|
+
? globalThis.Boolean(object.tlsEnabled)
|
|
971
|
+
: isSet(object.tls_enabled)
|
|
972
|
+
? globalThis.Boolean(object.tls_enabled)
|
|
973
|
+
: false,
|
|
974
|
+
tlsVerify: isSet(object.tlsVerify)
|
|
975
|
+
? globalThis.Boolean(object.tlsVerify)
|
|
976
|
+
: isSet(object.tls_verify)
|
|
977
|
+
? globalThis.Boolean(object.tls_verify)
|
|
978
|
+
: false,
|
|
939
979
|
};
|
|
940
980
|
},
|
|
941
981
|
|
|
@@ -1136,8 +1176,16 @@ export const BuildExecution: MessageFns<BuildExecution> = {
|
|
|
1136
1176
|
return {
|
|
1137
1177
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1138
1178
|
status: isSet(object.status) ? buildStatusFromJSON(object.status) : 0,
|
|
1139
|
-
startTime: isSet(object.startTime)
|
|
1140
|
-
|
|
1179
|
+
startTime: isSet(object.startTime)
|
|
1180
|
+
? globalThis.String(object.startTime)
|
|
1181
|
+
: isSet(object.start_time)
|
|
1182
|
+
? globalThis.String(object.start_time)
|
|
1183
|
+
: undefined,
|
|
1184
|
+
endTime: isSet(object.endTime)
|
|
1185
|
+
? globalThis.String(object.endTime)
|
|
1186
|
+
: isSet(object.end_time)
|
|
1187
|
+
? globalThis.String(object.end_time)
|
|
1188
|
+
: undefined,
|
|
1141
1189
|
};
|
|
1142
1190
|
},
|
|
1143
1191
|
|
|
@@ -1180,27 +1228,27 @@ export const BuildServiceDefinition = {
|
|
|
1180
1228
|
/** Start a new build with the given configuration */
|
|
1181
1229
|
startBuild: {
|
|
1182
1230
|
name: "StartBuild",
|
|
1183
|
-
requestType: StartBuildRequest,
|
|
1231
|
+
requestType: StartBuildRequest as typeof StartBuildRequest,
|
|
1184
1232
|
requestStream: false,
|
|
1185
|
-
responseType: StartBuildResponse,
|
|
1233
|
+
responseType: StartBuildResponse as typeof StartBuildResponse,
|
|
1186
1234
|
responseStream: false,
|
|
1187
1235
|
options: {},
|
|
1188
1236
|
},
|
|
1189
1237
|
/** Get the status of a specific build execution */
|
|
1190
1238
|
getBuildStatus: {
|
|
1191
1239
|
name: "GetBuildStatus",
|
|
1192
|
-
requestType: GetBuildStatusRequest,
|
|
1240
|
+
requestType: GetBuildStatusRequest as typeof GetBuildStatusRequest,
|
|
1193
1241
|
requestStream: false,
|
|
1194
|
-
responseType: GetBuildStatusResponse,
|
|
1242
|
+
responseType: GetBuildStatusResponse as typeof GetBuildStatusResponse,
|
|
1195
1243
|
responseStream: false,
|
|
1196
1244
|
options: {},
|
|
1197
1245
|
},
|
|
1198
1246
|
/** Stop or cancel a running build */
|
|
1199
1247
|
stopBuild: {
|
|
1200
1248
|
name: "StopBuild",
|
|
1201
|
-
requestType: StopBuildRequest,
|
|
1249
|
+
requestType: StopBuildRequest as typeof StopBuildRequest,
|
|
1202
1250
|
requestStream: false,
|
|
1203
|
-
responseType: StopBuildResponse,
|
|
1251
|
+
responseType: StopBuildResponse as typeof StopBuildResponse,
|
|
1204
1252
|
responseStream: false,
|
|
1205
1253
|
options: {},
|
|
1206
1254
|
},
|