@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.
- package/out/esm/index.js +49 -48
- package/out/esm/index.js.LEGAL.txt +0 -1
- package/out/types/index.d.ts +35 -0
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -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
|