Load an embedded policy decision point bundle from a given URL.
URL from which to stream bundles.
Additional settings.
Bundle download URLs are available in the "Embedded" section of the "Decision points" page of your Cerbos Hub workspace.
The bundle will be loaded in the background when the loader is created. If initial loading fails, then the first request from the client using the loader will throw an error. To detect failure to load the bundle before making any requests, provide an Options.onError callback or await the Loader.active method.
Failure to load updates after the initial load will not cause requests from the client to throw errors, but errors will be passed to the Options.onError callback.
The metadata of a new embedded policy decision point bundle that has been downloaded but is not yet being used to evaluate policy decisions.
Only set if AutoUpdateOptions.activateOnLoad is false and an update has been downloaded.
Use AutoUpdatingLoader.activate to start using the pending bundle to evaluate policy decisions.
Promote the pending embedded policy decision point bundle (if any) to active, so that it is used to evaluate policy decisions.
This method is a no-op if an update has not been downloaded, or if AutoUpdateOptions.activateOnLoad is true (the default).
Resolves to the metadata of the loaded bundle, or rejects with the error that was encountered when loading the bundle.
Stops polling for new embedded policy decision point bundles, and aborts any in-flight updates.
Loads an embedded policy decision point bundle from a given URL, and polls for updates.