@sippulse/niva-sdk 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,12 +37,10 @@ class NivaIncompatibleServerError2 extends NivaError2 {
37
37
  name = "NivaIncompatibleServerError";
38
38
  serverVersion;
39
39
  supported;
40
- installCommand;
41
40
  constructor(message, details) {
42
41
  super(message);
43
42
  this.serverVersion = details.serverVersion;
44
43
  this.supported = details.supported;
45
- this.installCommand = details.installCommand;
46
44
  }
47
45
  }
48
46
 
@@ -47,13 +47,11 @@ export declare class NivaConfigurationError extends NivaError {
47
47
  export interface NivaIncompatibleServerDetails {
48
48
  serverVersion: string;
49
49
  supported: string;
50
- installCommand?: string | undefined;
51
50
  }
52
51
  export declare class NivaIncompatibleServerError extends NivaError {
53
52
  name: string;
54
53
  readonly serverVersion: string;
55
54
  readonly supported: string;
56
- readonly installCommand: string | undefined;
57
55
  constructor(message: string, details: NivaIncompatibleServerDetails);
58
56
  }
59
57
  export type NivaUnavailableReason = "operation" | "module";
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import type { NivaCall } from "../safe.js";
6
6
  import type { NivaRequestOptions, NivaStream } from "../types.js";
7
- import type { AiGetCallAnalysesInput, AiGetTranscriptionInput, AiListStructuredAnalysesInput, AiRunAnalysisInput, AiRunConfiguredAnalysesInput, AiRunSpeechAnalyticsInput, AiSearchTranscriptionsInput, AiTranscribeNowInput, ApiKeysCreateInput, ApiKeysFinishRotationInput, ApiKeysGetInput, ApiKeysListInput, ApiKeysRevokeInput, ApiKeysRotateInput, ApiKeysUpdateInput, ApiKeysUsageInput, ArchiveListDeletedInput, ArchivePurgeInput, ArchiveRestoreInput, AttendantsCreateInput, AttendantsDeleteInput, AttendantsGetByIdInput, AttendantsListInput, AttendantsRotateSipCredentialInput, AttendantsSetStatusInput, AttendantsStatusLogInput, AttendantsUpdateInput, AudioFilesContentInput, AudioFilesDeleteInput, AudioFilesGenerateTtsInput, AudioFilesGetByIdInput, AudioFilesListInput, AudioFilesPreviewUrlInput, AudioFilesRegenerateTtsInput, AudioFilesUpdateInput, AudioFilesUploadInput, AuditCountInput, AuditExportCsvInput, AuditExportJobCancelInput, AuditExportJobCreateInput, AuditExportJobDownloadInput, AuditExportJobGetInput, AuditExportJobProgressInput, AuditListInput, BugReportsCreateInput, CallRecordsChatMediaContentInput, CallRecordsCountInput, CallRecordsExportCsvInput, CallRecordsExportJobCancelInput, CallRecordsExportJobCreateInput, CallRecordsExportJobDownloadInput, CallRecordsExportJobGetInput, CallRecordsExportJobProgressInput, CallRecordsGetByIdInput, CallRecordsGetEventsInput, CallRecordsGetRecordingUrlInput, CallRecordsListInput, CallRecordsPurgeVoiceContentInput, CallRecordsRecordingContentInput, CallRecordsRetryRecordingInput, CallsHangupCallInput, CallsOriginateInput, ChannelsCreateInput, ChannelsDeleteInput, ChannelsGetByIdInput, ChannelsListInput, ChannelsRotateWebchatKeyInput, ChannelsRotateWebchatSecretInput, ChannelsTestConnectionInput, ChannelsToggleInput, ChannelsUpdateInput, ChatCreateMediaInput, ChatCreateSessionInput, ChatEndSessionInput, ChatGetMediaInput, ContactsGetByIdInput, ContactsListInput, ContactsUpdateInput, ConversationsCountInput, ConversationsGetByIdInput, ConversationsListInput, ConversationsMediaContentInput, DeskCopilotStatsInput, DeskSettingsCreateDispositionInput, DeskSettingsCreatePauseReasonInput, DeskSettingsDeleteDispositionInput, DeskSettingsDeletePauseReasonInput, DeskSettingsListDispositionsInput, DeskSettingsListPauseReasonsInput, DeskSettingsReorderDispositionsInput, DeskSettingsReorderPauseReasonsInput, DeskSettingsUpdateInput, DeskSettingsUpdateDispositionInput, DeskSettingsUpdatePauseReasonInput, DestinationsCreateInput, DestinationsDeleteInput, DestinationsGetByIdInput, DestinationsListInput, DestinationsUpdateInput, DialerAttemptsListInput, DialerCampaignsControlInput, DialerCampaignsCreateInput, DialerCampaignsDeleteInput, DialerCampaignsGetInput, DialerCampaignsListInput, DialerCampaignsLiveStatsInput, DialerCampaignsStatsInput, DialerCampaignsUpdateInput, DialerContactsAddInput, DialerContactsBulkCancelInput, DialerContactsBulkRequeueInput, DialerContactsCancelInput, DialerContactsExportCsvInput, DialerContactsGetInput, DialerContactsListInput, DialerContactsRemoveInput, DialerContactsRequeueInput, DialerContactsRequeueAllInput, DialerContactsUpdateInput, DialerDncAddInput, DialerDncBulkImportInput, DialerDncBulkRemoveInput, DialerDncListInput, DialerDncRemoveInput, DialerImportsCreateInput, DialerImportsGetInput, DialerImportsInvalidRowsInput, DialerImportsProgressInput, HolidayCalendarsCreateInput, HolidayCalendarsDeleteInput, HolidayCalendarsEntriesCreateInput, HolidayCalendarsEntriesDeleteInput, HolidayCalendarsEntriesGetByIdInput, HolidayCalendarsEntriesListInput, HolidayCalendarsEntriesUpdateInput, HolidayCalendarsGetByIdInput, HolidayCalendarsImportIcsInput, HolidayCalendarsListInput, HolidayCalendarsPreviewRuleInput, HolidayCalendarsUpdateInput, HolidayCatalogHolidaysInput, HolidayCatalogRegionsInput, InsightsAggregateInput, LicenseActivateInput, NodesSchemaInput, OauthGrantsGetInput, OauthGrantsListInput, OauthGrantsRevokeInput, OauthGrantsUsageInput, OrgSettingsUpsertDialerInput, QueuesAddMembersInput, QueuesCreateInput, QueuesDeleteInput, QueuesGetByIdInput, QueuesListInput, QueuesListMembersInput, QueuesRemoveMemberInput, QueuesReplaceMembersInput, QueuesStatsInput, QueuesUpdateInput, QueuesUpdateMemberInput, SavedRepliesCreateInput, SavedRepliesDeleteInput, SavedRepliesGetInput, SavedRepliesListInput, SavedRepliesUpdateInput, ScheduleExceptionsCreateInput, ScheduleExceptionsDeleteInput, ScheduleExceptionsGetByIdInput, ScheduleExceptionsListInput, ScheduleExceptionsUpdateInput, SchedulesCalendarInput, SchedulesClearEmergencyInput, SchedulesCreateInput, SchedulesDeleteInput, SchedulesGetByIdInput, SchedulesHolidaysInput, SchedulesListInput, SchedulesPreviewHolidaysInput, SchedulesSetEmergencyInput, SchedulesSimulateInput, SchedulesUpcomingInput, SchedulesUpdateInput, SchedulesUsageInput, SecretsListInput, SignalsCallSignalsInput, SignalsCreateInput, SignalsDeleteInput, SignalsGetInput, SignalsListInput, SignalsPresetsInput, SignalsTestInput, SignalsUpdateInput, SignalsUpsertBySlugInput, TtsListVoicesInput, TtsPreviewInput, UsersActivateMemberInput, UsersCreateMemberInput, UsersListMembersInput, UsersRemoveMemberInput, UsersResetSecondFactorInput, UsersRevokeMemberSessionsInput, UsersSuspendMemberInput, UsersUnlockMemberInput, UsersUpdateMyDeskAlertsInput, UsersUpdateMyNotificationEmailInput, UsersUpdateMyNotificationToastInput, UsersUpdateRoleInput, VisualPlansCloneInput, VisualPlansCreateInput, VisualPlansDeleteInput, VisualPlansGetByIdInput, VisualPlansImportDraftInput, VisualPlansListInput, VisualPlansListVersionsInput, VisualPlansPublishInput, VisualPlansUpdateInput, VisualPlansValidateInput, WebhooksDeliveriesAggregatesGetInput, WebhooksDeliveriesAggregatesListInput, WebhooksDeliveriesCountInput, WebhooksDeliveriesGetByIdInput, WebhooksDeliveriesListInput, WebhooksDeliveriesRetryInput, WebhooksEndpointsCreateInput, WebhooksEndpointsDeleteInput, WebhooksEndpointsGetByIdInput, WebhooksEndpointsListInput, WebhooksEndpointsRotateSecretInput, WebhooksEndpointsTestInput, WebhooksEndpointsUpdateInput, AiGetBudgetOutput, AiGetBudgetOverviewOutput, AiGetCallAnalysesOutput, AiGetTranscriptionOutput, AiGetUsageOutput, AiListAgentsOutput, AiListStructuredAnalysesOutput, AiRunAnalysisOutput, AiRunConfiguredAnalysesOutput, AiRunSpeechAnalyticsOutput, AiSearchTranscriptionsOutput, AiTranscribeNowOutput, ApiKeysCreateOutput, ApiKeysFinishRotationOutput, ApiKeysGetOutput, ApiKeysListOutput, ApiKeysRevokeOutput, ApiKeysRotateOutput, ApiKeysUpdateOutput, ApiKeysUsageOutput, ArchiveListDeletedOutput, ArchivePurgeOutput, ArchiveRestoreOutput, ArchiveSummaryOutput, AttendantsCreateOutput, AttendantsDeleteOutput, AttendantsGetByIdOutput, AttendantsListOutput, AttendantsRotateSipCredentialOutput, AttendantsSetStatusOutput, AttendantsStatusLogOutput, AttendantsUpdateOutput, AudioFilesDeleteOutput, AudioFilesGenerateTtsOutput, AudioFilesGetByIdOutput, AudioFilesListOutput, AudioFilesRegenerateTtsOutput, AudioFilesUpdateOutput, AudioFilesUploadOutput, AuditCountOutput, AuditExportJobCancelOutput, AuditExportJobCreateOutput, AuditExportJobGetOutput, AuditExportJobListOutput, AuditListOutput, BugReportsCreateOutput, CallRecordsCountOutput, CallRecordsExportJobCancelOutput, CallRecordsExportJobCreateOutput, CallRecordsExportJobGetOutput, CallRecordsExportJobListOutput, CallRecordsGetByIdOutput, CallRecordsGetEventsOutput, CallRecordsGetRecordingUrlOutput, CallRecordsListOutput, CallRecordsPurgeVoiceContentOutput, CallRecordsRetryRecordingOutput, CallsHangupCallOutput, CallsOriginateOutput, CapabilitiesGetOutput, ChannelsCreateOutput, ChannelsDeleteOutput, ChannelsGetByIdOutput, ChannelsListOutput, ChannelsRotateWebchatKeyOutput, ChannelsRotateWebchatSecretOutput, ChannelsTestConnectionOutput, ChannelsToggleOutput, ChannelsUpdateOutput, ChatCreateMediaOutput, ChatCreateSessionOutput, ContactsGetByIdOutput, ContactsListOutput, ContactsUpdateOutput, ConversationsCountOutput, ConversationsGetByIdOutput, ConversationsListOutput, DashboardCapacityStatusOutput, DeskCopilotStatsOutput, DeskTransferQueuesOutput, DeskSettingsCopilotAgentsOutput, DeskSettingsCreateDefaultsOutput, DeskSettingsCreateDispositionOutput, DeskSettingsCreatePauseReasonOutput, DeskSettingsDeleteDispositionOutput, DeskSettingsDeletePauseReasonOutput, DeskSettingsGetOutput, DeskSettingsListDispositionsOutput, DeskSettingsListPauseReasonsOutput, DeskSettingsReorderDispositionsOutput, DeskSettingsReorderPauseReasonsOutput, DeskSettingsUpdateOutput, DeskSettingsUpdateDispositionOutput, DeskSettingsUpdatePauseReasonOutput, DestinationsCreateOutput, DestinationsDeleteOutput, DestinationsGetByIdOutput, DestinationsListOutput, DestinationsUpdateOutput, DialerAttemptsListOutput, DialerCampaignsControlOutput, DialerCampaignsCreateOutput, DialerCampaignsDeleteOutput, DialerCampaignsGetOutput, DialerCampaignsListOutput, DialerCampaignsStatsOutput, DialerCampaignsSummaryOutput, DialerCampaignsUpdateOutput, DialerContactsAddOutput, DialerContactsBulkCancelOutput, DialerContactsBulkRequeueOutput, DialerContactsCancelOutput, DialerContactsGetOutput, DialerContactsListOutput, DialerContactsRemoveOutput, DialerContactsRequeueOutput, DialerContactsRequeueAllOutput, DialerContactsUpdateOutput, DialerDncAddOutput, DialerDncBulkImportOutput, DialerDncBulkRemoveOutput, DialerDncListOutput, DialerDncRemoveOutput, DialerImportsCreateOutput, DialerImportsGetOutput, DialerImportsInvalidRowsOutput, HolidayCalendarsCreateOutput, HolidayCalendarsDeleteOutput, HolidayCalendarsEntriesCreateOutput, HolidayCalendarsEntriesDeleteOutput, HolidayCalendarsEntriesGetByIdOutput, HolidayCalendarsEntriesListOutput, HolidayCalendarsEntriesUpdateOutput, HolidayCalendarsGetByIdOutput, HolidayCalendarsImportIcsOutput, HolidayCalendarsListOutput, HolidayCalendarsPreviewRuleOutput, HolidayCalendarsUpdateOutput, HolidayCatalogCountriesOutput, HolidayCatalogHolidaysOutput, HolidayCatalogRegionsOutput, InsightsAggregateOutput, LicenseActivateOutput, LicenseActivationOutput, LicenseModulesOutput, LicenseOrgUsageOutput, LicenseRefreshOutput, LicenseStatusOutput, LicenseUsageOutput, NodesListOutput, NodesSchemaOutput, OauthGrantsGetOutput, OauthGrantsListOutput, OauthGrantsRevokeOutput, OauthGrantsUsageOutput, OrgSettingsGetDialerOutput, OrgSettingsUpsertDialerOutput, QueuesAddMembersOutput, QueuesCreateOutput, QueuesDeleteOutput, QueuesGetByIdOutput, QueuesListOutput, QueuesListMembersOutput, QueuesRemoveMemberOutput, QueuesReplaceMembersOutput, QueuesStatsOutput, QueuesUpdateOutput, QueuesUpdateMemberOutput, SavedRepliesCreateOutput, SavedRepliesDeleteOutput, SavedRepliesGetOutput, SavedRepliesListOutput, SavedRepliesUpdateOutput, ScheduleExceptionsCreateOutput, ScheduleExceptionsDeleteOutput, ScheduleExceptionsGetByIdOutput, ScheduleExceptionsListOutput, ScheduleExceptionsUpdateOutput, SchedulesCalendarOutput, SchedulesClearEmergencyOutput, SchedulesCreateOutput, SchedulesDeleteOutput, SchedulesGetByIdOutput, SchedulesHolidaysOutput, SchedulesListOutput, SchedulesPreviewHolidaysOutput, SchedulesSetEmergencyOutput, SchedulesSimulateOutput, SchedulesUpcomingOutput, SchedulesUpdateOutput, SchedulesUsageOutput, SecretsListOutput, SecretsListNamesOutput, SignalsCallSignalsOutput, SignalsCreateOutput, SignalsDeleteOutput, SignalsGetOutput, SignalsListOutput, SignalsOverviewOutput, SignalsPresetsOutput, SignalsTestOutput, SignalsUpdateOutput, SignalsUpsertBySlugOutput, TtsListModelsOutput, TtsListVoicesOutput, UsersActivateMemberOutput, UsersCreateMemberOutput, UsersListMembersOutput, UsersMeOutput, UsersRemoveMemberOutput, UsersResetSecondFactorOutput, UsersRevokeMemberSessionsOutput, UsersSuspendMemberOutput, UsersUnlockMemberOutput, UsersUpdateMyDeskAlertsOutput, UsersUpdateMyNotificationEmailOutput, UsersUpdateMyNotificationToastOutput, UsersUpdateRoleOutput, VisualPlansCloneOutput, VisualPlansCreateOutput, VisualPlansDeleteOutput, VisualPlansGetByIdOutput, VisualPlansImportDraftOutput, VisualPlansListOutput, VisualPlansListVersionsOutput, VisualPlansPublishOutput, VisualPlansUpdateOutput, VisualPlansValidateOutput, WebhooksDeliveriesAggregatesGetOutput, WebhooksDeliveriesAggregatesListOutput, WebhooksDeliveriesCountOutput, WebhooksDeliveriesGetByIdOutput, WebhooksDeliveriesListOutput, WebhooksDeliveriesRetentionOutput, WebhooksDeliveriesRetryOutput, WebhooksEndpointsCreateOutput, WebhooksEndpointsDeleteOutput, WebhooksEndpointsGetByIdOutput, WebhooksEndpointsListOutput, WebhooksEndpointsRotateSecretOutput, WebhooksEndpointsTestOutput, WebhooksEndpointsUpdateOutput, WebhooksEventsListOutput, AuditExportCsvEvent, AuditExportJobProgressEvent, CallRecordsExportCsvEvent, CallRecordsExportJobProgressEvent, DashboardWatchDashboardMetricsEvent, DialerCampaignsLiveStatsEvent, DialerCampaignsOrgLiveStatsEvent, DialerContactsExportCsvEvent, DialerImportsProgressEvent, AiGetBudgetErrorCode, AiGetBudgetOverviewErrorCode, AiGetCallAnalysesErrorCode, AiGetTranscriptionErrorCode, AiGetUsageErrorCode, AiListAgentsErrorCode, AiListStructuredAnalysesErrorCode, AiRunAnalysisErrorCode, AiRunConfiguredAnalysesErrorCode, AiRunSpeechAnalyticsErrorCode, AiSearchTranscriptionsErrorCode, AiTranscribeNowErrorCode, ApiKeysCreateErrorCode, ApiKeysFinishRotationErrorCode, ApiKeysGetErrorCode, ApiKeysListErrorCode, ApiKeysRevokeErrorCode, ApiKeysRotateErrorCode, ApiKeysUpdateErrorCode, ApiKeysUsageErrorCode, ArchiveListDeletedErrorCode, ArchivePurgeErrorCode, ArchiveRestoreErrorCode, ArchiveSummaryErrorCode, AttendantsCreateErrorCode, AttendantsDeleteErrorCode, AttendantsGetByIdErrorCode, AttendantsListErrorCode, AttendantsRotateSipCredentialErrorCode, AttendantsSetStatusErrorCode, AttendantsStatusLogErrorCode, AttendantsUpdateErrorCode, AudioFilesContentErrorCode, AudioFilesDeleteErrorCode, AudioFilesGenerateTtsErrorCode, AudioFilesGetByIdErrorCode, AudioFilesListErrorCode, AudioFilesPreviewUrlErrorCode, AudioFilesRegenerateTtsErrorCode, AudioFilesUpdateErrorCode, AudioFilesUploadErrorCode, AuditCountErrorCode, AuditExportJobCancelErrorCode, AuditExportJobCreateErrorCode, AuditExportJobDownloadErrorCode, AuditExportJobGetErrorCode, AuditExportJobListErrorCode, AuditListErrorCode, BugReportsCreateErrorCode, CallRecordsChatMediaContentErrorCode, CallRecordsCountErrorCode, CallRecordsExportJobCancelErrorCode, CallRecordsExportJobCreateErrorCode, CallRecordsExportJobDownloadErrorCode, CallRecordsExportJobGetErrorCode, CallRecordsExportJobListErrorCode, CallRecordsGetByIdErrorCode, CallRecordsGetEventsErrorCode, CallRecordsGetRecordingUrlErrorCode, CallRecordsListErrorCode, CallRecordsPurgeVoiceContentErrorCode, CallRecordsRecordingContentErrorCode, CallRecordsRetryRecordingErrorCode, CallsHangupCallErrorCode, CallsOriginateErrorCode, CapabilitiesGetErrorCode, ChannelsCreateErrorCode, ChannelsDeleteErrorCode, ChannelsGetByIdErrorCode, ChannelsListErrorCode, ChannelsRotateWebchatKeyErrorCode, ChannelsRotateWebchatSecretErrorCode, ChannelsTestConnectionErrorCode, ChannelsToggleErrorCode, ChannelsUpdateErrorCode, ChatCreateMediaErrorCode, ChatCreateSessionErrorCode, ChatEndSessionErrorCode, ChatGetMediaErrorCode, ContactsGetByIdErrorCode, ContactsListErrorCode, ContactsUpdateErrorCode, ConversationsCountErrorCode, ConversationsGetByIdErrorCode, ConversationsListErrorCode, ConversationsMediaContentErrorCode, DashboardCapacityStatusErrorCode, DeskCopilotStatsErrorCode, DeskTransferQueuesErrorCode, DeskSettingsCopilotAgentsErrorCode, DeskSettingsCreateDefaultsErrorCode, DeskSettingsCreateDispositionErrorCode, DeskSettingsCreatePauseReasonErrorCode, DeskSettingsDeleteDispositionErrorCode, DeskSettingsDeletePauseReasonErrorCode, DeskSettingsGetErrorCode, DeskSettingsListDispositionsErrorCode, DeskSettingsListPauseReasonsErrorCode, DeskSettingsReorderDispositionsErrorCode, DeskSettingsReorderPauseReasonsErrorCode, DeskSettingsUpdateErrorCode, DeskSettingsUpdateDispositionErrorCode, DeskSettingsUpdatePauseReasonErrorCode, DestinationsCreateErrorCode, DestinationsDeleteErrorCode, DestinationsGetByIdErrorCode, DestinationsListErrorCode, DestinationsUpdateErrorCode, DialerAttemptsListErrorCode, DialerCampaignsControlErrorCode, DialerCampaignsCreateErrorCode, DialerCampaignsDeleteErrorCode, DialerCampaignsGetErrorCode, DialerCampaignsListErrorCode, DialerCampaignsStatsErrorCode, DialerCampaignsSummaryErrorCode, DialerCampaignsUpdateErrorCode, DialerContactsAddErrorCode, DialerContactsBulkCancelErrorCode, DialerContactsBulkRequeueErrorCode, DialerContactsCancelErrorCode, DialerContactsGetErrorCode, DialerContactsListErrorCode, DialerContactsRemoveErrorCode, DialerContactsRequeueErrorCode, DialerContactsRequeueAllErrorCode, DialerContactsUpdateErrorCode, DialerDncAddErrorCode, DialerDncBulkImportErrorCode, DialerDncBulkRemoveErrorCode, DialerDncListErrorCode, DialerDncRemoveErrorCode, DialerImportsCreateErrorCode, DialerImportsGetErrorCode, DialerImportsInvalidRowsErrorCode, HolidayCalendarsCreateErrorCode, HolidayCalendarsDeleteErrorCode, HolidayCalendarsEntriesCreateErrorCode, HolidayCalendarsEntriesDeleteErrorCode, HolidayCalendarsEntriesGetByIdErrorCode, HolidayCalendarsEntriesListErrorCode, HolidayCalendarsEntriesUpdateErrorCode, HolidayCalendarsGetByIdErrorCode, HolidayCalendarsImportIcsErrorCode, HolidayCalendarsListErrorCode, HolidayCalendarsPreviewRuleErrorCode, HolidayCalendarsUpdateErrorCode, HolidayCatalogCountriesErrorCode, HolidayCatalogHolidaysErrorCode, HolidayCatalogRegionsErrorCode, InsightsAggregateErrorCode, LicenseActivateErrorCode, LicenseActivationErrorCode, LicenseModulesErrorCode, LicenseOrgUsageErrorCode, LicenseRefreshErrorCode, LicenseStatusErrorCode, LicenseUsageErrorCode, NodesListErrorCode, NodesSchemaErrorCode, OauthGrantsGetErrorCode, OauthGrantsListErrorCode, OauthGrantsRevokeErrorCode, OauthGrantsUsageErrorCode, OrgSettingsGetDialerErrorCode, OrgSettingsUpsertDialerErrorCode, QueuesAddMembersErrorCode, QueuesCreateErrorCode, QueuesDeleteErrorCode, QueuesGetByIdErrorCode, QueuesListErrorCode, QueuesListMembersErrorCode, QueuesRemoveMemberErrorCode, QueuesReplaceMembersErrorCode, QueuesStatsErrorCode, QueuesUpdateErrorCode, QueuesUpdateMemberErrorCode, SavedRepliesCreateErrorCode, SavedRepliesDeleteErrorCode, SavedRepliesGetErrorCode, SavedRepliesListErrorCode, SavedRepliesUpdateErrorCode, ScheduleExceptionsCreateErrorCode, ScheduleExceptionsDeleteErrorCode, ScheduleExceptionsGetByIdErrorCode, ScheduleExceptionsListErrorCode, ScheduleExceptionsUpdateErrorCode, SchedulesCalendarErrorCode, SchedulesClearEmergencyErrorCode, SchedulesCreateErrorCode, SchedulesDeleteErrorCode, SchedulesGetByIdErrorCode, SchedulesHolidaysErrorCode, SchedulesListErrorCode, SchedulesPreviewHolidaysErrorCode, SchedulesSetEmergencyErrorCode, SchedulesSimulateErrorCode, SchedulesUpcomingErrorCode, SchedulesUpdateErrorCode, SchedulesUsageErrorCode, SecretsListErrorCode, SecretsListNamesErrorCode, SignalsCallSignalsErrorCode, SignalsCreateErrorCode, SignalsDeleteErrorCode, SignalsGetErrorCode, SignalsListErrorCode, SignalsOverviewErrorCode, SignalsPresetsErrorCode, SignalsTestErrorCode, SignalsUpdateErrorCode, SignalsUpsertBySlugErrorCode, TtsListModelsErrorCode, TtsListVoicesErrorCode, TtsPreviewErrorCode, UsersActivateMemberErrorCode, UsersCreateMemberErrorCode, UsersListMembersErrorCode, UsersMeErrorCode, UsersRemoveMemberErrorCode, UsersResetSecondFactorErrorCode, UsersRevokeMemberSessionsErrorCode, UsersSuspendMemberErrorCode, UsersUnlockMemberErrorCode, UsersUpdateMyDeskAlertsErrorCode, UsersUpdateMyNotificationEmailErrorCode, UsersUpdateMyNotificationToastErrorCode, UsersUpdateRoleErrorCode, VisualPlansCloneErrorCode, VisualPlansCreateErrorCode, VisualPlansDeleteErrorCode, VisualPlansGetByIdErrorCode, VisualPlansImportDraftErrorCode, VisualPlansListErrorCode, VisualPlansListVersionsErrorCode, VisualPlansPublishErrorCode, VisualPlansUpdateErrorCode, VisualPlansValidateErrorCode, WebhooksDeliveriesAggregatesGetErrorCode, WebhooksDeliveriesAggregatesListErrorCode, WebhooksDeliveriesCountErrorCode, WebhooksDeliveriesGetByIdErrorCode, WebhooksDeliveriesListErrorCode, WebhooksDeliveriesRetentionErrorCode, WebhooksDeliveriesRetryErrorCode, WebhooksEndpointsCreateErrorCode, WebhooksEndpointsDeleteErrorCode, WebhooksEndpointsGetByIdErrorCode, WebhooksEndpointsListErrorCode, WebhooksEndpointsRotateSecretErrorCode, WebhooksEndpointsTestErrorCode, WebhooksEndpointsUpdateErrorCode, WebhooksEventsListErrorCode } from "./operations.js";
7
+ import type { AiGetCallAnalysesInput, AiGetTranscriptionInput, AiListStructuredAnalysesInput, AiRunAnalysisInput, AiRunConfiguredAnalysesInput, AiRunSpeechAnalyticsInput, AiSearchTranscriptionsInput, AiTranscribeNowInput, ApiKeysCreateInput, ApiKeysFinishRotationInput, ApiKeysGetInput, ApiKeysListInput, ApiKeysRevokeInput, ApiKeysRotateInput, ApiKeysUpdateInput, ApiKeysUsageInput, ArchiveListDeletedInput, ArchivePurgeInput, ArchiveRestoreInput, AttendantsCreateInput, AttendantsDeleteInput, AttendantsGetByIdInput, AttendantsListInput, AttendantsRotateSipCredentialInput, AttendantsSetStatusInput, AttendantsStatusLogInput, AttendantsUpdateInput, AudioFilesContentInput, AudioFilesDeleteInput, AudioFilesGenerateTtsInput, AudioFilesGetByIdInput, AudioFilesListInput, AudioFilesPreviewUrlInput, AudioFilesRegenerateTtsInput, AudioFilesUpdateInput, AudioFilesUploadInput, AuditCountInput, AuditExportCsvInput, AuditExportJobCancelInput, AuditExportJobCreateInput, AuditExportJobDownloadInput, AuditExportJobGetInput, AuditExportJobProgressInput, AuditListInput, BugReportsCreateInput, CallRecordsChatMediaContentInput, CallRecordsCountInput, CallRecordsExportCsvInput, CallRecordsExportJobCancelInput, CallRecordsExportJobCreateInput, CallRecordsExportJobDownloadInput, CallRecordsExportJobGetInput, CallRecordsExportJobProgressInput, CallRecordsGetByIdInput, CallRecordsGetEventsInput, CallRecordsGetRecordingUrlInput, CallRecordsListInput, CallRecordsPurgeVoiceContentInput, CallRecordsRecordingContentInput, CallRecordsRetryRecordingInput, CallsHangupCallInput, CallsOriginateInput, ChannelsCreateInput, ChannelsDeleteInput, ChannelsGetByIdInput, ChannelsListInput, ChannelsRotateWebchatKeyInput, ChannelsRotateWebchatSecretInput, ChannelsTestConnectionInput, ChannelsToggleInput, ChannelsUpdateInput, ChatCreateMediaInput, ChatCreateSessionInput, ChatEndSessionInput, ChatGetMediaInput, ContactsGetByIdInput, ContactsListInput, ContactsUpdateInput, ConversationsCountInput, ConversationsGetByIdInput, ConversationsListInput, ConversationsMediaContentInput, DeskCopilotStatsInput, DeskSettingsCreateDispositionInput, DeskSettingsCreatePauseReasonInput, DeskSettingsDeleteDispositionInput, DeskSettingsDeletePauseReasonInput, DeskSettingsListDispositionsInput, DeskSettingsListPauseReasonsInput, DeskSettingsReorderDispositionsInput, DeskSettingsReorderPauseReasonsInput, DeskSettingsUpdateInput, DeskSettingsUpdateDispositionInput, DeskSettingsUpdatePauseReasonInput, DestinationsCreateInput, DestinationsDeleteInput, DestinationsGetByIdInput, DestinationsListInput, DestinationsUpdateInput, DialerAttemptsListInput, DialerCampaignsControlInput, DialerCampaignsCreateInput, DialerCampaignsDeleteInput, DialerCampaignsGetInput, DialerCampaignsListInput, DialerCampaignsLiveStatsInput, DialerCampaignsStatsInput, DialerCampaignsUpdateInput, DialerContactsAddInput, DialerContactsBulkCancelInput, DialerContactsBulkRequeueInput, DialerContactsCancelInput, DialerContactsExportCsvInput, DialerContactsGetInput, DialerContactsListInput, DialerContactsRemoveInput, DialerContactsRequeueInput, DialerContactsRequeueAllInput, DialerContactsUpdateInput, DialerDncAddInput, DialerDncBulkImportInput, DialerDncBulkRemoveInput, DialerDncListInput, DialerDncRemoveInput, DialerImportsCreateInput, DialerImportsGetInput, DialerImportsInvalidRowsInput, DialerImportsProgressInput, HolidayCalendarsCreateInput, HolidayCalendarsDeleteInput, HolidayCalendarsEntriesCreateInput, HolidayCalendarsEntriesDeleteInput, HolidayCalendarsEntriesGetByIdInput, HolidayCalendarsEntriesListInput, HolidayCalendarsEntriesUpdateInput, HolidayCalendarsGetByIdInput, HolidayCalendarsImportIcsInput, HolidayCalendarsListInput, HolidayCalendarsPreviewRuleInput, HolidayCalendarsUpdateInput, HolidayCatalogHolidaysInput, HolidayCatalogRegionsInput, InsightsAggregateInput, LicenseActivateInput, LicenseOfflineRenewalResponseInput, NodesSchemaInput, OauthGrantsGetInput, OauthGrantsListInput, OauthGrantsRevokeInput, OauthGrantsUsageInput, OrgSettingsUpsertDialerInput, QueuesAddMembersInput, QueuesCreateInput, QueuesDeleteInput, QueuesGetByIdInput, QueuesListInput, QueuesListMembersInput, QueuesListenInput, QueuesRemoveMemberInput, QueuesReplaceMembersInput, QueuesStatsInput, QueuesUpdateInput, QueuesUpdateMemberInput, SavedRepliesCreateInput, SavedRepliesDeleteInput, SavedRepliesGetInput, SavedRepliesListInput, SavedRepliesUpdateInput, ScheduleExceptionsCreateInput, ScheduleExceptionsDeleteInput, ScheduleExceptionsGetByIdInput, ScheduleExceptionsListInput, ScheduleExceptionsUpdateInput, SchedulesCalendarInput, SchedulesClearEmergencyInput, SchedulesCreateInput, SchedulesDeleteInput, SchedulesGetByIdInput, SchedulesHolidaysInput, SchedulesListInput, SchedulesPreviewHolidaysInput, SchedulesSetEmergencyInput, SchedulesSimulateInput, SchedulesUpcomingInput, SchedulesUpdateInput, SchedulesUsageInput, SecretsListInput, SignalsCallSignalsInput, SignalsCreateInput, SignalsDeleteInput, SignalsGetInput, SignalsListInput, SignalsPresetsInput, SignalsTestInput, SignalsUpdateInput, SignalsUpsertBySlugInput, TtsListVoicesInput, TtsPreviewInput, UsersActivateMemberInput, UsersCreateMemberInput, UsersListMembersInput, UsersRemoveMemberInput, UsersResetSecondFactorInput, UsersRevokeMemberSessionsInput, UsersSuspendMemberInput, UsersUnlockMemberInput, UsersUpdateMyDeskAlertsInput, UsersUpdateMyNotificationEmailInput, UsersUpdateMyNotificationToastInput, UsersUpdateRoleInput, VisualPlansCloneInput, VisualPlansCreateInput, VisualPlansDeleteInput, VisualPlansGetByIdInput, VisualPlansImportDraftInput, VisualPlansListInput, VisualPlansListVersionsInput, VisualPlansPublishInput, VisualPlansUpdateInput, VisualPlansValidateInput, WebhooksDeliveriesAggregatesGetInput, WebhooksDeliveriesAggregatesListInput, WebhooksDeliveriesCountInput, WebhooksDeliveriesGetByIdInput, WebhooksDeliveriesListInput, WebhooksDeliveriesRetryInput, WebhooksEndpointsCreateInput, WebhooksEndpointsDeleteInput, WebhooksEndpointsGetByIdInput, WebhooksEndpointsListInput, WebhooksEndpointsRotateSecretInput, WebhooksEndpointsTestInput, WebhooksEndpointsUpdateInput, AiGetBudgetOutput, AiGetBudgetOverviewOutput, AiGetCallAnalysesOutput, AiGetTranscriptionOutput, AiGetUsageOutput, AiListAgentsOutput, AiListStructuredAnalysesOutput, AiRunAnalysisOutput, AiRunConfiguredAnalysesOutput, AiRunSpeechAnalyticsOutput, AiSearchTranscriptionsOutput, AiTranscribeNowOutput, ApiKeysCreateOutput, ApiKeysFinishRotationOutput, ApiKeysGetOutput, ApiKeysListOutput, ApiKeysRevokeOutput, ApiKeysRotateOutput, ApiKeysUpdateOutput, ApiKeysUsageOutput, ArchiveListDeletedOutput, ArchivePurgeOutput, ArchiveRestoreOutput, ArchiveSummaryOutput, AttendantsCreateOutput, AttendantsDeleteOutput, AttendantsGetByIdOutput, AttendantsListOutput, AttendantsRotateSipCredentialOutput, AttendantsSetStatusOutput, AttendantsStatusLogOutput, AttendantsUpdateOutput, AudioFilesDeleteOutput, AudioFilesGenerateTtsOutput, AudioFilesGetByIdOutput, AudioFilesListOutput, AudioFilesRegenerateTtsOutput, AudioFilesUpdateOutput, AudioFilesUploadOutput, AuditCountOutput, AuditExportJobCancelOutput, AuditExportJobCreateOutput, AuditExportJobGetOutput, AuditExportJobListOutput, AuditListOutput, BugReportsCreateOutput, CallRecordsCountOutput, CallRecordsExportJobCancelOutput, CallRecordsExportJobCreateOutput, CallRecordsExportJobGetOutput, CallRecordsExportJobListOutput, CallRecordsGetByIdOutput, CallRecordsGetEventsOutput, CallRecordsGetRecordingUrlOutput, CallRecordsListOutput, CallRecordsPurgeVoiceContentOutput, CallRecordsRetryRecordingOutput, CallsHangupCallOutput, CallsOriginateOutput, CapabilitiesGetOutput, ChannelsCreateOutput, ChannelsDeleteOutput, ChannelsGetByIdOutput, ChannelsListOutput, ChannelsRotateWebchatKeyOutput, ChannelsRotateWebchatSecretOutput, ChannelsTestConnectionOutput, ChannelsToggleOutput, ChannelsUpdateOutput, ChatCreateMediaOutput, ChatCreateSessionOutput, ContactsGetByIdOutput, ContactsListOutput, ContactsUpdateOutput, ConversationsCountOutput, ConversationsGetByIdOutput, ConversationsListOutput, DashboardCapacityStatusOutput, DeskCopilotStatsOutput, DeskTransferQueuesOutput, DeskSettingsCopilotAgentsOutput, DeskSettingsCreateDefaultsOutput, DeskSettingsCreateDispositionOutput, DeskSettingsCreatePauseReasonOutput, DeskSettingsDeleteDispositionOutput, DeskSettingsDeletePauseReasonOutput, DeskSettingsGetOutput, DeskSettingsListDispositionsOutput, DeskSettingsListPauseReasonsOutput, DeskSettingsReorderDispositionsOutput, DeskSettingsReorderPauseReasonsOutput, DeskSettingsUpdateOutput, DeskSettingsUpdateDispositionOutput, DeskSettingsUpdatePauseReasonOutput, DestinationsCreateOutput, DestinationsDeleteOutput, DestinationsGetByIdOutput, DestinationsListOutput, DestinationsUpdateOutput, DialerAttemptsListOutput, DialerCampaignsControlOutput, DialerCampaignsCreateOutput, DialerCampaignsDeleteOutput, DialerCampaignsGetOutput, DialerCampaignsListOutput, DialerCampaignsStatsOutput, DialerCampaignsSummaryOutput, DialerCampaignsUpdateOutput, DialerContactsAddOutput, DialerContactsBulkCancelOutput, DialerContactsBulkRequeueOutput, DialerContactsCancelOutput, DialerContactsGetOutput, DialerContactsListOutput, DialerContactsRemoveOutput, DialerContactsRequeueOutput, DialerContactsRequeueAllOutput, DialerContactsUpdateOutput, DialerDncAddOutput, DialerDncBulkImportOutput, DialerDncBulkRemoveOutput, DialerDncListOutput, DialerDncRemoveOutput, DialerImportsCreateOutput, DialerImportsGetOutput, DialerImportsInvalidRowsOutput, HolidayCalendarsCreateOutput, HolidayCalendarsDeleteOutput, HolidayCalendarsEntriesCreateOutput, HolidayCalendarsEntriesDeleteOutput, HolidayCalendarsEntriesGetByIdOutput, HolidayCalendarsEntriesListOutput, HolidayCalendarsEntriesUpdateOutput, HolidayCalendarsGetByIdOutput, HolidayCalendarsImportIcsOutput, HolidayCalendarsListOutput, HolidayCalendarsPreviewRuleOutput, HolidayCalendarsUpdateOutput, HolidayCatalogCountriesOutput, HolidayCatalogHolidaysOutput, HolidayCatalogRegionsOutput, InsightsAggregateOutput, LicenseActivateOutput, LicenseActivationOutput, LicenseModulesOutput, LicenseOfflineRenewalRequestOutput, LicenseOfflineRenewalResponseOutput, LicenseOrgUsageOutput, LicenseRefreshOutput, LicenseStatusOutput, LicenseUsageOutput, NodesListOutput, NodesSchemaOutput, OauthGrantsGetOutput, OauthGrantsListOutput, OauthGrantsRevokeOutput, OauthGrantsUsageOutput, OrgSettingsGetDialerOutput, OrgSettingsUpsertDialerOutput, QueuesAddMembersOutput, QueuesCreateOutput, QueuesDeleteOutput, QueuesGetByIdOutput, QueuesListOutput, QueuesListMembersOutput, QueuesListenOutput, QueuesRemoveMemberOutput, QueuesReplaceMembersOutput, QueuesStatsOutput, QueuesUpdateOutput, QueuesUpdateMemberOutput, SavedRepliesCreateOutput, SavedRepliesDeleteOutput, SavedRepliesGetOutput, SavedRepliesListOutput, SavedRepliesUpdateOutput, ScheduleExceptionsCreateOutput, ScheduleExceptionsDeleteOutput, ScheduleExceptionsGetByIdOutput, ScheduleExceptionsListOutput, ScheduleExceptionsUpdateOutput, SchedulesCalendarOutput, SchedulesClearEmergencyOutput, SchedulesCreateOutput, SchedulesDeleteOutput, SchedulesGetByIdOutput, SchedulesHolidaysOutput, SchedulesListOutput, SchedulesPreviewHolidaysOutput, SchedulesSetEmergencyOutput, SchedulesSimulateOutput, SchedulesUpcomingOutput, SchedulesUpdateOutput, SchedulesUsageOutput, SecretsListOutput, SecretsListNamesOutput, SignalsCallSignalsOutput, SignalsCreateOutput, SignalsDeleteOutput, SignalsGetOutput, SignalsListOutput, SignalsOverviewOutput, SignalsPresetsOutput, SignalsTestOutput, SignalsUpdateOutput, SignalsUpsertBySlugOutput, TtsListModelsOutput, TtsListVoicesOutput, UsersActivateMemberOutput, UsersCreateMemberOutput, UsersListMembersOutput, UsersMeOutput, UsersRemoveMemberOutput, UsersResetSecondFactorOutput, UsersRevokeMemberSessionsOutput, UsersSuspendMemberOutput, UsersUnlockMemberOutput, UsersUpdateMyDeskAlertsOutput, UsersUpdateMyNotificationEmailOutput, UsersUpdateMyNotificationToastOutput, UsersUpdateRoleOutput, VisualPlansCloneOutput, VisualPlansCreateOutput, VisualPlansDeleteOutput, VisualPlansGetByIdOutput, VisualPlansImportDraftOutput, VisualPlansListOutput, VisualPlansListVersionsOutput, VisualPlansPublishOutput, VisualPlansUpdateOutput, VisualPlansValidateOutput, WebhooksDeliveriesAggregatesGetOutput, WebhooksDeliveriesAggregatesListOutput, WebhooksDeliveriesCountOutput, WebhooksDeliveriesGetByIdOutput, WebhooksDeliveriesListOutput, WebhooksDeliveriesRetentionOutput, WebhooksDeliveriesRetryOutput, WebhooksEndpointsCreateOutput, WebhooksEndpointsDeleteOutput, WebhooksEndpointsGetByIdOutput, WebhooksEndpointsListOutput, WebhooksEndpointsRotateSecretOutput, WebhooksEndpointsTestOutput, WebhooksEndpointsUpdateOutput, WebhooksEventsListOutput, AuditExportCsvEvent, AuditExportJobProgressEvent, CallRecordsExportCsvEvent, CallRecordsExportJobProgressEvent, DashboardWatchDashboardMetricsEvent, DialerCampaignsLiveStatsEvent, DialerCampaignsOrgLiveStatsEvent, DialerContactsExportCsvEvent, DialerImportsProgressEvent, AiGetBudgetErrorCode, AiGetBudgetOverviewErrorCode, AiGetCallAnalysesErrorCode, AiGetTranscriptionErrorCode, AiGetUsageErrorCode, AiListAgentsErrorCode, AiListStructuredAnalysesErrorCode, AiRunAnalysisErrorCode, AiRunConfiguredAnalysesErrorCode, AiRunSpeechAnalyticsErrorCode, AiSearchTranscriptionsErrorCode, AiTranscribeNowErrorCode, ApiKeysCreateErrorCode, ApiKeysFinishRotationErrorCode, ApiKeysGetErrorCode, ApiKeysListErrorCode, ApiKeysRevokeErrorCode, ApiKeysRotateErrorCode, ApiKeysUpdateErrorCode, ApiKeysUsageErrorCode, ArchiveListDeletedErrorCode, ArchivePurgeErrorCode, ArchiveRestoreErrorCode, ArchiveSummaryErrorCode, AttendantsCreateErrorCode, AttendantsDeleteErrorCode, AttendantsGetByIdErrorCode, AttendantsListErrorCode, AttendantsRotateSipCredentialErrorCode, AttendantsSetStatusErrorCode, AttendantsStatusLogErrorCode, AttendantsUpdateErrorCode, AudioFilesContentErrorCode, AudioFilesDeleteErrorCode, AudioFilesGenerateTtsErrorCode, AudioFilesGetByIdErrorCode, AudioFilesListErrorCode, AudioFilesPreviewUrlErrorCode, AudioFilesRegenerateTtsErrorCode, AudioFilesUpdateErrorCode, AudioFilesUploadErrorCode, AuditCountErrorCode, AuditExportJobCancelErrorCode, AuditExportJobCreateErrorCode, AuditExportJobDownloadErrorCode, AuditExportJobGetErrorCode, AuditExportJobListErrorCode, AuditListErrorCode, BugReportsCreateErrorCode, CallRecordsChatMediaContentErrorCode, CallRecordsCountErrorCode, CallRecordsExportJobCancelErrorCode, CallRecordsExportJobCreateErrorCode, CallRecordsExportJobDownloadErrorCode, CallRecordsExportJobGetErrorCode, CallRecordsExportJobListErrorCode, CallRecordsGetByIdErrorCode, CallRecordsGetEventsErrorCode, CallRecordsGetRecordingUrlErrorCode, CallRecordsListErrorCode, CallRecordsPurgeVoiceContentErrorCode, CallRecordsRecordingContentErrorCode, CallRecordsRetryRecordingErrorCode, CallsHangupCallErrorCode, CallsOriginateErrorCode, CapabilitiesGetErrorCode, ChannelsCreateErrorCode, ChannelsDeleteErrorCode, ChannelsGetByIdErrorCode, ChannelsListErrorCode, ChannelsRotateWebchatKeyErrorCode, ChannelsRotateWebchatSecretErrorCode, ChannelsTestConnectionErrorCode, ChannelsToggleErrorCode, ChannelsUpdateErrorCode, ChatCreateMediaErrorCode, ChatCreateSessionErrorCode, ChatEndSessionErrorCode, ChatGetMediaErrorCode, ContactsGetByIdErrorCode, ContactsListErrorCode, ContactsUpdateErrorCode, ConversationsCountErrorCode, ConversationsGetByIdErrorCode, ConversationsListErrorCode, ConversationsMediaContentErrorCode, DashboardCapacityStatusErrorCode, DeskCopilotStatsErrorCode, DeskTransferQueuesErrorCode, DeskSettingsCopilotAgentsErrorCode, DeskSettingsCreateDefaultsErrorCode, DeskSettingsCreateDispositionErrorCode, DeskSettingsCreatePauseReasonErrorCode, DeskSettingsDeleteDispositionErrorCode, DeskSettingsDeletePauseReasonErrorCode, DeskSettingsGetErrorCode, DeskSettingsListDispositionsErrorCode, DeskSettingsListPauseReasonsErrorCode, DeskSettingsReorderDispositionsErrorCode, DeskSettingsReorderPauseReasonsErrorCode, DeskSettingsUpdateErrorCode, DeskSettingsUpdateDispositionErrorCode, DeskSettingsUpdatePauseReasonErrorCode, DestinationsCreateErrorCode, DestinationsDeleteErrorCode, DestinationsGetByIdErrorCode, DestinationsListErrorCode, DestinationsUpdateErrorCode, DialerAttemptsListErrorCode, DialerCampaignsControlErrorCode, DialerCampaignsCreateErrorCode, DialerCampaignsDeleteErrorCode, DialerCampaignsGetErrorCode, DialerCampaignsListErrorCode, DialerCampaignsStatsErrorCode, DialerCampaignsSummaryErrorCode, DialerCampaignsUpdateErrorCode, DialerContactsAddErrorCode, DialerContactsBulkCancelErrorCode, DialerContactsBulkRequeueErrorCode, DialerContactsCancelErrorCode, DialerContactsGetErrorCode, DialerContactsListErrorCode, DialerContactsRemoveErrorCode, DialerContactsRequeueErrorCode, DialerContactsRequeueAllErrorCode, DialerContactsUpdateErrorCode, DialerDncAddErrorCode, DialerDncBulkImportErrorCode, DialerDncBulkRemoveErrorCode, DialerDncListErrorCode, DialerDncRemoveErrorCode, DialerImportsCreateErrorCode, DialerImportsGetErrorCode, DialerImportsInvalidRowsErrorCode, HolidayCalendarsCreateErrorCode, HolidayCalendarsDeleteErrorCode, HolidayCalendarsEntriesCreateErrorCode, HolidayCalendarsEntriesDeleteErrorCode, HolidayCalendarsEntriesGetByIdErrorCode, HolidayCalendarsEntriesListErrorCode, HolidayCalendarsEntriesUpdateErrorCode, HolidayCalendarsGetByIdErrorCode, HolidayCalendarsImportIcsErrorCode, HolidayCalendarsListErrorCode, HolidayCalendarsPreviewRuleErrorCode, HolidayCalendarsUpdateErrorCode, HolidayCatalogCountriesErrorCode, HolidayCatalogHolidaysErrorCode, HolidayCatalogRegionsErrorCode, InsightsAggregateErrorCode, LicenseActivateErrorCode, LicenseActivationErrorCode, LicenseModulesErrorCode, LicenseOfflineRenewalRequestErrorCode, LicenseOfflineRenewalResponseErrorCode, LicenseOrgUsageErrorCode, LicenseRefreshErrorCode, LicenseStatusErrorCode, LicenseUsageErrorCode, NodesListErrorCode, NodesSchemaErrorCode, OauthGrantsGetErrorCode, OauthGrantsListErrorCode, OauthGrantsRevokeErrorCode, OauthGrantsUsageErrorCode, OrgSettingsGetDialerErrorCode, OrgSettingsUpsertDialerErrorCode, QueuesAddMembersErrorCode, QueuesCreateErrorCode, QueuesDeleteErrorCode, QueuesGetByIdErrorCode, QueuesListErrorCode, QueuesListMembersErrorCode, QueuesListenErrorCode, QueuesRemoveMemberErrorCode, QueuesReplaceMembersErrorCode, QueuesStatsErrorCode, QueuesUpdateErrorCode, QueuesUpdateMemberErrorCode, SavedRepliesCreateErrorCode, SavedRepliesDeleteErrorCode, SavedRepliesGetErrorCode, SavedRepliesListErrorCode, SavedRepliesUpdateErrorCode, ScheduleExceptionsCreateErrorCode, ScheduleExceptionsDeleteErrorCode, ScheduleExceptionsGetByIdErrorCode, ScheduleExceptionsListErrorCode, ScheduleExceptionsUpdateErrorCode, SchedulesCalendarErrorCode, SchedulesClearEmergencyErrorCode, SchedulesCreateErrorCode, SchedulesDeleteErrorCode, SchedulesGetByIdErrorCode, SchedulesHolidaysErrorCode, SchedulesListErrorCode, SchedulesPreviewHolidaysErrorCode, SchedulesSetEmergencyErrorCode, SchedulesSimulateErrorCode, SchedulesUpcomingErrorCode, SchedulesUpdateErrorCode, SchedulesUsageErrorCode, SecretsListErrorCode, SecretsListNamesErrorCode, SignalsCallSignalsErrorCode, SignalsCreateErrorCode, SignalsDeleteErrorCode, SignalsGetErrorCode, SignalsListErrorCode, SignalsOverviewErrorCode, SignalsPresetsErrorCode, SignalsTestErrorCode, SignalsUpdateErrorCode, SignalsUpsertBySlugErrorCode, TtsListModelsErrorCode, TtsListVoicesErrorCode, TtsPreviewErrorCode, UsersActivateMemberErrorCode, UsersCreateMemberErrorCode, UsersListMembersErrorCode, UsersMeErrorCode, UsersRemoveMemberErrorCode, UsersResetSecondFactorErrorCode, UsersRevokeMemberSessionsErrorCode, UsersSuspendMemberErrorCode, UsersUnlockMemberErrorCode, UsersUpdateMyDeskAlertsErrorCode, UsersUpdateMyNotificationEmailErrorCode, UsersUpdateMyNotificationToastErrorCode, UsersUpdateRoleErrorCode, VisualPlansCloneErrorCode, VisualPlansCreateErrorCode, VisualPlansDeleteErrorCode, VisualPlansGetByIdErrorCode, VisualPlansImportDraftErrorCode, VisualPlansListErrorCode, VisualPlansListVersionsErrorCode, VisualPlansPublishErrorCode, VisualPlansUpdateErrorCode, VisualPlansValidateErrorCode, WebhooksDeliveriesAggregatesGetErrorCode, WebhooksDeliveriesAggregatesListErrorCode, WebhooksDeliveriesCountErrorCode, WebhooksDeliveriesGetByIdErrorCode, WebhooksDeliveriesListErrorCode, WebhooksDeliveriesRetentionErrorCode, WebhooksDeliveriesRetryErrorCode, WebhooksEndpointsCreateErrorCode, WebhooksEndpointsDeleteErrorCode, WebhooksEndpointsGetByIdErrorCode, WebhooksEndpointsListErrorCode, WebhooksEndpointsRotateSecretErrorCode, WebhooksEndpointsTestErrorCode, WebhooksEndpointsUpdateErrorCode, WebhooksEventsListErrorCode } from "./operations.js";
8
8
  /** Typed client of the frozen REST contract /api/v1. */
9
9
  export interface NivaClient {
10
10
  ai: {
@@ -147,7 +147,7 @@ export interface NivaClient {
147
147
  /**
148
148
  * archive.restore operation.
149
149
  *
150
- * Restores a soft-deleted item back to active use. Requires the target entity's own delete permission (e.g. `visual_plan:delete`) and, for API-key callers, the `archive:write` scope — a read-only key is rejected with 403 INSUFFICIENT_SCOPE. Restoring a role also requires being able to grant every permission it carries (403 PERMISSION_CEILING_EXCEEDED otherwise) and room under the custom-role limit (409 MAX_CUSTOM_ROLES_REACHED). Returns 404 ARCHIVE_ITEM_NOT_FOUND when the item is absent and 409 ARCHIVE_RESTORE_CONFLICT when the item would collide with a live one (the message names the field) or a restored channel's connector is unavailable.
150
+ * Restores a soft-deleted item back to active use. Requires the target entity's own delete permission (e.g. `visual_plan:delete`) and, for API-key callers, the `archive:write` scope — a read-only key is rejected with 403 INSUFFICIENT_SCOPE. Restoring an attendant is refused with 409 ATTENDANT_LIMIT_REACHED (with `limit` and `current`) when the license no longer allows another one. Restoring a role also requires being able to grant every permission it carries (403 PERMISSION_CEILING_EXCEEDED otherwise) and room under the custom-role limit (409 MAX_CUSTOM_ROLES_REACHED). Returns 404 ARCHIVE_ITEM_NOT_FOUND when the item is absent and 409 ARCHIVE_RESTORE_CONFLICT when the item would collide with a live one (the message names the field) or a restored channel's connector is unavailable.
151
151
  */
152
152
  restore(input: ArchiveRestoreInput, options?: NivaRequestOptions): NivaCall<ArchiveRestoreOutput, ArchiveRestoreErrorCode>;
153
153
  /**
@@ -161,7 +161,7 @@ export interface NivaClient {
161
161
  /**
162
162
  * attendants.create operation.
163
163
  *
164
- * Makes an organization member an attendant: send `user_id` of an existing member, or `new_member` (`email`, `name`, `password`) to create the person too - user, membership with the built-in attendant role and attendant are written in one step, all or nothing, and `new_member` also needs the user:invite scope. `endpoint` is `webrtc` (the browser softphone, default) or `sip_extension` (an external softphone, which needs `extension` and receives a managed SIP credential in `sip_credential`, readable only in this response). Missing PUBLIC_BASE_URL or the encryption key makes a `sip_extension` creation fail (409 DESK_PUBLIC_URL_MISSING, 500 AI_ENCRYPTION_KEY_MISSING) instead of creating an attendant nobody could register. Returns 404 MEMBER_NOT_FOUND when the user is not a member, 409 ATTENDANT_ALREADY_EXISTS when they already are an attendant, 409 EXTENSION_IN_USE when another attendant holds the extension, and for `new_member` 409 ALREADY_MEMBER, 403 PERMISSION_CEILING_EXCEEDED (the caller must hold what the attendant role holds) and 403 SSO_REQUIRED on a company-login domain. Requires the attendant:create scope.
164
+ * Makes an organization member an attendant: send `user_id` of an existing member, or `new_member` (`email`, `name`, `password`) to create the person too - user, membership with the built-in attendant role and attendant are written in one step, all or nothing, and `new_member` also needs the user:invite scope. `endpoint` is `webrtc` (the browser softphone, default) or `sip_extension` (an external softphone, which needs `extension` and receives a managed SIP credential in `sip_credential`, readable only in this response). Missing PUBLIC_BASE_URL or the encryption key makes a `sip_extension` creation fail (409 DESK_PUBLIC_URL_MISSING, 500 AI_ENCRYPTION_KEY_MISSING) instead of creating an attendant nobody could register. Returns 404 MEMBER_NOT_FOUND when the user is not a member, 409 ATTENDANT_ALREADY_EXISTS when they already are an attendant, 409 EXTENSION_IN_USE when another attendant holds the extension, 409 ATTENDANT_LIMIT_REACHED (with `limit` and `current`) when the license refuses more attendants - only a license whose grant carries a rule above the attendant limit does, otherwise attendants never refuse - and for `new_member` 409 ALREADY_MEMBER, 403 PERMISSION_CEILING_EXCEEDED (the caller must hold what the attendant role holds) and 403 SSO_REQUIRED on a company-login domain. Requires the attendant:create scope.
165
165
  */
166
166
  create(input?: AttendantsCreateInput, options?: NivaRequestOptions): NivaCall<AttendantsCreateOutput, AttendantsCreateErrorCode>;
167
167
  /**
@@ -752,7 +752,7 @@ export interface NivaClient {
752
752
  /**
753
753
  * dialerCampaigns.create operation.
754
754
  *
755
- * Creates a campaign in draft status bound to an existing visual plan. The plan need not be published at creation time (only at start); an unknown plan_id returns 404 PLAN_NOT_FOUND. Requires the dialer_campaign:create scope.
755
+ * Creates a campaign in draft status bound to an existing visual plan. The plan need not be published at creation time (only at start); an unknown plan_id returns 404 PLAN_NOT_FOUND. Requires the dialer_campaign:create scope. Answering-machine detection (amd_enabled) and the call-screening reply (screening_reply_enabled) belong to the classifier module: without it they read false in every response and turning one on returns 403 MODULE_DISABLED.
756
756
  */
757
757
  create(input: DialerCampaignsCreateInput, options?: NivaRequestOptions): NivaCall<DialerCampaignsCreateOutput, DialerCampaignsCreateErrorCode>;
758
758
  /**
@@ -800,7 +800,7 @@ export interface NivaClient {
800
800
  /**
801
801
  * dialerCampaigns.update operation.
802
802
  *
803
- * Partially updates a campaign's configuration. Only an archived campaign is immutable and returns 409 DIALER_CAMPAIGN_INVALID_TRANSITION - a finished one is editable, since it can be reopened and nothing it stores takes effect until somebody starts it. Clearing auto_start_at on a scheduled campaign reverts it to draft. An unknown id returns 404. Requires the dialer_campaign:update scope.
803
+ * Partially updates a campaign's configuration. Only an archived campaign is immutable and returns 409 DIALER_CAMPAIGN_INVALID_TRANSITION - a finished one is editable, since it can be reopened and nothing it stores takes effect until somebody starts it. Clearing auto_start_at on a scheduled campaign reverts it to draft. An unknown id returns 404. Requires the dialer_campaign:update scope. Answering-machine detection (amd_enabled) and the call-screening reply (screening_reply_enabled) belong to the classifier module: without it they read false in every response and turning one on returns 403 MODULE_DISABLED. Without the module both are left as stored, so they come back with it.
804
804
  */
805
805
  update(input: DialerCampaignsUpdateInput, options?: NivaRequestOptions): NivaCall<DialerCampaignsUpdateOutput, DialerCampaignsUpdateErrorCode>;
806
806
  };
@@ -1053,6 +1053,18 @@ export interface NivaClient {
1053
1053
  * Returns enabled modules and service availability without exposing deployment license details.
1054
1054
  */
1055
1055
  modules(options?: NivaRequestOptions): NivaCall<LicenseModulesOutput, LicenseModulesErrorCode>;
1056
+ /**
1057
+ * license.offlineRenewalRequest operation.
1058
+ *
1059
+ * Builds the signed file an installation with no internet sends to support to renew its license, carrying the usage hours the Suite has not accepted yet (the oldest 1000; `hours_left` says how many did not fit). The Suite's error code is in `data.suite_code` when the request cannot be built, e.g. LICENSE_NOT_ACTIVATED before the installation was activated.
1060
+ */
1061
+ offlineRenewalRequest(options?: NivaRequestOptions): NivaCall<LicenseOfflineRenewalRequestOutput, LicenseOfflineRenewalRequestErrorCode>;
1062
+ /**
1063
+ * license.offlineRenewalResponse operation.
1064
+ *
1065
+ * Adopts the answer file the Suite issued for a request made here: renews the license and confirms as delivered the usage hours the request carried. A license that already lasts longer is kept as it is. 422 LICENSE_OFFLINE_RESPONSE_INVALID when the file is not an answer, 409 LICENSE_OFFLINE_REQUEST_UNKNOWN when it answers a request this installation did not make (or one older than 40 days), and the library's code in `data.suite_code` when it does not verify.
1066
+ */
1067
+ offlineRenewalResponse(input: LicenseOfflineRenewalResponseInput, options?: NivaRequestOptions): NivaCall<LicenseOfflineRenewalResponseOutput, LicenseOfflineRenewalResponseErrorCode>;
1056
1068
  /**
1057
1069
  * license.orgUsage operation.
1058
1070
  *
@@ -1122,13 +1134,13 @@ export interface NivaClient {
1122
1134
  /**
1123
1135
  * orgSettings.getDialer operation.
1124
1136
  *
1125
- * Returns the organization's dialer operational settings — reserved inbound channels, default trunk, default country, the daily attempt cap per number and the answering-machine detection defaults. Returns null when no settings row exists yet.
1137
+ * Returns the organization's dialer operational settings — reserved inbound channels, default trunk, default country, the daily attempt cap per number and the answering-machine detection defaults. Returns null when no settings row exists yet. Without the classifier module dialer_amd_enabled reads false.
1126
1138
  */
1127
1139
  getDialer(options?: NivaRequestOptions): NivaCall<OrgSettingsGetDialerOutput, OrgSettingsGetDialerErrorCode>;
1128
1140
  /**
1129
1141
  * orgSettings.upsertDialer operation.
1130
1142
  *
1131
- * Creates or updates the organization's dialer operational settings and returns the persisted values. The change is broadcast to running engines and recorded in the audit log.
1143
+ * Creates or updates the organization's dialer operational settings and returns the persisted values. The change is broadcast to running engines and recorded in the audit log. dialer_amd_enabled belongs to the classifier module: without it, it reads false, true returns 403 MODULE_DISABLED and false leaves the stored default as it is.
1132
1144
  */
1133
1145
  upsertDialer(input?: OrgSettingsUpsertDialerInput, options?: NivaRequestOptions): NivaCall<OrgSettingsUpsertDialerOutput, OrgSettingsUpsertDialerErrorCode>;
1134
1146
  };
@@ -1169,6 +1181,12 @@ export interface NivaClient {
1169
1181
  * Returns one page of the queue's members with their priority and current state. `search` matches the attendant's name or e-mail; `sort_by` is `priority` (higher is offered first, the default) or `name`. Returns 404 QUEUE_NOT_FOUND. Requires the queue:read scope.
1170
1182
  */
1171
1183
  listMembers(input: QueuesListMembersInput, options?: NivaRequestOptions): NivaCall<QueuesListMembersOutput, QueuesListMembersErrorCode>;
1184
+ /**
1185
+ * queues.listen operation.
1186
+ *
1187
+ * Mints an ephemeral, listen-only SIP credential (valid for about 60 seconds, enough for the INVITE) so the supervisor's browser can hear a call being served from a queue, without the customer or the attendant hearing the supervisor. Connect a recvonly SIP over WebSocket leg to `ws_url`, authenticate with `username` and `password` and INVITE `destination`; `queue_name` is the queue the call is being served from. The conversation must be a voice call from a queue, answered and in service by an attendant: 404 CONVERSATION_NOT_FOUND when it does not exist or belongs to another organization, 409 CONVERSATION_NOT_LISTENABLE when it is a chat, waiting, being offered, in wrap-up, over, or came in without a queue, and 409 DESK_PUBLIC_URL_MISSING when the installation has no public URL. The credential is only as good as the right it was minted with: the directory re-checks it at the INVITE, and answers nothing once the supervisor lost queue_monitor:control or their membership, the API key or grant that minted it was revoked or lost the scope, the queues module went off, or the conversation stopped being listenable. A listen already established is not cut by that: it ends with the call. Audited as `queue.call_listened`. Requires the queue_monitor:control scope.
1188
+ */
1189
+ listen(input: QueuesListenInput, options?: NivaRequestOptions): NivaCall<QueuesListenOutput, QueuesListenErrorCode>;
1172
1190
  /**
1173
1191
  * queues.removeMember operation.
1174
1192
  *
@@ -1184,7 +1202,7 @@ export interface NivaClient {
1184
1202
  /**
1185
1203
  * queues.stats operation.
1186
1204
  *
1187
- * Returns the queue's `live` state (waiting, offered, in service, members logged in and available) and its `day` numbers since the organization's local midnight: offered, answered, abandoned, SLA and abandon percentages, average wait and talk. Returns 404 QUEUE_NOT_FOUND. Requires the queue:read scope.
1205
+ * Returns the queue's `live` state (waiting, offered, in service, members logged in and available) and its `day` numbers since the organization's local midnight: offered, answered, abandoned, SLA and abandon percentages, average wait and talk. With `date_from` and/or `date_to` it also returns `period`, the same numbers over that window: a `YYYY-MM-DD` bound is that calendar day in the organization's timezone (`date_to` included), an ISO timestamp an exact instant; the start defaults to the local midnight and the end to now. Give both bounds in the same form, both days or both instants: a day against an instant is a validation error (422), so no timezone is guessed. A `date_to` before `date_from` is a validation error (422) too, and a window over 93 days is 422 WINDOW_TOO_LONG. Returns 404 QUEUE_NOT_FOUND. Requires the queue:read scope.
1188
1206
  */
1189
1207
  stats(input: QueuesStatsInput, options?: NivaRequestOptions): NivaCall<QueuesStatsOutput, QueuesStatsErrorCode>;
1190
1208
  /**
@@ -3,7 +3,7 @@
3
3
  * (NIVA-258). Source: GET /api/v1/spec.json via generateOpenApiSpec().
4
4
  */
5
5
  /** SDK package version (from packages/sdk/package.json). */
6
- export declare const SDK_VERSION = "0.2.0";
6
+ export declare const SDK_VERSION = "0.3.0";
7
7
  /** Lowest NIVA product version this SDK operates against. */
8
8
  export declare const SUPPORTED_NIVA: {
9
9
  min: string;
@@ -11,9 +11,3 @@ export declare const SUPPORTED_NIVA: {
11
11
  };
12
12
  /** Wire-protocol version the SDK was generated for. */
13
13
  export declare const PROTOCOL_VERSION = 1;
14
- /** Backwards-looking compat rows: server range -> npm dist-tag. */
15
- export declare const COMPAT_TABLE: {
16
- nivaMin: string;
17
- nivaMax: string | null;
18
- distTag: string;
19
- }[];