@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
|
@@ -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: service_account.proto
|
|
6
6
|
|
|
@@ -108,7 +108,13 @@ export const GetInfoRequest: MessageFns<GetInfoRequest> = {
|
|
|
108
108
|
},
|
|
109
109
|
|
|
110
110
|
fromJSON(object: any): GetInfoRequest {
|
|
111
|
-
return {
|
|
111
|
+
return {
|
|
112
|
+
bindingName: isSet(object.bindingName)
|
|
113
|
+
? globalThis.String(object.bindingName)
|
|
114
|
+
: isSet(object.binding_name)
|
|
115
|
+
? globalThis.String(object.binding_name)
|
|
116
|
+
: "",
|
|
117
|
+
};
|
|
112
118
|
},
|
|
113
119
|
|
|
114
120
|
toJSON(message: GetInfoRequest): unknown {
|
|
@@ -178,8 +184,16 @@ export const AwsServiceAccountInfo: MessageFns<AwsServiceAccountInfo> = {
|
|
|
178
184
|
|
|
179
185
|
fromJSON(object: any): AwsServiceAccountInfo {
|
|
180
186
|
return {
|
|
181
|
-
roleName: isSet(object.roleName)
|
|
182
|
-
|
|
187
|
+
roleName: isSet(object.roleName)
|
|
188
|
+
? globalThis.String(object.roleName)
|
|
189
|
+
: isSet(object.role_name)
|
|
190
|
+
? globalThis.String(object.role_name)
|
|
191
|
+
: "",
|
|
192
|
+
roleArn: isSet(object.roleArn)
|
|
193
|
+
? globalThis.String(object.roleArn)
|
|
194
|
+
: isSet(object.role_arn)
|
|
195
|
+
? globalThis.String(object.role_arn)
|
|
196
|
+
: "",
|
|
183
197
|
};
|
|
184
198
|
},
|
|
185
199
|
|
|
@@ -255,7 +269,11 @@ export const GcpServiceAccountInfo: MessageFns<GcpServiceAccountInfo> = {
|
|
|
255
269
|
fromJSON(object: any): GcpServiceAccountInfo {
|
|
256
270
|
return {
|
|
257
271
|
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
258
|
-
uniqueId: isSet(object.uniqueId)
|
|
272
|
+
uniqueId: isSet(object.uniqueId)
|
|
273
|
+
? globalThis.String(object.uniqueId)
|
|
274
|
+
: isSet(object.unique_id)
|
|
275
|
+
? globalThis.String(object.unique_id)
|
|
276
|
+
: "",
|
|
259
277
|
};
|
|
260
278
|
},
|
|
261
279
|
|
|
@@ -341,9 +359,21 @@ export const AzureServiceAccountInfo: MessageFns<AzureServiceAccountInfo> = {
|
|
|
341
359
|
|
|
342
360
|
fromJSON(object: any): AzureServiceAccountInfo {
|
|
343
361
|
return {
|
|
344
|
-
clientId: isSet(object.clientId)
|
|
345
|
-
|
|
346
|
-
|
|
362
|
+
clientId: isSet(object.clientId)
|
|
363
|
+
? globalThis.String(object.clientId)
|
|
364
|
+
: isSet(object.client_id)
|
|
365
|
+
? globalThis.String(object.client_id)
|
|
366
|
+
: "",
|
|
367
|
+
resourceId: isSet(object.resourceId)
|
|
368
|
+
? globalThis.String(object.resourceId)
|
|
369
|
+
: isSet(object.resource_id)
|
|
370
|
+
? globalThis.String(object.resource_id)
|
|
371
|
+
: "",
|
|
372
|
+
principalId: isSet(object.principalId)
|
|
373
|
+
? globalThis.String(object.principalId)
|
|
374
|
+
: isSet(object.principal_id)
|
|
375
|
+
? globalThis.String(object.principal_id)
|
|
376
|
+
: "",
|
|
347
377
|
};
|
|
348
378
|
},
|
|
349
379
|
|
|
@@ -602,9 +632,21 @@ export const ImpersonateRequest: MessageFns<ImpersonateRequest> = {
|
|
|
602
632
|
|
|
603
633
|
fromJSON(object: any): ImpersonateRequest {
|
|
604
634
|
return {
|
|
605
|
-
bindingName: isSet(object.bindingName)
|
|
606
|
-
|
|
607
|
-
|
|
635
|
+
bindingName: isSet(object.bindingName)
|
|
636
|
+
? globalThis.String(object.bindingName)
|
|
637
|
+
: isSet(object.binding_name)
|
|
638
|
+
? globalThis.String(object.binding_name)
|
|
639
|
+
: "",
|
|
640
|
+
sessionName: isSet(object.sessionName)
|
|
641
|
+
? globalThis.String(object.sessionName)
|
|
642
|
+
: isSet(object.session_name)
|
|
643
|
+
? globalThis.String(object.session_name)
|
|
644
|
+
: undefined,
|
|
645
|
+
durationSeconds: isSet(object.durationSeconds)
|
|
646
|
+
? globalThis.Number(object.durationSeconds)
|
|
647
|
+
: isSet(object.duration_seconds)
|
|
648
|
+
? globalThis.Number(object.duration_seconds)
|
|
649
|
+
: undefined,
|
|
608
650
|
scopes: globalThis.Array.isArray(object?.scopes) ? object.scopes.map((e: any) => globalThis.String(e)) : [],
|
|
609
651
|
};
|
|
610
652
|
},
|
|
@@ -676,7 +718,13 @@ export const ImpersonateResponse: MessageFns<ImpersonateResponse> = {
|
|
|
676
718
|
},
|
|
677
719
|
|
|
678
720
|
fromJSON(object: any): ImpersonateResponse {
|
|
679
|
-
return {
|
|
721
|
+
return {
|
|
722
|
+
clientConfigJson: isSet(object.clientConfigJson)
|
|
723
|
+
? globalThis.String(object.clientConfigJson)
|
|
724
|
+
: isSet(object.client_config_json)
|
|
725
|
+
? globalThis.String(object.client_config_json)
|
|
726
|
+
: "",
|
|
727
|
+
};
|
|
680
728
|
},
|
|
681
729
|
|
|
682
730
|
toJSON(message: ImpersonateResponse): unknown {
|
|
@@ -706,18 +754,18 @@ export const ServiceAccountServiceDefinition = {
|
|
|
706
754
|
/** Get information about the service account */
|
|
707
755
|
getInfo: {
|
|
708
756
|
name: "GetInfo",
|
|
709
|
-
requestType: GetInfoRequest,
|
|
757
|
+
requestType: GetInfoRequest as typeof GetInfoRequest,
|
|
710
758
|
requestStream: false,
|
|
711
|
-
responseType: GetInfoResponse,
|
|
759
|
+
responseType: GetInfoResponse as typeof GetInfoResponse,
|
|
712
760
|
responseStream: false,
|
|
713
761
|
options: {},
|
|
714
762
|
},
|
|
715
763
|
/** Impersonate the service account and returns credentials as a ClientConfig */
|
|
716
764
|
impersonate: {
|
|
717
765
|
name: "Impersonate",
|
|
718
|
-
requestType: ImpersonateRequest,
|
|
766
|
+
requestType: ImpersonateRequest as typeof ImpersonateRequest,
|
|
719
767
|
requestStream: false,
|
|
720
|
-
responseType: ImpersonateResponse,
|
|
768
|
+
responseType: ImpersonateResponse as typeof ImpersonateResponse,
|
|
721
769
|
responseStream: false,
|
|
722
770
|
options: {},
|
|
723
771
|
},
|
package/src/generated/storage.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: storage.proto
|
|
6
6
|
|
|
@@ -799,8 +799,16 @@ export const StorageGetRangeOption: MessageFns<StorageGetRangeOption> = {
|
|
|
799
799
|
fromJSON(object: any): StorageGetRangeOption {
|
|
800
800
|
return {
|
|
801
801
|
bounded: isSet(object.bounded) ? StorageRange.fromJSON(object.bounded) : undefined,
|
|
802
|
-
offsetFromStart: isSet(object.offsetFromStart)
|
|
803
|
-
|
|
802
|
+
offsetFromStart: isSet(object.offsetFromStart)
|
|
803
|
+
? globalThis.Number(object.offsetFromStart)
|
|
804
|
+
: isSet(object.offset_from_start)
|
|
805
|
+
? globalThis.Number(object.offset_from_start)
|
|
806
|
+
: undefined,
|
|
807
|
+
suffixLength: isSet(object.suffixLength)
|
|
808
|
+
? globalThis.Number(object.suffixLength)
|
|
809
|
+
: isSet(object.suffix_length)
|
|
810
|
+
? globalThis.Number(object.suffix_length)
|
|
811
|
+
: undefined,
|
|
804
812
|
};
|
|
805
813
|
},
|
|
806
814
|
|
|
@@ -944,10 +952,26 @@ export const StorageGetOptions: MessageFns<StorageGetOptions> = {
|
|
|
944
952
|
|
|
945
953
|
fromJSON(object: any): StorageGetOptions {
|
|
946
954
|
return {
|
|
947
|
-
ifMatch: isSet(object.ifMatch)
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
955
|
+
ifMatch: isSet(object.ifMatch)
|
|
956
|
+
? globalThis.String(object.ifMatch)
|
|
957
|
+
: isSet(object.if_match)
|
|
958
|
+
? globalThis.String(object.if_match)
|
|
959
|
+
: undefined,
|
|
960
|
+
ifNoneMatch: isSet(object.ifNoneMatch)
|
|
961
|
+
? globalThis.String(object.ifNoneMatch)
|
|
962
|
+
: isSet(object.if_none_match)
|
|
963
|
+
? globalThis.String(object.if_none_match)
|
|
964
|
+
: undefined,
|
|
965
|
+
ifModifiedSince: isSet(object.ifModifiedSince)
|
|
966
|
+
? fromJsonTimestamp(object.ifModifiedSince)
|
|
967
|
+
: isSet(object.if_modified_since)
|
|
968
|
+
? fromJsonTimestamp(object.if_modified_since)
|
|
969
|
+
: undefined,
|
|
970
|
+
ifUnmodifiedSince: isSet(object.ifUnmodifiedSince)
|
|
971
|
+
? fromJsonTimestamp(object.ifUnmodifiedSince)
|
|
972
|
+
: isSet(object.if_unmodified_since)
|
|
973
|
+
? fromJsonTimestamp(object.if_unmodified_since)
|
|
974
|
+
: undefined,
|
|
951
975
|
range: isSet(object.range) ? StorageGetRangeOption.fromJSON(object.range) : undefined,
|
|
952
976
|
version: isSet(object.version) ? globalThis.String(object.version) : undefined,
|
|
953
977
|
head: isSet(object.head) ? globalThis.Boolean(object.head) : false,
|
|
@@ -1047,7 +1071,11 @@ export const StorageUpdateVersion: MessageFns<StorageUpdateVersion> = {
|
|
|
1047
1071
|
|
|
1048
1072
|
fromJSON(object: any): StorageUpdateVersion {
|
|
1049
1073
|
return {
|
|
1050
|
-
eTag: isSet(object.eTag)
|
|
1074
|
+
eTag: isSet(object.eTag)
|
|
1075
|
+
? globalThis.String(object.eTag)
|
|
1076
|
+
: isSet(object.e_tag)
|
|
1077
|
+
? globalThis.String(object.e_tag)
|
|
1078
|
+
: undefined,
|
|
1051
1079
|
version: isSet(object.version) ? globalThis.String(object.version) : undefined,
|
|
1052
1080
|
};
|
|
1053
1081
|
},
|
|
@@ -1496,6 +1524,8 @@ export const StoragePutOptions: MessageFns<StoragePutOptions> = {
|
|
|
1496
1524
|
mode: isSet(object.mode) ? storagePutModeEnumFromJSON(object.mode) : 0,
|
|
1497
1525
|
updateVersionDetails: isSet(object.updateVersionDetails)
|
|
1498
1526
|
? StorageUpdateVersion.fromJSON(object.updateVersionDetails)
|
|
1527
|
+
: isSet(object.update_version_details)
|
|
1528
|
+
? StorageUpdateVersion.fromJSON(object.update_version_details)
|
|
1499
1529
|
: undefined,
|
|
1500
1530
|
tags: isSet(object.tags) ? StorageTagSet.fromJSON(object.tags) : undefined,
|
|
1501
1531
|
attributes: isSet(object.attributes) ? StorageAttributesMap.fromJSON(object.attributes) : undefined,
|
|
@@ -1678,7 +1708,11 @@ export const StorageGetRequest: MessageFns<StorageGetRequest> = {
|
|
|
1678
1708
|
|
|
1679
1709
|
fromJSON(object: any): StorageGetRequest {
|
|
1680
1710
|
return {
|
|
1681
|
-
bindingName: isSet(object.bindingName)
|
|
1711
|
+
bindingName: isSet(object.bindingName)
|
|
1712
|
+
? globalThis.String(object.bindingName)
|
|
1713
|
+
: isSet(object.binding_name)
|
|
1714
|
+
? globalThis.String(object.binding_name)
|
|
1715
|
+
: "",
|
|
1682
1716
|
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
1683
1717
|
options: isSet(object.options) ? StorageGetOptions.fromJSON(object.options) : undefined,
|
|
1684
1718
|
};
|
|
@@ -1762,7 +1796,11 @@ export const GetResponsePart: MessageFns<GetResponsePart> = {
|
|
|
1762
1796
|
fromJSON(object: any): GetResponsePart {
|
|
1763
1797
|
return {
|
|
1764
1798
|
metadata: isSet(object.metadata) ? StorageObjectMeta.fromJSON(object.metadata) : undefined,
|
|
1765
|
-
chunkData: isSet(object.chunkData)
|
|
1799
|
+
chunkData: isSet(object.chunkData)
|
|
1800
|
+
? bytesFromBase64(object.chunkData)
|
|
1801
|
+
: isSet(object.chunk_data)
|
|
1802
|
+
? bytesFromBase64(object.chunk_data)
|
|
1803
|
+
: undefined,
|
|
1766
1804
|
};
|
|
1767
1805
|
},
|
|
1768
1806
|
|
|
@@ -1840,7 +1878,11 @@ export const StoragePutMultipartChunkRequest: MessageFns<StoragePutMultipartChun
|
|
|
1840
1878
|
fromJSON(object: any): StoragePutMultipartChunkRequest {
|
|
1841
1879
|
return {
|
|
1842
1880
|
metadata: isSet(object.metadata) ? StoragePutMultipartMetadata.fromJSON(object.metadata) : undefined,
|
|
1843
|
-
chunkData: isSet(object.chunkData)
|
|
1881
|
+
chunkData: isSet(object.chunkData)
|
|
1882
|
+
? bytesFromBase64(object.chunkData)
|
|
1883
|
+
: isSet(object.chunk_data)
|
|
1884
|
+
? bytesFromBase64(object.chunk_data)
|
|
1885
|
+
: undefined,
|
|
1844
1886
|
};
|
|
1845
1887
|
},
|
|
1846
1888
|
|
|
@@ -1928,7 +1970,11 @@ export const StoragePutMultipartMetadata: MessageFns<StoragePutMultipartMetadata
|
|
|
1928
1970
|
|
|
1929
1971
|
fromJSON(object: any): StoragePutMultipartMetadata {
|
|
1930
1972
|
return {
|
|
1931
|
-
bindingName: isSet(object.bindingName)
|
|
1973
|
+
bindingName: isSet(object.bindingName)
|
|
1974
|
+
? globalThis.String(object.bindingName)
|
|
1975
|
+
: isSet(object.binding_name)
|
|
1976
|
+
? globalThis.String(object.binding_name)
|
|
1977
|
+
: "",
|
|
1932
1978
|
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
1933
1979
|
options: isSet(object.options) ? StoragePutMultipartOptions.fromJSON(object.options) : undefined,
|
|
1934
1980
|
};
|
|
@@ -2011,7 +2057,11 @@ export const StoragePutResponse: MessageFns<StoragePutResponse> = {
|
|
|
2011
2057
|
|
|
2012
2058
|
fromJSON(object: any): StoragePutResponse {
|
|
2013
2059
|
return {
|
|
2014
|
-
eTag: isSet(object.eTag)
|
|
2060
|
+
eTag: isSet(object.eTag)
|
|
2061
|
+
? globalThis.String(object.eTag)
|
|
2062
|
+
: isSet(object.e_tag)
|
|
2063
|
+
? globalThis.String(object.e_tag)
|
|
2064
|
+
: undefined,
|
|
2015
2065
|
version: isSet(object.version) ? globalThis.String(object.version) : undefined,
|
|
2016
2066
|
};
|
|
2017
2067
|
},
|
|
@@ -2109,7 +2159,11 @@ export const StoragePutRequest: MessageFns<StoragePutRequest> = {
|
|
|
2109
2159
|
|
|
2110
2160
|
fromJSON(object: any): StoragePutRequest {
|
|
2111
2161
|
return {
|
|
2112
|
-
bindingName: isSet(object.bindingName)
|
|
2162
|
+
bindingName: isSet(object.bindingName)
|
|
2163
|
+
? globalThis.String(object.bindingName)
|
|
2164
|
+
: isSet(object.binding_name)
|
|
2165
|
+
? globalThis.String(object.binding_name)
|
|
2166
|
+
: "",
|
|
2113
2167
|
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
2114
2168
|
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
2115
2169
|
options: isSet(object.options) ? StoragePutOptions.fromJSON(object.options) : undefined,
|
|
@@ -2197,7 +2251,11 @@ export const StorageDeleteRequest: MessageFns<StorageDeleteRequest> = {
|
|
|
2197
2251
|
|
|
2198
2252
|
fromJSON(object: any): StorageDeleteRequest {
|
|
2199
2253
|
return {
|
|
2200
|
-
bindingName: isSet(object.bindingName)
|
|
2254
|
+
bindingName: isSet(object.bindingName)
|
|
2255
|
+
? globalThis.String(object.bindingName)
|
|
2256
|
+
: isSet(object.binding_name)
|
|
2257
|
+
? globalThis.String(object.binding_name)
|
|
2258
|
+
: "",
|
|
2201
2259
|
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
2202
2260
|
};
|
|
2203
2261
|
},
|
|
@@ -2327,7 +2385,11 @@ export const StorageListRequest: MessageFns<StorageListRequest> = {
|
|
|
2327
2385
|
|
|
2328
2386
|
fromJSON(object: any): StorageListRequest {
|
|
2329
2387
|
return {
|
|
2330
|
-
bindingName: isSet(object.bindingName)
|
|
2388
|
+
bindingName: isSet(object.bindingName)
|
|
2389
|
+
? globalThis.String(object.bindingName)
|
|
2390
|
+
: isSet(object.binding_name)
|
|
2391
|
+
? globalThis.String(object.binding_name)
|
|
2392
|
+
: "",
|
|
2331
2393
|
prefix: isSet(object.prefix) ? globalThis.String(object.prefix) : undefined,
|
|
2332
2394
|
offset: isSet(object.offset) ? globalThis.String(object.offset) : undefined,
|
|
2333
2395
|
};
|
|
@@ -2442,9 +2504,17 @@ export const StorageObjectMeta: MessageFns<StorageObjectMeta> = {
|
|
|
2442
2504
|
fromJSON(object: any): StorageObjectMeta {
|
|
2443
2505
|
return {
|
|
2444
2506
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
2445
|
-
lastModified: isSet(object.lastModified)
|
|
2507
|
+
lastModified: isSet(object.lastModified)
|
|
2508
|
+
? fromJsonTimestamp(object.lastModified)
|
|
2509
|
+
: isSet(object.last_modified)
|
|
2510
|
+
? fromJsonTimestamp(object.last_modified)
|
|
2511
|
+
: undefined,
|
|
2446
2512
|
size: isSet(object.size) ? globalThis.Number(object.size) : 0,
|
|
2447
|
-
eTag: isSet(object.eTag)
|
|
2513
|
+
eTag: isSet(object.eTag)
|
|
2514
|
+
? globalThis.String(object.eTag)
|
|
2515
|
+
: isSet(object.e_tag)
|
|
2516
|
+
? globalThis.String(object.e_tag)
|
|
2517
|
+
: undefined,
|
|
2448
2518
|
version: isSet(object.version) ? globalThis.String(object.version) : undefined,
|
|
2449
2519
|
};
|
|
2450
2520
|
},
|
|
@@ -2532,7 +2602,11 @@ export const StorageListWithDelimiterRequest: MessageFns<StorageListWithDelimite
|
|
|
2532
2602
|
|
|
2533
2603
|
fromJSON(object: any): StorageListWithDelimiterRequest {
|
|
2534
2604
|
return {
|
|
2535
|
-
bindingName: isSet(object.bindingName)
|
|
2605
|
+
bindingName: isSet(object.bindingName)
|
|
2606
|
+
? globalThis.String(object.bindingName)
|
|
2607
|
+
: isSet(object.binding_name)
|
|
2608
|
+
? globalThis.String(object.binding_name)
|
|
2609
|
+
: "",
|
|
2536
2610
|
prefix: isSet(object.prefix) ? globalThis.String(object.prefix) : undefined,
|
|
2537
2611
|
};
|
|
2538
2612
|
},
|
|
@@ -2610,6 +2684,8 @@ export const StorageListResultProto: MessageFns<StorageListResultProto> = {
|
|
|
2610
2684
|
return {
|
|
2611
2685
|
commonPrefixes: globalThis.Array.isArray(object?.commonPrefixes)
|
|
2612
2686
|
? object.commonPrefixes.map((e: any) => globalThis.String(e))
|
|
2687
|
+
: globalThis.Array.isArray(object?.common_prefixes)
|
|
2688
|
+
? object.common_prefixes.map((e: any) => globalThis.String(e))
|
|
2613
2689
|
: [],
|
|
2614
2690
|
objects: globalThis.Array.isArray(object?.objects)
|
|
2615
2691
|
? object.objects.map((e: any) => StorageObjectMeta.fromJSON(e))
|
|
@@ -2688,7 +2764,11 @@ export const StorageHeadRequest: MessageFns<StorageHeadRequest> = {
|
|
|
2688
2764
|
|
|
2689
2765
|
fromJSON(object: any): StorageHeadRequest {
|
|
2690
2766
|
return {
|
|
2691
|
-
bindingName: isSet(object.bindingName)
|
|
2767
|
+
bindingName: isSet(object.bindingName)
|
|
2768
|
+
? globalThis.String(object.bindingName)
|
|
2769
|
+
: isSet(object.binding_name)
|
|
2770
|
+
? globalThis.String(object.binding_name)
|
|
2771
|
+
: "",
|
|
2692
2772
|
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
2693
2773
|
};
|
|
2694
2774
|
},
|
|
@@ -2752,7 +2832,13 @@ export const StorageGetBaseDirRequest: MessageFns<StorageGetBaseDirRequest> = {
|
|
|
2752
2832
|
},
|
|
2753
2833
|
|
|
2754
2834
|
fromJSON(object: any): StorageGetBaseDirRequest {
|
|
2755
|
-
return {
|
|
2835
|
+
return {
|
|
2836
|
+
bindingName: isSet(object.bindingName)
|
|
2837
|
+
? globalThis.String(object.bindingName)
|
|
2838
|
+
: isSet(object.binding_name)
|
|
2839
|
+
? globalThis.String(object.binding_name)
|
|
2840
|
+
: "",
|
|
2841
|
+
};
|
|
2756
2842
|
},
|
|
2757
2843
|
|
|
2758
2844
|
toJSON(message: StorageGetBaseDirRequest): unknown {
|
|
@@ -2868,7 +2954,13 @@ export const StorageGetUrlRequest: MessageFns<StorageGetUrlRequest> = {
|
|
|
2868
2954
|
},
|
|
2869
2955
|
|
|
2870
2956
|
fromJSON(object: any): StorageGetUrlRequest {
|
|
2871
|
-
return {
|
|
2957
|
+
return {
|
|
2958
|
+
bindingName: isSet(object.bindingName)
|
|
2959
|
+
? globalThis.String(object.bindingName)
|
|
2960
|
+
: isSet(object.binding_name)
|
|
2961
|
+
? globalThis.String(object.binding_name)
|
|
2962
|
+
: "",
|
|
2963
|
+
};
|
|
2872
2964
|
},
|
|
2873
2965
|
|
|
2874
2966
|
toJSON(message: StorageGetUrlRequest): unknown {
|
|
@@ -3007,9 +3099,21 @@ export const StorageCopyRequest: MessageFns<StorageCopyRequest> = {
|
|
|
3007
3099
|
|
|
3008
3100
|
fromJSON(object: any): StorageCopyRequest {
|
|
3009
3101
|
return {
|
|
3010
|
-
bindingName: isSet(object.bindingName)
|
|
3011
|
-
|
|
3012
|
-
|
|
3102
|
+
bindingName: isSet(object.bindingName)
|
|
3103
|
+
? globalThis.String(object.bindingName)
|
|
3104
|
+
: isSet(object.binding_name)
|
|
3105
|
+
? globalThis.String(object.binding_name)
|
|
3106
|
+
: "",
|
|
3107
|
+
fromPath: isSet(object.fromPath)
|
|
3108
|
+
? globalThis.String(object.fromPath)
|
|
3109
|
+
: isSet(object.from_path)
|
|
3110
|
+
? globalThis.String(object.from_path)
|
|
3111
|
+
: "",
|
|
3112
|
+
toPath: isSet(object.toPath)
|
|
3113
|
+
? globalThis.String(object.toPath)
|
|
3114
|
+
: isSet(object.to_path)
|
|
3115
|
+
? globalThis.String(object.to_path)
|
|
3116
|
+
: "",
|
|
3013
3117
|
};
|
|
3014
3118
|
},
|
|
3015
3119
|
|
|
@@ -3099,9 +3203,21 @@ export const StorageRenameRequest: MessageFns<StorageRenameRequest> = {
|
|
|
3099
3203
|
|
|
3100
3204
|
fromJSON(object: any): StorageRenameRequest {
|
|
3101
3205
|
return {
|
|
3102
|
-
bindingName: isSet(object.bindingName)
|
|
3103
|
-
|
|
3104
|
-
|
|
3206
|
+
bindingName: isSet(object.bindingName)
|
|
3207
|
+
? globalThis.String(object.bindingName)
|
|
3208
|
+
: isSet(object.binding_name)
|
|
3209
|
+
? globalThis.String(object.binding_name)
|
|
3210
|
+
: "",
|
|
3211
|
+
fromPath: isSet(object.fromPath)
|
|
3212
|
+
? globalThis.String(object.fromPath)
|
|
3213
|
+
: isSet(object.from_path)
|
|
3214
|
+
? globalThis.String(object.from_path)
|
|
3215
|
+
: "",
|
|
3216
|
+
toPath: isSet(object.toPath)
|
|
3217
|
+
? globalThis.String(object.toPath)
|
|
3218
|
+
: isSet(object.to_path)
|
|
3219
|
+
? globalThis.String(object.to_path)
|
|
3220
|
+
: "",
|
|
3105
3221
|
};
|
|
3106
3222
|
},
|
|
3107
3223
|
|
|
@@ -3202,10 +3318,22 @@ export const StorageSignedUrlRequest: MessageFns<StorageSignedUrlRequest> = {
|
|
|
3202
3318
|
|
|
3203
3319
|
fromJSON(object: any): StorageSignedUrlRequest {
|
|
3204
3320
|
return {
|
|
3205
|
-
bindingName: isSet(object.bindingName)
|
|
3321
|
+
bindingName: isSet(object.bindingName)
|
|
3322
|
+
? globalThis.String(object.bindingName)
|
|
3323
|
+
: isSet(object.binding_name)
|
|
3324
|
+
? globalThis.String(object.binding_name)
|
|
3325
|
+
: "",
|
|
3206
3326
|
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
3207
|
-
httpMethod: isSet(object.httpMethod)
|
|
3208
|
-
|
|
3327
|
+
httpMethod: isSet(object.httpMethod)
|
|
3328
|
+
? storageHttpMethodFromJSON(object.httpMethod)
|
|
3329
|
+
: isSet(object.http_method)
|
|
3330
|
+
? storageHttpMethodFromJSON(object.http_method)
|
|
3331
|
+
: 0,
|
|
3332
|
+
expirationTime: isSet(object.expirationTime)
|
|
3333
|
+
? fromJsonTimestamp(object.expirationTime)
|
|
3334
|
+
: isSet(object.expiration_time)
|
|
3335
|
+
? fromJsonTimestamp(object.expiration_time)
|
|
3336
|
+
: undefined,
|
|
3209
3337
|
};
|
|
3210
3338
|
},
|
|
3211
3339
|
|
|
@@ -3329,9 +3457,9 @@ export const StorageServiceDefinition = {
|
|
|
3329
3457
|
*/
|
|
3330
3458
|
get: {
|
|
3331
3459
|
name: "Get",
|
|
3332
|
-
requestType: StorageGetRequest,
|
|
3460
|
+
requestType: StorageGetRequest as typeof StorageGetRequest,
|
|
3333
3461
|
requestStream: false,
|
|
3334
|
-
responseType: GetResponsePart,
|
|
3462
|
+
responseType: GetResponsePart as typeof GetResponsePart,
|
|
3335
3463
|
responseStream: true,
|
|
3336
3464
|
options: {},
|
|
3337
3465
|
},
|
|
@@ -3341,27 +3469,27 @@ export const StorageServiceDefinition = {
|
|
|
3341
3469
|
*/
|
|
3342
3470
|
putMultipart: {
|
|
3343
3471
|
name: "PutMultipart",
|
|
3344
|
-
requestType: StoragePutMultipartChunkRequest,
|
|
3472
|
+
requestType: StoragePutMultipartChunkRequest as typeof StoragePutMultipartChunkRequest,
|
|
3345
3473
|
requestStream: true,
|
|
3346
|
-
responseType: StoragePutResponse,
|
|
3474
|
+
responseType: StoragePutResponse as typeof StoragePutResponse,
|
|
3347
3475
|
responseStream: false,
|
|
3348
3476
|
options: {},
|
|
3349
3477
|
},
|
|
3350
3478
|
/** Uploads data to a storage binding in a single message, with PutOptions. */
|
|
3351
3479
|
put: {
|
|
3352
3480
|
name: "Put",
|
|
3353
|
-
requestType: StoragePutRequest,
|
|
3481
|
+
requestType: StoragePutRequest as typeof StoragePutRequest,
|
|
3354
3482
|
requestStream: false,
|
|
3355
|
-
responseType: StoragePutResponse,
|
|
3483
|
+
responseType: StoragePutResponse as typeof StoragePutResponse,
|
|
3356
3484
|
responseStream: false,
|
|
3357
3485
|
options: {},
|
|
3358
3486
|
},
|
|
3359
3487
|
/** Deletes an object from a storage binding. */
|
|
3360
3488
|
delete: {
|
|
3361
3489
|
name: "Delete",
|
|
3362
|
-
requestType: StorageDeleteRequest,
|
|
3490
|
+
requestType: StorageDeleteRequest as typeof StorageDeleteRequest,
|
|
3363
3491
|
requestStream: false,
|
|
3364
|
-
responseType: StorageOperationResponse,
|
|
3492
|
+
responseType: StorageOperationResponse as typeof StorageOperationResponse,
|
|
3365
3493
|
responseStream: false,
|
|
3366
3494
|
options: {},
|
|
3367
3495
|
},
|
|
@@ -3371,90 +3499,90 @@ export const StorageServiceDefinition = {
|
|
|
3371
3499
|
*/
|
|
3372
3500
|
list: {
|
|
3373
3501
|
name: "List",
|
|
3374
|
-
requestType: StorageListRequest,
|
|
3502
|
+
requestType: StorageListRequest as typeof StorageListRequest,
|
|
3375
3503
|
requestStream: false,
|
|
3376
|
-
responseType: StorageObjectMeta,
|
|
3504
|
+
responseType: StorageObjectMeta as typeof StorageObjectMeta,
|
|
3377
3505
|
responseStream: true,
|
|
3378
3506
|
options: {},
|
|
3379
3507
|
},
|
|
3380
3508
|
/** Lists objects and common prefixes (directories) with a delimiter. */
|
|
3381
3509
|
listWithDelimiter: {
|
|
3382
3510
|
name: "ListWithDelimiter",
|
|
3383
|
-
requestType: StorageListWithDelimiterRequest,
|
|
3511
|
+
requestType: StorageListWithDelimiterRequest as typeof StorageListWithDelimiterRequest,
|
|
3384
3512
|
requestStream: false,
|
|
3385
|
-
responseType: StorageListResultProto,
|
|
3513
|
+
responseType: StorageListResultProto as typeof StorageListResultProto,
|
|
3386
3514
|
responseStream: false,
|
|
3387
3515
|
options: {},
|
|
3388
3516
|
},
|
|
3389
3517
|
/** Retrieves metadata for an object in a storage binding. */
|
|
3390
3518
|
head: {
|
|
3391
3519
|
name: "Head",
|
|
3392
|
-
requestType: StorageHeadRequest,
|
|
3520
|
+
requestType: StorageHeadRequest as typeof StorageHeadRequest,
|
|
3393
3521
|
requestStream: false,
|
|
3394
|
-
responseType: StorageObjectMeta,
|
|
3522
|
+
responseType: StorageObjectMeta as typeof StorageObjectMeta,
|
|
3395
3523
|
responseStream: false,
|
|
3396
3524
|
options: {},
|
|
3397
3525
|
},
|
|
3398
3526
|
/** Gets the base directory path for a storage binding. */
|
|
3399
3527
|
getBaseDir: {
|
|
3400
3528
|
name: "GetBaseDir",
|
|
3401
|
-
requestType: StorageGetBaseDirRequest,
|
|
3529
|
+
requestType: StorageGetBaseDirRequest as typeof StorageGetBaseDirRequest,
|
|
3402
3530
|
requestStream: false,
|
|
3403
|
-
responseType: StorageGetBaseDirResponse,
|
|
3531
|
+
responseType: StorageGetBaseDirResponse as typeof StorageGetBaseDirResponse,
|
|
3404
3532
|
responseStream: false,
|
|
3405
3533
|
options: {},
|
|
3406
3534
|
},
|
|
3407
3535
|
/** Gets the underlying URL for a storage binding. */
|
|
3408
3536
|
getUrl: {
|
|
3409
3537
|
name: "GetUrl",
|
|
3410
|
-
requestType: StorageGetUrlRequest,
|
|
3538
|
+
requestType: StorageGetUrlRequest as typeof StorageGetUrlRequest,
|
|
3411
3539
|
requestStream: false,
|
|
3412
|
-
responseType: StorageGetUrlResponse,
|
|
3540
|
+
responseType: StorageGetUrlResponse as typeof StorageGetUrlResponse,
|
|
3413
3541
|
responseStream: false,
|
|
3414
3542
|
options: {},
|
|
3415
3543
|
},
|
|
3416
3544
|
/** Copies an object within the same storage binding. */
|
|
3417
3545
|
copy: {
|
|
3418
3546
|
name: "Copy",
|
|
3419
|
-
requestType: StorageCopyRequest,
|
|
3547
|
+
requestType: StorageCopyRequest as typeof StorageCopyRequest,
|
|
3420
3548
|
requestStream: false,
|
|
3421
|
-
responseType: StorageOperationResponse,
|
|
3549
|
+
responseType: StorageOperationResponse as typeof StorageOperationResponse,
|
|
3422
3550
|
responseStream: false,
|
|
3423
3551
|
options: {},
|
|
3424
3552
|
},
|
|
3425
3553
|
/** Renames (moves) an object within the same storage binding. */
|
|
3426
3554
|
rename: {
|
|
3427
3555
|
name: "Rename",
|
|
3428
|
-
requestType: StorageRenameRequest,
|
|
3556
|
+
requestType: StorageRenameRequest as typeof StorageRenameRequest,
|
|
3429
3557
|
requestStream: false,
|
|
3430
|
-
responseType: StorageOperationResponse,
|
|
3558
|
+
responseType: StorageOperationResponse as typeof StorageOperationResponse,
|
|
3431
3559
|
responseStream: false,
|
|
3432
3560
|
options: {},
|
|
3433
3561
|
},
|
|
3434
3562
|
/** Copies an object if the destination does not exist. */
|
|
3435
3563
|
copyIfNotExists: {
|
|
3436
3564
|
name: "CopyIfNotExists",
|
|
3437
|
-
requestType: StorageCopyRequest,
|
|
3565
|
+
requestType: StorageCopyRequest as typeof StorageCopyRequest,
|
|
3438
3566
|
requestStream: false,
|
|
3439
|
-
responseType: StorageOperationResponse,
|
|
3567
|
+
responseType: StorageOperationResponse as typeof StorageOperationResponse,
|
|
3440
3568
|
responseStream: false,
|
|
3441
3569
|
options: {},
|
|
3442
3570
|
},
|
|
3443
3571
|
/** Renames (moves) an object if the destination does not exist. */
|
|
3444
3572
|
renameIfNotExists: {
|
|
3445
3573
|
name: "RenameIfNotExists",
|
|
3446
|
-
requestType: StorageRenameRequest,
|
|
3574
|
+
requestType: StorageRenameRequest as typeof StorageRenameRequest,
|
|
3447
3575
|
requestStream: false,
|
|
3448
|
-
responseType: StorageOperationResponse,
|
|
3576
|
+
responseType: StorageOperationResponse as typeof StorageOperationResponse,
|
|
3449
3577
|
responseStream: false,
|
|
3450
3578
|
options: {},
|
|
3451
3579
|
},
|
|
3452
3580
|
/** Generates a signed URL for an object that allows access without authentication. */
|
|
3453
3581
|
signedUrl: {
|
|
3454
3582
|
name: "SignedUrl",
|
|
3455
|
-
requestType: StorageSignedUrlRequest,
|
|
3583
|
+
requestType: StorageSignedUrlRequest as typeof StorageSignedUrlRequest,
|
|
3456
3584
|
requestStream: false,
|
|
3457
|
-
responseType: StorageSignedUrlResponse,
|
|
3585
|
+
responseType: StorageSignedUrlResponse as typeof StorageSignedUrlResponse,
|
|
3458
3586
|
responseStream: false,
|
|
3459
3587
|
options: {},
|
|
3460
3588
|
},
|
|
@@ -3612,7 +3740,7 @@ export interface StorageServiceClient<CallOptionsExt = {}> {
|
|
|
3612
3740
|
|
|
3613
3741
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
3614
3742
|
if ((globalThis as any).Buffer) {
|
|
3615
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
3743
|
+
return Uint8Array.from((globalThis as any).Buffer.from(b64, "base64"));
|
|
3616
3744
|
} else {
|
|
3617
3745
|
const bin = globalThis.atob(b64);
|
|
3618
3746
|
const arr = new Uint8Array(bin.length);
|
|
@@ -3625,7 +3753,7 @@ function bytesFromBase64(b64: string): Uint8Array {
|
|
|
3625
3753
|
|
|
3626
3754
|
function base64FromBytes(arr: Uint8Array): string {
|
|
3627
3755
|
if ((globalThis as any).Buffer) {
|
|
3628
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
3756
|
+
return (globalThis as any).Buffer.from(arr).toString("base64");
|
|
3629
3757
|
} else {
|
|
3630
3758
|
const bin: string[] = [];
|
|
3631
3759
|
arr.forEach((byte) => {
|