import * as z from "zod/v4"; import { AuthData, AuthData$Outbound } from "./authdata.js"; import { BearerAuthMethod, BearerAuthMethod$Outbound } from "./bearerauthmethod.js"; import { ExtendedOAuthServerMetadata, ExtendedOAuthServerMetadata$Outbound } from "./extendedoauthservermetadata.js"; import { GlobalHeaderValue, GlobalHeaderValue$Outbound } from "./globalheadervalue.js"; import { NoneAuthMethod, NoneAuthMethod$Outbound } from "./noneauthmethod.js"; import { OAuth2AuthMethod, OAuth2AuthMethod$Outbound } from "./oauth2authmethod.js"; import { PublicResourceVisibility } from "./publicresourcevisibility.js"; export type CreateConnectorRequestAuthMethod = BearerAuthMethod | NoneAuthMethod | (OAuth2AuthMethod & { methodType: "oauth2"; }); export type CreateConnectorRequest = { /** * Optional scoped credentials to be sent with connector requests. */ headers?: { [k: string]: any; } | null | undefined; /** * Optional connector-wide headers, keyed by header name, set at creation and applied to every credential. Secret values are encrypted at rest and never returned in clear. */ globalHeaders?: { [k: string]: GlobalHeaderValue; } | undefined; /** * Optional additional authentication data for the connector. */ authData?: AuthData | null | undefined; /** * Optional OAuth2 authorization server metadata (authorization_endpoint, token_endpoint, etc.). When provided, skips .well-known discovery and uses these endpoints directly. */ oauth2ServerMetadata?: ExtendedOAuthServerMetadata | null | undefined; /** * Optional URL to fetch OAuth2 authorization server metadata from (RFC 8414). When provided, the metadata is fetched from this URL and used instead of .well-known discovery. Mutually exclusive with oauth2_server_metadata. */ oauth2ServerMetadataUrl?: string | null | undefined; /** * The name of the connector. Should be 64 char length maximum, alphanumeric, only underscores/dashes. */ name: string; /** * Optional human-readable title for the connector. */ title?: string | null | undefined; /** * The description of the connector. */ description: string; /** * The optional url of the icon you want to associate to the connector. */ iconUrl?: string | null | undefined; /** * The URL of the connector server. */ server: string; /** * Connector visibility options. */ visibility?: PublicResourceVisibility | undefined; /** * Authentication methods supported by the connector. */ authMethods?: Array | null | undefined; /** * Optional system prompt for the connector. */ systemPrompt?: string | null | undefined; /** * Protocol of the connector. Use 'mcp' for MCP connectors. */ protocol: "mcp"; }; /** @internal */ export type CreateConnectorRequestAuthMethod$Outbound = BearerAuthMethod$Outbound | NoneAuthMethod$Outbound | (OAuth2AuthMethod$Outbound & { method_type: "oauth2"; }); /** @internal */ export declare const CreateConnectorRequestAuthMethod$outboundSchema: z.ZodType; export declare function createConnectorRequestAuthMethodToJSON(createConnectorRequestAuthMethod: CreateConnectorRequestAuthMethod): string; /** @internal */ export type CreateConnectorRequest$Outbound = { headers?: { [k: string]: any; } | null | undefined; global_headers?: { [k: string]: GlobalHeaderValue$Outbound; } | undefined; auth_data?: AuthData$Outbound | null | undefined; oauth2_server_metadata?: ExtendedOAuthServerMetadata$Outbound | null | undefined; oauth2_server_metadata_url?: string | null | undefined; name: string; title?: string | null | undefined; description: string; icon_url?: string | null | undefined; server: string; visibility?: string | undefined; auth_methods?: Array | null | undefined; system_prompt?: string | null | undefined; protocol: "mcp"; }; /** @internal */ export declare const CreateConnectorRequest$outboundSchema: z.ZodType; export declare function createConnectorRequestToJSON(createConnectorRequest: CreateConnectorRequest): string; //# sourceMappingURL=createconnectorrequest.d.ts.map