/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Bot } from '../models/Bot'; import type { BotCommand } from '../models/BotCommand'; import type { BotCreate } from '../models/BotCreate'; import type { DiscordConfig } from '../models/DiscordConfig'; import type { DiscordUserConfig } from '../models/DiscordUserConfig'; import type { DiscordWebhook } from '../models/DiscordWebhook'; import type { PatchedBotCommand } from '../models/PatchedBotCommand'; import type { PatchedBotCreate } from '../models/PatchedBotCreate'; import type { PatchedDiscordConfig } from '../models/PatchedDiscordConfig'; import type { PatchedDiscordUserConfig } from '../models/PatchedDiscordUserConfig'; import type { PatchedSlackConfig } from '../models/PatchedSlackConfig'; import type { PatchedSlackUserConfig } from '../models/PatchedSlackUserConfig'; import type { PatchedTeamsConfig } from '../models/PatchedTeamsConfig'; import type { PatchedWebexConfig } from '../models/PatchedWebexConfig'; import type { PatchedWhatsappConfig } from '../models/PatchedWhatsappConfig'; import type { PatchedWhatsappUserConfig } from '../models/PatchedWhatsappUserConfig'; import type { SlackConfig } from '../models/SlackConfig'; import type { SlackUserConfig } from '../models/SlackUserConfig'; import type { SlackWebhook } from '../models/SlackWebhook'; import type { TeamsConfig } from '../models/TeamsConfig'; import type { TeamsWebhook } from '../models/TeamsWebhook'; import type { WebexConfig } from '../models/WebexConfig'; import type { WebexWebhook } from '../models/WebexWebhook'; import type { WhatAppWebHook } from '../models/WhatAppWebHook'; import type { WhatsappConfig } from '../models/WhatsappConfig'; import type { WhatsappUserConfig } from '../models/WhatsappUserConfig'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class AiBotService { /** * Create modify and update bot information for a specific tenant. * @returns Bot * @throws ApiError */ public static aiBotV1BotsBotList({ org, }: { org: string, }): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/bot/', path: { 'org': org, }, }); } /** * Create modify and update bot information for a specific tenant. * @returns BotCreate * @throws ApiError */ public static aiBotV1BotsBotCreate({ org, requestBody, }: { org: string, requestBody: BotCreate, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/{org}/bot/', path: { 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create slash commands for a specific bot * eg. /iblai-baseline * @returns BotCommand * @throws ApiError */ public static aiBotV1BotsBotCommandsList({ org, }: { org: string, }): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/bot-commands/', path: { 'org': org, }, }); } /** * Create slash commands for a specific bot * eg. /iblai-baseline * @returns BotCommand * @throws ApiError */ public static aiBotV1BotsBotCommandsCreate({ org, requestBody, }: { org: string, requestBody: BotCommand, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/{org}/bot-commands/', path: { 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create slash commands for a specific bot * eg. /iblai-baseline * @returns BotCommand * @throws ApiError */ public static aiBotV1BotsBotCommandsRetrieve({ id, org, }: { /** * A unique integer value identifying this bot command. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Create slash commands for a specific bot * eg. /iblai-baseline * @returns BotCommand * @throws ApiError */ public static aiBotV1BotsBotCommandsUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot command. */ id: number, org: string, requestBody: BotCommand, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create slash commands for a specific bot * eg. /iblai-baseline * @returns BotCommand * @throws ApiError */ public static aiBotV1BotsBotCommandsPartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot command. */ id: number, org: string, requestBody?: PatchedBotCommand, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create slash commands for a specific bot * eg. /iblai-baseline * @returns void * @throws ApiError */ public static aiBotV1BotsBotCommandsDestroy({ id, org, }: { /** * A unique integer value identifying this bot command. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Create modify and update bot information for a specific tenant. * @returns Bot * @throws ApiError */ public static aiBotV1BotsBotRetrieve({ id, org, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Create modify and update bot information for a specific tenant. * @returns BotCreate * @throws ApiError */ public static aiBotV1BotsBotUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody: BotCreate, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns BotCreate * @throws ApiError */ public static aiBotV1BotsBotPartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody?: PatchedBotCreate, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns void * @throws ApiError */ public static aiBotV1BotsBotDestroy({ id, org, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Create modify and update bot information for a specific tenant. * @returns DiscordConfig * @throws ApiError */ public static aiBotV1BotsBotConfigDiscordRetrieve({ id, org, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/', path: { 'id': id, 'org': org, }, }); } /** * Create modify and update bot information for a specific tenant. * @returns DiscordConfig * @throws ApiError */ public static aiBotV1BotsBotConfigDiscordPartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody?: PatchedDiscordConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns SlackConfig * @throws ApiError */ public static aiBotV1BotsBotConfigSlackRetrieve({ id, org, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/', path: { 'id': id, 'org': org, }, }); } /** * Create modify and update bot information for a specific tenant. * @returns SlackConfig * @throws ApiError */ public static aiBotV1BotsBotConfigSlackUpdateCreate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody: SlackConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns SlackConfig * @throws ApiError */ public static aiBotV1BotsBotConfigSlackUpdateUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody: SlackConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns SlackConfig * @throws ApiError */ public static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody?: PatchedSlackConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns TeamsConfig * @throws ApiError */ public static aiBotV1BotsBotConfigTeamsRetrieve({ id, org, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/', path: { 'id': id, 'org': org, }, }); } /** * Create modify and update bot information for a specific tenant. * @returns TeamsConfig * @throws ApiError */ public static aiBotV1BotsBotConfigTeamsUpdateCreate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody: TeamsConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns TeamsConfig * @throws ApiError */ public static aiBotV1BotsBotConfigTeamsUpdateUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody: TeamsConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns TeamsConfig * @throws ApiError */ public static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody?: PatchedTeamsConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns WebexConfig * @throws ApiError */ public static aiBotV1BotsBotConfigWebexRetrieve({ id, org, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/', path: { 'id': id, 'org': org, }, }); } /** * Create modify and update bot information for a specific tenant. * @returns WebexConfig * @throws ApiError */ public static aiBotV1BotsBotConfigWebexPartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody?: PatchedWebexConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns WhatsappConfig * @throws ApiError */ public static aiBotV1BotsBotConfigWhatsappRetrieve({ id, org, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/', path: { 'id': id, 'org': org, }, }); } /** * Create modify and update bot information for a specific tenant. * @returns WhatsappConfig * @throws ApiError */ public static aiBotV1BotsBotWhatsappConfigUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody: WhatsappConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Create modify and update bot information for a specific tenant. * @returns WhatsappConfig * @throws ApiError */ public static aiBotV1BotsBotWhatsappConfigPartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this bot. */ id: number, org: string, requestBody?: PatchedWhatsappConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup discord user id linkage with discord bots * this will be used to authenticate the user when interracting with discord bots. * the user id can be copied from the discord app after tapping on the user profile. * @returns DiscordUserConfig * @throws ApiError */ public static aiBotV1BotsDiscordUserConfigList({ org, }: { org: string, }): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/discord-user-config/', path: { 'org': org, }, }); } /** * Setup discord user id linkage with discord bots * this will be used to authenticate the user when interracting with discord bots. * the user id can be copied from the discord app after tapping on the user profile. * @returns DiscordUserConfig * @throws ApiError */ public static aiBotV1BotsDiscordUserConfigCreate({ org, requestBody, }: { org: string, requestBody: DiscordUserConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/{org}/discord-user-config/', path: { 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup discord user id linkage with discord bots * this will be used to authenticate the user when interracting with discord bots. * the user id can be copied from the discord app after tapping on the user profile. * @returns DiscordUserConfig * @throws ApiError */ public static aiBotV1BotsDiscordUserConfigRetrieve({ id, org, }: { /** * A unique integer value identifying this discord user config. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Setup discord user id linkage with discord bots * this will be used to authenticate the user when interracting with discord bots. * the user id can be copied from the discord app after tapping on the user profile. * @returns DiscordUserConfig * @throws ApiError */ public static aiBotV1BotsDiscordUserConfigUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this discord user config. */ id: number, org: string, requestBody: DiscordUserConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup discord user id linkage with discord bots * this will be used to authenticate the user when interracting with discord bots. * the user id can be copied from the discord app after tapping on the user profile. * @returns DiscordUserConfig * @throws ApiError */ public static aiBotV1BotsDiscordUserConfigPartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this discord user config. */ id: number, org: string, requestBody?: PatchedDiscordUserConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup discord user id linkage with discord bots * this will be used to authenticate the user when interracting with discord bots. * the user id can be copied from the discord app after tapping on the user profile. * @returns void * @throws ApiError */ public static aiBotV1BotsDiscordUserConfigDestroy({ id, org, }: { /** * A unique integer value identifying this discord user config. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Setup slack username and domain linkage with slack bots * this will be used to authenticate the user when interracting with slack bots. * @returns SlackUserConfig * @throws ApiError */ public static aiBotV1BotsSlackUserConfigList({ org, }: { org: string, }): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/slack-user-config/', path: { 'org': org, }, }); } /** * Setup slack username and domain linkage with slack bots * this will be used to authenticate the user when interracting with slack bots. * @returns SlackUserConfig * @throws ApiError */ public static aiBotV1BotsSlackUserConfigCreate({ org, requestBody, }: { org: string, requestBody: SlackUserConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/{org}/slack-user-config/', path: { 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup slack username and domain linkage with slack bots * this will be used to authenticate the user when interracting with slack bots. * @returns SlackUserConfig * @throws ApiError */ public static aiBotV1BotsSlackUserConfigRetrieve({ id, org, }: { /** * A unique integer value identifying this slack user config. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Setup slack username and domain linkage with slack bots * this will be used to authenticate the user when interracting with slack bots. * @returns SlackUserConfig * @throws ApiError */ public static aiBotV1BotsSlackUserConfigUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this slack user config. */ id: number, org: string, requestBody: SlackUserConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup slack username and domain linkage with slack bots * this will be used to authenticate the user when interracting with slack bots. * @returns SlackUserConfig * @throws ApiError */ public static aiBotV1BotsSlackUserConfigPartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this slack user config. */ id: number, org: string, requestBody?: PatchedSlackUserConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup slack username and domain linkage with slack bots * this will be used to authenticate the user when interracting with slack bots. * @returns void * @throws ApiError */ public static aiBotV1BotsSlackUserConfigDestroy({ id, org, }: { /** * A unique integer value identifying this slack user config. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Setup phone number linkage with whatsapp bots * This phone number will be used to authenticate and allow access to whatsapp bots. * @returns WhatsappUserConfig * @throws ApiError */ public static aiBotV1BotsWhatsappUserConfigList({ org, }: { org: string, }): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/', path: { 'org': org, }, }); } /** * Setup phone number linkage with whatsapp bots * This phone number will be used to authenticate and allow access to whatsapp bots. * @returns WhatsappUserConfig * @throws ApiError */ public static aiBotV1BotsWhatsappUserConfigCreate({ org, requestBody, }: { org: string, requestBody: WhatsappUserConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/', path: { 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup phone number linkage with whatsapp bots * This phone number will be used to authenticate and allow access to whatsapp bots. * @returns WhatsappUserConfig * @throws ApiError */ public static aiBotV1BotsWhatsappUserConfigRetrieve({ id, org, }: { /** * A unique integer value identifying this whatsapp user config. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Setup phone number linkage with whatsapp bots * This phone number will be used to authenticate and allow access to whatsapp bots. * @returns WhatsappUserConfig * @throws ApiError */ public static aiBotV1BotsWhatsappUserConfigUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this whatsapp user config. */ id: number, org: string, requestBody: WhatsappUserConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup phone number linkage with whatsapp bots * This phone number will be used to authenticate and allow access to whatsapp bots. * @returns WhatsappUserConfig * @throws ApiError */ public static aiBotV1BotsWhatsappUserConfigPartialUpdate({ id, org, requestBody, }: { /** * A unique integer value identifying this whatsapp user config. */ id: number, org: string, requestBody?: PatchedWhatsappUserConfig, }): CancelablePromise { return __request(OpenAPI, { method: 'PATCH', url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/', path: { 'id': id, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Setup phone number linkage with whatsapp bots * This phone number will be used to authenticate and allow access to whatsapp bots. * @returns void * @throws ApiError */ public static aiBotV1BotsWhatsappUserConfigDestroy({ id, org, }: { /** * A unique integer value identifying this whatsapp user config. */ id: number, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/', path: { 'id': id, 'org': org, }, }); } /** * Webhook endpoint to receive and process discord messages. * @returns DiscordWebhook * @throws ApiError */ public static aiBotV1BotsWebhooksDiscordCreate({ name, org, requestBody, }: { name: string, org: string, requestBody: DiscordWebhook, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/', path: { 'name': name, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns SlackWebhook * @throws ApiError */ public static aiBotV1BotsWebhooksSlackCreate({ name, org, requestBody, }: { name: string, org: string, requestBody: SlackWebhook, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/', path: { 'name': name, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * @returns TeamsWebhook * @throws ApiError */ public static aiBotV1BotsWebhooksTeamsRetrieve({ name, org, }: { name: string, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/', path: { 'name': name, 'org': org, }, }); } /** * @returns TeamsWebhook * @throws ApiError */ public static aiBotV1BotsWebhooksTeamsCreate({ name, org, requestBody, }: { name: string, org: string, requestBody?: TeamsWebhook, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/', path: { 'name': name, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Webhook endpoint to receive and process discord messages. * @returns WebexWebhook * @throws ApiError */ public static aiBotV1BotsWebhooksWebexCreate({ name, org, requestBody, }: { name: string, org: string, requestBody: WebexWebhook, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/', path: { 'name': name, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } /** * Respond to whatsapp's webhook challenge. * Parameters Required include the tenant key (org) and the name of the bot: (name) * @returns WhatAppWebHook * @throws ApiError */ public static aiBotV1BotsWebhooksWhatsappRetrieve({ name, org, }: { name: string, org: string, }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/', path: { 'name': name, 'org': org, }, }); } /** * Accept and process webhook events from whatsapp. * @returns WhatAppWebHook * @throws ApiError */ public static aiBotV1BotsWebhooksWhatsappCreate({ name, org, requestBody, }: { name: string, org: string, requestBody: WhatAppWebHook, }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/', path: { 'name': name, 'org': org, }, body: requestBody, mediaType: 'application/json', }); } }