UNPKG

@meeting-baas/sdk

Version:

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

568 lines (567 loc) 39.1 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Meeting BaaS API * Meeting BaaS API * * The version of the OpenAPI document: 1.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0; const axios_1 = __importDefault(require("axios")); // Some imports not used depending on template conditions // @ts-ignore const common_1 = require("../common"); // @ts-ignore const base_1 = require("../base"); /** * DefaultApi - axios parameter creator * @export */ const DefaultApiAxiosParamCreator = function (configuration) { return { /** * Retrieves a paginated list of the user\'s bots with essential metadata, including IDs, names, and meeting details. Supports filtering, sorting, and advanced querying options. * @summary List Bots with Metadata * @param {string | null} [botName] 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. * @param {string | null} [createdAfter] Filter bots created after this date (ISO format). Limits results to bots created at or after the specified timestamp. Used for time-based filtering to find recent additions. Format: ISO-8601 date-time string (YYYY-MM-DDThh:mm:ss) Example: \"2023-05-01T00:00:00\" * @param {string | null} [createdBefore] Filter bots created before this date (ISO format). Limits results to bots created at or before the specified timestamp. Used for time-based filtering to exclude recent additions. Format: ISO-8601 date-time string (YYYY-MM-DDThh:mm:ss) Example: \"2023-05-31T23:59:59\" * @param {string | null} [cursor] Cursor for pagination, obtained from previous response. Used 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. Format: Base64-encoded string containing pagination metadata * @param {string | null} [endedAfter] Filter bots ended after this date (ISO format). Limits results to bots that ended at or after the specified timestamp. Useful for finding completed meetings within a specific time period. Format: ISO-8601 date-time string (YYYY-MM-DDThh:mm:ss) Example: \"2023-05-01T00:00:00\" * @param {string | null} [filterByExtra] Filter bots by matching values in the extra JSON payload. This 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. Format specifications: - Single condition: \"field:value\" - Multiple conditions: \"field1:value1,field2:value2\" Examples: - \"customerId:12345\" - Only bots with this customer ID - \"status:active,project:sales\" - Only active bots from sales projects Notes: - All conditions must match for a bot to be included - Values are matched exactly (case-sensitive) - Bots without the specified field are excluded * @param {number} [limit] Maximum number of bots to return in a single request. Limits the number of results returned in a single API call. This parameter helps control response size and page length. Default: 10 Minimum: 1 Maximum: 50 * @param {string | null} [meetingUrl] 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 * @param {string | null} [sortByExtra] Sort the results by a field in the extra JSON payload. This 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. Format specifications: - Default (ascending): \"field\" - Explicit direction: \"field:asc\" or \"field:desc\" Examples: - \"customer_id\" - Sort by customer_id (ascending) - \"priority:desc\" - Sort by priority (descending) Notes: - 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 * @param {string | null} [speakerName] NOTE: this is a preview feature and not yet available Filter bots by speaker name containing this string. Performs a case-insensitive partial match on the speakers in the meeting. Useful for finding meetings that included a specific person. Example: \"John\" would match meetings with speakers like \"John Smith\" or \"John Doe\" * @param {*} [options] Override http request option. * @throws {RequiredError} */ botsWithMetadata: async (botName, createdAfter, createdBefore, cursor, endedAfter, filterByExtra, limit, meetingUrl, sortByExtra, speakerName, options = {}) => { const localVarPath = `/bots/bots_with_metadata`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKeyAuth required await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-meeting-baas-api-key", configuration); if (botName !== undefined) { localVarQueryParameter['bot_name'] = botName; } if (createdAfter !== undefined) { localVarQueryParameter['created_after'] = createdAfter; } if (createdBefore !== undefined) { localVarQueryParameter['created_before'] = createdBefore; } if (cursor !== undefined) { localVarQueryParameter['cursor'] = cursor; } if (endedAfter !== undefined) { localVarQueryParameter['ended_after'] = endedAfter; } if (filterByExtra !== undefined) { localVarQueryParameter['filter_by_extra'] = filterByExtra; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (meetingUrl !== undefined) { localVarQueryParameter['meeting_url'] = meetingUrl; } if (sortByExtra !== undefined) { localVarQueryParameter['sort_by_extra'] = sortByExtra; } if (speakerName !== undefined) { localVarQueryParameter['speaker_name'] = speakerName; } (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a bot\'s data including recording, transcription, and logs. Only metadata is retained. Rate limited to 5 requests per minute per API key. * @summary Delete Data * @param {string} uuid The UUID identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteData: async (uuid, options = {}) => { // verify required parameter 'uuid' is not null or undefined (0, common_1.assertParamExists)('deleteData', 'uuid', uuid); const localVarPath = `/bots/{uuid}/delete_data` .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKeyAuth required await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-meeting-baas-api-key", configuration); (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get meeting recording and metadata * @summary Get Meeting Data * @param {string} botId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMeetingData: async (botId, options = {}) => { // verify required parameter 'botId' is not null or undefined (0, common_1.assertParamExists)('getMeetingData', 'botId', botId); const localVarPath = `/bots/meeting_data`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKeyAuth required await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-meeting-baas-api-key", configuration); if (botId !== undefined) { localVarQueryParameter['bot_id'] = botId; } (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves screenshots captured during the bot\'s session * @summary Get Screenshots * @param {string} uuid The UUID identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScreenshots: async (uuid, options = {}) => { // verify required parameter 'uuid' is not null or undefined (0, common_1.assertParamExists)('getScreenshots', 'uuid', uuid); const localVarPath = `/bots/{uuid}/screenshots` .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKeyAuth required await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-meeting-baas-api-key", configuration); (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Have a bot join a meeting, now or in the future. You can provide a `webhook_url` parameter to receive webhook events specific to this bot, overriding your account\'s default webhook URL. Events include recording completion, failures, and transcription updates. * @summary Join * @param {JoinRequest} joinRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ join: async (joinRequest, options = {}) => { // verify required parameter 'joinRequest' is not null or undefined (0, common_1.assertParamExists)('join', 'joinRequest', joinRequest); const localVarPath = `/bots/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKeyAuth required await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-meeting-baas-api-key", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinRequest, localVarRequestOptions, configuration); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Leave * @summary Leave * @param {string} uuid The UUID identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ leave: async (uuid, options = {}) => { // verify required parameter 'uuid' is not null or undefined (0, common_1.assertParamExists)('leave', 'uuid', uuid); const localVarPath = `/bots/{uuid}` .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKeyAuth required await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-meeting-baas-api-key", configuration); (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Transcribe or retranscribe a bot\'s audio using the Default or your provided Speech to Text Provider * @summary Retranscribe Bot * @param {RetranscribeBody} retranscribeBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ retranscribeBot: async (retranscribeBody, options = {}) => { // verify required parameter 'retranscribeBody' is not null or undefined (0, common_1.assertParamExists)('retranscribeBot', 'retranscribeBody', retranscribeBody); const localVarPath = `/bots/retranscribe`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKeyAuth required await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-meeting-baas-api-key", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(retranscribeBody, localVarRequestOptions, configuration); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }, }; }; exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator; /** * DefaultApi - functional programming interface * @export */ const DefaultApiFp = function (configuration) { const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration); return { /** * Retrieves a paginated list of the user\'s bots with essential metadata, including IDs, names, and meeting details. Supports filtering, sorting, and advanced querying options. * @summary List Bots with Metadata * @param {string | null} [botName] 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. * @param {string | null} [createdAfter] Filter bots created after this date (ISO format). Limits results to bots created at or after the specified timestamp. Used for time-based filtering to find recent additions. Format: ISO-8601 date-time string (YYYY-MM-DDThh:mm:ss) Example: \"2023-05-01T00:00:00\" * @param {string | null} [createdBefore] Filter bots created before this date (ISO format). Limits results to bots created at or before the specified timestamp. Used for time-based filtering to exclude recent additions. Format: ISO-8601 date-time string (YYYY-MM-DDThh:mm:ss) Example: \"2023-05-31T23:59:59\" * @param {string | null} [cursor] Cursor for pagination, obtained from previous response. Used 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. Format: Base64-encoded string containing pagination metadata * @param {string | null} [endedAfter] Filter bots ended after this date (ISO format). Limits results to bots that ended at or after the specified timestamp. Useful for finding completed meetings within a specific time period. Format: ISO-8601 date-time string (YYYY-MM-DDThh:mm:ss) Example: \"2023-05-01T00:00:00\" * @param {string | null} [filterByExtra] Filter bots by matching values in the extra JSON payload. This 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. Format specifications: - Single condition: \"field:value\" - Multiple conditions: \"field1:value1,field2:value2\" Examples: - \"customerId:12345\" - Only bots with this customer ID - \"status:active,project:sales\" - Only active bots from sales projects Notes: - All conditions must match for a bot to be included - Values are matched exactly (case-sensitive) - Bots without the specified field are excluded * @param {number} [limit] Maximum number of bots to return in a single request. Limits the number of results returned in a single API call. This parameter helps control response size and page length. Default: 10 Minimum: 1 Maximum: 50 * @param {string | null} [meetingUrl] 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 * @param {string | null} [sortByExtra] Sort the results by a field in the extra JSON payload. This 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. Format specifications: - Default (ascending): \"field\" - Explicit direction: \"field:asc\" or \"field:desc\" Examples: - \"customer_id\" - Sort by customer_id (ascending) - \"priority:desc\" - Sort by priority (descending) Notes: - 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 * @param {string | null} [speakerName] NOTE: this is a preview feature and not yet available Filter bots by speaker name containing this string. Performs a case-insensitive partial match on the speakers in the meeting. Useful for finding meetings that included a specific person. Example: \"John\" would match meetings with speakers like \"John Smith\" or \"John Doe\" * @param {*} [options] Override http request option. * @throws {RequiredError} */ async botsWithMetadata(botName, createdAfter, createdBefore, cursor, endedAfter, filterByExtra, limit, meetingUrl, sortByExtra, speakerName, options) { const localVarAxiosArgs = await localVarAxiosParamCreator.botsWithMetadata(botName, createdAfter, createdBefore, cursor, endedAfter, filterByExtra, limit, meetingUrl, sortByExtra, speakerName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.botsWithMetadata']?.[localVarOperationServerIndex]?.url; return (axios, basePath = '') => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, basePath, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a bot\'s data including recording, transcription, and logs. Only metadata is retained. Rate limited to 5 requests per minute per API key. * @summary Delete Data * @param {string} uuid The UUID identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteData(uuid, options) { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteData(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.deleteData']?.[localVarOperationServerIndex]?.url; return (axios, basePath = '') => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, basePath, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get meeting recording and metadata * @summary Get Meeting Data * @param {string} botId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getMeetingData(botId, options) { const localVarAxiosArgs = await localVarAxiosParamCreator.getMeetingData(botId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getMeetingData']?.[localVarOperationServerIndex]?.url; return (axios, basePath = '') => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, basePath, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves screenshots captured during the bot\'s session * @summary Get Screenshots * @param {string} uuid The UUID identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getScreenshots(uuid, options) { const localVarAxiosArgs = await localVarAxiosParamCreator.getScreenshots(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getScreenshots']?.[localVarOperationServerIndex]?.url; return (axios, basePath = '') => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, basePath, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Have a bot join a meeting, now or in the future. You can provide a `webhook_url` parameter to receive webhook events specific to this bot, overriding your account\'s default webhook URL. Events include recording completion, failures, and transcription updates. * @summary Join * @param {JoinRequest} joinRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async join(joinRequest, options) { const localVarAxiosArgs = await localVarAxiosParamCreator.join(joinRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.join']?.[localVarOperationServerIndex]?.url; return (axios, basePath = '') => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, basePath, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Leave * @summary Leave * @param {string} uuid The UUID identifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ async leave(uuid, options) { const localVarAxiosArgs = await localVarAxiosParamCreator.leave(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.leave']?.[localVarOperationServerIndex]?.url; return (axios, basePath = '') => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, basePath, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Transcribe or retranscribe a bot\'s audio using the Default or your provided Speech to Text Provider * @summary Retranscribe Bot * @param {RetranscribeBody} retranscribeBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retranscribeBot(retranscribeBody, options) { const localVarAxiosArgs = await localVarAxiosParamCreator.retranscribeBot(retranscribeBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.retranscribeBot']?.[localVarOperationServerIndex]?.url; return (axios, basePath = '') => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, basePath, configuration)(axios, localVarOperationServerBasePath || basePath); }, }; }; exports.DefaultApiFp = DefaultApiFp; /** * DefaultApi - factory interface * @export */ const DefaultApiFactory = function (configuration, basePath, axios) { const localVarFp = (0, exports.DefaultApiFp)(configuration); return { /** * Retrieves a paginated list of the user\'s bots with essential metadata, including IDs, names, and meeting details. Supports filtering, sorting, and advanced querying options. * @summary List Bots with Metadata * @param {DefaultApiBotsWithMetadataRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ botsWithMetadata(requestParameters = {}, options) { return localVarFp.botsWithMetadata(requestParameters.botName, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.cursor, requestParameters.endedAfter, requestParameters.filterByExtra, requestParameters.limit, requestParameters.meetingUrl, requestParameters.sortByExtra, requestParameters.speakerName, options).then((request) => request(axios, basePath)); }, /** * Deletes a bot\'s data including recording, transcription, and logs. Only metadata is retained. Rate limited to 5 requests per minute per API key. * @summary Delete Data * @param {DefaultApiDeleteDataRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteData(requestParameters, options) { return localVarFp.deleteData(requestParameters.uuid, options).then((request) => request(axios, basePath)); }, /** * Get meeting recording and metadata * @summary Get Meeting Data * @param {DefaultApiGetMeetingDataRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMeetingData(requestParameters, options) { return localVarFp.getMeetingData(requestParameters.botId, options).then((request) => request(axios, basePath)); }, /** * Retrieves screenshots captured during the bot\'s session * @summary Get Screenshots * @param {DefaultApiGetScreenshotsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScreenshots(requestParameters, options) { return localVarFp.getScreenshots(requestParameters.uuid, options).then((request) => request(axios, basePath)); }, /** * Have a bot join a meeting, now or in the future. You can provide a `webhook_url` parameter to receive webhook events specific to this bot, overriding your account\'s default webhook URL. Events include recording completion, failures, and transcription updates. * @summary Join * @param {DefaultApiJoinRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ join(requestParameters, options) { return localVarFp.join(requestParameters.joinRequest, options).then((request) => request(axios, basePath)); }, /** * Leave * @summary Leave * @param {DefaultApiLeaveRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ leave(requestParameters, options) { return localVarFp.leave(requestParameters.uuid, options).then((request) => request(axios, basePath)); }, /** * Transcribe or retranscribe a bot\'s audio using the Default or your provided Speech to Text Provider * @summary Retranscribe Bot * @param {DefaultApiRetranscribeBotRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retranscribeBot(requestParameters, options) { return localVarFp.retranscribeBot(requestParameters.retranscribeBody, options).then((request) => request(axios, basePath)); }, }; }; exports.DefaultApiFactory = DefaultApiFactory; /** * DefaultApi - object-oriented interface * @export * @class DefaultApi * @extends {BaseAPI} */ class DefaultApi extends base_1.BaseAPI { /** * Retrieves a paginated list of the user\'s bots with essential metadata, including IDs, names, and meeting details. Supports filtering, sorting, and advanced querying options. * @summary List Bots with Metadata * @param {DefaultApiBotsWithMetadataRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ botsWithMetadata(requestParameters = {}, options) { return (0, exports.DefaultApiFp)(this.configuration).botsWithMetadata(requestParameters.botName, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.cursor, requestParameters.endedAfter, requestParameters.filterByExtra, requestParameters.limit, requestParameters.meetingUrl, requestParameters.sortByExtra, requestParameters.speakerName, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a bot\'s data including recording, transcription, and logs. Only metadata is retained. Rate limited to 5 requests per minute per API key. * @summary Delete Data * @param {DefaultApiDeleteDataRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ deleteData(requestParameters, options) { return (0, exports.DefaultApiFp)(this.configuration).deleteData(requestParameters.uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Get meeting recording and metadata * @summary Get Meeting Data * @param {DefaultApiGetMeetingDataRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ getMeetingData(requestParameters, options) { return (0, exports.DefaultApiFp)(this.configuration).getMeetingData(requestParameters.botId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves screenshots captured during the bot\'s session * @summary Get Screenshots * @param {DefaultApiGetScreenshotsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ getScreenshots(requestParameters, options) { return (0, exports.DefaultApiFp)(this.configuration).getScreenshots(requestParameters.uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Have a bot join a meeting, now or in the future. You can provide a `webhook_url` parameter to receive webhook events specific to this bot, overriding your account\'s default webhook URL. Events include recording completion, failures, and transcription updates. * @summary Join * @param {DefaultApiJoinRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ join(requestParameters, options) { return (0, exports.DefaultApiFp)(this.configuration).join(requestParameters.joinRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Leave * @summary Leave * @param {DefaultApiLeaveRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ leave(requestParameters, options) { return (0, exports.DefaultApiFp)(this.configuration).leave(requestParameters.uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Transcribe or retranscribe a bot\'s audio using the Default or your provided Speech to Text Provider * @summary Retranscribe Bot * @param {DefaultApiRetranscribeBotRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ retranscribeBot(requestParameters, options) { return (0, exports.DefaultApiFp)(this.configuration).retranscribeBot(requestParameters.retranscribeBody, options).then((request) => request(this.axios, this.basePath)); } } exports.DefaultApi = DefaultApi;