@zuplo/runtime 6.67.18 → 6.67.20

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.
@@ -5924,12 +5924,29 @@ export declare type MonetizationInboundPolicyOptions = {
5924
5924
  */
5925
5925
  module: string;
5926
5926
  };
5927
+ /**
5928
+ * The function that runs after a backend response is available and returns meter usage values for final metering.
5929
+ */
5930
+ finalFunction?: {
5931
+ /**
5932
+ * Specifies the export to load your custom final function, e.g. `default`, `resolveFinalMeters`.
5933
+ */
5934
+ export: string;
5935
+ /**
5936
+ * Specifies the module to load your custom final function, in the format `$import(./modules/my-module)`.
5937
+ */
5938
+ module: string;
5939
+ };
5927
5940
  /**
5928
5941
  * A list of successful status codes and ranges "200-299, 304" that should trigger a metering call.
5929
5942
  */
5930
5943
  meterOnStatusCodes?: string | number[];
5931
5944
  };
5932
5945
 
5946
+ /**
5947
+ * Subscription details returned by Zuplo monetization services.
5948
+ * @public
5949
+ */
5933
5950
  export declare interface MonetizationSubscription {
5934
5951
  paymentStatus?: {
5935
5952
  isFirstPayment: boolean;
@@ -5948,6 +5965,8 @@ export declare interface MonetizationSubscription {
5948
5965
  plan: {
5949
5966
  id: string;
5950
5967
  name: string;
5968
+ key: string;
5969
+ version: number;
5951
5970
  description?: string;
5952
5971
  };
5953
5972
  entitlements: Record<
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.67.18",
4
+ "version": "6.67.20",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {