@scalar/api-client
Version:
the open source API testing client
12 lines • 601 B
TypeScript
import type { AuthStore } from '@scalar/workspace-store/entities/auth';
import type { AuthMeta } from '@scalar/workspace-store/events';
/**
* Determines the default toggle state for operation security.
* Returns false for 'document' type, undefined if path/method is missing,
* otherwise checks if there are selected auth schemas for the operation.
*/
export declare const getDefaultOperationSecurityToggle: ({ authStore, documentName, ...payload }: {
authStore: AuthStore;
documentName: string;
} & AuthMeta) => boolean;
//# sourceMappingURL=get-default-operation-security-toggle.d.ts.map