@sippulse/niva-sdk 0.1.0-rc.1 → 0.1.0-rc.7
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 +93 -11
- package/dts/src/generated/meta.d.ts +1 -1
- package/dts/src/generated/operations.d.ts +1935 -244
- package/dts/src/generated/webhooks.d.ts +76 -1
- package/index.bun.js +334 -174
- package/index.default.js +331 -173
- package/index.deno.js +334 -174
- package/index.node.js +334 -174
- 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, 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, 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, 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
|
};
|
|
@@ -141,7 +141,7 @@ export interface NivaClient {
|
|
|
141
141
|
/**
|
|
142
142
|
* archive.purge operation.
|
|
143
143
|
*
|
|
144
|
-
* Permanently purges an archived item; this is irreversible. Requires the `archive:purge` permission. Returns 404 ARCHIVE_ITEM_NOT_FOUND when the item does not exist.
|
|
144
|
+
* Permanently purges an archived item; this is irreversible. Requires the `archive:purge` permission. Returns 404 ARCHIVE_ITEM_NOT_FOUND when the item does not exist and 409 ARCHIVE_ITEM_IN_USE when the item is still referenced by calls or other records.
|
|
145
145
|
*/
|
|
146
146
|
purge(input: ArchivePurgeInput, options?: NivaRequestOptions): NivaCall<ArchivePurgeOutput, ArchivePurgeErrorCode>;
|
|
147
147
|
/**
|
|
@@ -241,7 +241,7 @@ export interface NivaClient {
|
|
|
241
241
|
/**
|
|
242
242
|
* callRecords.count operation.
|
|
243
243
|
*
|
|
244
|
-
* Returns the
|
|
244
|
+
* Returns the number of call records matching the same filters GET /call-records accepts, without paging any of them. It exists so a cursor-paginated listing can show a total without paying for count(*) on every page. With a signal filter on the dense path the total stops at 10000 and `total_capped` is true. Requires the call_record:read scope.
|
|
245
245
|
*/
|
|
246
246
|
count(input?: CallRecordsCountInput, options?: NivaRequestOptions): NivaCall<CallRecordsCountOutput, CallRecordsCountErrorCode>;
|
|
247
247
|
/**
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|
|
@@ -787,6 +801,68 @@ export interface NivaClient {
|
|
|
787
801
|
*/
|
|
788
802
|
listNames(options?: NivaRequestOptions): NivaCall<SecretsListNamesOutput, SecretsListNamesErrorCode>;
|
|
789
803
|
};
|
|
804
|
+
signals: {
|
|
805
|
+
/**
|
|
806
|
+
* signals.callSignals operation.
|
|
807
|
+
*
|
|
808
|
+
* Returns every signal result of a call with the definition snapshot that produced it, the final value, the trigger (if any) and the timeline points. Empty when the call was never evaluated. Requires the ai module and the ai:read scope.
|
|
809
|
+
*/
|
|
810
|
+
callSignals(input: SignalsCallSignalsInput, options?: NivaRequestOptions): NivaCall<SignalsCallSignalsOutput, SignalsCallSignalsErrorCode>;
|
|
811
|
+
/**
|
|
812
|
+
* signals.create operation.
|
|
813
|
+
*
|
|
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.
|
|
815
|
+
*/
|
|
816
|
+
create(input: SignalsCreateInput, options?: NivaRequestOptions): NivaCall<SignalsCreateOutput, SignalsCreateErrorCode>;
|
|
817
|
+
/**
|
|
818
|
+
* signals.delete operation.
|
|
819
|
+
*
|
|
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.
|
|
821
|
+
*/
|
|
822
|
+
delete(input: SignalsDeleteInput, options?: NivaRequestOptions): NivaCall<SignalsDeleteOutput, SignalsDeleteErrorCode>;
|
|
823
|
+
/**
|
|
824
|
+
* signals.get operation.
|
|
825
|
+
*
|
|
826
|
+
* Returns one signal of the organization's library. Returns 404 SIGNAL_NOT_FOUND when the id does not exist or belongs to another organization. Requires the ai module and the ai:read scope.
|
|
827
|
+
*/
|
|
828
|
+
get(input: SignalsGetInput, options?: NivaRequestOptions): NivaCall<SignalsGetOutput, SignalsGetErrorCode>;
|
|
829
|
+
/**
|
|
830
|
+
* signals.list operation.
|
|
831
|
+
*
|
|
832
|
+
* Returns the organization's signal library as a paginated envelope, each item with plan usage (published and draft counted apart) and trailing-7-day trigger and evaluation counts. Requires the ai module and the ai:read scope.
|
|
833
|
+
*/
|
|
834
|
+
list(input?: SignalsListInput, options?: NivaRequestOptions): NivaCall<SignalsListOutput, SignalsListErrorCode>;
|
|
835
|
+
/**
|
|
836
|
+
* signals.overview operation.
|
|
837
|
+
*
|
|
838
|
+
* Organization-scoped aggregates for the Signals library header: trigger rows and distinct evaluated calls in the trailing 7 days, non-archived signals in at least one plan's effective list, and non-deleted plans that follow the organization. Computed with SQL aggregates, never by summing a page. Requires the ai module and the ai:read scope.
|
|
839
|
+
*/
|
|
840
|
+
overview(options?: NivaRequestOptions): NivaCall<SignalsOverviewOutput, SignalsOverviewErrorCode>;
|
|
841
|
+
/**
|
|
842
|
+
* signals.presets operation.
|
|
843
|
+
*
|
|
844
|
+
* Returns the ten signal models with their localized definitions. Use one as the starting point for a new signal. Requires the ai module and the ai:read scope.
|
|
845
|
+
*/
|
|
846
|
+
presets(input?: SignalsPresetsInput, options?: NivaRequestOptions): NivaCall<SignalsPresetsOutput, SignalsPresetsErrorCode>;
|
|
847
|
+
/**
|
|
848
|
+
* signals.test operation.
|
|
849
|
+
*
|
|
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.
|
|
851
|
+
*/
|
|
852
|
+
test(input: SignalsTestInput, options?: NivaRequestOptions): NivaCall<SignalsTestOutput, SignalsTestErrorCode>;
|
|
853
|
+
/**
|
|
854
|
+
* signals.update operation.
|
|
855
|
+
*
|
|
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.
|
|
857
|
+
*/
|
|
858
|
+
update(input: SignalsUpdateInput, options?: NivaRequestOptions): NivaCall<SignalsUpdateOutput, SignalsUpdateErrorCode>;
|
|
859
|
+
/**
|
|
860
|
+
* signals.upsertBySlug operation.
|
|
861
|
+
*
|
|
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.
|
|
863
|
+
*/
|
|
864
|
+
upsertBySlug(input: SignalsUpsertBySlugInput, options?: NivaRequestOptions): NivaCall<SignalsUpsertBySlugOutput, SignalsUpsertBySlugErrorCode>;
|
|
865
|
+
};
|
|
790
866
|
tts: {
|
|
791
867
|
/**
|
|
792
868
|
* tts.listModels operation.
|
|
@@ -846,6 +922,12 @@ export interface NivaClient {
|
|
|
846
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.
|
|
847
923
|
*/
|
|
848
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>;
|
|
849
931
|
/**
|
|
850
932
|
* users.updateRole operation.
|
|
851
933
|
*
|
|
@@ -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.7";
|
|
7
7
|
/** Lowest NIVA product version this SDK operates against. */
|
|
8
8
|
export declare const SUPPORTED_NIVA: {
|
|
9
9
|
min: string;
|