import { z } from 'zod'; import { AppConnectionScope, AppConnectionType } from '../app-connection'; import { OAuth2AuthorizationMethod } from '../oauth2-authorization-method'; export declare const BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE = "both_client_credentials_and_authorization_code"; export declare enum OAuth2GrantType { AUTHORIZATION_CODE = "authorization_code", CLIENT_CREDENTIALS = "client_credentials" } export declare const UpsertCustomAuthRequest: z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ type: z.ZodLiteral; props: z.ZodRecord; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>; export declare const UpsertNoAuthRequest: z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ type: z.ZodLiteral; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>; export declare const UpsertPlatformOAuth2Request: z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ props: z.ZodOptional>; type: z.ZodLiteral; redirect_url: z.ZodString; client_id: z.ZodString; code: z.ZodString; code_challenge: z.ZodOptional; scope: z.ZodString; authorization_method: z.ZodOptional>; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>; export declare const UpsertCloudOAuth2Request: z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ props: z.ZodOptional>; scope: z.ZodString; type: z.ZodLiteral; client_id: z.ZodString; code: z.ZodString; code_challenge: z.ZodOptional; authorization_method: z.ZodOptional>; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>; export declare const UpsertSecretTextRequest: z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ type: z.ZodLiteral; secret_text: z.ZodString; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>; export declare const UpsertOAuth2Request: z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ client_secret: z.ZodString; grant_type: z.ZodOptional>; props: z.ZodOptional>; authorization_method: z.ZodOptional>; redirect_url: z.ZodString; type: z.ZodLiteral; client_id: z.ZodString; code: z.ZodString; code_challenge: z.ZodOptional; scope: z.ZodString; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>; export declare const UpsertBasicAuthRequest: z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ username: z.ZodString; password: z.ZodString; type: z.ZodLiteral; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>; export declare const UpsertAppConnectionRequestBody: z.ZodUnion; value: z.ZodObject<{ type: z.ZodLiteral; secret_text: z.ZodString; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ client_secret: z.ZodString; grant_type: z.ZodOptional>; props: z.ZodOptional>; authorization_method: z.ZodOptional>; redirect_url: z.ZodString; type: z.ZodLiteral; client_id: z.ZodString; code: z.ZodString; code_challenge: z.ZodOptional; scope: z.ZodString; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ props: z.ZodOptional>; scope: z.ZodString; type: z.ZodLiteral; client_id: z.ZodString; code: z.ZodString; code_challenge: z.ZodOptional; authorization_method: z.ZodOptional>; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ props: z.ZodOptional>; type: z.ZodLiteral; redirect_url: z.ZodString; client_id: z.ZodString; code: z.ZodString; code_challenge: z.ZodOptional; scope: z.ZodString; authorization_method: z.ZodOptional>; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ username: z.ZodString; password: z.ZodString; type: z.ZodLiteral; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ type: z.ZodLiteral; props: z.ZodRecord; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; value: z.ZodObject<{ type: z.ZodLiteral; }, z.core.$strip>; externalId: z.ZodString; displayName: z.ZodString; pieceName: z.ZodString; projectId: z.ZodString; metadata: z.ZodOptional>; pieceVersion: z.ZodOptional; }, z.core.$strip>]>; export type UpsertCloudOAuth2Request = z.infer; export type UpsertPlatformOAuth2Request = z.infer; export type UpsertOAuth2Request = z.infer; export type UpsertSecretTextRequest = z.infer; export type UpsertBasicAuthRequest = z.infer; export type UpsertCustomAuthRequest = z.infer; export type UpsertNoAuthRequest = z.infer; export type UpsertAppConnectionRequestBody = z.infer; export declare const UpdateConnectionValueRequestBody: z.ZodObject<{ displayName: z.ZodString; metadata: z.ZodOptional>; }, z.core.$strip>; export declare const UpdateGlobalConnectionValueRequestBody: z.ZodObject<{ displayName: z.ZodString; projectIds: z.ZodOptional>; metadata: z.ZodOptional>; preSelectForNewProjects: z.ZodOptional; }, z.core.$strip>; export type UpdateConnectionValueRequestBody = z.infer; export type UpdateGlobalConnectionValueRequestBody = z.infer; export declare const UpsertGlobalConnectionRequestBody: z.ZodUnion; secret_text: z.ZodString; }, z.core.$strip>; pieceName: z.ZodString; type: z.ZodLiteral; displayName: z.ZodString; pieceVersion: z.ZodOptional; scope: z.ZodLiteral; projectIds: z.ZodArray; externalId: z.ZodOptional; metadata: z.ZodOptional>; preSelectForNewProjects: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ value: z.ZodObject<{ client_secret: z.ZodString; grant_type: z.ZodOptional>; props: z.ZodOptional>; authorization_method: z.ZodOptional>; redirect_url: z.ZodString; type: z.ZodLiteral; client_id: z.ZodString; code: z.ZodString; code_challenge: z.ZodOptional; scope: z.ZodString; }, z.core.$strip>; pieceName: z.ZodString; type: z.ZodLiteral; displayName: z.ZodString; pieceVersion: z.ZodOptional; scope: z.ZodLiteral; projectIds: z.ZodArray; externalId: z.ZodOptional; metadata: z.ZodOptional>; preSelectForNewProjects: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ value: z.ZodObject<{ props: z.ZodOptional>; scope: z.ZodString; type: z.ZodLiteral; client_id: z.ZodString; code: z.ZodString; code_challenge: z.ZodOptional; authorization_method: z.ZodOptional>; }, z.core.$strip>; pieceName: z.ZodString; type: z.ZodLiteral; displayName: z.ZodString; pieceVersion: z.ZodOptional; scope: z.ZodLiteral; projectIds: z.ZodArray; externalId: z.ZodOptional; metadata: z.ZodOptional>; preSelectForNewProjects: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ value: z.ZodObject<{ props: z.ZodOptional>; type: z.ZodLiteral; redirect_url: z.ZodString; client_id: z.ZodString; code: z.ZodString; code_challenge: z.ZodOptional; scope: z.ZodString; authorization_method: z.ZodOptional>; }, z.core.$strip>; pieceName: z.ZodString; type: z.ZodLiteral; displayName: z.ZodString; pieceVersion: z.ZodOptional; scope: z.ZodLiteral; projectIds: z.ZodArray; externalId: z.ZodOptional; metadata: z.ZodOptional>; preSelectForNewProjects: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ value: z.ZodObject<{ username: z.ZodString; password: z.ZodString; type: z.ZodLiteral; }, z.core.$strip>; pieceName: z.ZodString; type: z.ZodLiteral; displayName: z.ZodString; pieceVersion: z.ZodOptional; scope: z.ZodLiteral; projectIds: z.ZodArray; externalId: z.ZodOptional; metadata: z.ZodOptional>; preSelectForNewProjects: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ value: z.ZodObject<{ type: z.ZodLiteral; props: z.ZodRecord; }, z.core.$strip>; pieceName: z.ZodString; type: z.ZodLiteral; displayName: z.ZodString; pieceVersion: z.ZodOptional; scope: z.ZodLiteral; projectIds: z.ZodArray; externalId: z.ZodOptional; metadata: z.ZodOptional>; preSelectForNewProjects: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ value: z.ZodObject<{ type: z.ZodLiteral; }, z.core.$strip>; pieceName: z.ZodString; type: z.ZodLiteral; displayName: z.ZodString; pieceVersion: z.ZodOptional; scope: z.ZodLiteral; projectIds: z.ZodArray; externalId: z.ZodOptional; metadata: z.ZodOptional>; preSelectForNewProjects: z.ZodOptional; }, z.core.$strip>]>; export type UpsertGlobalConnectionRequestBody = z.infer; export declare const GetOAuth2AuthorizationUrlRequestBody: z.ZodObject<{ pieceName: z.ZodString; pieceVersion: z.ZodOptional; projectId: z.ZodOptional; clientId: z.ZodString; redirectUrl: z.ZodString; props: z.ZodOptional>; }, z.core.$strip>; export type GetOAuth2AuthorizationUrlRequestBody = z.infer; export declare const GetOAuth2AuthorizationUrlResponse: z.ZodObject<{ authorizationUrl: z.ZodString; codeVerifier: z.ZodOptional; }, z.core.$strip>; export type GetOAuth2AuthorizationUrlResponse = z.infer; export declare const ReplaceAppConnectionsRequestBody: z.ZodObject<{ sourceAppConnectionId: z.ZodString; targetAppConnectionId: z.ZodString; projectId: z.ZodString; }, z.core.$strip>; export type ReplaceAppConnectionsRequestBody = z.infer; export declare const ListFlowsFromAppConnectionRequestQuery: z.ZodObject<{ sourceAppConnectionIds: z.ZodArray; projectId: z.ZodString; }, z.core.$strip>; export type ListFlowsFromAppConnectionRequestQuery = z.infer; //# sourceMappingURL=upsert-app-connection-request.d.ts.map