UNPKG

@meeting-baas/sdk

Version:

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

720 lines (718 loc) 525 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/v1/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, patchBotBodyBotNameDefault: () => patchBotBodyBotNameDefault, patchBotBodyDeduplicationKeyDefault: () => patchBotBodyDeduplicationKeyDefault, patchBotBodyEnterMessageDefault: () => patchBotBodyEnterMessageDefault, patchBotBodyExtraDefault: () => patchBotBodyExtraDefault, patchBotBodyNooneJoinedTimeoutDefault: () => patchBotBodyNooneJoinedTimeoutDefault, patchBotBodySpeechToTextDefault: () => patchBotBodySpeechToTextDefault, patchBotBodyStreamingAudioFrequencyDefault: () => patchBotBodyStreamingAudioFrequencyDefault, patchBotBodyStreamingInputDefault: () => patchBotBodyStreamingInputDefault, patchBotBodyStreamingOutputDefault: () => patchBotBodyStreamingOutputDefault, patchBotBodyTranscriptionCustomParametersDefault: () => patchBotBodyTranscriptionCustomParametersDefault, patchBotBodyWaitingRoomTimeoutDefault: () => patchBotBodyWaitingRoomTimeoutDefault, patchBotBodyWebhookUrlDefault: () => patchBotBodyWebhookUrlDefault, patchBotBodyZoomAccessTokenUrlDefault: () => patchBotBodyZoomAccessTokenUrlDefault, patchBotBodyZoomObfTokenDefault: () => patchBotBodyZoomObfTokenDefault, patchBotBodyZoomObfTokenUrlDefault: () => patchBotBodyZoomObfTokenUrlDefault, patchBotBodyZoomObfTokenUserIdDefault: () => patchBotBodyZoomObfTokenUserIdDefault, patchBotBodyZoomSdkIdDefault: () => patchBotBodyZoomSdkIdDefault, patchBotBodyZoomSdkPwdDefault: () => patchBotBodyZoomSdkPwdDefault, patchBotParams: () => patchBotParams, patchBotQueryParams: () => patchBotQueryParams, patchBotResponse: () => patchBotResponse, patchBotResponseItem: () => patchBotResponseItem, resyncAllCalendarsQueryParams: () => resyncAllCalendarsQueryParams, resyncAllCalendarsResponse: () => resyncAllCalendarsResponse, resyncAllCalendarsResponseErrorsItemMax: () => resyncAllCalendarsResponseErrorsItemMax, resyncAllCalendarsResponseErrorsItemMin: () => resyncAllCalendarsResponseErrorsItemMin, 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, listRawCalendarsBody, listRawCalendarsResponse, listCalendarsResponseItem, listCalendarsResponse, createCalendarBody, createCalendarResponse, resyncAllCalendarsQueryParams, resyncAllCalendarsResponseErrorsItemMin, resyncAllCalendarsResponseErrorsItemMax, resyncAllCalendarsResponse, getCalendarParams, getCalendarResponse, deleteCalendarParams, updateCalendarParams, updateCalendarBody, updateCalendarResponse, getEventParams, getEventResponse, scheduleRecordEventParams, scheduleRecordEventQueryParams, scheduleRecordEventBody, scheduleRecordEventResponseItem, scheduleRecordEventResponse, unscheduleRecordEventParams, unscheduleRecordEventQueryParams, unscheduleRecordEventResponseItem, unscheduleRecordEventResponse, patchBotParams, patchBotQueryParams, patchBotBodyBotImageDefault, patchBotBodyBotNameDefault, patchBotBodyDeduplicationKeyDefault, patchBotBodyEnterMessageDefault, patchBotBodyExtraDefault, patchBotBodyNooneJoinedTimeoutDefault, patchBotBodySpeechToTextDefault, patchBotBodyStreamingAudioFrequencyDefault, patchBotBodyStreamingInputDefault, patchBotBodyStreamingOutputDefault, patchBotBodyTranscriptionCustomParametersDefault, patchBotBodyWaitingRoomTimeoutDefault, patchBotBodyWebhookUrlDefault, patchBotBodyZoomAccessTokenUrlDefault, patchBotBodyZoomObfTokenDefault, patchBotBodyZoomObfTokenUrlDefault, patchBotBodyZoomObfTokenUserIdDefault, patchBotBodyZoomSdkIdDefault, patchBotBodyZoomSdkPwdDefault, patchBotBody, patchBotResponseItem, patchBotResponse, listEventsQueryParams, listEventsResponse; var init_calendars_zod = __esm({ "src/generated/v1/api/calendars/calendars.zod.ts"() { "use strict"; import_zod = require("zod"); 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() }) }); resyncAllCalendarsQueryParams = import_zod.z.object({ days: import_zod.z.number().nullish().describe("Number of days to sync forward (default: 30 for rolling window)") }); resyncAllCalendarsResponseErrorsItemMin = 2; resyncAllCalendarsResponseErrorsItemMax = 2; resyncAllCalendarsResponse = 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(resyncAllCalendarsResponseErrorsItemMin).max(resyncAllCalendarsResponseErrorsItemMax) ).describe( "List of calendar UUIDs that failed to resync, with detailed error messages explaining the failure reason" ), synced_calendars: import_zod.z.array(import_zod.z.string().uuid()).describe( "List of calendar UUIDs that were successfully resynced with their calendar provider (Google, Microsoft)" ) }); 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_access_token_url: import_zod.z.string().nullish(), zoom_obf_token: import_zod.z.string().nullish(), zoom_obf_token_url: import_zod.z.string().nullish(), zoom_obf_token_user_id: import_zod.z.string().nullish(), 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()).optional().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(), silence_timeout: import_zod.z.number().nullish(), 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_access_token_url: import_zod.z.string().nullish(), zoom_obf_token: import_zod.z.string().nullish(), zoom_obf_token_url: import_zod.z.string().nullish(), zoom_obf_token_user_id: 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_access_token_url: import_zod.z.string().nullish(), zoom_obf_token: import_zod.z.string().nullish(), zoom_obf_token_url: import_zod.z.string().nullish(), zoom_obf_token_user_id: import_zod.z.string().nullish(), 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_access_token_url: import_zod.z.string().nullish(), zoom_obf_token: import_zod.z.string().nullish(), zoom_obf_token_url: import_zod.z.string().nullish(), zoom_obf_token_user_id: import_zod.z.string().nullish(), 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; patchBotBodyBotNameDefault = null; patchBotBodyDeduplicationKeyDefault = null; patchBotBodyEnterMessageDefault = null; patchBotBodyExtraDefault = null; patchBotBodyNooneJoinedTimeoutDefault = null; patchBotBodySpeechToTextDefault = null; patchBotBodyStreamingAudioFrequencyDefault = null; patchBotBodyStreamingInputDefault = null; patchBotBodyStreamingOutputDefault = null; patchBotBodyTranscriptionCustomParametersDefault = null; patchBotBodyWaitingRoomTimeoutDefault = null; patchBotBodyWebhookUrlDefault = null; patchBotBodyZoomAccessTokenUrlDefault = null; patchBotBodyZoomObfTokenDefault = null; patchBotBodyZoomObfTokenUrlDefault = null; patchBotBodyZoomObfTokenUserIdDefault = 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_access_token_url: import_zod.z.string().nullish(), zoom_obf_token: import_zod.z.string().nullish(), zoom_obf_token_url: import_zod.z.string().nullish(), zoom_obf_token_user_id: 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_access_token_url: import_zod.z.string().nullish(), zoom_obf_token: import_zod.z.string().nullish(), zoom_obf_token_url: import_zod.z.string().nullish(), zoom_obf_token_user_id: import_zod.z.string().nullish(), 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_access_token_url: import_zod.z.string().nullish(), zoom_obf_token: import_zod.z.string().nullish(), zoom_obf_token_url: import_zod.z.string().nullish(), zoom_obf_token_user_id: import_zod.z.string().nullish(), 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/v1/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, joinBodyAutomaticLeaveSilenceTimeoutMin: () => joinBodyAutomaticLeaveSilenceTimeoutMin, joinBodyAutomaticLeaveWaitingRoomTimeoutMin: () => joinBodyAutomaticLeaveWaitingRoomTimeoutMin, joinBodyReservedDefault: () => joinBodyReservedDefault, joinBodyStartTimeMin: () => joinBodyStartTimeMin, joinBodyTranscriptionCustomParametersDefault: () => joinBodyTranscriptionCustomParametersDefault, joinResponse: () => joinResponse, leaveParams: () => leaveParams, leaveResponse: () => leaveResponse, retranscribeBotBody: () => retranscribeBotBody }); var import_zod2, joinBodyAutomaticLeaveNooneJoinedTimeoutMin, joinBodyAutomaticLeaveSilenceTimeoutMin, joinBodyAutomaticLeaveWaitingRoomTimeoutMin, joinBodyReservedDefault, 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/v1/api/default/default.zod.ts"() { "use strict"; import_zod2 = require("zod"); joinBodyAutomaticLeaveNooneJoinedTimeoutMin = 0; joinBodyAutomaticLeaveSilenceTimeoutMin = 0; joinBodyAutomaticLeaveWaitingRoomTimeoutMin = 0; joinBodyReservedDefault = false; 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 (10 minutes). Minimum: 120 seconds (2 minutes). Maximum: 1800 seconds (30 minutes). When a bot first joins a meeting, it uses this timeout to determine if any participants have joined. If no participants are detected within this period, the bot will leave the meeting. Once participants are detected, the silence_timeout takes over. Applies to Google Meet and Microsoft Teams only." ), silence_timeout: import_zod2.z.number().min(joinBodyAutomaticLeaveSilenceTimeoutMin).nullish().describe( "The timeout in seconds for the bot to leave the meeting if no speaker activity is detected, defaults to 600 seconds (10 minutes). Minimum: 300 seconds (5 minutes). Maximum: 1800 seconds (30 minutes). This timeout becomes active after participants are detected. The bot monitors for audio activity, and if no sound is detected for the duration of this timeout, it will automatically leave the meeting. Important: Configure these timeouts carefully to ensure the bot doesn't leave too early - the noone_joined_timeout should be long enough to wait for late joiners, and the silence_timeout should account for intentional pauses. Applies to Google Meet and Microsoft Teams only." ), 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 (10 minutes). Minimum: 120 seconds (2 minutes). Maximum: 1800 seconds (30 minutes). Note: Google Meet also has it's own waiting room timeout (about ~10 minutes). Setting a higher value for such meetings would have no effect because Google Meet will deny entry to the bot after its own timeout." ) }).or(import_zod2.z.null()).optional().describe( "Configuration for automatic meeting exit behavior. The bot uses waiting_room_timeout to wait in the waiting room, then noone_joined_timeout to wait for participants when first joining the meeting, and finally switches to silence_timeout monitoring once participants are detected. Applies to Google Meet and Microsoft Teams only." ), 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'. Supported values are 'speaker_view' and 'audio_only'. 'gallery_view' is currently under development." ), reserved: import_zod2.z.boolean().optional().describe("Deprecated, do not use."), 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( "Reserved has been deprecated in favour of start_time. Unix timestamp (in seconds) for when the bot should join the meeting. The bot joins eaxctly at 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_access_token_url: import_zod2.z.string().nullish().describe( "URL that returns a Zoom ZAK token (short-lived access token) for joining authenticated meetings." ), zoom_obf_token: import_zod2.z.string().nullish().describe( "A raw Zoom On Behalf Of (OBF) token for joining external Zoom meetings. Required for meetings that enforce authenticated join after March 2, 2026." ), zoom_obf_token_url: import_zod2.z.string().nullish().describe( "URL that returns a Zoom OBF token. The bot will fetch the token from this URL at join time." ), zoom_obf_token_user_id: import_zod2.z.string().nullish().describe( "The Zoom user ID associated with a stored OAuth connection. When set, the system will automatically fetch an OBF token using the managed OAuth credentials." ), 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({ audio: import_zod2.z.string().describe( "URL to access the recording WAV audio file. Will be an empty string if the file doesn't exist in S3." ), bot_data: import_zod2.z.object({ bot: import_zod2.z.object({ account_id: import_zod2.z.number(), bot_exited_at: import_zod2.z.string().datetime({}).nullable(), bot_image: import_zod2.z.string().nullish(), bot_joined_at: import_zod2.z.string().datetime({}).nullable(), 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(), is_stopped: import_zod2.z.boolean(), 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(), silence_timeout: import_zod2.z.number().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