diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/README.md b/packages/twenty-apps/internal/twenty-meeting-bot/README.md index 253ef3ff84..a166e00b5a 100644 --- a/packages/twenty-apps/internal/twenty-meeting-bot/README.md +++ b/packages/twenty-apps/internal/twenty-meeting-bot/README.md @@ -31,11 +31,11 @@ A workspace admin can adjust bot behavior through application variables: | Application variable | Default | Purpose | | --- | --- | --- | -| `RECALL_BOT_NAME` | `Twenty Meeting Bot` | Display name used when scheduling Recall.ai meeting bots. | -| `RECALL_BOT_JOIN_EARLY_MINUTES` | `1` | How many minutes before the meeting start time the bot should join. Set to `0` to join at the scheduled start time. | -| `RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS` | `1200` | How many seconds the bot waits in a meeting lobby before giving up and leaving. | -| `RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS` | `1200` | How many seconds the bot stays in an empty meeting when no one else ever joins. | -| `RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS` | `2` | How many seconds the bot keeps recording after everyone else leaves the meeting. | +| `MEETING_BOT_NAME` | `Twenty Meeting Bot` | Display name the meeting bot uses when it joins a call. | +| `MEETING_BOT_JOIN_EARLY_MINUTES` | `1` | How many minutes before the meeting start time the bot should join. Set to `0` to join at the scheduled start time. | +| `MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS` | `1200` | How many seconds the bot waits in a meeting lobby before giving up and leaving. | +| `MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS` | `1200` | How many seconds the bot stays in an empty meeting when no one else ever joins. | +| `MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS` | `2` | How many seconds the bot keeps recording after everyone else leaves the meeting. | ### Configuring the webhook diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/package.json b/packages/twenty-apps/internal/twenty-meeting-bot/package.json index 0502e168e9..fdcf2acab1 100644 --- a/packages/twenty-apps/internal/twenty-meeting-bot/package.json +++ b/packages/twenty-apps/internal/twenty-meeting-bot/package.json @@ -1,6 +1,6 @@ { "name": "twenty-meeting-bot", - "version": "0.1.2", + "version": "0.1.3", "license": "MIT", "engines": { "node": "^24.5.0", diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/application-config.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/application-config.ts index 437fb57a18..4ed3146780 100644 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/application-config.ts +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/application-config.ts @@ -3,23 +3,23 @@ import { defineApplication } from 'twenty-sdk/define'; import { APP_DESCRIPTION } from 'src/constants/app-description'; import { APP_DISPLAY_NAME } from 'src/constants/app-display-name'; import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/constants/application-universal-identifier'; -import { RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/recall-bot-everyone-left-timeout-seconds-app-variable-universal-identifier'; -import { RECALL_BOT_JOIN_EARLY_MINUTES_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/recall-bot-join-early-minutes-app-variable-universal-identifier'; -import { RECALL_BOT_NAME_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/recall-bot-name-app-variable-universal-identifier'; -import { RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/recall-bot-noone-joined-timeout-seconds-app-variable-universal-identifier'; -import { RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/recall-bot-waiting-room-timeout-seconds-app-variable-universal-identifier'; -import { DEFAULT_RECALL_BOT_JOIN_EARLY_MINUTES } from 'src/logic-functions/constants/default-recall-bot-join-early-minutes'; -import { DEFAULT_RECALL_BOT_NAME } from 'src/logic-functions/constants/default-recall-bot-name'; +import { MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/meeting-bot-everyone-left-timeout-seconds-app-variable-universal-identifier'; +import { MEETING_BOT_JOIN_EARLY_MINUTES_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/meeting-bot-join-early-minutes-app-variable-universal-identifier'; +import { MEETING_BOT_NAME_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/meeting-bot-name-app-variable-universal-identifier'; +import { MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/meeting-bot-noone-joined-timeout-seconds-app-variable-universal-identifier'; +import { MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/constants/meeting-bot-waiting-room-timeout-seconds-app-variable-universal-identifier'; +import { DEFAULT_MEETING_BOT_JOIN_EARLY_MINUTES } from 'src/logic-functions/constants/default-meeting-bot-join-early-minutes'; +import { DEFAULT_MEETING_BOT_NAME } from 'src/logic-functions/constants/default-meeting-bot-name'; import { DEFAULT_RECALL_REGION } from 'src/logic-functions/constants/default-recall-region'; +import { MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS } from 'src/logic-functions/constants/meeting-bot-everyone-left-timeout-seconds'; +import { MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-everyone-left-timeout-seconds-env-var-name'; +import { MEETING_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-join-early-minutes-env-var-name'; +import { MEETING_BOT_NAME_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-name-env-var-name'; +import { MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS } from 'src/logic-functions/constants/meeting-bot-noone-joined-timeout-seconds'; +import { MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-noone-joined-timeout-seconds-env-var-name'; +import { MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS } from 'src/logic-functions/constants/meeting-bot-waiting-room-timeout-seconds'; +import { MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-waiting-room-timeout-seconds-env-var-name'; import { RECALL_API_KEY_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-api-key-env-var-name'; -import { RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS } from 'src/logic-functions/constants/recall-bot-everyone-left-timeout-seconds'; -import { RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-everyone-left-timeout-seconds-env-var-name'; -import { RECALL_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-join-early-minutes-env-var-name'; -import { RECALL_BOT_NAME_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-name-env-var-name'; -import { RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS } from 'src/logic-functions/constants/recall-bot-noone-joined-timeout-seconds'; -import { RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-noone-joined-timeout-seconds-env-var-name'; -import { RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS } from 'src/logic-functions/constants/recall-bot-waiting-room-timeout-seconds'; -import { RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-waiting-room-timeout-seconds-env-var-name'; import { RECALL_REGION_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-region-env-var-name'; import { RECALL_WEBHOOK_SECRET_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-webhook-secret-env-var-name'; @@ -29,43 +29,43 @@ export default defineApplication({ description: APP_DESCRIPTION, logoUrl: 'public/logo.svg', applicationVariables: { - [RECALL_BOT_NAME_ENV_VAR_NAME]: { - universalIdentifier: RECALL_BOT_NAME_APP_VARIABLE_UNIVERSAL_IDENTIFIER, - description: 'Display name used when scheduling Recall.ai meeting bots.', + [MEETING_BOT_NAME_ENV_VAR_NAME]: { + universalIdentifier: MEETING_BOT_NAME_APP_VARIABLE_UNIVERSAL_IDENTIFIER, + description: 'Display name the meeting bot uses when it joins a call.', isSecret: false, - value: DEFAULT_RECALL_BOT_NAME, + value: DEFAULT_MEETING_BOT_NAME, }, - [RECALL_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME]: { + [MEETING_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME]: { universalIdentifier: - RECALL_BOT_JOIN_EARLY_MINUTES_APP_VARIABLE_UNIVERSAL_IDENTIFIER, + MEETING_BOT_JOIN_EARLY_MINUTES_APP_VARIABLE_UNIVERSAL_IDENTIFIER, description: 'How many minutes before the meeting start time the bot should join. Set to 0 to join at the scheduled start time.', isSecret: false, - value: String(DEFAULT_RECALL_BOT_JOIN_EARLY_MINUTES), + value: String(DEFAULT_MEETING_BOT_JOIN_EARLY_MINUTES), }, - [RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME]: { + [MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME]: { universalIdentifier: - RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER, + MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER, description: 'How many seconds the bot waits in a meeting lobby before giving up and leaving.', isSecret: false, - value: String(RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS), + value: String(MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS), }, - [RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME]: { + [MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME]: { universalIdentifier: - RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER, + MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER, description: 'How many seconds the bot stays in an empty meeting when no one else ever joins.', isSecret: false, - value: String(RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS), + value: String(MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS), }, - [RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME]: { + [MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME]: { universalIdentifier: - RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER, + MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER, description: 'How many seconds the bot keeps recording after everyone else leaves the meeting.', isSecret: false, - value: String(RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS), + value: String(MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS), }, }, serverVariables: { diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-everyone-left-timeout-seconds-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-everyone-left-timeout-seconds-app-variable-universal-identifier.ts new file mode 100644 index 0000000000..6197b972b7 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-everyone-left-timeout-seconds-app-variable-universal-identifier.ts @@ -0,0 +1,2 @@ +export const MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER = + 'c866ddd4-fb7b-4cb4-8ad1-5599755e495c'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-join-early-minutes-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-join-early-minutes-app-variable-universal-identifier.ts new file mode 100644 index 0000000000..3d4165ec0e --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-join-early-minutes-app-variable-universal-identifier.ts @@ -0,0 +1,2 @@ +export const MEETING_BOT_JOIN_EARLY_MINUTES_APP_VARIABLE_UNIVERSAL_IDENTIFIER = + '0568ebb2-3f64-47de-8c0d-d367dfbb7462'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-name-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-name-app-variable-universal-identifier.ts new file mode 100644 index 0000000000..51a8ac9177 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-name-app-variable-universal-identifier.ts @@ -0,0 +1,2 @@ +export const MEETING_BOT_NAME_APP_VARIABLE_UNIVERSAL_IDENTIFIER = + 'c54cbacd-ad10-40b4-9056-7aaf23846d64'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-noone-joined-timeout-seconds-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-noone-joined-timeout-seconds-app-variable-universal-identifier.ts new file mode 100644 index 0000000000..60b8a04a00 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-noone-joined-timeout-seconds-app-variable-universal-identifier.ts @@ -0,0 +1,2 @@ +export const MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER = + '241180e8-d864-4160-ad02-db44a9e8d395'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-waiting-room-timeout-seconds-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-waiting-room-timeout-seconds-app-variable-universal-identifier.ts new file mode 100644 index 0000000000..bec5abdce4 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/meeting-bot-waiting-room-timeout-seconds-app-variable-universal-identifier.ts @@ -0,0 +1,2 @@ +export const MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER = + '12e4e14d-d539-4d07-b477-4773539dd20b'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-everyone-left-timeout-seconds-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-everyone-left-timeout-seconds-app-variable-universal-identifier.ts deleted file mode 100644 index 3555cd8546..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-everyone-left-timeout-seconds-app-variable-universal-identifier.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER = - 'c866ddd4-fb7b-4cb4-8ad1-5599755e495c'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-join-early-minutes-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-join-early-minutes-app-variable-universal-identifier.ts deleted file mode 100644 index 6b41f80c9f..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-join-early-minutes-app-variable-universal-identifier.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const RECALL_BOT_JOIN_EARLY_MINUTES_APP_VARIABLE_UNIVERSAL_IDENTIFIER = - '0568ebb2-3f64-47de-8c0d-d367dfbb7462'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-name-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-name-app-variable-universal-identifier.ts deleted file mode 100644 index a30824b424..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-name-app-variable-universal-identifier.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const RECALL_BOT_NAME_APP_VARIABLE_UNIVERSAL_IDENTIFIER = - 'c54cbacd-ad10-40b4-9056-7aaf23846d64'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-noone-joined-timeout-seconds-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-noone-joined-timeout-seconds-app-variable-universal-identifier.ts deleted file mode 100644 index cd9da50911..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-noone-joined-timeout-seconds-app-variable-universal-identifier.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER = - '241180e8-d864-4160-ad02-db44a9e8d395'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-waiting-room-timeout-seconds-app-variable-universal-identifier.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-waiting-room-timeout-seconds-app-variable-universal-identifier.ts deleted file mode 100644 index e2b81c227a..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/constants/recall-bot-waiting-room-timeout-seconds-app-variable-universal-identifier.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER = - '12e4e14d-d539-4d07-b477-4773539dd20b'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-meeting-bot-join-early-minutes.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-meeting-bot-join-early-minutes.ts new file mode 100644 index 0000000000..4af45b74e9 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-meeting-bot-join-early-minutes.ts @@ -0,0 +1 @@ +export const DEFAULT_MEETING_BOT_JOIN_EARLY_MINUTES = 1; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-meeting-bot-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-meeting-bot-name.ts new file mode 100644 index 0000000000..4c2a6f77e3 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-meeting-bot-name.ts @@ -0,0 +1 @@ +export const DEFAULT_MEETING_BOT_NAME = 'Twenty Meeting Bot'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-recall-bot-join-early-minutes.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-recall-bot-join-early-minutes.ts deleted file mode 100644 index cbaa7b1a80..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-recall-bot-join-early-minutes.ts +++ /dev/null @@ -1 +0,0 @@ -export const DEFAULT_RECALL_BOT_JOIN_EARLY_MINUTES = 1; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-recall-bot-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-recall-bot-name.ts deleted file mode 100644 index 4e0bacb9ed..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/default-recall-bot-name.ts +++ /dev/null @@ -1 +0,0 @@ -export const DEFAULT_RECALL_BOT_NAME = 'Twenty Meeting Bot'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-everyone-left-timeout-seconds-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-everyone-left-timeout-seconds-env-var-name.ts new file mode 100644 index 0000000000..2528599282 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-everyone-left-timeout-seconds-env-var-name.ts @@ -0,0 +1,2 @@ +export const MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME = + 'MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-everyone-left-timeout-seconds.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-everyone-left-timeout-seconds.ts new file mode 100644 index 0000000000..e4c841805a --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-everyone-left-timeout-seconds.ts @@ -0,0 +1 @@ +export const MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS = 2; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-join-early-minutes-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-join-early-minutes-env-var-name.ts new file mode 100644 index 0000000000..7cb8ac5121 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-join-early-minutes-env-var-name.ts @@ -0,0 +1,2 @@ +export const MEETING_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME = + 'MEETING_BOT_JOIN_EARLY_MINUTES'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-name-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-name-env-var-name.ts new file mode 100644 index 0000000000..efa200e15e --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-name-env-var-name.ts @@ -0,0 +1 @@ +export const MEETING_BOT_NAME_ENV_VAR_NAME = 'MEETING_BOT_NAME'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-noone-joined-timeout-seconds-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-noone-joined-timeout-seconds-env-var-name.ts new file mode 100644 index 0000000000..f530a83ca4 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-noone-joined-timeout-seconds-env-var-name.ts @@ -0,0 +1,2 @@ +export const MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME = + 'MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-noone-joined-timeout-seconds.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-noone-joined-timeout-seconds.ts new file mode 100644 index 0000000000..52ed2c3672 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-noone-joined-timeout-seconds.ts @@ -0,0 +1 @@ +export const MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS = 20 * 60; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-waiting-room-timeout-seconds-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-waiting-room-timeout-seconds-env-var-name.ts new file mode 100644 index 0000000000..ca872670bc --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-waiting-room-timeout-seconds-env-var-name.ts @@ -0,0 +1,2 @@ +export const MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME = + 'MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-waiting-room-timeout-seconds.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-waiting-room-timeout-seconds.ts new file mode 100644 index 0000000000..42bfa92498 --- /dev/null +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/meeting-bot-waiting-room-timeout-seconds.ts @@ -0,0 +1 @@ +export const MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS = 1200; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-automatic-leave.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-automatic-leave.ts index 633e4be73b..5eb60dd57d 100644 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-automatic-leave.ts +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-automatic-leave.ts @@ -1,9 +1,9 @@ import { isUndefined } from '@sniptt/guards'; +import { MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-everyone-left-timeout-seconds-env-var-name'; +import { MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-noone-joined-timeout-seconds-env-var-name'; +import { MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-waiting-room-timeout-seconds-env-var-name'; import { RECALL_BOT_EVERYONE_LEFT_MIN_ACTIVATE_AFTER_SECONDS } from 'src/logic-functions/constants/recall-bot-everyone-left-min-activate-after-seconds'; -import { RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-everyone-left-timeout-seconds-env-var-name'; -import { RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-noone-joined-timeout-seconds-env-var-name'; -import { RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-waiting-room-timeout-seconds-env-var-name'; import { getApplicationVariableValue } from 'src/logic-functions/utils/get-application-variable-value.util'; import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util'; @@ -20,13 +20,13 @@ export const getRecallBotAutomaticLeave = (): | RecallBotAutomaticLeave | undefined => { const waitingRoomTimeoutSeconds = getOptionalPositiveIntegerVariable( - RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME, + MEETING_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME, ); const nooneJoinedTimeoutSeconds = getOptionalPositiveIntegerVariable( - RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME, + MEETING_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME, ); const everyoneLeftTimeoutSeconds = getOptionalPositiveIntegerVariable( - RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME, + MEETING_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME, ); const automaticLeave: RecallBotAutomaticLeave = {}; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-everyone-left-timeout-seconds-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-everyone-left-timeout-seconds-env-var-name.ts deleted file mode 100644 index 687eb60710..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-everyone-left-timeout-seconds-env-var-name.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME = - 'RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-everyone-left-timeout-seconds.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-everyone-left-timeout-seconds.ts deleted file mode 100644 index 94c5f14702..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-everyone-left-timeout-seconds.ts +++ /dev/null @@ -1 +0,0 @@ -export const RECALL_BOT_EVERYONE_LEFT_TIMEOUT_SECONDS = 2; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-join-early-minutes-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-join-early-minutes-env-var-name.ts deleted file mode 100644 index 1d69f87609..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-join-early-minutes-env-var-name.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const RECALL_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME = - 'RECALL_BOT_JOIN_EARLY_MINUTES'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-name-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-name-env-var-name.ts deleted file mode 100644 index 4d6d97f070..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-name-env-var-name.ts +++ /dev/null @@ -1 +0,0 @@ -export const RECALL_BOT_NAME_ENV_VAR_NAME = 'RECALL_BOT_NAME'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-noone-joined-timeout-seconds-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-noone-joined-timeout-seconds-env-var-name.ts deleted file mode 100644 index be178a9109..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-noone-joined-timeout-seconds-env-var-name.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME = - 'RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-noone-joined-timeout-seconds.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-noone-joined-timeout-seconds.ts deleted file mode 100644 index 2a4337a0a8..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-noone-joined-timeout-seconds.ts +++ /dev/null @@ -1 +0,0 @@ -export const RECALL_BOT_NOONE_JOINED_TIMEOUT_SECONDS = 20 * 60; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-waiting-room-timeout-seconds-env-var-name.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-waiting-room-timeout-seconds-env-var-name.ts deleted file mode 100644 index 673c992333..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-waiting-room-timeout-seconds-env-var-name.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME = - 'RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS'; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-waiting-room-timeout-seconds.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-waiting-room-timeout-seconds.ts deleted file mode 100644 index e366ee008b..0000000000 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/constants/recall-bot-waiting-room-timeout-seconds.ts +++ /dev/null @@ -1 +0,0 @@ -export const RECALL_BOT_WAITING_ROOM_TIMEOUT_SECONDS = 1200; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/domain/compute-recall-bot-join-at.util.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/domain/compute-recall-bot-join-at.util.ts index bf6355a9a0..cfef069543 100644 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/domain/compute-recall-bot-join-at.util.ts +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/domain/compute-recall-bot-join-at.util.ts @@ -1,6 +1,6 @@ -import { DEFAULT_RECALL_BOT_JOIN_EARLY_MINUTES } from 'src/logic-functions/constants/default-recall-bot-join-early-minutes'; +import { DEFAULT_MEETING_BOT_JOIN_EARLY_MINUTES } from 'src/logic-functions/constants/default-meeting-bot-join-early-minutes'; import { MILLISECONDS_PER_MINUTE } from 'src/logic-functions/constants/milliseconds-per-minute'; -import { RECALL_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-join-early-minutes-env-var-name'; +import { MEETING_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-join-early-minutes-env-var-name'; import { getApplicationVariableValue } from 'src/logic-functions/utils/get-application-variable-value.util'; import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util'; @@ -19,16 +19,16 @@ export const computeRecallBotJoinAt = (meetingStartsAt: string): string => { const getRecallBotJoinEarlyMinutes = (): number => { const rawValue = getApplicationVariableValue( - RECALL_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME, + MEETING_BOT_JOIN_EARLY_MINUTES_ENV_VAR_NAME, ); if (!isNonEmptyString(rawValue)) { - return DEFAULT_RECALL_BOT_JOIN_EARLY_MINUTES; + return DEFAULT_MEETING_BOT_JOIN_EARLY_MINUTES; } const joinEarlyMinutes = Number(rawValue.trim()); return Number.isInteger(joinEarlyMinutes) && joinEarlyMinutes >= 0 ? joinEarlyMinutes - : DEFAULT_RECALL_BOT_JOIN_EARLY_MINUTES; + : DEFAULT_MEETING_BOT_JOIN_EARLY_MINUTES; }; diff --git a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/recall-api/get-recall-api-config.util.ts b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/recall-api/get-recall-api-config.util.ts index a08a2f5b6b..3bac96a932 100644 --- a/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/recall-api/get-recall-api-config.util.ts +++ b/packages/twenty-apps/internal/twenty-meeting-bot/src/logic-functions/recall-api/get-recall-api-config.util.ts @@ -1,9 +1,9 @@ import { isUndefined } from '@sniptt/guards'; -import { DEFAULT_RECALL_BOT_NAME } from 'src/logic-functions/constants/default-recall-bot-name'; +import { DEFAULT_MEETING_BOT_NAME } from 'src/logic-functions/constants/default-meeting-bot-name'; import { DEFAULT_RECALL_REGION } from 'src/logic-functions/constants/default-recall-region'; +import { MEETING_BOT_NAME_ENV_VAR_NAME } from 'src/logic-functions/constants/meeting-bot-name-env-var-name'; import { RECALL_API_KEY_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-api-key-env-var-name'; -import { RECALL_BOT_NAME_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-bot-name-env-var-name'; import { RECALL_REGION_ENV_VAR_NAME } from 'src/logic-functions/constants/recall-region-env-var-name'; import { getApplicationVariableValue } from 'src/logic-functions/utils/get-application-variable-value.util'; import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util'; @@ -41,8 +41,8 @@ export const getRecallApiConfig = (): ) ?? DEFAULT_RECALL_REGION; const botName = normalizeOptionalString( - getApplicationVariableValue(RECALL_BOT_NAME_ENV_VAR_NAME), - ) ?? DEFAULT_RECALL_BOT_NAME; + getApplicationVariableValue(MEETING_BOT_NAME_ENV_VAR_NAME), + ) ?? DEFAULT_MEETING_BOT_NAME; return { success: true,