Sporades SDK API
    Preparing search index...

    Type Alias PrivilegedApi<Schema>

    Explicit server-only ctx.privileged.run(...) Privileged server role API.

    The runtime emits started, then completed or errored, then finished Privileged audit events around each callback. Privilege is scoped to the callback and becomes ineffective after the run finishes.

    type PrivilegedApi<Schema extends SchemaDefinition = SchemaDefinition> = {
        run<Result>(
            options: PrivilegedRunOptions,
            callback: (ctx: PrivilegedContext<Schema>) => MaybePromise<Result>,
        ): Promise<Result>;
    }

    Type Parameters

    Index