@zuplo/runtime 5.1825.0 → 5.1826.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +20 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2551,7 +2551,26 @@ export declare interface MoesifInboundPolicyOptions {
|
|
|
2551
2551
|
logResponseBody?: boolean;
|
|
2552
2552
|
}
|
|
2553
2553
|
|
|
2554
|
-
|
|
2554
|
+
/**
|
|
2555
|
+
* The Monetization policy enables you to track & monetize by your API's usage
|
|
2556
|
+
*
|
|
2557
|
+
* @remarks
|
|
2558
|
+
* The Monetization policy allows you to track and monetize the usage of our API resources,
|
|
2559
|
+
* declaratively and programatically.
|
|
2560
|
+
*
|
|
2561
|
+
* @title Monetization
|
|
2562
|
+
* @beta
|
|
2563
|
+
* @param request - The ZuploRequest
|
|
2564
|
+
* @param context - The ZuploContext
|
|
2565
|
+
* @param options - The policy options set in policies.json
|
|
2566
|
+
* @param policyName - The name of the policy as set in policies.json
|
|
2567
|
+
* @returns A Request or a Response
|
|
2568
|
+
*/
|
|
2569
|
+
export declare class MonetizationInboundPolicy extends InboundPolicy<MonetizationInboundPolicyOptions> {
|
|
2570
|
+
static getSubscription(context: ZuploContext): MonetizationSubscription | undefined;
|
|
2571
|
+
static setMeters(context: ZuploContext, meters: MonetizationPolicyMeters): void;
|
|
2572
|
+
handler(request: ZuploRequest<RequestGeneric>, context: ZuploContext): Promise<ZuploRequest<RequestGeneric> | Response>;
|
|
2573
|
+
}
|
|
2555
2574
|
|
|
2556
2575
|
/**
|
|
2557
2576
|
* The options for this policy.
|