@zuplo/runtime 6.67.16 → 6.67.18

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.
@@ -2642,6 +2642,7 @@ declare interface DataDogMetricsOptions {
2642
2642
  tags?: string[];
2643
2643
  metrics?: MetricsType;
2644
2644
  include?: IncludeMetrics;
2645
+ metricMode?: "seriesMode" | "distributionMode";
2645
2646
  }
2646
2647
 
2647
2648
  /**
@@ -5885,7 +5886,9 @@ export declare class MonetizationInboundPolicy extends InboundPolicy<Monetizatio
5885
5886
  * The options for this policy.
5886
5887
  * @public
5887
5888
  */
5888
- export declare interface MonetizationInboundPolicyOptions {
5889
+ export declare type MonetizationInboundPolicyOptions = {
5890
+ [k: string]: unknown;
5891
+ } & {
5889
5892
  /**
5890
5893
  * The name of the header with the key.
5891
5894
  */
@@ -5901,18 +5904,31 @@ export declare interface MonetizationInboundPolicyOptions {
5901
5904
  /**
5902
5905
  * The meters to be used by the policy against the subscription quota.
5903
5906
  */
5904
- meters: {
5907
+ meters?: {
5905
5908
  /**
5906
5909
  * This interface was referenced by `undefined`'s JSON-Schema definition
5907
5910
  * via the `patternProperty` "^.*$".
5908
5911
  */
5909
5912
  [k: string]: number;
5910
5913
  };
5914
+ /**
5915
+ * The function that returns dynamic meter usage values for the request.
5916
+ */
5917
+ metersFunction?: {
5918
+ /**
5919
+ * Specifies the export to load your custom meters function, e.g. `default`, `resolveMeters`.
5920
+ */
5921
+ export: string;
5922
+ /**
5923
+ * Specifies the module to load your custom meters function, in the format `$import(./modules/my-module)`.
5924
+ */
5925
+ module: string;
5926
+ };
5911
5927
  /**
5912
5928
  * A list of successful status codes and ranges "200-299, 304" that should trigger a metering call.
5913
5929
  */
5914
5930
  meterOnStatusCodes?: string | number[];
5915
- }
5931
+ };
5916
5932
 
5917
5933
  export declare interface MonetizationSubscription {
5918
5934
  paymentStatus?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.67.16",
4
+ "version": "6.67.18",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {