@zuplo/runtime 6.52.0 → 6.52.2

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.
@@ -4451,6 +4451,41 @@ export declare interface PropelAuthJwtInboundPolicyOptions {
4451
4451
  verifierKey: string;
4452
4452
  }
4453
4453
 
4454
+ /**
4455
+ * Extracts a query parameter and sets it as a header in the request.
4456
+ *
4457
+ * @title Convert Query Parameter to Header
4458
+ * @public
4459
+ * @param request - The ZuploRequest
4460
+ * @param context - The ZuploContext
4461
+ * @param options - The policy options set in policies.json
4462
+ * @param policyName - The name of the policy as set in policies.json
4463
+ * @returns A Request or a Response
4464
+ */
4465
+ export declare const QueryParamToHeaderInboundPolicy: InboundPolicyHandler<QueryParamToHeaderInboundPolicyOptions>;
4466
+
4467
+ /**
4468
+ * The options for the query parameter to header inbound policy.
4469
+ */
4470
+ export declare interface QueryParamToHeaderInboundPolicyOptions {
4471
+ /**
4472
+ * The name of the query parameter to extract.
4473
+ */
4474
+ queryParam: string;
4475
+ /**
4476
+ * The name of the header to set.
4477
+ */
4478
+ headerName: string;
4479
+ /**
4480
+ * The value template for the header. Use {value} to substitute the query parameter value.
4481
+ */
4482
+ headerValue: string;
4483
+ /**
4484
+ * Whether to remove the query parameter from the URL after extracting it.
4485
+ */
4486
+ removeFromUrl?: boolean;
4487
+ }
4488
+
4454
4489
  export declare interface QuotaDetail {
4455
4490
  key: string;
4456
4491
  allowances: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.52.0",
4
+ "version": "6.52.2",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {