feat: migrate SMS/voice to Telnyx (TeXML), keep browser dial pad on Twilio

Twilio now handles only the in-browser dial pad (Access Token + browser-Device
outbound TwiML); Telnyx takes over SMS, inbound voicemail, the AI voice
conversation loop, and staff-triggered outbound calls via TeXML. Adds
TelnyxSettings model, Communication.provider discriminator, new comms/routes
modules, and a real Telnyx Settings page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-03 15:39:43 -04:00
co-authored by Claude Sonnet 5
parent b899659e13
commit 79ac6aaa31
463 changed files with 7823 additions and 3397 deletions
@@ -1,7 +1,7 @@
{
"version": "1.0",
"generatorVersion": "1.0.0",
"generatedAt": "2026-09-03T01:38:13.906Z",
"generatorVersion": "unknown",
"generatedAt": "2026-09-03T18:52:59.084Z",
"outputPath": "/home/gg/Desktop/DentalManagementMH07/packages/db/shared",
"files": [
"schemas/enums/TransactionIsolationLevel.schema.ts",
@@ -31,6 +31,7 @@
"schemas/enums/CommunicationScalarFieldEnum.schema.ts",
"schemas/enums/PatientDocumentScalarFieldEnum.schema.ts",
"schemas/enums/TwilioSettingsScalarFieldEnum.schema.ts",
"schemas/enums/TelnyxSettingsScalarFieldEnum.schema.ts",
"schemas/enums/AiSettingsScalarFieldEnum.schema.ts",
"schemas/enums/OfficeHoursScalarFieldEnum.schema.ts",
"schemas/enums/OfficeContactScalarFieldEnum.schema.ts",
@@ -59,6 +60,7 @@
"schemas/enums/CommunicationChannel.schema.ts",
"schemas/enums/CommunicationDirection.schema.ts",
"schemas/enums/CommunicationStatus.schema.ts",
"schemas/enums/CommunicationProvider.schema.ts",
"schemas/objects/UserWhereInput.schema.ts",
"schemas/objects/UserOrderByWithRelationInput.schema.ts",
"schemas/objects/UserWhereUniqueInput.schema.ts",
@@ -189,6 +191,11 @@
"schemas/objects/TwilioSettingsWhereUniqueInput.schema.ts",
"schemas/objects/TwilioSettingsOrderByWithAggregationInput.schema.ts",
"schemas/objects/TwilioSettingsScalarWhereWithAggregatesInput.schema.ts",
"schemas/objects/TelnyxSettingsWhereInput.schema.ts",
"schemas/objects/TelnyxSettingsOrderByWithRelationInput.schema.ts",
"schemas/objects/TelnyxSettingsWhereUniqueInput.schema.ts",
"schemas/objects/TelnyxSettingsOrderByWithAggregationInput.schema.ts",
"schemas/objects/TelnyxSettingsScalarWhereWithAggregatesInput.schema.ts",
"schemas/objects/AiSettingsWhereInput.schema.ts",
"schemas/objects/AiSettingsOrderByWithRelationInput.schema.ts",
"schemas/objects/AiSettingsWhereUniqueInput.schema.ts",
@@ -421,6 +428,13 @@
"schemas/objects/TwilioSettingsCreateManyInput.schema.ts",
"schemas/objects/TwilioSettingsUpdateManyMutationInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedUpdateManyInput.schema.ts",
"schemas/objects/TelnyxSettingsCreateInput.schema.ts",
"schemas/objects/TelnyxSettingsUncheckedCreateInput.schema.ts",
"schemas/objects/TelnyxSettingsUpdateInput.schema.ts",
"schemas/objects/TelnyxSettingsUncheckedUpdateInput.schema.ts",
"schemas/objects/TelnyxSettingsCreateManyInput.schema.ts",
"schemas/objects/TelnyxSettingsUpdateManyMutationInput.schema.ts",
"schemas/objects/TelnyxSettingsUncheckedUpdateManyInput.schema.ts",
"schemas/objects/AiSettingsCreateInput.schema.ts",
"schemas/objects/AiSettingsUncheckedCreateInput.schema.ts",
"schemas/objects/AiSettingsUpdateInput.schema.ts",
@@ -509,6 +523,7 @@
"schemas/objects/CloudFileListRelationFilter.schema.ts",
"schemas/objects/CommunicationListRelationFilter.schema.ts",
"schemas/objects/TwilioSettingsNullableScalarRelationFilter.schema.ts",
"schemas/objects/TelnyxSettingsNullableScalarRelationFilter.schema.ts",
"schemas/objects/AiSettingsNullableScalarRelationFilter.schema.ts",
"schemas/objects/OfficeHoursNullableScalarRelationFilter.schema.ts",
"schemas/objects/OfficeContactNullableScalarRelationFilter.schema.ts",
@@ -735,6 +750,7 @@
"schemas/objects/EnumCommunicationChannelFilter.schema.ts",
"schemas/objects/EnumCommunicationDirectionFilter.schema.ts",
"schemas/objects/EnumCommunicationStatusFilter.schema.ts",
"schemas/objects/EnumCommunicationProviderFilter.schema.ts",
"schemas/objects/CommunicationCountOrderByAggregateInput.schema.ts",
"schemas/objects/CommunicationAvgOrderByAggregateInput.schema.ts",
"schemas/objects/CommunicationMaxOrderByAggregateInput.schema.ts",
@@ -743,6 +759,7 @@
"schemas/objects/EnumCommunicationChannelWithAggregatesFilter.schema.ts",
"schemas/objects/EnumCommunicationDirectionWithAggregatesFilter.schema.ts",
"schemas/objects/EnumCommunicationStatusWithAggregatesFilter.schema.ts",
"schemas/objects/EnumCommunicationProviderWithAggregatesFilter.schema.ts",
"schemas/objects/PatientDocumentCountOrderByAggregateInput.schema.ts",
"schemas/objects/PatientDocumentAvgOrderByAggregateInput.schema.ts",
"schemas/objects/PatientDocumentMaxOrderByAggregateInput.schema.ts",
@@ -753,6 +770,11 @@
"schemas/objects/TwilioSettingsMaxOrderByAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsMinOrderByAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsSumOrderByAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsCountOrderByAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsAvgOrderByAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsMaxOrderByAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsMinOrderByAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsSumOrderByAggregateInput.schema.ts",
"schemas/objects/AiSettingsCountOrderByAggregateInput.schema.ts",
"schemas/objects/AiSettingsAvgOrderByAggregateInput.schema.ts",
"schemas/objects/AiSettingsMaxOrderByAggregateInput.schema.ts",
@@ -823,6 +845,7 @@
"schemas/objects/CloudFileCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/CommunicationCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/TelnyxSettingsCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactCreateNestedOneWithoutUserInput.schema.ts",
@@ -846,6 +869,7 @@
"schemas/objects/CloudFileUncheckedCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/CommunicationUncheckedCreateNestedManyWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/TelnyxSettingsUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedCreateNestedOneWithoutUserInput.schema.ts",
"schemas/objects/OfficeContactUncheckedCreateNestedOneWithoutUserInput.schema.ts",
@@ -872,6 +896,7 @@
"schemas/objects/CloudFileUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/CommunicationUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/TwilioSettingsUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/TelnyxSettingsUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/AiSettingsUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeHoursUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeContactUpdateOneWithoutUserNestedInput.schema.ts",
@@ -895,6 +920,7 @@
"schemas/objects/CloudFileUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/CommunicationUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/TelnyxSettingsUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/AiSettingsUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeHoursUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
"schemas/objects/OfficeContactUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
@@ -1121,12 +1147,15 @@
"schemas/objects/EnumCommunicationChannelFieldUpdateOperationsInput.schema.ts",
"schemas/objects/EnumCommunicationDirectionFieldUpdateOperationsInput.schema.ts",
"schemas/objects/EnumCommunicationStatusFieldUpdateOperationsInput.schema.ts",
"schemas/objects/EnumCommunicationProviderFieldUpdateOperationsInput.schema.ts",
"schemas/objects/PatientUpdateOneRequiredWithoutCommunicationsNestedInput.schema.ts",
"schemas/objects/UserUpdateOneWithoutCommunicationsNestedInput.schema.ts",
"schemas/objects/PatientCreateNestedOneWithoutDocumentsInput.schema.ts",
"schemas/objects/PatientUpdateOneRequiredWithoutDocumentsNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutTwilioSettingsNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutTelnyxSettingsInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutTelnyxSettingsNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutAiSettingsNestedInput.schema.ts",
"schemas/objects/UserCreateNestedOneWithoutOfficeHoursInput.schema.ts",
@@ -1201,9 +1230,11 @@
"schemas/objects/NestedEnumCommunicationChannelFilter.schema.ts",
"schemas/objects/NestedEnumCommunicationDirectionFilter.schema.ts",
"schemas/objects/NestedEnumCommunicationStatusFilter.schema.ts",
"schemas/objects/NestedEnumCommunicationProviderFilter.schema.ts",
"schemas/objects/NestedEnumCommunicationChannelWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumCommunicationDirectionWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumCommunicationStatusWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumCommunicationProviderWithAggregatesFilter.schema.ts",
"schemas/objects/NestedJsonFilter.schema.ts",
"schemas/objects/PatientCreateWithoutUserInput.schema.ts",
"schemas/objects/PatientUncheckedCreateWithoutUserInput.schema.ts",
@@ -1264,6 +1295,9 @@
"schemas/objects/TwilioSettingsCreateWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsCreateOrConnectWithoutUserInput.schema.ts",
"schemas/objects/TelnyxSettingsCreateWithoutUserInput.schema.ts",
"schemas/objects/TelnyxSettingsUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/TelnyxSettingsCreateOrConnectWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsCreateWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUncheckedCreateWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsCreateOrConnectWithoutUserInput.schema.ts",
@@ -1351,6 +1385,10 @@
"schemas/objects/TwilioSettingsUpdateToOneWithWhereWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsUpdateWithoutUserInput.schema.ts",
"schemas/objects/TwilioSettingsUncheckedUpdateWithoutUserInput.schema.ts",
"schemas/objects/TelnyxSettingsUpsertWithoutUserInput.schema.ts",
"schemas/objects/TelnyxSettingsUpdateToOneWithWhereWithoutUserInput.schema.ts",
"schemas/objects/TelnyxSettingsUpdateWithoutUserInput.schema.ts",
"schemas/objects/TelnyxSettingsUncheckedUpdateWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUpsertWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUpdateToOneWithWhereWithoutUserInput.schema.ts",
"schemas/objects/AiSettingsUpdateWithoutUserInput.schema.ts",
@@ -1898,6 +1936,13 @@
"schemas/objects/UserUpdateToOneWithWhereWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserUpdateWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserUncheckedUpdateWithoutTwilioSettingsInput.schema.ts",
"schemas/objects/UserCreateWithoutTelnyxSettingsInput.schema.ts",
"schemas/objects/UserUncheckedCreateWithoutTelnyxSettingsInput.schema.ts",
"schemas/objects/UserCreateOrConnectWithoutTelnyxSettingsInput.schema.ts",
"schemas/objects/UserUpsertWithoutTelnyxSettingsInput.schema.ts",
"schemas/objects/UserUpdateToOneWithWhereWithoutTelnyxSettingsInput.schema.ts",
"schemas/objects/UserUpdateWithoutTelnyxSettingsInput.schema.ts",
"schemas/objects/UserUncheckedUpdateWithoutTelnyxSettingsInput.schema.ts",
"schemas/objects/UserCreateWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserUncheckedCreateWithoutAiSettingsInput.schema.ts",
"schemas/objects/UserCreateOrConnectWithoutAiSettingsInput.schema.ts",
@@ -2303,6 +2348,11 @@
"schemas/objects/TwilioSettingsSumAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsMinAggregateInput.schema.ts",
"schemas/objects/TwilioSettingsMaxAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsCountAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsAvgAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsSumAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsMinAggregateInput.schema.ts",
"schemas/objects/TelnyxSettingsMaxAggregateInput.schema.ts",
"schemas/objects/AiSettingsCountAggregateInput.schema.ts",
"schemas/objects/AiSettingsAvgAggregateInput.schema.ts",
"schemas/objects/AiSettingsSumAggregateInput.schema.ts",
@@ -2449,6 +2499,7 @@
"schemas/objects/CommunicationSelect.schema.ts",
"schemas/objects/PatientDocumentSelect.schema.ts",
"schemas/objects/TwilioSettingsSelect.schema.ts",
"schemas/objects/TelnyxSettingsSelect.schema.ts",
"schemas/objects/AiSettingsSelect.schema.ts",
"schemas/objects/OfficeHoursSelect.schema.ts",
"schemas/objects/OfficeContactSelect.schema.ts",
@@ -2485,6 +2536,7 @@
"schemas/objects/CommunicationArgs.schema.ts",
"schemas/objects/PatientDocumentArgs.schema.ts",
"schemas/objects/TwilioSettingsArgs.schema.ts",
"schemas/objects/TelnyxSettingsArgs.schema.ts",
"schemas/objects/AiSettingsArgs.schema.ts",
"schemas/objects/OfficeHoursArgs.schema.ts",
"schemas/objects/OfficeContactArgs.schema.ts",
@@ -2520,6 +2572,7 @@
"schemas/objects/CommunicationInclude.schema.ts",
"schemas/objects/PatientDocumentInclude.schema.ts",
"schemas/objects/TwilioSettingsInclude.schema.ts",
"schemas/objects/TelnyxSettingsInclude.schema.ts",
"schemas/objects/AiSettingsInclude.schema.ts",
"schemas/objects/OfficeHoursInclude.schema.ts",
"schemas/objects/OfficeContactInclude.schema.ts",
@@ -2972,6 +3025,23 @@
"schemas/upsertOneTwilioSettings.schema.ts",
"schemas/aggregateTwilioSettings.schema.ts",
"schemas/groupByTwilioSettings.schema.ts",
"schemas/findUniqueTelnyxSettings.schema.ts",
"schemas/findUniqueOrThrowTelnyxSettings.schema.ts",
"schemas/findFirstTelnyxSettings.schema.ts",
"schemas/findFirstOrThrowTelnyxSettings.schema.ts",
"schemas/findManyTelnyxSettings.schema.ts",
"schemas/countTelnyxSettings.schema.ts",
"schemas/createOneTelnyxSettings.schema.ts",
"schemas/createManyTelnyxSettings.schema.ts",
"schemas/createManyAndReturnTelnyxSettings.schema.ts",
"schemas/deleteOneTelnyxSettings.schema.ts",
"schemas/deleteManyTelnyxSettings.schema.ts",
"schemas/updateOneTelnyxSettings.schema.ts",
"schemas/updateManyTelnyxSettings.schema.ts",
"schemas/updateManyAndReturnTelnyxSettings.schema.ts",
"schemas/upsertOneTelnyxSettings.schema.ts",
"schemas/aggregateTelnyxSettings.schema.ts",
"schemas/groupByTelnyxSettings.schema.ts",
"schemas/findUniqueAiSettings.schema.ts",
"schemas/findUniqueOrThrowAiSettings.schema.ts",
"schemas/findFirstAiSettings.schema.ts",
@@ -3480,6 +3550,19 @@
"schemas/results/TwilioSettingsAggregateResult.schema.ts",
"schemas/results/TwilioSettingsGroupByResult.schema.ts",
"schemas/results/TwilioSettingsCountResult.schema.ts",
"schemas/results/TelnyxSettingsFindUniqueResult.schema.ts",
"schemas/results/TelnyxSettingsFindFirstResult.schema.ts",
"schemas/results/TelnyxSettingsFindManyResult.schema.ts",
"schemas/results/TelnyxSettingsCreateResult.schema.ts",
"schemas/results/TelnyxSettingsCreateManyResult.schema.ts",
"schemas/results/TelnyxSettingsUpdateResult.schema.ts",
"schemas/results/TelnyxSettingsUpdateManyResult.schema.ts",
"schemas/results/TelnyxSettingsUpsertResult.schema.ts",
"schemas/results/TelnyxSettingsDeleteResult.schema.ts",
"schemas/results/TelnyxSettingsDeleteManyResult.schema.ts",
"schemas/results/TelnyxSettingsAggregateResult.schema.ts",
"schemas/results/TelnyxSettingsGroupByResult.schema.ts",
"schemas/results/TelnyxSettingsCountResult.schema.ts",
"schemas/results/AiSettingsFindUniqueResult.schema.ts",
"schemas/results/AiSettingsFindFirstResult.schema.ts",
"schemas/results/AiSettingsFindManyResult.schema.ts",
@@ -3638,6 +3721,7 @@
"schemas/variants/pure/Communication.pure.ts",
"schemas/variants/pure/PatientDocument.pure.ts",
"schemas/variants/pure/TwilioSettings.pure.ts",
"schemas/variants/pure/TelnyxSettings.pure.ts",
"schemas/variants/pure/AiSettings.pure.ts",
"schemas/variants/pure/OfficeHours.pure.ts",
"schemas/variants/pure/OfficeContact.pure.ts",
@@ -3675,6 +3759,7 @@
"schemas/variants/input/Communication.input.ts",
"schemas/variants/input/PatientDocument.input.ts",
"schemas/variants/input/TwilioSettings.input.ts",
"schemas/variants/input/TelnyxSettings.input.ts",
"schemas/variants/input/AiSettings.input.ts",
"schemas/variants/input/OfficeHours.input.ts",
"schemas/variants/input/OfficeContact.input.ts",
@@ -3712,6 +3797,7 @@
"schemas/variants/result/Communication.result.ts",
"schemas/variants/result/PatientDocument.result.ts",
"schemas/variants/result/TwilioSettings.result.ts",
"schemas/variants/result/TelnyxSettings.result.ts",
"schemas/variants/result/AiSettings.result.ts",
"schemas/variants/result/OfficeHours.result.ts",
"schemas/variants/result/OfficeContact.result.ts",