import * as z from "zod/v3"; import { GroupPreferenceFilterDto, GroupPreferenceFilterDto$Outbound } from "./grouppreferencefilterdto.js"; import { TopicSubscriberIdentifierDto, TopicSubscriberIdentifierDto$Outbound } from "./topicsubscriberidentifierdto.js"; import { WorkflowPreferenceRequestDto, WorkflowPreferenceRequestDto$Outbound } from "./workflowpreferencerequestdto.js"; export type Subscriptions = TopicSubscriberIdentifierDto | string; /** * Rich context object with id and optional data */ export type CreateTopicSubscriptionsRequestDtoContext2 = { id: string; /** * Optional additional context data */ data?: { [k: string]: any; } | undefined; }; export type CreateTopicSubscriptionsRequestDtoContext = CreateTopicSubscriptionsRequestDtoContext2 | string; export type Preferences = WorkflowPreferenceRequestDto | GroupPreferenceFilterDto | string; export type CreateTopicSubscriptionsRequestDto = { /** * List of subscriber IDs to subscribe to the topic (max: 100). @deprecated Use the "subscriptions" property instead. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ subscriberIds?: Array | undefined; /** * List of subscriptions to subscribe to the topic (max: 100). Can be either a string array of subscriber IDs or an array of objects with identifier and subscriberId */ subscriptions?: Array | undefined; /** * The name of the topic */ name?: string | undefined; context?: { [k: string]: CreateTopicSubscriptionsRequestDtoContext2 | string; } | undefined; /** * The preferences of the topic. Can be a simple workflow ID string, workflow preference object, or group filter object */ preferences?: Array | undefined; }; /** @internal */ export type Subscriptions$Outbound = TopicSubscriberIdentifierDto$Outbound | string; /** @internal */ export declare const Subscriptions$outboundSchema: z.ZodType; export declare function subscriptionsToJSON(subscriptions: Subscriptions): string; /** @internal */ export type CreateTopicSubscriptionsRequestDtoContext2$Outbound = { id: string; data?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const CreateTopicSubscriptionsRequestDtoContext2$outboundSchema: z.ZodType; export declare function createTopicSubscriptionsRequestDtoContext2ToJSON(createTopicSubscriptionsRequestDtoContext2: CreateTopicSubscriptionsRequestDtoContext2): string; /** @internal */ export type CreateTopicSubscriptionsRequestDtoContext$Outbound = CreateTopicSubscriptionsRequestDtoContext2$Outbound | string; /** @internal */ export declare const CreateTopicSubscriptionsRequestDtoContext$outboundSchema: z.ZodType; export declare function createTopicSubscriptionsRequestDtoContextToJSON(createTopicSubscriptionsRequestDtoContext: CreateTopicSubscriptionsRequestDtoContext): string; /** @internal */ export type Preferences$Outbound = WorkflowPreferenceRequestDto$Outbound | GroupPreferenceFilterDto$Outbound | string; /** @internal */ export declare const Preferences$outboundSchema: z.ZodType; export declare function preferencesToJSON(preferences: Preferences): string; /** @internal */ export type CreateTopicSubscriptionsRequestDto$Outbound = { subscriberIds?: Array | undefined; subscriptions?: Array | undefined; name?: string | undefined; context?: { [k: string]: CreateTopicSubscriptionsRequestDtoContext2$Outbound | string; } | undefined; preferences?: Array | undefined; }; /** @internal */ export declare const CreateTopicSubscriptionsRequestDto$outboundSchema: z.ZodType; export declare function createTopicSubscriptionsRequestDtoToJSON(createTopicSubscriptionsRequestDto: CreateTopicSubscriptionsRequestDto): string; //# sourceMappingURL=createtopicsubscriptionsrequestdto.d.ts.map