apify-client 2.25.1-beta.27 → 2.25.1-beta.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -16656,6 +16656,7 @@ const RUN_CHARGE_IDEMPOTENCY_HEADER = 'idempotency-key';
16656
16656
  * @param options.eventName - **Required.** Name of the event to charge for.
16657
16657
  * @param options.count - Number of times to charge the event. Default is 1.
16658
16658
  * @param options.idempotencyKey - Optional key to ensure the charge is not duplicated. If not provided, one is auto-generated.
16659
+ * @param options.requestId - ID of the Server Actor request being charged, from the `X-Actor-Request-ID` header of the incoming request. Required for multi-tenant Server Actor runs.
16659
16660
  * @returns Empty response object.
16660
16661
  * @see https://docs.apify.com/api/v2/post-charge-run
16661
16662
  * @since Added in 2.11.0
@@ -16663,7 +16664,8 @@ const RUN_CHARGE_IDEMPOTENCY_HEADER = 'idempotency-key';
16663
16664
  ow__rspack_import_7_default()(options, ow__rspack_import_7_default().object.exactShape({
16664
16665
  eventName: (ow__rspack_import_7_default().string),
16665
16666
  count: (ow__rspack_import_7_default().optional.number),
16666
- idempotencyKey: (ow__rspack_import_7_default().optional.string)
16667
+ idempotencyKey: (ow__rspack_import_7_default().optional.string),
16668
+ requestId: (ow__rspack_import_7_default().optional.string)
16667
16669
  }));
16668
16670
  const count = options.count ?? 1;
16669
16671
  /** To avoid duplicates during the same milisecond, doesn't need to by crypto-secure. */ const randomSuffix = (Math.random() + 1).toString(36).slice(3, 8);
@@ -16673,7 +16675,8 @@ const RUN_CHARGE_IDEMPOTENCY_HEADER = 'idempotency-key';
16673
16675
  method: 'POST',
16674
16676
  data: {
16675
16677
  eventName: options.eventName,
16676
- count
16678
+ count,
16679
+ requestId: options.requestId
16677
16680
  },
16678
16681
  headers: {
16679
16682
  [RUN_CHARGE_IDEMPOTENCY_HEADER]: idempotencyKey
@@ -18195,7 +18198,7 @@ function isStream(value) {
18195
18198
  function getVersionData() {
18196
18199
  if (true) {
18197
18200
  return {
18198
- version: "2.25.1-beta.27"
18201
+ version: "2.25.1-beta.29"
18199
18202
  };
18200
18203
  }
18201
18204
  // eslint-disable-next-line