@zuplo/runtime 6.51.60 → 6.51.61

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.
@@ -15,4 +15,3 @@
15
15
  * Copyright (c) 2016 Lerus Ludovic
16
16
  *
17
17
  */
18
- /*! For license information please see index.js.LEGAL.txt */
@@ -6003,6 +6003,41 @@ declare interface WaitUntilFunc {
6003
6003
  (promise: Promise<any>): void;
6004
6004
  }
6005
6005
 
6006
+ /**
6007
+ * Authenticate bots using web-bot-auth HTTP Message Signatures.
6008
+ *
6009
+ * @title Web Bot Auth
6010
+ * @public
6011
+ * @param request - The ZuploRequest
6012
+ * @param context - The ZuploContext
6013
+ * @param options - The policy options set in policies.json
6014
+ * @param policyName - The name of the policy as set in policies.json
6015
+ * @returns A Request or a Response
6016
+ */
6017
+ export declare const WebBotAuthInboundPolicy: InboundPolicyHandler<WebBotAuthInboundPolicyOptions>;
6018
+
6019
+ /**
6020
+ * Options for the Web Bot Auth Inbound Policy.
6021
+ */
6022
+ export declare interface WebBotAuthInboundPolicyOptions {
6023
+ /**
6024
+ * List of bot identifiers that are allowed to access the API.
6025
+ */
6026
+ allowedBots: string[];
6027
+ /**
6028
+ * Whether to block bots that aren't in the allowed list.
6029
+ */
6030
+ blockUnknownBots: boolean;
6031
+ /**
6032
+ * Allow requests without bot signatures to proceed. This is useful if you want to use multiple authentication policies or if you want to allow both authenticated and non-authenticated traffic.
6033
+ */
6034
+ allowUnauthenticatedRequests?: boolean;
6035
+ /**
6036
+ * Optional URL to a directory of known bots (for verification).
6037
+ */
6038
+ directoryUrl?: string;
6039
+ }
6040
+
6006
6041
  /**
6007
6042
  * Handle websocket requests to a different url
6008
6043
  * @param request - The ZuploRequest
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.51.60",
4
+ "version": "6.51.61",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {