UNPKG

@scalar/api-client

Version:

the open source API testing client

8 lines 662 B
import type { SelectedSecurity } from '@scalar/workspace-store/entities/auth'; import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'; /** * Get the selected security for an operation or document, * Defaults to the first requirement if no selection is made and you pass in requirements */ export declare const getSelectedSecurity: (documentSelectedSecurity: SelectedSecurity | undefined, operationSelectedSecurity: SelectedSecurity | undefined, securityRequirements?: NonNullable<OpenApiDocument["security"]>, setOperationSecurity?: boolean) => SelectedSecurity; //# sourceMappingURL=get-selected-security.d.ts.map