@scalar/api-client
Version:
the open source API testing client
52 lines • 2.37 kB
TypeScript
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
import type { OAuthFlowsObjectSecret, SecuritySchemeObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
type __VLS_Props = {
/** Current environment configuration */
environment: XScalarEnvironment;
/** OAuth flows */
flows: OAuthFlowsObjectSecret;
/** Type of the OAuth flow */
type: keyof OAuthFlowsObjectSecret;
/** Selected scopes */
selectedScopes: string[];
/** Security scheme */
scheme: SecuritySchemeObjectSecret;
/** Current server configuration */
server: ServerObject | null;
/** Proxy URL */
proxyUrl: string;
/** Name of the security scheme */
name: string;
/** Event bus for authentication updates */
eventBus: WorkspaceEventBus;
};
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
"update:selectedScopes": (payload: Pick<{
id: string[];
name: string;
scopes: string[];
newScopePayload?: {
name: string;
description: string;
flowType: keyof import("@scalar/workspace-store/schemas/v3.1/strict/oauthflows").OAuthFlowsObject;
};
meta: import("@scalar/workspace-store/events").AuthMeta;
}, "scopes" | "newScopePayload">) => any;
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
"onUpdate:selectedScopes"?: ((payload: Pick<{
id: string[];
name: string;
scopes: string[];
newScopePayload?: {
name: string;
description: string;
flowType: keyof import("@scalar/workspace-store/schemas/v3.1/strict/oauthflows").OAuthFlowsObject;
};
meta: import("@scalar/workspace-store/events").AuthMeta;
}, "scopes" | "newScopePayload">) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
declare const _default: typeof __VLS_export;
export default _default;
//# sourceMappingURL=OAuth2.vue.d.ts.map