import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { AuthDto, AuthDto$Outbound } from "./authdto.js"; import { WorkspaceDto, WorkspaceDto$Outbound } from "./workspacedto.js"; /** * Rich context object with id and optional data */ export type CreateChannelConnectionRequestDtoContext2 = { id: string; /** * Optional additional context data */ data?: { [k: string]: any; } | undefined; }; export type CreateChannelConnectionRequestDtoContext = CreateChannelConnectionRequestDtoContext2 | string; /** * Connection mode that determines how the channel connection is scoped. Use "subscriber" (default) to associate the connection with a specific subscriber. Use "shared" to associate the connection with a context instead of a subscriber — subscriberId will not be stored on the connection. */ export declare const ConnectionMode: { readonly Subscriber: "subscriber"; readonly Shared: "shared"; }; /** * Connection mode that determines how the channel connection is scoped. Use "subscriber" (default) to associate the connection with a specific subscriber. Use "shared" to associate the connection with a context instead of a subscriber — subscriberId will not be stored on the connection. */ export type ConnectionMode = ClosedEnum; export type CreateChannelConnectionRequestDto = { /** * The unique identifier for the channel connection. If not provided, one will be generated automatically. */ identifier?: string | undefined; /** * The subscriber ID to link the channel connection to */ subscriberId?: string | undefined; context?: { [k: string]: CreateChannelConnectionRequestDtoContext2 | string; } | undefined; /** * Connection mode that determines how the channel connection is scoped. Use "subscriber" (default) to associate the connection with a specific subscriber. Use "shared" to associate the connection with a context instead of a subscriber — subscriberId will not be stored on the connection. */ connectionMode?: ConnectionMode | undefined; /** * The identifier of the integration to use for this channel connection. */ integrationIdentifier: string; workspace: WorkspaceDto; auth: AuthDto; }; /** @internal */ export type CreateChannelConnectionRequestDtoContext2$Outbound = { id: string; data?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const CreateChannelConnectionRequestDtoContext2$outboundSchema: z.ZodType; export declare function createChannelConnectionRequestDtoContext2ToJSON(createChannelConnectionRequestDtoContext2: CreateChannelConnectionRequestDtoContext2): string; /** @internal */ export type CreateChannelConnectionRequestDtoContext$Outbound = CreateChannelConnectionRequestDtoContext2$Outbound | string; /** @internal */ export declare const CreateChannelConnectionRequestDtoContext$outboundSchema: z.ZodType; export declare function createChannelConnectionRequestDtoContextToJSON(createChannelConnectionRequestDtoContext: CreateChannelConnectionRequestDtoContext): string; /** @internal */ export declare const ConnectionMode$outboundSchema: z.ZodNativeEnum; /** @internal */ export type CreateChannelConnectionRequestDto$Outbound = { identifier?: string | undefined; subscriberId?: string | undefined; context?: { [k: string]: CreateChannelConnectionRequestDtoContext2$Outbound | string; } | undefined; connectionMode?: string | undefined; integrationIdentifier: string; workspace: WorkspaceDto$Outbound; auth: AuthDto$Outbound; }; /** @internal */ export declare const CreateChannelConnectionRequestDto$outboundSchema: z.ZodType; export declare function createChannelConnectionRequestDtoToJSON(createChannelConnectionRequestDto: CreateChannelConnectionRequestDto): string; //# sourceMappingURL=createchannelconnectionrequestdto.d.ts.map