@zuplo/runtime 5.2454.0 → 5.2456.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.
@@ -22,5 +22,5 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{b as e,c as t,e as a,f as o,g as r,h as i,i as n}from"../chunk-BGTPRWGR.js";import"../chunk-NZXOB6F5.js";import"../chunk-OQPRFCK5.js";export{o as getIdForParameterSchema,i as getIdForRefSchema,r as getIdForRequestBodySchema,a as getRawOperationDataIdentifierName,e as isRestrictedEnvVariableName,t as isZuploReadableEnvVariableName,n as sanitizedIdentifierName};
25
+ import{b as e,c as t,e as a,f as o,g as r,h as i,i as n}from"../chunk-OZDH5CEO.js";import"../chunk-JWGMLMWV.js";import"../chunk-OQPRFCK5.js";export{o as getIdForParameterSchema,i as getIdForRefSchema,r as getIdForRequestBodySchema,a as getRawOperationDataIdentifierName,e as isRestrictedEnvVariableName,t as isZuploReadableEnvVariableName,n as sanitizedIdentifierName};
26
26
  /*! For license information please see index.js.LEGAL.txt */
@@ -22,5 +22,5 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{g as o}from"../../chunk-HQYDEVIA.js";import"../../chunk-NZXOB6F5.js";import"../../chunk-OQPRFCK5.js";export{o as PdpService};
25
+ import{g as o}from"../../chunk-C655W6MN.js";import"../../chunk-JWGMLMWV.js";import"../../chunk-OQPRFCK5.js";export{o as PdpService};
26
26
  /*! For license information please see exports.js.LEGAL.txt */
@@ -1047,7 +1047,7 @@ export declare interface CompositeInboundPolicyOptions {
1047
1047
  /**
1048
1048
  * Creates a composite, or group policy - composed of other policies. For reuse across routes.
1049
1049
  *
1050
- * @title Composite Inbound (Group Policies)
1050
+ * @title Composite Outbound (Group Policies)
1051
1051
  * @public
1052
1052
  * @param request - The ZuploRequest
1053
1053
  * @param context - The ZuploContext
@@ -1468,6 +1468,12 @@ export declare type GetQuotaAnchorDateFunction = (request: ZuploRequest, context
1468
1468
  */
1469
1469
  export declare type GetQuotaDetailFunction = (request: ZuploRequest, context: ZuploContext, policyName: string) => Promise<QuotaDetail>;
1470
1470
 
1471
+ declare interface GetQuotaResult {
1472
+ anchorDate: string;
1473
+ nextResetDate: string;
1474
+ meters: Record<string, number>;
1475
+ }
1476
+
1471
1477
  export declare function getRawOperationDataIdentifierName(oasFileName: string, path: string, operation: string): string;
1472
1478
 
1473
1479
  declare interface GoogleCloudLoggingOptions {
@@ -4023,9 +4029,11 @@ export declare interface QuotaDetail {
4023
4029
  * @returns A Request or a Response
4024
4030
  */
4025
4031
  export declare class QuotaInboundPolicy extends InboundPolicy<QuotaInboundPolicyOptions> {
4032
+ #private;
4026
4033
  constructor(options: QuotaInboundPolicyOptions, policyName: string);
4027
4034
  handler(request: ZuploRequest<RequestGeneric>, context: ZuploContext): Promise<ZuploRequest<RequestGeneric> | Response>;
4028
4035
  static setMeters(context: ZuploContext, meters: Record<string, number>): void;
4036
+ static getUsage(context: ZuploContext, policyName: string): GetQuotaResult;
4029
4037
  }
4030
4038
 
4031
4039
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "5.2454.0",
4
+ "version": "5.2456.0",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
@@ -36,7 +36,7 @@
36
36
  "typescript": "^5.5.4"
37
37
  },
38
38
  "dependencies": {
39
- "ajv": "^8.12.0",
39
+ "ajv": "^8.17.1",
40
40
  "bs58": "^6.0.0",
41
41
  "jose": "^5.6.3",
42
42
  "path-to-regexp": "^6.2.1"