@sippulse/niva-sdk 0.1.0-rc.5 → 0.1.0-rc.8
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.
- package/dts/src/errors.d.ts +0 -3
- package/dts/src/generated/client.d.ts +37 -17
- package/dts/src/generated/meta.d.ts +1 -1
- package/dts/src/generated/operations.d.ts +493 -168
- package/index.bun.js +198 -163
- package/index.default.js +195 -162
- package/index.deno.js +198 -163
- package/index.node.js +198 -163
- package/package.json +1 -1
package/dts/src/errors.d.ts
CHANGED
|
@@ -11,9 +11,6 @@ import type { NivaErrorCodes } from "./generated/operations.js";
|
|
|
11
11
|
/** Union of every defined error code in the generated contract. */
|
|
12
12
|
export type NivaErrorCode = NivaErrorCodes[keyof NivaErrorCodes];
|
|
13
13
|
export declare class NivaError extends Error {
|
|
14
|
-
constructor(message: string, options?: {
|
|
15
|
-
cause?: unknown;
|
|
16
|
-
});
|
|
17
14
|
name: string;
|
|
18
15
|
}
|
|
19
16
|
export interface NivaApiErrorDetails {
|
|
@@ -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, AudioFilesContentInput, AudioFilesDeleteInput, AudioFilesGenerateTtsInput, AudioFilesGetByIdInput, AudioFilesListInput, AudioFilesPreviewUrlInput, AudioFilesRegenerateTtsInput, AudioFilesUpdateInput, AudioFilesUploadInput, AuditCountInput, AuditExportCsvInput, AuditListInput, CallRecordsCountInput, CallRecordsExportCsvInput, CallRecordsGetByIdInput, CallRecordsGetEventsInput, CallRecordsGetRecordingUrlInput, CallRecordsListInput, CallRecordsPurgeVoiceContentInput, CallRecordsRecordingContentInput, CallRecordsRetryRecordingInput, CallsHangupCallInput, CallsOriginateInput, ChannelsCreateInput, ChannelsDeleteInput, ChannelsGetByIdInput, ChannelsListInput, ChannelsTestConnectionInput, ChannelsToggleInput, ChannelsUpdateInput, ContactsGetByIdInput, ContactsListInput, ContactsUpdateInput, 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, HolidaysCreateInput, HolidaysDeleteInput, HolidaysGroupsCreateInput, HolidaysGroupsDeleteInput, HolidaysGroupsGetByIdInput, HolidaysGroupsListInput, HolidaysGroupsUpdateInput, HolidaysImportInput, HolidaysListInput, HolidaysPreviewImportInput, HolidaysUpdateInput, OauthGrantsListInput, OauthGrantsRevokeInput, OauthGrantsUsageInput, OrgSettingsUpsertDialerInput, SchedulesCreateInput, SchedulesDeleteInput, SchedulesGetByIdInput, SchedulesListInput, SchedulesUpdateInput, SecretsListInput, SignalsCallSignalsInput, SignalsCreateInput, SignalsDeleteInput, SignalsGetInput, SignalsListInput, SignalsPresetsInput, SignalsTestInput, SignalsUpdateInput, SignalsUpsertBySlugInput, TtsListVoicesInput, TtsPreviewInput, UsersActivateMemberInput, UsersCreateMemberInput, UsersListMembersInput, UsersRemoveMemberInput, UsersSuspendMemberInput, UsersUpdateRoleInput, VisualPlansCloneInput, VisualPlansCreateInput, VisualPlansDeleteInput, VisualPlansGetByIdInput, VisualPlansImportDraftInput, VisualPlansListInput, VisualPlansListVersionsInput, VisualPlansPublishInput, VisualPlansUpdateInput, VisualPlansValidateInput, WebhooksDeliveriesAggregatesGetInput, WebhooksDeliveriesAggregatesListInput, WebhooksDeliveriesCountInput, WebhooksDeliveriesGetByIdInput, WebhooksDeliveriesListInput, WebhooksDeliveriesRetryInput, WebhooksEndpointsCreateInput, WebhooksEndpointsDeleteInput, WebhooksEndpointsGetByIdInput, WebhooksEndpointsListInput, WebhooksEndpointsRotateSecretInput, 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, AudioFilesDeleteOutput, AudioFilesGenerateTtsOutput, AudioFilesGetByIdOutput, AudioFilesListOutput, AudioFilesRegenerateTtsOutput, AudioFilesUpdateOutput, AudioFilesUploadOutput, AuditCountOutput, AuditListOutput, CallRecordsCountOutput, CallRecordsGetByIdOutput, CallRecordsGetEventsOutput, CallRecordsGetRecordingUrlOutput, CallRecordsListOutput, CallRecordsPurgeVoiceContentOutput, CallRecordsRetryRecordingOutput, CallsHangupCallOutput, CallsOriginateOutput, CapabilitiesGetOutput, ChannelsCreateOutput, ChannelsDeleteOutput, ChannelsGetByIdOutput, ChannelsListOutput, ChannelsTestConnectionOutput, ChannelsToggleOutput, ChannelsUpdateOutput, ContactsGetByIdOutput, ContactsListOutput, ContactsUpdateOutput, DashboardCapacityStatusOutput, 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, HolidaysCountriesOutput, HolidaysCreateOutput, HolidaysDeleteOutput, HolidaysGroupsCreateOutput, HolidaysGroupsDeleteOutput, HolidaysGroupsGetByIdOutput, HolidaysGroupsListOutput, HolidaysGroupsUpdateOutput, HolidaysImportOutput, HolidaysListOutput, HolidaysPreviewImportOutput, HolidaysUpdateOutput, LicenseStatusOutput, OauthGrantsListOutput, OauthGrantsRevokeOutput, OauthGrantsUsageOutput, OrgSettingsGetDialerOutput, OrgSettingsUpsertDialerOutput, SchedulesCreateOutput, SchedulesDeleteOutput, SchedulesGetByIdOutput, SchedulesListOutput, SchedulesUpdateOutput, SecretsListOutput, SecretsListNamesOutput, SignalsCallSignalsOutput, SignalsCreateOutput, SignalsDeleteOutput, SignalsGetOutput, SignalsListOutput, SignalsOverviewOutput, SignalsPresetsOutput, SignalsTestOutput, SignalsUpdateOutput, SignalsUpsertBySlugOutput, TtsListModelsOutput, TtsListVoicesOutput, UsersActivateMemberOutput, UsersCreateMemberOutput, UsersListMembersOutput, UsersMeOutput, UsersRemoveMemberOutput, UsersSuspendMemberOutput, UsersUpdateRoleOutput, VisualPlansCloneOutput, VisualPlansCreateOutput, VisualPlansDeleteOutput, VisualPlansGetByIdOutput, VisualPlansImportDraftOutput, VisualPlansListOutput, VisualPlansListVersionsOutput, VisualPlansPublishOutput, VisualPlansUpdateOutput, VisualPlansValidateOutput, WebhooksDeliveriesAggregatesGetOutput, WebhooksDeliveriesAggregatesListOutput, WebhooksDeliveriesCountOutput, WebhooksDeliveriesGetByIdOutput, WebhooksDeliveriesListOutput, WebhooksDeliveriesRetentionOutput, WebhooksDeliveriesRetryOutput, WebhooksEndpointsCreateOutput, WebhooksEndpointsDeleteOutput, WebhooksEndpointsGetByIdOutput, WebhooksEndpointsListOutput, WebhooksEndpointsRotateSecretOutput, WebhooksEndpointsUpdateOutput, WebhooksEventsListOutput, AuditExportCsvEvent, CallRecordsExportCsvEvent, 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, AudioFilesContentErrorCode, AudioFilesDeleteErrorCode, AudioFilesGenerateTtsErrorCode, AudioFilesGetByIdErrorCode, AudioFilesListErrorCode, AudioFilesPreviewUrlErrorCode, AudioFilesRegenerateTtsErrorCode, AudioFilesUpdateErrorCode, AudioFilesUploadErrorCode, AuditCountErrorCode, AuditListErrorCode, CallRecordsCountErrorCode, CallRecordsGetByIdErrorCode, CallRecordsGetEventsErrorCode, CallRecordsGetRecordingUrlErrorCode, CallRecordsListErrorCode, CallRecordsPurgeVoiceContentErrorCode, CallRecordsRecordingContentErrorCode, CallRecordsRetryRecordingErrorCode, CallsHangupCallErrorCode, CallsOriginateErrorCode, CapabilitiesGetErrorCode, ChannelsCreateErrorCode, ChannelsDeleteErrorCode, ChannelsGetByIdErrorCode, ChannelsListErrorCode, ChannelsTestConnectionErrorCode, ChannelsToggleErrorCode, ChannelsUpdateErrorCode, ContactsGetByIdErrorCode, ContactsListErrorCode, ContactsUpdateErrorCode, DashboardCapacityStatusErrorCode, 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, HolidaysCountriesErrorCode, HolidaysCreateErrorCode, HolidaysDeleteErrorCode, HolidaysGroupsCreateErrorCode, HolidaysGroupsDeleteErrorCode, HolidaysGroupsGetByIdErrorCode, HolidaysGroupsListErrorCode, HolidaysGroupsUpdateErrorCode, HolidaysImportErrorCode, HolidaysListErrorCode, HolidaysPreviewImportErrorCode, HolidaysUpdateErrorCode, LicenseStatusErrorCode, OauthGrantsListErrorCode, OauthGrantsRevokeErrorCode, OauthGrantsUsageErrorCode, OrgSettingsGetDialerErrorCode, OrgSettingsUpsertDialerErrorCode, SchedulesCreateErrorCode, SchedulesDeleteErrorCode, SchedulesGetByIdErrorCode, SchedulesListErrorCode, SchedulesUpdateErrorCode, SecretsListErrorCode, SecretsListNamesErrorCode, SignalsCallSignalsErrorCode, SignalsCreateErrorCode, SignalsDeleteErrorCode, SignalsGetErrorCode, SignalsListErrorCode, SignalsOverviewErrorCode, SignalsPresetsErrorCode, SignalsTestErrorCode, SignalsUpdateErrorCode, SignalsUpsertBySlugErrorCode, TtsListModelsErrorCode, TtsListVoicesErrorCode, TtsPreviewErrorCode, UsersActivateMemberErrorCode, UsersCreateMemberErrorCode, UsersListMembersErrorCode, UsersMeErrorCode, UsersRemoveMemberErrorCode, UsersSuspendMemberErrorCode, UsersUpdateRoleErrorCode, VisualPlansCloneErrorCode, VisualPlansCreateErrorCode, VisualPlansDeleteErrorCode, VisualPlansGetByIdErrorCode, VisualPlansImportDraftErrorCode, VisualPlansListErrorCode, VisualPlansListVersionsErrorCode, VisualPlansPublishErrorCode, VisualPlansUpdateErrorCode, VisualPlansValidateErrorCode, WebhooksDeliveriesAggregatesGetErrorCode, WebhooksDeliveriesAggregatesListErrorCode, WebhooksDeliveriesCountErrorCode, WebhooksDeliveriesGetByIdErrorCode, WebhooksDeliveriesListErrorCode, WebhooksDeliveriesRetentionErrorCode, WebhooksDeliveriesRetryErrorCode, WebhooksEndpointsCreateErrorCode, WebhooksEndpointsDeleteErrorCode, WebhooksEndpointsGetByIdErrorCode, WebhooksEndpointsListErrorCode, WebhooksEndpointsRotateSecretErrorCode, 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, AudioFilesContentInput, AudioFilesDeleteInput, AudioFilesGenerateTtsInput, AudioFilesGetByIdInput, AudioFilesListInput, AudioFilesPreviewUrlInput, AudioFilesRegenerateTtsInput, AudioFilesUpdateInput, AudioFilesUploadInput, AuditCountInput, AuditExportCsvInput, AuditListInput, CallRecordsCountInput, CallRecordsExportCsvInput, CallRecordsGetByIdInput, CallRecordsGetEventsInput, CallRecordsGetRecordingUrlInput, CallRecordsListInput, CallRecordsPurgeVoiceContentInput, CallRecordsRecordingContentInput, CallRecordsRetryRecordingInput, CallsHangupCallInput, CallsOriginateInput, ChannelsCreateInput, ChannelsDeleteInput, ChannelsGetByIdInput, ChannelsListInput, ChannelsTestConnectionInput, ChannelsToggleInput, ChannelsUpdateInput, ContactsGetByIdInput, ContactsListInput, ContactsUpdateInput, 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, HolidaysCreateInput, HolidaysDeleteInput, HolidaysGroupsCreateInput, HolidaysGroupsDeleteInput, HolidaysGroupsGetByIdInput, HolidaysGroupsListInput, HolidaysGroupsUpdateInput, HolidaysImportInput, HolidaysListInput, HolidaysPreviewImportInput, HolidaysUpdateInput, InsightsAggregateInput, OauthGrantsListInput, OauthGrantsRevokeInput, OauthGrantsUsageInput, OrgSettingsUpsertDialerInput, SchedulesCreateInput, SchedulesDeleteInput, SchedulesGetByIdInput, SchedulesListInput, SchedulesUpdateInput, SecretsListInput, SignalsCallSignalsInput, SignalsCreateInput, SignalsDeleteInput, SignalsGetInput, SignalsListInput, SignalsPresetsInput, SignalsTestInput, SignalsUpdateInput, SignalsUpsertBySlugInput, TtsListVoicesInput, TtsPreviewInput, UsersActivateMemberInput, UsersCreateMemberInput, UsersListMembersInput, UsersRemoveMemberInput, UsersSuspendMemberInput, UsersUpdateMyNotificationToastInput, UsersUpdateRoleInput, VisualPlansCloneInput, VisualPlansCreateInput, VisualPlansDeleteInput, VisualPlansGetByIdInput, VisualPlansImportDraftInput, VisualPlansListInput, VisualPlansListVersionsInput, VisualPlansPublishInput, VisualPlansUpdateInput, VisualPlansValidateInput, WebhooksDeliveriesAggregatesGetInput, WebhooksDeliveriesAggregatesListInput, WebhooksDeliveriesCountInput, WebhooksDeliveriesGetByIdInput, WebhooksDeliveriesListInput, WebhooksDeliveriesRetryInput, WebhooksEndpointsCreateInput, WebhooksEndpointsDeleteInput, WebhooksEndpointsGetByIdInput, WebhooksEndpointsListInput, WebhooksEndpointsRotateSecretInput, 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, AudioFilesDeleteOutput, AudioFilesGenerateTtsOutput, AudioFilesGetByIdOutput, AudioFilesListOutput, AudioFilesRegenerateTtsOutput, AudioFilesUpdateOutput, AudioFilesUploadOutput, AuditCountOutput, AuditListOutput, CallRecordsCountOutput, CallRecordsGetByIdOutput, CallRecordsGetEventsOutput, CallRecordsGetRecordingUrlOutput, CallRecordsListOutput, CallRecordsPurgeVoiceContentOutput, CallRecordsRetryRecordingOutput, CallsHangupCallOutput, CallsOriginateOutput, CapabilitiesGetOutput, ChannelsCreateOutput, ChannelsDeleteOutput, ChannelsGetByIdOutput, ChannelsListOutput, ChannelsTestConnectionOutput, ChannelsToggleOutput, ChannelsUpdateOutput, ContactsGetByIdOutput, ContactsListOutput, ContactsUpdateOutput, DashboardCapacityStatusOutput, 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, HolidaysCountriesOutput, HolidaysCreateOutput, HolidaysDeleteOutput, HolidaysGroupsCreateOutput, HolidaysGroupsDeleteOutput, HolidaysGroupsGetByIdOutput, HolidaysGroupsListOutput, HolidaysGroupsUpdateOutput, HolidaysImportOutput, HolidaysListOutput, HolidaysPreviewImportOutput, HolidaysUpdateOutput, InsightsAggregateOutput, LicenseModulesOutput, LicenseStatusOutput, OauthGrantsListOutput, OauthGrantsRevokeOutput, OauthGrantsUsageOutput, OrgSettingsGetDialerOutput, OrgSettingsUpsertDialerOutput, SchedulesCreateOutput, SchedulesDeleteOutput, SchedulesGetByIdOutput, SchedulesListOutput, SchedulesUpdateOutput, SecretsListOutput, SecretsListNamesOutput, SignalsCallSignalsOutput, SignalsCreateOutput, SignalsDeleteOutput, SignalsGetOutput, SignalsListOutput, SignalsOverviewOutput, SignalsPresetsOutput, SignalsTestOutput, SignalsUpdateOutput, SignalsUpsertBySlugOutput, TtsListModelsOutput, TtsListVoicesOutput, UsersActivateMemberOutput, UsersCreateMemberOutput, UsersListMembersOutput, UsersMeOutput, UsersRemoveMemberOutput, UsersSuspendMemberOutput, UsersUpdateMyNotificationToastOutput, UsersUpdateRoleOutput, VisualPlansCloneOutput, VisualPlansCreateOutput, VisualPlansDeleteOutput, VisualPlansGetByIdOutput, VisualPlansImportDraftOutput, VisualPlansListOutput, VisualPlansListVersionsOutput, VisualPlansPublishOutput, VisualPlansUpdateOutput, VisualPlansValidateOutput, WebhooksDeliveriesAggregatesGetOutput, WebhooksDeliveriesAggregatesListOutput, WebhooksDeliveriesCountOutput, WebhooksDeliveriesGetByIdOutput, WebhooksDeliveriesListOutput, WebhooksDeliveriesRetentionOutput, WebhooksDeliveriesRetryOutput, WebhooksEndpointsCreateOutput, WebhooksEndpointsDeleteOutput, WebhooksEndpointsGetByIdOutput, WebhooksEndpointsListOutput, WebhooksEndpointsRotateSecretOutput, WebhooksEndpointsUpdateOutput, WebhooksEventsListOutput, AuditExportCsvEvent, CallRecordsExportCsvEvent, 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, AudioFilesContentErrorCode, AudioFilesDeleteErrorCode, AudioFilesGenerateTtsErrorCode, AudioFilesGetByIdErrorCode, AudioFilesListErrorCode, AudioFilesPreviewUrlErrorCode, AudioFilesRegenerateTtsErrorCode, AudioFilesUpdateErrorCode, AudioFilesUploadErrorCode, AuditCountErrorCode, AuditListErrorCode, CallRecordsCountErrorCode, CallRecordsGetByIdErrorCode, CallRecordsGetEventsErrorCode, CallRecordsGetRecordingUrlErrorCode, CallRecordsListErrorCode, CallRecordsPurgeVoiceContentErrorCode, CallRecordsRecordingContentErrorCode, CallRecordsRetryRecordingErrorCode, CallsHangupCallErrorCode, CallsOriginateErrorCode, CapabilitiesGetErrorCode, ChannelsCreateErrorCode, ChannelsDeleteErrorCode, ChannelsGetByIdErrorCode, ChannelsListErrorCode, ChannelsTestConnectionErrorCode, ChannelsToggleErrorCode, ChannelsUpdateErrorCode, ContactsGetByIdErrorCode, ContactsListErrorCode, ContactsUpdateErrorCode, DashboardCapacityStatusErrorCode, 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, HolidaysCountriesErrorCode, HolidaysCreateErrorCode, HolidaysDeleteErrorCode, HolidaysGroupsCreateErrorCode, HolidaysGroupsDeleteErrorCode, HolidaysGroupsGetByIdErrorCode, HolidaysGroupsListErrorCode, HolidaysGroupsUpdateErrorCode, HolidaysImportErrorCode, HolidaysListErrorCode, HolidaysPreviewImportErrorCode, HolidaysUpdateErrorCode, InsightsAggregateErrorCode, LicenseModulesErrorCode, LicenseStatusErrorCode, OauthGrantsListErrorCode, OauthGrantsRevokeErrorCode, OauthGrantsUsageErrorCode, OrgSettingsGetDialerErrorCode, OrgSettingsUpsertDialerErrorCode, SchedulesCreateErrorCode, SchedulesDeleteErrorCode, SchedulesGetByIdErrorCode, SchedulesListErrorCode, SchedulesUpdateErrorCode, SecretsListErrorCode, SecretsListNamesErrorCode, SignalsCallSignalsErrorCode, SignalsCreateErrorCode, SignalsDeleteErrorCode, SignalsGetErrorCode, SignalsListErrorCode, SignalsOverviewErrorCode, SignalsPresetsErrorCode, SignalsTestErrorCode, SignalsUpdateErrorCode, SignalsUpsertBySlugErrorCode, TtsListModelsErrorCode, TtsListVoicesErrorCode, TtsPreviewErrorCode, UsersActivateMemberErrorCode, UsersCreateMemberErrorCode, UsersListMembersErrorCode, UsersMeErrorCode, UsersRemoveMemberErrorCode, UsersSuspendMemberErrorCode, UsersUpdateMyNotificationToastErrorCode, UsersUpdateRoleErrorCode, VisualPlansCloneErrorCode, VisualPlansCreateErrorCode, VisualPlansDeleteErrorCode, VisualPlansGetByIdErrorCode, VisualPlansImportDraftErrorCode, VisualPlansListErrorCode, VisualPlansListVersionsErrorCode, VisualPlansPublishErrorCode, VisualPlansUpdateErrorCode, VisualPlansValidateErrorCode, WebhooksDeliveriesAggregatesGetErrorCode, WebhooksDeliveriesAggregatesListErrorCode, WebhooksDeliveriesCountErrorCode, WebhooksDeliveriesGetByIdErrorCode, WebhooksDeliveriesListErrorCode, WebhooksDeliveriesRetentionErrorCode, WebhooksDeliveriesRetryErrorCode, WebhooksEndpointsCreateErrorCode, WebhooksEndpointsDeleteErrorCode, WebhooksEndpointsGetByIdErrorCode, WebhooksEndpointsListErrorCode, WebhooksEndpointsRotateSecretErrorCode, WebhooksEndpointsUpdateErrorCode, WebhooksEventsListErrorCode } from "./operations.js";
|
|
8
8
|
/** Typed client of the frozen REST contract /api/v1. */
|
|
9
9
|
export interface NivaClient {
|
|
10
10
|
ai: {
|
|
@@ -29,7 +29,7 @@ export interface NivaClient {
|
|
|
29
29
|
/**
|
|
30
30
|
* ai.getTranscription operation.
|
|
31
31
|
*
|
|
32
|
-
* Returns the stored transcription for a call (text, segments, language, sentiment, summary and more), or null when none exists. Read-only historical data — served even after the AI module is downgraded. Requires the
|
|
32
|
+
* Returns the stored transcription for a call (text, segments, language, sentiment, summary and more), or null when none exists. Read-only historical data — served even after the AI module is downgraded. Requires the call_content:read scope.
|
|
33
33
|
*/
|
|
34
34
|
getTranscription(input: AiGetTranscriptionInput, options?: NivaRequestOptions): NivaCall<AiGetTranscriptionOutput, AiGetTranscriptionErrorCode>;
|
|
35
35
|
/**
|
|
@@ -65,19 +65,19 @@ export interface NivaClient {
|
|
|
65
65
|
/**
|
|
66
66
|
* ai.runSpeechAnalytics operation.
|
|
67
67
|
*
|
|
68
|
-
* Runs
|
|
68
|
+
* Runs call summary and sentiment over an existing transcription, plus topic and intent classifications for configured legacy lists. Manual execution computes both summary and sentiment regardless of automatic settings. The resulting call.analysis_completed webhook contains one native analysis item, with status completed or failed. Requires the ai module and the ai:execute scope.
|
|
69
69
|
*/
|
|
70
70
|
runSpeechAnalytics(input: AiRunSpeechAnalyticsInput, options?: NivaRequestOptions): NivaCall<AiRunSpeechAnalyticsOutput, AiRunSpeechAnalyticsErrorCode>;
|
|
71
71
|
/**
|
|
72
72
|
* ai.searchTranscriptions operation.
|
|
73
73
|
*
|
|
74
|
-
* Semantic (vector) search over call transcriptions. Returns the top matches ranked by similarity (limit top-K, no pagination); results below the similarity threshold are excluded. Optionally scope by date range and visual plan. Requires the ai module and
|
|
74
|
+
* Semantic (vector) search over call transcriptions. Returns the top matches ranked by similarity (limit top-K, no pagination); results below the similarity threshold are excluded. Optionally scope by date range and visual plan. Requires the ai module, ai:read and call_content:read permissions.
|
|
75
75
|
*/
|
|
76
76
|
searchTranscriptions(input: AiSearchTranscriptionsInput, options?: NivaRequestOptions): NivaCall<AiSearchTranscriptionsOutput, AiSearchTranscriptionsErrorCode>;
|
|
77
77
|
/**
|
|
78
78
|
* ai.transcribeNow operation.
|
|
79
79
|
*
|
|
80
|
-
* Transcribes a recorded call on demand and returns the stored text, diarized segments and words. The response status is completed when ASR finishes within the synchronous window, or processing while the transcription continues in the background. An explicit request overrides the plan transcription setting and minimum duration. Pass from_node and/or to_node to transcribe only the stretch of the call between two nodes of the plan, identified by their slug; the response then carries a range block and the cut only ever narrows what the plan already allowed to be transcribed. There is one transcription per call, so a segment run replaces the previous transcript. Requires the ai module
|
|
80
|
+
* Transcribes a recorded call on demand and returns the stored text, diarized segments and words. The response status is completed when ASR finishes within the synchronous window, or processing while the transcription continues in the background. An explicit request overrides the plan transcription setting and minimum duration. Pass from_node and/or to_node to transcribe only the stretch of the call between two nodes of the plan, identified by their slug; the response then carries a range block and the cut only ever narrows what the plan already allowed to be transcribed. There is one transcription per call, so a segment run replaces the previous transcript. Requires the ai module, ai:execute and call_content:read permissions.
|
|
81
81
|
*/
|
|
82
82
|
transcribeNow(input: AiTranscribeNowInput, options?: NivaRequestOptions): NivaCall<AiTranscribeNowOutput, AiTranscribeNowErrorCode>;
|
|
83
83
|
};
|
|
@@ -265,7 +265,7 @@ export interface NivaClient {
|
|
|
265
265
|
/**
|
|
266
266
|
* callRecords.getRecordingUrl operation.
|
|
267
267
|
*
|
|
268
|
-
* Returns a time-limited signed URL to download the call's recording plus the file name to save it under, or { url: null, filename: null } when the call has no recording or the id is unknown/cross-org. A recording is stored as WAV or as Ogg Opus depending on when it was made, so the extension comes from the stored file and is not always .wav. Requires the
|
|
268
|
+
* Returns a time-limited signed URL to download the call's recording plus the file name to save it under, or { url: null, filename: null } when the call has no recording or the id is unknown/cross-org. A recording is stored as WAV or as Ogg Opus depending on when it was made, so the extension comes from the stored file and is not always .wav. Requires the call_content:read scope.
|
|
269
269
|
*/
|
|
270
270
|
getRecordingUrl(input: CallRecordsGetRecordingUrlInput, options?: NivaRequestOptions): NivaCall<CallRecordsGetRecordingUrlOutput, CallRecordsGetRecordingUrlErrorCode>;
|
|
271
271
|
/**
|
|
@@ -283,7 +283,7 @@ export interface NivaClient {
|
|
|
283
283
|
/**
|
|
284
284
|
* callRecords.recordingContent operation.
|
|
285
285
|
*
|
|
286
|
-
* Streams the raw audio of the call's recording (uncompressed WAV, commonly hundreds of megabytes for long calls; the bytes are never buffered server-side). Supports HTTP Range requests: a satisfiable `Range` yields 206 Partial Content with `Content-Range`, an unsatisfiable one yields 416 RANGE_NOT_SATISFIABLE with `Content-Range: bytes * /<total>`, and every response advertises `Accept-Ranges: bytes`. Returns 404 CALL_NOT_FOUND when the call is unknown or belongs to another organization, 404 RECORDING_NOT_FOUND when the call was never recorded, and 404 RECORDING_CONTENT_MISSING when the call record points at bytes that are gone from storage. Requires the
|
|
286
|
+
* Streams the raw audio of the call's recording (uncompressed WAV, commonly hundreds of megabytes for long calls; the bytes are never buffered server-side). Supports HTTP Range requests: a satisfiable `Range` yields 206 Partial Content with `Content-Range`, an unsatisfiable one yields 416 RANGE_NOT_SATISFIABLE with `Content-Range: bytes * /<total>`, and every response advertises `Accept-Ranges: bytes`. Returns 404 CALL_NOT_FOUND when the call is unknown or belongs to another organization, 404 RECORDING_NOT_FOUND when the call was never recorded, and 404 RECORDING_CONTENT_MISSING when the call record points at bytes that are gone from storage. Requires the call_content:read scope.
|
|
287
287
|
*/
|
|
288
288
|
recordingContent(input: CallRecordsRecordingContentInput, options?: NivaRequestOptions & {
|
|
289
289
|
range?: string;
|
|
@@ -291,7 +291,7 @@ export interface NivaClient {
|
|
|
291
291
|
/**
|
|
292
292
|
* callRecords.retryRecording operation.
|
|
293
293
|
*
|
|
294
|
-
* Requeues a failed voice-recording upload for the engine and returns { success: true }. The action is idempotent while the upload is queued or processing, and does nothing for completed, chat, purged or never-recorded calls. Requires the
|
|
294
|
+
* Requeues a failed voice-recording upload for the engine and returns { success: true }. The action is idempotent while the upload is queued or processing, and does nothing for completed, chat, purged or never-recorded calls. Requires the call_record:export permission.
|
|
295
295
|
*/
|
|
296
296
|
retryRecording(input: CallRecordsRetryRecordingInput, options?: NivaRequestOptions): NivaCall<CallRecordsRetryRecordingOutput, CallRecordsRetryRecordingErrorCode>;
|
|
297
297
|
};
|
|
@@ -333,13 +333,13 @@ export interface NivaClient {
|
|
|
333
333
|
/**
|
|
334
334
|
* channels.getById operation.
|
|
335
335
|
*
|
|
336
|
-
* Returns the channel, or `null` (HTTP 200) when it does not exist or belongs to another organization. Accessing a non-SIP channel while the omnichannel module is disabled returns 403 MODULE_DISABLED.
|
|
336
|
+
* Returns the channel, or `null` (HTTP 200) when it does not exist or belongs to another organization. Includes `calls_7d`, `last_call_at` (both null without the call_record:read permission), `visual_plan_published_version` and `visual_plan_has_unpublished_changes`. Accessing a non-SIP channel while the omnichannel module is disabled returns 403 MODULE_DISABLED.
|
|
337
337
|
*/
|
|
338
338
|
getById(input: ChannelsGetByIdInput, options?: NivaRequestOptions): NivaCall<ChannelsGetByIdOutput, ChannelsGetByIdErrorCode>;
|
|
339
339
|
/**
|
|
340
340
|
* channels.list operation.
|
|
341
341
|
*
|
|
342
|
-
* Returns a paginated list of the organization's channels, optionally filtered by `channel_type` and `
|
|
342
|
+
* Returns a paginated list of the organization's channels, optionally filtered by `channel_type`, `is_active` and `alert` (`true` returns only channels with an alert: active channels with no plan, a never-published plan, or a failed WhatsApp webhook sync). `search` also matches the linked plan name. Every item carries `calls_7d` (14 daily buckets plus the 7-day total, null without the call_record:read permission), `last_call_at` (same permission rule), `visual_plan_published_version` (null while never published or unlinked) and `visual_plan_has_unpublished_changes`. The response adds `counts` (`all` plus one entry per channel type with rows, under the current search, ignoring the type/status/alert filters), `active_count` and `alert_count` (same search rule). `sort_by` accepts `calls_7d` (busiest first on desc) and `last_call_at` (most recent first on desc, quiet channels last) whenever calls are visible, otherwise both fall back to `updated_at`. When the omnichannel module is disabled the result is restricted to SIP channels, and requesting a non-SIP `channel_type` returns 403 MODULE_DISABLED.
|
|
343
343
|
*/
|
|
344
344
|
list(input?: ChannelsListInput, options?: NivaRequestOptions): NivaCall<ChannelsListOutput, ChannelsListErrorCode>;
|
|
345
345
|
/**
|
|
@@ -699,11 +699,25 @@ export interface NivaClient {
|
|
|
699
699
|
update(input: HolidaysGroupsUpdateInput, options?: NivaRequestOptions): NivaCall<HolidaysGroupsUpdateOutput, HolidaysGroupsUpdateErrorCode>;
|
|
700
700
|
};
|
|
701
701
|
};
|
|
702
|
+
insights: {
|
|
703
|
+
/**
|
|
704
|
+
* insights.aggregate operation.
|
|
705
|
+
*
|
|
706
|
+
* Aggregates call measures (volume, answered, busy, no_answer, failed, duration, ai_cost, flow_errors) grouped by up to two dimensions: day, week, month, hour_of_day, weekday, plan, plan_version, channel, outcome, or a signal value. Filters narrow by plan, channel, outcome, or signal values. Requires dashboard:read, plus the ai module when a signal is referenced.
|
|
707
|
+
*/
|
|
708
|
+
aggregate(input: InsightsAggregateInput, options?: NivaRequestOptions): NivaCall<InsightsAggregateOutput, InsightsAggregateErrorCode>;
|
|
709
|
+
};
|
|
702
710
|
license: {
|
|
711
|
+
/**
|
|
712
|
+
* license.modules operation.
|
|
713
|
+
*
|
|
714
|
+
* Returns enabled modules and service availability without exposing deployment license details.
|
|
715
|
+
*/
|
|
716
|
+
modules(options?: NivaRequestOptions): NivaCall<LicenseModulesOutput, LicenseModulesErrorCode>;
|
|
703
717
|
/**
|
|
704
718
|
* license.status operation.
|
|
705
719
|
*
|
|
706
|
-
* Returns
|
|
720
|
+
* Returns deployment-wide license status and installation details. Available only to platform administrators.
|
|
707
721
|
*/
|
|
708
722
|
status(options?: NivaRequestOptions): NivaCall<LicenseStatusOutput, LicenseStatusErrorCode>;
|
|
709
723
|
};
|
|
@@ -797,13 +811,13 @@ export interface NivaClient {
|
|
|
797
811
|
/**
|
|
798
812
|
* signals.create operation.
|
|
799
813
|
*
|
|
800
|
-
* Creates a signal in the organization's library with its version 1 snapshot. The slug derives from the name when absent, suffixed on collision. Requires the ai module and the ai:
|
|
814
|
+
* Creates a signal in the organization's library with its version 1 snapshot. The slug derives from the name when absent, suffixed on collision. Requires the ai module and the ai:configure scope.
|
|
801
815
|
*/
|
|
802
816
|
create(input: SignalsCreateInput, options?: NivaRequestOptions): NivaCall<SignalsCreateOutput, SignalsCreateErrorCode>;
|
|
803
817
|
/**
|
|
804
818
|
* signals.delete operation.
|
|
805
819
|
*
|
|
806
|
-
* Moves a signal to the trash: it leaves the effective lists of plans but keeps its slug, versions and call history. Restore it from the archive; purge it there only while no call references it. Requires the ai module and the ai:
|
|
820
|
+
* Moves a signal to the trash: it leaves the effective lists of plans but keeps its slug, versions and call history. Restore it from the archive; purge it there only while no call references it. Requires the ai module and the ai:configure scope.
|
|
807
821
|
*/
|
|
808
822
|
delete(input: SignalsDeleteInput, options?: NivaRequestOptions): NivaCall<SignalsDeleteOutput, SignalsDeleteErrorCode>;
|
|
809
823
|
/**
|
|
@@ -833,19 +847,19 @@ export interface NivaClient {
|
|
|
833
847
|
/**
|
|
834
848
|
* signals.test operation.
|
|
835
849
|
*
|
|
836
|
-
* Runs a saved or unsaved definition against one text, one recorded call (replayed turn by turn with the same windows the engine will use), or a plan's last transcribed calls. Exactly one source.
|
|
850
|
+
* Runs a saved or unsaved definition against one text, one recorded call (replayed turn by turn with the same windows the engine will use), or a plan's last transcribed calls. Exactly one source. Stored-call and plan sources require call_content:read; all sources require the ai module and the ai:execute scope.
|
|
837
851
|
*/
|
|
838
852
|
test(input: SignalsTestInput, options?: NivaRequestOptions): NivaCall<SignalsTestOutput, SignalsTestErrorCode>;
|
|
839
853
|
/**
|
|
840
854
|
* signals.update operation.
|
|
841
855
|
*
|
|
842
|
-
* Partially updates a signal. Removed option keys are archived, never dropped; the version bumps when anything that affects evaluation or alerting changes (question, options, levels, speaker, scope, live, alert). The slug and kind never change. Requires the ai module and the ai:
|
|
856
|
+
* Partially updates a signal. Removed option keys are archived, never dropped; the version bumps when anything that affects evaluation or alerting changes (question, options, levels, speaker, scope, live, alert). The slug and kind never change. Requires the ai module and the ai:configure scope.
|
|
843
857
|
*/
|
|
844
858
|
update(input: SignalsUpdateInput, options?: NivaRequestOptions): NivaCall<SignalsUpdateOutput, SignalsUpdateErrorCode>;
|
|
845
859
|
/**
|
|
846
860
|
* signals.upsertBySlug operation.
|
|
847
861
|
*
|
|
848
|
-
* The idempotent agent path: creates the signal, updates it, or reports unchanged with the fields that differed. Running the same body twice returns unchanged. With dry_run it reports the same outcome without writing or logging an audit entry. Requires the ai module and the ai:
|
|
862
|
+
* The idempotent agent path: creates the signal, updates it, or reports unchanged with the fields that differed. Running the same body twice returns unchanged. With dry_run it reports the same outcome without writing or logging an audit entry. Requires the ai module and the ai:configure scope.
|
|
849
863
|
*/
|
|
850
864
|
upsertBySlug(input: SignalsUpsertBySlugInput, options?: NivaRequestOptions): NivaCall<SignalsUpsertBySlugOutput, SignalsUpsertBySlugErrorCode>;
|
|
851
865
|
};
|
|
@@ -908,6 +922,12 @@ export interface NivaClient {
|
|
|
908
922
|
* Suspends a member, blocking their access while keeping the membership. Returns 409 CANNOT_SUSPEND_SELF when the caller targets themselves and 404 MEMBER_NOT_FOUND when the member does not exist.
|
|
909
923
|
*/
|
|
910
924
|
suspendMember(input: UsersSuspendMemberInput, options?: NivaRequestOptions): NivaCall<UsersSuspendMemberOutput, UsersSuspendMemberErrorCode>;
|
|
925
|
+
/**
|
|
926
|
+
* users.updateMyNotificationToast operation.
|
|
927
|
+
*
|
|
928
|
+
* Sets whether the calling user wants notification toasts: `follow_org`, `critical_only` or `off`.
|
|
929
|
+
*/
|
|
930
|
+
updateMyNotificationToast(input: UsersUpdateMyNotificationToastInput, options?: NivaRequestOptions): NivaCall<UsersUpdateMyNotificationToastOutput, UsersUpdateMyNotificationToastErrorCode>;
|
|
911
931
|
/**
|
|
912
932
|
* users.updateRole operation.
|
|
913
933
|
*
|
|
@@ -949,7 +969,7 @@ export interface NivaClient {
|
|
|
949
969
|
/**
|
|
950
970
|
* visualPlans.list operation.
|
|
951
971
|
*
|
|
952
|
-
* Returns a paginated list of visual plans, each including its recording/transcription/speech-analytics settings and the channels currently assigned to it.
|
|
972
|
+
* Returns a paginated list of visual plans, each including its recording/transcription/speech-analytics settings and the channels currently assigned to it. Pass `status` (`published` or `draft`) to return only plans with or without a published version; the `total` counts the same filtered set. Every item also carries `published_version` (null while never published), `has_unpublished_changes` (draft vs published by the editor's own rules), `last_edited_by` (null for a never-edited plan), `used_by_plans` (live plans using it as a sub-plan) and `calls_7d` (14 daily buckets plus the 7-day total, null without the call_record:read permission). The response adds `counts` (`all`/`published`/`draft` under the current search, ignoring `status`) and `calls_7d_total` (same permission rule). `search` also matches assigned channel identifiers; `sort_by` accepts `calls_7d` (busiest first on desc) whenever calls are visible.
|
|
953
973
|
*/
|
|
954
974
|
list(input?: VisualPlansListInput, options?: NivaRequestOptions): NivaCall<VisualPlansListOutput, VisualPlansListErrorCode>;
|
|
955
975
|
/**
|
|
@@ -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.1.0-rc.
|
|
6
|
+
export declare const SDK_VERSION = "0.1.0-rc.8";
|
|
7
7
|
/** Lowest NIVA product version this SDK operates against. */
|
|
8
8
|
export declare const SUPPORTED_NIVA: {
|
|
9
9
|
min: string;
|