UNPKG

@meeting-baas/sdk

Version:

Official SDK for Meeting BaaS API - https://meetingbaas.com

731 lines (725 loc) 91.1 kB
#!/usr/bin/env node "use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __esm = (fn, res) => function __init() { return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/generated/api/calendars/calendars.zod.ts var calendars_zod_exports = {}; __export(calendars_zod_exports, { createCalendarBody: () => createCalendarBody, createCalendarResponse: () => createCalendarResponse, deleteCalendarParams: () => deleteCalendarParams, getCalendarParams: () => getCalendarParams, getCalendarResponse: () => getCalendarResponse, getEventParams: () => getEventParams, getEventResponse: () => getEventResponse, listCalendarsResponse: () => listCalendarsResponse, listCalendarsResponseItem: () => listCalendarsResponseItem, listEventsQueryParams: () => listEventsQueryParams, listEventsResponse: () => listEventsResponse, listRawCalendarsBody: () => listRawCalendarsBody, listRawCalendarsResponse: () => listRawCalendarsResponse, patchBotBody: () => patchBotBody, patchBotBodyBotImageDefault: () => patchBotBodyBotImageDefault, patchBotBodyDeduplicationKeyDefault: () => patchBotBodyDeduplicationKeyDefault, patchBotBodyEnterMessageDefault: () => patchBotBodyEnterMessageDefault, patchBotBodyExtraDefault: () => patchBotBodyExtraDefault, patchBotBodyNooneJoinedTimeoutDefault: () => patchBotBodyNooneJoinedTimeoutDefault, patchBotBodySpeechToTextDefault: () => patchBotBodySpeechToTextDefault, patchBotBodyStreamingAudioFrequencyDefault: () => patchBotBodyStreamingAudioFrequencyDefault, patchBotBodyStreamingInputDefault: () => patchBotBodyStreamingInputDefault, patchBotBodyStreamingOutputDefault: () => patchBotBodyStreamingOutputDefault, patchBotBodyTranscriptionCustomParametersDefault: () => patchBotBodyTranscriptionCustomParametersDefault, patchBotBodyWaitingRoomTimeoutDefault: () => patchBotBodyWaitingRoomTimeoutDefault, patchBotBodyZoomSdkIdDefault: () => patchBotBodyZoomSdkIdDefault, patchBotBodyZoomSdkPwdDefault: () => patchBotBodyZoomSdkPwdDefault, patchBotParams: () => patchBotParams, patchBotQueryParams: () => patchBotQueryParams, patchBotResponse: () => patchBotResponse, patchBotResponseItem: () => patchBotResponseItem, resyncAllResponse: () => resyncAllResponse, resyncAllResponseErrorsItemMax: () => resyncAllResponseErrorsItemMax, resyncAllResponseErrorsItemMin: () => resyncAllResponseErrorsItemMin, scheduleRecordEventBody: () => scheduleRecordEventBody, scheduleRecordEventParams: () => scheduleRecordEventParams, scheduleRecordEventQueryParams: () => scheduleRecordEventQueryParams, scheduleRecordEventResponse: () => scheduleRecordEventResponse, scheduleRecordEventResponseItem: () => scheduleRecordEventResponseItem, unscheduleRecordEventParams: () => unscheduleRecordEventParams, unscheduleRecordEventQueryParams: () => unscheduleRecordEventQueryParams, unscheduleRecordEventResponse: () => unscheduleRecordEventResponse, unscheduleRecordEventResponseItem: () => unscheduleRecordEventResponseItem, updateCalendarBody: () => updateCalendarBody, updateCalendarParams: () => updateCalendarParams, updateCalendarResponse: () => updateCalendarResponse }); var import_zod, resyncAllResponseErrorsItemMin, resyncAllResponseErrorsItemMax, resyncAllResponse, listRawCalendarsBody, listRawCalendarsResponse, listCalendarsResponseItem, listCalendarsResponse, createCalendarBody, createCalendarResponse, getCalendarParams, getCalendarResponse, deleteCalendarParams, updateCalendarParams, updateCalendarBody, updateCalendarResponse, getEventParams, getEventResponse, scheduleRecordEventParams, scheduleRecordEventQueryParams, scheduleRecordEventBody, scheduleRecordEventResponseItem, scheduleRecordEventResponse, unscheduleRecordEventParams, unscheduleRecordEventQueryParams, unscheduleRecordEventResponseItem, unscheduleRecordEventResponse, patchBotParams, patchBotQueryParams, patchBotBodyBotImageDefault, patchBotBodyDeduplicationKeyDefault, patchBotBodyEnterMessageDefault, patchBotBodyExtraDefault, patchBotBodyNooneJoinedTimeoutDefault, patchBotBodySpeechToTextDefault, patchBotBodyStreamingAudioFrequencyDefault, patchBotBodyStreamingInputDefault, patchBotBodyStreamingOutputDefault, patchBotBodyTranscriptionCustomParametersDefault, patchBotBodyWaitingRoomTimeoutDefault, patchBotBodyZoomSdkIdDefault, patchBotBodyZoomSdkPwdDefault, patchBotBody, patchBotResponseItem, patchBotResponse, listEventsQueryParams, listEventsResponse; var init_calendars_zod = __esm({ "src/generated/api/calendars/calendars.zod.ts"() { "use strict"; import_zod = require("zod"); resyncAllResponseErrorsItemMin = 2; resyncAllResponseErrorsItemMax = 2; resyncAllResponse = import_zod.z.object({ errors: import_zod.z.array( import_zod.z.array(import_zod.z.record(import_zod.z.string(), import_zod.z.any())).min(resyncAllResponseErrorsItemMin).max(resyncAllResponseErrorsItemMax) ).describe("List of calendar UUIDs that failed to resync, with error messages"), synced_calendars: import_zod.z.array(import_zod.z.string().uuid()).describe("List of calendar UUIDs that were successfully resynced") }); listRawCalendarsBody = import_zod.z.object({ oauth_client_id: import_zod.z.string(), oauth_client_secret: import_zod.z.string(), oauth_refresh_token: import_zod.z.string(), platform: import_zod.z.enum(["Google", "Microsoft"]).describe( 'Fields with value `"simple"` parse as `Kind::Simple`. Fields with value `"fancy"` parse as `Kind::SoFancy`.' ) }); listRawCalendarsResponse = import_zod.z.object({ calendars: import_zod.z.array( import_zod.z.object({ email: import_zod.z.string(), id: import_zod.z.string(), is_primary: import_zod.z.boolean() }) ) }); listCalendarsResponseItem = import_zod.z.object({ email: import_zod.z.string(), google_id: import_zod.z.string(), name: import_zod.z.string(), resource_id: import_zod.z.string().nullish(), uuid: import_zod.z.string().uuid() }); listCalendarsResponse = import_zod.z.array(listCalendarsResponseItem); createCalendarBody = import_zod.z.object({ oauth_client_id: import_zod.z.string(), oauth_client_secret: import_zod.z.string(), oauth_refresh_token: import_zod.z.string(), platform: import_zod.z.enum(["Google", "Microsoft"]).describe( 'Fields with value `"simple"` parse as `Kind::Simple`. Fields with value `"fancy"` parse as `Kind::SoFancy`.' ), raw_calendar_id: import_zod.z.string().nullish() }); createCalendarResponse = import_zod.z.object({ calendar: import_zod.z.object({ email: import_zod.z.string(), google_id: import_zod.z.string(), name: import_zod.z.string(), resource_id: import_zod.z.string().nullish(), uuid: import_zod.z.string().uuid() }) }); getCalendarParams = import_zod.z.object({ uuid: import_zod.z.string().describe("The UUID identifier") }); getCalendarResponse = import_zod.z.object({ email: import_zod.z.string(), google_id: import_zod.z.string(), name: import_zod.z.string(), resource_id: import_zod.z.string().nullish(), uuid: import_zod.z.string().uuid() }); deleteCalendarParams = import_zod.z.object({ uuid: import_zod.z.string().describe("The UUID identifier") }); updateCalendarParams = import_zod.z.object({ uuid: import_zod.z.string().describe("The UUID identifier") }); updateCalendarBody = import_zod.z.object({ oauth_client_id: import_zod.z.string(), oauth_client_secret: import_zod.z.string(), oauth_refresh_token: import_zod.z.string(), platform: import_zod.z.enum(["Google", "Microsoft"]).describe( 'Fields with value `"simple"` parse as `Kind::Simple`. Fields with value `"fancy"` parse as `Kind::SoFancy`.' ) }); updateCalendarResponse = import_zod.z.object({ calendar: import_zod.z.object({ email: import_zod.z.string(), google_id: import_zod.z.string(), name: import_zod.z.string(), resource_id: import_zod.z.string().nullish(), uuid: import_zod.z.string().uuid() }) }); getEventParams = import_zod.z.object({ uuid: import_zod.z.string().describe("The UUID identifier") }); getEventResponse = import_zod.z.object({ attendees: import_zod.z.array( import_zod.z.object({ email: import_zod.z.string().describe("The email address of the meeting attendee"), name: import_zod.z.string().nullish().describe( "The display name of the attendee if available from the calendar provider (Google, Microsoft)" ) }) ), bot_param: import_zod.z.object({ bot_image: import_zod.z.string().nullish(), bot_name: import_zod.z.string(), deduplication_key: import_zod.z.string().nullish(), enter_message: import_zod.z.string().nullish(), extra: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), noone_joined_timeout: import_zod.z.number().nullish(), recording_mode: import_zod.z.enum(["speaker_view"]).describe("Records the active speaker view").or( import_zod.z.enum(["gallery_view"]).describe("Records the gallery view showing multiple participants") ).or(import_zod.z.enum(["audio_only"]).describe("Records only the audio from the meeting")).describe("Recording mode for the bot").or(import_zod.z.null()).optional(), speech_to_text_api_key: import_zod.z.string().nullish(), speech_to_text_provider: import_zod.z.enum(["Gladia", "Runpod", "Default"]).or(import_zod.z.null()).optional(), streaming_audio_frequency: import_zod.z.enum(["16khz", "24khz"]).or(import_zod.z.null()).optional(), streaming_input: import_zod.z.string().nullish(), streaming_output: import_zod.z.string().nullish(), transcription_custom_parameters: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), waiting_room_timeout: import_zod.z.number().nullish(), webhook_url: import_zod.z.string(), zoom_sdk_id: import_zod.z.string().nullish(), zoom_sdk_pwd: import_zod.z.string().nullish() }).or(import_zod.z.null()).optional().describe("Associated bot parameters if a bot is scheduled for this event"), calendar_uuid: import_zod.z.string().uuid(), deleted: import_zod.z.boolean().describe("Indicates whether this event has been deleted"), end_time: import_zod.z.string().datetime({}).describe("The end time of the event in UTC timezone"), google_id: import_zod.z.string().describe("The unique identifier of the event from the calendar provider (Google, Microsoft)"), is_organizer: import_zod.z.boolean().describe("Indicates whether the current user is the organizer of this event"), is_recurring: import_zod.z.boolean().describe("Indicates whether this event is part of a recurring series"), last_updated_at: import_zod.z.string().datetime({}).describe("The timestamp when this event was last updated"), meeting_url: import_zod.z.string().describe("The URL that can be used to join the meeting (if available)"), name: import_zod.z.string().describe("The title/name of the calendar event"), raw: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), recurring_event_id: import_zod.z.string().nullish().describe("For recurring events, the ID of the parent recurring event series (if applicable)"), start_time: import_zod.z.string().datetime({}).describe("The start time of the event in UTC timezone"), uuid: import_zod.z.string().uuid() }); scheduleRecordEventParams = import_zod.z.object({ uuid: import_zod.z.string().describe("The UUID identifier") }); scheduleRecordEventQueryParams = import_zod.z.object({ all_occurrences: import_zod.z.boolean().nullish().describe("schedule a bot to all occurences of a recurring event") }); scheduleRecordEventBody = import_zod.z.object({ bot_image: import_zod.z.string().nullish(), bot_name: import_zod.z.string(), deduplication_key: import_zod.z.string().nullish(), enter_message: import_zod.z.string().nullish(), extra: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), noone_joined_timeout: import_zod.z.number().nullish(), recording_mode: import_zod.z.enum(["speaker_view"]).describe("Records the active speaker view").or( import_zod.z.enum(["gallery_view"]).describe("Records the gallery view showing multiple participants") ).or(import_zod.z.enum(["audio_only"]).describe("Records only the audio from the meeting")).describe("Recording mode for the bot").or(import_zod.z.null()).optional(), speech_to_text: import_zod.z.object({ api_key: import_zod.z.string().nullish(), provider: import_zod.z.enum(["Gladia", "Runpod", "Default"]) }).or(import_zod.z.enum(["Gladia", "Runpod", "Default"])).or(import_zod.z.null()).optional(), streaming_audio_frequency: import_zod.z.enum(["16khz", "24khz"]).or(import_zod.z.null()).optional(), streaming_input: import_zod.z.string().nullish(), streaming_output: import_zod.z.string().nullish(), transcription_custom_parameters: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).optional().describe("Custom data object"), waiting_room_timeout: import_zod.z.number().nullish(), webhook_url: import_zod.z.string().nullish(), zoom_sdk_id: import_zod.z.string().nullish(), zoom_sdk_pwd: import_zod.z.string().nullish() }); scheduleRecordEventResponseItem = import_zod.z.object({ attendees: import_zod.z.array( import_zod.z.object({ email: import_zod.z.string().describe("The email address of the meeting attendee"), name: import_zod.z.string().nullish().describe( "The display name of the attendee if available from the calendar provider (Google, Microsoft)" ) }) ), bot_param: import_zod.z.object({ bot_image: import_zod.z.string().nullish(), bot_name: import_zod.z.string(), deduplication_key: import_zod.z.string().nullish(), enter_message: import_zod.z.string().nullish(), extra: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), noone_joined_timeout: import_zod.z.number().nullish(), recording_mode: import_zod.z.enum(["speaker_view"]).describe("Records the active speaker view").or( import_zod.z.enum(["gallery_view"]).describe("Records the gallery view showing multiple participants") ).or(import_zod.z.enum(["audio_only"]).describe("Records only the audio from the meeting")).describe("Recording mode for the bot").or(import_zod.z.null()).optional(), speech_to_text_api_key: import_zod.z.string().nullish(), speech_to_text_provider: import_zod.z.enum(["Gladia", "Runpod", "Default"]).or(import_zod.z.null()).optional(), streaming_audio_frequency: import_zod.z.enum(["16khz", "24khz"]).or(import_zod.z.null()).optional(), streaming_input: import_zod.z.string().nullish(), streaming_output: import_zod.z.string().nullish(), transcription_custom_parameters: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), waiting_room_timeout: import_zod.z.number().nullish(), webhook_url: import_zod.z.string(), zoom_sdk_id: import_zod.z.string().nullish(), zoom_sdk_pwd: import_zod.z.string().nullish() }).or(import_zod.z.null()).optional().describe("Associated bot parameters if a bot is scheduled for this event"), calendar_uuid: import_zod.z.string().uuid(), deleted: import_zod.z.boolean().describe("Indicates whether this event has been deleted"), end_time: import_zod.z.string().datetime({}).describe("The end time of the event in UTC timezone"), google_id: import_zod.z.string().describe("The unique identifier of the event from the calendar provider (Google, Microsoft)"), is_organizer: import_zod.z.boolean().describe("Indicates whether the current user is the organizer of this event"), is_recurring: import_zod.z.boolean().describe("Indicates whether this event is part of a recurring series"), last_updated_at: import_zod.z.string().datetime({}).describe("The timestamp when this event was last updated"), meeting_url: import_zod.z.string().describe("The URL that can be used to join the meeting (if available)"), name: import_zod.z.string().describe("The title/name of the calendar event"), raw: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), recurring_event_id: import_zod.z.string().nullish().describe("For recurring events, the ID of the parent recurring event series (if applicable)"), start_time: import_zod.z.string().datetime({}).describe("The start time of the event in UTC timezone"), uuid: import_zod.z.string().uuid() }); scheduleRecordEventResponse = import_zod.z.array(scheduleRecordEventResponseItem); unscheduleRecordEventParams = import_zod.z.object({ uuid: import_zod.z.string().describe("The UUID identifier") }); unscheduleRecordEventQueryParams = import_zod.z.object({ all_occurrences: import_zod.z.boolean().nullish().describe("unschedule a bot from all occurences of a recurring event") }); unscheduleRecordEventResponseItem = import_zod.z.object({ attendees: import_zod.z.array( import_zod.z.object({ email: import_zod.z.string().describe("The email address of the meeting attendee"), name: import_zod.z.string().nullish().describe( "The display name of the attendee if available from the calendar provider (Google, Microsoft)" ) }) ), bot_param: import_zod.z.object({ bot_image: import_zod.z.string().nullish(), bot_name: import_zod.z.string(), deduplication_key: import_zod.z.string().nullish(), enter_message: import_zod.z.string().nullish(), extra: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), noone_joined_timeout: import_zod.z.number().nullish(), recording_mode: import_zod.z.enum(["speaker_view"]).describe("Records the active speaker view").or( import_zod.z.enum(["gallery_view"]).describe("Records the gallery view showing multiple participants") ).or(import_zod.z.enum(["audio_only"]).describe("Records only the audio from the meeting")).describe("Recording mode for the bot").or(import_zod.z.null()).optional(), speech_to_text_api_key: import_zod.z.string().nullish(), speech_to_text_provider: import_zod.z.enum(["Gladia", "Runpod", "Default"]).or(import_zod.z.null()).optional(), streaming_audio_frequency: import_zod.z.enum(["16khz", "24khz"]).or(import_zod.z.null()).optional(), streaming_input: import_zod.z.string().nullish(), streaming_output: import_zod.z.string().nullish(), transcription_custom_parameters: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), waiting_room_timeout: import_zod.z.number().nullish(), webhook_url: import_zod.z.string(), zoom_sdk_id: import_zod.z.string().nullish(), zoom_sdk_pwd: import_zod.z.string().nullish() }).or(import_zod.z.null()).optional().describe("Associated bot parameters if a bot is scheduled for this event"), calendar_uuid: import_zod.z.string().uuid(), deleted: import_zod.z.boolean().describe("Indicates whether this event has been deleted"), end_time: import_zod.z.string().datetime({}).describe("The end time of the event in UTC timezone"), google_id: import_zod.z.string().describe("The unique identifier of the event from the calendar provider (Google, Microsoft)"), is_organizer: import_zod.z.boolean().describe("Indicates whether the current user is the organizer of this event"), is_recurring: import_zod.z.boolean().describe("Indicates whether this event is part of a recurring series"), last_updated_at: import_zod.z.string().datetime({}).describe("The timestamp when this event was last updated"), meeting_url: import_zod.z.string().describe("The URL that can be used to join the meeting (if available)"), name: import_zod.z.string().describe("The title/name of the calendar event"), raw: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), recurring_event_id: import_zod.z.string().nullish().describe("For recurring events, the ID of the parent recurring event series (if applicable)"), start_time: import_zod.z.string().datetime({}).describe("The start time of the event in UTC timezone"), uuid: import_zod.z.string().uuid() }); unscheduleRecordEventResponse = import_zod.z.array(unscheduleRecordEventResponseItem); patchBotParams = import_zod.z.object({ uuid: import_zod.z.string().describe("The UUID identifier") }); patchBotQueryParams = import_zod.z.object({ all_occurrences: import_zod.z.boolean().nullish().describe("schedule a bot to all occurences of a recurring event") }); patchBotBodyBotImageDefault = null; patchBotBodyDeduplicationKeyDefault = null; patchBotBodyEnterMessageDefault = null; patchBotBodyExtraDefault = null; patchBotBodyNooneJoinedTimeoutDefault = null; patchBotBodySpeechToTextDefault = null; patchBotBodyStreamingAudioFrequencyDefault = null; patchBotBodyStreamingInputDefault = null; patchBotBodyStreamingOutputDefault = null; patchBotBodyTranscriptionCustomParametersDefault = null; patchBotBodyWaitingRoomTimeoutDefault = null; patchBotBodyZoomSdkIdDefault = null; patchBotBodyZoomSdkPwdDefault = null; patchBotBody = import_zod.z.object({ bot_image: import_zod.z.string().nullish(), bot_name: import_zod.z.string().nullish(), deduplication_key: import_zod.z.string().nullish(), enter_message: import_zod.z.string().nullish(), extra: import_zod.z.any().optional(), noone_joined_timeout: import_zod.z.number().nullish(), recording_mode: import_zod.z.enum(["speaker_view"]).describe("Records the active speaker view").or( import_zod.z.enum(["gallery_view"]).describe("Records the gallery view showing multiple participants") ).or(import_zod.z.enum(["audio_only"]).describe("Records only the audio from the meeting")).describe("Recording mode for the bot").or(import_zod.z.null()).or(import_zod.z.null()).optional(), speech_to_text: import_zod.z.object({ api_key: import_zod.z.string().nullish(), provider: import_zod.z.enum(["Gladia", "Runpod", "Default"]) }).or(import_zod.z.enum(["Gladia", "Runpod", "Default"])).or(import_zod.z.null()).or(import_zod.z.null()).optional(), streaming_audio_frequency: import_zod.z.enum(["16khz", "24khz"]).or(import_zod.z.null()).or(import_zod.z.null()).optional(), streaming_input: import_zod.z.string().nullish(), streaming_output: import_zod.z.string().nullish(), transcription_custom_parameters: import_zod.z.any().optional(), waiting_room_timeout: import_zod.z.number().nullish(), webhook_url: import_zod.z.string().nullish(), zoom_sdk_id: import_zod.z.string().nullish(), zoom_sdk_pwd: import_zod.z.string().nullish() }); patchBotResponseItem = import_zod.z.object({ attendees: import_zod.z.array( import_zod.z.object({ email: import_zod.z.string().describe("The email address of the meeting attendee"), name: import_zod.z.string().nullish().describe( "The display name of the attendee if available from the calendar provider (Google, Microsoft)" ) }) ), bot_param: import_zod.z.object({ bot_image: import_zod.z.string().nullish(), bot_name: import_zod.z.string(), deduplication_key: import_zod.z.string().nullish(), enter_message: import_zod.z.string().nullish(), extra: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), noone_joined_timeout: import_zod.z.number().nullish(), recording_mode: import_zod.z.enum(["speaker_view"]).describe("Records the active speaker view").or( import_zod.z.enum(["gallery_view"]).describe("Records the gallery view showing multiple participants") ).or(import_zod.z.enum(["audio_only"]).describe("Records only the audio from the meeting")).describe("Recording mode for the bot").or(import_zod.z.null()).optional(), speech_to_text_api_key: import_zod.z.string().nullish(), speech_to_text_provider: import_zod.z.enum(["Gladia", "Runpod", "Default"]).or(import_zod.z.null()).optional(), streaming_audio_frequency: import_zod.z.enum(["16khz", "24khz"]).or(import_zod.z.null()).optional(), streaming_input: import_zod.z.string().nullish(), streaming_output: import_zod.z.string().nullish(), transcription_custom_parameters: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), waiting_room_timeout: import_zod.z.number().nullish(), webhook_url: import_zod.z.string(), zoom_sdk_id: import_zod.z.string().nullish(), zoom_sdk_pwd: import_zod.z.string().nullish() }).or(import_zod.z.null()).optional().describe("Associated bot parameters if a bot is scheduled for this event"), calendar_uuid: import_zod.z.string().uuid(), deleted: import_zod.z.boolean().describe("Indicates whether this event has been deleted"), end_time: import_zod.z.string().datetime({}).describe("The end time of the event in UTC timezone"), google_id: import_zod.z.string().describe("The unique identifier of the event from the calendar provider (Google, Microsoft)"), is_organizer: import_zod.z.boolean().describe("Indicates whether the current user is the organizer of this event"), is_recurring: import_zod.z.boolean().describe("Indicates whether this event is part of a recurring series"), last_updated_at: import_zod.z.string().datetime({}).describe("The timestamp when this event was last updated"), meeting_url: import_zod.z.string().describe("The URL that can be used to join the meeting (if available)"), name: import_zod.z.string().describe("The title/name of the calendar event"), raw: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), recurring_event_id: import_zod.z.string().nullish().describe("For recurring events, the ID of the parent recurring event series (if applicable)"), start_time: import_zod.z.string().datetime({}).describe("The start time of the event in UTC timezone"), uuid: import_zod.z.string().uuid() }); patchBotResponse = import_zod.z.array(patchBotResponseItem); listEventsQueryParams = import_zod.z.object({ attendee_email: import_zod.z.string().nullish().describe( `If provided, filters events to include only those with this attendee's email address Example: "jane.smith@example.com"` ), calendar_id: import_zod.z.string().describe( "Calendar ID to filter events by This is required to specify which calendar's events to retrieve" ), cursor: import_zod.z.string().nullish().describe( "Optional cursor for pagination This value is included in the `next` field of the previous response" ), organizer_email: import_zod.z.string().nullish().describe( `If provided, filters events to include only those with this organizer's email address Example: "john.doe@example.com"` ), start_date_gte: import_zod.z.string().nullish().describe( 'If provided, filters events to include only those with a start date greater than or equal to this timestamp Format: ISO-8601 string, e.g., "2023-01-01T00:00:00Z"' ), start_date_lte: import_zod.z.string().nullish().describe( 'If provided, filters events to include only those with a start date less than or equal to this timestamp Format: ISO-8601 string, e.g., "2023-12-31T23:59:59Z"' ), status: import_zod.z.string().nullish().describe( 'Filter events by meeting status Valid values: "upcoming" (default) returns events after current time, "past" returns previous events, "all" returns both' ), updated_at_gte: import_zod.z.string().nullish().describe( 'If provided, fetches only events updated at or after this timestamp Format: ISO-8601 string, e.g., "2023-01-01T00:00:00Z"' ) }); listEventsResponse = import_zod.z.object({ data: import_zod.z.array( import_zod.z.object({ attendees: import_zod.z.array( import_zod.z.object({ email: import_zod.z.string().describe("The email address of the meeting attendee"), name: import_zod.z.string().nullish().describe( "The display name of the attendee if available from the calendar provider (Google, Microsoft)" ) }) ), bot_param: import_zod.z.object({ bot_image: import_zod.z.string().nullish(), bot_name: import_zod.z.string(), deduplication_key: import_zod.z.string().nullish(), enter_message: import_zod.z.string().nullish(), extra: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), noone_joined_timeout: import_zod.z.number().nullish(), recording_mode: import_zod.z.enum(["speaker_view"]).describe("Records the active speaker view").or( import_zod.z.enum(["gallery_view"]).describe("Records the gallery view showing multiple participants") ).or(import_zod.z.enum(["audio_only"]).describe("Records only the audio from the meeting")).describe("Recording mode for the bot").or(import_zod.z.null()).optional(), speech_to_text_api_key: import_zod.z.string().nullish(), speech_to_text_provider: import_zod.z.enum(["Gladia", "Runpod", "Default"]).or(import_zod.z.null()).optional(), streaming_audio_frequency: import_zod.z.enum(["16khz", "24khz"]).or(import_zod.z.null()).optional(), streaming_input: import_zod.z.string().nullish(), streaming_output: import_zod.z.string().nullish(), transcription_custom_parameters: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), waiting_room_timeout: import_zod.z.number().nullish(), webhook_url: import_zod.z.string(), zoom_sdk_id: import_zod.z.string().nullish(), zoom_sdk_pwd: import_zod.z.string().nullish() }).or(import_zod.z.null()).optional().describe("Associated bot parameters if a bot is scheduled for this event"), calendar_uuid: import_zod.z.string().uuid(), deleted: import_zod.z.boolean().describe("Indicates whether this event has been deleted"), end_time: import_zod.z.string().datetime({}).describe("The end time of the event in UTC timezone"), google_id: import_zod.z.string().describe( "The unique identifier of the event from the calendar provider (Google, Microsoft)" ), is_organizer: import_zod.z.boolean().describe("Indicates whether the current user is the organizer of this event"), is_recurring: import_zod.z.boolean().describe("Indicates whether this event is part of a recurring series"), last_updated_at: import_zod.z.string().datetime({}).describe("The timestamp when this event was last updated"), meeting_url: import_zod.z.string().describe("The URL that can be used to join the meeting (if available)"), name: import_zod.z.string().describe("The title/name of the calendar event"), raw: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).describe("Custom data object"), recurring_event_id: import_zod.z.string().nullish().describe( "For recurring events, the ID of the parent recurring event series (if applicable)" ), start_time: import_zod.z.string().datetime({}).describe("The start time of the event in UTC timezone"), uuid: import_zod.z.string().uuid() }) ).describe("Vector of calendar events matching the list criteria"), next: import_zod.z.string().nullish().describe( "Optional url for fetching the next page of results if there are more results to fetch. The limit of events returned is 100. When None, there are no more results to fetch." ) }); } }); // src/generated/api/default/default.zod.ts var default_zod_exports = {}; __export(default_zod_exports, { botsWithMetadataQueryLimitDefault: () => botsWithMetadataQueryLimitDefault, botsWithMetadataQueryParams: () => botsWithMetadataQueryParams, botsWithMetadataResponse: () => botsWithMetadataResponse, botsWithMetadataResponseLastUpdatedDefault: () => botsWithMetadataResponseLastUpdatedDefault, deleteDataParams: () => deleteDataParams, deleteDataResponse: () => deleteDataResponse, getMeetingDataQueryIncludeTranscriptsDefault: () => getMeetingDataQueryIncludeTranscriptsDefault, getMeetingDataQueryParams: () => getMeetingDataQueryParams, getMeetingDataResponse: () => getMeetingDataResponse, getScreenshotsParams: () => getScreenshotsParams, getScreenshotsResponse: () => getScreenshotsResponse, getScreenshotsResponseItem: () => getScreenshotsResponseItem, joinBody: () => joinBody, joinBodyAutomaticLeaveNooneJoinedTimeoutMin: () => joinBodyAutomaticLeaveNooneJoinedTimeoutMin, joinBodyAutomaticLeaveWaitingRoomTimeoutMin: () => joinBodyAutomaticLeaveWaitingRoomTimeoutMin, joinBodyStartTimeMin: () => joinBodyStartTimeMin, joinBodyTranscriptionCustomParametersDefault: () => joinBodyTranscriptionCustomParametersDefault, joinResponse: () => joinResponse, leaveParams: () => leaveParams, leaveResponse: () => leaveResponse, retranscribeBotBody: () => retranscribeBotBody }); var import_zod2, joinBodyAutomaticLeaveNooneJoinedTimeoutMin, joinBodyAutomaticLeaveWaitingRoomTimeoutMin, joinBodyStartTimeMin, joinBodyTranscriptionCustomParametersDefault, joinBody, joinResponse, leaveParams, leaveResponse, getMeetingDataQueryIncludeTranscriptsDefault, getMeetingDataQueryParams, getMeetingDataResponse, deleteDataParams, deleteDataResponse, botsWithMetadataQueryLimitDefault, botsWithMetadataQueryParams, botsWithMetadataResponseLastUpdatedDefault, botsWithMetadataResponse, retranscribeBotBody, getScreenshotsParams, getScreenshotsResponseItem, getScreenshotsResponse; var init_default_zod = __esm({ "src/generated/api/default/default.zod.ts"() { "use strict"; import_zod2 = require("zod"); joinBodyAutomaticLeaveNooneJoinedTimeoutMin = 0; joinBodyAutomaticLeaveWaitingRoomTimeoutMin = 0; joinBodyStartTimeMin = 0; joinBodyTranscriptionCustomParametersDefault = null; joinBody = import_zod2.z.object({ automatic_leave: import_zod2.z.object({ noone_joined_timeout: import_zod2.z.number().min(joinBodyAutomaticLeaveNooneJoinedTimeoutMin).nullish().describe( "The timeout in seconds for the bot to wait for participants to join before leaving the meeting, defaults to 600 seconds" ), waiting_room_timeout: import_zod2.z.number().min(joinBodyAutomaticLeaveWaitingRoomTimeoutMin).nullish().describe( "The timeout in seconds for the bot to wait in the waiting room before leaving the meeting, defaults to 600 seconds" ) }).or(import_zod2.z.null()).optional().describe( "The bot will leave the meeting automatically after the timeout, defaults to 600 seconds." ), bot_image: import_zod2.z.string().url().nullish().describe("The image to use for the bot, must be a URL. Recommended ratio is 16:9."), bot_name: import_zod2.z.string(), deduplication_key: import_zod2.z.string().nullish().describe( "We prevent multiple bots with same API key joining a meeting within 5 mins, unless overridden by deduplication_key." ), entry_message: import_zod2.z.string().nullish().describe( "There are no entry messages on Microsoft Teams as guests outside of an organization do not have access to the chat." ), extra: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.any()).optional().describe("Custom data object"), meeting_url: import_zod2.z.string(), recording_mode: import_zod2.z.enum(["speaker_view"]).describe("Records the active speaker view").or( import_zod2.z.enum(["gallery_view"]).describe("Records the gallery view showing multiple participants") ).or(import_zod2.z.enum(["audio_only"]).describe("Records only the audio from the meeting")).describe("Recording mode for the bot").or(import_zod2.z.null()).optional().describe("The recording mode for the bot, defaults to 'speaker_view'."), reserved: import_zod2.z.boolean().describe( "Whether or not the bot should come from the available pool of bots or be a dedicated bot. Reserved bots come in exactly 4 minutes after the request." ), speech_to_text: import_zod2.z.object({ api_key: import_zod2.z.string().nullish(), provider: import_zod2.z.enum(["Gladia", "Runpod", "Default"]) }).or(import_zod2.z.enum(["Gladia", "Runpod", "Default"])).or(import_zod2.z.null()).optional().describe("The default speech to text provider is Gladia."), start_time: import_zod2.z.number().min(joinBodyStartTimeMin).nullish().describe( "Unix timestamp (in milliseconds) for when the bot should join the meeting. The bot joins 4 minutes before the start time." ), streaming: import_zod2.z.object({ audio_frequency: import_zod2.z.enum(["16khz", "24khz"]).or(import_zod2.z.null()).optional(), input: import_zod2.z.string().nullish(), output: import_zod2.z.string().nullish() }).or(import_zod2.z.null()).optional().describe( "WebSocket streams for 16 kHz audio. Input stream receives audio sent to the bot. Output stream receives audio from the bot." ), transcription_custom_parameters: import_zod2.z.any().optional().describe("For your own transcription parameters"), webhook_url: import_zod2.z.string().nullish().describe( "A webhook URL to send events to, overrides the webhook URL set in your account settings." ), zoom_sdk_id: import_zod2.z.string().nullish().describe("For the Own Zoom Credentials feature, we need your zoom sdk id."), zoom_sdk_pwd: import_zod2.z.string().nullish().describe("For the Own Zoom Credentials feature, we need your zoom sdk pwd.") }); joinResponse = import_zod2.z.object({ bot_id: import_zod2.z.string().uuid() }); leaveParams = import_zod2.z.object({ uuid: import_zod2.z.string().describe("The UUID identifier") }); leaveResponse = import_zod2.z.object({ ok: import_zod2.z.boolean() }); getMeetingDataQueryIncludeTranscriptsDefault = true; getMeetingDataQueryParams = import_zod2.z.object({ bot_id: import_zod2.z.string(), include_transcripts: import_zod2.z.boolean().default(getMeetingDataQueryIncludeTranscriptsDefault).describe( "Whether to include transcription data in the response. Defaults to true if not specified." ) }); getMeetingDataResponse = import_zod2.z.object({ bot_data: import_zod2.z.object({ bot: import_zod2.z.object({ account_id: import_zod2.z.number(), bot_image: import_zod2.z.string().nullish(), bot_name: import_zod2.z.string(), bot_param_id: import_zod2.z.number(), created_at: import_zod2.z.string().datetime({}), deduplication_key: import_zod2.z.string().nullish(), diarization_fails: import_zod2.z.number().nullish(), diarization_v2: import_zod2.z.boolean(), ended_at: import_zod2.z.string().datetime({}).nullable(), enter_message: import_zod2.z.string().nullish(), errors: import_zod2.z.string().nullish(), event_id: import_zod2.z.number().nullish(), extra: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.any()).describe("Custom data object"), id: import_zod2.z.number(), meeting_url: import_zod2.z.string(), mp4_s3_path: import_zod2.z.string(), noone_joined_timeout: import_zod2.z.number().nullish(), recording_mode: import_zod2.z.enum(["speaker_view"]).describe("Records the active speaker view").or( import_zod2.z.enum(["gallery_view"]).describe("Records the gallery view showing multiple participants") ).or(import_zod2.z.enum(["audio_only"]).describe("Records only the audio from the meeting")).describe("Recording mode for the bot").or(import_zod2.z.null()).optional(), reserved: import_zod2.z.boolean(), scheduled_bot_id: import_zod2.z.number().nullish(), session_id: import_zod2.z.string().nullish(), speech_to_text_api_key: import_zod2.z.string().nullish(), speech_to_text_provider: import_zod2.z.enum(["Gladia", "Runpod", "Default"]).or(import_zod2.z.null()).optional(), streaming_audio_frequency: import_zod2.z.enum(["16khz", "24khz"]).or(import_zod2.z.null()).optional(), streaming_input: import_zod2.z.string().nullish(), streaming_output: import_zod2.z.string().nullish(), transcription_custom_parameters: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.any()).describe("Custom data object"), transcription_fails: import_zod2.z.number().nullish(), transcription_payloads: import_zod2.z.any().optional(), user_reported_error: import_zod2.z.any().optional(), uuid: import_zod2.z.string().uuid(), waiting_room_timeout: import_zod2.z.number().nullish(), webhook_url: import_zod2.z.string(), zoom_sdk_id: import_zod2.z.string().nullish(), zoom_sdk_pwd: import_zod2.z.string().nullish() }), transcripts: import_zod2.z.array( import_zod2.z.object({ bot_id: import_zod2.z.number(), end_time: import_zod2.z.number().nullish(), id: import_zod2.z.number(), lang: import_zod2.z.string().nullish(), speaker: import_zod2.z.string(), start_time: import_zod2.z.number(), user_id: import_zod2.z.number().nullish(), words: import_zod2.z.array( import_zod2.z.object({ bot_id: import_zod2.z.number(), end_time: import_zod2.z.number(), id: import_zod2.z.number(), start_time: import_zod2.z.number(), text: import_zod2.z.string(), user_id: import_zod2.z.number().nullish() }) ) }) ) }), duration: import_zod2.z.number().describe("Duration of the recording in seconds"), mp4: import_zod2.z.string().describe( "URL to access the recording MP4 file. Will be an empty string if the file doesn't exist in S3." ) }); deleteDataParams = import_zod2.z.object({ uuid: import_zod2.z.string().describe("The UUID identifier") }); deleteDataResponse = import_zod2.z.object({ ok: import_zod2.z.boolean().describe("Whether the request was processed successfully"), status: import_zod2.z.enum(["deleted"]).describe("All data was successfully deleted").or( import_zod2.z.enum(["partiallyDeleted"]).describe("Some data was deleted, but other parts couldn't be removed") ).or( import_zod2.z.enum(["alreadyDeleted"]).describe("No data needed to be deleted as it was already removed") ).or(import_zod2.z.enum(["noDataFound"]).describe("No data was found for the specified bot")) }); botsWithMetadataQueryLimitDefault = 10; botsWithMetadataQueryParams = import_zod2.z.object({ bot_name: import_zod2.z.string().nullish().describe( `Filter bots by name containing this string. Performs a case-insensitive partial match on the bot's name. Useful for finding bots with specific naming conventions or to locate a particular bot when you don't have its ID. Example: "Sales" would match "Sales Meeting", "Quarterly Sales", etc.` ), created_after: import_zod2.z.string().nullish().describe( 'Filter bots created after this date (ISO format).\n\nLimits results to bots created at or after the specified timestamp. Used for time-based filtering to find recent additions.\n\nFormat: ISO-8601 date-time string (YYYY-MM-DDThh:mm:ss) Example: "2023-05-01T00:00:00"' ), created_before: import_zod2.z.string().nullish().describe( 'Filter bots created before this date (ISO format).\n\nLimits results to bots created at or before the specified timestamp. Used for time-based filtering to exclude recent additions.\n\nFormat: ISO-8601 date-time string (YYYY-MM-DDThh:mm:ss) Example: "2023-05-31T23:59:59"' ), cursor: import_zod2.z.string().nullish().describe( "Cursor for pagination, obtained from previous response.\n\nUsed for retrieving the next set of results after a previous call. The cursor value is returned in the `nextCursor` field of responses that have additional results available.\n\nFormat: Base64-encoded string containing pagination metadata" ), ended_after: import_zod2.z.string().nullish().describe( 'Filter bots ended after this date (ISO format).\n\nLimits results to bots that ended at or after the specified timestamp. Useful for finding completed meetings within a specific time period.\n\nFormat: ISO-8601 date-time string (YYYY-MM-DDThh:mm:ss) Example: "2023-05-01T00:00:00"' ), filter_by_extra: import_zod2.z.string().nullish().describe( 'Filter bots by matching values in the extra JSON payload.\n\nThis parameter performs in-memory filtering on the `extra` JSON field, similar to a SQL WHERE clause. It reduces the result set to only include bots that match all specified conditions.\n\nFormat specifications: - Single condition: "field:value" - Multiple conditions: "field1:value1,field2:value2"\n\nExamples: - "customer_id:12345" - Only bots with this customer ID - "status:active,project:sales" - Only active bots from sales projects\n\nNotes: - All conditions must match for a bot to be included - Values are matched exactly (case-sensitive) - Bots without the specified field are excluded' ), limit: import_zod2.z.number().default(botsWithMetadataQueryLimitDefault).describe( "Maximum number of bots to return in a single request.\n\nLimits the number of results returned in a single API call. This parameter helps control response size and page length.\n\nDefault: 10 Minimum: 1 Maximum: 50" ), meeting_url: import_zod2.z.string().nullish().describe( `Filter bots by meeting URL containing this string. Performs a case-insensitive partial match on the bot's meeting URL. Use this to find bots associated with specific meeting platforms or particular meeting IDs. Example: "zoom.us" would match all Zoom meetings` ), sort_by_extra: import_zod2.z.string().nullish().describe( 'Sort the results by a field in the extra JSON payload.\n\nThis parameter performs in-memory sorting on the `extra` JSON field, similar to a SQL ORDER BY clause. It changes the order of results but not which results are included.\n\nFormat specifications: - Default (ascending): "field" - Explicit direction: "field:asc" or "field:desc"\n\nExamples: - "customer_id" - Sort by customer_id (ascending) - "priority:desc" - Sort by priority (descending)\n\nNotes: - Applied after all filtering - String comparison is used for sorting - Bots with the field come before bots without it - Can be combined with filter_by_extra' ), speaker_name: import_zod2.z.string().nullish().describe( 'NOTE: this is a preview feature and not yet available\n\nFilter bots by speaker name containing this string.\n\nPerforms a c