@scalar/types
Advanced tools
| import type { PartialDeep } from 'type-fest'; | ||
| /** Some common properties used in all security schemes */ | ||
| type SecuirtySchemeCommon = { | ||
| description: string | undefined; | ||
| }; | ||
| type ExtendedSecurityScheme = { | ||
| uid: any; | ||
| /** The name key that links a security requirement to a security object */ | ||
| nameKey: string; | ||
| }; | ||
| type SecuritySchemeApiKeyIn = 'query' | 'header' | 'cookie'; | ||
| type OasSecurityApiKey = { | ||
| type: 'apiKey'; | ||
| /** REQUIRED. The name of the header, query or cookie parameter to be used. */ | ||
| name: string; | ||
| /** REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie". */ | ||
| in: SecuritySchemeApiKeyIn; | ||
| /** REQUIRED. The API key to be sent in the Authorization header or as a cookie. */ | ||
| value: string; | ||
| }; | ||
| export type SecuritySchemeApiKey = SecuirtySchemeCommon & ExtendedSecurityScheme & OasSecurityApiKey; | ||
| type OasSecurityHttp = { | ||
| type: 'http'; | ||
| /** REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in | ||
| * [RFC7235]. The values used SHOULD be registered in the IANA Authentication Scheme registry. */ | ||
| scheme: 'basic' | 'bearer'; | ||
| /** A hint to the client to identify how the bearer token is formatted. | ||
| * Bearer tokens are usually generated by an authorization server, so | ||
| * this information is primarily for documentation purposes. */ | ||
| bearerFormat: 'JWT' | string; | ||
| /** The username to be sent in the Authorization header. */ | ||
| username: string; | ||
| /** The password to be sent in the Authorization header. */ | ||
| password: string; | ||
| /** The token to be sent in the Authorization header. */ | ||
| token: string; | ||
| }; | ||
| export type SecuritySchemeHttp = SecuirtySchemeCommon & ExtendedSecurityScheme & OasSecurityHttp; | ||
| type OasSecurityOpenIdConnect = { | ||
| type: 'openIdConnect'; | ||
| /** REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the | ||
| * form of a URL. The OpenID Connect standard requires the use of TLS. */ | ||
| openIdConnectUrl: string; | ||
| }; | ||
| export type SecuritySchemeOpenIdConnect = SecuirtySchemeCommon & ExtendedSecurityScheme & OasSecurityOpenIdConnect; | ||
| type FlowsCommon = { | ||
| /** | ||
| * The URL to be used for obtaining refresh tokens. This MUST be in the form of a | ||
| * URL. The OAuth2 standard requires the use of TLS. | ||
| */ | ||
| 'refreshUrl'?: string; | ||
| /** | ||
| * REQUIRED. The available scopes for the OAuth2 security scheme. A map | ||
| * between the scope name and a short description for it. The map MAY be empty. | ||
| */ | ||
| 'scopes'?: Record<string, string>; | ||
| 'selectedScopes'?: string[]; | ||
| /** Extension to save the client Id associated with an oauth flow */ | ||
| 'x-scalar-client-id'?: string; | ||
| /** The auth token */ | ||
| 'token'?: string; | ||
| /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */ | ||
| 'x-scalar-security-query'?: Record<string, string>; | ||
| /** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */ | ||
| 'x-scalar-security-body'?: Record<string, string>; | ||
| /** Extension to specify custom token name in the response (defaults to 'access_token') */ | ||
| 'x-tokenName'?: string; | ||
| }; | ||
| type PkceOptions = 'SHA-256' | 'plain' | 'no'; | ||
| type CredentialsLocationExtension = 'header' | 'body'; | ||
| type OasSecurityOauth2FlowImplicit = { | ||
| type: 'oauth2'; | ||
| 'x-default-scopes'?: string[]; | ||
| flows: { | ||
| implicit: FlowsCommon & { | ||
| type: 'implicit'; | ||
| authorizationUrl: string; | ||
| 'x-scalar-redirect-uri'?: string; | ||
| }; | ||
| password: FlowsCommon & { | ||
| type: 'password'; | ||
| tokenUrl: string; | ||
| clientSecret: string; | ||
| username: string; | ||
| password: string; | ||
| 'x-scalar-credentials-location'?: CredentialsLocationExtension; | ||
| }; | ||
| clientCredentials: FlowsCommon & { | ||
| type: 'clientCredentials'; | ||
| tokenUrl: string; | ||
| clientSecret: string; | ||
| 'x-scalar-credentials-location'?: CredentialsLocationExtension; | ||
| }; | ||
| authorizationCode: FlowsCommon & { | ||
| type: 'authorizationCode'; | ||
| authorizationUrl: string; | ||
| tokenUrl: string; | ||
| clientSecret: string; | ||
| 'x-scalar-credentials-location'?: CredentialsLocationExtension; | ||
| 'x-usePkce'?: PkceOptions; | ||
| 'x-scalar-redirect-uri'?: string; | ||
| }; | ||
| }; | ||
| }; | ||
| export type SecuritySchemeOauth2 = SecuirtySchemeCommon & ExtendedSecurityScheme & OasSecurityOauth2FlowImplicit; | ||
| export type SecurityScheme = SecuritySchemeApiKey | SecuritySchemeHttp | SecuritySchemeOpenIdConnect | SecuritySchemeOauth2; | ||
| /** | ||
| * Authentication configuration for the API reference. | ||
| * This config is not validated so does not need a zod schema | ||
| */ | ||
| export type AuthenticationConfiguration = { | ||
| /** | ||
| * Specifies the preferred security scheme(s) to use for authentication. | ||
| * Can be one of: | ||
| * - A single security scheme name (string) | ||
| * - An array of security scheme names (OR relationship) | ||
| * - An array containing strings or arrays of strings (AND/OR relationship) | ||
| */ | ||
| preferredSecurityScheme?: string | (string | string[])[] | null; | ||
| /** | ||
| * Setting security schemes this way will allow you to override any value in your openapi document | ||
| * You will also be able to set additional values such as api tokens etc. | ||
| * | ||
| * Set them via the nameKey in your components.securitySchemes.[nameKey] | ||
| * | ||
| * @example | ||
| * ```ts | ||
| * { | ||
| * authentication: { | ||
| * preferredSecurityScheme: 'apiKeyHeader', | ||
| * securitySchemes: { | ||
| * apiKeyHeader: { | ||
| * value: 'tokenValue' | ||
| * }, | ||
| * httpBearer: { | ||
| * token: 'xyz token value' | ||
| * }, | ||
| * httpBasic: { | ||
| * username: 'username', | ||
| * password: 'password' | ||
| * }, | ||
| * oauth2: { | ||
| * flows: { | ||
| * authorizationCode: { | ||
| * token: 'auth code token' | ||
| * } | ||
| * } | ||
| * }, | ||
| * }, | ||
| * } | ||
| * } | ||
| * ``` | ||
| * | ||
| */ | ||
| securitySchemes?: Record<string, PartialDeep<SecurityScheme>>; | ||
| /** | ||
| * Allows adding authentication which is not in the document. | ||
| * When true, generic options (API Key, HTTP Basic, OAuth2, etc.) are shown in the auth dropdown. | ||
| * @default false | ||
| */ | ||
| createAnySecurityScheme?: boolean; | ||
| }; | ||
| export type SpecificationExtension = { | ||
| name: string; | ||
| component: unknown; | ||
| renderer?: unknown; | ||
| }; | ||
| export type ViewComponent = { | ||
| component: unknown; | ||
| renderer?: unknown; | ||
| props?: Record<string, any>; | ||
| }; | ||
| export type LifecycleHooks = { | ||
| onInit?: ({ config }: { | ||
| config: Partial<BaseConfiguration>; | ||
| }) => void; | ||
| onConfigChange?: ({ config }: { | ||
| config: Partial<BaseConfiguration>; | ||
| }) => void; | ||
| onDestroy?: () => void; | ||
| }; | ||
| export type ApiReferencePlugin = () => { | ||
| name: string; | ||
| extensions: SpecificationExtension[]; | ||
| views?: { | ||
| 'content.end'?: ViewComponent[]; | ||
| }; | ||
| hooks?: LifecycleHooks; | ||
| apiClientPlugins?: any[]; | ||
| }; | ||
| export type ExternalUrls = { | ||
| dashboardUrl: string; | ||
| registryUrl: string; | ||
| proxyUrl: string; | ||
| apiBaseUrl: string; | ||
| }; | ||
| export type BaseConfiguration = { | ||
| /** The title of the OpenAPI document. */ | ||
| title?: string; | ||
| /** The slug of the OpenAPI document used in the URL. If none is passed, the title will be used. If no title is used, it will just use the index. */ | ||
| slug?: string; | ||
| /** Prefill authentication */ | ||
| authentication?: any; | ||
| /** Base URL for the API server */ | ||
| baseServerURL?: string; | ||
| /** Whether to hide the client button */ | ||
| hideClientButton: boolean; | ||
| /** URL to a request proxy for the API client */ | ||
| proxyUrl?: string; | ||
| /** Default OAuth 2.0 redirect URI used to prefill auth flows in the API client. */ | ||
| oauth2RedirectUri?: string; | ||
| /** Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k) */ | ||
| searchHotKey?: 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z'; | ||
| /** List of OpenAPI server objects */ | ||
| servers?: any[]; | ||
| /** Whether to show the sidebar */ | ||
| showSidebar: boolean; | ||
| /** Whether and when to show the developer tools. */ | ||
| showDeveloperTools: 'localhost' | 'always' | 'never'; | ||
| /** @deprecated Use showDeveloperTools instead */ | ||
| showToolbar: 'localhost' | 'always' | 'never'; | ||
| /** Whether to use the operation summary or the operation path for the sidebar and search */ | ||
| operationTitleSource: 'summary' | 'path'; | ||
| /** A string to use one of the color presets */ | ||
| theme: 'default' | 'alternate' | 'moon' | 'purple' | 'solarized' | 'bluePlanet' | 'deepSpace' | 'saturn' | 'kepler' | 'elysiajs' | 'fastify' | 'mars' | 'laserwave' | 'none'; | ||
| /** Integration type identifier */ | ||
| _integration?: 'adonisjs' | 'astro' | 'docusaurus' | 'dotnet' | 'elysiajs' | 'express' | 'fastapi' | 'fastify' | 'go' | 'hono' | 'html' | 'laravel' | 'litestar' | 'nestjs' | 'nextjs' | 'nitro' | 'nuxt' | 'platformatic' | 'react' | 'rust' | 'svelte' | 'vue' | null; | ||
| /** onRequestSent is fired when a request is sent */ | ||
| onRequestSent?: (input: string) => void; | ||
| /** Whether to persist auth to local storage */ | ||
| persistAuth: boolean; | ||
| /** Enables / disables telemetry */ | ||
| telemetry: boolean; | ||
| /** External service URLs used by Scalar packages */ | ||
| externalUrls: ExternalUrls; | ||
| }; | ||
| type ExtendedConfiguration = { | ||
| /** The layout to use for the references */ | ||
| layout: 'modern' | 'classic'; | ||
| /** @deprecated Use proxyUrl instead */ | ||
| proxy?: string; | ||
| /** Custom fetch function for custom logic. Can be used to add custom headers, handle auth, etc. */ | ||
| fetch?: typeof fetch; | ||
| /** Plugins for the API reference */ | ||
| plugins?: ApiReferencePlugin[]; | ||
| /** Allows the user to inject an editor for the spec */ | ||
| isEditable: boolean; | ||
| /** Controls whether the references show a loading state in the intro */ | ||
| isLoading: boolean; | ||
| /** Whether to show models in the sidebar, search, and content. */ | ||
| hideModels: boolean; | ||
| /** Sets the file type of the document to download, set to `none` to hide the download button */ | ||
| documentDownloadType: 'both' | 'yaml' | 'json' | 'direct' | 'none'; | ||
| /** @deprecated Use `documentDownloadType: 'none'` instead */ | ||
| hideDownloadButton?: boolean; | ||
| /** Whether to show the "Test Request" button */ | ||
| hideTestRequestButton: boolean; | ||
| /** Whether to show the sidebar search bar */ | ||
| hideSearch: boolean; | ||
| /** Whether to show the operationId */ | ||
| showOperationId: boolean; | ||
| /** Whether dark mode is on or off initially (light mode) */ | ||
| darkMode?: boolean; | ||
| /** forceDarkModeState makes it always this state no matter what */ | ||
| forceDarkModeState?: 'dark' | 'light'; | ||
| /** Whether to show the dark mode toggle */ | ||
| hideDarkModeToggle: boolean; | ||
| /** If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta */ | ||
| metaData?: any; | ||
| /** Path to a favicon image */ | ||
| favicon?: string; | ||
| /** List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients */ | ||
| hiddenClients?: Record<string, boolean | string[]> | string[] | true; | ||
| /** Determine the HTTP client that is selected by default */ | ||
| defaultHttpClient?: { | ||
| targetKey: string; | ||
| clientKey: string; | ||
| }; | ||
| /** Custom CSS to be added to the page */ | ||
| customCss?: string; | ||
| /** onSpecUpdate is fired on spec/swagger content change */ | ||
| onSpecUpdate?: (input: string) => void; | ||
| /** onServerChange is fired on selected server change */ | ||
| onServerChange?: (input: string) => void; | ||
| /** onDocumentSelect is fired when the config is selected */ | ||
| onDocumentSelect?: () => void | Promise<void>; | ||
| /** Callback fired when the reference is fully loaded */ | ||
| onLoaded?: (slug: string) => void | Promise<void>; | ||
| /** Fired before the outbound request is built; callback receives a mutable request builder. Experimental API. */ | ||
| onBeforeRequest?: ((input: { | ||
| request: Request; | ||
| requestBuilder: any; | ||
| envVariables: Record<string, string>; | ||
| }) => void | Promise<void>) | undefined; | ||
| /** onShowMore is fired when the user clicks the "Show more" button on the references */ | ||
| onShowMore?: (tagId: string) => void | Promise<void>; | ||
| /** onSidebarClick is fired when the user clicks on a sidebar item */ | ||
| onSidebarClick?: (href: string) => void | Promise<void>; | ||
| /** Route using paths instead of hashes, your server MUST support this. @experimental */ | ||
| pathRouting?: { | ||
| basePath: string; | ||
| }; | ||
| /** MCP (Model Context Protocol) configuration. When provided, enables MCP integration with the given name and url. */ | ||
| mcp?: { | ||
| /** Display name for the MCP server */ | ||
| name?: string; | ||
| /** URL of the MCP server */ | ||
| url?: string; | ||
| /** When true, disables the MCP integration */ | ||
| disabled?: boolean; | ||
| }; | ||
| /** Customize the heading portion of the hash */ | ||
| generateHeadingSlug?: (input: { | ||
| slug?: string; | ||
| }) => string; | ||
| /** Customize the model portion of the hash */ | ||
| generateModelSlug?: (input: { | ||
| name?: string; | ||
| }) => string; | ||
| /** Customize the tag portion of the hash */ | ||
| generateTagSlug?: (input: { | ||
| name?: string; | ||
| }) => string; | ||
| /** Customize the operation portion of the hash */ | ||
| generateOperationSlug?: (input: { | ||
| path: string; | ||
| operationId?: string; | ||
| method: string; | ||
| summary?: string; | ||
| }) => string; | ||
| /** Customize the webhook portion of the hash */ | ||
| generateWebhookSlug?: (input: { | ||
| name: string; | ||
| method?: string; | ||
| }) => string; | ||
| /** To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState */ | ||
| redirect?: (input: string) => string | null | undefined; | ||
| /** Whether to include default fonts */ | ||
| withDefaultFonts: boolean; | ||
| /** Whether to expand the first tag in the sidebar when no specific URL target is present */ | ||
| defaultOpenFirstTag: boolean; | ||
| /** Whether to expand all tags by default. Warning: this can cause performance issues on big documents */ | ||
| defaultOpenAllTags: boolean; | ||
| /** Whether to expand all models by default. Warning: this can cause performance issues on big documents */ | ||
| expandAllModelSections: boolean; | ||
| /** Whether to expand all responses by default. Warning: this can cause performance issues on big documents */ | ||
| expandAllResponses: boolean; | ||
| /** Function to sort tags */ | ||
| tagsSorter?: 'alpha' | ((a: any, b: any) => number); | ||
| /** Function to sort operations */ | ||
| operationsSorter?: 'alpha' | 'method' | ((a: any, b: any) => number); | ||
| /** Order the schema properties by */ | ||
| orderSchemaPropertiesBy: 'alpha' | 'preserve'; | ||
| /** Sort the schema properties by required ones first */ | ||
| orderRequiredPropertiesFirst: boolean; | ||
| }; | ||
| export type SourceConfiguration = { | ||
| default?: boolean; | ||
| /** URL to an OpenAPI/Swagger document */ | ||
| url?: string; | ||
| /** Directly embed the OpenAPI document. Can be a string, object, function returning an object, or null. It is recommended to pass a URL instead of content. */ | ||
| content?: string | null | Record<string, any> | (() => string | any); | ||
| /** The title of the OpenAPI document. @deprecated Please move `title` to the top level and remove the `spec` prefix. */ | ||
| title?: string; | ||
| /** The slug of the OpenAPI document used in the URL. @deprecated Please move `slug` to the top level and remove the `spec` prefix. */ | ||
| slug?: string; | ||
| /** @deprecated Use `url` and `content` on the top level instead. */ | ||
| spec?: { | ||
| url?: string; | ||
| content?: string | null | Record<string, any> | (() => string | any); | ||
| }; | ||
| /** Agent Scalar configuration */ | ||
| agent?: { | ||
| key?: string; | ||
| disabled?: boolean; | ||
| /** When true, hide the control to add more APIs in the agent chat. Only preloaded/registry documents are shown; the public API list is not offered. */ | ||
| hideAddApi?: boolean; | ||
| }; | ||
| }; | ||
| export type ApiReferenceConfigurationRaw = Omit<BaseConfiguration & ExtendedConfiguration, 'proxy' | 'spec' | 'authentication' | 'showToolbar'> & { | ||
| authentication?: AuthenticationConfiguration; | ||
| }; | ||
| export type ApiReferenceConfiguration = ApiReferenceConfigurationRaw & { | ||
| /** @deprecated | ||
| * This type now refers to the base configuration that does not include the sources. | ||
| * Use the type `ApiReferenceConfigurationWithSource` instead. | ||
| */ | ||
| url?: SourceConfiguration['url']; | ||
| /** @deprecated | ||
| * This type now refers to the base configuration that does not include the sources. | ||
| * Use the type `ApiReferenceConfigurationWithSource` instead. | ||
| */ | ||
| content?: SourceConfiguration['content']; | ||
| /** | ||
| * Fired before the outbound request is built and sent. Mutate the **request builder** so the eventual fetch call | ||
| * reflects your changes (method, path, headers, body, and related fields). | ||
| * | ||
| * **Experimental:** The builder matches {@link https://github.com/scalar/scalar/blob/main/packages/workspace-store/src/request-example/builder/request-factory.ts RequestFactory} | ||
| * (`import type { RequestFactory } from '@scalar/workspace-store/request-example'`). That shape is still experimental and may change in minor releases. | ||
| * | ||
| * @param input - Hook argument from the integration layer. | ||
| * @param input.request - **Deprecated** when treated as a fetch API `Request`. Prefer thinking of this value as the | ||
| * mutable builder ({@link https://github.com/scalar/scalar/blob/main/packages/workspace-store/src/request-example/builder/request-factory.ts RequestFactory}). | ||
| * Some call sites only pass this property. | ||
| * @param input.requestBuilder - The same builder when exposed under this name; **prefer** mutating this when your integration provides it. | ||
| * @returns void or a promise that resolves when the hook finishes | ||
| * @example | ||
| * ```ts | ||
| * onBeforeRequest: ({ request: builder }) => { | ||
| * builder.headers.set('Authorization', 'Bearer <token>') | ||
| * } | ||
| * ``` | ||
| */ | ||
| onBeforeRequest?: (input: { | ||
| request: Request; | ||
| requestBuilder: any; | ||
| envVariables: Record<string, string>; | ||
| }) => void | Promise<void> | undefined; | ||
| }; | ||
| export type ApiReferenceConfigurationWithSource = Omit<ApiReferenceConfiguration, 'url' | 'content'> & SourceConfiguration; | ||
| /** | ||
| * Configuration for a single config with multiple sources | ||
| * The configuration will be shared between the documents | ||
| */ | ||
| export type ApiReferenceConfigurationWithMultipleSources = ApiReferenceConfigurationWithSource & { | ||
| sources: SourceConfiguration[]; | ||
| }; | ||
| /** Configuration for multiple Api References */ | ||
| export type AnyApiReferenceConfiguration = Partial<ApiReferenceConfigurationWithSource> | Partial<ApiReferenceConfigurationWithMultipleSources> | Partial<ApiReferenceConfigurationWithSource>[] | Partial<ApiReferenceConfigurationWithMultipleSources>[]; | ||
| /** Typeguard to check to narrow the configs to the one with sources */ | ||
| export declare const isConfigurationWithSources: (config: AnyApiReferenceConfiguration) => config is Partial<ApiReferenceConfigurationWithMultipleSources>; | ||
| export type ApiClientConfiguration = BaseConfiguration & SourceConfiguration; | ||
| export {}; | ||
| //# sourceMappingURL=types.d.ts.map |
| {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api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,KAAK,CAAC,CAAA;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAA;IACxC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QACxB,OAAO,EAAE,OAAO,CAAA;QAChB,cAAc,EAAE,GAAG,CAAA;QACnB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACrC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,mCAAmC,GAAG,IAAI,CAAC,yBAAyB,EAAE,KAAK,GAAG,SAAS,CAAC,GAClG,mBAAmB,CAAA;AAErB;;;GAGG;AACH,MAAM,MAAM,4CAA4C,GAAG,mCAAmC,GAAG;IAC/F,OAAO,EAAE,mBAAmB,EAAE,CAAA;CAC/B,CAAA;AAED,gDAAgD;AAChD,MAAM,MAAM,4BAA4B,GACpC,OAAO,CAAC,mCAAmC,CAAC,GAC5C,OAAO,CAAC,4CAA4C,CAAC,GACrD,OAAO,CAAC,mCAAmC,CAAC,EAAE,GAC9C,OAAO,CAAC,4CAA4C,CAAC,EAAE,CAAA;AAE3D,uEAAuE;AACvE,eAAO,MAAM,0BAA0B,GACrC,QAAQ,4BAA4B,KACnC,MAAM,IAAI,OAAO,CAAC,4CAA4C,CACkC,CAAA;AAEnG,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG,mBAAmB,CAAA"} |
| /** Typeguard to check to narrow the configs to the one with sources */ | ||
| export const isConfigurationWithSources = (config) => Boolean(!Array.isArray(config) && config && 'sources' in config && Array.isArray(config.sources)); |
+12
-0
| # @scalar/types | ||
| ## 0.11.0 | ||
| ### Minor Changes | ||
| - [#9211](https://github.com/scalar/scalar/pull/9211): feat: write pure types without using the zod schemas | ||
| ## 0.10.0 | ||
| ### Minor Changes | ||
| - [#8844](https://github.com/scalar/scalar/pull/8844): feat: write pure types without using the zod schemas | ||
| ## 0.9.6 | ||
@@ -4,0 +16,0 @@ |
@@ -53,10 +53,10 @@ import { type ZodType, z } from 'zod'; | ||
| showDeveloperTools: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>; | ||
| showToolbar: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>; | ||
@@ -177,10 +177,10 @@ operationTitleSource: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| showDeveloperTools: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
| showToolbar: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
@@ -306,10 +306,10 @@ operationTitleSource: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| showDeveloperTools: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
| showToolbar: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
@@ -404,5 +404,5 @@ operationTitleSource: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| none: "none"; | ||
| both: "both"; | ||
| yaml: "yaml"; | ||
| json: "json"; | ||
| both: "both"; | ||
| direct: "direct"; | ||
@@ -424,3 +424,3 @@ }>>>>; | ||
| defaultHttpClient: z.ZodOptional<z.ZodObject<{ | ||
| targetKey: z.ZodCustom<"c" | "r" | "go" | "rust" | "http" | "clojure" | "csharp" | "dart" | "fsharp" | "java" | "js" | "kotlin" | "node" | "objc" | "ocaml" | "php" | "powershell" | "python" | "ruby" | "shell" | "swift", "c" | "r" | "go" | "rust" | "http" | "clojure" | "csharp" | "dart" | "fsharp" | "java" | "js" | "kotlin" | "node" | "objc" | "ocaml" | "php" | "powershell" | "python" | "ruby" | "shell" | "swift">; | ||
| targetKey: z.ZodCustom<"http" | "c" | "r" | "go" | "rust" | "clojure" | "csharp" | "dart" | "fsharp" | "java" | "js" | "kotlin" | "node" | "objc" | "ocaml" | "php" | "powershell" | "python" | "ruby" | "shell" | "swift", "http" | "c" | "r" | "go" | "rust" | "clojure" | "csharp" | "dart" | "fsharp" | "java" | "js" | "kotlin" | "node" | "objc" | "ocaml" | "php" | "powershell" | "python" | "ruby" | "shell" | "swift">; | ||
| clientKey: z.ZodString; | ||
@@ -549,4 +549,2 @@ }, z.core.$strip>>; | ||
| export type AnyApiReferenceConfiguration = Partial<ApiReferenceConfigurationWithSource> | Partial<ApiReferenceConfigurationWithMultipleSources> | Partial<ApiReferenceConfigurationWithSource>[] | Partial<ApiReferenceConfigurationWithMultipleSources>[]; | ||
| /** Typeguard to check to narrow the configs to the one with sources */ | ||
| export declare const isConfigurationWithSources: (config: AnyApiReferenceConfiguration) => config is Partial<ApiReferenceConfigurationWithMultipleSources>; | ||
| //# sourceMappingURL=api-reference-configuration.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"api-reference-configuration.d.ts","sourceRoot":"","sources":["../../src/api-reference/api-reference-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A0C;AAC1C,eAAO,MAAM,yCAAyC,EAAE,OAAO,CAC7D,IAAI,CAAC,yBAAyB,EAAE,KAAK,GAAG,SAAS,CAAC,GAAG,mBAAmB,CAgExE,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,IAAI,CACpD,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,EAEzD,OAAO,GAAG,MAAM,GAAG,gBAAgB,GAAG,aAAa,CACpD,GAAG;IACF,cAAc,CAAC,EAAE,2BAA2B,CAAA;CAC7C,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,4CAA4C,GAAG,mCAAmC,GAAG;IAC/F,OAAO,EAAE,mBAAmB,EAAE,CAAA;CAC/B,CAAA;AAED,gDAAgD;AAChD,MAAM,MAAM,4BAA4B,GACpC,OAAO,CAAC,mCAAmC,CAAC,GAC5C,OAAO,CAAC,4CAA4C,CAAC,GACrD,OAAO,CAAC,mCAAmC,CAAC,EAAE,GAC9C,OAAO,CAAC,4CAA4C,CAAC,EAAE,CAAA;AAE3D,uEAAuE;AACvE,eAAO,MAAM,0BAA0B,GACrC,QAAQ,4BAA4B,KACnC,MAAM,IAAI,OAAO,CAAC,4CAA4C,CACkC,CAAA"} | ||
| {"version":3,"file":"api-reference-configuration.d.ts","sourceRoot":"","sources":["../../src/api-reference/api-reference-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIrC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAA;AAEjF,OAAO,EAAE,KAAK,mBAAmB,EAA6B,MAAM,wBAAwB,CAAA;AAK5F;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAZH,MAAM,GAAG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G;IAC/F,OAAO,EAAE,mBAAmB,EAAE,CAAA;CAC/B,CAAA;AAED,gDAAgD;AAChD,MAAM,MAAM,4BAA4B,GACpC,OAAO,CAAC,mCAAmC,CAAC,GAC5C,OAAO,CAAC,4CAA4C,CAAC,GACrD,OAAO,CAAC,mCAAmC,CAAC,EAAE,GAC9C,OAAO,CAAC,4CAA4C,CAAC,EAAE,CAAA"} |
@@ -415,3 +415,1 @@ import { z } from 'zod'; | ||
| }); | ||
| /** Typeguard to check to narrow the configs to the one with sources */ | ||
| export const isConfigurationWithSources = (config) => Boolean(!Array.isArray(config) && config && 'sources' in config && Array.isArray(config.sources)); |
@@ -53,10 +53,10 @@ import { z } from 'zod'; | ||
| showDeveloperTools: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
| showToolbar: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
@@ -182,10 +182,10 @@ operationTitleSource: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| showDeveloperTools: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
| showToolbar: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
@@ -328,10 +328,10 @@ operationTitleSource: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| showDeveloperTools: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
| showToolbar: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
@@ -457,10 +457,10 @@ operationTitleSource: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| showDeveloperTools: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
| showToolbar: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>>; | ||
@@ -467,0 +467,0 @@ operationTitleSource: z.ZodOptional<z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ |
@@ -52,10 +52,10 @@ import z from 'zod'; | ||
| showDeveloperTools: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>; | ||
| showToolbar: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| localhost: "localhost"; | ||
| always: "always"; | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>; | ||
@@ -62,0 +62,0 @@ operationTitleSource: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ |
@@ -1,2 +0,2 @@ | ||
| import type { AnyApiReferenceConfiguration } from './api-reference-configuration.js'; | ||
| import type { AnyApiReferenceConfiguration } from './types.js'; | ||
| /** | ||
@@ -3,0 +3,0 @@ * This is a subset of the vue app type |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"html-api.d.ts","sourceRoot":"","sources":["../../src/api-reference/html-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAA;AAEjF;;;GAGG;AACH,KAAK,GAAG,CAAC,WAAW,GAAG,GAAG,IAAI;IAC5B,KAAK,CAAC,aAAa,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,CAAA;IACnD,OAAO,IAAI,IAAI,CAAA;IACf,SAAS,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;CAChC,CAAA;AAED,wDAAwD;AACxD,MAAM,MAAM,oBAAoB,GAAG;IACjC,2BAA2B;IAC3B,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACjB,iDAAiD;IACjD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,uCAAuC;IACvC,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;IACpD,kCAAkC;IAClC,mBAAmB,EAAE,CAAC,SAAS,EAAE,4BAA4B,KAAK,IAAI,CAAA;CACvE,CAAA;AAED,sFAAsF;AACtF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,qCAAqC;IACrC,CAAC,aAAa,EAAE,4BAA4B,GAAG,oBAAoB,CAAA;IACnE,wDAAwD;IACxD,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,EAAE,aAAa,EAAE,4BAA4B,GAAG,oBAAoB,CAAA;CACzG,CAAA"} | ||
| {"version":3,"file":"html-api.d.ts","sourceRoot":"","sources":["../../src/api-reference/html-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAE3D;;;GAGG;AACH,KAAK,GAAG,CAAC,WAAW,GAAG,GAAG,IAAI;IAC5B,KAAK,CAAC,aAAa,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,CAAA;IACnD,OAAO,IAAI,IAAI,CAAA;IACf,SAAS,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;CAChC,CAAA;AAED,wDAAwD;AACxD,MAAM,MAAM,oBAAoB,GAAG;IACjC,2BAA2B;IAC3B,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACjB,iDAAiD;IACjD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,uCAAuC;IACvC,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;IACpD,kCAAkC;IAClC,mBAAmB,EAAE,CAAC,SAAS,EAAE,4BAA4B,KAAK,IAAI,CAAA;CACvE,CAAA;AAED,sFAAsF;AACtF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,qCAAqC;IACrC,CAAC,aAAa,EAAE,4BAA4B,GAAG,oBAAoB,CAAA;IACnE,wDAAwD;IACxD,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,EAAE,aAAa,EAAE,4BAA4B,GAAG,oBAAoB,CAAA;CACzG,CAAA"} |
@@ -1,11 +0,3 @@ | ||
| import { z } from 'zod'; | ||
| import type { ApiReferenceConfigurationWithMultipleSources } from './api-reference-configuration.js'; | ||
| import type { ApiReferenceConfigurationWithMultipleSources } from './types.js'; | ||
| /** | ||
| * Zod schema for HTML rendering configuration | ||
| */ | ||
| export declare const htmlRenderingConfigurationSchema: z.ZodObject<{ | ||
| cdn: z.ZodDefault<z.ZodOptional<z.ZodString>>; | ||
| pageTitle: z.ZodDefault<z.ZodOptional<z.ZodString>>; | ||
| }, z.core.$strip>; | ||
| /** | ||
| * The configuration for the static HTML rendering using the CDN. | ||
@@ -15,3 +7,6 @@ * | ||
| */ | ||
| export type HtmlRenderingConfiguration = Partial<ApiReferenceConfigurationWithMultipleSources> & z.infer<typeof htmlRenderingConfigurationSchema>; | ||
| export type HtmlRenderingConfiguration = Partial<ApiReferenceConfigurationWithMultipleSources> & { | ||
| pageTitle: string; | ||
| cdn: string; | ||
| }; | ||
| //# sourceMappingURL=html-rendering-configuration.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"html-rendering-configuration.d.ts","sourceRoot":"","sources":["../../src/api-reference/html-rendering-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,+BAA+B,CAAA;AAEjG;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;iBAe3C,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,4CAA4C,CAAC,GAC5F,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA"} | ||
| {"version":3,"file":"html-rendering-configuration.d.ts","sourceRoot":"","sources":["../../src/api-reference/html-rendering-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,SAAS,CAAA;AAE3E;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,4CAA4C,CAAC,GAAG;IAC/F,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"} |
@@ -1,20 +0,1 @@ | ||
| import { z } from 'zod'; | ||
| /** | ||
| * Zod schema for HTML rendering configuration | ||
| */ | ||
| export const htmlRenderingConfigurationSchema = z.object({ | ||
| /** | ||
| * The URL to the Scalar API Reference JS CDN. | ||
| * | ||
| * Use this to pin a specific version of the Scalar API Reference. | ||
| * | ||
| * @default https://cdn.jsdelivr.net/npm/@scalar/api-reference | ||
| * | ||
| * @example https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.25.122 | ||
| */ | ||
| cdn: z.string().optional().default('https://cdn.jsdelivr.net/npm/@scalar/api-reference'), | ||
| /** | ||
| * The title of the page. | ||
| */ | ||
| pageTitle: z.string().optional().default('Scalar API Reference'), | ||
| }); | ||
| export {}; |
@@ -1,10 +0,5 @@ | ||
| export { type ApiClientConfiguration, apiClientConfigurationSchema, } from './api-client-configuration.js'; | ||
| export { type ApiClientPlugin, apiClientPluginSchema, hooksSchema } from './api-client-plugin.js'; | ||
| export { type AnyApiReferenceConfiguration, type ApiReferenceConfiguration, type ApiReferenceConfigurationRaw, type ApiReferenceConfigurationWithMultipleSources, type ApiReferenceConfigurationWithSource, apiReferenceConfigurationSchema, apiReferenceConfigurationWithSourceSchema, isConfigurationWithSources, } from './api-reference-configuration.js'; | ||
| export type { ApiReferencePlugin, LifecycleHooks, SpecificationExtension, ViewComponent, } from './api-reference-plugin.js'; | ||
| export type { AuthenticationConfiguration } from './authentication-configuration.js'; | ||
| export type { BaseConfiguration, ExternalUrls } from './base-configuration.js'; | ||
| export type { ApiReferenceInstance, CreateApiReference } from './html-api.js'; | ||
| export { type HtmlRenderingConfiguration, htmlRenderingConfigurationSchema, } from './html-rendering-configuration.js'; | ||
| export { type SourceConfiguration, sourceConfigurationSchema, } from './source-configuration.js'; | ||
| export type { HtmlRenderingConfiguration } from './html-rendering-configuration.js'; | ||
| export type { AnyApiReferenceConfiguration, ApiClientConfiguration, ApiReferenceConfiguration, ApiReferenceConfigurationRaw, ApiReferenceConfigurationWithMultipleSources, ApiReferenceConfigurationWithSource, ApiReferencePlugin, AuthenticationConfiguration, BaseConfiguration, ExternalUrls, LifecycleHooks, SecurityScheme, SecuritySchemeApiKey, SecuritySchemeHttp, SecuritySchemeOauth2, SecuritySchemeOpenIdConnect, SourceConfiguration, SpecificationExtension, ViewComponent, } from './types.js'; | ||
| export { isConfigurationWithSources } from './types.js'; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api-reference/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,4BAA4B,GAC7B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,KAAK,eAAe,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC9F,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,4CAA4C,EACjD,KAAK,mCAAmC,EACxC,+BAA+B,EAC/B,yCAAyC,EACzC,0BAA0B,GAC3B,MAAM,+BAA+B,CAAA;AACtC,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,sBAAsB,EACtB,aAAa,GACd,MAAM,wBAAwB,CAAA;AAC/B,YAAY,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAA;AACjF,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAC3E,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC1E,OAAO,EACL,KAAK,0BAA0B,EAC/B,gCAAgC,GACjC,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,KAAK,mBAAmB,EACxB,yBAAyB,GAC1B,MAAM,wBAAwB,CAAA"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api-reference/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC1E,YAAY,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AAChF,YAAY,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,4BAA4B,EAC5B,4CAA4C,EAC5C,mCAAmC,EACnC,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,GACd,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA"} |
@@ -1,5 +0,1 @@ | ||
| export { apiClientConfigurationSchema, } from './api-client-configuration.js'; | ||
| export { apiClientPluginSchema, hooksSchema } from './api-client-plugin.js'; | ||
| export { apiReferenceConfigurationSchema, apiReferenceConfigurationWithSourceSchema, isConfigurationWithSources, } from './api-reference-configuration.js'; | ||
| export { htmlRenderingConfigurationSchema, } from './html-rendering-configuration.js'; | ||
| export { sourceConfigurationSchema, } from './source-configuration.js'; | ||
| export { isConfigurationWithSources } from './types.js'; |
@@ -7,5 +7,5 @@ import { z } from 'zod'; | ||
| in: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| cookie: "cookie"; | ||
| query: "query"; | ||
| header: "header"; | ||
| cookie: "cookie"; | ||
| }>>>>; | ||
@@ -146,5 +146,5 @@ uid: z.core.$ZodBranded<z.ZodDefault<z.ZodString>, "securityScheme", "out">; | ||
| in: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| cookie: "cookie"; | ||
| query: "query"; | ||
| header: "header"; | ||
| cookie: "cookie"; | ||
| }>>>>; | ||
@@ -249,5 +249,5 @@ }, z.core.$strip>, z.ZodObject<{ | ||
| in: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| cookie: "cookie"; | ||
| query: "query"; | ||
| header: "header"; | ||
| cookie: "cookie"; | ||
| }>>>>; | ||
@@ -360,3 +360,3 @@ uid: z.core.$ZodBranded<z.ZodDefault<z.ZodString>, "securityScheme", "out">; | ||
| name: string; | ||
| in: "cookie" | "query" | "header"; | ||
| in: "query" | "header" | "cookie"; | ||
| uid: string & z.core.$brand<"securityScheme">; | ||
@@ -453,3 +453,3 @@ nameKey: string; | ||
| name: string; | ||
| in: "cookie" | "query" | "header"; | ||
| in: "query" | "header" | "cookie"; | ||
| uid: string & z.core.$brand<"securityScheme">; | ||
@@ -456,0 +456,0 @@ nameKey: string; |
+2
-2
| /** | ||
| * We should not use these exports anymore, but we need them for commonjs compatibility. | ||
| */ | ||
| export type { AnyApiReferenceConfiguration, ApiClientConfiguration, ApiClientPlugin, ApiReferenceConfiguration, ApiReferenceConfigurationRaw, ApiReferenceConfigurationWithMultipleSources, ApiReferenceConfigurationWithSource, ApiReferenceInstance, ApiReferencePlugin, AuthenticationConfiguration, CreateApiReference, ExternalUrls, HtmlRenderingConfiguration, SourceConfiguration, SpecificationExtension, ViewComponent, } from './api-reference/index.js'; | ||
| export { apiClientConfigurationSchema, apiClientPluginSchema, apiReferenceConfigurationSchema, apiReferenceConfigurationWithSourceSchema, hooksSchema, htmlRenderingConfigurationSchema, isConfigurationWithSources, sourceConfigurationSchema, } from './api-reference/index.js'; | ||
| export type { AnyApiReferenceConfiguration, ApiClientConfiguration, ApiReferenceConfiguration, ApiReferenceConfigurationRaw, ApiReferenceConfigurationWithMultipleSources, ApiReferenceConfigurationWithSource, ApiReferenceInstance, ApiReferencePlugin, AuthenticationConfiguration, BaseConfiguration, CreateApiReference, ExternalUrls, HtmlRenderingConfiguration, LifecycleHooks, SecurityScheme, SecuritySchemeApiKey, SecuritySchemeHttp, SecuritySchemeOauth2, SecuritySchemeOpenIdConnect, SourceConfiguration, SpecificationExtension, ViewComponent, } from './api-reference/index.js'; | ||
| export { isConfigurationWithSources } from './api-reference/index.js'; | ||
| export { XScalarStability } from './legacy/index.js'; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,yBAAyB,EACzB,4BAA4B,EAC5B,4CAA4C,EAC5C,mCAAmC,EACnC,oBAAoB,EACpB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,GACd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,EACrB,+BAA+B,EAC/B,yCAAyC,EACzC,WAAW,EACX,gCAAgC,EAChC,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,4BAA4B,EAC5B,4CAA4C,EAC5C,mCAAmC,EACnC,oBAAoB,EACpB,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,GACd,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"} |
+1
-1
@@ -1,2 +0,2 @@ | ||
| export { apiClientConfigurationSchema, apiClientPluginSchema, apiReferenceConfigurationSchema, apiReferenceConfigurationWithSourceSchema, hooksSchema, htmlRenderingConfigurationSchema, isConfigurationWithSources, sourceConfigurationSchema, } from './api-reference/index.js'; | ||
| export { isConfigurationWithSources } from './api-reference/index.js'; | ||
| export { XScalarStability } from './legacy/index.js'; |
@@ -37,3 +37,3 @@ import type { Request as HarRequest } from 'har-format'; | ||
| */ | ||
| export declare const AVAILABLE_CLIENTS: ("c/laravel" | "c/libcurl" | "c/clj_http" | "c/httpclient" | "c/restsharp" | "c/http" | "c/native" | "c/http1.1" | "c/asynchttp" | "c/nethttp" | "c/okhttp" | "c/unirest" | "c/axios" | "c/fetch" | "c/jquery" | "c/ofetch" | "c/xhr" | "c/undici" | "c/nsurlsession" | "c/cohttp" | "c/curl" | "c/guzzle" | "c/restmethod" | "c/webrequest" | "c/python3" | "c/requests" | "c/aiohttp" | "c/httpx_sync" | "c/httpx_async" | "c/httr2" | "c/reqwest" | "c/httpie" | "c/wget" | "r/laravel" | "r/libcurl" | "r/clj_http" | "r/httpclient" | "r/restsharp" | "r/http" | "r/native" | "r/http1.1" | "r/asynchttp" | "r/nethttp" | "r/okhttp" | "r/unirest" | "r/axios" | "r/fetch" | "r/jquery" | "r/ofetch" | "r/xhr" | "r/undici" | "r/nsurlsession" | "r/cohttp" | "r/curl" | "r/guzzle" | "r/restmethod" | "r/webrequest" | "r/python3" | "r/requests" | "r/aiohttp" | "r/httpx_sync" | "r/httpx_async" | "r/httr2" | "r/reqwest" | "r/httpie" | "r/wget" | "go/laravel" | "go/libcurl" | "go/clj_http" | "go/httpclient" | "go/restsharp" | "go/http" | "go/native" | "go/http1.1" | "go/asynchttp" | "go/nethttp" | "go/okhttp" | "go/unirest" | "go/axios" | "go/fetch" | "go/jquery" | "go/ofetch" | "go/xhr" | "go/undici" | "go/nsurlsession" | "go/cohttp" | "go/curl" | "go/guzzle" | "go/restmethod" | "go/webrequest" | "go/python3" | "go/requests" | "go/aiohttp" | "go/httpx_sync" | "go/httpx_async" | "go/httr2" | "go/reqwest" | "go/httpie" | "go/wget" | "rust/laravel" | "rust/libcurl" | "rust/clj_http" | "rust/httpclient" | "rust/restsharp" | "rust/http" | "rust/native" | "rust/http1.1" | "rust/asynchttp" | "rust/nethttp" | "rust/okhttp" | "rust/unirest" | "rust/axios" | "rust/fetch" | "rust/jquery" | "rust/ofetch" | "rust/xhr" | "rust/undici" | "rust/nsurlsession" | "rust/cohttp" | "rust/curl" | "rust/guzzle" | "rust/restmethod" | "rust/webrequest" | "rust/python3" | "rust/requests" | "rust/aiohttp" | "rust/httpx_sync" | "rust/httpx_async" | "rust/httr2" | "rust/reqwest" | "rust/httpie" | "rust/wget" | "http/laravel" | "http/libcurl" | "http/clj_http" | "http/httpclient" | "http/restsharp" | "http/http" | "http/native" | "http/http1.1" | "http/asynchttp" | "http/nethttp" | "http/okhttp" | "http/unirest" | "http/axios" | "http/fetch" | "http/jquery" | "http/ofetch" | "http/xhr" | "http/undici" | "http/nsurlsession" | "http/cohttp" | "http/curl" | "http/guzzle" | "http/restmethod" | "http/webrequest" | "http/python3" | "http/requests" | "http/aiohttp" | "http/httpx_sync" | "http/httpx_async" | "http/httr2" | "http/reqwest" | "http/httpie" | "http/wget" | "clojure/laravel" | "clojure/libcurl" | "clojure/clj_http" | "clojure/httpclient" | "clojure/restsharp" | "clojure/http" | "clojure/native" | "clojure/http1.1" | "clojure/asynchttp" | "clojure/nethttp" | "clojure/okhttp" | "clojure/unirest" | "clojure/axios" | "clojure/fetch" | "clojure/jquery" | "clojure/ofetch" | "clojure/xhr" | "clojure/undici" | "clojure/nsurlsession" | "clojure/cohttp" | "clojure/curl" | "clojure/guzzle" | "clojure/restmethod" | "clojure/webrequest" | "clojure/python3" | "clojure/requests" | "clojure/aiohttp" | "clojure/httpx_sync" | "clojure/httpx_async" | "clojure/httr2" | "clojure/reqwest" | "clojure/httpie" | "clojure/wget" | "csharp/laravel" | "csharp/libcurl" | "csharp/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "csharp/http" | "csharp/native" | "csharp/http1.1" | "csharp/asynchttp" | "csharp/nethttp" | "csharp/okhttp" | "csharp/unirest" | "csharp/axios" | "csharp/fetch" | "csharp/jquery" | "csharp/ofetch" | "csharp/xhr" | "csharp/undici" | "csharp/nsurlsession" | "csharp/cohttp" | "csharp/curl" | "csharp/guzzle" | "csharp/restmethod" | "csharp/webrequest" | "csharp/python3" | "csharp/requests" | "csharp/aiohttp" | "csharp/httpx_sync" | "csharp/httpx_async" | "csharp/httr2" | "csharp/reqwest" | "csharp/httpie" | "csharp/wget" | "dart/laravel" | "dart/libcurl" | "dart/clj_http" | "dart/httpclient" | "dart/restsharp" | "dart/http" | "dart/native" | "dart/http1.1" | "dart/asynchttp" | "dart/nethttp" | "dart/okhttp" | "dart/unirest" | "dart/axios" | "dart/fetch" | "dart/jquery" | "dart/ofetch" | "dart/xhr" | "dart/undici" | "dart/nsurlsession" | "dart/cohttp" | "dart/curl" | "dart/guzzle" | "dart/restmethod" | "dart/webrequest" | "dart/python3" | "dart/requests" | "dart/aiohttp" | "dart/httpx_sync" | "dart/httpx_async" | "dart/httr2" | "dart/reqwest" | "dart/httpie" | "dart/wget" | "fsharp/laravel" | "fsharp/libcurl" | "fsharp/clj_http" | "fsharp/httpclient" | "fsharp/restsharp" | "fsharp/http" | "fsharp/native" | "fsharp/http1.1" | "fsharp/asynchttp" | "fsharp/nethttp" | "fsharp/okhttp" | "fsharp/unirest" | "fsharp/axios" | "fsharp/fetch" | "fsharp/jquery" | "fsharp/ofetch" | "fsharp/xhr" | "fsharp/undici" | "fsharp/nsurlsession" | "fsharp/cohttp" | "fsharp/curl" | "fsharp/guzzle" | "fsharp/restmethod" | "fsharp/webrequest" | "fsharp/python3" | "fsharp/requests" | "fsharp/aiohttp" | "fsharp/httpx_sync" | "fsharp/httpx_async" | "fsharp/httr2" | "fsharp/reqwest" | "fsharp/httpie" | "fsharp/wget" | "java/laravel" | "java/libcurl" | "java/clj_http" | "java/httpclient" | "java/restsharp" | "java/http" | "java/native" | "java/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "java/axios" | "java/fetch" | "java/jquery" | "java/ofetch" | "java/xhr" | "java/undici" | "java/nsurlsession" | "java/cohttp" | "java/curl" | "java/guzzle" | "java/restmethod" | "java/webrequest" | "java/python3" | "java/requests" | "java/aiohttp" | "java/httpx_sync" | "java/httpx_async" | "java/httr2" | "java/reqwest" | "java/httpie" | "java/wget" | "js/laravel" | "js/libcurl" | "js/clj_http" | "js/httpclient" | "js/restsharp" | "js/http" | "js/native" | "js/http1.1" | "js/asynchttp" | "js/nethttp" | "js/okhttp" | "js/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "js/undici" | "js/nsurlsession" | "js/cohttp" | "js/curl" | "js/guzzle" | "js/restmethod" | "js/webrequest" | "js/python3" | "js/requests" | "js/aiohttp" | "js/httpx_sync" | "js/httpx_async" | "js/httr2" | "js/reqwest" | "js/httpie" | "js/wget" | "kotlin/laravel" | "kotlin/libcurl" | "kotlin/clj_http" | "kotlin/httpclient" | "kotlin/restsharp" | "kotlin/http" | "kotlin/native" | "kotlin/http1.1" | "kotlin/asynchttp" | "kotlin/nethttp" | "kotlin/okhttp" | "kotlin/unirest" | "kotlin/axios" | "kotlin/fetch" | "kotlin/jquery" | "kotlin/ofetch" | "kotlin/xhr" | "kotlin/undici" | "kotlin/nsurlsession" | "kotlin/cohttp" | "kotlin/curl" | "kotlin/guzzle" | "kotlin/restmethod" | "kotlin/webrequest" | "kotlin/python3" | "kotlin/requests" | "kotlin/aiohttp" | "kotlin/httpx_sync" | "kotlin/httpx_async" | "kotlin/httr2" | "kotlin/reqwest" | "kotlin/httpie" | "kotlin/wget" | "node/laravel" | "node/libcurl" | "node/clj_http" | "node/httpclient" | "node/restsharp" | "node/http" | "node/native" | "node/http1.1" | "node/asynchttp" | "node/nethttp" | "node/okhttp" | "node/unirest" | "node/axios" | "node/fetch" | "node/jquery" | "node/ofetch" | "node/xhr" | "node/undici" | "node/nsurlsession" | "node/cohttp" | "node/curl" | "node/guzzle" | "node/restmethod" | "node/webrequest" | "node/python3" | "node/requests" | "node/aiohttp" | "node/httpx_sync" | "node/httpx_async" | "node/httr2" | "node/reqwest" | "node/httpie" | "node/wget" | "objc/laravel" | "objc/libcurl" | "objc/clj_http" | "objc/httpclient" | "objc/restsharp" | "objc/http" | "objc/native" | "objc/http1.1" | "objc/asynchttp" | "objc/nethttp" | "objc/okhttp" | "objc/unirest" | "objc/axios" | "objc/fetch" | "objc/jquery" | "objc/ofetch" | "objc/xhr" | "objc/undici" | "objc/nsurlsession" | "objc/cohttp" | "objc/curl" | "objc/guzzle" | "objc/restmethod" | "objc/webrequest" | "objc/python3" | "objc/requests" | "objc/aiohttp" | "objc/httpx_sync" | "objc/httpx_async" | "objc/httr2" | "objc/reqwest" | "objc/httpie" | "objc/wget" | "ocaml/laravel" | "ocaml/libcurl" | "ocaml/clj_http" | "ocaml/httpclient" | "ocaml/restsharp" | "ocaml/http" | "ocaml/native" | "ocaml/http1.1" | "ocaml/asynchttp" | "ocaml/nethttp" | "ocaml/okhttp" | "ocaml/unirest" | "ocaml/axios" | "ocaml/fetch" | "ocaml/jquery" | "ocaml/ofetch" | "ocaml/xhr" | "ocaml/undici" | "ocaml/nsurlsession" | "ocaml/cohttp" | "ocaml/curl" | "ocaml/guzzle" | "ocaml/restmethod" | "ocaml/webrequest" | "ocaml/python3" | "ocaml/requests" | "ocaml/aiohttp" | "ocaml/httpx_sync" | "ocaml/httpx_async" | "ocaml/httr2" | "ocaml/reqwest" | "ocaml/httpie" | "ocaml/wget" | "php/laravel" | "php/libcurl" | "php/clj_http" | "php/httpclient" | "php/restsharp" | "php/http" | "php/native" | "php/http1.1" | "php/asynchttp" | "php/nethttp" | "php/okhttp" | "php/unirest" | "php/axios" | "php/fetch" | "php/jquery" | "php/ofetch" | "php/xhr" | "php/undici" | "php/nsurlsession" | "php/cohttp" | "php/curl" | "php/guzzle" | "php/restmethod" | "php/webrequest" | "php/python3" | "php/requests" | "php/aiohttp" | "php/httpx_sync" | "php/httpx_async" | "php/httr2" | "php/reqwest" | "php/httpie" | "php/wget" | "powershell/laravel" | "powershell/libcurl" | "powershell/clj_http" | "powershell/httpclient" | "powershell/restsharp" | "powershell/http" | "powershell/native" | "powershell/http1.1" | "powershell/asynchttp" | "powershell/nethttp" | "powershell/okhttp" | "powershell/unirest" | "powershell/axios" | "powershell/fetch" | "powershell/jquery" | "powershell/ofetch" | "powershell/xhr" | "powershell/undici" | "powershell/nsurlsession" | "powershell/cohttp" | "powershell/curl" | "powershell/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "powershell/python3" | "powershell/requests" | "powershell/aiohttp" | "powershell/httpx_sync" | "powershell/httpx_async" | "powershell/httr2" | "powershell/reqwest" | "powershell/httpie" | "powershell/wget" | "python/laravel" | "python/libcurl" | "python/clj_http" | "python/httpclient" | "python/restsharp" | "python/http" | "python/native" | "python/http1.1" | "python/asynchttp" | "python/nethttp" | "python/okhttp" | "python/unirest" | "python/axios" | "python/fetch" | "python/jquery" | "python/ofetch" | "python/xhr" | "python/undici" | "python/nsurlsession" | "python/cohttp" | "python/curl" | "python/guzzle" | "python/restmethod" | "python/webrequest" | "python/python3" | "python/requests" | "python/aiohttp" | "python/httpx_sync" | "python/httpx_async" | "python/httr2" | "python/reqwest" | "python/httpie" | "python/wget" | "ruby/laravel" | "ruby/libcurl" | "ruby/clj_http" | "ruby/httpclient" | "ruby/restsharp" | "ruby/http" | "ruby/native" | "ruby/http1.1" | "ruby/asynchttp" | "ruby/nethttp" | "ruby/okhttp" | "ruby/unirest" | "ruby/axios" | "ruby/fetch" | "ruby/jquery" | "ruby/ofetch" | "ruby/xhr" | "ruby/undici" | "ruby/nsurlsession" | "ruby/cohttp" | "ruby/curl" | "ruby/guzzle" | "ruby/restmethod" | "ruby/webrequest" | "ruby/python3" | "ruby/requests" | "ruby/aiohttp" | "ruby/httpx_sync" | "ruby/httpx_async" | "ruby/httr2" | "ruby/reqwest" | "ruby/httpie" | "ruby/wget" | "shell/laravel" | "shell/libcurl" | "shell/clj_http" | "shell/httpclient" | "shell/restsharp" | "shell/http" | "shell/native" | "shell/http1.1" | "shell/asynchttp" | "shell/nethttp" | "shell/okhttp" | "shell/unirest" | "shell/axios" | "shell/fetch" | "shell/jquery" | "shell/ofetch" | "shell/xhr" | "shell/undici" | "shell/nsurlsession" | "shell/cohttp" | "shell/curl" | "shell/guzzle" | "shell/restmethod" | "shell/webrequest" | "shell/python3" | "shell/requests" | "shell/aiohttp" | "shell/httpx_sync" | "shell/httpx_async" | "shell/httr2" | "shell/reqwest" | "shell/httpie" | "shell/wget" | "swift/laravel" | "swift/libcurl" | "swift/clj_http" | "swift/httpclient" | "swift/restsharp" | "swift/http" | "swift/native" | "swift/http1.1" | "swift/asynchttp" | "swift/nethttp" | "swift/okhttp" | "swift/unirest" | "swift/axios" | "swift/fetch" | "swift/jquery" | "swift/ofetch" | "swift/xhr" | "swift/undici" | "swift/nsurlsession" | "swift/cohttp" | "swift/curl" | "swift/guzzle" | "swift/restmethod" | "swift/webrequest" | "swift/python3" | "swift/requests" | "swift/aiohttp" | "swift/httpx_sync" | "swift/httpx_async" | "swift/httr2" | "swift/reqwest" | "swift/httpie" | "swift/wget")[]; | ||
| export declare const AVAILABLE_CLIENTS: ("http/http" | "http/laravel" | "http/fetch" | "http/libcurl" | "http/clj_http" | "http/httpclient" | "http/restsharp" | "http/native" | "http/http1.1" | "http/asynchttp" | "http/nethttp" | "http/okhttp" | "http/unirest" | "http/axios" | "http/jquery" | "http/ofetch" | "http/xhr" | "http/undici" | "http/nsurlsession" | "http/cohttp" | "http/curl" | "http/guzzle" | "http/restmethod" | "http/webrequest" | "http/python3" | "http/requests" | "http/aiohttp" | "http/httpx_sync" | "http/httpx_async" | "http/httr2" | "http/reqwest" | "http/httpie" | "http/wget" | "c/http" | "c/laravel" | "c/fetch" | "c/libcurl" | "c/clj_http" | "c/httpclient" | "c/restsharp" | "c/native" | "c/http1.1" | "c/asynchttp" | "c/nethttp" | "c/okhttp" | "c/unirest" | "c/axios" | "c/jquery" | "c/ofetch" | "c/xhr" | "c/undici" | "c/nsurlsession" | "c/cohttp" | "c/curl" | "c/guzzle" | "c/restmethod" | "c/webrequest" | "c/python3" | "c/requests" | "c/aiohttp" | "c/httpx_sync" | "c/httpx_async" | "c/httr2" | "c/reqwest" | "c/httpie" | "c/wget" | "r/http" | "r/laravel" | "r/fetch" | "r/libcurl" | "r/clj_http" | "r/httpclient" | "r/restsharp" | "r/native" | "r/http1.1" | "r/asynchttp" | "r/nethttp" | "r/okhttp" | "r/unirest" | "r/axios" | "r/jquery" | "r/ofetch" | "r/xhr" | "r/undici" | "r/nsurlsession" | "r/cohttp" | "r/curl" | "r/guzzle" | "r/restmethod" | "r/webrequest" | "r/python3" | "r/requests" | "r/aiohttp" | "r/httpx_sync" | "r/httpx_async" | "r/httr2" | "r/reqwest" | "r/httpie" | "r/wget" | "go/http" | "go/laravel" | "go/fetch" | "go/libcurl" | "go/clj_http" | "go/httpclient" | "go/restsharp" | "go/native" | "go/http1.1" | "go/asynchttp" | "go/nethttp" | "go/okhttp" | "go/unirest" | "go/axios" | "go/jquery" | "go/ofetch" | "go/xhr" | "go/undici" | "go/nsurlsession" | "go/cohttp" | "go/curl" | "go/guzzle" | "go/restmethod" | "go/webrequest" | "go/python3" | "go/requests" | "go/aiohttp" | "go/httpx_sync" | "go/httpx_async" | "go/httr2" | "go/reqwest" | "go/httpie" | "go/wget" | "rust/http" | "rust/laravel" | "rust/fetch" | "rust/libcurl" | "rust/clj_http" | "rust/httpclient" | "rust/restsharp" | "rust/native" | "rust/http1.1" | "rust/asynchttp" | "rust/nethttp" | "rust/okhttp" | "rust/unirest" | "rust/axios" | "rust/jquery" | "rust/ofetch" | "rust/xhr" | "rust/undici" | "rust/nsurlsession" | "rust/cohttp" | "rust/curl" | "rust/guzzle" | "rust/restmethod" | "rust/webrequest" | "rust/python3" | "rust/requests" | "rust/aiohttp" | "rust/httpx_sync" | "rust/httpx_async" | "rust/httr2" | "rust/reqwest" | "rust/httpie" | "rust/wget" | "clojure/http" | "clojure/laravel" | "clojure/fetch" | "clojure/libcurl" | "clojure/clj_http" | "clojure/httpclient" | "clojure/restsharp" | "clojure/native" | "clojure/http1.1" | "clojure/asynchttp" | "clojure/nethttp" | "clojure/okhttp" | "clojure/unirest" | "clojure/axios" | "clojure/jquery" | "clojure/ofetch" | "clojure/xhr" | "clojure/undici" | "clojure/nsurlsession" | "clojure/cohttp" | "clojure/curl" | "clojure/guzzle" | "clojure/restmethod" | "clojure/webrequest" | "clojure/python3" | "clojure/requests" | "clojure/aiohttp" | "clojure/httpx_sync" | "clojure/httpx_async" | "clojure/httr2" | "clojure/reqwest" | "clojure/httpie" | "clojure/wget" | "csharp/http" | "csharp/laravel" | "csharp/fetch" | "csharp/libcurl" | "csharp/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "csharp/native" | "csharp/http1.1" | "csharp/asynchttp" | "csharp/nethttp" | "csharp/okhttp" | "csharp/unirest" | "csharp/axios" | "csharp/jquery" | "csharp/ofetch" | "csharp/xhr" | "csharp/undici" | "csharp/nsurlsession" | "csharp/cohttp" | "csharp/curl" | "csharp/guzzle" | "csharp/restmethod" | "csharp/webrequest" | "csharp/python3" | "csharp/requests" | "csharp/aiohttp" | "csharp/httpx_sync" | "csharp/httpx_async" | "csharp/httr2" | "csharp/reqwest" | "csharp/httpie" | "csharp/wget" | "dart/http" | "dart/laravel" | "dart/fetch" | "dart/libcurl" | "dart/clj_http" | "dart/httpclient" | "dart/restsharp" | "dart/native" | "dart/http1.1" | "dart/asynchttp" | "dart/nethttp" | "dart/okhttp" | "dart/unirest" | "dart/axios" | "dart/jquery" | "dart/ofetch" | "dart/xhr" | "dart/undici" | "dart/nsurlsession" | "dart/cohttp" | "dart/curl" | "dart/guzzle" | "dart/restmethod" | "dart/webrequest" | "dart/python3" | "dart/requests" | "dart/aiohttp" | "dart/httpx_sync" | "dart/httpx_async" | "dart/httr2" | "dart/reqwest" | "dart/httpie" | "dart/wget" | "fsharp/http" | "fsharp/laravel" | "fsharp/fetch" | "fsharp/libcurl" | "fsharp/clj_http" | "fsharp/httpclient" | "fsharp/restsharp" | "fsharp/native" | "fsharp/http1.1" | "fsharp/asynchttp" | "fsharp/nethttp" | "fsharp/okhttp" | "fsharp/unirest" | "fsharp/axios" | "fsharp/jquery" | "fsharp/ofetch" | "fsharp/xhr" | "fsharp/undici" | "fsharp/nsurlsession" | "fsharp/cohttp" | "fsharp/curl" | "fsharp/guzzle" | "fsharp/restmethod" | "fsharp/webrequest" | "fsharp/python3" | "fsharp/requests" | "fsharp/aiohttp" | "fsharp/httpx_sync" | "fsharp/httpx_async" | "fsharp/httr2" | "fsharp/reqwest" | "fsharp/httpie" | "fsharp/wget" | "java/http" | "java/laravel" | "java/fetch" | "java/libcurl" | "java/clj_http" | "java/httpclient" | "java/restsharp" | "java/native" | "java/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "java/axios" | "java/jquery" | "java/ofetch" | "java/xhr" | "java/undici" | "java/nsurlsession" | "java/cohttp" | "java/curl" | "java/guzzle" | "java/restmethod" | "java/webrequest" | "java/python3" | "java/requests" | "java/aiohttp" | "java/httpx_sync" | "java/httpx_async" | "java/httr2" | "java/reqwest" | "java/httpie" | "java/wget" | "js/http" | "js/laravel" | "js/fetch" | "js/libcurl" | "js/clj_http" | "js/httpclient" | "js/restsharp" | "js/native" | "js/http1.1" | "js/asynchttp" | "js/nethttp" | "js/okhttp" | "js/unirest" | "js/axios" | "js/jquery" | "js/ofetch" | "js/xhr" | "js/undici" | "js/nsurlsession" | "js/cohttp" | "js/curl" | "js/guzzle" | "js/restmethod" | "js/webrequest" | "js/python3" | "js/requests" | "js/aiohttp" | "js/httpx_sync" | "js/httpx_async" | "js/httr2" | "js/reqwest" | "js/httpie" | "js/wget" | "kotlin/http" | "kotlin/laravel" | "kotlin/fetch" | "kotlin/libcurl" | "kotlin/clj_http" | "kotlin/httpclient" | "kotlin/restsharp" | "kotlin/native" | "kotlin/http1.1" | "kotlin/asynchttp" | "kotlin/nethttp" | "kotlin/okhttp" | "kotlin/unirest" | "kotlin/axios" | "kotlin/jquery" | "kotlin/ofetch" | "kotlin/xhr" | "kotlin/undici" | "kotlin/nsurlsession" | "kotlin/cohttp" | "kotlin/curl" | "kotlin/guzzle" | "kotlin/restmethod" | "kotlin/webrequest" | "kotlin/python3" | "kotlin/requests" | "kotlin/aiohttp" | "kotlin/httpx_sync" | "kotlin/httpx_async" | "kotlin/httr2" | "kotlin/reqwest" | "kotlin/httpie" | "kotlin/wget" | "node/http" | "node/laravel" | "node/fetch" | "node/libcurl" | "node/clj_http" | "node/httpclient" | "node/restsharp" | "node/native" | "node/http1.1" | "node/asynchttp" | "node/nethttp" | "node/okhttp" | "node/unirest" | "node/axios" | "node/jquery" | "node/ofetch" | "node/xhr" | "node/undici" | "node/nsurlsession" | "node/cohttp" | "node/curl" | "node/guzzle" | "node/restmethod" | "node/webrequest" | "node/python3" | "node/requests" | "node/aiohttp" | "node/httpx_sync" | "node/httpx_async" | "node/httr2" | "node/reqwest" | "node/httpie" | "node/wget" | "objc/http" | "objc/laravel" | "objc/fetch" | "objc/libcurl" | "objc/clj_http" | "objc/httpclient" | "objc/restsharp" | "objc/native" | "objc/http1.1" | "objc/asynchttp" | "objc/nethttp" | "objc/okhttp" | "objc/unirest" | "objc/axios" | "objc/jquery" | "objc/ofetch" | "objc/xhr" | "objc/undici" | "objc/nsurlsession" | "objc/cohttp" | "objc/curl" | "objc/guzzle" | "objc/restmethod" | "objc/webrequest" | "objc/python3" | "objc/requests" | "objc/aiohttp" | "objc/httpx_sync" | "objc/httpx_async" | "objc/httr2" | "objc/reqwest" | "objc/httpie" | "objc/wget" | "ocaml/http" | "ocaml/laravel" | "ocaml/fetch" | "ocaml/libcurl" | "ocaml/clj_http" | "ocaml/httpclient" | "ocaml/restsharp" | "ocaml/native" | "ocaml/http1.1" | "ocaml/asynchttp" | "ocaml/nethttp" | "ocaml/okhttp" | "ocaml/unirest" | "ocaml/axios" | "ocaml/jquery" | "ocaml/ofetch" | "ocaml/xhr" | "ocaml/undici" | "ocaml/nsurlsession" | "ocaml/cohttp" | "ocaml/curl" | "ocaml/guzzle" | "ocaml/restmethod" | "ocaml/webrequest" | "ocaml/python3" | "ocaml/requests" | "ocaml/aiohttp" | "ocaml/httpx_sync" | "ocaml/httpx_async" | "ocaml/httr2" | "ocaml/reqwest" | "ocaml/httpie" | "ocaml/wget" | "php/http" | "php/laravel" | "php/fetch" | "php/libcurl" | "php/clj_http" | "php/httpclient" | "php/restsharp" | "php/native" | "php/http1.1" | "php/asynchttp" | "php/nethttp" | "php/okhttp" | "php/unirest" | "php/axios" | "php/jquery" | "php/ofetch" | "php/xhr" | "php/undici" | "php/nsurlsession" | "php/cohttp" | "php/curl" | "php/guzzle" | "php/restmethod" | "php/webrequest" | "php/python3" | "php/requests" | "php/aiohttp" | "php/httpx_sync" | "php/httpx_async" | "php/httr2" | "php/reqwest" | "php/httpie" | "php/wget" | "powershell/http" | "powershell/laravel" | "powershell/fetch" | "powershell/libcurl" | "powershell/clj_http" | "powershell/httpclient" | "powershell/restsharp" | "powershell/native" | "powershell/http1.1" | "powershell/asynchttp" | "powershell/nethttp" | "powershell/okhttp" | "powershell/unirest" | "powershell/axios" | "powershell/jquery" | "powershell/ofetch" | "powershell/xhr" | "powershell/undici" | "powershell/nsurlsession" | "powershell/cohttp" | "powershell/curl" | "powershell/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "powershell/python3" | "powershell/requests" | "powershell/aiohttp" | "powershell/httpx_sync" | "powershell/httpx_async" | "powershell/httr2" | "powershell/reqwest" | "powershell/httpie" | "powershell/wget" | "python/http" | "python/laravel" | "python/fetch" | "python/libcurl" | "python/clj_http" | "python/httpclient" | "python/restsharp" | "python/native" | "python/http1.1" | "python/asynchttp" | "python/nethttp" | "python/okhttp" | "python/unirest" | "python/axios" | "python/jquery" | "python/ofetch" | "python/xhr" | "python/undici" | "python/nsurlsession" | "python/cohttp" | "python/curl" | "python/guzzle" | "python/restmethod" | "python/webrequest" | "python/python3" | "python/requests" | "python/aiohttp" | "python/httpx_sync" | "python/httpx_async" | "python/httr2" | "python/reqwest" | "python/httpie" | "python/wget" | "ruby/http" | "ruby/laravel" | "ruby/fetch" | "ruby/libcurl" | "ruby/clj_http" | "ruby/httpclient" | "ruby/restsharp" | "ruby/native" | "ruby/http1.1" | "ruby/asynchttp" | "ruby/nethttp" | "ruby/okhttp" | "ruby/unirest" | "ruby/axios" | "ruby/jquery" | "ruby/ofetch" | "ruby/xhr" | "ruby/undici" | "ruby/nsurlsession" | "ruby/cohttp" | "ruby/curl" | "ruby/guzzle" | "ruby/restmethod" | "ruby/webrequest" | "ruby/python3" | "ruby/requests" | "ruby/aiohttp" | "ruby/httpx_sync" | "ruby/httpx_async" | "ruby/httr2" | "ruby/reqwest" | "ruby/httpie" | "ruby/wget" | "shell/http" | "shell/laravel" | "shell/fetch" | "shell/libcurl" | "shell/clj_http" | "shell/httpclient" | "shell/restsharp" | "shell/native" | "shell/http1.1" | "shell/asynchttp" | "shell/nethttp" | "shell/okhttp" | "shell/unirest" | "shell/axios" | "shell/jquery" | "shell/ofetch" | "shell/xhr" | "shell/undici" | "shell/nsurlsession" | "shell/cohttp" | "shell/curl" | "shell/guzzle" | "shell/restmethod" | "shell/webrequest" | "shell/python3" | "shell/requests" | "shell/aiohttp" | "shell/httpx_sync" | "shell/httpx_async" | "shell/httr2" | "shell/reqwest" | "shell/httpie" | "shell/wget" | "swift/http" | "swift/laravel" | "swift/fetch" | "swift/libcurl" | "swift/clj_http" | "swift/httpclient" | "swift/restsharp" | "swift/native" | "swift/http1.1" | "swift/asynchttp" | "swift/nethttp" | "swift/okhttp" | "swift/unirest" | "swift/axios" | "swift/jquery" | "swift/ofetch" | "swift/xhr" | "swift/undici" | "swift/nsurlsession" | "swift/cohttp" | "swift/curl" | "swift/guzzle" | "swift/restmethod" | "swift/webrequest" | "swift/python3" | "swift/requests" | "swift/aiohttp" | "swift/httpx_sync" | "swift/httpx_async" | "swift/httr2" | "swift/reqwest" | "swift/httpie" | "swift/wget")[]; | ||
| /** | ||
@@ -40,0 +40,0 @@ * All available client identifiers in array format |
+2
-2
@@ -19,3 +19,3 @@ { | ||
| ], | ||
| "version": "0.9.6", | ||
| "version": "0.11.0", | ||
| "engines": { | ||
@@ -66,3 +66,3 @@ "node": ">=22" | ||
| "zod": "^4.3.5", | ||
| "@scalar/helpers": "0.6.0" | ||
| "@scalar/helpers": "0.8.0" | ||
| }, | ||
@@ -69,0 +69,0 @@ "devDependencies": { |
| import type z from 'zod'; | ||
| export declare const apiClientConfigurationSchema: z.ZodObject<{ | ||
| authentication: z.ZodOptional<z.ZodAny>; | ||
| baseServerURL: z.ZodOptional<z.ZodString>; | ||
| hideClientButton: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>; | ||
| proxyUrl: z.ZodOptional<z.ZodString>; | ||
| oauth2RedirectUri: z.ZodOptional<z.ZodString>; | ||
| searchHotKey: z.ZodOptional<z.ZodEnum<{ | ||
| a: "a"; | ||
| b: "b"; | ||
| c: "c"; | ||
| d: "d"; | ||
| e: "e"; | ||
| f: "f"; | ||
| g: "g"; | ||
| h: "h"; | ||
| i: "i"; | ||
| j: "j"; | ||
| k: "k"; | ||
| l: "l"; | ||
| m: "m"; | ||
| n: "n"; | ||
| o: "o"; | ||
| p: "p"; | ||
| q: "q"; | ||
| r: "r"; | ||
| s: "s"; | ||
| t: "t"; | ||
| u: "u"; | ||
| v: "v"; | ||
| w: "w"; | ||
| x: "x"; | ||
| y: "y"; | ||
| z: "z"; | ||
| }>>; | ||
| servers: z.ZodOptional<z.ZodArray<z.ZodAny>>; | ||
| showSidebar: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>; | ||
| showDeveloperTools: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>; | ||
| showToolbar: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| never: "never"; | ||
| always: "always"; | ||
| localhost: "localhost"; | ||
| }>>>>; | ||
| operationTitleSource: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| summary: "summary"; | ||
| path: "path"; | ||
| }>>>>; | ||
| theme: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{ | ||
| default: "default"; | ||
| alternate: "alternate"; | ||
| moon: "moon"; | ||
| purple: "purple"; | ||
| solarized: "solarized"; | ||
| bluePlanet: "bluePlanet"; | ||
| deepSpace: "deepSpace"; | ||
| saturn: "saturn"; | ||
| kepler: "kepler"; | ||
| elysiajs: "elysiajs"; | ||
| fastify: "fastify"; | ||
| mars: "mars"; | ||
| laserwave: "laserwave"; | ||
| none: "none"; | ||
| }>>>>; | ||
| _integration: z.ZodOptional<z.ZodNullable<z.ZodEnum<{ | ||
| elysiajs: "elysiajs"; | ||
| fastify: "fastify"; | ||
| adonisjs: "adonisjs"; | ||
| astro: "astro"; | ||
| docusaurus: "docusaurus"; | ||
| dotnet: "dotnet"; | ||
| express: "express"; | ||
| fastapi: "fastapi"; | ||
| go: "go"; | ||
| hono: "hono"; | ||
| html: "html"; | ||
| laravel: "laravel"; | ||
| litestar: "litestar"; | ||
| nestjs: "nestjs"; | ||
| nextjs: "nextjs"; | ||
| nitro: "nitro"; | ||
| nuxt: "nuxt"; | ||
| platformatic: "platformatic"; | ||
| react: "react"; | ||
| rust: "rust"; | ||
| svelte: "svelte"; | ||
| vue: "vue"; | ||
| }>>>; | ||
| onRequestSent: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodString], null>, z.ZodVoid>>; | ||
| persistAuth: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>; | ||
| plugins: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodObject<{ | ||
| name: z.ZodString; | ||
| views: z.ZodOptional<z.ZodObject<{ | ||
| 'request.section': z.ZodOptional<z.ZodArray<z.ZodObject<{ | ||
| title: z.ZodOptional<z.ZodString>; | ||
| component: z.ZodUnknown; | ||
| props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; | ||
| }, z.core.$strip>>>; | ||
| 'response.section': z.ZodOptional<z.ZodArray<z.ZodObject<{ | ||
| title: z.ZodOptional<z.ZodString>; | ||
| component: z.ZodUnknown; | ||
| props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; | ||
| }, z.core.$strip>>>; | ||
| }, z.core.$strip>>; | ||
| hooks: z.ZodOptional<z.ZodObject<{ | ||
| onBeforeRequest: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{ | ||
| request: z.ZodAny; | ||
| }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; | ||
| onResponseReceived: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{ | ||
| response: z.ZodCustom<Response, Response>; | ||
| operation: z.ZodRecord<z.ZodString, z.ZodAny>; | ||
| }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; | ||
| }, z.core.$strip>>; | ||
| }, z.core.$strip>>>>; | ||
| telemetry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; | ||
| externalUrls: z.ZodPrefault<z.ZodObject<{ | ||
| dashboardUrl: z.ZodPrefault<z.ZodString>; | ||
| registryUrl: z.ZodPrefault<z.ZodString>; | ||
| proxyUrl: z.ZodPrefault<z.ZodString>; | ||
| apiBaseUrl: z.ZodPrefault<z.ZodString>; | ||
| }, z.core.$strip>>; | ||
| default: z.ZodCatch<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>; | ||
| url: z.ZodOptional<z.ZodString>; | ||
| content: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodRecord<z.ZodString, z.ZodAny>>]>>; | ||
| title: z.ZodOptional<z.ZodString>; | ||
| slug: z.ZodOptional<z.ZodString>; | ||
| spec: z.ZodOptional<z.ZodObject<{ | ||
| url: z.ZodOptional<z.ZodString>; | ||
| content: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodRecord<z.ZodString, z.ZodAny>>]>>; | ||
| }, z.core.$strip>>; | ||
| agent: z.ZodOptional<z.ZodObject<{ | ||
| key: z.ZodOptional<z.ZodString>; | ||
| disabled: z.ZodOptional<z.ZodBoolean>; | ||
| hideAddApi: z.ZodOptional<z.ZodBoolean>; | ||
| }, z.core.$strip>>; | ||
| }, z.core.$strip>; | ||
| export type ApiClientConfiguration = z.infer<typeof apiClientConfigurationSchema>; | ||
| //# sourceMappingURL=api-client-configuration.d.ts.map |
| {"version":3,"file":"api-client-configuration.d.ts","sourceRoot":"","sources":["../../src/api-reference/api-client-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAKxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkE,CAAA;AAE3G,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA"} |
| import { baseConfigurationSchema } from './base-configuration.js'; | ||
| import { sourceConfigurationSchema } from './source-configuration.js'; | ||
| export const apiClientConfigurationSchema = baseConfigurationSchema.extend(sourceConfigurationSchema.shape); |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
220139
10.84%3723
7.32%4
100%+ Added
- Removed
Updated