testing/cross_backend/action_manifest.ts view source
(spec: { readonly method: string; readonly auth: { account: "none" | "optional" | "required"; actor: "none" | "optional" | "required"; roles?: readonly string[] | undefined; credential_types?: readonly string[] | undefined; }; readonly side_effects: boolean; }): { ...; } import {action_manifest_entry} from '@fuzdev/fuz_app/testing/cross_backend/action_manifest.js'; Normalize one spec's auth + side-effects into a manifest entry. Pulls the
four auth axes off RouteAuth (the same shape the Rust AuthSpec mirrors)
and flattens optional roles / credential_types to sorted arrays.
spec
{ readonly method: string; readonly auth: { account: "none" | "optional" | "required"; actor: "none" | "optional" | "required"; roles?: readonly string[] | undefined; credential_types?: readonly string[] | undefined; }; readonly side_effects: boolean; }returns
{ method: string; side_effects: boolean; account: "none" | "optional" | "required"; actor: "none" | "optional" | "required"; roles: string[]; credential_types: string[]; }