@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
836 lines • 33.6 kB
TypeScript
import * as z from "zod/v3";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type TypeSnowflakeWif = {
clientName: string;
accountIdentifier?: string | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
export type TypeSnowflake = {
clientName: string;
accountIdentifier: string;
defaultSessionRole?: string | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
export type SlackTeam = {
id: string;
name?: string | undefined;
domain?: string | undefined;
};
export type TypeSlack = {
appId: string;
appName: string;
clientId: string;
clientSecret: string;
slackTeam?: SlackTeam | undefined;
signingSecret?: string | undefined;
verificationToken?: string | undefined;
botScopes?: Array<string> | undefined;
userScopes?: Array<string> | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
export type TypeSalesforce = {
consumerKey: string;
consumerSecret: string;
loginHost: string;
};
export type OwnerOrganization = {
id: string;
slug: string;
name: string;
logoUrl?: string | null | undefined;
};
export type Application = {
id: string;
clientId: string;
name: string;
description?: string | null | undefined;
developer?: string | null | undefined;
developerUrl?: string | null | undefined;
imageUrl?: string | null | undefined;
redirectUris?: Array<string> | undefined;
distribution?: string | null | undefined;
webhookResourceTypes?: Array<string> | undefined;
webhookUrl?: string | null | undefined;
webhookEnabled?: boolean | undefined;
createdAt?: string | undefined;
updatedAt?: string | undefined;
};
export type TypeLinear = {
appId?: string | undefined;
appName?: string | undefined;
clientId: string;
clientSecret: string;
webhookSecret?: string | undefined;
appScopes?: Array<string> | undefined;
userScopes?: Array<string> | undefined;
ownerOrganization?: OwnerOrganization | undefined;
application?: Application | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
export declare const DataType: {
readonly UserLower: "user";
readonly OrganizationLower: "organization";
readonly UserMixed: "User";
readonly OrganizationMixed: "Organization";
};
export type DataType = ClosedEnum<typeof DataType>;
export type Owner = {
type: DataType;
id: number;
slug: string;
name?: string | undefined;
};
export type TypeGithub = {
appId: number;
appSlug: string;
appName: string;
clientId: string;
owner?: Owner | undefined;
clientSecret?: string | undefined;
privateKeyPem?: string | undefined;
webhookSecret?: string | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
export type Values = {
value: string;
scope?: string | undefined;
/**
* The timestamp when the API key value expires in milliseconds.
*/
expiresAt?: number | undefined;
};
export type TypeApiKey = {
values: Array<Values>;
};
export declare const Use: {
readonly Sig: "sig";
readonly Enc: "enc";
};
export type Use = ClosedEnum<typeof Use>;
export type Keys = {
kty: string;
kid?: string | undefined;
use?: Use | undefined;
keyOps?: Array<string> | undefined;
alg?: string | undefined;
additionalProperties?: {
[k: string]: any;
} | undefined;
};
export type Jwks = {
keys: Array<Keys>;
additionalProperties?: {
[k: string]: any;
} | undefined;
};
export type ServerConfig = {
issuer?: string | undefined;
authorizationEndpoint?: string | undefined;
tokenEndpoint?: string | undefined;
userinfoEndpoint?: string | undefined;
jwksUri?: string | undefined;
jwks?: Jwks | undefined;
revocationEndpoint?: string | undefined;
introspectionEndpoint?: string | undefined;
endSessionEndpoint?: string | undefined;
deviceAuthorizationEndpoint?: string | undefined;
registrationEndpoint?: string | undefined;
responseTypesSupported?: Array<string> | undefined;
tokenEndpointAuthMethodsSupported?: Array<string> | undefined;
tokenEndpointAuthSigningAlgValuesSupported?: Array<string> | undefined;
scopesSupported?: Array<string> | undefined;
grantTypesSupported?: Array<string> | undefined;
responseModesSupported?: Array<string> | undefined;
subjectTypesSupported?: Array<string> | undefined;
idTokenSigningAlgValuesSupported?: Array<string> | undefined;
idTokenEncryptionAlgValuesSupported?: Array<string> | undefined;
idTokenEncryptionEncValuesSupported?: Array<string> | undefined;
claimTypesSupported?: Array<string> | undefined;
claimsSupported?: Array<string> | undefined;
codeChallengeMethodsSupported?: Array<string> | undefined;
promptValuesSupported?: Array<string> | undefined;
claimsParameterSupported?: boolean | undefined;
requestParameterSupported?: boolean | undefined;
requestUriParameterSupported?: boolean | undefined;
requireRequestUriRegistration?: boolean | undefined;
serviceDocumentation?: string | undefined;
opPolicyUri?: string | undefined;
opTosUri?: string | undefined;
logoUri?: string | undefined;
clientIdMetadataDocumentSupported?: boolean | undefined;
authorizationDetailsTypesSupported?: Array<string> | undefined;
additionalProperties?: {
[k: string]: any;
} | undefined;
};
export type UserAuthorization = {
enabled: boolean;
/**
* Default scopes to request when token params specify scopes: ["*"].
*/
scopes?: Array<string> | undefined;
};
export type RefreshTokens = {
enabled: boolean;
};
export type ClientCredentials = {
enabled: boolean;
/**
* Default scopes to request when token params specify scopes: ["*"].
*/
scopes?: Array<string> | undefined;
};
export type JwtBearer = {
enabled?: boolean | undefined;
/**
* Default scopes to request when token params specify scopes: ["*"].
*/
scopes?: Array<string> | undefined;
sub?: string | undefined;
iss?: string | undefined;
aud?: string | undefined;
additionalClaims?: {
[k: string]: any;
} | undefined;
ttl?: number | undefined;
useClientCredentials?: boolean | undefined;
};
export type TypeOauth = {
serverUrl?: string | undefined;
serverConfig?: ServerConfig | undefined;
clientId: string;
clientSecret?: string | undefined;
tokenEndpointAuthMethod?: string | undefined;
responseType?: string | undefined;
pkceRequired?: boolean | undefined;
codeChallengeMethod?: string | undefined;
userAuthorization?: UserAuthorization | undefined;
refreshTokens?: RefreshTokens | undefined;
clientCredentials?: ClientCredentials | undefined;
defaultAudience?: string | undefined;
authorizationUrlParams?: {
[k: string]: string;
} | undefined;
jwtBearer?: JwtBearer | undefined;
};
export type CreateConnectorData = TypeGithub | TypeSlack | TypeSalesforce | TypeLinear | TypeSnowflake | TypeOauth | TypeApiKey | TypeSnowflakeWif | {
[k: string]: any;
};
export type CreateConnectorRequestBody = {
/**
* Known types: api-key, github, linear, oauth, salesforce, slack, snowflake.
*/
type: string;
/**
* Service slug or URL for which the connector is used.
*/
service?: string | undefined;
uid?: string | undefined;
name?: string | undefined;
/**
* Link to the specified project when specified. See environments.
*/
projectId?: string | undefined;
/**
* Use these environments when linking to the project specified by the projectId.
*/
environments?: Array<string> | undefined;
/**
* Whether the triggers are enabled for this connector.
*/
triggers?: boolean | undefined;
/**
* The list of the defaults trigger events for this connector.
*/
events?: Array<string> | undefined;
/**
* Branding icon. Either a SHA-1 hash already uploaded to the Vercel avatar service or an https:// URL that will be downloaded and rehosted.
*/
icon?: string | undefined;
/**
* Branding background color (6-digit hex, e.g. "#000000").
*/
backgroundColor?: string | undefined;
/**
* Branding accent color (6-digit hex, e.g. "#000000").
*/
accentColor?: string | undefined;
data: TypeGithub | TypeSlack | TypeSalesforce | TypeLinear | TypeSnowflake | TypeOauth | TypeApiKey | TypeSnowflakeWif | {
[k: string]: any;
};
};
export declare const CreatedByEnvironment: {
readonly Development: "development";
readonly Preview: "preview";
readonly Production: "production";
};
export type CreatedByEnvironment = ClosedEnum<typeof CreatedByEnvironment>;
/**
* Principal that originally created the connector — either a Vercel user (interactive dashboard / CLI flow) or a Vercel deployment (OIDC-authenticated project, used by runtime auto-provisioning). See {@link ConnexPrincipal}. Optional: pre-existing rows from before this shape was introduced may carry no attribution at all.
*/
export type CreatedBy2 = {
type: "project";
id: string;
environment: CreatedByEnvironment;
};
/**
* Principal that originally created the connector — either a Vercel user (interactive dashboard / CLI flow) or a Vercel deployment (OIDC-authenticated project, used by runtime auto-provisioning). See {@link ConnexPrincipal}. Optional: pre-existing rows from before this shape was introduced may carry no attribution at all.
*/
export type CreatedBy1 = {
type: "user";
id: string;
};
export type CreatedBy = CreatedBy1 | CreatedBy2;
export declare const UpdatedByEnvironment: {
readonly Development: "development";
readonly Preview: "preview";
readonly Production: "production";
};
export type UpdatedByEnvironment = ClosedEnum<typeof UpdatedByEnvironment>;
/**
* Principal that most recently mutated the connector. Same shape as {@link createdBy} but tracks the most recent updater, not the original creator. At create time the two fields point at the same principal; they diverge on the first subsequent update.
*/
export type UpdatedBy2 = {
type: "project";
id: string;
environment: UpdatedByEnvironment;
};
/**
* Principal that most recently mutated the connector. Same shape as {@link createdBy} but tracks the most recent updater, not the original creator. At create time the two fields point at the same principal; they diverge on the first subsequent update.
*/
export type UpdatedBy1 = {
type: "user";
id: string;
};
export type UpdatedBy = UpdatedBy1 | UpdatedBy2;
export declare const CreateConnectorType: {
readonly ApiKey: "api-key";
readonly Custom: "custom";
readonly Github: "github";
readonly Linear: "linear";
readonly Oauth: "oauth";
readonly Salesforce: "salesforce";
readonly Slack: "slack";
readonly Snowflake: "snowflake";
readonly SnowflakeWif: "snowflake-wif";
};
export type CreateConnectorType = ClosedEnum<typeof CreateConnectorType>;
export type AppTokens = {
crossInstallation: boolean;
supportsRefinement: boolean;
/**
* True when changing app token grants requires reinstalling the app, so tokens cannot be partitioned independently by requester environment.
*/
requiresReinstallation?: boolean | undefined;
/**
* Known allowed app-level scopes. For Slack this is the bot scope set configured on the app; for OAuth it is `scopes_supported` from the server's discovery document.
*/
scopes?: Array<string> | undefined;
supportedAuthorizationDetails?: Array<string> | undefined;
};
export type UserTokens = {
crossInstallation: boolean;
supportsRefinement: boolean;
/**
* Known allowed user-level scopes. For Slack this is the user scope set configured on the app; for OAuth it is `scopes_supported` from the server's discovery document.
*/
scopes?: Array<string> | undefined;
supportedAuthorizationDetails?: Array<string> | undefined;
};
export declare const SupportsIcon: {
readonly False: "false";
readonly Maybe: "maybe";
readonly True: "true";
};
export type SupportsIcon = ClosedEnum<typeof SupportsIcon>;
/**
* Incoming trigger configuration. Only present when enabled.
*/
export type Triggers = {
enabled: boolean;
};
/**
* Destinations that incoming triggers should be forwarded to. Limited to `MAX_CONNEX_TRIGGER_DESTINATIONS` entries.
*/
export type TriggerDestinations = {
projectId: string;
branch?: string | undefined;
path?: string | undefined;
};
export type CreateConnectorProject = {
id: string;
name: string;
};
export declare const CreateConnectorEnvironments: {
readonly Development: "development";
readonly Preview: "preview";
readonly Production: "production";
};
export type CreateConnectorEnvironments = ClosedEnum<typeof CreateConnectorEnvironments>;
export type CreateConnectorItems = {
clientId: string;
projectId: string;
project?: CreateConnectorProject | undefined;
environments: Array<CreateConnectorEnvironments>;
createdAt: number;
updatedAt: number;
};
/**
* Set by `?include=projects`. Capped at 100 per client.
*/
export type CreateConnectorProjects = {
items: Array<CreateConnectorItems>;
hasMore: boolean;
cursor?: string | null | undefined;
};
/**
* Optional expansions populated by `?include=...` on the list endpoint.
*/
export type Includes = {
/**
* Set by `?include=projects`. Capped at 100 per client.
*/
projects?: CreateConnectorProjects | undefined;
};
export type CreateConnectorResponseBody = {
id: string;
ownerId: string;
createdAt: number;
updatedAt: number;
deletedAt?: number | undefined;
createdBy?: CreatedBy1 | CreatedBy2 | undefined;
updatedBy?: UpdatedBy1 | UpdatedBy2 | undefined;
public: boolean;
uid: string;
type: CreateConnectorType;
/**
* Best-effort identifier of the third-party service this client represents, independent of `type`. Examples: `'slack'`, `'mcp.linear.app'`, `'auth.example.com'`. Always non-empty on the API response — falls back through `storedClient.service ?? typeDef.service ?? typeDef.type`.
*/
service: string;
name: string;
clientUrl?: string | null | undefined;
/**
* Redirect URI registered with the third-party service for this client, if any. Used by `startAuthorization`/`startInstallation` to replay the exact URI back to the provider's token endpoint. Absent on clients created before this field was introduced; those callers fall back to the `https://connect.vercel.com/callback` default.
*/
redirectUri?: string | undefined;
defaultInstallationId?: string | undefined;
data: {
[k: string]: any;
};
typeName: string;
typeIcon?: string | undefined;
website?: string | undefined;
devsite?: string | undefined;
docsite?: string | undefined;
/**
* Client branding icon. SHA-1 hash that resolves to the uploaded icon via the Vercel avatar service. Clients render this with `https://vercel.com/api/www/avatar/{icon}`.
*/
icon?: string | undefined;
/**
* Hex background color (e.g., `#000000`) for branding.
*/
backgroundColor?: string | undefined;
/**
* Hex accent color (e.g., `#000000`) for branding.
*/
accentColor?: string | undefined;
supportedSubjectTypes: Array<string>;
appTokens?: AppTokens | undefined;
userTokens?: UserTokens | undefined;
supportsInstallation: boolean;
supportsRevocation: boolean;
ownerTenantId?: string | undefined;
/**
* Whether this client type supports trigger webhooks. Derived from the type definition; indicates that `triggers` and `triggerDestinations` may be meaningful for this client.
*/
supportsTriggers: boolean;
supportsIcon: SupportsIcon;
/**
* Incoming trigger configuration. Only present when enabled.
*/
triggers?: Triggers | undefined;
/**
* Known events this client subscribes to (e.g. Slack bot events, GitHub webhook events). Names are type-specific and validated by the managed-create flow when forwarded to the third-party service.
*/
events?: Array<string> | undefined;
/**
* Destinations that incoming triggers should be forwarded to. Limited to `MAX_CONNEX_TRIGGER_DESTINATIONS` entries.
*/
triggerDestinations?: Array<TriggerDestinations> | undefined;
/**
* Optional expansions populated by `?include=...` on the list endpoint.
*/
includes?: Includes | undefined;
};
/** @internal */
export type TypeSnowflakeWif$Outbound = {
clientName: string;
accountIdentifier?: string | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
/** @internal */
export declare const TypeSnowflakeWif$outboundSchema: z.ZodType<TypeSnowflakeWif$Outbound, z.ZodTypeDef, TypeSnowflakeWif>;
export declare function typeSnowflakeWifToJSON(typeSnowflakeWif: TypeSnowflakeWif): string;
/** @internal */
export type TypeSnowflake$Outbound = {
clientName: string;
accountIdentifier: string;
defaultSessionRole?: string | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
/** @internal */
export declare const TypeSnowflake$outboundSchema: z.ZodType<TypeSnowflake$Outbound, z.ZodTypeDef, TypeSnowflake>;
export declare function typeSnowflakeToJSON(typeSnowflake: TypeSnowflake): string;
/** @internal */
export type SlackTeam$Outbound = {
id: string;
name?: string | undefined;
domain?: string | undefined;
};
/** @internal */
export declare const SlackTeam$outboundSchema: z.ZodType<SlackTeam$Outbound, z.ZodTypeDef, SlackTeam>;
export declare function slackTeamToJSON(slackTeam: SlackTeam): string;
/** @internal */
export type TypeSlack$Outbound = {
appId: string;
appName: string;
clientId: string;
clientSecret: string;
slackTeam?: SlackTeam$Outbound | undefined;
signingSecret?: string | undefined;
verificationToken?: string | undefined;
botScopes?: Array<string> | undefined;
userScopes?: Array<string> | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
/** @internal */
export declare const TypeSlack$outboundSchema: z.ZodType<TypeSlack$Outbound, z.ZodTypeDef, TypeSlack>;
export declare function typeSlackToJSON(typeSlack: TypeSlack): string;
/** @internal */
export type TypeSalesforce$Outbound = {
consumerKey: string;
consumerSecret: string;
loginHost: string;
};
/** @internal */
export declare const TypeSalesforce$outboundSchema: z.ZodType<TypeSalesforce$Outbound, z.ZodTypeDef, TypeSalesforce>;
export declare function typeSalesforceToJSON(typeSalesforce: TypeSalesforce): string;
/** @internal */
export type OwnerOrganization$Outbound = {
id: string;
slug: string;
name: string;
logoUrl?: string | null | undefined;
};
/** @internal */
export declare const OwnerOrganization$outboundSchema: z.ZodType<OwnerOrganization$Outbound, z.ZodTypeDef, OwnerOrganization>;
export declare function ownerOrganizationToJSON(ownerOrganization: OwnerOrganization): string;
/** @internal */
export type Application$Outbound = {
id: string;
clientId: string;
name: string;
description?: string | null | undefined;
developer?: string | null | undefined;
developerUrl?: string | null | undefined;
imageUrl?: string | null | undefined;
redirectUris?: Array<string> | undefined;
distribution?: string | null | undefined;
webhookResourceTypes?: Array<string> | undefined;
webhookUrl?: string | null | undefined;
webhookEnabled?: boolean | undefined;
createdAt?: string | undefined;
updatedAt?: string | undefined;
};
/** @internal */
export declare const Application$outboundSchema: z.ZodType<Application$Outbound, z.ZodTypeDef, Application>;
export declare function applicationToJSON(application: Application): string;
/** @internal */
export type TypeLinear$Outbound = {
appId?: string | undefined;
appName?: string | undefined;
clientId: string;
clientSecret: string;
webhookSecret?: string | undefined;
appScopes?: Array<string> | undefined;
userScopes?: Array<string> | undefined;
ownerOrganization?: OwnerOrganization$Outbound | undefined;
application?: Application$Outbound | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
/** @internal */
export declare const TypeLinear$outboundSchema: z.ZodType<TypeLinear$Outbound, z.ZodTypeDef, TypeLinear>;
export declare function typeLinearToJSON(typeLinear: TypeLinear): string;
/** @internal */
export declare const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType>;
/** @internal */
export type Owner$Outbound = {
type: string;
id: number;
slug: string;
name?: string | undefined;
};
/** @internal */
export declare const Owner$outboundSchema: z.ZodType<Owner$Outbound, z.ZodTypeDef, Owner>;
export declare function ownerToJSON(owner: Owner): string;
/** @internal */
export type TypeGithub$Outbound = {
appId: number;
appSlug: string;
appName: string;
clientId: string;
owner?: Owner$Outbound | undefined;
clientSecret?: string | undefined;
privateKeyPem?: string | undefined;
webhookSecret?: string | undefined;
extras?: {
[k: string]: any;
} | undefined;
};
/** @internal */
export declare const TypeGithub$outboundSchema: z.ZodType<TypeGithub$Outbound, z.ZodTypeDef, TypeGithub>;
export declare function typeGithubToJSON(typeGithub: TypeGithub): string;
/** @internal */
export type Values$Outbound = {
value: string;
scope?: string | undefined;
expiresAt?: number | undefined;
};
/** @internal */
export declare const Values$outboundSchema: z.ZodType<Values$Outbound, z.ZodTypeDef, Values>;
export declare function valuesToJSON(values: Values): string;
/** @internal */
export type TypeApiKey$Outbound = {
values: Array<Values$Outbound>;
};
/** @internal */
export declare const TypeApiKey$outboundSchema: z.ZodType<TypeApiKey$Outbound, z.ZodTypeDef, TypeApiKey>;
export declare function typeApiKeyToJSON(typeApiKey: TypeApiKey): string;
/** @internal */
export declare const Use$outboundSchema: z.ZodNativeEnum<typeof Use>;
/** @internal */
export type Keys$Outbound = {
kty: string;
kid?: string | undefined;
use?: string | undefined;
key_ops?: Array<string> | undefined;
alg?: string | undefined;
[additionalProperties: string]: unknown;
};
/** @internal */
export declare const Keys$outboundSchema: z.ZodType<Keys$Outbound, z.ZodTypeDef, Keys>;
export declare function keysToJSON(keys: Keys): string;
/** @internal */
export type Jwks$Outbound = {
keys: Array<Keys$Outbound>;
[additionalProperties: string]: unknown;
};
/** @internal */
export declare const Jwks$outboundSchema: z.ZodType<Jwks$Outbound, z.ZodTypeDef, Jwks>;
export declare function jwksToJSON(jwks: Jwks): string;
/** @internal */
export type ServerConfig$Outbound = {
issuer?: string | undefined;
authorization_endpoint?: string | undefined;
token_endpoint?: string | undefined;
userinfo_endpoint?: string | undefined;
jwks_uri?: string | undefined;
jwks?: Jwks$Outbound | undefined;
revocation_endpoint?: string | undefined;
introspection_endpoint?: string | undefined;
end_session_endpoint?: string | undefined;
device_authorization_endpoint?: string | undefined;
registration_endpoint?: string | undefined;
response_types_supported?: Array<string> | undefined;
token_endpoint_auth_methods_supported?: Array<string> | undefined;
token_endpoint_auth_signing_alg_values_supported?: Array<string> | undefined;
scopes_supported?: Array<string> | undefined;
grant_types_supported?: Array<string> | undefined;
response_modes_supported?: Array<string> | undefined;
subject_types_supported?: Array<string> | undefined;
id_token_signing_alg_values_supported?: Array<string> | undefined;
id_token_encryption_alg_values_supported?: Array<string> | undefined;
id_token_encryption_enc_values_supported?: Array<string> | undefined;
claim_types_supported?: Array<string> | undefined;
claims_supported?: Array<string> | undefined;
code_challenge_methods_supported?: Array<string> | undefined;
prompt_values_supported?: Array<string> | undefined;
claims_parameter_supported?: boolean | undefined;
request_parameter_supported?: boolean | undefined;
request_uri_parameter_supported?: boolean | undefined;
require_request_uri_registration?: boolean | undefined;
service_documentation?: string | undefined;
op_policy_uri?: string | undefined;
op_tos_uri?: string | undefined;
logo_uri?: string | undefined;
client_id_metadata_document_supported?: boolean | undefined;
authorization_details_types_supported?: Array<string> | undefined;
[additionalProperties: string]: unknown;
};
/** @internal */
export declare const ServerConfig$outboundSchema: z.ZodType<ServerConfig$Outbound, z.ZodTypeDef, ServerConfig>;
export declare function serverConfigToJSON(serverConfig: ServerConfig): string;
/** @internal */
export type UserAuthorization$Outbound = {
enabled: boolean;
scopes?: Array<string> | undefined;
};
/** @internal */
export declare const UserAuthorization$outboundSchema: z.ZodType<UserAuthorization$Outbound, z.ZodTypeDef, UserAuthorization>;
export declare function userAuthorizationToJSON(userAuthorization: UserAuthorization): string;
/** @internal */
export type RefreshTokens$Outbound = {
enabled: boolean;
};
/** @internal */
export declare const RefreshTokens$outboundSchema: z.ZodType<RefreshTokens$Outbound, z.ZodTypeDef, RefreshTokens>;
export declare function refreshTokensToJSON(refreshTokens: RefreshTokens): string;
/** @internal */
export type ClientCredentials$Outbound = {
enabled: boolean;
scopes?: Array<string> | undefined;
};
/** @internal */
export declare const ClientCredentials$outboundSchema: z.ZodType<ClientCredentials$Outbound, z.ZodTypeDef, ClientCredentials>;
export declare function clientCredentialsToJSON(clientCredentials: ClientCredentials): string;
/** @internal */
export type JwtBearer$Outbound = {
enabled?: boolean | undefined;
scopes?: Array<string> | undefined;
sub?: string | undefined;
iss?: string | undefined;
aud?: string | undefined;
additionalClaims?: {
[k: string]: any;
} | undefined;
ttl?: number | undefined;
useClientCredentials?: boolean | undefined;
};
/** @internal */
export declare const JwtBearer$outboundSchema: z.ZodType<JwtBearer$Outbound, z.ZodTypeDef, JwtBearer>;
export declare function jwtBearerToJSON(jwtBearer: JwtBearer): string;
/** @internal */
export type TypeOauth$Outbound = {
serverUrl?: string | undefined;
serverConfig?: ServerConfig$Outbound | undefined;
clientId: string;
clientSecret?: string | undefined;
tokenEndpointAuthMethod: string;
responseType?: string | undefined;
pkceRequired?: boolean | undefined;
codeChallengeMethod?: string | undefined;
userAuthorization?: UserAuthorization$Outbound | undefined;
refreshTokens?: RefreshTokens$Outbound | undefined;
clientCredentials?: ClientCredentials$Outbound | undefined;
defaultAudience?: string | undefined;
authorizationUrlParams?: {
[k: string]: string;
} | undefined;
jwtBearer?: JwtBearer$Outbound | undefined;
};
/** @internal */
export declare const TypeOauth$outboundSchema: z.ZodType<TypeOauth$Outbound, z.ZodTypeDef, TypeOauth>;
export declare function typeOauthToJSON(typeOauth: TypeOauth): string;
/** @internal */
export type CreateConnectorData$Outbound = TypeGithub$Outbound | TypeSlack$Outbound | TypeSalesforce$Outbound | TypeLinear$Outbound | TypeSnowflake$Outbound | TypeOauth$Outbound | TypeApiKey$Outbound | TypeSnowflakeWif$Outbound | {
[k: string]: any;
};
/** @internal */
export declare const CreateConnectorData$outboundSchema: z.ZodType<CreateConnectorData$Outbound, z.ZodTypeDef, CreateConnectorData>;
export declare function createConnectorDataToJSON(createConnectorData: CreateConnectorData): string;
/** @internal */
export type CreateConnectorRequestBody$Outbound = {
type: string;
service?: string | undefined;
uid?: string | undefined;
name?: string | undefined;
projectId?: string | undefined;
environments?: Array<string> | undefined;
triggers?: boolean | undefined;
events?: Array<string> | undefined;
icon?: string | undefined;
backgroundColor?: string | undefined;
accentColor?: string | undefined;
data: TypeGithub$Outbound | TypeSlack$Outbound | TypeSalesforce$Outbound | TypeLinear$Outbound | TypeSnowflake$Outbound | TypeOauth$Outbound | TypeApiKey$Outbound | TypeSnowflakeWif$Outbound | {
[k: string]: any;
};
};
/** @internal */
export declare const CreateConnectorRequestBody$outboundSchema: z.ZodType<CreateConnectorRequestBody$Outbound, z.ZodTypeDef, CreateConnectorRequestBody>;
export declare function createConnectorRequestBodyToJSON(createConnectorRequestBody: CreateConnectorRequestBody): string;
/** @internal */
export declare const CreatedByEnvironment$inboundSchema: z.ZodNativeEnum<typeof CreatedByEnvironment>;
/** @internal */
export declare const CreatedBy2$inboundSchema: z.ZodType<CreatedBy2, z.ZodTypeDef, unknown>;
export declare function createdBy2FromJSON(jsonString: string): SafeParseResult<CreatedBy2, SDKValidationError>;
/** @internal */
export declare const CreatedBy1$inboundSchema: z.ZodType<CreatedBy1, z.ZodTypeDef, unknown>;
export declare function createdBy1FromJSON(jsonString: string): SafeParseResult<CreatedBy1, SDKValidationError>;
/** @internal */
export declare const CreatedBy$inboundSchema: z.ZodType<CreatedBy, z.ZodTypeDef, unknown>;
export declare function createdByFromJSON(jsonString: string): SafeParseResult<CreatedBy, SDKValidationError>;
/** @internal */
export declare const UpdatedByEnvironment$inboundSchema: z.ZodNativeEnum<typeof UpdatedByEnvironment>;
/** @internal */
export declare const UpdatedBy2$inboundSchema: z.ZodType<UpdatedBy2, z.ZodTypeDef, unknown>;
export declare function updatedBy2FromJSON(jsonString: string): SafeParseResult<UpdatedBy2, SDKValidationError>;
/** @internal */
export declare const UpdatedBy1$inboundSchema: z.ZodType<UpdatedBy1, z.ZodTypeDef, unknown>;
export declare function updatedBy1FromJSON(jsonString: string): SafeParseResult<UpdatedBy1, SDKValidationError>;
/** @internal */
export declare const UpdatedBy$inboundSchema: z.ZodType<UpdatedBy, z.ZodTypeDef, unknown>;
export declare function updatedByFromJSON(jsonString: string): SafeParseResult<UpdatedBy, SDKValidationError>;
/** @internal */
export declare const CreateConnectorType$inboundSchema: z.ZodNativeEnum<typeof CreateConnectorType>;
/** @internal */
export declare const AppTokens$inboundSchema: z.ZodType<AppTokens, z.ZodTypeDef, unknown>;
export declare function appTokensFromJSON(jsonString: string): SafeParseResult<AppTokens, SDKValidationError>;
/** @internal */
export declare const UserTokens$inboundSchema: z.ZodType<UserTokens, z.ZodTypeDef, unknown>;
export declare function userTokensFromJSON(jsonString: string): SafeParseResult<UserTokens, SDKValidationError>;
/** @internal */
export declare const SupportsIcon$inboundSchema: z.ZodNativeEnum<typeof SupportsIcon>;
/** @internal */
export declare const Triggers$inboundSchema: z.ZodType<Triggers, z.ZodTypeDef, unknown>;
export declare function triggersFromJSON(jsonString: string): SafeParseResult<Triggers, SDKValidationError>;
/** @internal */
export declare const TriggerDestinations$inboundSchema: z.ZodType<TriggerDestinations, z.ZodTypeDef, unknown>;
export declare function triggerDestinationsFromJSON(jsonString: string): SafeParseResult<TriggerDestinations, SDKValidationError>;
/** @internal */
export declare const CreateConnectorProject$inboundSchema: z.ZodType<CreateConnectorProject, z.ZodTypeDef, unknown>;
export declare function createConnectorProjectFromJSON(jsonString: string): SafeParseResult<CreateConnectorProject, SDKValidationError>;
/** @internal */
export declare const CreateConnectorEnvironments$inboundSchema: z.ZodNativeEnum<typeof CreateConnectorEnvironments>;
/** @internal */
export declare const CreateConnectorItems$inboundSchema: z.ZodType<CreateConnectorItems, z.ZodTypeDef, unknown>;
export declare function createConnectorItemsFromJSON(jsonString: string): SafeParseResult<CreateConnectorItems, SDKValidationError>;
/** @internal */
export declare const CreateConnectorProjects$inboundSchema: z.ZodType<CreateConnectorProjects, z.ZodTypeDef, unknown>;
export declare function createConnectorProjectsFromJSON(jsonString: string): SafeParseResult<CreateConnectorProjects, SDKValidationError>;
/** @internal */
export declare const Includes$inboundSchema: z.ZodType<Includes, z.ZodTypeDef, unknown>;
export declare function includesFromJSON(jsonString: string): SafeParseResult<Includes, SDKValidationError>;
/** @internal */
export declare const CreateConnectorResponseBody$inboundSchema: z.ZodType<CreateConnectorResponseBody, z.ZodTypeDef, unknown>;
export declare function createConnectorResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateConnectorResponseBody, SDKValidationError>;
//# sourceMappingURL=createconnectorop.d.ts.map