@alienplatform/sdk 1.3.5 → 1.4.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.
Files changed (40) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/AGENTS.md +1 -1
  3. package/dist/bindings/artifact-registry.d.ts.map +1 -1
  4. package/dist/bindings/index.d.ts +1 -1
  5. package/dist/bindings/index.d.ts.map +1 -1
  6. package/dist/bindings/storage.d.ts.map +1 -1
  7. package/dist/bindings/{function.d.ts → worker.d.ts} +20 -20
  8. package/dist/bindings/worker.d.ts.map +1 -0
  9. package/dist/context.d.ts +4 -4
  10. package/dist/context.d.ts.map +1 -1
  11. package/dist/dist.js +3871 -778
  12. package/dist/generated/artifact_registry.d.ts +13 -3
  13. package/dist/generated/artifact_registry.d.ts.map +1 -1
  14. package/dist/generated/storage.d.ts +10 -9
  15. package/dist/generated/storage.d.ts.map +1 -1
  16. package/dist/generated/{function.d.ts → worker.d.ts} +30 -30
  17. package/dist/generated/worker.d.ts.map +1 -0
  18. package/dist/global.d.ts +6 -6
  19. package/dist/global.d.ts.map +1 -1
  20. package/dist/index.d.ts +4 -4
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +1609 -1339
  23. package/dist/types.d.ts +20 -10
  24. package/dist/types.d.ts.map +1 -1
  25. package/dist/wait-until.d.ts +1 -1
  26. package/package.json +2 -2
  27. package/src/bindings/artifact-registry.ts +5 -4
  28. package/src/bindings/index.ts +1 -1
  29. package/src/bindings/storage.ts +1 -0
  30. package/src/bindings/{function.ts → worker.ts} +32 -32
  31. package/src/context.ts +7 -7
  32. package/src/generated/artifact_registry.ts +63 -9
  33. package/src/generated/storage.ts +108 -69
  34. package/src/generated/{function.ts → worker.ts} +62 -62
  35. package/src/global.ts +7 -7
  36. package/src/index.ts +8 -7
  37. package/src/types.ts +22 -11
  38. package/src/wait-until.ts +1 -1
  39. package/dist/bindings/function.d.ts.map +0 -1
  40. package/dist/generated/function.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as object, n as defineError, o as string, t as AlienError } from "./dist.js";
2
2
  import { createRequire } from "node:module";
3
3
  //#region \0rolldown/runtime.js
4
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
4
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
5
5
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
6
6
  //#endregion
7
7
  //#region ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/Metadata.js
@@ -8631,6 +8631,12 @@ var require_type$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8631
8631
  this._ctor = null;
8632
8632
  }
8633
8633
  Object.defineProperties(Type.prototype, {
8634
+ /**
8635
+ * Message fields by id.
8636
+ * @name Type#fieldsById
8637
+ * @type {Object.<number,Field>}
8638
+ * @readonly
8639
+ */
8634
8640
  fieldsById: { get: function() {
8635
8641
  /* istanbul ignore if */
8636
8642
  if (this._fieldsById) return this._fieldsById;
@@ -8643,12 +8649,30 @@ var require_type$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8643
8649
  }
8644
8650
  return this._fieldsById;
8645
8651
  } },
8652
+ /**
8653
+ * Fields of this message as an array for iteration.
8654
+ * @name Type#fieldsArray
8655
+ * @type {Field[]}
8656
+ * @readonly
8657
+ */
8646
8658
  fieldsArray: { get: function() {
8647
8659
  return this._fieldsArray || (this._fieldsArray = util.toArray(this.fields));
8648
8660
  } },
8661
+ /**
8662
+ * Oneofs of this message as an array for iteration.
8663
+ * @name Type#oneofsArray
8664
+ * @type {OneOf[]}
8665
+ * @readonly
8666
+ */
8649
8667
  oneofsArray: { get: function() {
8650
8668
  return this._oneofsArray || (this._oneofsArray = util.toArray(this.oneofs));
8651
8669
  } },
8670
+ /**
8671
+ * The registered constructor, if any registered, otherwise a generic constructor.
8672
+ * Assigning a function replaces the internal constructor. If the function does not extend {@link Message} yet, its prototype will be setup accordingly and static methods will be populated. If it already extends {@link Message}, it will just replace the internal constructor.
8673
+ * @name Type#ctor
8674
+ * @type {Constructor<{}>}
8675
+ */
8652
8676
  ctor: {
8653
8677
  get: function() {
8654
8678
  return this._ctor || (this.ctor = Type.generateConstructor(this)());
@@ -10284,11 +10308,23 @@ var require_object = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10284
10308
  this.filename = null;
10285
10309
  }
10286
10310
  Object.defineProperties(ReflectionObject.prototype, {
10311
+ /**
10312
+ * Reference to the root namespace.
10313
+ * @name ReflectionObject#root
10314
+ * @type {Root}
10315
+ * @readonly
10316
+ */
10287
10317
  root: { get: function() {
10288
10318
  var ptr = this;
10289
10319
  while (ptr.parent !== null) ptr = ptr.parent;
10290
10320
  return ptr;
10291
10321
  } },
10322
+ /**
10323
+ * Full name including leading dot.
10324
+ * @name ReflectionObject#fullName
10325
+ * @type {string}
10326
+ * @readonly
10327
+ */
10292
10328
  fullName: { get: function() {
10293
10329
  var path = [this.name], ptr = this.parent;
10294
10330
  while (ptr) {
@@ -11776,7 +11812,16 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11776
11812
  }
11777
11813
  common[name] = json;
11778
11814
  }
11779
- common("any", { Any: { fields: {
11815
+ common("any", {
11816
+ /**
11817
+ * Properties of a google.protobuf.Any message.
11818
+ * @interface IAny
11819
+ * @type {Object}
11820
+ * @property {string} [typeUrl]
11821
+ * @property {Uint8Array} [bytes]
11822
+ * @memberof common
11823
+ */
11824
+ Any: { fields: {
11780
11825
  type_url: {
11781
11826
  type: "string",
11782
11827
  id: 1
@@ -11787,7 +11832,16 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11787
11832
  }
11788
11833
  } } });
11789
11834
  var timeType;
11790
- common("duration", { Duration: timeType = { fields: {
11835
+ common("duration", {
11836
+ /**
11837
+ * Properties of a google.protobuf.Duration message.
11838
+ * @interface IDuration
11839
+ * @type {Object}
11840
+ * @property {number|Long} [seconds]
11841
+ * @property {number} [nanos]
11842
+ * @memberof common
11843
+ */
11844
+ Duration: timeType = { fields: {
11791
11845
  seconds: {
11792
11846
  type: "int64",
11793
11847
  id: 1
@@ -11797,14 +11851,49 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11797
11851
  id: 2
11798
11852
  }
11799
11853
  } } });
11800
- common("timestamp", { Timestamp: timeType });
11801
- common("empty", { Empty: { fields: {} } });
11854
+ common("timestamp", {
11855
+ /**
11856
+ * Properties of a google.protobuf.Timestamp message.
11857
+ * @interface ITimestamp
11858
+ * @type {Object}
11859
+ * @property {number|Long} [seconds]
11860
+ * @property {number} [nanos]
11861
+ * @memberof common
11862
+ */
11863
+ Timestamp: timeType });
11864
+ common("empty", {
11865
+ /**
11866
+ * Properties of a google.protobuf.Empty message.
11867
+ * @interface IEmpty
11868
+ * @memberof common
11869
+ */
11870
+ Empty: { fields: {} } });
11802
11871
  common("struct", {
11872
+ /**
11873
+ * Properties of a google.protobuf.Struct message.
11874
+ * @interface IStruct
11875
+ * @type {Object}
11876
+ * @property {Object.<string,IValue>} [fields]
11877
+ * @memberof common
11878
+ */
11803
11879
  Struct: { fields: { fields: {
11804
11880
  keyType: "string",
11805
11881
  type: "Value",
11806
11882
  id: 1
11807
11883
  } } },
11884
+ /**
11885
+ * Properties of a google.protobuf.Value message.
11886
+ * @interface IValue
11887
+ * @type {Object}
11888
+ * @property {string} [kind]
11889
+ * @property {0} [nullValue]
11890
+ * @property {number} [numberValue]
11891
+ * @property {string} [stringValue]
11892
+ * @property {boolean} [boolValue]
11893
+ * @property {IStruct} [structValue]
11894
+ * @property {IListValue} [listValue]
11895
+ * @memberof common
11896
+ */
11808
11897
  Value: {
11809
11898
  oneofs: { kind: { oneof: [
11810
11899
  "nullValue",
@@ -11842,6 +11931,13 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11842
11931
  }
11843
11932
  },
11844
11933
  NullValue: { values: { NULL_VALUE: 0 } },
11934
+ /**
11935
+ * Properties of a google.protobuf.ListValue message.
11936
+ * @interface IListValue
11937
+ * @type {Object}
11938
+ * @property {Array.<IValue>} [values]
11939
+ * @memberof common
11940
+ */
11845
11941
  ListValue: { fields: { values: {
11846
11942
  rule: "repeated",
11847
11943
  type: "Value",
@@ -11849,44 +11945,115 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11849
11945
  } } }
11850
11946
  });
11851
11947
  common("wrappers", {
11948
+ /**
11949
+ * Properties of a google.protobuf.DoubleValue message.
11950
+ * @interface IDoubleValue
11951
+ * @type {Object}
11952
+ * @property {number} [value]
11953
+ * @memberof common
11954
+ */
11852
11955
  DoubleValue: { fields: { value: {
11853
11956
  type: "double",
11854
11957
  id: 1
11855
11958
  } } },
11959
+ /**
11960
+ * Properties of a google.protobuf.FloatValue message.
11961
+ * @interface IFloatValue
11962
+ * @type {Object}
11963
+ * @property {number} [value]
11964
+ * @memberof common
11965
+ */
11856
11966
  FloatValue: { fields: { value: {
11857
11967
  type: "float",
11858
11968
  id: 1
11859
11969
  } } },
11970
+ /**
11971
+ * Properties of a google.protobuf.Int64Value message.
11972
+ * @interface IInt64Value
11973
+ * @type {Object}
11974
+ * @property {number|Long} [value]
11975
+ * @memberof common
11976
+ */
11860
11977
  Int64Value: { fields: { value: {
11861
11978
  type: "int64",
11862
11979
  id: 1
11863
11980
  } } },
11981
+ /**
11982
+ * Properties of a google.protobuf.UInt64Value message.
11983
+ * @interface IUInt64Value
11984
+ * @type {Object}
11985
+ * @property {number|Long} [value]
11986
+ * @memberof common
11987
+ */
11864
11988
  UInt64Value: { fields: { value: {
11865
11989
  type: "uint64",
11866
11990
  id: 1
11867
11991
  } } },
11992
+ /**
11993
+ * Properties of a google.protobuf.Int32Value message.
11994
+ * @interface IInt32Value
11995
+ * @type {Object}
11996
+ * @property {number} [value]
11997
+ * @memberof common
11998
+ */
11868
11999
  Int32Value: { fields: { value: {
11869
12000
  type: "int32",
11870
12001
  id: 1
11871
12002
  } } },
12003
+ /**
12004
+ * Properties of a google.protobuf.UInt32Value message.
12005
+ * @interface IUInt32Value
12006
+ * @type {Object}
12007
+ * @property {number} [value]
12008
+ * @memberof common
12009
+ */
11872
12010
  UInt32Value: { fields: { value: {
11873
12011
  type: "uint32",
11874
12012
  id: 1
11875
12013
  } } },
12014
+ /**
12015
+ * Properties of a google.protobuf.BoolValue message.
12016
+ * @interface IBoolValue
12017
+ * @type {Object}
12018
+ * @property {boolean} [value]
12019
+ * @memberof common
12020
+ */
11876
12021
  BoolValue: { fields: { value: {
11877
12022
  type: "bool",
11878
12023
  id: 1
11879
12024
  } } },
12025
+ /**
12026
+ * Properties of a google.protobuf.StringValue message.
12027
+ * @interface IStringValue
12028
+ * @type {Object}
12029
+ * @property {string} [value]
12030
+ * @memberof common
12031
+ */
11880
12032
  StringValue: { fields: { value: {
11881
12033
  type: "string",
11882
12034
  id: 1
11883
12035
  } } },
12036
+ /**
12037
+ * Properties of a google.protobuf.BytesValue message.
12038
+ * @interface IBytesValue
12039
+ * @type {Object}
12040
+ * @property {Uint8Array} [value]
12041
+ * @memberof common
12042
+ */
11884
12043
  BytesValue: { fields: { value: {
11885
12044
  type: "bytes",
11886
12045
  id: 1
11887
12046
  } } }
11888
12047
  });
11889
- common("field_mask", { FieldMask: { fields: { paths: {
12048
+ common("field_mask", {
12049
+ /**
12050
+ * Properties of a google.protobuf.FieldMask message.
12051
+ * @interface IDoubleValue
12052
+ * @type {Object}
12053
+ * @property {number} [value]
12054
+ * @memberof common
12055
+ */
12056
+ FieldMask: { fields: { paths: {
11890
12057
  rule: "repeated",
11891
12058
  type: "string",
11892
12059
  id: 1
@@ -16970,7 +17137,8 @@ var require_single_subchannel_channel = /* @__PURE__ */ __commonJSMin(((exports)
16970
17137
  const splitPath = this.method.split("/");
16971
17138
  let serviceName = "";
16972
17139
  if (splitPath.length >= 2) serviceName = splitPath[1];
16973
- this.serviceUrl = `https://${(_b = (_a = (0, uri_parser_1.splitHostPort)(this.options.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : "localhost"}/${serviceName}`;
17140
+ const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.options.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : "localhost";
17141
+ this.serviceUrl = `https://${hostname}/${serviceName}`;
16974
17142
  const timeout = (0, deadline_1.getRelativeTimeout)(options.deadline);
16975
17143
  if (timeout !== Infinity) if (timeout <= 0) this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, "Deadline exceeded");
16976
17144
  else setTimeout(() => {
@@ -17021,7 +17189,7 @@ var require_single_subchannel_channel = /* @__PURE__ */ __commonJSMin(((exports)
17021
17189
  return;
17022
17190
  }
17023
17191
  credsMetadata.merge(filteredMetadata);
17024
- this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, {
17192
+ const childListener = {
17025
17193
  onReceiveMetadata: async (metadata) => {
17026
17194
  listener.onReceiveMetadata(await this.filterStack.receiveMetadata(metadata));
17027
17195
  },
@@ -17037,7 +17205,8 @@ var require_single_subchannel_channel = /* @__PURE__ */ __commonJSMin(((exports)
17037
17205
  if (this.readFilterPending) this.pendingStatus = filteredStatus;
17038
17206
  else listener.onReceiveStatus(filteredStatus);
17039
17207
  }
17040
- });
17208
+ };
17209
+ this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener);
17041
17210
  if (this.readPending) this.childCall.startRead();
17042
17211
  if (this.pendingMessage) this.childCall.sendMessageWithContext(this.pendingMessage.context, this.pendingMessage.message);
17043
17212
  if (this.halfClosePending && !this.writeFilterPending) this.childCall.halfClose();
@@ -18904,7 +19073,8 @@ var require_load_balancing_call = /* @__PURE__ */ __commonJSMin(((exports) => {
18904
19073
  const splitPath = this.methodName.split("/");
18905
19074
  let serviceName = "";
18906
19075
  if (splitPath.length >= 2) serviceName = splitPath[1];
18907
- this.serviceUrl = `https://${(_b = (_a = (0, uri_parser_1.splitHostPort)(this.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : "localhost"}/${serviceName}`;
19076
+ const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : "localhost";
19077
+ this.serviceUrl = `https://${hostname}/${serviceName}`;
18908
19078
  this.startTime = /* @__PURE__ */ new Date();
18909
19079
  }
18910
19080
  getDeadlineInfo() {
@@ -20102,7 +20272,7 @@ var require_internal_channel = /* @__PURE__ */ __commonJSMin(((exports) => {
20102
20272
  this.retryBufferTracker = new retrying_call_1.MessageBufferTracker((_b = this.options["grpc.retry_buffer_size"]) !== null && _b !== void 0 ? _b : DEFAULT_RETRY_BUFFER_SIZE_BYTES, (_c = this.options["grpc.per_rpc_retry_buffer_size"]) !== null && _c !== void 0 ? _c : DEFAULT_PER_RPC_RETRY_BUFFER_SIZE_BYTES);
20103
20273
  this.keepaliveTime = (_d = this.options["grpc.keepalive_time_ms"]) !== null && _d !== void 0 ? _d : -1;
20104
20274
  this.idleTimeoutMs = Math.max((_e = this.options["grpc.client_idle_timeout_ms"]) !== null && _e !== void 0 ? _e : DEFAULT_IDLE_TIMEOUT_MS, MIN_IDLE_TIMEOUT_MS);
20105
- this.resolvingLoadBalancer = new resolving_load_balancer_1.ResolvingLoadBalancer(this.target, {
20275
+ const channelControlHelper = {
20106
20276
  createSubchannel: (subchannelAddress, subchannelArgs) => {
20107
20277
  const finalSubchannelArgs = {};
20108
20278
  for (const [key, value] of Object.entries(subchannelArgs)) if (!key.startsWith(exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX)) finalSubchannelArgs[key] = value;
@@ -20128,7 +20298,8 @@ var require_internal_channel = /* @__PURE__ */ __commonJSMin(((exports) => {
20128
20298
  removeChannelzChild: (child) => {
20129
20299
  if (this.channelzEnabled) this.channelzInfoTracker.childrenTracker.unrefChild(child);
20130
20300
  }
20131
- }, this.options, (serviceConfig, configSelector) => {
20301
+ };
20302
+ this.resolvingLoadBalancer = new resolving_load_balancer_1.ResolvingLoadBalancer(this.target, channelControlHelper, this.options, (serviceConfig, configSelector) => {
20132
20303
  var _a;
20133
20304
  if (serviceConfig.retryThrottling) RETRY_THROTTLER_MAP.set(this.getTarget(), new retrying_call_1.RetryThrottler(serviceConfig.retryThrottling.maxTokens, serviceConfig.retryThrottling.tokenRatio, RETRY_THROTTLER_MAP.get(this.getTarget())));
20134
20305
  else RETRY_THROTTLER_MAP.delete(this.getTarget());
@@ -21094,7 +21265,8 @@ var require_orca = /* @__PURE__ */ __commonJSMin(((exports) => {
21094
21265
  this.currentInterval = Infinity;
21095
21266
  this.backoffTimer = new backoff_timeout_1.BackoffTimeout(() => this.updateMetricsSubscription());
21096
21267
  this.subchannelStateListener = () => this.updateMetricsSubscription();
21097
- this.client = createOrcaClient(subchannel.getChannel());
21268
+ const channel = subchannel.getChannel();
21269
+ this.client = createOrcaClient(channel);
21098
21270
  subchannel.addConnectivityStateListener(this.subchannelStateListener);
21099
21271
  }
21100
21272
  addDataWatcher(dataWatcher) {
@@ -23521,11 +23693,12 @@ var require_load_balancer_pick_first = /* @__PURE__ */ __commonJSMin(((exports)
23521
23693
  this.options = options;
23522
23694
  this.resolutionNote = resolutionNote;
23523
23695
  this.latestState = connectivity_state_1.ConnectivityState.IDLE;
23524
- this.pickFirstBalancer = new PickFirstLoadBalancer((0, load_balancer_1.createChildChannelControlHelper)(channelControlHelper, { updateState: (connectivityState, picker, errorMessage) => {
23696
+ const childChannelControlHelper = (0, load_balancer_1.createChildChannelControlHelper)(channelControlHelper, { updateState: (connectivityState, picker, errorMessage) => {
23525
23697
  this.latestState = connectivityState;
23526
23698
  this.latestPicker = picker;
23527
23699
  channelControlHelper.updateState(connectivityState, picker, errorMessage);
23528
- } }));
23700
+ } });
23701
+ this.pickFirstBalancer = new PickFirstLoadBalancer(childChannelControlHelper);
23529
23702
  this.latestPicker = new picker_1.QueuePicker(this.pickFirstBalancer);
23530
23703
  }
23531
23704
  startConnecting() {
@@ -25053,9 +25226,23 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
25053
25226
  });
25054
25227
  /**** Client Credentials ****/
25055
25228
  exports.credentials = {
25229
+ /**
25230
+ * Combine a ChannelCredentials with any number of CallCredentials into a
25231
+ * single ChannelCredentials object.
25232
+ * @param channelCredentials The ChannelCredentials object.
25233
+ * @param callCredentials Any number of CallCredentials objects.
25234
+ * @return The resulting ChannelCredentials object.
25235
+ */
25056
25236
  combineChannelCredentials: (channelCredentials, ...callCredentials) => {
25057
25237
  return callCredentials.reduce((acc, other) => acc.compose(other), channelCredentials);
25058
25238
  },
25239
+ /**
25240
+ * Combine any number of CallCredentials into a single CallCredentials
25241
+ * object.
25242
+ * @param first The first CallCredentials object.
25243
+ * @param additional Any number of additional CallCredentials objects.
25244
+ * @return The resulting CallCredentials object.
25245
+ */
25059
25246
  combineCallCredentials: (first, ...additional) => {
25060
25247
  return additional.reduce((acc, other) => acc.compose(other), first);
25061
25248
  },
@@ -27305,7 +27492,7 @@ function varint32read() {
27305
27492
  /**
27306
27493
  * Int64Support for the current environment.
27307
27494
  */
27308
- const protoInt64 = /* @__PURE__ */ makeInt64Support();
27495
+ const protoInt64 = /*@__PURE__*/ makeInt64Support();
27309
27496
  function makeInt64Support() {
27310
27497
  const dv = /* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(8));
27311
27498
  if (typeof BigInt === "function" && typeof dv.getBigInt64 === "function" && typeof dv.getBigUint64 === "function" && typeof dv.setBigInt64 === "function" && typeof dv.setBigUint64 === "function" && (!!globalThis.Deno || typeof process != "object" || typeof process.env != "object" || process.env.BUF_BIGINT_DISABLE !== "1")) {
@@ -27871,50 +28058,48 @@ function assertFloat32(arg) {
27871
28058
  //#endregion
27872
28059
  //#region src/generated/artifact_registry.ts
27873
28060
  var import_lib = require_lib();
27874
- /** Permissions for registry access */
27875
- let ArtifactRegistryPermissions = /* @__PURE__ */ function(ArtifactRegistryPermissions) {
27876
- /** PULL - Pull permissions (read-only) */
27877
- ArtifactRegistryPermissions[ArtifactRegistryPermissions["PULL"] = 0] = "PULL";
27878
- /** PUSH_PULL - Push and pull permissions (read-write) */
27879
- ArtifactRegistryPermissions[ArtifactRegistryPermissions["PUSH_PULL"] = 1] = "PUSH_PULL";
27880
- ArtifactRegistryPermissions[ArtifactRegistryPermissions["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
27881
- return ArtifactRegistryPermissions;
27882
- }({});
27883
28061
  function artifactRegistryPermissionsFromJSON(object) {
27884
28062
  switch (object) {
27885
28063
  case 0:
27886
- case "PULL": return ArtifactRegistryPermissions.PULL;
28064
+ case "PULL": return 0;
27887
28065
  case 1:
27888
- case "PUSH_PULL": return ArtifactRegistryPermissions.PUSH_PULL;
27889
- default: return ArtifactRegistryPermissions.UNRECOGNIZED;
28066
+ case "PUSH_PULL": return 1;
28067
+ default: return -1;
27890
28068
  }
27891
28069
  }
27892
28070
  function artifactRegistryPermissionsToJSON(object) {
27893
28071
  switch (object) {
27894
- case ArtifactRegistryPermissions.PULL: return "PULL";
27895
- case ArtifactRegistryPermissions.PUSH_PULL: return "PUSH_PULL";
27896
- case ArtifactRegistryPermissions.UNRECOGNIZED:
28072
+ case 0: return "PULL";
28073
+ case 1: return "PUSH_PULL";
27897
28074
  default: return "UNRECOGNIZED";
27898
28075
  }
27899
28076
  }
27900
- /** Types of compute services that can access artifact registries */
27901
- let ComputeServiceType = /* @__PURE__ */ function(ComputeServiceType) {
27902
- /** FUNCTION - Serverless functions */
27903
- ComputeServiceType[ComputeServiceType["FUNCTION"] = 0] = "FUNCTION";
27904
- ComputeServiceType[ComputeServiceType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
27905
- return ComputeServiceType;
27906
- }({});
27907
28077
  function computeServiceTypeFromJSON(object) {
27908
28078
  switch (object) {
27909
28079
  case 0:
27910
- case "FUNCTION": return ComputeServiceType.FUNCTION;
27911
- default: return ComputeServiceType.UNRECOGNIZED;
28080
+ case "WORKER": return 0;
28081
+ default: return -1;
27912
28082
  }
27913
28083
  }
27914
28084
  function computeServiceTypeToJSON(object) {
27915
28085
  switch (object) {
27916
- case ComputeServiceType.FUNCTION: return "FUNCTION";
27917
- case ComputeServiceType.UNRECOGNIZED:
28086
+ case 0: return "WORKER";
28087
+ default: return "UNRECOGNIZED";
28088
+ }
28089
+ }
28090
+ function authMethodFromJSON(object) {
28091
+ switch (object) {
28092
+ case 0:
28093
+ case "AUTH_METHOD_BASIC": return 0;
28094
+ case 1:
28095
+ case "AUTH_METHOD_BEARER": return 1;
28096
+ default: return -1;
28097
+ }
28098
+ }
28099
+ function authMethodToJSON(object) {
28100
+ switch (object) {
28101
+ case 0: return "AUTH_METHOD_BASIC";
28102
+ case 1: return "AUTH_METHOD_BEARER";
27918
28103
  default: return "UNRECOGNIZED";
27919
28104
  }
27920
28105
  }
@@ -28936,7 +29121,8 @@ function createBaseCredentials() {
28936
29121
  return {
28937
29122
  username: "",
28938
29123
  password: "",
28939
- expiresAt: void 0
29124
+ expiresAt: void 0,
29125
+ authMethod: 0
28940
29126
  };
28941
29127
  }
28942
29128
  const Credentials = {
@@ -28944,6 +29130,7 @@ const Credentials = {
28944
29130
  if (message.username !== "") writer.uint32(10).string(message.username);
28945
29131
  if (message.password !== "") writer.uint32(18).string(message.password);
28946
29132
  if (message.expiresAt !== void 0) writer.uint32(26).string(message.expiresAt);
29133
+ if (message.authMethod !== 0) writer.uint32(32).int32(message.authMethod);
28947
29134
  return writer;
28948
29135
  },
28949
29136
  decode(input, length) {
@@ -28965,6 +29152,10 @@ const Credentials = {
28965
29152
  if (tag !== 26) break;
28966
29153
  message.expiresAt = reader.string();
28967
29154
  continue;
29155
+ case 4:
29156
+ if (tag !== 32) break;
29157
+ message.authMethod = reader.int32();
29158
+ continue;
28968
29159
  }
28969
29160
  if ((tag & 7) === 4 || tag === 0) break;
28970
29161
  reader.skip(tag & 7);
@@ -28975,7 +29166,8 @@ const Credentials = {
28975
29166
  return {
28976
29167
  username: isSet$11(object.username) ? globalThis.String(object.username) : "",
28977
29168
  password: isSet$11(object.password) ? globalThis.String(object.password) : "",
28978
- expiresAt: isSet$11(object.expiresAt) ? globalThis.String(object.expiresAt) : void 0
29169
+ expiresAt: isSet$11(object.expiresAt) ? globalThis.String(object.expiresAt) : void 0,
29170
+ authMethod: isSet$11(object.authMethod) ? authMethodFromJSON(object.authMethod) : 0
28979
29171
  };
28980
29172
  },
28981
29173
  toJSON(message) {
@@ -28983,6 +29175,7 @@ const Credentials = {
28983
29175
  if (message.username !== "") obj.username = message.username;
28984
29176
  if (message.password !== "") obj.password = message.password;
28985
29177
  if (message.expiresAt !== void 0) obj.expiresAt = message.expiresAt;
29178
+ if (message.authMethod !== 0) obj.authMethod = authMethodToJSON(message.authMethod);
28986
29179
  return obj;
28987
29180
  },
28988
29181
  create(base) {
@@ -28993,6 +29186,7 @@ const Credentials = {
28993
29186
  message.username = object.username ?? "";
28994
29187
  message.password = object.password ?? "";
28995
29188
  message.expiresAt = object.expiresAt ?? void 0;
29189
+ message.authMethod = object.authMethod ?? 0;
28996
29190
  return message;
28997
29191
  }
28998
29192
  };
@@ -29000,6 +29194,7 @@ const ArtifactRegistryServiceDefinition = {
29000
29194
  name: "ArtifactRegistryService",
29001
29195
  fullName: "alien_bindings.artifact_registry.ArtifactRegistryService",
29002
29196
  methods: {
29197
+ /** Create a repository within the artifact registry */
29003
29198
  createRepository: {
29004
29199
  name: "CreateRepository",
29005
29200
  requestType: CreateRepositoryRequest,
@@ -29008,6 +29203,7 @@ const ArtifactRegistryServiceDefinition = {
29008
29203
  responseStream: false,
29009
29204
  options: {}
29010
29205
  },
29206
+ /** Get repository details including name, URI, and creation time */
29011
29207
  getRepository: {
29012
29208
  name: "GetRepository",
29013
29209
  requestType: GetRepositoryRequest,
@@ -29016,6 +29212,7 @@ const ArtifactRegistryServiceDefinition = {
29016
29212
  responseStream: false,
29017
29213
  options: {}
29018
29214
  },
29215
+ /** Add cross-account access permissions for a repository */
29019
29216
  addCrossAccountAccess: {
29020
29217
  name: "AddCrossAccountAccess",
29021
29218
  requestType: AddCrossAccountAccessRequest,
@@ -29024,6 +29221,7 @@ const ArtifactRegistryServiceDefinition = {
29024
29221
  responseStream: false,
29025
29222
  options: {}
29026
29223
  },
29224
+ /** Remove cross-account access permissions for a repository */
29027
29225
  removeCrossAccountAccess: {
29028
29226
  name: "RemoveCrossAccountAccess",
29029
29227
  requestType: RemoveCrossAccountAccessRequest,
@@ -29032,6 +29230,7 @@ const ArtifactRegistryServiceDefinition = {
29032
29230
  responseStream: false,
29033
29231
  options: {}
29034
29232
  },
29233
+ /** Get the current cross-account access permissions for a repository */
29035
29234
  getCrossAccountAccess: {
29036
29235
  name: "GetCrossAccountAccess",
29037
29236
  requestType: GetCrossAccountAccessRequest,
@@ -29040,6 +29239,7 @@ const ArtifactRegistryServiceDefinition = {
29040
29239
  responseStream: false,
29041
29240
  options: {}
29042
29241
  },
29242
+ /** Generate credentials for accessing a repository */
29043
29243
  generateCredentials: {
29044
29244
  name: "GenerateCredentials",
29045
29245
  requestType: GenerateCredentialsRequest,
@@ -29048,6 +29248,7 @@ const ArtifactRegistryServiceDefinition = {
29048
29248
  responseStream: false,
29049
29249
  options: {}
29050
29250
  },
29251
+ /** Delete a repository and all contained images */
29051
29252
  deleteRepository: {
29052
29253
  name: "DeleteRepository",
29053
29254
  requestType: DeleteRepositoryRequest,
@@ -29367,8 +29568,8 @@ async function wrapGrpcCall(service, method, call, context) {
29367
29568
  * Provides container image repository management.
29368
29569
  */
29369
29570
  const permissionMap = {
29370
- pull: ArtifactRegistryPermissions.PULL,
29371
- "push-pull": ArtifactRegistryPermissions.PUSH_PULL
29571
+ pull: 0,
29572
+ "push-pull": 1
29372
29573
  };
29373
29574
  /**
29374
29575
  * ArtifactRegistry binding for container repository management.
@@ -29511,6 +29712,7 @@ var ArtifactRegistry = class {
29511
29712
  }
29512
29713
  fromProtoCredentials(proto) {
29513
29714
  return {
29715
+ authMethod: proto.authMethod === 1 ? "bearer" : "basic",
29514
29716
  username: proto.username,
29515
29717
  password: proto.password,
29516
29718
  expiresAt: proto.expiresAt ? new Date(proto.expiresAt) : void 0
@@ -29564,96 +29766,72 @@ var ArtifactRegistry = class {
29564
29766
  }
29565
29767
  computeServiceTypeToProto(st) {
29566
29768
  switch (st) {
29567
- case "function": return ComputeServiceType.FUNCTION;
29568
- default: return ComputeServiceType.UNRECOGNIZED;
29769
+ case "worker": return 0;
29770
+ default: return -1;
29569
29771
  }
29570
29772
  }
29571
29773
  protoToComputeServiceType(st) {
29572
29774
  switch (st) {
29573
- case ComputeServiceType.FUNCTION: return "function";
29775
+ case 0: return "worker";
29574
29776
  default: return;
29575
29777
  }
29576
29778
  }
29577
29779
  };
29578
29780
  //#endregion
29579
29781
  //#region src/generated/build.ts
29580
- /** Build status enumeration */
29581
- let BuildStatus = /* @__PURE__ */ function(BuildStatus) {
29582
- BuildStatus[BuildStatus["BUILD_STATUS_UNSPECIFIED"] = 0] = "BUILD_STATUS_UNSPECIFIED";
29583
- BuildStatus[BuildStatus["BUILD_STATUS_QUEUED"] = 1] = "BUILD_STATUS_QUEUED";
29584
- BuildStatus[BuildStatus["BUILD_STATUS_RUNNING"] = 2] = "BUILD_STATUS_RUNNING";
29585
- BuildStatus[BuildStatus["BUILD_STATUS_SUCCEEDED"] = 3] = "BUILD_STATUS_SUCCEEDED";
29586
- BuildStatus[BuildStatus["BUILD_STATUS_FAILED"] = 4] = "BUILD_STATUS_FAILED";
29587
- BuildStatus[BuildStatus["BUILD_STATUS_CANCELLED"] = 5] = "BUILD_STATUS_CANCELLED";
29588
- BuildStatus[BuildStatus["BUILD_STATUS_TIMED_OUT"] = 6] = "BUILD_STATUS_TIMED_OUT";
29589
- BuildStatus[BuildStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
29590
- return BuildStatus;
29591
- }({});
29592
29782
  function buildStatusFromJSON(object) {
29593
29783
  switch (object) {
29594
29784
  case 0:
29595
- case "BUILD_STATUS_UNSPECIFIED": return BuildStatus.BUILD_STATUS_UNSPECIFIED;
29785
+ case "BUILD_STATUS_UNSPECIFIED": return 0;
29596
29786
  case 1:
29597
- case "BUILD_STATUS_QUEUED": return BuildStatus.BUILD_STATUS_QUEUED;
29787
+ case "BUILD_STATUS_QUEUED": return 1;
29598
29788
  case 2:
29599
- case "BUILD_STATUS_RUNNING": return BuildStatus.BUILD_STATUS_RUNNING;
29789
+ case "BUILD_STATUS_RUNNING": return 2;
29600
29790
  case 3:
29601
- case "BUILD_STATUS_SUCCEEDED": return BuildStatus.BUILD_STATUS_SUCCEEDED;
29791
+ case "BUILD_STATUS_SUCCEEDED": return 3;
29602
29792
  case 4:
29603
- case "BUILD_STATUS_FAILED": return BuildStatus.BUILD_STATUS_FAILED;
29793
+ case "BUILD_STATUS_FAILED": return 4;
29604
29794
  case 5:
29605
- case "BUILD_STATUS_CANCELLED": return BuildStatus.BUILD_STATUS_CANCELLED;
29795
+ case "BUILD_STATUS_CANCELLED": return 5;
29606
29796
  case 6:
29607
- case "BUILD_STATUS_TIMED_OUT": return BuildStatus.BUILD_STATUS_TIMED_OUT;
29608
- default: return BuildStatus.UNRECOGNIZED;
29797
+ case "BUILD_STATUS_TIMED_OUT": return 6;
29798
+ default: return -1;
29609
29799
  }
29610
29800
  }
29611
29801
  function buildStatusToJSON(object) {
29612
29802
  switch (object) {
29613
- case BuildStatus.BUILD_STATUS_UNSPECIFIED: return "BUILD_STATUS_UNSPECIFIED";
29614
- case BuildStatus.BUILD_STATUS_QUEUED: return "BUILD_STATUS_QUEUED";
29615
- case BuildStatus.BUILD_STATUS_RUNNING: return "BUILD_STATUS_RUNNING";
29616
- case BuildStatus.BUILD_STATUS_SUCCEEDED: return "BUILD_STATUS_SUCCEEDED";
29617
- case BuildStatus.BUILD_STATUS_FAILED: return "BUILD_STATUS_FAILED";
29618
- case BuildStatus.BUILD_STATUS_CANCELLED: return "BUILD_STATUS_CANCELLED";
29619
- case BuildStatus.BUILD_STATUS_TIMED_OUT: return "BUILD_STATUS_TIMED_OUT";
29620
- case BuildStatus.UNRECOGNIZED:
29803
+ case 0: return "BUILD_STATUS_UNSPECIFIED";
29804
+ case 1: return "BUILD_STATUS_QUEUED";
29805
+ case 2: return "BUILD_STATUS_RUNNING";
29806
+ case 3: return "BUILD_STATUS_SUCCEEDED";
29807
+ case 4: return "BUILD_STATUS_FAILED";
29808
+ case 5: return "BUILD_STATUS_CANCELLED";
29809
+ case 6: return "BUILD_STATUS_TIMED_OUT";
29621
29810
  default: return "UNRECOGNIZED";
29622
29811
  }
29623
29812
  }
29624
- /** Compute type enumeration */
29625
- let ComputeType = /* @__PURE__ */ function(ComputeType) {
29626
- ComputeType[ComputeType["COMPUTE_TYPE_UNSPECIFIED"] = 0] = "COMPUTE_TYPE_UNSPECIFIED";
29627
- ComputeType[ComputeType["COMPUTE_TYPE_SMALL"] = 1] = "COMPUTE_TYPE_SMALL";
29628
- ComputeType[ComputeType["COMPUTE_TYPE_MEDIUM"] = 2] = "COMPUTE_TYPE_MEDIUM";
29629
- ComputeType[ComputeType["COMPUTE_TYPE_LARGE"] = 3] = "COMPUTE_TYPE_LARGE";
29630
- ComputeType[ComputeType["COMPUTE_TYPE_XLARGE"] = 4] = "COMPUTE_TYPE_XLARGE";
29631
- ComputeType[ComputeType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
29632
- return ComputeType;
29633
- }({});
29634
29813
  function computeTypeFromJSON(object) {
29635
29814
  switch (object) {
29636
29815
  case 0:
29637
- case "COMPUTE_TYPE_UNSPECIFIED": return ComputeType.COMPUTE_TYPE_UNSPECIFIED;
29816
+ case "COMPUTE_TYPE_UNSPECIFIED": return 0;
29638
29817
  case 1:
29639
- case "COMPUTE_TYPE_SMALL": return ComputeType.COMPUTE_TYPE_SMALL;
29818
+ case "COMPUTE_TYPE_SMALL": return 1;
29640
29819
  case 2:
29641
- case "COMPUTE_TYPE_MEDIUM": return ComputeType.COMPUTE_TYPE_MEDIUM;
29820
+ case "COMPUTE_TYPE_MEDIUM": return 2;
29642
29821
  case 3:
29643
- case "COMPUTE_TYPE_LARGE": return ComputeType.COMPUTE_TYPE_LARGE;
29822
+ case "COMPUTE_TYPE_LARGE": return 3;
29644
29823
  case 4:
29645
- case "COMPUTE_TYPE_XLARGE": return ComputeType.COMPUTE_TYPE_XLARGE;
29646
- default: return ComputeType.UNRECOGNIZED;
29824
+ case "COMPUTE_TYPE_XLARGE": return 4;
29825
+ default: return -1;
29647
29826
  }
29648
29827
  }
29649
29828
  function computeTypeToJSON(object) {
29650
29829
  switch (object) {
29651
- case ComputeType.COMPUTE_TYPE_UNSPECIFIED: return "COMPUTE_TYPE_UNSPECIFIED";
29652
- case ComputeType.COMPUTE_TYPE_SMALL: return "COMPUTE_TYPE_SMALL";
29653
- case ComputeType.COMPUTE_TYPE_MEDIUM: return "COMPUTE_TYPE_MEDIUM";
29654
- case ComputeType.COMPUTE_TYPE_LARGE: return "COMPUTE_TYPE_LARGE";
29655
- case ComputeType.COMPUTE_TYPE_XLARGE: return "COMPUTE_TYPE_XLARGE";
29656
- case ComputeType.UNRECOGNIZED:
29830
+ case 0: return "COMPUTE_TYPE_UNSPECIFIED";
29831
+ case 1: return "COMPUTE_TYPE_SMALL";
29832
+ case 2: return "COMPUTE_TYPE_MEDIUM";
29833
+ case 3: return "COMPUTE_TYPE_LARGE";
29834
+ case 4: return "COMPUTE_TYPE_XLARGE";
29657
29835
  default: return "UNRECOGNIZED";
29658
29836
  }
29659
29837
  }
@@ -30331,6 +30509,7 @@ const BuildServiceDefinition = {
30331
30509
  name: "BuildService",
30332
30510
  fullName: "alien_bindings.build.BuildService",
30333
30511
  methods: {
30512
+ /** Start a new build with the given configuration */
30334
30513
  startBuild: {
30335
30514
  name: "StartBuild",
30336
30515
  requestType: StartBuildRequest,
@@ -30339,6 +30518,7 @@ const BuildServiceDefinition = {
30339
30518
  responseStream: false,
30340
30519
  options: {}
30341
30520
  },
30521
+ /** Get the status of a specific build execution */
30342
30522
  getBuildStatus: {
30343
30523
  name: "GetBuildStatus",
30344
30524
  requestType: GetBuildStatusRequest,
@@ -30347,6 +30527,7 @@ const BuildServiceDefinition = {
30347
30527
  responseStream: false,
30348
30528
  options: {}
30349
30529
  },
30530
+ /** Stop or cancel a running build */
30350
30531
  stopBuild: {
30351
30532
  name: "StopBuild",
30352
30533
  requestType: StopBuildRequest,
@@ -30366,19 +30547,19 @@ function isSet$10(value) {
30366
30547
  //#endregion
30367
30548
  //#region src/bindings/build.ts
30368
30549
  const statusMap = {
30369
- [BuildStatus.BUILD_STATUS_UNSPECIFIED]: "FAILED",
30370
- [BuildStatus.BUILD_STATUS_QUEUED]: "QUEUED",
30371
- [BuildStatus.BUILD_STATUS_RUNNING]: "RUNNING",
30372
- [BuildStatus.BUILD_STATUS_SUCCEEDED]: "SUCCEEDED",
30373
- [BuildStatus.BUILD_STATUS_FAILED]: "FAILED",
30374
- [BuildStatus.BUILD_STATUS_CANCELLED]: "CANCELLED",
30375
- [BuildStatus.BUILD_STATUS_TIMED_OUT]: "TIMED_OUT"
30550
+ [0]: "FAILED",
30551
+ [1]: "QUEUED",
30552
+ [2]: "RUNNING",
30553
+ [3]: "SUCCEEDED",
30554
+ [4]: "FAILED",
30555
+ [5]: "CANCELLED",
30556
+ [6]: "TIMED_OUT"
30376
30557
  };
30377
30558
  const computeTypeMap = {
30378
- small: ComputeType.COMPUTE_TYPE_SMALL,
30379
- medium: ComputeType.COMPUTE_TYPE_MEDIUM,
30380
- large: ComputeType.COMPUTE_TYPE_LARGE,
30381
- "x-large": ComputeType.COMPUTE_TYPE_XLARGE
30559
+ small: 1,
30560
+ medium: 2,
30561
+ large: 3,
30562
+ "x-large": 4
30382
30563
  };
30383
30564
  /**
30384
30565
  * Build binding for executing build operations.
@@ -30474,7 +30655,7 @@ var Build = class {
30474
30655
  return {
30475
30656
  script: config.script,
30476
30657
  environment: config.environment ?? {},
30477
- computeType: config.computeType ? computeTypeMap[config.computeType] ?? ComputeType.COMPUTE_TYPE_UNSPECIFIED : ComputeType.COMPUTE_TYPE_UNSPECIFIED,
30658
+ computeType: config.computeType ? computeTypeMap[config.computeType] ?? 0 : 0,
30478
30659
  timeoutSeconds: config.timeoutSeconds,
30479
30660
  monitoring: config.monitoring ? {
30480
30661
  endpoint: config.monitoring.endpoint,
@@ -30495,38 +30676,23 @@ var Build = class {
30495
30676
  }
30496
30677
  };
30497
30678
  //#endregion
30498
- //#region src/generated/function.ts
30499
- function createBaseInvokeRequest() {
30679
+ //#region src/generated/kv.ts
30680
+ function createBaseGetRequest() {
30500
30681
  return {
30501
30682
  bindingName: "",
30502
- targetFunction: "",
30503
- method: "",
30504
- path: "",
30505
- headers: {},
30506
- body: new Uint8Array(0),
30507
- timeoutSeconds: void 0
30683
+ key: ""
30508
30684
  };
30509
30685
  }
30510
- const InvokeRequest = {
30686
+ const GetRequest = {
30511
30687
  encode(message, writer = new BinaryWriter()) {
30512
30688
  if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
30513
- if (message.targetFunction !== "") writer.uint32(18).string(message.targetFunction);
30514
- if (message.method !== "") writer.uint32(26).string(message.method);
30515
- if (message.path !== "") writer.uint32(34).string(message.path);
30516
- globalThis.Object.entries(message.headers).forEach(([key, value]) => {
30517
- InvokeRequest_HeadersEntry.encode({
30518
- key,
30519
- value
30520
- }, writer.uint32(42).fork()).join();
30521
- });
30522
- if (message.body.length !== 0) writer.uint32(50).bytes(message.body);
30523
- if (message.timeoutSeconds !== void 0) writer.uint32(56).uint64(message.timeoutSeconds);
30689
+ if (message.key !== "") writer.uint32(18).string(message.key);
30524
30690
  return writer;
30525
30691
  },
30526
30692
  decode(input, length) {
30527
30693
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30528
30694
  const end = length === void 0 ? reader.len : reader.pos + length;
30529
- const message = createBaseInvokeRequest();
30695
+ const message = createBaseGetRequest();
30530
30696
  while (reader.pos < end) {
30531
30697
  const tag = reader.uint32();
30532
30698
  switch (tag >>> 3) {
@@ -30536,29 +30702,7 @@ const InvokeRequest = {
30536
30702
  continue;
30537
30703
  case 2:
30538
30704
  if (tag !== 18) break;
30539
- message.targetFunction = reader.string();
30540
- continue;
30541
- case 3:
30542
- if (tag !== 26) break;
30543
- message.method = reader.string();
30544
- continue;
30545
- case 4:
30546
- if (tag !== 34) break;
30547
- message.path = reader.string();
30548
- continue;
30549
- case 5: {
30550
- if (tag !== 42) break;
30551
- const entry5 = InvokeRequest_HeadersEntry.decode(reader, reader.uint32());
30552
- if (entry5.value !== void 0) message.headers[entry5.key] = entry5.value;
30553
- continue;
30554
- }
30555
- case 6:
30556
- if (tag !== 50) break;
30557
- message.body = reader.bytes();
30558
- continue;
30559
- case 7:
30560
- if (tag !== 56) break;
30561
- message.timeoutSeconds = longToNumber$5(reader.uint64());
30705
+ message.key = reader.string();
30562
30706
  continue;
30563
30707
  }
30564
30708
  if ((tag & 7) === 4 || tag === 0) break;
@@ -30569,80 +30713,105 @@ const InvokeRequest = {
30569
30713
  fromJSON(object) {
30570
30714
  return {
30571
30715
  bindingName: isSet$9(object.bindingName) ? globalThis.String(object.bindingName) : "",
30572
- targetFunction: isSet$9(object.targetFunction) ? globalThis.String(object.targetFunction) : "",
30573
- method: isSet$9(object.method) ? globalThis.String(object.method) : "",
30574
- path: isSet$9(object.path) ? globalThis.String(object.path) : "",
30575
- headers: isObject$1(object.headers) ? globalThis.Object.entries(object.headers).reduce((acc, [key, value]) => {
30576
- acc[key] = globalThis.String(value);
30577
- return acc;
30578
- }, {}) : {},
30579
- body: isSet$9(object.body) ? bytesFromBase64$3(object.body) : new Uint8Array(0),
30580
- timeoutSeconds: isSet$9(object.timeoutSeconds) ? globalThis.Number(object.timeoutSeconds) : void 0
30716
+ key: isSet$9(object.key) ? globalThis.String(object.key) : ""
30581
30717
  };
30582
30718
  },
30583
30719
  toJSON(message) {
30584
30720
  const obj = {};
30585
30721
  if (message.bindingName !== "") obj.bindingName = message.bindingName;
30586
- if (message.targetFunction !== "") obj.targetFunction = message.targetFunction;
30587
- if (message.method !== "") obj.method = message.method;
30588
- if (message.path !== "") obj.path = message.path;
30589
- if (message.headers) {
30590
- const entries = globalThis.Object.entries(message.headers);
30591
- if (entries.length > 0) {
30592
- obj.headers = {};
30593
- entries.forEach(([k, v]) => {
30594
- obj.headers[k] = v;
30595
- });
30722
+ if (message.key !== "") obj.key = message.key;
30723
+ return obj;
30724
+ },
30725
+ create(base) {
30726
+ return GetRequest.fromPartial(base ?? {});
30727
+ },
30728
+ fromPartial(object) {
30729
+ const message = createBaseGetRequest();
30730
+ message.bindingName = object.bindingName ?? "";
30731
+ message.key = object.key ?? "";
30732
+ return message;
30733
+ }
30734
+ };
30735
+ function createBaseGetResponse() {
30736
+ return { value: void 0 };
30737
+ }
30738
+ const GetResponse = {
30739
+ encode(message, writer = new BinaryWriter()) {
30740
+ if (message.value !== void 0) writer.uint32(10).bytes(message.value);
30741
+ return writer;
30742
+ },
30743
+ decode(input, length) {
30744
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30745
+ const end = length === void 0 ? reader.len : reader.pos + length;
30746
+ const message = createBaseGetResponse();
30747
+ while (reader.pos < end) {
30748
+ const tag = reader.uint32();
30749
+ switch (tag >>> 3) {
30750
+ case 1:
30751
+ if (tag !== 10) break;
30752
+ message.value = reader.bytes();
30753
+ continue;
30596
30754
  }
30755
+ if ((tag & 7) === 4 || tag === 0) break;
30756
+ reader.skip(tag & 7);
30597
30757
  }
30598
- if (message.body.length !== 0) obj.body = base64FromBytes$3(message.body);
30599
- if (message.timeoutSeconds !== void 0) obj.timeoutSeconds = Math.round(message.timeoutSeconds);
30758
+ return message;
30759
+ },
30760
+ fromJSON(object) {
30761
+ return { value: isSet$9(object.value) ? bytesFromBase64$3(object.value) : void 0 };
30762
+ },
30763
+ toJSON(message) {
30764
+ const obj = {};
30765
+ if (message.value !== void 0) obj.value = base64FromBytes$3(message.value);
30600
30766
  return obj;
30601
30767
  },
30602
30768
  create(base) {
30603
- return InvokeRequest.fromPartial(base ?? {});
30769
+ return GetResponse.fromPartial(base ?? {});
30604
30770
  },
30605
30771
  fromPartial(object) {
30606
- const message = createBaseInvokeRequest();
30607
- message.bindingName = object.bindingName ?? "";
30608
- message.targetFunction = object.targetFunction ?? "";
30609
- message.method = object.method ?? "";
30610
- message.path = object.path ?? "";
30611
- message.headers = globalThis.Object.entries(object.headers ?? {}).reduce((acc, [key, value]) => {
30612
- if (value !== void 0) acc[key] = globalThis.String(value);
30613
- return acc;
30614
- }, {});
30615
- message.body = object.body ?? new Uint8Array(0);
30616
- message.timeoutSeconds = object.timeoutSeconds ?? void 0;
30772
+ const message = createBaseGetResponse();
30773
+ message.value = object.value ?? void 0;
30617
30774
  return message;
30618
30775
  }
30619
30776
  };
30620
- function createBaseInvokeRequest_HeadersEntry() {
30777
+ function createBasePutRequest() {
30621
30778
  return {
30779
+ bindingName: "",
30622
30780
  key: "",
30623
- value: ""
30781
+ value: new Uint8Array(0),
30782
+ options: void 0
30624
30783
  };
30625
30784
  }
30626
- const InvokeRequest_HeadersEntry = {
30785
+ const PutRequest = {
30627
30786
  encode(message, writer = new BinaryWriter()) {
30628
- if (message.key !== "") writer.uint32(10).string(message.key);
30629
- if (message.value !== "") writer.uint32(18).string(message.value);
30787
+ if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
30788
+ if (message.key !== "") writer.uint32(18).string(message.key);
30789
+ if (message.value.length !== 0) writer.uint32(26).bytes(message.value);
30790
+ if (message.options !== void 0) PutOptions.encode(message.options, writer.uint32(34).fork()).join();
30630
30791
  return writer;
30631
30792
  },
30632
30793
  decode(input, length) {
30633
30794
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30634
30795
  const end = length === void 0 ? reader.len : reader.pos + length;
30635
- const message = createBaseInvokeRequest_HeadersEntry();
30796
+ const message = createBasePutRequest();
30636
30797
  while (reader.pos < end) {
30637
30798
  const tag = reader.uint32();
30638
30799
  switch (tag >>> 3) {
30639
30800
  case 1:
30640
30801
  if (tag !== 10) break;
30641
- message.key = reader.string();
30802
+ message.bindingName = reader.string();
30642
30803
  continue;
30643
30804
  case 2:
30644
30805
  if (tag !== 18) break;
30645
- message.value = reader.string();
30806
+ message.key = reader.string();
30807
+ continue;
30808
+ case 3:
30809
+ if (tag !== 26) break;
30810
+ message.value = reader.bytes();
30811
+ continue;
30812
+ case 4:
30813
+ if (tag !== 34) break;
30814
+ message.options = PutOptions.decode(reader, reader.uint32());
30646
30815
  continue;
30647
30816
  }
30648
30817
  if ((tag & 7) === 4 || tag === 0) break;
@@ -30652,65 +30821,58 @@ const InvokeRequest_HeadersEntry = {
30652
30821
  },
30653
30822
  fromJSON(object) {
30654
30823
  return {
30824
+ bindingName: isSet$9(object.bindingName) ? globalThis.String(object.bindingName) : "",
30655
30825
  key: isSet$9(object.key) ? globalThis.String(object.key) : "",
30656
- value: isSet$9(object.value) ? globalThis.String(object.value) : ""
30826
+ value: isSet$9(object.value) ? bytesFromBase64$3(object.value) : new Uint8Array(0),
30827
+ options: isSet$9(object.options) ? PutOptions.fromJSON(object.options) : void 0
30657
30828
  };
30658
30829
  },
30659
30830
  toJSON(message) {
30660
30831
  const obj = {};
30832
+ if (message.bindingName !== "") obj.bindingName = message.bindingName;
30661
30833
  if (message.key !== "") obj.key = message.key;
30662
- if (message.value !== "") obj.value = message.value;
30834
+ if (message.value.length !== 0) obj.value = base64FromBytes$3(message.value);
30835
+ if (message.options !== void 0) obj.options = PutOptions.toJSON(message.options);
30663
30836
  return obj;
30664
30837
  },
30665
30838
  create(base) {
30666
- return InvokeRequest_HeadersEntry.fromPartial(base ?? {});
30839
+ return PutRequest.fromPartial(base ?? {});
30667
30840
  },
30668
30841
  fromPartial(object) {
30669
- const message = createBaseInvokeRequest_HeadersEntry();
30842
+ const message = createBasePutRequest();
30843
+ message.bindingName = object.bindingName ?? "";
30670
30844
  message.key = object.key ?? "";
30671
- message.value = object.value ?? "";
30845
+ message.value = object.value ?? new Uint8Array(0);
30846
+ message.options = object.options !== void 0 && object.options !== null ? PutOptions.fromPartial(object.options) : void 0;
30672
30847
  return message;
30673
30848
  }
30674
30849
  };
30675
- function createBaseInvokeResponse() {
30850
+ function createBasePutOptions() {
30676
30851
  return {
30677
- status: 0,
30678
- headers: {},
30679
- body: new Uint8Array(0)
30852
+ ttlSeconds: void 0,
30853
+ ifNotExists: false
30680
30854
  };
30681
30855
  }
30682
- const InvokeResponse = {
30856
+ const PutOptions = {
30683
30857
  encode(message, writer = new BinaryWriter()) {
30684
- if (message.status !== 0) writer.uint32(8).uint32(message.status);
30685
- globalThis.Object.entries(message.headers).forEach(([key, value]) => {
30686
- InvokeResponse_HeadersEntry.encode({
30687
- key,
30688
- value
30689
- }, writer.uint32(18).fork()).join();
30690
- });
30691
- if (message.body.length !== 0) writer.uint32(26).bytes(message.body);
30858
+ if (message.ttlSeconds !== void 0) writer.uint32(8).uint64(message.ttlSeconds);
30859
+ if (message.ifNotExists !== false) writer.uint32(16).bool(message.ifNotExists);
30692
30860
  return writer;
30693
30861
  },
30694
30862
  decode(input, length) {
30695
30863
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30696
30864
  const end = length === void 0 ? reader.len : reader.pos + length;
30697
- const message = createBaseInvokeResponse();
30865
+ const message = createBasePutOptions();
30698
30866
  while (reader.pos < end) {
30699
30867
  const tag = reader.uint32();
30700
30868
  switch (tag >>> 3) {
30701
30869
  case 1:
30702
30870
  if (tag !== 8) break;
30703
- message.status = reader.uint32();
30704
- continue;
30705
- case 2: {
30706
- if (tag !== 18) break;
30707
- const entry2 = InvokeResponse_HeadersEntry.decode(reader, reader.uint32());
30708
- if (entry2.value !== void 0) message.headers[entry2.key] = entry2.value;
30871
+ message.ttlSeconds = longToNumber$5(reader.uint64());
30709
30872
  continue;
30710
- }
30711
- case 3:
30712
- if (tag !== 26) break;
30713
- message.body = reader.bytes();
30873
+ case 2:
30874
+ if (tag !== 16) break;
30875
+ message.ifNotExists = reader.bool();
30714
30876
  continue;
30715
30877
  }
30716
30878
  if ((tag & 7) === 4 || tag === 0) break;
@@ -30720,69 +30882,94 @@ const InvokeResponse = {
30720
30882
  },
30721
30883
  fromJSON(object) {
30722
30884
  return {
30723
- status: isSet$9(object.status) ? globalThis.Number(object.status) : 0,
30724
- headers: isObject$1(object.headers) ? globalThis.Object.entries(object.headers).reduce((acc, [key, value]) => {
30725
- acc[key] = globalThis.String(value);
30726
- return acc;
30727
- }, {}) : {},
30728
- body: isSet$9(object.body) ? bytesFromBase64$3(object.body) : new Uint8Array(0)
30885
+ ttlSeconds: isSet$9(object.ttlSeconds) ? globalThis.Number(object.ttlSeconds) : void 0,
30886
+ ifNotExists: isSet$9(object.ifNotExists) ? globalThis.Boolean(object.ifNotExists) : false
30729
30887
  };
30730
30888
  },
30731
30889
  toJSON(message) {
30732
30890
  const obj = {};
30733
- if (message.status !== 0) obj.status = Math.round(message.status);
30734
- if (message.headers) {
30735
- const entries = globalThis.Object.entries(message.headers);
30736
- if (entries.length > 0) {
30737
- obj.headers = {};
30738
- entries.forEach(([k, v]) => {
30739
- obj.headers[k] = v;
30740
- });
30891
+ if (message.ttlSeconds !== void 0) obj.ttlSeconds = Math.round(message.ttlSeconds);
30892
+ if (message.ifNotExists !== false) obj.ifNotExists = message.ifNotExists;
30893
+ return obj;
30894
+ },
30895
+ create(base) {
30896
+ return PutOptions.fromPartial(base ?? {});
30897
+ },
30898
+ fromPartial(object) {
30899
+ const message = createBasePutOptions();
30900
+ message.ttlSeconds = object.ttlSeconds ?? void 0;
30901
+ message.ifNotExists = object.ifNotExists ?? false;
30902
+ return message;
30903
+ }
30904
+ };
30905
+ function createBasePutResponse() {
30906
+ return { success: false };
30907
+ }
30908
+ const PutResponse = {
30909
+ encode(message, writer = new BinaryWriter()) {
30910
+ if (message.success !== false) writer.uint32(8).bool(message.success);
30911
+ return writer;
30912
+ },
30913
+ decode(input, length) {
30914
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30915
+ const end = length === void 0 ? reader.len : reader.pos + length;
30916
+ const message = createBasePutResponse();
30917
+ while (reader.pos < end) {
30918
+ const tag = reader.uint32();
30919
+ switch (tag >>> 3) {
30920
+ case 1:
30921
+ if (tag !== 8) break;
30922
+ message.success = reader.bool();
30923
+ continue;
30741
30924
  }
30925
+ if ((tag & 7) === 4 || tag === 0) break;
30926
+ reader.skip(tag & 7);
30742
30927
  }
30743
- if (message.body.length !== 0) obj.body = base64FromBytes$3(message.body);
30928
+ return message;
30929
+ },
30930
+ fromJSON(object) {
30931
+ return { success: isSet$9(object.success) ? globalThis.Boolean(object.success) : false };
30932
+ },
30933
+ toJSON(message) {
30934
+ const obj = {};
30935
+ if (message.success !== false) obj.success = message.success;
30744
30936
  return obj;
30745
30937
  },
30746
30938
  create(base) {
30747
- return InvokeResponse.fromPartial(base ?? {});
30939
+ return PutResponse.fromPartial(base ?? {});
30748
30940
  },
30749
30941
  fromPartial(object) {
30750
- const message = createBaseInvokeResponse();
30751
- message.status = object.status ?? 0;
30752
- message.headers = globalThis.Object.entries(object.headers ?? {}).reduce((acc, [key, value]) => {
30753
- if (value !== void 0) acc[key] = globalThis.String(value);
30754
- return acc;
30755
- }, {});
30756
- message.body = object.body ?? new Uint8Array(0);
30942
+ const message = createBasePutResponse();
30943
+ message.success = object.success ?? false;
30757
30944
  return message;
30758
30945
  }
30759
30946
  };
30760
- function createBaseInvokeResponse_HeadersEntry() {
30947
+ function createBaseDeleteRequest() {
30761
30948
  return {
30762
- key: "",
30763
- value: ""
30949
+ bindingName: "",
30950
+ key: ""
30764
30951
  };
30765
30952
  }
30766
- const InvokeResponse_HeadersEntry = {
30953
+ const DeleteRequest = {
30767
30954
  encode(message, writer = new BinaryWriter()) {
30768
- if (message.key !== "") writer.uint32(10).string(message.key);
30769
- if (message.value !== "") writer.uint32(18).string(message.value);
30955
+ if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
30956
+ if (message.key !== "") writer.uint32(18).string(message.key);
30770
30957
  return writer;
30771
30958
  },
30772
30959
  decode(input, length) {
30773
30960
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30774
30961
  const end = length === void 0 ? reader.len : reader.pos + length;
30775
- const message = createBaseInvokeResponse_HeadersEntry();
30962
+ const message = createBaseDeleteRequest();
30776
30963
  while (reader.pos < end) {
30777
30964
  const tag = reader.uint32();
30778
30965
  switch (tag >>> 3) {
30779
30966
  case 1:
30780
30967
  if (tag !== 10) break;
30781
- message.key = reader.string();
30968
+ message.bindingName = reader.string();
30782
30969
  continue;
30783
30970
  case 2:
30784
30971
  if (tag !== 18) break;
30785
- message.value = reader.string();
30972
+ message.key = reader.string();
30786
30973
  continue;
30787
30974
  }
30788
30975
  if ((tag & 7) === 4 || tag === 0) break;
@@ -30792,38 +30979,74 @@ const InvokeResponse_HeadersEntry = {
30792
30979
  },
30793
30980
  fromJSON(object) {
30794
30981
  return {
30795
- key: isSet$9(object.key) ? globalThis.String(object.key) : "",
30796
- value: isSet$9(object.value) ? globalThis.String(object.value) : ""
30982
+ bindingName: isSet$9(object.bindingName) ? globalThis.String(object.bindingName) : "",
30983
+ key: isSet$9(object.key) ? globalThis.String(object.key) : ""
30797
30984
  };
30798
30985
  },
30799
30986
  toJSON(message) {
30800
30987
  const obj = {};
30988
+ if (message.bindingName !== "") obj.bindingName = message.bindingName;
30801
30989
  if (message.key !== "") obj.key = message.key;
30802
- if (message.value !== "") obj.value = message.value;
30803
30990
  return obj;
30804
30991
  },
30805
30992
  create(base) {
30806
- return InvokeResponse_HeadersEntry.fromPartial(base ?? {});
30993
+ return DeleteRequest.fromPartial(base ?? {});
30807
30994
  },
30808
30995
  fromPartial(object) {
30809
- const message = createBaseInvokeResponse_HeadersEntry();
30996
+ const message = createBaseDeleteRequest();
30997
+ message.bindingName = object.bindingName ?? "";
30810
30998
  message.key = object.key ?? "";
30811
- message.value = object.value ?? "";
30812
30999
  return message;
30813
31000
  }
30814
31001
  };
30815
- function createBaseGetFunctionUrlRequest() {
30816
- return { bindingName: "" };
31002
+ function createBaseDeleteResponse() {
31003
+ return {};
31004
+ }
31005
+ const DeleteResponse = {
31006
+ encode(_, writer = new BinaryWriter()) {
31007
+ return writer;
31008
+ },
31009
+ decode(input, length) {
31010
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31011
+ const end = length === void 0 ? reader.len : reader.pos + length;
31012
+ const message = createBaseDeleteResponse();
31013
+ while (reader.pos < end) {
31014
+ const tag = reader.uint32();
31015
+ switch (tag >>> 3) {}
31016
+ if ((tag & 7) === 4 || tag === 0) break;
31017
+ reader.skip(tag & 7);
31018
+ }
31019
+ return message;
31020
+ },
31021
+ fromJSON(_) {
31022
+ return {};
31023
+ },
31024
+ toJSON(_) {
31025
+ return {};
31026
+ },
31027
+ create(base) {
31028
+ return DeleteResponse.fromPartial(base ?? {});
31029
+ },
31030
+ fromPartial(_) {
31031
+ return createBaseDeleteResponse();
31032
+ }
31033
+ };
31034
+ function createBaseExistsRequest() {
31035
+ return {
31036
+ bindingName: "",
31037
+ key: ""
31038
+ };
30817
31039
  }
30818
- const GetFunctionUrlRequest = {
31040
+ const ExistsRequest = {
30819
31041
  encode(message, writer = new BinaryWriter()) {
30820
31042
  if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
31043
+ if (message.key !== "") writer.uint32(18).string(message.key);
30821
31044
  return writer;
30822
31045
  },
30823
31046
  decode(input, length) {
30824
31047
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30825
31048
  const end = length === void 0 ? reader.len : reader.pos + length;
30826
- const message = createBaseGetFunctionUrlRequest();
31049
+ const message = createBaseExistsRequest();
30827
31050
  while (reader.pos < end) {
30828
31051
  const tag = reader.uint32();
30829
31052
  switch (tag >>> 3) {
@@ -30831,6 +31054,10 @@ const GetFunctionUrlRequest = {
30831
31054
  if (tag !== 10) break;
30832
31055
  message.bindingName = reader.string();
30833
31056
  continue;
31057
+ case 2:
31058
+ if (tag !== 18) break;
31059
+ message.key = reader.string();
31060
+ continue;
30834
31061
  }
30835
31062
  if ((tag & 7) === 4 || tag === 0) break;
30836
31063
  reader.skip(tag & 7);
@@ -30838,40 +31065,45 @@ const GetFunctionUrlRequest = {
30838
31065
  return message;
30839
31066
  },
30840
31067
  fromJSON(object) {
30841
- return { bindingName: isSet$9(object.bindingName) ? globalThis.String(object.bindingName) : "" };
31068
+ return {
31069
+ bindingName: isSet$9(object.bindingName) ? globalThis.String(object.bindingName) : "",
31070
+ key: isSet$9(object.key) ? globalThis.String(object.key) : ""
31071
+ };
30842
31072
  },
30843
31073
  toJSON(message) {
30844
31074
  const obj = {};
30845
31075
  if (message.bindingName !== "") obj.bindingName = message.bindingName;
31076
+ if (message.key !== "") obj.key = message.key;
30846
31077
  return obj;
30847
31078
  },
30848
31079
  create(base) {
30849
- return GetFunctionUrlRequest.fromPartial(base ?? {});
31080
+ return ExistsRequest.fromPartial(base ?? {});
30850
31081
  },
30851
31082
  fromPartial(object) {
30852
- const message = createBaseGetFunctionUrlRequest();
31083
+ const message = createBaseExistsRequest();
30853
31084
  message.bindingName = object.bindingName ?? "";
31085
+ message.key = object.key ?? "";
30854
31086
  return message;
30855
31087
  }
30856
31088
  };
30857
- function createBaseGetFunctionUrlResponse() {
30858
- return { url: void 0 };
31089
+ function createBaseExistsResponse() {
31090
+ return { exists: false };
30859
31091
  }
30860
- const GetFunctionUrlResponse = {
31092
+ const ExistsResponse = {
30861
31093
  encode(message, writer = new BinaryWriter()) {
30862
- if (message.url !== void 0) writer.uint32(10).string(message.url);
31094
+ if (message.exists !== false) writer.uint32(8).bool(message.exists);
30863
31095
  return writer;
30864
31096
  },
30865
31097
  decode(input, length) {
30866
31098
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30867
31099
  const end = length === void 0 ? reader.len : reader.pos + length;
30868
- const message = createBaseGetFunctionUrlResponse();
31100
+ const message = createBaseExistsResponse();
30869
31101
  while (reader.pos < end) {
30870
31102
  const tag = reader.uint32();
30871
31103
  switch (tag >>> 3) {
30872
31104
  case 1:
30873
- if (tag !== 10) break;
30874
- message.url = reader.string();
31105
+ if (tag !== 8) break;
31106
+ message.exists = reader.bool();
30875
31107
  continue;
30876
31108
  }
30877
31109
  if ((tag & 7) === 4 || tag === 0) break;
@@ -30880,654 +31112,29 @@ const GetFunctionUrlResponse = {
30880
31112
  return message;
30881
31113
  },
30882
31114
  fromJSON(object) {
30883
- return { url: isSet$9(object.url) ? globalThis.String(object.url) : void 0 };
31115
+ return { exists: isSet$9(object.exists) ? globalThis.Boolean(object.exists) : false };
30884
31116
  },
30885
31117
  toJSON(message) {
30886
31118
  const obj = {};
30887
- if (message.url !== void 0) obj.url = message.url;
31119
+ if (message.exists !== false) obj.exists = message.exists;
30888
31120
  return obj;
30889
31121
  },
30890
31122
  create(base) {
30891
- return GetFunctionUrlResponse.fromPartial(base ?? {});
31123
+ return ExistsResponse.fromPartial(base ?? {});
30892
31124
  },
30893
31125
  fromPartial(object) {
30894
- const message = createBaseGetFunctionUrlResponse();
30895
- message.url = object.url ?? void 0;
31126
+ const message = createBaseExistsResponse();
31127
+ message.exists = object.exists ?? false;
30896
31128
  return message;
30897
31129
  }
30898
31130
  };
30899
- const FunctionServiceDefinition = {
30900
- name: "FunctionService",
30901
- fullName: "alien_bindings.function.FunctionService",
30902
- methods: {
30903
- invoke: {
30904
- name: "Invoke",
30905
- requestType: InvokeRequest,
30906
- requestStream: false,
30907
- responseType: InvokeResponse,
30908
- responseStream: false,
30909
- options: {}
30910
- },
30911
- getFunctionUrl: {
30912
- name: "GetFunctionUrl",
30913
- requestType: GetFunctionUrlRequest,
30914
- requestStream: false,
30915
- responseType: GetFunctionUrlResponse,
30916
- responseStream: false,
30917
- options: {}
30918
- }
30919
- }
30920
- };
30921
- function bytesFromBase64$3(b64) {
30922
- if (globalThis.Buffer) return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
30923
- else {
30924
- const bin = globalThis.atob(b64);
30925
- const arr = new Uint8Array(bin.length);
30926
- for (let i = 0; i < bin.length; ++i) arr[i] = bin.charCodeAt(i);
30927
- return arr;
30928
- }
30929
- }
30930
- function base64FromBytes$3(arr) {
30931
- if (globalThis.Buffer) return globalThis.Buffer.from(arr).toString("base64");
30932
- else {
30933
- const bin = [];
30934
- arr.forEach((byte) => {
30935
- bin.push(globalThis.String.fromCharCode(byte));
30936
- });
30937
- return globalThis.btoa(bin.join(""));
30938
- }
30939
- }
30940
- function longToNumber$5(int64) {
30941
- const num = globalThis.Number(int64.toString());
30942
- if (num > globalThis.Number.MAX_SAFE_INTEGER) throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
30943
- if (num < globalThis.Number.MIN_SAFE_INTEGER) throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
30944
- return num;
30945
- }
30946
- function isObject$1(value) {
30947
- return typeof value === "object" && value !== null;
30948
- }
30949
- function isSet$9(value) {
30950
- return value !== null && value !== void 0;
30951
- }
30952
- //#endregion
30953
- //#region src/bindings/function.ts
30954
- /**
30955
- * Function binding implementation.
30956
- *
30957
- * Provides direct function-to-function invocation.
30958
- */
30959
- /**
30960
- * Function binding for direct function invocation.
30961
- *
30962
- * @example
30963
- * ```typescript
30964
- * import { func } from "@alienplatform/sdk"
30965
- *
30966
- * const processor = func("image-processor")
30967
- *
30968
- * // Invoke with JSON body
30969
- * const response = await processor.invokeJson("resize-image", {
30970
- * imageUrl: "https://...",
30971
- * width: 800,
30972
- * height: 600,
30973
- * })
30974
- *
30975
- * // Get function URL
30976
- * const url = await processor.getUrl()
30977
- * ```
30978
- */
30979
- var FunctionBinding = class {
30980
- client;
30981
- bindingName;
30982
- constructor(channel, bindingName) {
30983
- this.client = (0, import_lib.createClient)(FunctionServiceDefinition, channel);
30984
- this.bindingName = bindingName;
30985
- }
30986
- /**
30987
- * Invoke a function with raw request data.
30988
- *
30989
- * @param request - Invocation request
30990
- * @returns Function response
30991
- */
30992
- async invoke(request) {
30993
- return await wrapGrpcCall("FunctionService", "Invoke", async () => {
30994
- const response = await this.client.invoke({
30995
- bindingName: this.bindingName,
30996
- targetFunction: request.targetFunction,
30997
- method: request.method,
30998
- path: request.path,
30999
- headers: request.headers ?? {},
31000
- body: request.body ?? new Uint8Array(),
31001
- timeoutSeconds: request.timeoutMs ? Math.floor(request.timeoutMs / 1e3) : void 0
31002
- });
31003
- return {
31004
- status: response.status,
31005
- headers: response.headers,
31006
- body: response.body
31007
- };
31008
- }, { bindingName: this.bindingName });
31009
- }
31010
- /**
31011
- * Invoke a function with a JSON body.
31012
- *
31013
- * @param targetFunction - Target function identifier
31014
- * @param body - JSON body
31015
- * @param options - Optional request options
31016
- * @returns Parsed JSON response
31017
- */
31018
- async invokeJson(targetFunction, body, options) {
31019
- const response = await this.invoke({
31020
- targetFunction,
31021
- method: options?.method ?? "POST",
31022
- path: options?.path ?? "/",
31023
- headers: {
31024
- "content-type": "application/json",
31025
- ...options?.headers
31026
- },
31027
- body: new TextEncoder().encode(JSON.stringify(body)),
31028
- timeoutMs: options?.timeoutMs
31029
- });
31030
- if (response.status >= 400) {
31031
- const errorText = new TextDecoder().decode(response.body);
31032
- throw new Error(`Function invocation failed with status ${response.status}: ${errorText}`);
31033
- }
31034
- const responseText = new TextDecoder().decode(response.body);
31035
- return JSON.parse(responseText);
31036
- }
31037
- /**
31038
- * Invoke a function with GET request.
31039
- *
31040
- * @param targetFunction - Target function identifier
31041
- * @param path - Request path
31042
- * @param options - Optional request options
31043
- * @returns Parsed JSON response
31044
- */
31045
- async get(targetFunction, path = "/", options) {
31046
- const response = await this.invoke({
31047
- targetFunction,
31048
- method: "GET",
31049
- path,
31050
- headers: options?.headers,
31051
- timeoutMs: options?.timeoutMs
31052
- });
31053
- if (response.status >= 400) {
31054
- const errorText = new TextDecoder().decode(response.body);
31055
- throw new Error(`Function GET failed with status ${response.status}: ${errorText}`);
31056
- }
31057
- const responseText = new TextDecoder().decode(response.body);
31058
- return JSON.parse(responseText);
31059
- }
31060
- /**
31061
- * Get the public URL of the function.
31062
- *
31063
- * @returns Function URL if available
31064
- */
31065
- async getUrl() {
31066
- return await wrapGrpcCall("FunctionService", "GetFunctionUrl", async () => {
31067
- return (await this.client.getFunctionUrl({ bindingName: this.bindingName })).url;
31068
- }, { bindingName: this.bindingName });
31069
- }
31070
- };
31071
- //#endregion
31072
- //#region src/generated/kv.ts
31073
- function createBaseGetRequest() {
31074
- return {
31075
- bindingName: "",
31076
- key: ""
31077
- };
31078
- }
31079
- const GetRequest = {
31080
- encode(message, writer = new BinaryWriter()) {
31081
- if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
31082
- if (message.key !== "") writer.uint32(18).string(message.key);
31083
- return writer;
31084
- },
31085
- decode(input, length) {
31086
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31087
- const end = length === void 0 ? reader.len : reader.pos + length;
31088
- const message = createBaseGetRequest();
31089
- while (reader.pos < end) {
31090
- const tag = reader.uint32();
31091
- switch (tag >>> 3) {
31092
- case 1:
31093
- if (tag !== 10) break;
31094
- message.bindingName = reader.string();
31095
- continue;
31096
- case 2:
31097
- if (tag !== 18) break;
31098
- message.key = reader.string();
31099
- continue;
31100
- }
31101
- if ((tag & 7) === 4 || tag === 0) break;
31102
- reader.skip(tag & 7);
31103
- }
31104
- return message;
31105
- },
31106
- fromJSON(object) {
31107
- return {
31108
- bindingName: isSet$8(object.bindingName) ? globalThis.String(object.bindingName) : "",
31109
- key: isSet$8(object.key) ? globalThis.String(object.key) : ""
31110
- };
31111
- },
31112
- toJSON(message) {
31113
- const obj = {};
31114
- if (message.bindingName !== "") obj.bindingName = message.bindingName;
31115
- if (message.key !== "") obj.key = message.key;
31116
- return obj;
31117
- },
31118
- create(base) {
31119
- return GetRequest.fromPartial(base ?? {});
31120
- },
31121
- fromPartial(object) {
31122
- const message = createBaseGetRequest();
31123
- message.bindingName = object.bindingName ?? "";
31124
- message.key = object.key ?? "";
31125
- return message;
31126
- }
31127
- };
31128
- function createBaseGetResponse() {
31129
- return { value: void 0 };
31130
- }
31131
- const GetResponse = {
31132
- encode(message, writer = new BinaryWriter()) {
31133
- if (message.value !== void 0) writer.uint32(10).bytes(message.value);
31134
- return writer;
31135
- },
31136
- decode(input, length) {
31137
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31138
- const end = length === void 0 ? reader.len : reader.pos + length;
31139
- const message = createBaseGetResponse();
31140
- while (reader.pos < end) {
31141
- const tag = reader.uint32();
31142
- switch (tag >>> 3) {
31143
- case 1:
31144
- if (tag !== 10) break;
31145
- message.value = reader.bytes();
31146
- continue;
31147
- }
31148
- if ((tag & 7) === 4 || tag === 0) break;
31149
- reader.skip(tag & 7);
31150
- }
31151
- return message;
31152
- },
31153
- fromJSON(object) {
31154
- return { value: isSet$8(object.value) ? bytesFromBase64$2(object.value) : void 0 };
31155
- },
31156
- toJSON(message) {
31157
- const obj = {};
31158
- if (message.value !== void 0) obj.value = base64FromBytes$2(message.value);
31159
- return obj;
31160
- },
31161
- create(base) {
31162
- return GetResponse.fromPartial(base ?? {});
31163
- },
31164
- fromPartial(object) {
31165
- const message = createBaseGetResponse();
31166
- message.value = object.value ?? void 0;
31167
- return message;
31168
- }
31169
- };
31170
- function createBasePutRequest() {
31171
- return {
31172
- bindingName: "",
31173
- key: "",
31174
- value: new Uint8Array(0),
31175
- options: void 0
31176
- };
31177
- }
31178
- const PutRequest = {
31179
- encode(message, writer = new BinaryWriter()) {
31180
- if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
31181
- if (message.key !== "") writer.uint32(18).string(message.key);
31182
- if (message.value.length !== 0) writer.uint32(26).bytes(message.value);
31183
- if (message.options !== void 0) PutOptions.encode(message.options, writer.uint32(34).fork()).join();
31184
- return writer;
31185
- },
31186
- decode(input, length) {
31187
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31188
- const end = length === void 0 ? reader.len : reader.pos + length;
31189
- const message = createBasePutRequest();
31190
- while (reader.pos < end) {
31191
- const tag = reader.uint32();
31192
- switch (tag >>> 3) {
31193
- case 1:
31194
- if (tag !== 10) break;
31195
- message.bindingName = reader.string();
31196
- continue;
31197
- case 2:
31198
- if (tag !== 18) break;
31199
- message.key = reader.string();
31200
- continue;
31201
- case 3:
31202
- if (tag !== 26) break;
31203
- message.value = reader.bytes();
31204
- continue;
31205
- case 4:
31206
- if (tag !== 34) break;
31207
- message.options = PutOptions.decode(reader, reader.uint32());
31208
- continue;
31209
- }
31210
- if ((tag & 7) === 4 || tag === 0) break;
31211
- reader.skip(tag & 7);
31212
- }
31213
- return message;
31214
- },
31215
- fromJSON(object) {
31216
- return {
31217
- bindingName: isSet$8(object.bindingName) ? globalThis.String(object.bindingName) : "",
31218
- key: isSet$8(object.key) ? globalThis.String(object.key) : "",
31219
- value: isSet$8(object.value) ? bytesFromBase64$2(object.value) : new Uint8Array(0),
31220
- options: isSet$8(object.options) ? PutOptions.fromJSON(object.options) : void 0
31221
- };
31222
- },
31223
- toJSON(message) {
31224
- const obj = {};
31225
- if (message.bindingName !== "") obj.bindingName = message.bindingName;
31226
- if (message.key !== "") obj.key = message.key;
31227
- if (message.value.length !== 0) obj.value = base64FromBytes$2(message.value);
31228
- if (message.options !== void 0) obj.options = PutOptions.toJSON(message.options);
31229
- return obj;
31230
- },
31231
- create(base) {
31232
- return PutRequest.fromPartial(base ?? {});
31233
- },
31234
- fromPartial(object) {
31235
- const message = createBasePutRequest();
31236
- message.bindingName = object.bindingName ?? "";
31237
- message.key = object.key ?? "";
31238
- message.value = object.value ?? new Uint8Array(0);
31239
- message.options = object.options !== void 0 && object.options !== null ? PutOptions.fromPartial(object.options) : void 0;
31240
- return message;
31241
- }
31242
- };
31243
- function createBasePutOptions() {
31244
- return {
31245
- ttlSeconds: void 0,
31246
- ifNotExists: false
31247
- };
31248
- }
31249
- const PutOptions = {
31250
- encode(message, writer = new BinaryWriter()) {
31251
- if (message.ttlSeconds !== void 0) writer.uint32(8).uint64(message.ttlSeconds);
31252
- if (message.ifNotExists !== false) writer.uint32(16).bool(message.ifNotExists);
31253
- return writer;
31254
- },
31255
- decode(input, length) {
31256
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31257
- const end = length === void 0 ? reader.len : reader.pos + length;
31258
- const message = createBasePutOptions();
31259
- while (reader.pos < end) {
31260
- const tag = reader.uint32();
31261
- switch (tag >>> 3) {
31262
- case 1:
31263
- if (tag !== 8) break;
31264
- message.ttlSeconds = longToNumber$4(reader.uint64());
31265
- continue;
31266
- case 2:
31267
- if (tag !== 16) break;
31268
- message.ifNotExists = reader.bool();
31269
- continue;
31270
- }
31271
- if ((tag & 7) === 4 || tag === 0) break;
31272
- reader.skip(tag & 7);
31273
- }
31274
- return message;
31275
- },
31276
- fromJSON(object) {
31277
- return {
31278
- ttlSeconds: isSet$8(object.ttlSeconds) ? globalThis.Number(object.ttlSeconds) : void 0,
31279
- ifNotExists: isSet$8(object.ifNotExists) ? globalThis.Boolean(object.ifNotExists) : false
31280
- };
31281
- },
31282
- toJSON(message) {
31283
- const obj = {};
31284
- if (message.ttlSeconds !== void 0) obj.ttlSeconds = Math.round(message.ttlSeconds);
31285
- if (message.ifNotExists !== false) obj.ifNotExists = message.ifNotExists;
31286
- return obj;
31287
- },
31288
- create(base) {
31289
- return PutOptions.fromPartial(base ?? {});
31290
- },
31291
- fromPartial(object) {
31292
- const message = createBasePutOptions();
31293
- message.ttlSeconds = object.ttlSeconds ?? void 0;
31294
- message.ifNotExists = object.ifNotExists ?? false;
31295
- return message;
31296
- }
31297
- };
31298
- function createBasePutResponse() {
31299
- return { success: false };
31300
- }
31301
- const PutResponse = {
31302
- encode(message, writer = new BinaryWriter()) {
31303
- if (message.success !== false) writer.uint32(8).bool(message.success);
31304
- return writer;
31305
- },
31306
- decode(input, length) {
31307
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31308
- const end = length === void 0 ? reader.len : reader.pos + length;
31309
- const message = createBasePutResponse();
31310
- while (reader.pos < end) {
31311
- const tag = reader.uint32();
31312
- switch (tag >>> 3) {
31313
- case 1:
31314
- if (tag !== 8) break;
31315
- message.success = reader.bool();
31316
- continue;
31317
- }
31318
- if ((tag & 7) === 4 || tag === 0) break;
31319
- reader.skip(tag & 7);
31320
- }
31321
- return message;
31322
- },
31323
- fromJSON(object) {
31324
- return { success: isSet$8(object.success) ? globalThis.Boolean(object.success) : false };
31325
- },
31326
- toJSON(message) {
31327
- const obj = {};
31328
- if (message.success !== false) obj.success = message.success;
31329
- return obj;
31330
- },
31331
- create(base) {
31332
- return PutResponse.fromPartial(base ?? {});
31333
- },
31334
- fromPartial(object) {
31335
- const message = createBasePutResponse();
31336
- message.success = object.success ?? false;
31337
- return message;
31338
- }
31339
- };
31340
- function createBaseDeleteRequest() {
31341
- return {
31342
- bindingName: "",
31343
- key: ""
31344
- };
31345
- }
31346
- const DeleteRequest = {
31347
- encode(message, writer = new BinaryWriter()) {
31348
- if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
31349
- if (message.key !== "") writer.uint32(18).string(message.key);
31350
- return writer;
31351
- },
31352
- decode(input, length) {
31353
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31354
- const end = length === void 0 ? reader.len : reader.pos + length;
31355
- const message = createBaseDeleteRequest();
31356
- while (reader.pos < end) {
31357
- const tag = reader.uint32();
31358
- switch (tag >>> 3) {
31359
- case 1:
31360
- if (tag !== 10) break;
31361
- message.bindingName = reader.string();
31362
- continue;
31363
- case 2:
31364
- if (tag !== 18) break;
31365
- message.key = reader.string();
31366
- continue;
31367
- }
31368
- if ((tag & 7) === 4 || tag === 0) break;
31369
- reader.skip(tag & 7);
31370
- }
31371
- return message;
31372
- },
31373
- fromJSON(object) {
31374
- return {
31375
- bindingName: isSet$8(object.bindingName) ? globalThis.String(object.bindingName) : "",
31376
- key: isSet$8(object.key) ? globalThis.String(object.key) : ""
31377
- };
31378
- },
31379
- toJSON(message) {
31380
- const obj = {};
31381
- if (message.bindingName !== "") obj.bindingName = message.bindingName;
31382
- if (message.key !== "") obj.key = message.key;
31383
- return obj;
31384
- },
31385
- create(base) {
31386
- return DeleteRequest.fromPartial(base ?? {});
31387
- },
31388
- fromPartial(object) {
31389
- const message = createBaseDeleteRequest();
31390
- message.bindingName = object.bindingName ?? "";
31391
- message.key = object.key ?? "";
31392
- return message;
31393
- }
31394
- };
31395
- function createBaseDeleteResponse() {
31396
- return {};
31397
- }
31398
- const DeleteResponse = {
31399
- encode(_, writer = new BinaryWriter()) {
31400
- return writer;
31401
- },
31402
- decode(input, length) {
31403
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31404
- const end = length === void 0 ? reader.len : reader.pos + length;
31405
- const message = createBaseDeleteResponse();
31406
- while (reader.pos < end) {
31407
- const tag = reader.uint32();
31408
- switch (tag >>> 3) {}
31409
- if ((tag & 7) === 4 || tag === 0) break;
31410
- reader.skip(tag & 7);
31411
- }
31412
- return message;
31413
- },
31414
- fromJSON(_) {
31415
- return {};
31416
- },
31417
- toJSON(_) {
31418
- return {};
31419
- },
31420
- create(base) {
31421
- return DeleteResponse.fromPartial(base ?? {});
31422
- },
31423
- fromPartial(_) {
31424
- return createBaseDeleteResponse();
31425
- }
31426
- };
31427
- function createBaseExistsRequest() {
31428
- return {
31429
- bindingName: "",
31430
- key: ""
31431
- };
31432
- }
31433
- const ExistsRequest = {
31434
- encode(message, writer = new BinaryWriter()) {
31435
- if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
31436
- if (message.key !== "") writer.uint32(18).string(message.key);
31437
- return writer;
31438
- },
31439
- decode(input, length) {
31440
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31441
- const end = length === void 0 ? reader.len : reader.pos + length;
31442
- const message = createBaseExistsRequest();
31443
- while (reader.pos < end) {
31444
- const tag = reader.uint32();
31445
- switch (tag >>> 3) {
31446
- case 1:
31447
- if (tag !== 10) break;
31448
- message.bindingName = reader.string();
31449
- continue;
31450
- case 2:
31451
- if (tag !== 18) break;
31452
- message.key = reader.string();
31453
- continue;
31454
- }
31455
- if ((tag & 7) === 4 || tag === 0) break;
31456
- reader.skip(tag & 7);
31457
- }
31458
- return message;
31459
- },
31460
- fromJSON(object) {
31461
- return {
31462
- bindingName: isSet$8(object.bindingName) ? globalThis.String(object.bindingName) : "",
31463
- key: isSet$8(object.key) ? globalThis.String(object.key) : ""
31464
- };
31465
- },
31466
- toJSON(message) {
31467
- const obj = {};
31468
- if (message.bindingName !== "") obj.bindingName = message.bindingName;
31469
- if (message.key !== "") obj.key = message.key;
31470
- return obj;
31471
- },
31472
- create(base) {
31473
- return ExistsRequest.fromPartial(base ?? {});
31474
- },
31475
- fromPartial(object) {
31476
- const message = createBaseExistsRequest();
31477
- message.bindingName = object.bindingName ?? "";
31478
- message.key = object.key ?? "";
31479
- return message;
31480
- }
31481
- };
31482
- function createBaseExistsResponse() {
31483
- return { exists: false };
31484
- }
31485
- const ExistsResponse = {
31486
- encode(message, writer = new BinaryWriter()) {
31487
- if (message.exists !== false) writer.uint32(8).bool(message.exists);
31488
- return writer;
31489
- },
31490
- decode(input, length) {
31491
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31492
- const end = length === void 0 ? reader.len : reader.pos + length;
31493
- const message = createBaseExistsResponse();
31494
- while (reader.pos < end) {
31495
- const tag = reader.uint32();
31496
- switch (tag >>> 3) {
31497
- case 1:
31498
- if (tag !== 8) break;
31499
- message.exists = reader.bool();
31500
- continue;
31501
- }
31502
- if ((tag & 7) === 4 || tag === 0) break;
31503
- reader.skip(tag & 7);
31504
- }
31505
- return message;
31506
- },
31507
- fromJSON(object) {
31508
- return { exists: isSet$8(object.exists) ? globalThis.Boolean(object.exists) : false };
31509
- },
31510
- toJSON(message) {
31511
- const obj = {};
31512
- if (message.exists !== false) obj.exists = message.exists;
31513
- return obj;
31514
- },
31515
- create(base) {
31516
- return ExistsResponse.fromPartial(base ?? {});
31517
- },
31518
- fromPartial(object) {
31519
- const message = createBaseExistsResponse();
31520
- message.exists = object.exists ?? false;
31521
- return message;
31522
- }
31523
- };
31524
- function createBaseScanPrefixRequest() {
31525
- return {
31526
- bindingName: "",
31527
- prefix: "",
31528
- limit: void 0,
31529
- cursor: void 0
31530
- };
31131
+ function createBaseScanPrefixRequest() {
31132
+ return {
31133
+ bindingName: "",
31134
+ prefix: "",
31135
+ limit: void 0,
31136
+ cursor: void 0
31137
+ };
31531
31138
  }
31532
31139
  const ScanPrefixRequest = {
31533
31140
  encode(message, writer = new BinaryWriter()) {
@@ -31568,10 +31175,10 @@ const ScanPrefixRequest = {
31568
31175
  },
31569
31176
  fromJSON(object) {
31570
31177
  return {
31571
- bindingName: isSet$8(object.bindingName) ? globalThis.String(object.bindingName) : "",
31572
- prefix: isSet$8(object.prefix) ? globalThis.String(object.prefix) : "",
31573
- limit: isSet$8(object.limit) ? globalThis.Number(object.limit) : void 0,
31574
- cursor: isSet$8(object.cursor) ? globalThis.String(object.cursor) : void 0
31178
+ bindingName: isSet$9(object.bindingName) ? globalThis.String(object.bindingName) : "",
31179
+ prefix: isSet$9(object.prefix) ? globalThis.String(object.prefix) : "",
31180
+ limit: isSet$9(object.limit) ? globalThis.Number(object.limit) : void 0,
31181
+ cursor: isSet$9(object.cursor) ? globalThis.String(object.cursor) : void 0
31575
31182
  };
31576
31183
  },
31577
31184
  toJSON(message) {
@@ -31630,7 +31237,7 @@ const ScanPrefixResponse = {
31630
31237
  fromJSON(object) {
31631
31238
  return {
31632
31239
  items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => KvItem.fromJSON(e)) : [],
31633
- nextCursor: isSet$8(object.nextCursor) ? globalThis.String(object.nextCursor) : void 0
31240
+ nextCursor: isSet$9(object.nextCursor) ? globalThis.String(object.nextCursor) : void 0
31634
31241
  };
31635
31242
  },
31636
31243
  toJSON(message) {
@@ -31684,14 +31291,14 @@ const KvItem = {
31684
31291
  },
31685
31292
  fromJSON(object) {
31686
31293
  return {
31687
- key: isSet$8(object.key) ? globalThis.String(object.key) : "",
31688
- value: isSet$8(object.value) ? bytesFromBase64$2(object.value) : new Uint8Array(0)
31294
+ key: isSet$9(object.key) ? globalThis.String(object.key) : "",
31295
+ value: isSet$9(object.value) ? bytesFromBase64$3(object.value) : new Uint8Array(0)
31689
31296
  };
31690
31297
  },
31691
31298
  toJSON(message) {
31692
31299
  const obj = {};
31693
31300
  if (message.key !== "") obj.key = message.key;
31694
- if (message.value.length !== 0) obj.value = base64FromBytes$2(message.value);
31301
+ if (message.value.length !== 0) obj.value = base64FromBytes$3(message.value);
31695
31302
  return obj;
31696
31303
  },
31697
31304
  create(base) {
@@ -31708,6 +31315,7 @@ const KvServiceDefinition = {
31708
31315
  name: "KvService",
31709
31316
  fullName: "alien_bindings.kv.KvService",
31710
31317
  methods: {
31318
+ /** Get a value by key */
31711
31319
  get: {
31712
31320
  name: "Get",
31713
31321
  requestType: GetRequest,
@@ -31716,6 +31324,7 @@ const KvServiceDefinition = {
31716
31324
  responseStream: false,
31717
31325
  options: {}
31718
31326
  },
31327
+ /** Put a value with optional options */
31719
31328
  put: {
31720
31329
  name: "Put",
31721
31330
  requestType: PutRequest,
@@ -31724,6 +31333,7 @@ const KvServiceDefinition = {
31724
31333
  responseStream: false,
31725
31334
  options: {}
31726
31335
  },
31336
+ /** Delete a key */
31727
31337
  delete: {
31728
31338
  name: "Delete",
31729
31339
  requestType: DeleteRequest,
@@ -31732,6 +31342,7 @@ const KvServiceDefinition = {
31732
31342
  responseStream: false,
31733
31343
  options: {}
31734
31344
  },
31345
+ /** Check if a key exists */
31735
31346
  exists: {
31736
31347
  name: "Exists",
31737
31348
  requestType: ExistsRequest,
@@ -31740,6 +31351,7 @@ const KvServiceDefinition = {
31740
31351
  responseStream: false,
31741
31352
  options: {}
31742
31353
  },
31354
+ /** Scan keys with a prefix */
31743
31355
  scanPrefix: {
31744
31356
  name: "ScanPrefix",
31745
31357
  requestType: ScanPrefixRequest,
@@ -31750,7 +31362,7 @@ const KvServiceDefinition = {
31750
31362
  }
31751
31363
  }
31752
31364
  };
31753
- function bytesFromBase64$2(b64) {
31365
+ function bytesFromBase64$3(b64) {
31754
31366
  if (globalThis.Buffer) return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
31755
31367
  else {
31756
31368
  const bin = globalThis.atob(b64);
@@ -31759,7 +31371,7 @@ function bytesFromBase64$2(b64) {
31759
31371
  return arr;
31760
31372
  }
31761
31373
  }
31762
- function base64FromBytes$2(arr) {
31374
+ function base64FromBytes$3(arr) {
31763
31375
  if (globalThis.Buffer) return globalThis.Buffer.from(arr).toString("base64");
31764
31376
  else {
31765
31377
  const bin = [];
@@ -31769,13 +31381,13 @@ function base64FromBytes$2(arr) {
31769
31381
  return globalThis.btoa(bin.join(""));
31770
31382
  }
31771
31383
  }
31772
- function longToNumber$4(int64) {
31384
+ function longToNumber$5(int64) {
31773
31385
  const num = globalThis.Number(int64.toString());
31774
31386
  if (num > globalThis.Number.MAX_SAFE_INTEGER) throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
31775
31387
  if (num < globalThis.Number.MIN_SAFE_INTEGER) throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
31776
31388
  return num;
31777
31389
  }
31778
- function isSet$8(value) {
31390
+ function isSet$9(value) {
31779
31391
  return value !== null && value !== void 0;
31780
31392
  }
31781
31393
  //#endregion
@@ -32009,9 +31621,9 @@ const SendRequest = {
32009
31621
  },
32010
31622
  fromJSON(object) {
32011
31623
  return {
32012
- bindingName: isSet$7(object.bindingName) ? globalThis.String(object.bindingName) : "",
32013
- queue: isSet$7(object.queue) ? globalThis.String(object.queue) : "",
32014
- message: isSet$7(object.message) ? MessagePayload.fromJSON(object.message) : void 0
31624
+ bindingName: isSet$8(object.bindingName) ? globalThis.String(object.bindingName) : "",
31625
+ queue: isSet$8(object.queue) ? globalThis.String(object.queue) : "",
31626
+ message: isSet$8(object.message) ? MessagePayload.fromJSON(object.message) : void 0
32015
31627
  };
32016
31628
  },
32017
31629
  toJSON(message) {
@@ -32105,9 +31717,9 @@ const ReceiveRequest = {
32105
31717
  },
32106
31718
  fromJSON(object) {
32107
31719
  return {
32108
- bindingName: isSet$7(object.bindingName) ? globalThis.String(object.bindingName) : "",
32109
- queue: isSet$7(object.queue) ? globalThis.String(object.queue) : "",
32110
- maxMessages: isSet$7(object.maxMessages) ? globalThis.Number(object.maxMessages) : 0
31720
+ bindingName: isSet$8(object.bindingName) ? globalThis.String(object.bindingName) : "",
31721
+ queue: isSet$8(object.queue) ? globalThis.String(object.queue) : "",
31722
+ maxMessages: isSet$8(object.maxMessages) ? globalThis.Number(object.maxMessages) : 0
32111
31723
  };
32112
31724
  },
32113
31725
  toJSON(message) {
@@ -32211,9 +31823,9 @@ const AckRequest = {
32211
31823
  },
32212
31824
  fromJSON(object) {
32213
31825
  return {
32214
- bindingName: isSet$7(object.bindingName) ? globalThis.String(object.bindingName) : "",
32215
- queue: isSet$7(object.queue) ? globalThis.String(object.queue) : "",
32216
- receiptHandle: isSet$7(object.receiptHandle) ? globalThis.String(object.receiptHandle) : ""
31826
+ bindingName: isSet$8(object.bindingName) ? globalThis.String(object.bindingName) : "",
31827
+ queue: isSet$8(object.queue) ? globalThis.String(object.queue) : "",
31828
+ receiptHandle: isSet$8(object.receiptHandle) ? globalThis.String(object.receiptHandle) : ""
32217
31829
  };
32218
31830
  },
32219
31831
  toJSON(message) {
@@ -32301,8 +31913,8 @@ const MessagePayload = {
32301
31913
  },
32302
31914
  fromJSON(object) {
32303
31915
  return {
32304
- json: isSet$7(object.json) ? globalThis.String(object.json) : void 0,
32305
- text: isSet$7(object.text) ? globalThis.String(object.text) : void 0
31916
+ json: isSet$8(object.json) ? globalThis.String(object.json) : void 0,
31917
+ text: isSet$8(object.text) ? globalThis.String(object.text) : void 0
32306
31918
  };
32307
31919
  },
32308
31920
  toJSON(message) {
@@ -32356,8 +31968,8 @@ const QueueMessage$1 = {
32356
31968
  },
32357
31969
  fromJSON(object) {
32358
31970
  return {
32359
- payload: isSet$7(object.payload) ? MessagePayload.fromJSON(object.payload) : void 0,
32360
- receiptHandle: isSet$7(object.receiptHandle) ? globalThis.String(object.receiptHandle) : ""
31971
+ payload: isSet$8(object.payload) ? MessagePayload.fromJSON(object.payload) : void 0,
31972
+ receiptHandle: isSet$8(object.receiptHandle) ? globalThis.String(object.receiptHandle) : ""
32361
31973
  };
32362
31974
  },
32363
31975
  toJSON(message) {
@@ -32380,6 +31992,7 @@ const QueueServiceDefinition = {
32380
31992
  name: "QueueService",
32381
31993
  fullName: "alien_bindings.queue.QueueService",
32382
31994
  methods: {
31995
+ /** Send a message to the queue */
32383
31996
  send: {
32384
31997
  name: "Send",
32385
31998
  requestType: SendRequest,
@@ -32388,6 +32001,7 @@ const QueueServiceDefinition = {
32388
32001
  responseStream: false,
32389
32002
  options: {}
32390
32003
  },
32004
+ /** Receive messages from the queue */
32391
32005
  receive: {
32392
32006
  name: "Receive",
32393
32007
  requestType: ReceiveRequest,
@@ -32396,6 +32010,7 @@ const QueueServiceDefinition = {
32396
32010
  responseStream: false,
32397
32011
  options: {}
32398
32012
  },
32013
+ /** Acknowledge processing of a message (permanently removes from queue) */
32399
32014
  ack: {
32400
32015
  name: "Ack",
32401
32016
  requestType: AckRequest,
@@ -32406,7 +32021,7 @@ const QueueServiceDefinition = {
32406
32021
  }
32407
32022
  }
32408
32023
  };
32409
- function isSet$7(value) {
32024
+ function isSet$8(value) {
32410
32025
  return value !== null && value !== void 0;
32411
32026
  }
32412
32027
  //#endregion
@@ -32570,7 +32185,7 @@ const GetInfoRequest = {
32570
32185
  return message;
32571
32186
  },
32572
32187
  fromJSON(object) {
32573
- return { bindingName: isSet$6(object.bindingName) ? globalThis.String(object.bindingName) : "" };
32188
+ return { bindingName: isSet$7(object.bindingName) ? globalThis.String(object.bindingName) : "" };
32574
32189
  },
32575
32190
  toJSON(message) {
32576
32191
  const obj = {};
@@ -32621,8 +32236,8 @@ const AwsServiceAccountInfo = {
32621
32236
  },
32622
32237
  fromJSON(object) {
32623
32238
  return {
32624
- roleName: isSet$6(object.roleName) ? globalThis.String(object.roleName) : "",
32625
- roleArn: isSet$6(object.roleArn) ? globalThis.String(object.roleArn) : ""
32239
+ roleName: isSet$7(object.roleName) ? globalThis.String(object.roleName) : "",
32240
+ roleArn: isSet$7(object.roleArn) ? globalThis.String(object.roleArn) : ""
32626
32241
  };
32627
32242
  },
32628
32243
  toJSON(message) {
@@ -32676,8 +32291,8 @@ const GcpServiceAccountInfo = {
32676
32291
  },
32677
32292
  fromJSON(object) {
32678
32293
  return {
32679
- email: isSet$6(object.email) ? globalThis.String(object.email) : "",
32680
- uniqueId: isSet$6(object.uniqueId) ? globalThis.String(object.uniqueId) : ""
32294
+ email: isSet$7(object.email) ? globalThis.String(object.email) : "",
32295
+ uniqueId: isSet$7(object.uniqueId) ? globalThis.String(object.uniqueId) : ""
32681
32296
  };
32682
32297
  },
32683
32298
  toJSON(message) {
@@ -32737,9 +32352,9 @@ const AzureServiceAccountInfo = {
32737
32352
  },
32738
32353
  fromJSON(object) {
32739
32354
  return {
32740
- clientId: isSet$6(object.clientId) ? globalThis.String(object.clientId) : "",
32741
- resourceId: isSet$6(object.resourceId) ? globalThis.String(object.resourceId) : "",
32742
- principalId: isSet$6(object.principalId) ? globalThis.String(object.principalId) : ""
32355
+ clientId: isSet$7(object.clientId) ? globalThis.String(object.clientId) : "",
32356
+ resourceId: isSet$7(object.resourceId) ? globalThis.String(object.resourceId) : "",
32357
+ principalId: isSet$7(object.principalId) ? globalThis.String(object.principalId) : ""
32743
32358
  };
32744
32359
  },
32745
32360
  toJSON(message) {
@@ -32801,9 +32416,9 @@ const ServiceAccountInfo = {
32801
32416
  },
32802
32417
  fromJSON(object) {
32803
32418
  return {
32804
- aws: isSet$6(object.aws) ? AwsServiceAccountInfo.fromJSON(object.aws) : void 0,
32805
- gcp: isSet$6(object.gcp) ? GcpServiceAccountInfo.fromJSON(object.gcp) : void 0,
32806
- azure: isSet$6(object.azure) ? AzureServiceAccountInfo.fromJSON(object.azure) : void 0
32419
+ aws: isSet$7(object.aws) ? AwsServiceAccountInfo.fromJSON(object.aws) : void 0,
32420
+ gcp: isSet$7(object.gcp) ? GcpServiceAccountInfo.fromJSON(object.gcp) : void 0,
32421
+ azure: isSet$7(object.azure) ? AzureServiceAccountInfo.fromJSON(object.azure) : void 0
32807
32422
  };
32808
32423
  },
32809
32424
  toJSON(message) {
@@ -32850,7 +32465,7 @@ const GetInfoResponse = {
32850
32465
  return message;
32851
32466
  },
32852
32467
  fromJSON(object) {
32853
- return { info: isSet$6(object.info) ? ServiceAccountInfo.fromJSON(object.info) : void 0 };
32468
+ return { info: isSet$7(object.info) ? ServiceAccountInfo.fromJSON(object.info) : void 0 };
32854
32469
  },
32855
32470
  toJSON(message) {
32856
32471
  const obj = {};
@@ -32913,9 +32528,9 @@ const ImpersonateRequest = {
32913
32528
  },
32914
32529
  fromJSON(object) {
32915
32530
  return {
32916
- bindingName: isSet$6(object.bindingName) ? globalThis.String(object.bindingName) : "",
32917
- sessionName: isSet$6(object.sessionName) ? globalThis.String(object.sessionName) : void 0,
32918
- durationSeconds: isSet$6(object.durationSeconds) ? globalThis.Number(object.durationSeconds) : void 0,
32531
+ bindingName: isSet$7(object.bindingName) ? globalThis.String(object.bindingName) : "",
32532
+ sessionName: isSet$7(object.sessionName) ? globalThis.String(object.sessionName) : void 0,
32533
+ durationSeconds: isSet$7(object.durationSeconds) ? globalThis.Number(object.durationSeconds) : void 0,
32919
32534
  scopes: globalThis.Array.isArray(object?.scopes) ? object.scopes.map((e) => globalThis.String(e)) : []
32920
32535
  };
32921
32536
  },
@@ -32965,7 +32580,7 @@ const ImpersonateResponse = {
32965
32580
  return message;
32966
32581
  },
32967
32582
  fromJSON(object) {
32968
- return { clientConfigJson: isSet$6(object.clientConfigJson) ? globalThis.String(object.clientConfigJson) : "" };
32583
+ return { clientConfigJson: isSet$7(object.clientConfigJson) ? globalThis.String(object.clientConfigJson) : "" };
32969
32584
  },
32970
32585
  toJSON(message) {
32971
32586
  const obj = {};
@@ -32985,6 +32600,7 @@ const ServiceAccountServiceDefinition = {
32985
32600
  name: "ServiceAccountService",
32986
32601
  fullName: "alien_bindings.service_account.ServiceAccountService",
32987
32602
  methods: {
32603
+ /** Get information about the service account */
32988
32604
  getInfo: {
32989
32605
  name: "GetInfo",
32990
32606
  requestType: GetInfoRequest,
@@ -32993,6 +32609,7 @@ const ServiceAccountServiceDefinition = {
32993
32609
  responseStream: false,
32994
32610
  options: {}
32995
32611
  },
32612
+ /** Impersonate the service account and returns credentials as a ClientConfig */
32996
32613
  impersonate: {
32997
32614
  name: "Impersonate",
32998
32615
  requestType: ImpersonateRequest,
@@ -33003,7 +32620,7 @@ const ServiceAccountServiceDefinition = {
33003
32620
  }
33004
32621
  }
33005
32622
  };
33006
- function isSet$6(value) {
32623
+ function isSet$7(value) {
33007
32624
  return value !== null && value !== void 0;
33008
32625
  }
33009
32626
  //#endregion
@@ -33116,7 +32733,7 @@ const Timestamp = {
33116
32733
  switch (tag >>> 3) {
33117
32734
  case 1:
33118
32735
  if (tag !== 8) break;
33119
- message.seconds = longToNumber$3(reader.int64());
32736
+ message.seconds = longToNumber$4(reader.int64());
33120
32737
  continue;
33121
32738
  case 2:
33122
32739
  if (tag !== 16) break;
@@ -33130,8 +32747,8 @@ const Timestamp = {
33130
32747
  },
33131
32748
  fromJSON(object) {
33132
32749
  return {
33133
- seconds: isSet$5(object.seconds) ? globalThis.Number(object.seconds) : 0,
33134
- nanos: isSet$5(object.nanos) ? globalThis.Number(object.nanos) : 0
32750
+ seconds: isSet$6(object.seconds) ? globalThis.Number(object.seconds) : 0,
32751
+ nanos: isSet$6(object.nanos) ? globalThis.Number(object.nanos) : 0
33135
32752
  };
33136
32753
  },
33137
32754
  toJSON(message) {
@@ -33150,94 +32767,58 @@ const Timestamp = {
33150
32767
  return message;
33151
32768
  }
33152
32769
  };
33153
- function longToNumber$3(int64) {
32770
+ function longToNumber$4(int64) {
33154
32771
  const num = globalThis.Number(int64.toString());
33155
32772
  if (num > globalThis.Number.MAX_SAFE_INTEGER) throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
33156
32773
  if (num < globalThis.Number.MIN_SAFE_INTEGER) throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
33157
32774
  return num;
33158
32775
  }
33159
- function isSet$5(value) {
32776
+ function isSet$6(value) {
33160
32777
  return value !== null && value !== void 0;
33161
32778
  }
33162
32779
  //#endregion
33163
32780
  //#region src/generated/storage.ts
33164
- /**
33165
- * Defines the behavior for a put operation if the object already exists.
33166
- * Maps to object_store::PutMode.
33167
- */
33168
- let StoragePutModeEnum = /* @__PURE__ */ function(StoragePutModeEnum) {
33169
- /**
33170
- * PUT_MODE_OVERWRITE - Overwrites the object if it exists. This is the default behavior.
33171
- * Maps to object_store::PutMode::Overwrite.
33172
- */
33173
- StoragePutModeEnum[StoragePutModeEnum["PUT_MODE_OVERWRITE"] = 0] = "PUT_MODE_OVERWRITE";
33174
- /**
33175
- * PUT_MODE_CREATE - Fails the operation if the object already exists.
33176
- * Maps to object_store::PutMode::Create.
33177
- */
33178
- StoragePutModeEnum[StoragePutModeEnum["PUT_MODE_CREATE"] = 1] = "PUT_MODE_CREATE";
33179
- /**
33180
- * PUT_MODE_UPDATE - Updates the object only if the provided version details match the existing object's version.
33181
- * Requires `update_version_details` in `StoragePutOptions`.
33182
- * Maps to object_store::PutMode::Update.
33183
- */
33184
- StoragePutModeEnum[StoragePutModeEnum["PUT_MODE_UPDATE"] = 2] = "PUT_MODE_UPDATE";
33185
- StoragePutModeEnum[StoragePutModeEnum["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
33186
- return StoragePutModeEnum;
33187
- }({});
33188
32781
  function storagePutModeEnumFromJSON(object) {
33189
32782
  switch (object) {
33190
32783
  case 0:
33191
- case "PUT_MODE_OVERWRITE": return StoragePutModeEnum.PUT_MODE_OVERWRITE;
32784
+ case "PUT_MODE_OVERWRITE": return 0;
33192
32785
  case 1:
33193
- case "PUT_MODE_CREATE": return StoragePutModeEnum.PUT_MODE_CREATE;
32786
+ case "PUT_MODE_CREATE": return 1;
33194
32787
  case 2:
33195
- case "PUT_MODE_UPDATE": return StoragePutModeEnum.PUT_MODE_UPDATE;
33196
- default: return StoragePutModeEnum.UNRECOGNIZED;
32788
+ case "PUT_MODE_UPDATE": return 2;
32789
+ default: return -1;
33197
32790
  }
33198
32791
  }
33199
32792
  function storagePutModeEnumToJSON(object) {
33200
32793
  switch (object) {
33201
- case StoragePutModeEnum.PUT_MODE_OVERWRITE: return "PUT_MODE_OVERWRITE";
33202
- case StoragePutModeEnum.PUT_MODE_CREATE: return "PUT_MODE_CREATE";
33203
- case StoragePutModeEnum.PUT_MODE_UPDATE: return "PUT_MODE_UPDATE";
33204
- case StoragePutModeEnum.UNRECOGNIZED:
32794
+ case 0: return "PUT_MODE_OVERWRITE";
32795
+ case 1: return "PUT_MODE_CREATE";
32796
+ case 2: return "PUT_MODE_UPDATE";
33205
32797
  default: return "UNRECOGNIZED";
33206
32798
  }
33207
32799
  }
33208
- /** HTTP method for signed URL requests. */
33209
- let StorageHttpMethod = /* @__PURE__ */ function(StorageHttpMethod) {
33210
- StorageHttpMethod[StorageHttpMethod["HTTP_METHOD_GET"] = 0] = "HTTP_METHOD_GET";
33211
- StorageHttpMethod[StorageHttpMethod["HTTP_METHOD_PUT"] = 1] = "HTTP_METHOD_PUT";
33212
- StorageHttpMethod[StorageHttpMethod["HTTP_METHOD_POST"] = 2] = "HTTP_METHOD_POST";
33213
- StorageHttpMethod[StorageHttpMethod["HTTP_METHOD_DELETE"] = 3] = "HTTP_METHOD_DELETE";
33214
- StorageHttpMethod[StorageHttpMethod["HTTP_METHOD_HEAD"] = 4] = "HTTP_METHOD_HEAD";
33215
- StorageHttpMethod[StorageHttpMethod["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
33216
- return StorageHttpMethod;
33217
- }({});
33218
32800
  function storageHttpMethodFromJSON(object) {
33219
32801
  switch (object) {
33220
32802
  case 0:
33221
- case "HTTP_METHOD_GET": return StorageHttpMethod.HTTP_METHOD_GET;
32803
+ case "HTTP_METHOD_GET": return 0;
33222
32804
  case 1:
33223
- case "HTTP_METHOD_PUT": return StorageHttpMethod.HTTP_METHOD_PUT;
32805
+ case "HTTP_METHOD_PUT": return 1;
33224
32806
  case 2:
33225
- case "HTTP_METHOD_POST": return StorageHttpMethod.HTTP_METHOD_POST;
32807
+ case "HTTP_METHOD_POST": return 2;
33226
32808
  case 3:
33227
- case "HTTP_METHOD_DELETE": return StorageHttpMethod.HTTP_METHOD_DELETE;
32809
+ case "HTTP_METHOD_DELETE": return 3;
33228
32810
  case 4:
33229
- case "HTTP_METHOD_HEAD": return StorageHttpMethod.HTTP_METHOD_HEAD;
33230
- default: return StorageHttpMethod.UNRECOGNIZED;
32811
+ case "HTTP_METHOD_HEAD": return 4;
32812
+ default: return -1;
33231
32813
  }
33232
32814
  }
33233
32815
  function storageHttpMethodToJSON(object) {
33234
32816
  switch (object) {
33235
- case StorageHttpMethod.HTTP_METHOD_GET: return "HTTP_METHOD_GET";
33236
- case StorageHttpMethod.HTTP_METHOD_PUT: return "HTTP_METHOD_PUT";
33237
- case StorageHttpMethod.HTTP_METHOD_POST: return "HTTP_METHOD_POST";
33238
- case StorageHttpMethod.HTTP_METHOD_DELETE: return "HTTP_METHOD_DELETE";
33239
- case StorageHttpMethod.HTTP_METHOD_HEAD: return "HTTP_METHOD_HEAD";
33240
- case StorageHttpMethod.UNRECOGNIZED:
32817
+ case 0: return "HTTP_METHOD_GET";
32818
+ case 1: return "HTTP_METHOD_PUT";
32819
+ case 2: return "HTTP_METHOD_POST";
32820
+ case 3: return "HTTP_METHOD_DELETE";
32821
+ case 4: return "HTTP_METHOD_HEAD";
33241
32822
  default: return "UNRECOGNIZED";
33242
32823
  }
33243
32824
  }
@@ -33262,11 +32843,11 @@ const StorageRange = {
33262
32843
  switch (tag >>> 3) {
33263
32844
  case 1:
33264
32845
  if (tag !== 8) break;
33265
- message.start = longToNumber$2(reader.uint64());
32846
+ message.start = longToNumber$3(reader.uint64());
33266
32847
  continue;
33267
32848
  case 2:
33268
32849
  if (tag !== 16) break;
33269
- message.end = longToNumber$2(reader.uint64());
32850
+ message.end = longToNumber$3(reader.uint64());
33270
32851
  continue;
33271
32852
  }
33272
32853
  if ((tag & 7) === 4 || tag === 0) break;
@@ -33276,8 +32857,8 @@ const StorageRange = {
33276
32857
  },
33277
32858
  fromJSON(object) {
33278
32859
  return {
33279
- start: isSet$4(object.start) ? globalThis.Number(object.start) : 0,
33280
- end: isSet$4(object.end) ? globalThis.Number(object.end) : 0
32860
+ start: isSet$5(object.start) ? globalThis.Number(object.start) : 0,
32861
+ end: isSet$5(object.end) ? globalThis.Number(object.end) : 0
33281
32862
  };
33282
32863
  },
33283
32864
  toJSON(message) {
@@ -33323,11 +32904,11 @@ const StorageGetRangeOption = {
33323
32904
  continue;
33324
32905
  case 2:
33325
32906
  if (tag !== 16) break;
33326
- message.offsetFromStart = longToNumber$2(reader.uint64());
32907
+ message.offsetFromStart = longToNumber$3(reader.uint64());
33327
32908
  continue;
33328
32909
  case 3:
33329
32910
  if (tag !== 24) break;
33330
- message.suffixLength = longToNumber$2(reader.uint64());
32911
+ message.suffixLength = longToNumber$3(reader.uint64());
33331
32912
  continue;
33332
32913
  }
33333
32914
  if ((tag & 7) === 4 || tag === 0) break;
@@ -33337,9 +32918,9 @@ const StorageGetRangeOption = {
33337
32918
  },
33338
32919
  fromJSON(object) {
33339
32920
  return {
33340
- bounded: isSet$4(object.bounded) ? StorageRange.fromJSON(object.bounded) : void 0,
33341
- offsetFromStart: isSet$4(object.offsetFromStart) ? globalThis.Number(object.offsetFromStart) : void 0,
33342
- suffixLength: isSet$4(object.suffixLength) ? globalThis.Number(object.suffixLength) : void 0
32921
+ bounded: isSet$5(object.bounded) ? StorageRange.fromJSON(object.bounded) : void 0,
32922
+ offsetFromStart: isSet$5(object.offsetFromStart) ? globalThis.Number(object.offsetFromStart) : void 0,
32923
+ suffixLength: isSet$5(object.suffixLength) ? globalThis.Number(object.suffixLength) : void 0
33343
32924
  };
33344
32925
  },
33345
32926
  toJSON(message) {
@@ -33425,13 +33006,13 @@ const StorageGetOptions = {
33425
33006
  },
33426
33007
  fromJSON(object) {
33427
33008
  return {
33428
- ifMatch: isSet$4(object.ifMatch) ? globalThis.String(object.ifMatch) : void 0,
33429
- ifNoneMatch: isSet$4(object.ifNoneMatch) ? globalThis.String(object.ifNoneMatch) : void 0,
33430
- ifModifiedSince: isSet$4(object.ifModifiedSince) ? fromJsonTimestamp$1(object.ifModifiedSince) : void 0,
33431
- ifUnmodifiedSince: isSet$4(object.ifUnmodifiedSince) ? fromJsonTimestamp$1(object.ifUnmodifiedSince) : void 0,
33432
- range: isSet$4(object.range) ? StorageGetRangeOption.fromJSON(object.range) : void 0,
33433
- version: isSet$4(object.version) ? globalThis.String(object.version) : void 0,
33434
- head: isSet$4(object.head) ? globalThis.Boolean(object.head) : false
33009
+ ifMatch: isSet$5(object.ifMatch) ? globalThis.String(object.ifMatch) : void 0,
33010
+ ifNoneMatch: isSet$5(object.ifNoneMatch) ? globalThis.String(object.ifNoneMatch) : void 0,
33011
+ ifModifiedSince: isSet$5(object.ifModifiedSince) ? fromJsonTimestamp$1(object.ifModifiedSince) : void 0,
33012
+ ifUnmodifiedSince: isSet$5(object.ifUnmodifiedSince) ? fromJsonTimestamp$1(object.ifUnmodifiedSince) : void 0,
33013
+ range: isSet$5(object.range) ? StorageGetRangeOption.fromJSON(object.range) : void 0,
33014
+ version: isSet$5(object.version) ? globalThis.String(object.version) : void 0,
33015
+ head: isSet$5(object.head) ? globalThis.Boolean(object.head) : false
33435
33016
  };
33436
33017
  },
33437
33018
  toJSON(message) {
@@ -33495,8 +33076,8 @@ const StorageUpdateVersion = {
33495
33076
  },
33496
33077
  fromJSON(object) {
33497
33078
  return {
33498
- eTag: isSet$4(object.eTag) ? globalThis.String(object.eTag) : void 0,
33499
- version: isSet$4(object.version) ? globalThis.String(object.version) : void 0
33079
+ eTag: isSet$5(object.eTag) ? globalThis.String(object.eTag) : void 0,
33080
+ version: isSet$5(object.version) ? globalThis.String(object.version) : void 0
33500
33081
  };
33501
33082
  },
33502
33083
  toJSON(message) {
@@ -33550,8 +33131,8 @@ const StorageTag = {
33550
33131
  },
33551
33132
  fromJSON(object) {
33552
33133
  return {
33553
- key: isSet$4(object.key) ? globalThis.String(object.key) : "",
33554
- value: isSet$4(object.value) ? globalThis.String(object.value) : ""
33134
+ key: isSet$5(object.key) ? globalThis.String(object.key) : "",
33135
+ value: isSet$5(object.value) ? globalThis.String(object.value) : ""
33555
33136
  };
33556
33137
  },
33557
33138
  toJSON(message) {
@@ -33647,8 +33228,8 @@ const StorageAttributeKeyValuePair = {
33647
33228
  },
33648
33229
  fromJSON(object) {
33649
33230
  return {
33650
- key: isSet$4(object.key) ? globalThis.String(object.key) : "",
33651
- value: isSet$4(object.value) ? globalThis.String(object.value) : ""
33231
+ key: isSet$5(object.key) ? globalThis.String(object.key) : "",
33232
+ value: isSet$5(object.value) ? globalThis.String(object.value) : ""
33652
33233
  };
33653
33234
  },
33654
33235
  toJSON(message) {
@@ -33667,6 +33248,61 @@ const StorageAttributeKeyValuePair = {
33667
33248
  return message;
33668
33249
  }
33669
33250
  };
33251
+ function createBaseStorageHttpHeader() {
33252
+ return {
33253
+ key: "",
33254
+ value: ""
33255
+ };
33256
+ }
33257
+ const StorageHttpHeader = {
33258
+ encode(message, writer = new BinaryWriter()) {
33259
+ if (message.key !== "") writer.uint32(10).string(message.key);
33260
+ if (message.value !== "") writer.uint32(18).string(message.value);
33261
+ return writer;
33262
+ },
33263
+ decode(input, length) {
33264
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33265
+ const end = length === void 0 ? reader.len : reader.pos + length;
33266
+ const message = createBaseStorageHttpHeader();
33267
+ while (reader.pos < end) {
33268
+ const tag = reader.uint32();
33269
+ switch (tag >>> 3) {
33270
+ case 1:
33271
+ if (tag !== 10) break;
33272
+ message.key = reader.string();
33273
+ continue;
33274
+ case 2:
33275
+ if (tag !== 18) break;
33276
+ message.value = reader.string();
33277
+ continue;
33278
+ }
33279
+ if ((tag & 7) === 4 || tag === 0) break;
33280
+ reader.skip(tag & 7);
33281
+ }
33282
+ return message;
33283
+ },
33284
+ fromJSON(object) {
33285
+ return {
33286
+ key: isSet$5(object.key) ? globalThis.String(object.key) : "",
33287
+ value: isSet$5(object.value) ? globalThis.String(object.value) : ""
33288
+ };
33289
+ },
33290
+ toJSON(message) {
33291
+ const obj = {};
33292
+ if (message.key !== "") obj.key = message.key;
33293
+ if (message.value !== "") obj.value = message.value;
33294
+ return obj;
33295
+ },
33296
+ create(base) {
33297
+ return StorageHttpHeader.fromPartial(base ?? {});
33298
+ },
33299
+ fromPartial(object) {
33300
+ const message = createBaseStorageHttpHeader();
33301
+ message.key = object.key ?? "";
33302
+ message.value = object.value ?? "";
33303
+ return message;
33304
+ }
33305
+ };
33670
33306
  function createBaseStorageAttributesMap() {
33671
33307
  return { pairs: [] };
33672
33308
  }
@@ -33756,10 +33392,10 @@ const StoragePutOptions = {
33756
33392
  },
33757
33393
  fromJSON(object) {
33758
33394
  return {
33759
- mode: isSet$4(object.mode) ? storagePutModeEnumFromJSON(object.mode) : 0,
33760
- updateVersionDetails: isSet$4(object.updateVersionDetails) ? StorageUpdateVersion.fromJSON(object.updateVersionDetails) : void 0,
33761
- tags: isSet$4(object.tags) ? StorageTagSet.fromJSON(object.tags) : void 0,
33762
- attributes: isSet$4(object.attributes) ? StorageAttributesMap.fromJSON(object.attributes) : void 0
33395
+ mode: isSet$5(object.mode) ? storagePutModeEnumFromJSON(object.mode) : 0,
33396
+ updateVersionDetails: isSet$5(object.updateVersionDetails) ? StorageUpdateVersion.fromJSON(object.updateVersionDetails) : void 0,
33397
+ tags: isSet$5(object.tags) ? StorageTagSet.fromJSON(object.tags) : void 0,
33398
+ attributes: isSet$5(object.attributes) ? StorageAttributesMap.fromJSON(object.attributes) : void 0
33763
33399
  };
33764
33400
  },
33765
33401
  toJSON(message) {
@@ -33817,8 +33453,8 @@ const StoragePutMultipartOptions = {
33817
33453
  },
33818
33454
  fromJSON(object) {
33819
33455
  return {
33820
- tags: isSet$4(object.tags) ? StorageTagSet.fromJSON(object.tags) : void 0,
33821
- attributes: isSet$4(object.attributes) ? StorageAttributesMap.fromJSON(object.attributes) : void 0
33456
+ tags: isSet$5(object.tags) ? StorageTagSet.fromJSON(object.tags) : void 0,
33457
+ attributes: isSet$5(object.attributes) ? StorageAttributesMap.fromJSON(object.attributes) : void 0
33822
33458
  };
33823
33459
  },
33824
33460
  toJSON(message) {
@@ -33878,9 +33514,9 @@ const StorageGetRequest = {
33878
33514
  },
33879
33515
  fromJSON(object) {
33880
33516
  return {
33881
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
33882
- path: isSet$4(object.path) ? globalThis.String(object.path) : "",
33883
- options: isSet$4(object.options) ? StorageGetOptions.fromJSON(object.options) : void 0
33517
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
33518
+ path: isSet$5(object.path) ? globalThis.String(object.path) : "",
33519
+ options: isSet$5(object.options) ? StorageGetOptions.fromJSON(object.options) : void 0
33884
33520
  };
33885
33521
  },
33886
33522
  toJSON(message) {
@@ -33936,14 +33572,14 @@ const GetResponsePart = {
33936
33572
  },
33937
33573
  fromJSON(object) {
33938
33574
  return {
33939
- metadata: isSet$4(object.metadata) ? StorageObjectMeta.fromJSON(object.metadata) : void 0,
33940
- chunkData: isSet$4(object.chunkData) ? bytesFromBase64$1(object.chunkData) : void 0
33575
+ metadata: isSet$5(object.metadata) ? StorageObjectMeta.fromJSON(object.metadata) : void 0,
33576
+ chunkData: isSet$5(object.chunkData) ? bytesFromBase64$2(object.chunkData) : void 0
33941
33577
  };
33942
33578
  },
33943
33579
  toJSON(message) {
33944
33580
  const obj = {};
33945
33581
  if (message.metadata !== void 0) obj.metadata = StorageObjectMeta.toJSON(message.metadata);
33946
- if (message.chunkData !== void 0) obj.chunkData = base64FromBytes$1(message.chunkData);
33582
+ if (message.chunkData !== void 0) obj.chunkData = base64FromBytes$2(message.chunkData);
33947
33583
  return obj;
33948
33584
  },
33949
33585
  create(base) {
@@ -33991,14 +33627,14 @@ const StoragePutMultipartChunkRequest = {
33991
33627
  },
33992
33628
  fromJSON(object) {
33993
33629
  return {
33994
- metadata: isSet$4(object.metadata) ? StoragePutMultipartMetadata.fromJSON(object.metadata) : void 0,
33995
- chunkData: isSet$4(object.chunkData) ? bytesFromBase64$1(object.chunkData) : void 0
33630
+ metadata: isSet$5(object.metadata) ? StoragePutMultipartMetadata.fromJSON(object.metadata) : void 0,
33631
+ chunkData: isSet$5(object.chunkData) ? bytesFromBase64$2(object.chunkData) : void 0
33996
33632
  };
33997
33633
  },
33998
33634
  toJSON(message) {
33999
33635
  const obj = {};
34000
33636
  if (message.metadata !== void 0) obj.metadata = StoragePutMultipartMetadata.toJSON(message.metadata);
34001
- if (message.chunkData !== void 0) obj.chunkData = base64FromBytes$1(message.chunkData);
33637
+ if (message.chunkData !== void 0) obj.chunkData = base64FromBytes$2(message.chunkData);
34002
33638
  return obj;
34003
33639
  },
34004
33640
  create(base) {
@@ -34052,9 +33688,9 @@ const StoragePutMultipartMetadata = {
34052
33688
  },
34053
33689
  fromJSON(object) {
34054
33690
  return {
34055
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
34056
- path: isSet$4(object.path) ? globalThis.String(object.path) : "",
34057
- options: isSet$4(object.options) ? StoragePutMultipartOptions.fromJSON(object.options) : void 0
33691
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
33692
+ path: isSet$5(object.path) ? globalThis.String(object.path) : "",
33693
+ options: isSet$5(object.options) ? StoragePutMultipartOptions.fromJSON(object.options) : void 0
34058
33694
  };
34059
33695
  },
34060
33696
  toJSON(message) {
@@ -34110,8 +33746,8 @@ const StoragePutResponse = {
34110
33746
  },
34111
33747
  fromJSON(object) {
34112
33748
  return {
34113
- eTag: isSet$4(object.eTag) ? globalThis.String(object.eTag) : void 0,
34114
- version: isSet$4(object.version) ? globalThis.String(object.version) : void 0
33749
+ eTag: isSet$5(object.eTag) ? globalThis.String(object.eTag) : void 0,
33750
+ version: isSet$5(object.version) ? globalThis.String(object.version) : void 0
34115
33751
  };
34116
33752
  },
34117
33753
  toJSON(message) {
@@ -34177,17 +33813,17 @@ const StoragePutRequest = {
34177
33813
  },
34178
33814
  fromJSON(object) {
34179
33815
  return {
34180
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
34181
- path: isSet$4(object.path) ? globalThis.String(object.path) : "",
34182
- data: isSet$4(object.data) ? bytesFromBase64$1(object.data) : new Uint8Array(0),
34183
- options: isSet$4(object.options) ? StoragePutOptions.fromJSON(object.options) : void 0
33816
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
33817
+ path: isSet$5(object.path) ? globalThis.String(object.path) : "",
33818
+ data: isSet$5(object.data) ? bytesFromBase64$2(object.data) : new Uint8Array(0),
33819
+ options: isSet$5(object.options) ? StoragePutOptions.fromJSON(object.options) : void 0
34184
33820
  };
34185
33821
  },
34186
33822
  toJSON(message) {
34187
33823
  const obj = {};
34188
33824
  if (message.bindingName !== "") obj.bindingName = message.bindingName;
34189
33825
  if (message.path !== "") obj.path = message.path;
34190
- if (message.data.length !== 0) obj.data = base64FromBytes$1(message.data);
33826
+ if (message.data.length !== 0) obj.data = base64FromBytes$2(message.data);
34191
33827
  if (message.options !== void 0) obj.options = StoragePutOptions.toJSON(message.options);
34192
33828
  return obj;
34193
33829
  },
@@ -34238,8 +33874,8 @@ const StorageDeleteRequest = {
34238
33874
  },
34239
33875
  fromJSON(object) {
34240
33876
  return {
34241
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
34242
- path: isSet$4(object.path) ? globalThis.String(object.path) : ""
33877
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
33878
+ path: isSet$5(object.path) ? globalThis.String(object.path) : ""
34243
33879
  };
34244
33880
  },
34245
33881
  toJSON(message) {
@@ -34331,9 +33967,9 @@ const StorageListRequest = {
34331
33967
  },
34332
33968
  fromJSON(object) {
34333
33969
  return {
34334
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
34335
- prefix: isSet$4(object.prefix) ? globalThis.String(object.prefix) : void 0,
34336
- offset: isSet$4(object.offset) ? globalThis.String(object.offset) : void 0
33970
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
33971
+ prefix: isSet$5(object.prefix) ? globalThis.String(object.prefix) : void 0,
33972
+ offset: isSet$5(object.offset) ? globalThis.String(object.offset) : void 0
34337
33973
  };
34338
33974
  },
34339
33975
  toJSON(message) {
@@ -34389,7 +34025,7 @@ const StorageObjectMeta = {
34389
34025
  continue;
34390
34026
  case 3:
34391
34027
  if (tag !== 24) break;
34392
- message.size = longToNumber$2(reader.uint64());
34028
+ message.size = longToNumber$3(reader.uint64());
34393
34029
  continue;
34394
34030
  case 4:
34395
34031
  if (tag !== 34) break;
@@ -34407,11 +34043,11 @@ const StorageObjectMeta = {
34407
34043
  },
34408
34044
  fromJSON(object) {
34409
34045
  return {
34410
- location: isSet$4(object.location) ? globalThis.String(object.location) : "",
34411
- lastModified: isSet$4(object.lastModified) ? fromJsonTimestamp$1(object.lastModified) : void 0,
34412
- size: isSet$4(object.size) ? globalThis.Number(object.size) : 0,
34413
- eTag: isSet$4(object.eTag) ? globalThis.String(object.eTag) : void 0,
34414
- version: isSet$4(object.version) ? globalThis.String(object.version) : void 0
34046
+ location: isSet$5(object.location) ? globalThis.String(object.location) : "",
34047
+ lastModified: isSet$5(object.lastModified) ? fromJsonTimestamp$1(object.lastModified) : void 0,
34048
+ size: isSet$5(object.size) ? globalThis.Number(object.size) : 0,
34049
+ eTag: isSet$5(object.eTag) ? globalThis.String(object.eTag) : void 0,
34050
+ version: isSet$5(object.version) ? globalThis.String(object.version) : void 0
34415
34051
  };
34416
34052
  },
34417
34053
  toJSON(message) {
@@ -34471,8 +34107,8 @@ const StorageListWithDelimiterRequest = {
34471
34107
  },
34472
34108
  fromJSON(object) {
34473
34109
  return {
34474
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
34475
- prefix: isSet$4(object.prefix) ? globalThis.String(object.prefix) : void 0
34110
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
34111
+ prefix: isSet$5(object.prefix) ? globalThis.String(object.prefix) : void 0
34476
34112
  };
34477
34113
  },
34478
34114
  toJSON(message) {
@@ -34581,8 +34217,8 @@ const StorageHeadRequest = {
34581
34217
  },
34582
34218
  fromJSON(object) {
34583
34219
  return {
34584
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
34585
- path: isSet$4(object.path) ? globalThis.String(object.path) : ""
34220
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
34221
+ path: isSet$5(object.path) ? globalThis.String(object.path) : ""
34586
34222
  };
34587
34223
  },
34588
34224
  toJSON(message) {
@@ -34627,7 +34263,7 @@ const StorageGetBaseDirRequest = {
34627
34263
  return message;
34628
34264
  },
34629
34265
  fromJSON(object) {
34630
- return { bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "" };
34266
+ return { bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "" };
34631
34267
  },
34632
34268
  toJSON(message) {
34633
34269
  const obj = {};
@@ -34669,7 +34305,7 @@ const StorageGetBaseDirResponse = {
34669
34305
  return message;
34670
34306
  },
34671
34307
  fromJSON(object) {
34672
- return { path: isSet$4(object.path) ? globalThis.String(object.path) : "" };
34308
+ return { path: isSet$5(object.path) ? globalThis.String(object.path) : "" };
34673
34309
  },
34674
34310
  toJSON(message) {
34675
34311
  const obj = {};
@@ -34711,7 +34347,7 @@ const StorageGetUrlRequest = {
34711
34347
  return message;
34712
34348
  },
34713
34349
  fromJSON(object) {
34714
- return { bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "" };
34350
+ return { bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "" };
34715
34351
  },
34716
34352
  toJSON(message) {
34717
34353
  const obj = {};
@@ -34753,7 +34389,7 @@ const StorageGetUrlResponse = {
34753
34389
  return message;
34754
34390
  },
34755
34391
  fromJSON(object) {
34756
- return { url: isSet$4(object.url) ? globalThis.String(object.url) : "" };
34392
+ return { url: isSet$5(object.url) ? globalThis.String(object.url) : "" };
34757
34393
  },
34758
34394
  toJSON(message) {
34759
34395
  const obj = {};
@@ -34810,9 +34446,9 @@ const StorageCopyRequest = {
34810
34446
  },
34811
34447
  fromJSON(object) {
34812
34448
  return {
34813
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
34814
- fromPath: isSet$4(object.fromPath) ? globalThis.String(object.fromPath) : "",
34815
- toPath: isSet$4(object.toPath) ? globalThis.String(object.toPath) : ""
34449
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
34450
+ fromPath: isSet$5(object.fromPath) ? globalThis.String(object.fromPath) : "",
34451
+ toPath: isSet$5(object.toPath) ? globalThis.String(object.toPath) : ""
34816
34452
  };
34817
34453
  },
34818
34454
  toJSON(message) {
@@ -34874,9 +34510,9 @@ const StorageRenameRequest = {
34874
34510
  },
34875
34511
  fromJSON(object) {
34876
34512
  return {
34877
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
34878
- fromPath: isSet$4(object.fromPath) ? globalThis.String(object.fromPath) : "",
34879
- toPath: isSet$4(object.toPath) ? globalThis.String(object.toPath) : ""
34513
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
34514
+ fromPath: isSet$5(object.fromPath) ? globalThis.String(object.fromPath) : "",
34515
+ toPath: isSet$5(object.toPath) ? globalThis.String(object.toPath) : ""
34880
34516
  };
34881
34517
  },
34882
34518
  toJSON(message) {
@@ -34944,10 +34580,10 @@ const StorageSignedUrlRequest = {
34944
34580
  },
34945
34581
  fromJSON(object) {
34946
34582
  return {
34947
- bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
34948
- path: isSet$4(object.path) ? globalThis.String(object.path) : "",
34949
- httpMethod: isSet$4(object.httpMethod) ? storageHttpMethodFromJSON(object.httpMethod) : 0,
34950
- expirationTime: isSet$4(object.expirationTime) ? fromJsonTimestamp$1(object.expirationTime) : void 0
34583
+ bindingName: isSet$5(object.bindingName) ? globalThis.String(object.bindingName) : "",
34584
+ path: isSet$5(object.path) ? globalThis.String(object.path) : "",
34585
+ httpMethod: isSet$5(object.httpMethod) ? storageHttpMethodFromJSON(object.httpMethod) : 0,
34586
+ expirationTime: isSet$5(object.expirationTime) ? fromJsonTimestamp$1(object.expirationTime) : void 0
34951
34587
  };
34952
34588
  },
34953
34589
  toJSON(message) {
@@ -34971,11 +34607,15 @@ const StorageSignedUrlRequest = {
34971
34607
  }
34972
34608
  };
34973
34609
  function createBaseStorageSignedUrlResponse() {
34974
- return { url: "" };
34610
+ return {
34611
+ url: "",
34612
+ headers: []
34613
+ };
34975
34614
  }
34976
34615
  const StorageSignedUrlResponse = {
34977
34616
  encode(message, writer = new BinaryWriter()) {
34978
34617
  if (message.url !== "") writer.uint32(10).string(message.url);
34618
+ for (const v of message.headers) StorageHttpHeader.encode(v, writer.uint32(18).fork()).join();
34979
34619
  return writer;
34980
34620
  },
34981
34621
  decode(input, length) {
@@ -34989,6 +34629,10 @@ const StorageSignedUrlResponse = {
34989
34629
  if (tag !== 10) break;
34990
34630
  message.url = reader.string();
34991
34631
  continue;
34632
+ case 2:
34633
+ if (tag !== 18) break;
34634
+ message.headers.push(StorageHttpHeader.decode(reader, reader.uint32()));
34635
+ continue;
34992
34636
  }
34993
34637
  if ((tag & 7) === 4 || tag === 0) break;
34994
34638
  reader.skip(tag & 7);
@@ -34996,11 +34640,15 @@ const StorageSignedUrlResponse = {
34996
34640
  return message;
34997
34641
  },
34998
34642
  fromJSON(object) {
34999
- return { url: isSet$4(object.url) ? globalThis.String(object.url) : "" };
34643
+ return {
34644
+ url: isSet$5(object.url) ? globalThis.String(object.url) : "",
34645
+ headers: globalThis.Array.isArray(object?.headers) ? object.headers.map((e) => StorageHttpHeader.fromJSON(e)) : []
34646
+ };
35000
34647
  },
35001
34648
  toJSON(message) {
35002
34649
  const obj = {};
35003
34650
  if (message.url !== "") obj.url = message.url;
34651
+ if (message.headers?.length) obj.headers = message.headers.map((e) => StorageHttpHeader.toJSON(e));
35004
34652
  return obj;
35005
34653
  },
35006
34654
  create(base) {
@@ -35009,6 +34657,7 @@ const StorageSignedUrlResponse = {
35009
34657
  fromPartial(object) {
35010
34658
  const message = createBaseStorageSignedUrlResponse();
35011
34659
  message.url = object.url ?? "";
34660
+ message.headers = object.headers?.map((e) => StorageHttpHeader.fromPartial(e)) || [];
35012
34661
  return message;
35013
34662
  }
35014
34663
  };
@@ -35016,6 +34665,10 @@ const StorageServiceDefinition = {
35016
34665
  name: "StorageService",
35017
34666
  fullName: "alien_bindings.storage.StorageService",
35018
34667
  methods: {
34668
+ /**
34669
+ * Retrieves data for a given object in a storage binding, with options.
34670
+ * The first part of the stream will be GetResponsePart.Metadata, followed by GetResponsePart.ChunkData.
34671
+ */
35019
34672
  get: {
35020
34673
  name: "Get",
35021
34674
  requestType: StorageGetRequest,
@@ -35024,6 +34677,10 @@ const StorageServiceDefinition = {
35024
34677
  responseStream: true,
35025
34678
  options: {}
35026
34679
  },
34680
+ /**
34681
+ * Uploads data to a storage binding using a stream.
34682
+ * The first chunk in the stream must be metadata including PutMultipartOptions.
34683
+ */
35027
34684
  putMultipart: {
35028
34685
  name: "PutMultipart",
35029
34686
  requestType: StoragePutMultipartChunkRequest,
@@ -35032,6 +34689,7 @@ const StorageServiceDefinition = {
35032
34689
  responseStream: false,
35033
34690
  options: {}
35034
34691
  },
34692
+ /** Uploads data to a storage binding in a single message, with PutOptions. */
35035
34693
  put: {
35036
34694
  name: "Put",
35037
34695
  requestType: StoragePutRequest,
@@ -35040,6 +34698,7 @@ const StorageServiceDefinition = {
35040
34698
  responseStream: false,
35041
34699
  options: {}
35042
34700
  },
34701
+ /** Deletes an object from a storage binding. */
35043
34702
  delete: {
35044
34703
  name: "Delete",
35045
34704
  requestType: StorageDeleteRequest,
@@ -35048,6 +34707,10 @@ const StorageServiceDefinition = {
35048
34707
  responseStream: false,
35049
34708
  options: {}
35050
34709
  },
34710
+ /**
34711
+ * Lists objects in a storage binding, optionally filtered by a prefix and offset.
34712
+ * Returns a stream of object metadata.
34713
+ */
35051
34714
  list: {
35052
34715
  name: "List",
35053
34716
  requestType: StorageListRequest,
@@ -35056,6 +34719,7 @@ const StorageServiceDefinition = {
35056
34719
  responseStream: true,
35057
34720
  options: {}
35058
34721
  },
34722
+ /** Lists objects and common prefixes (directories) with a delimiter. */
35059
34723
  listWithDelimiter: {
35060
34724
  name: "ListWithDelimiter",
35061
34725
  requestType: StorageListWithDelimiterRequest,
@@ -35064,6 +34728,7 @@ const StorageServiceDefinition = {
35064
34728
  responseStream: false,
35065
34729
  options: {}
35066
34730
  },
34731
+ /** Retrieves metadata for an object in a storage binding. */
35067
34732
  head: {
35068
34733
  name: "Head",
35069
34734
  requestType: StorageHeadRequest,
@@ -35072,6 +34737,7 @@ const StorageServiceDefinition = {
35072
34737
  responseStream: false,
35073
34738
  options: {}
35074
34739
  },
34740
+ /** Gets the base directory path for a storage binding. */
35075
34741
  getBaseDir: {
35076
34742
  name: "GetBaseDir",
35077
34743
  requestType: StorageGetBaseDirRequest,
@@ -35080,6 +34746,7 @@ const StorageServiceDefinition = {
35080
34746
  responseStream: false,
35081
34747
  options: {}
35082
34748
  },
34749
+ /** Gets the underlying URL for a storage binding. */
35083
34750
  getUrl: {
35084
34751
  name: "GetUrl",
35085
34752
  requestType: StorageGetUrlRequest,
@@ -35088,6 +34755,7 @@ const StorageServiceDefinition = {
35088
34755
  responseStream: false,
35089
34756
  options: {}
35090
34757
  },
34758
+ /** Copies an object within the same storage binding. */
35091
34759
  copy: {
35092
34760
  name: "Copy",
35093
34761
  requestType: StorageCopyRequest,
@@ -35096,6 +34764,7 @@ const StorageServiceDefinition = {
35096
34764
  responseStream: false,
35097
34765
  options: {}
35098
34766
  },
34767
+ /** Renames (moves) an object within the same storage binding. */
35099
34768
  rename: {
35100
34769
  name: "Rename",
35101
34770
  requestType: StorageRenameRequest,
@@ -35104,6 +34773,7 @@ const StorageServiceDefinition = {
35104
34773
  responseStream: false,
35105
34774
  options: {}
35106
34775
  },
34776
+ /** Copies an object if the destination does not exist. */
35107
34777
  copyIfNotExists: {
35108
34778
  name: "CopyIfNotExists",
35109
34779
  requestType: StorageCopyRequest,
@@ -35112,6 +34782,7 @@ const StorageServiceDefinition = {
35112
34782
  responseStream: false,
35113
34783
  options: {}
35114
34784
  },
34785
+ /** Renames (moves) an object if the destination does not exist. */
35115
34786
  renameIfNotExists: {
35116
34787
  name: "RenameIfNotExists",
35117
34788
  requestType: StorageRenameRequest,
@@ -35120,6 +34791,7 @@ const StorageServiceDefinition = {
35120
34791
  responseStream: false,
35121
34792
  options: {}
35122
34793
  },
34794
+ /** Generates a signed URL for an object that allows access without authentication. */
35123
34795
  signedUrl: {
35124
34796
  name: "SignedUrl",
35125
34797
  requestType: StorageSignedUrlRequest,
@@ -35130,7 +34802,7 @@ const StorageServiceDefinition = {
35130
34802
  }
35131
34803
  }
35132
34804
  };
35133
- function bytesFromBase64$1(b64) {
34805
+ function bytesFromBase64$2(b64) {
35134
34806
  if (globalThis.Buffer) return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
35135
34807
  else {
35136
34808
  const bin = globalThis.atob(b64);
@@ -35139,7 +34811,7 @@ function bytesFromBase64$1(b64) {
35139
34811
  return arr;
35140
34812
  }
35141
34813
  }
35142
- function base64FromBytes$1(arr) {
34814
+ function base64FromBytes$2(arr) {
35143
34815
  if (globalThis.Buffer) return globalThis.Buffer.from(arr).toString("base64");
35144
34816
  else {
35145
34817
  const bin = [];
@@ -35165,13 +34837,13 @@ function fromJsonTimestamp$1(o) {
35165
34837
  else if (typeof o === "string") return new globalThis.Date(o);
35166
34838
  else return fromTimestamp$1(Timestamp.fromJSON(o));
35167
34839
  }
35168
- function longToNumber$2(int64) {
34840
+ function longToNumber$3(int64) {
35169
34841
  const num = globalThis.Number(int64.toString());
35170
34842
  if (num > globalThis.Number.MAX_SAFE_INTEGER) throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
35171
34843
  if (num < globalThis.Number.MIN_SAFE_INTEGER) throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
35172
34844
  return num;
35173
34845
  }
35174
- function isSet$4(value) {
34846
+ function isSet$5(value) {
35175
34847
  return value !== null && value !== void 0;
35176
34848
  }
35177
34849
  //#endregion
@@ -35314,7 +34986,7 @@ var Storage = class {
35314
34986
  path,
35315
34987
  data: bytes,
35316
34988
  options: {
35317
- mode: options?.ifNotExists ? StoragePutModeEnum.PUT_MODE_CREATE : StoragePutModeEnum.PUT_MODE_OVERWRITE,
34989
+ mode: options?.ifNotExists ? 1 : 0,
35318
34990
  attributes: attributePairs.length > 0 ? { pairs: attributePairs } : void 0
35319
34991
  }
35320
34992
  });
@@ -35495,78 +35167,524 @@ var Storage = class {
35495
35167
  fromPath: from,
35496
35168
  toPath: to
35497
35169
  });
35498
- }, { bindingName: this.bindingName });
35170
+ }, { bindingName: this.bindingName });
35171
+ }
35172
+ /**
35173
+ * Rename (move) an object only if the destination doesn't exist.
35174
+ *
35175
+ * @param from - Source path
35176
+ * @param to - Destination path
35177
+ */
35178
+ async renameIfNotExists(from, to) {
35179
+ await wrapGrpcCall("StorageService", "RenameIfNotExists", async () => {
35180
+ await this.client.renameIfNotExists({
35181
+ bindingName: this.bindingName,
35182
+ fromPath: from,
35183
+ toPath: to
35184
+ });
35185
+ }, { bindingName: this.bindingName });
35186
+ }
35187
+ /**
35188
+ * Generate a signed URL for an object.
35189
+ *
35190
+ * @param path - Path to the object
35191
+ * @param options - Signed URL options
35192
+ * @returns Signed URL result
35193
+ */
35194
+ async signedUrl(path, options) {
35195
+ const operationMap = {
35196
+ get: 0,
35197
+ put: 1,
35198
+ delete: 3
35199
+ };
35200
+ const expiresInSeconds = options.expiresInSeconds ?? 3600;
35201
+ const expirationTime = new Date(Date.now() + expiresInSeconds * 1e3);
35202
+ return await wrapGrpcCall("StorageService", "SignedUrl", async () => {
35203
+ const response = await this.client.signedUrl({
35204
+ bindingName: this.bindingName,
35205
+ path,
35206
+ httpMethod: operationMap[options.operation],
35207
+ expirationTime
35208
+ });
35209
+ return {
35210
+ url: response.url,
35211
+ headers: Object.fromEntries(response.headers.map((header) => [header.key, header.value])),
35212
+ expiresAt: expirationTime
35213
+ };
35214
+ }, { bindingName: this.bindingName });
35215
+ }
35216
+ fromProtoMeta(proto) {
35217
+ return {
35218
+ location: proto.location,
35219
+ lastModified: proto.lastModified,
35220
+ size: proto.size,
35221
+ etag: proto.eTag,
35222
+ version: proto.version
35223
+ };
35224
+ }
35225
+ };
35226
+ //#endregion
35227
+ //#region src/generated/vault.ts
35228
+ function createBaseGetSecretRequest() {
35229
+ return {
35230
+ bindingName: "",
35231
+ secretName: ""
35232
+ };
35233
+ }
35234
+ const GetSecretRequest = {
35235
+ encode(message, writer = new BinaryWriter()) {
35236
+ if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
35237
+ if (message.secretName !== "") writer.uint32(18).string(message.secretName);
35238
+ return writer;
35239
+ },
35240
+ decode(input, length) {
35241
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35242
+ const end = length === void 0 ? reader.len : reader.pos + length;
35243
+ const message = createBaseGetSecretRequest();
35244
+ while (reader.pos < end) {
35245
+ const tag = reader.uint32();
35246
+ switch (tag >>> 3) {
35247
+ case 1:
35248
+ if (tag !== 10) break;
35249
+ message.bindingName = reader.string();
35250
+ continue;
35251
+ case 2:
35252
+ if (tag !== 18) break;
35253
+ message.secretName = reader.string();
35254
+ continue;
35255
+ }
35256
+ if ((tag & 7) === 4 || tag === 0) break;
35257
+ reader.skip(tag & 7);
35258
+ }
35259
+ return message;
35260
+ },
35261
+ fromJSON(object) {
35262
+ return {
35263
+ bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
35264
+ secretName: isSet$4(object.secretName) ? globalThis.String(object.secretName) : ""
35265
+ };
35266
+ },
35267
+ toJSON(message) {
35268
+ const obj = {};
35269
+ if (message.bindingName !== "") obj.bindingName = message.bindingName;
35270
+ if (message.secretName !== "") obj.secretName = message.secretName;
35271
+ return obj;
35272
+ },
35273
+ create(base) {
35274
+ return GetSecretRequest.fromPartial(base ?? {});
35275
+ },
35276
+ fromPartial(object) {
35277
+ const message = createBaseGetSecretRequest();
35278
+ message.bindingName = object.bindingName ?? "";
35279
+ message.secretName = object.secretName ?? "";
35280
+ return message;
35281
+ }
35282
+ };
35283
+ function createBaseGetSecretResponse() {
35284
+ return { value: "" };
35285
+ }
35286
+ const GetSecretResponse = {
35287
+ encode(message, writer = new BinaryWriter()) {
35288
+ if (message.value !== "") writer.uint32(10).string(message.value);
35289
+ return writer;
35290
+ },
35291
+ decode(input, length) {
35292
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35293
+ const end = length === void 0 ? reader.len : reader.pos + length;
35294
+ const message = createBaseGetSecretResponse();
35295
+ while (reader.pos < end) {
35296
+ const tag = reader.uint32();
35297
+ switch (tag >>> 3) {
35298
+ case 1:
35299
+ if (tag !== 10) break;
35300
+ message.value = reader.string();
35301
+ continue;
35302
+ }
35303
+ if ((tag & 7) === 4 || tag === 0) break;
35304
+ reader.skip(tag & 7);
35305
+ }
35306
+ return message;
35307
+ },
35308
+ fromJSON(object) {
35309
+ return { value: isSet$4(object.value) ? globalThis.String(object.value) : "" };
35310
+ },
35311
+ toJSON(message) {
35312
+ const obj = {};
35313
+ if (message.value !== "") obj.value = message.value;
35314
+ return obj;
35315
+ },
35316
+ create(base) {
35317
+ return GetSecretResponse.fromPartial(base ?? {});
35318
+ },
35319
+ fromPartial(object) {
35320
+ const message = createBaseGetSecretResponse();
35321
+ message.value = object.value ?? "";
35322
+ return message;
35323
+ }
35324
+ };
35325
+ function createBaseSetSecretRequest() {
35326
+ return {
35327
+ bindingName: "",
35328
+ secretName: "",
35329
+ value: ""
35330
+ };
35331
+ }
35332
+ const SetSecretRequest = {
35333
+ encode(message, writer = new BinaryWriter()) {
35334
+ if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
35335
+ if (message.secretName !== "") writer.uint32(18).string(message.secretName);
35336
+ if (message.value !== "") writer.uint32(26).string(message.value);
35337
+ return writer;
35338
+ },
35339
+ decode(input, length) {
35340
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35341
+ const end = length === void 0 ? reader.len : reader.pos + length;
35342
+ const message = createBaseSetSecretRequest();
35343
+ while (reader.pos < end) {
35344
+ const tag = reader.uint32();
35345
+ switch (tag >>> 3) {
35346
+ case 1:
35347
+ if (tag !== 10) break;
35348
+ message.bindingName = reader.string();
35349
+ continue;
35350
+ case 2:
35351
+ if (tag !== 18) break;
35352
+ message.secretName = reader.string();
35353
+ continue;
35354
+ case 3:
35355
+ if (tag !== 26) break;
35356
+ message.value = reader.string();
35357
+ continue;
35358
+ }
35359
+ if ((tag & 7) === 4 || tag === 0) break;
35360
+ reader.skip(tag & 7);
35361
+ }
35362
+ return message;
35363
+ },
35364
+ fromJSON(object) {
35365
+ return {
35366
+ bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
35367
+ secretName: isSet$4(object.secretName) ? globalThis.String(object.secretName) : "",
35368
+ value: isSet$4(object.value) ? globalThis.String(object.value) : ""
35369
+ };
35370
+ },
35371
+ toJSON(message) {
35372
+ const obj = {};
35373
+ if (message.bindingName !== "") obj.bindingName = message.bindingName;
35374
+ if (message.secretName !== "") obj.secretName = message.secretName;
35375
+ if (message.value !== "") obj.value = message.value;
35376
+ return obj;
35377
+ },
35378
+ create(base) {
35379
+ return SetSecretRequest.fromPartial(base ?? {});
35380
+ },
35381
+ fromPartial(object) {
35382
+ const message = createBaseSetSecretRequest();
35383
+ message.bindingName = object.bindingName ?? "";
35384
+ message.secretName = object.secretName ?? "";
35385
+ message.value = object.value ?? "";
35386
+ return message;
35387
+ }
35388
+ };
35389
+ function createBaseSetSecretResponse() {
35390
+ return {};
35391
+ }
35392
+ const SetSecretResponse = {
35393
+ encode(_, writer = new BinaryWriter()) {
35394
+ return writer;
35395
+ },
35396
+ decode(input, length) {
35397
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35398
+ const end = length === void 0 ? reader.len : reader.pos + length;
35399
+ const message = createBaseSetSecretResponse();
35400
+ while (reader.pos < end) {
35401
+ const tag = reader.uint32();
35402
+ switch (tag >>> 3) {}
35403
+ if ((tag & 7) === 4 || tag === 0) break;
35404
+ reader.skip(tag & 7);
35405
+ }
35406
+ return message;
35407
+ },
35408
+ fromJSON(_) {
35409
+ return {};
35410
+ },
35411
+ toJSON(_) {
35412
+ return {};
35413
+ },
35414
+ create(base) {
35415
+ return SetSecretResponse.fromPartial(base ?? {});
35416
+ },
35417
+ fromPartial(_) {
35418
+ return createBaseSetSecretResponse();
35419
+ }
35420
+ };
35421
+ function createBaseDeleteSecretRequest() {
35422
+ return {
35423
+ bindingName: "",
35424
+ secretName: ""
35425
+ };
35426
+ }
35427
+ const DeleteSecretRequest = {
35428
+ encode(message, writer = new BinaryWriter()) {
35429
+ if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
35430
+ if (message.secretName !== "") writer.uint32(18).string(message.secretName);
35431
+ return writer;
35432
+ },
35433
+ decode(input, length) {
35434
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35435
+ const end = length === void 0 ? reader.len : reader.pos + length;
35436
+ const message = createBaseDeleteSecretRequest();
35437
+ while (reader.pos < end) {
35438
+ const tag = reader.uint32();
35439
+ switch (tag >>> 3) {
35440
+ case 1:
35441
+ if (tag !== 10) break;
35442
+ message.bindingName = reader.string();
35443
+ continue;
35444
+ case 2:
35445
+ if (tag !== 18) break;
35446
+ message.secretName = reader.string();
35447
+ continue;
35448
+ }
35449
+ if ((tag & 7) === 4 || tag === 0) break;
35450
+ reader.skip(tag & 7);
35451
+ }
35452
+ return message;
35453
+ },
35454
+ fromJSON(object) {
35455
+ return {
35456
+ bindingName: isSet$4(object.bindingName) ? globalThis.String(object.bindingName) : "",
35457
+ secretName: isSet$4(object.secretName) ? globalThis.String(object.secretName) : ""
35458
+ };
35459
+ },
35460
+ toJSON(message) {
35461
+ const obj = {};
35462
+ if (message.bindingName !== "") obj.bindingName = message.bindingName;
35463
+ if (message.secretName !== "") obj.secretName = message.secretName;
35464
+ return obj;
35465
+ },
35466
+ create(base) {
35467
+ return DeleteSecretRequest.fromPartial(base ?? {});
35468
+ },
35469
+ fromPartial(object) {
35470
+ const message = createBaseDeleteSecretRequest();
35471
+ message.bindingName = object.bindingName ?? "";
35472
+ message.secretName = object.secretName ?? "";
35473
+ return message;
35474
+ }
35475
+ };
35476
+ function createBaseDeleteSecretResponse() {
35477
+ return {};
35478
+ }
35479
+ const DeleteSecretResponse = {
35480
+ encode(_, writer = new BinaryWriter()) {
35481
+ return writer;
35482
+ },
35483
+ decode(input, length) {
35484
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35485
+ const end = length === void 0 ? reader.len : reader.pos + length;
35486
+ const message = createBaseDeleteSecretResponse();
35487
+ while (reader.pos < end) {
35488
+ const tag = reader.uint32();
35489
+ switch (tag >>> 3) {}
35490
+ if ((tag & 7) === 4 || tag === 0) break;
35491
+ reader.skip(tag & 7);
35492
+ }
35493
+ return message;
35494
+ },
35495
+ fromJSON(_) {
35496
+ return {};
35497
+ },
35498
+ toJSON(_) {
35499
+ return {};
35500
+ },
35501
+ create(base) {
35502
+ return DeleteSecretResponse.fromPartial(base ?? {});
35503
+ },
35504
+ fromPartial(_) {
35505
+ return createBaseDeleteSecretResponse();
35506
+ }
35507
+ };
35508
+ const VaultServiceDefinition = {
35509
+ name: "VaultService",
35510
+ fullName: "alien_bindings.vault.VaultService",
35511
+ methods: {
35512
+ /** Get a secret value by name */
35513
+ getSecret: {
35514
+ name: "GetSecret",
35515
+ requestType: GetSecretRequest,
35516
+ requestStream: false,
35517
+ responseType: GetSecretResponse,
35518
+ responseStream: false,
35519
+ options: {}
35520
+ },
35521
+ /** Set a secret value, creating it if it doesn't exist or updating it if it does */
35522
+ setSecret: {
35523
+ name: "SetSecret",
35524
+ requestType: SetSecretRequest,
35525
+ requestStream: false,
35526
+ responseType: SetSecretResponse,
35527
+ responseStream: false,
35528
+ options: {}
35529
+ },
35530
+ /** Delete a secret by name */
35531
+ deleteSecret: {
35532
+ name: "DeleteSecret",
35533
+ requestType: DeleteSecretRequest,
35534
+ requestStream: false,
35535
+ responseType: DeleteSecretResponse,
35536
+ responseStream: false,
35537
+ options: {}
35538
+ }
35539
+ }
35540
+ };
35541
+ function isSet$4(value) {
35542
+ return value !== null && value !== void 0;
35543
+ }
35544
+ //#endregion
35545
+ //#region src/bindings/vault.ts
35546
+ /**
35547
+ * Vault binding implementation.
35548
+ *
35549
+ * Provides secure secret management operations.
35550
+ */
35551
+ /**
35552
+ * Vault binding for secret management operations.
35553
+ *
35554
+ * @example
35555
+ * ```typescript
35556
+ * import { vault } from "@alienplatform/sdk"
35557
+ *
35558
+ * const secrets = vault("app-secrets")
35559
+ *
35560
+ * // Get a secret
35561
+ * const apiKey = await secrets.get("API_KEY")
35562
+ *
35563
+ * // Set a secret
35564
+ * await secrets.set("DATABASE_URL", "postgres://...")
35565
+ *
35566
+ * // Delete a secret
35567
+ * await secrets.delete("OLD_KEY")
35568
+ * ```
35569
+ */
35570
+ var Vault = class {
35571
+ client;
35572
+ bindingName;
35573
+ constructor(channel, bindingName) {
35574
+ this.client = (0, import_lib.createClient)(VaultServiceDefinition, channel);
35575
+ this.bindingName = bindingName;
35576
+ }
35577
+ /**
35578
+ * Get a secret value.
35579
+ *
35580
+ * @param secretName - Name of the secret
35581
+ * @returns Secret value
35582
+ */
35583
+ async get(secretName) {
35584
+ return await wrapGrpcCall("VaultService", "GetSecret", async () => {
35585
+ return (await this.client.getSecret({
35586
+ bindingName: this.bindingName,
35587
+ secretName
35588
+ })).value;
35589
+ }, {
35590
+ bindingName: this.bindingName,
35591
+ secretName
35592
+ });
35593
+ }
35594
+ /**
35595
+ * Get a secret as JSON.
35596
+ *
35597
+ * @param secretName - Name of the secret
35598
+ * @returns Parsed JSON value
35599
+ */
35600
+ async getJson(secretName) {
35601
+ const value = await this.get(secretName);
35602
+ return JSON.parse(value);
35603
+ }
35604
+ /**
35605
+ * Set a secret value.
35606
+ *
35607
+ * @param secretName - Name of the secret
35608
+ * @param value - Secret value (string or object for JSON)
35609
+ */
35610
+ async set(secretName, value) {
35611
+ const stringValue = typeof value === "string" ? value : JSON.stringify(value);
35612
+ await wrapGrpcCall("VaultService", "SetSecret", async () => {
35613
+ await this.client.setSecret({
35614
+ bindingName: this.bindingName,
35615
+ secretName,
35616
+ value: stringValue
35617
+ });
35618
+ }, {
35619
+ bindingName: this.bindingName,
35620
+ secretName
35621
+ });
35499
35622
  }
35500
35623
  /**
35501
- * Rename (move) an object only if the destination doesn't exist.
35624
+ * Delete a secret.
35502
35625
  *
35503
- * @param from - Source path
35504
- * @param to - Destination path
35626
+ * @param secretName - Name of the secret to delete
35505
35627
  */
35506
- async renameIfNotExists(from, to) {
35507
- await wrapGrpcCall("StorageService", "RenameIfNotExists", async () => {
35508
- await this.client.renameIfNotExists({
35628
+ async delete(secretName) {
35629
+ await wrapGrpcCall("VaultService", "DeleteSecret", async () => {
35630
+ await this.client.deleteSecret({
35509
35631
  bindingName: this.bindingName,
35510
- fromPath: from,
35511
- toPath: to
35632
+ secretName
35512
35633
  });
35513
- }, { bindingName: this.bindingName });
35634
+ }, {
35635
+ bindingName: this.bindingName,
35636
+ secretName
35637
+ });
35514
35638
  }
35515
35639
  /**
35516
- * Generate a signed URL for an object.
35640
+ * Check if a secret exists.
35517
35641
  *
35518
- * @param path - Path to the object
35519
- * @param options - Signed URL options
35520
- * @returns Signed URL result
35642
+ * @param secretName - Name of the secret
35643
+ * @returns True if the secret exists
35521
35644
  */
35522
- async signedUrl(path, options) {
35523
- const operationMap = {
35524
- get: StorageHttpMethod.HTTP_METHOD_GET,
35525
- put: StorageHttpMethod.HTTP_METHOD_PUT,
35526
- delete: StorageHttpMethod.HTTP_METHOD_DELETE
35527
- };
35528
- const expiresInSeconds = options.expiresInSeconds ?? 3600;
35529
- const expirationTime = new Date(Date.now() + expiresInSeconds * 1e3);
35530
- return await wrapGrpcCall("StorageService", "SignedUrl", async () => {
35531
- return {
35532
- url: (await this.client.signedUrl({
35533
- bindingName: this.bindingName,
35534
- path,
35535
- httpMethod: operationMap[options.operation],
35536
- expirationTime
35537
- })).url,
35538
- expiresAt: expirationTime
35539
- };
35540
- }, { bindingName: this.bindingName });
35541
- }
35542
- fromProtoMeta(proto) {
35543
- return {
35544
- location: proto.location,
35545
- lastModified: proto.lastModified,
35546
- size: proto.size,
35547
- etag: proto.eTag,
35548
- version: proto.version
35549
- };
35645
+ async exists(secretName) {
35646
+ try {
35647
+ await this.get(secretName);
35648
+ return true;
35649
+ } catch (error) {
35650
+ if (error instanceof Error && "code" in error && error.code === "SECRET_NOT_FOUND") return false;
35651
+ throw error;
35652
+ }
35550
35653
  }
35551
35654
  };
35552
35655
  //#endregion
35553
- //#region src/generated/vault.ts
35554
- function createBaseGetSecretRequest() {
35656
+ //#region src/generated/worker.ts
35657
+ function createBaseInvokeRequest() {
35555
35658
  return {
35556
35659
  bindingName: "",
35557
- secretName: ""
35660
+ targetWorker: "",
35661
+ method: "",
35662
+ path: "",
35663
+ headers: {},
35664
+ body: new Uint8Array(0),
35665
+ timeoutSeconds: void 0
35558
35666
  };
35559
35667
  }
35560
- const GetSecretRequest = {
35668
+ const InvokeRequest = {
35561
35669
  encode(message, writer = new BinaryWriter()) {
35562
35670
  if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
35563
- if (message.secretName !== "") writer.uint32(18).string(message.secretName);
35671
+ if (message.targetWorker !== "") writer.uint32(18).string(message.targetWorker);
35672
+ if (message.method !== "") writer.uint32(26).string(message.method);
35673
+ if (message.path !== "") writer.uint32(34).string(message.path);
35674
+ globalThis.Object.entries(message.headers).forEach(([key, value]) => {
35675
+ InvokeRequest_HeadersEntry.encode({
35676
+ key,
35677
+ value
35678
+ }, writer.uint32(42).fork()).join();
35679
+ });
35680
+ if (message.body.length !== 0) writer.uint32(50).bytes(message.body);
35681
+ if (message.timeoutSeconds !== void 0) writer.uint32(56).uint64(message.timeoutSeconds);
35564
35682
  return writer;
35565
35683
  },
35566
35684
  decode(input, length) {
35567
35685
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35568
35686
  const end = length === void 0 ? reader.len : reader.pos + length;
35569
- const message = createBaseGetSecretRequest();
35687
+ const message = createBaseInvokeRequest();
35570
35688
  while (reader.pos < end) {
35571
35689
  const tag = reader.uint32();
35572
35690
  switch (tag >>> 3) {
@@ -35576,7 +35694,29 @@ const GetSecretRequest = {
35576
35694
  continue;
35577
35695
  case 2:
35578
35696
  if (tag !== 18) break;
35579
- message.secretName = reader.string();
35697
+ message.targetWorker = reader.string();
35698
+ continue;
35699
+ case 3:
35700
+ if (tag !== 26) break;
35701
+ message.method = reader.string();
35702
+ continue;
35703
+ case 4:
35704
+ if (tag !== 34) break;
35705
+ message.path = reader.string();
35706
+ continue;
35707
+ case 5: {
35708
+ if (tag !== 42) break;
35709
+ const entry5 = InvokeRequest_HeadersEntry.decode(reader, reader.uint32());
35710
+ if (entry5.value !== void 0) message.headers[entry5.key] = entry5.value;
35711
+ continue;
35712
+ }
35713
+ case 6:
35714
+ if (tag !== 50) break;
35715
+ message.body = reader.bytes();
35716
+ continue;
35717
+ case 7:
35718
+ if (tag !== 56) break;
35719
+ message.timeoutSeconds = longToNumber$2(reader.uint64());
35580
35720
  continue;
35581
35721
  }
35582
35722
  if ((tag & 7) === 4 || tag === 0) break;
@@ -35587,42 +35727,79 @@ const GetSecretRequest = {
35587
35727
  fromJSON(object) {
35588
35728
  return {
35589
35729
  bindingName: isSet$3(object.bindingName) ? globalThis.String(object.bindingName) : "",
35590
- secretName: isSet$3(object.secretName) ? globalThis.String(object.secretName) : ""
35730
+ targetWorker: isSet$3(object.targetWorker) ? globalThis.String(object.targetWorker) : "",
35731
+ method: isSet$3(object.method) ? globalThis.String(object.method) : "",
35732
+ path: isSet$3(object.path) ? globalThis.String(object.path) : "",
35733
+ headers: isObject$1(object.headers) ? globalThis.Object.entries(object.headers).reduce((acc, [key, value]) => {
35734
+ acc[key] = globalThis.String(value);
35735
+ return acc;
35736
+ }, {}) : {},
35737
+ body: isSet$3(object.body) ? bytesFromBase64$1(object.body) : new Uint8Array(0),
35738
+ timeoutSeconds: isSet$3(object.timeoutSeconds) ? globalThis.Number(object.timeoutSeconds) : void 0
35591
35739
  };
35592
35740
  },
35593
35741
  toJSON(message) {
35594
35742
  const obj = {};
35595
35743
  if (message.bindingName !== "") obj.bindingName = message.bindingName;
35596
- if (message.secretName !== "") obj.secretName = message.secretName;
35744
+ if (message.targetWorker !== "") obj.targetWorker = message.targetWorker;
35745
+ if (message.method !== "") obj.method = message.method;
35746
+ if (message.path !== "") obj.path = message.path;
35747
+ if (message.headers) {
35748
+ const entries = globalThis.Object.entries(message.headers);
35749
+ if (entries.length > 0) {
35750
+ obj.headers = {};
35751
+ entries.forEach(([k, v]) => {
35752
+ obj.headers[k] = v;
35753
+ });
35754
+ }
35755
+ }
35756
+ if (message.body.length !== 0) obj.body = base64FromBytes$1(message.body);
35757
+ if (message.timeoutSeconds !== void 0) obj.timeoutSeconds = Math.round(message.timeoutSeconds);
35597
35758
  return obj;
35598
35759
  },
35599
35760
  create(base) {
35600
- return GetSecretRequest.fromPartial(base ?? {});
35761
+ return InvokeRequest.fromPartial(base ?? {});
35601
35762
  },
35602
35763
  fromPartial(object) {
35603
- const message = createBaseGetSecretRequest();
35764
+ const message = createBaseInvokeRequest();
35604
35765
  message.bindingName = object.bindingName ?? "";
35605
- message.secretName = object.secretName ?? "";
35766
+ message.targetWorker = object.targetWorker ?? "";
35767
+ message.method = object.method ?? "";
35768
+ message.path = object.path ?? "";
35769
+ message.headers = globalThis.Object.entries(object.headers ?? {}).reduce((acc, [key, value]) => {
35770
+ if (value !== void 0) acc[key] = globalThis.String(value);
35771
+ return acc;
35772
+ }, {});
35773
+ message.body = object.body ?? new Uint8Array(0);
35774
+ message.timeoutSeconds = object.timeoutSeconds ?? void 0;
35606
35775
  return message;
35607
35776
  }
35608
35777
  };
35609
- function createBaseGetSecretResponse() {
35610
- return { value: "" };
35778
+ function createBaseInvokeRequest_HeadersEntry() {
35779
+ return {
35780
+ key: "",
35781
+ value: ""
35782
+ };
35611
35783
  }
35612
- const GetSecretResponse = {
35784
+ const InvokeRequest_HeadersEntry = {
35613
35785
  encode(message, writer = new BinaryWriter()) {
35614
- if (message.value !== "") writer.uint32(10).string(message.value);
35786
+ if (message.key !== "") writer.uint32(10).string(message.key);
35787
+ if (message.value !== "") writer.uint32(18).string(message.value);
35615
35788
  return writer;
35616
35789
  },
35617
35790
  decode(input, length) {
35618
35791
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35619
35792
  const end = length === void 0 ? reader.len : reader.pos + length;
35620
- const message = createBaseGetSecretResponse();
35793
+ const message = createBaseInvokeRequest_HeadersEntry();
35621
35794
  while (reader.pos < end) {
35622
35795
  const tag = reader.uint32();
35623
35796
  switch (tag >>> 3) {
35624
35797
  case 1:
35625
35798
  if (tag !== 10) break;
35799
+ message.key = reader.string();
35800
+ continue;
35801
+ case 2:
35802
+ if (tag !== 18) break;
35626
35803
  message.value = reader.string();
35627
35804
  continue;
35628
35805
  }
@@ -35632,54 +35809,66 @@ const GetSecretResponse = {
35632
35809
  return message;
35633
35810
  },
35634
35811
  fromJSON(object) {
35635
- return { value: isSet$3(object.value) ? globalThis.String(object.value) : "" };
35812
+ return {
35813
+ key: isSet$3(object.key) ? globalThis.String(object.key) : "",
35814
+ value: isSet$3(object.value) ? globalThis.String(object.value) : ""
35815
+ };
35636
35816
  },
35637
35817
  toJSON(message) {
35638
35818
  const obj = {};
35819
+ if (message.key !== "") obj.key = message.key;
35639
35820
  if (message.value !== "") obj.value = message.value;
35640
35821
  return obj;
35641
35822
  },
35642
35823
  create(base) {
35643
- return GetSecretResponse.fromPartial(base ?? {});
35824
+ return InvokeRequest_HeadersEntry.fromPartial(base ?? {});
35644
35825
  },
35645
35826
  fromPartial(object) {
35646
- const message = createBaseGetSecretResponse();
35827
+ const message = createBaseInvokeRequest_HeadersEntry();
35828
+ message.key = object.key ?? "";
35647
35829
  message.value = object.value ?? "";
35648
35830
  return message;
35649
35831
  }
35650
35832
  };
35651
- function createBaseSetSecretRequest() {
35833
+ function createBaseInvokeResponse() {
35652
35834
  return {
35653
- bindingName: "",
35654
- secretName: "",
35655
- value: ""
35835
+ status: 0,
35836
+ headers: {},
35837
+ body: new Uint8Array(0)
35656
35838
  };
35657
35839
  }
35658
- const SetSecretRequest = {
35840
+ const InvokeResponse = {
35659
35841
  encode(message, writer = new BinaryWriter()) {
35660
- if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
35661
- if (message.secretName !== "") writer.uint32(18).string(message.secretName);
35662
- if (message.value !== "") writer.uint32(26).string(message.value);
35842
+ if (message.status !== 0) writer.uint32(8).uint32(message.status);
35843
+ globalThis.Object.entries(message.headers).forEach(([key, value]) => {
35844
+ InvokeResponse_HeadersEntry.encode({
35845
+ key,
35846
+ value
35847
+ }, writer.uint32(18).fork()).join();
35848
+ });
35849
+ if (message.body.length !== 0) writer.uint32(26).bytes(message.body);
35663
35850
  return writer;
35664
35851
  },
35665
35852
  decode(input, length) {
35666
35853
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35667
35854
  const end = length === void 0 ? reader.len : reader.pos + length;
35668
- const message = createBaseSetSecretRequest();
35855
+ const message = createBaseInvokeResponse();
35669
35856
  while (reader.pos < end) {
35670
35857
  const tag = reader.uint32();
35671
35858
  switch (tag >>> 3) {
35672
35859
  case 1:
35673
- if (tag !== 10) break;
35674
- message.bindingName = reader.string();
35860
+ if (tag !== 8) break;
35861
+ message.status = reader.uint32();
35675
35862
  continue;
35676
- case 2:
35863
+ case 2: {
35677
35864
  if (tag !== 18) break;
35678
- message.secretName = reader.string();
35865
+ const entry2 = InvokeResponse_HeadersEntry.decode(reader, reader.uint32());
35866
+ if (entry2.value !== void 0) message.headers[entry2.key] = entry2.value;
35679
35867
  continue;
35868
+ }
35680
35869
  case 3:
35681
35870
  if (tag !== 26) break;
35682
- message.value = reader.string();
35871
+ message.body = reader.bytes();
35683
35872
  continue;
35684
35873
  }
35685
35874
  if ((tag & 7) === 4 || tag === 0) break;
@@ -35689,77 +35878,110 @@ const SetSecretRequest = {
35689
35878
  },
35690
35879
  fromJSON(object) {
35691
35880
  return {
35692
- bindingName: isSet$3(object.bindingName) ? globalThis.String(object.bindingName) : "",
35693
- secretName: isSet$3(object.secretName) ? globalThis.String(object.secretName) : "",
35694
- value: isSet$3(object.value) ? globalThis.String(object.value) : ""
35881
+ status: isSet$3(object.status) ? globalThis.Number(object.status) : 0,
35882
+ headers: isObject$1(object.headers) ? globalThis.Object.entries(object.headers).reduce((acc, [key, value]) => {
35883
+ acc[key] = globalThis.String(value);
35884
+ return acc;
35885
+ }, {}) : {},
35886
+ body: isSet$3(object.body) ? bytesFromBase64$1(object.body) : new Uint8Array(0)
35695
35887
  };
35696
35888
  },
35697
35889
  toJSON(message) {
35698
35890
  const obj = {};
35699
- if (message.bindingName !== "") obj.bindingName = message.bindingName;
35700
- if (message.secretName !== "") obj.secretName = message.secretName;
35701
- if (message.value !== "") obj.value = message.value;
35891
+ if (message.status !== 0) obj.status = Math.round(message.status);
35892
+ if (message.headers) {
35893
+ const entries = globalThis.Object.entries(message.headers);
35894
+ if (entries.length > 0) {
35895
+ obj.headers = {};
35896
+ entries.forEach(([k, v]) => {
35897
+ obj.headers[k] = v;
35898
+ });
35899
+ }
35900
+ }
35901
+ if (message.body.length !== 0) obj.body = base64FromBytes$1(message.body);
35702
35902
  return obj;
35703
35903
  },
35704
35904
  create(base) {
35705
- return SetSecretRequest.fromPartial(base ?? {});
35905
+ return InvokeResponse.fromPartial(base ?? {});
35706
35906
  },
35707
35907
  fromPartial(object) {
35708
- const message = createBaseSetSecretRequest();
35709
- message.bindingName = object.bindingName ?? "";
35710
- message.secretName = object.secretName ?? "";
35711
- message.value = object.value ?? "";
35908
+ const message = createBaseInvokeResponse();
35909
+ message.status = object.status ?? 0;
35910
+ message.headers = globalThis.Object.entries(object.headers ?? {}).reduce((acc, [key, value]) => {
35911
+ if (value !== void 0) acc[key] = globalThis.String(value);
35912
+ return acc;
35913
+ }, {});
35914
+ message.body = object.body ?? new Uint8Array(0);
35712
35915
  return message;
35713
35916
  }
35714
35917
  };
35715
- function createBaseSetSecretResponse() {
35716
- return {};
35918
+ function createBaseInvokeResponse_HeadersEntry() {
35919
+ return {
35920
+ key: "",
35921
+ value: ""
35922
+ };
35717
35923
  }
35718
- const SetSecretResponse = {
35719
- encode(_, writer = new BinaryWriter()) {
35924
+ const InvokeResponse_HeadersEntry = {
35925
+ encode(message, writer = new BinaryWriter()) {
35926
+ if (message.key !== "") writer.uint32(10).string(message.key);
35927
+ if (message.value !== "") writer.uint32(18).string(message.value);
35720
35928
  return writer;
35721
35929
  },
35722
35930
  decode(input, length) {
35723
35931
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35724
35932
  const end = length === void 0 ? reader.len : reader.pos + length;
35725
- const message = createBaseSetSecretResponse();
35933
+ const message = createBaseInvokeResponse_HeadersEntry();
35726
35934
  while (reader.pos < end) {
35727
35935
  const tag = reader.uint32();
35728
- switch (tag >>> 3) {}
35936
+ switch (tag >>> 3) {
35937
+ case 1:
35938
+ if (tag !== 10) break;
35939
+ message.key = reader.string();
35940
+ continue;
35941
+ case 2:
35942
+ if (tag !== 18) break;
35943
+ message.value = reader.string();
35944
+ continue;
35945
+ }
35729
35946
  if ((tag & 7) === 4 || tag === 0) break;
35730
35947
  reader.skip(tag & 7);
35731
35948
  }
35732
35949
  return message;
35733
35950
  },
35734
- fromJSON(_) {
35735
- return {};
35951
+ fromJSON(object) {
35952
+ return {
35953
+ key: isSet$3(object.key) ? globalThis.String(object.key) : "",
35954
+ value: isSet$3(object.value) ? globalThis.String(object.value) : ""
35955
+ };
35736
35956
  },
35737
- toJSON(_) {
35738
- return {};
35957
+ toJSON(message) {
35958
+ const obj = {};
35959
+ if (message.key !== "") obj.key = message.key;
35960
+ if (message.value !== "") obj.value = message.value;
35961
+ return obj;
35739
35962
  },
35740
35963
  create(base) {
35741
- return SetSecretResponse.fromPartial(base ?? {});
35964
+ return InvokeResponse_HeadersEntry.fromPartial(base ?? {});
35742
35965
  },
35743
- fromPartial(_) {
35744
- return createBaseSetSecretResponse();
35966
+ fromPartial(object) {
35967
+ const message = createBaseInvokeResponse_HeadersEntry();
35968
+ message.key = object.key ?? "";
35969
+ message.value = object.value ?? "";
35970
+ return message;
35745
35971
  }
35746
35972
  };
35747
- function createBaseDeleteSecretRequest() {
35748
- return {
35749
- bindingName: "",
35750
- secretName: ""
35751
- };
35973
+ function createBaseGetWorkerUrlRequest() {
35974
+ return { bindingName: "" };
35752
35975
  }
35753
- const DeleteSecretRequest = {
35976
+ const GetWorkerUrlRequest = {
35754
35977
  encode(message, writer = new BinaryWriter()) {
35755
35978
  if (message.bindingName !== "") writer.uint32(10).string(message.bindingName);
35756
- if (message.secretName !== "") writer.uint32(18).string(message.secretName);
35757
35979
  return writer;
35758
35980
  },
35759
35981
  decode(input, length) {
35760
35982
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35761
35983
  const end = length === void 0 ? reader.len : reader.pos + length;
35762
- const message = createBaseDeleteSecretRequest();
35984
+ const message = createBaseGetWorkerUrlRequest();
35763
35985
  while (reader.pos < end) {
35764
35986
  const tag = reader.uint32();
35765
35987
  switch (tag >>> 3) {
@@ -35767,10 +35989,6 @@ const DeleteSecretRequest = {
35767
35989
  if (tag !== 10) break;
35768
35990
  message.bindingName = reader.string();
35769
35991
  continue;
35770
- case 2:
35771
- if (tag !== 18) break;
35772
- message.secretName = reader.string();
35773
- continue;
35774
35992
  }
35775
35993
  if ((tag & 7) === 4 || tag === 0) break;
35776
35994
  reader.skip(tag & 7);
@@ -35778,201 +35996,236 @@ const DeleteSecretRequest = {
35778
35996
  return message;
35779
35997
  },
35780
35998
  fromJSON(object) {
35781
- return {
35782
- bindingName: isSet$3(object.bindingName) ? globalThis.String(object.bindingName) : "",
35783
- secretName: isSet$3(object.secretName) ? globalThis.String(object.secretName) : ""
35784
- };
35999
+ return { bindingName: isSet$3(object.bindingName) ? globalThis.String(object.bindingName) : "" };
35785
36000
  },
35786
36001
  toJSON(message) {
35787
36002
  const obj = {};
35788
36003
  if (message.bindingName !== "") obj.bindingName = message.bindingName;
35789
- if (message.secretName !== "") obj.secretName = message.secretName;
35790
36004
  return obj;
35791
36005
  },
35792
36006
  create(base) {
35793
- return DeleteSecretRequest.fromPartial(base ?? {});
36007
+ return GetWorkerUrlRequest.fromPartial(base ?? {});
35794
36008
  },
35795
36009
  fromPartial(object) {
35796
- const message = createBaseDeleteSecretRequest();
36010
+ const message = createBaseGetWorkerUrlRequest();
35797
36011
  message.bindingName = object.bindingName ?? "";
35798
- message.secretName = object.secretName ?? "";
35799
36012
  return message;
35800
36013
  }
35801
36014
  };
35802
- function createBaseDeleteSecretResponse() {
35803
- return {};
36015
+ function createBaseGetWorkerUrlResponse() {
36016
+ return { url: void 0 };
35804
36017
  }
35805
- const DeleteSecretResponse = {
35806
- encode(_, writer = new BinaryWriter()) {
36018
+ const GetWorkerUrlResponse = {
36019
+ encode(message, writer = new BinaryWriter()) {
36020
+ if (message.url !== void 0) writer.uint32(10).string(message.url);
35807
36021
  return writer;
35808
36022
  },
35809
36023
  decode(input, length) {
35810
36024
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35811
36025
  const end = length === void 0 ? reader.len : reader.pos + length;
35812
- const message = createBaseDeleteSecretResponse();
36026
+ const message = createBaseGetWorkerUrlResponse();
35813
36027
  while (reader.pos < end) {
35814
36028
  const tag = reader.uint32();
35815
- switch (tag >>> 3) {}
36029
+ switch (tag >>> 3) {
36030
+ case 1:
36031
+ if (tag !== 10) break;
36032
+ message.url = reader.string();
36033
+ continue;
36034
+ }
35816
36035
  if ((tag & 7) === 4 || tag === 0) break;
35817
36036
  reader.skip(tag & 7);
35818
36037
  }
35819
36038
  return message;
35820
36039
  },
35821
- fromJSON(_) {
35822
- return {};
36040
+ fromJSON(object) {
36041
+ return { url: isSet$3(object.url) ? globalThis.String(object.url) : void 0 };
35823
36042
  },
35824
- toJSON(_) {
35825
- return {};
36043
+ toJSON(message) {
36044
+ const obj = {};
36045
+ if (message.url !== void 0) obj.url = message.url;
36046
+ return obj;
35826
36047
  },
35827
36048
  create(base) {
35828
- return DeleteSecretResponse.fromPartial(base ?? {});
36049
+ return GetWorkerUrlResponse.fromPartial(base ?? {});
35829
36050
  },
35830
- fromPartial(_) {
35831
- return createBaseDeleteSecretResponse();
36051
+ fromPartial(object) {
36052
+ const message = createBaseGetWorkerUrlResponse();
36053
+ message.url = object.url ?? void 0;
36054
+ return message;
35832
36055
  }
35833
36056
  };
35834
- const VaultServiceDefinition = {
35835
- name: "VaultService",
35836
- fullName: "alien_bindings.vault.VaultService",
36057
+ const WorkerServiceDefinition = {
36058
+ name: "WorkerService",
36059
+ fullName: "alien_bindings.worker.WorkerService",
35837
36060
  methods: {
35838
- getSecret: {
35839
- name: "GetSecret",
35840
- requestType: GetSecretRequest,
35841
- requestStream: false,
35842
- responseType: GetSecretResponse,
35843
- responseStream: false,
35844
- options: {}
35845
- },
35846
- setSecret: {
35847
- name: "SetSecret",
35848
- requestType: SetSecretRequest,
36061
+ /** Invoke a worker with HTTP request data */
36062
+ invoke: {
36063
+ name: "Invoke",
36064
+ requestType: InvokeRequest,
35849
36065
  requestStream: false,
35850
- responseType: SetSecretResponse,
36066
+ responseType: InvokeResponse,
35851
36067
  responseStream: false,
35852
36068
  options: {}
35853
36069
  },
35854
- deleteSecret: {
35855
- name: "DeleteSecret",
35856
- requestType: DeleteSecretRequest,
36070
+ /** Get the public URL of the worker, if available */
36071
+ getWorkerUrl: {
36072
+ name: "GetWorkerUrl",
36073
+ requestType: GetWorkerUrlRequest,
35857
36074
  requestStream: false,
35858
- responseType: DeleteSecretResponse,
36075
+ responseType: GetWorkerUrlResponse,
35859
36076
  responseStream: false,
35860
36077
  options: {}
35861
36078
  }
35862
36079
  }
35863
36080
  };
36081
+ function bytesFromBase64$1(b64) {
36082
+ if (globalThis.Buffer) return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
36083
+ else {
36084
+ const bin = globalThis.atob(b64);
36085
+ const arr = new Uint8Array(bin.length);
36086
+ for (let i = 0; i < bin.length; ++i) arr[i] = bin.charCodeAt(i);
36087
+ return arr;
36088
+ }
36089
+ }
36090
+ function base64FromBytes$1(arr) {
36091
+ if (globalThis.Buffer) return globalThis.Buffer.from(arr).toString("base64");
36092
+ else {
36093
+ const bin = [];
36094
+ arr.forEach((byte) => {
36095
+ bin.push(globalThis.String.fromCharCode(byte));
36096
+ });
36097
+ return globalThis.btoa(bin.join(""));
36098
+ }
36099
+ }
36100
+ function longToNumber$2(int64) {
36101
+ const num = globalThis.Number(int64.toString());
36102
+ if (num > globalThis.Number.MAX_SAFE_INTEGER) throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
36103
+ if (num < globalThis.Number.MIN_SAFE_INTEGER) throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
36104
+ return num;
36105
+ }
36106
+ function isObject$1(value) {
36107
+ return typeof value === "object" && value !== null;
36108
+ }
35864
36109
  function isSet$3(value) {
35865
36110
  return value !== null && value !== void 0;
35866
36111
  }
35867
36112
  //#endregion
35868
- //#region src/bindings/vault.ts
36113
+ //#region src/bindings/worker.ts
35869
36114
  /**
35870
- * Vault binding implementation.
36115
+ * Worker binding implementation.
35871
36116
  *
35872
- * Provides secure secret management operations.
36117
+ * Provides direct worker-to-worker invocation.
35873
36118
  */
35874
36119
  /**
35875
- * Vault binding for secret management operations.
36120
+ * Worker binding for direct worker invocation.
35876
36121
  *
35877
36122
  * @example
35878
36123
  * ```typescript
35879
- * import { vault } from "@alienplatform/sdk"
35880
- *
35881
- * const secrets = vault("app-secrets")
36124
+ * import { worker } from "@alienplatform/sdk"
35882
36125
  *
35883
- * // Get a secret
35884
- * const apiKey = await secrets.get("API_KEY")
36126
+ * const processor = worker("image-processor")
35885
36127
  *
35886
- * // Set a secret
35887
- * await secrets.set("DATABASE_URL", "postgres://...")
36128
+ * // Invoke with JSON body
36129
+ * const response = await processor.invokeJson("resize-image", {
36130
+ * imageUrl: "https://...",
36131
+ * width: 800,
36132
+ * height: 600,
36133
+ * })
35888
36134
  *
35889
- * // Delete a secret
35890
- * await secrets.delete("OLD_KEY")
36135
+ * // Get worker URL
36136
+ * const url = await processor.getUrl()
35891
36137
  * ```
35892
36138
  */
35893
- var Vault = class {
36139
+ var WorkerBinding = class {
35894
36140
  client;
35895
36141
  bindingName;
35896
36142
  constructor(channel, bindingName) {
35897
- this.client = (0, import_lib.createClient)(VaultServiceDefinition, channel);
36143
+ this.client = (0, import_lib.createClient)(WorkerServiceDefinition, channel);
35898
36144
  this.bindingName = bindingName;
35899
36145
  }
35900
36146
  /**
35901
- * Get a secret value.
36147
+ * Invoke a worker with raw request data.
35902
36148
  *
35903
- * @param secretName - Name of the secret
35904
- * @returns Secret value
36149
+ * @param request - Invocation request
36150
+ * @returns Worker response
35905
36151
  */
35906
- async get(secretName) {
35907
- return await wrapGrpcCall("VaultService", "GetSecret", async () => {
35908
- return (await this.client.getSecret({
36152
+ async invoke(request) {
36153
+ return await wrapGrpcCall("WorkerService", "Invoke", async () => {
36154
+ const response = await this.client.invoke({
35909
36155
  bindingName: this.bindingName,
35910
- secretName
35911
- })).value;
35912
- }, {
35913
- bindingName: this.bindingName,
35914
- secretName
35915
- });
35916
- }
35917
- /**
35918
- * Get a secret as JSON.
35919
- *
35920
- * @param secretName - Name of the secret
35921
- * @returns Parsed JSON value
35922
- */
35923
- async getJson(secretName) {
35924
- const value = await this.get(secretName);
35925
- return JSON.parse(value);
36156
+ targetWorker: request.targetWorker,
36157
+ method: request.method,
36158
+ path: request.path,
36159
+ headers: request.headers ?? {},
36160
+ body: request.body ?? new Uint8Array(),
36161
+ timeoutSeconds: request.timeoutMs ? Math.floor(request.timeoutMs / 1e3) : void 0
36162
+ });
36163
+ return {
36164
+ status: response.status,
36165
+ headers: response.headers,
36166
+ body: response.body
36167
+ };
36168
+ }, { bindingName: this.bindingName });
35926
36169
  }
35927
36170
  /**
35928
- * Set a secret value.
36171
+ * Invoke a worker with a JSON body.
35929
36172
  *
35930
- * @param secretName - Name of the secret
35931
- * @param value - Secret value (string or object for JSON)
36173
+ * @param targetWorker - Target worker identifier
36174
+ * @param body - JSON body
36175
+ * @param options - Optional request options
36176
+ * @returns Parsed JSON response
35932
36177
  */
35933
- async set(secretName, value) {
35934
- const stringValue = typeof value === "string" ? value : JSON.stringify(value);
35935
- await wrapGrpcCall("VaultService", "SetSecret", async () => {
35936
- await this.client.setSecret({
35937
- bindingName: this.bindingName,
35938
- secretName,
35939
- value: stringValue
35940
- });
35941
- }, {
35942
- bindingName: this.bindingName,
35943
- secretName
36178
+ async invokeJson(targetWorker, body, options) {
36179
+ const response = await this.invoke({
36180
+ targetWorker,
36181
+ method: options?.method ?? "POST",
36182
+ path: options?.path ?? "/",
36183
+ headers: {
36184
+ "content-type": "application/json",
36185
+ ...options?.headers
36186
+ },
36187
+ body: new TextEncoder().encode(JSON.stringify(body)),
36188
+ timeoutMs: options?.timeoutMs
35944
36189
  });
36190
+ if (response.status >= 400) {
36191
+ const errorText = new TextDecoder().decode(response.body);
36192
+ throw new Error(`Worker invocation failed with status ${response.status}: ${errorText}`);
36193
+ }
36194
+ const responseText = new TextDecoder().decode(response.body);
36195
+ return JSON.parse(responseText);
35945
36196
  }
35946
36197
  /**
35947
- * Delete a secret.
36198
+ * Invoke a worker with GET request.
35948
36199
  *
35949
- * @param secretName - Name of the secret to delete
36200
+ * @param targetWorker - Target worker identifier
36201
+ * @param path - Request path
36202
+ * @param options - Optional request options
36203
+ * @returns Parsed JSON response
35950
36204
  */
35951
- async delete(secretName) {
35952
- await wrapGrpcCall("VaultService", "DeleteSecret", async () => {
35953
- await this.client.deleteSecret({
35954
- bindingName: this.bindingName,
35955
- secretName
35956
- });
35957
- }, {
35958
- bindingName: this.bindingName,
35959
- secretName
36205
+ async get(targetWorker, path = "/", options) {
36206
+ const response = await this.invoke({
36207
+ targetWorker,
36208
+ method: "GET",
36209
+ path,
36210
+ headers: options?.headers,
36211
+ timeoutMs: options?.timeoutMs
35960
36212
  });
36213
+ if (response.status >= 400) {
36214
+ const errorText = new TextDecoder().decode(response.body);
36215
+ throw new Error(`Worker GET failed with status ${response.status}: ${errorText}`);
36216
+ }
36217
+ const responseText = new TextDecoder().decode(response.body);
36218
+ return JSON.parse(responseText);
35961
36219
  }
35962
36220
  /**
35963
- * Check if a secret exists.
36221
+ * Get the public URL of the worker.
35964
36222
  *
35965
- * @param secretName - Name of the secret
35966
- * @returns True if the secret exists
36223
+ * @returns Worker URL if available
35967
36224
  */
35968
- async exists(secretName) {
35969
- try {
35970
- await this.get(secretName);
35971
- return true;
35972
- } catch (error) {
35973
- if (error instanceof Error && "code" in error && error.code === "SECRET_NOT_FOUND") return false;
35974
- throw error;
35975
- }
36225
+ async getUrl() {
36226
+ return await wrapGrpcCall("WorkerService", "GetWorkerUrl", async () => {
36227
+ return (await this.client.getWorkerUrl({ bindingName: this.bindingName })).url;
36228
+ }, { bindingName: this.bindingName });
35976
36229
  }
35977
36230
  };
35978
36231
  //#endregion
@@ -37157,6 +37410,7 @@ const ControlServiceDefinition = {
37157
37410
  name: "ControlService",
37158
37411
  fullName: "alien_bindings.control.ControlService",
37159
37412
  methods: {
37413
+ /** App registers that it has an HTTP server listening on a port */
37160
37414
  registerHttpServer: {
37161
37415
  name: "RegisterHttpServer",
37162
37416
  requestType: RegisterHttpServerRequest,
@@ -37165,6 +37419,7 @@ const ControlServiceDefinition = {
37165
37419
  responseStream: false,
37166
37420
  options: {}
37167
37421
  },
37422
+ /** App registers an event handler for a specific resource */
37168
37423
  registerEventHandler: {
37169
37424
  name: "RegisterEventHandler",
37170
37425
  requestType: RegisterEventHandlerRequest,
@@ -37173,6 +37428,10 @@ const ControlServiceDefinition = {
37173
37428
  responseStream: false,
37174
37429
  options: {}
37175
37430
  },
37431
+ /**
37432
+ * App waits for tasks - this is a server-streaming RPC
37433
+ * Runtime sends tasks as they arrive, app processes them
37434
+ */
37176
37435
  waitForTasks: {
37177
37436
  name: "WaitForTasks",
37178
37437
  requestType: WaitForTasksRequest,
@@ -37181,6 +37440,7 @@ const ControlServiceDefinition = {
37181
37440
  responseStream: true,
37182
37441
  options: {}
37183
37442
  },
37443
+ /** App sends result for a processed task */
37184
37444
  sendTaskResult: {
37185
37445
  name: "SendTaskResult",
37186
37446
  requestType: SendTaskResultRequest,
@@ -37357,7 +37617,10 @@ var EventLoop = class {
37357
37617
  * with the long-lived waitForTasks stream on some runtimes (e.g. Bun).
37358
37618
  */
37359
37619
  async getSendClient() {
37360
- if (!this.sendClient) this.sendClient = (0, import_lib.createClient)(ControlServiceDefinition, await createGrpcChannel(getGrpcEndpoint()));
37620
+ if (!this.sendClient) {
37621
+ const sendChannel = await createGrpcChannel(getGrpcEndpoint());
37622
+ this.sendClient = (0, import_lib.createClient)(ControlServiceDefinition, sendChannel);
37623
+ }
37361
37624
  return this.sendClient;
37362
37625
  }
37363
37626
  /**
@@ -38034,6 +38297,7 @@ const WaitUntilServiceDefinition = {
38034
38297
  name: "WaitUntilService",
38035
38298
  fullName: "alien_bindings.wait_until.WaitUntilService",
38036
38299
  methods: {
38300
+ /** Application notifies runtime that it has registered a new task. */
38037
38301
  notifyTaskRegistered: {
38038
38302
  name: "NotifyTaskRegistered",
38039
38303
  requestType: NotifyTaskRegisteredRequest,
@@ -38042,6 +38306,10 @@ const WaitUntilServiceDefinition = {
38042
38306
  responseStream: false,
38043
38307
  options: {}
38044
38308
  },
38309
+ /**
38310
+ * Application calls this to wait for a drain signal from runtime.
38311
+ * This is a blocking call that returns when runtime decides it's time to drain.
38312
+ */
38045
38313
  waitForDrainSignal: {
38046
38314
  name: "WaitForDrainSignal",
38047
38315
  requestType: WaitForDrainSignalRequest,
@@ -38050,6 +38318,7 @@ const WaitUntilServiceDefinition = {
38050
38318
  responseStream: false,
38051
38319
  options: {}
38052
38320
  },
38321
+ /** Application notifies runtime that it has completed draining all tasks. */
38053
38322
  notifyDrainComplete: {
38054
38323
  name: "NotifyDrainComplete",
38055
38324
  requestType: NotifyDrainCompleteRequest,
@@ -38058,6 +38327,7 @@ const WaitUntilServiceDefinition = {
38058
38327
  responseStream: false,
38059
38328
  options: {}
38060
38329
  },
38330
+ /** Runtime can query how many tasks are currently registered (for monitoring). */
38061
38331
  getTaskCount: {
38062
38332
  name: "GetTaskCount",
38063
38333
  requestType: GetTaskCountRequest,
@@ -38076,7 +38346,7 @@ function isSet(value) {
38076
38346
  /**
38077
38347
  * WaitUntil functionality for background task management.
38078
38348
  *
38079
- * Allows functions to continue running after the response has been sent.
38349
+ * Allows workers to continue running after the response has been sent.
38080
38350
  */
38081
38351
  const tasks = /* @__PURE__ */ new Map();
38082
38352
  let taskIdCounter = 0;
@@ -38244,7 +38514,7 @@ function waitUntil$1(promise) {
38244
38514
  //#endregion
38245
38515
  //#region src/context.ts
38246
38516
  /**
38247
- * Instance ID for this function instance.
38517
+ * Instance ID for this worker process.
38248
38518
  */
38249
38519
  function generateInstanceId() {
38250
38520
  return `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
@@ -38292,7 +38562,7 @@ var AlienContext = class AlienContext {
38292
38562
  const address = process.env.ALIEN_BINDINGS_GRPC_ADDRESS;
38293
38563
  if (!address) throw new AlienError(InvalidBindingConfigError.create({
38294
38564
  message: "ALIEN_BINDINGS_GRPC_ADDRESS environment variable is not set",
38295
- suggestion: "Make sure you're running inside an Alien function or set the variable manually"
38565
+ suggestion: "Make sure you're running inside an Alien worker or set the variable manually"
38296
38566
  }));
38297
38567
  return new AlienContext(await getOrCreateChannel(address));
38298
38568
  }
@@ -38380,13 +38650,13 @@ var AlienContext = class AlienContext {
38380
38650
  return this.getBinding(`artifact-registry:${name}`, () => new ArtifactRegistry(this.channel, name));
38381
38651
  }
38382
38652
  /**
38383
- * Get a function binding.
38653
+ * Get a worker binding.
38384
38654
  *
38385
38655
  * @param name - Binding name
38386
- * @returns Function binding instance
38656
+ * @returns Worker binding instance
38387
38657
  */
38388
- func(name) {
38389
- return this.getBinding(`function:${name}`, () => new FunctionBinding(this.channel, name));
38658
+ worker(name) {
38659
+ return this.getBinding(`worker:${name}`, () => new WorkerBinding(this.channel, name));
38390
38660
  }
38391
38661
  /**
38392
38662
  * Get a service account binding.
@@ -38598,21 +38868,21 @@ async function artifactRegistry(name) {
38598
38868
  return (await getGlobalContext()).artifactRegistry(name);
38599
38869
  }
38600
38870
  /**
38601
- * Get a function binding.
38871
+ * Get a worker binding.
38602
38872
  *
38603
38873
  * @param name - Binding name
38604
- * @returns Function binding instance
38874
+ * @returns Worker binding instance
38605
38875
  *
38606
38876
  * @example
38607
38877
  * ```typescript
38608
- * import { func } from "@alienplatform/sdk"
38878
+ * import { worker } from "@alienplatform/sdk"
38609
38879
  *
38610
- * const processor = await func("image-processor")
38880
+ * const processor = await worker("image-processor")
38611
38881
  * const result = await processor.invokeJson("resize", { width: 800 })
38612
38882
  * ```
38613
38883
  */
38614
- async function func(name) {
38615
- return (await getGlobalContext()).func(name);
38884
+ async function worker(name) {
38885
+ return (await getGlobalContext()).worker(name);
38616
38886
  }
38617
38887
  /**
38618
38888
  * Get a service account binding.
@@ -38710,4 +38980,4 @@ function waitUntil(promise) {
38710
38980
  waitUntil$1(promise);
38711
38981
  }
38712
38982
  //#endregion
38713
- export { AlienContext, ArtifactRegistry, BindingNotFoundError, Build, CommandAlreadyRegisteredError, ContextNotInitializedError, EventHandlerAlreadyRegisteredError, FunctionBinding, GrpcCallError, GrpcConnectionError, InvalidBindingConfigError, Kv, KvInvalidKeyError, KvInvalidValueError, KvKeyNotFoundError, MissingEnvVarError, Queue, QueueOperationError, SecretNotFoundError, ServiceAccount, Storage, StorageObjectExistsError, StorageObjectNotFoundError, StoragePreconditionError, Vault, artifactRegistry, build, command, func, getCommands, kv, onCronEvent, onQueueMessage, onStorageEvent, queue, runCommand, serviceAccount, storage, vault, waitUntil };
38983
+ export { AlienContext, ArtifactRegistry, BindingNotFoundError, Build, CommandAlreadyRegisteredError, ContextNotInitializedError, EventHandlerAlreadyRegisteredError, GrpcCallError, GrpcConnectionError, InvalidBindingConfigError, Kv, KvInvalidKeyError, KvInvalidValueError, KvKeyNotFoundError, MissingEnvVarError, Queue, QueueOperationError, SecretNotFoundError, ServiceAccount, Storage, StorageObjectExistsError, StorageObjectNotFoundError, StoragePreconditionError, Vault, WorkerBinding, artifactRegistry, build, command, getCommands, kv, onCronEvent, onQueueMessage, onStorageEvent, queue, runCommand, serviceAccount, storage, vault, waitUntil, worker };